Ensure fseeko and ftello are declared on glibc systems.
[gnulib.git] / ChangeLog
1 2007-04-26  Bruno Haible  <bruno@clisp.org>
2
3         Ensure fseeko, ftello are declared on glibc systems.
4         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
5         * modules/fseeko (configure.ac-early): Likewise.
6         * modules/ftello (configure.ac-early): Likewise.
7         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
8         AC_FUNC_FSEEKO for this.
9         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
10         (gl_CHECK_FSEEKO): Remove macro.
11
12 2007-04-26  Bruno Haible  <bruno@clisp.org>
13
14         * tests/test-fflush.c (main): Also check the ftell result after
15         fflush and fseek/fseeko.
16         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
17         file descriptor position cache in the stream.
18         * lib/fseeko.c (rpl_fseeko): Likewise.
19
20 2007-04-26  Bruno Haible  <bruno@clisp.org>
21
22         * modules/fflush-tests (Depends-on): Add fseeko.
23
24 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
25             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26
27         * lib/argz_.h: ensure error_t definition is obtained in same
28         mechanism system argz.h would have.
29         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
30         argz facilities are known bad.  Err on the side of caution if
31         cross-compiling.
32
33 2007-04-25  Eric Blake  <ebb9@byu.net>
34
35         * lib/fpurge.c (includes): Use stdlib.h for free.
36         * tests/test-fflush.c (main): Also test fflush-fseeko.
37
38 2007-04-25  Bruno Haible  <bruno@clisp.org>
39
40         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41         * lib/fseeko.c: New file.
42         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
43         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45         gl_FUNC_FSEEKO.
46         (gl_FUNC_FSEEKO): Invoke it.
47         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50
51 2007-04-25  Bruno Haible  <bruno@clisp.org>
52
53         * modules/fflush (Depends-on): Add ftello.
54
55 2007-04-25  Bruno Haible  <bruno@clisp.org>
56
57         * modules/ftello-tests: New file.
58         * tests/test-ftello.c: New file.
59
60         * modules/ftello: New file.
61         * m4/ftello.m4: New file.
62         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
63         HAVE_FTELLO.
64         * lib/stdio_.h (ftello): New declaration.
65         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66         HAVE_FTELLO.
67
68 2007-04-25  Bruno Haible  <bruno@clisp.org>
69
70         * modules/fseeko-tests: New file.
71         * tests/test-fseeko.c: New file.
72
73         * modules/fseeko: New file.
74         * m4/fseeko.m4: New file.
75         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
76         HAVE_FSEEKO.
77         * lib/stdio_.h (fseeko): New declaration.
78         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
79         HAVE_FSEEKO.
80
81 2007-04-25  Bruno Haible  <bruno@clisp.org>
82
83         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
84
85 2007-04-25  Bruno Haible  <bruno@clisp.org>
86
87         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
88         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
89         * tests/test-unistd.c: Likewise.
90         * tests/test-fcntl.c: Likewise.
91
92 2007-04-23  Eric Blake  <ebb9@byu.net>
93
94         * lib/fflush.c: Fix missing include.
95         Reported by Bruno Haible.
96
97 2007-04-23  Bruno Haible  <bruno@clisp.org>
98
99         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
100         Reported by Eric Blake.
101
102 2007-04-23  Bruno Haible  <bruno@clisp.org>
103
104         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105
106 2007-04-23  Bruno Haible  <bruno@clisp.org>
107
108         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
109
110 2007-04-23  Bruno Haible  <bruno@clisp.org>
111
112         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
113         Needed on HP-UX 11.
114
115 2007-04-16  Eric Blake  <ebb9@byu.net>
116
117         Make fflush rely on fpurge.
118         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
119         open coding all variants.
120         * modules/fflush (Depends-on): Add fpurge and unistd.
121         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
122         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
123
124         Fix --with-tests compilation on cygwin.
125         * modules/argmatch-tests (Makefile.am): List gnulib library first
126         in LDADD.
127         * modules/argp-tests (Makefile.am): Likewise.
128         * modules/array-list-tests (Makefile.am): Likewise.
129         * modules/array-oset-tests (Makefile.am): Likewise.
130         * modules/avltree-list-tests (Makefile.am): Likewise.
131         * modules/avltree-oset-tests (Makefile.am): Likewise.
132         * modules/avltreehash-list-tests (Makefile.am): Likewise.
133         * modules/carray-list-tests (Makefile.am): Likewise.
134         * modules/dirname-tests (Makefile.am): Likewise.
135         * modules/frexp-tests (Makefile.am): Likewise.
136         * modules/isnanl-tests (Makefile.am): Likewise.
137         * modules/linked-list-tests (Makefile.am): Likewise.
138         * modules/linkedhash-list-tests (Makefile.am): Likewise.
139         * modules/lock-tests (Makefile.am): Likewise.
140         * modules/rbtree-list-tests (Makefile.am): Likewise.
141         * modules/rbtree-oset-tests (Makefile.am): Likewise.
142         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
143         * modules/tls-tests (Makefile.am): Likewise.
144         * modules/tsearch-tests (Makefile.am): Likewise.
145         * modules/xvasprintf-tests (Makefile.am): Likewise.
146
147         Fix fpurge for cygwin.
148         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
149         value.
150         * modules/fpurge-tests (Depends-on): Clean up trash.
151
152 2007-04-16  Simon Josefsson  <simon@josefsson.org>
153
154         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
155
156         * m4/autobuild.m4: Re-indent.
157
158 2007-04-13  Bruno Haible  <bruno@clisp.org>
159
160         * modules/fpurge-tests: New file.
161         * tests/test-fpurge.c: New file.
162
163         * modules/fpurge: New file.
164         * lib/fpurge.h: New file.
165         * lib/fpurge.c: New file.
166         * m4/fpurge.m4: New file.
167
168 2007-04-13  Bruno Haible  <bruno@clisp.org>
169
170         * modules/fbufmode-tests: New file.
171         * tests/test-fbufmode.c: New file.
172
173         * modules/fbufmode: New file.
174         * lib/fbufmode.h: New file.
175         * lib/fbufmode.c: New file.
176         * m4/fbufmode.m4: New file.
177
178 2007-04-13  Bruno Haible  <bruno@clisp.org>
179
180         * modules/fwritable-tests: New file.
181         * tests/test-fwritable.c: New file.
182
183         * modules/fwritable: New file.
184         * lib/fwritable.h: New file.
185         * lib/fwritable.c: New file.
186         * m4/fwritable.m4: New file.
187
188 2007-04-13  Bruno Haible  <bruno@clisp.org>
189
190         * modules/freadable-tests: New file.
191         * tests/test-freadable.c: New file.
192
193         * modules/freadable: New file.
194         * lib/freadable.h: New file.
195         * lib/freadable.c: New file.
196         * m4/freadable.m4: New file.
197
198 2007-04-13  Bruno Haible  <bruno@clisp.org>
199
200         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
201         MOSTLYCLEANFILES.
202
203 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
204
205         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
206         gzip bootstrap.conf to avoid dragging in i18n machinery.
207         (gnulib_tool_option): Use it.
208
209 2007-04-13  Bruno Haible  <bruno@clisp.org>
210
211         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
212         %F directives.
213         * tests/test-vasprintf-posix.c (test_function): Likewise.
214         * tests/test-snprintf-posix.h (test_function): Likewise.
215         * tests/test-sprintf-posix.h (test_function): Likewise.
216         * tests/test-fprintf-posix.h (test_function): Likewise.
217         * tests/test-printf-posix.h (test_function): Likewise.
218         * tests/test-fprintf-posix.out: Likewise.
219
220 2007-04-13  Bruno Haible  <bruno@clisp.org>
221
222         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
223         * modules/tls-tests (configure.ac): Likewise.
224         Reported by Arto C. Nirkko <anirkko@insel.ch>.
225
226 2007-04-13  Bruno Haible  <bruno@clisp.org>
227
228         * lib/tls.c (glthread_tls_get): Fix return type.
229         Patch by Arto C. Nirkko <anirkko@insel.ch>.
230
231 2007-04-12  Eric Blake  <ebb9@byu.net>
232
233         * modules/gettime (Depends-on): Remove gettime.
234         Reported by Dmitry V. Levin.
235
236 2007-04-12  Bruno Haible  <bruno@clisp.org>
237
238         * modules/fflush (Include): Mention <stdio.h>.
239         * modules/strtoimax (Include): Mention <inttypes.h>.
240         * modules/strtoumax (Include): Likewise.
241
242 2007-04-12  Eric Blake  <ebb9@byu.net>
243
244         * .cvsignore: New file.
245         * .gitignore: Likewise.
246
247 2007-04-12  Bruno Haible  <bruno@clisp.org>
248
249         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
250         not before, since $(LDADD) often contains libgnu.a.
251         * modules/striconv-tests (test_striconv_LDADD): Likewise.
252         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
253         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
254         Needed on Cygwin.
255
256 2007-04-12  Eric Blake  <ebb9@byu.net>
257
258         Work around glibc's failure to flush stdin on fclose.
259         * lib/closein.c (close_stdin): Flush stdin before closing.
260
261         Work around glibc's failure to reset seekable stdin on exit.
262         * modules/closein: New module.
263         * lib/closein.c: New file.
264         * lib/closein.h: Likewise.
265         * m4/closein.m4: Likewise.
266         * MODULES.html.sh (File stream based Input/Output): Document it.
267
268 2007-04-12  Simon Josefsson  <simon@josefsson.org>
269
270         * gnulib-tool: Rename generated 'autobuild' script to
271         'do-autobuild' in --create-megatestdir output.
272
273         * doc/gnulib.texi (Build robot for gnulib): Fix.
274
275 2007-04-12  Simon Josefsson  <simon@josefsson.org>
276
277         * modules/sysexits (Depends-on): Add absolute-header.
278
279 2007-04-12  Eric Blake  <ebb9@byu.net>
280
281         No need to preserve errno on success.
282         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
283         Reported by Bruno Haible.
284
285 2007-04-12  Simon Josefsson  <simon@josefsson.org>
286
287         * MODULES.html.sh (Support for maintaining and releasing
288         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
289
290 2007-04-12  Simon Josefsson  <simon@josefsson.org>
291
292         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
293
294 2007-04-12  Simon Josefsson  <simon@josefsson.org>
295
296         * modules/autobuild: New module.
297
298         * m4/autobuild.m4: New file.
299
300 2007-04-11  Bruno Haible  <bruno@clisp.org>
301
302         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
303         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
304         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
306         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
307         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
308         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
309         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
310         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
311         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
313         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
314         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
321         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
330         Reported by Eric Blake.
331
332 2007-04-11  Bruno Haible  <bruno@clisp.org>
333
334         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
335
336 2007-04-10  Bruno Haible  <bruno@clisp.org>
337
338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
339         for NaN and Infinity. Needed on FreeBSD 6.1.
340         * tests/test-vasnprintf-posix.c (test_function): Undo last change
341         regarding results for "%010a" of Infinity and NaN.
342         * tests/test-vasprintf-posix.c (test_function): Likewise.
343         * tests/test-snprintf-posix.h (test_function): Likewise.
344         * tests/test-sprintf-posix.h (test_function): Likewise.
345         * tests/test-fprintf-posix.h (test_function): Likewise.
346         * tests/test-printf-posix.h (test_function): Likewise.
347         * tests/test-fprintf-posix.out: Likewise.
348
349 2007-04-10  Bruno Haible  <bruno@clisp.org>
350
351         * modules/locale-tests: New file.
352         * tests/test-locale.c: New file.
353
354         * modules/locale: New file.
355         * lib/locale_.h: New file.
356         * m4/locale_h.m4: New file.
357
358 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
359             Bruno Haible  <bruno@clisp.org>
360
361         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
362         be determined, test for availability of the copysignf, copysign,
363         copysignl functions.
364         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
365         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
366         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
367
368 2007-04-09  Eric Blake  <ebb9@byu.net>
369
370         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
371         * modules/stdio (Makefile.am): Support fflush.
372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
373         * modules/fflush: New file.
374         * lib/fflush.c: Likewise.
375         * m4/fflush.m4: Likewise.
376         * modules/fflush-tests: New test.
377         * tests/test-fflush.c: Likewise.
378         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
379
380 2007-04-06  Bruno Haible  <bruno@clisp.org>
381
382         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
383         (VASNPRINTF): Use signbit for faster determination whether to print a
384         minus sign.
385         * modules/vasnprintf (Files): Remove lib/float+.h.
386         * modules/fprintf-posix (Depends-on): Add signbit.
387         * modules/snprintf-posix (Depends-on): Likewise.
388         * modules/sprintf-posix (Depends-on): Likewise.
389         * modules/vasnprintf-posix (Depends-on): Likewise.
390         * modules/vasprintf-posix (Depends-on): Likewise.
391         * modules/vfprintf-posix (Depends-on): Likewise.
392         * modules/vsnprintf-posix (Depends-on): Likewise.
393         * modules/vsprintf-posix (Depends-on): Likewise.
394
395 2007-04-06  Bruno Haible  <bruno@clisp.org>
396
397         * tests/test-frexp.c (main): Test also the sign bit of zero results.
398         * tests/test-frexpl.c (main): Likewise.
399         * tests/test-ldexpl.c (main): Likewise.
400         * modules/frexp-tests (Depends-on): Add signbit.
401         * modules/frexpl-tests (Depdends-on): Likewise.
402         * modules/ldexpl-tests (Depdends-on): Likewise.
403
404 2007-04-06  Bruno Haible  <bruno@clisp.org>
405
406         * modules/signbit-tests: New file.
407         * tests/test-signbit.c: New file.
408
409         * modules/signbit: New file.
410         * lib/signbitf.c: New file.
411         * lib/signbitd.c: New file.
412         * lib/signbitl.c: New file.
413         * m4/signbit.m4: New file.
414         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
415         (signbit): New macro.
416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
417         REPLACE_SIGNBIT.
418         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
419         REPLACE_FREXPL into math.h.
420
421 2007-04-06  Bruno Haible  <bruno@clisp.org>
422
423         * modules/isnanf-nolibm-tests: New file.
424         * tests/test-isnanf.c: New file.
425
426         * modules/isnanf-nolibm: New file.
427         * lib/isnanf.h: New file.
428         * lib/isnanf.c: New file.
429         * lib/isnan.c: Consider the USE_FLOAT macro.
430         * m4/isnanf.m4: New file.
431
432 2007-04-06  Bruno Haible  <bruno@clisp.org>
433
434         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
435         (Link): New section.
436
437         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
438
439 2007-04-06  Bruno Haible  <bruno@clisp.org>
440
441         Assume the 'long double' type.
442         * m4/longdouble.m4: Remove file.
443         * config/srclist.txt: Don't mention longdouble.m4.
444         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
445         * lib/float+.h: Likewise.
446         * lib/frexp.c: Likewise.
447         * lib/printf-args.h: Likewise.
448         * lib/printf-args.c: Likewise.
449         * lib/printf-frexp.c: Likewise.
450         * lib/printf-parse.c: Likewise.
451         * lib/vasnprintf.c: Likewise.
452         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
453         * m4/intl.m4: Likewise.
454         * m4/isnanl.m4: Likewise.
455         * m4/printf.m4: Likewise.
456         * m4/printf-frexpl.m4: Likewise.
457         * m4/vasnprintf.m4: Likewise.
458         * modules/allocsa (Files): Remove m4/longdouble.m4.
459         * modules/gettext (Files): Likewise.
460         * modules/relocatable-prog-wrapper (Files): Likewise.
461         * modules/vasnprintf (Files): Likewise.
462         * modules/isnanl (Files): Likewise.
463         (Include): Simplify.
464         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
465         (Include): Simplify.
466         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
467         (Include): Simplify.
468         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
469         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
470         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
471         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
472         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
473         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
474         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
475         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
476         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
477         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
478         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
479         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
480         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
481         * tests/test-isnanl.c: Likewise.
482         * tests/test-snprintf-posix.h: Likewise.
483         * tests/test-sprintf-posix.h: Likewise.
484         * tests/test-vasnprintf-posix.c: Likewise.
485         * tests/test-vasnprintf-posix2.c: Likewise.
486         * tests/test-vasprintf-posix.c: Likewise.
487
488 2007-04-06  Bruno Haible  <bruno@clisp.org>
489
490         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
491         * lib/math_.h [__DECC]: Include the overridden include file through
492         #include_next, outside the double-inclusion guard.
493         * lib/stdio_.h [__DECC]: Likewise.
494         * lib/stdlib_.h [__DECC]: Likewise.
495         * lib/string_.h [__DECC]: Likewise.
496         * lib/time_.h [__DECC]: Likewise.
497         * lib/wchar_.h [__DECC]: Likewise.
498         * lib/wctype_.h [__DECC]: Likewise.
499         * lib/inttypes_.h [__DECC]: Likewise.
500         Reported by Albert Chin <china@thewrittenword.com> in
501         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
502
503 2007-04-04  Eric Blake  <ebb9@byu.net>
504
505         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
506         1.5.x.
507
508 2007-04-04  Bruno Haible  <bruno@clisp.org>
509
510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
511         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
512
513 2007-04-04  Bruno Haible  <bruno@clisp.org>
514
515         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
516         results for "%010a" of Infinity and NaN.
517         * tests/test-vasprintf-posix.c (test_function): Likewise.
518         * tests/test-snprintf-posix.h (test_function): Likewise.
519         * tests/test-sprintf-posix.h (test_function): Likewise.
520         * tests/test-fprintf-posix.h (test_function): Remove these tests.
521         * tests/test-printf-posix.h (test_function): Likewise.
522         * tests/test-fprintf-posix.out: Update.
523         Needed for FreeBSD 6.1.
524
525 2007-04-04  Bruno Haible  <bruno@clisp.org>
526
527         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
528         directly used by the gnulib modules nor by gnulib-tool.
529
530 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
531
532         * DEPENDENCIES: Give overall description of version dependency
533         desirability.  Use more-typical names for apps.
534         Add shell, coreutils, diffutils, grep, tar, gzip.
535
536 2007-04-04  Simon Josefsson  <simon@josefsson.org>
537
538         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
539
540 2007-04-04  Karl Berry  <karl@gnu.org>
541
542         * MODULES.html.sh (func_module): missing '.
543
544 2007-04-03  Bruno Haible  <bruno@clisp.org>
545
546         * modules/argmatch-tests (Makefile.am): New variable
547         test_argmatch_LDADD.
548         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
549         * modules/array-list-tests (Makefile.am): New variable
550         test_array_list_LDADD.
551         * modules/array-oset-tests (Makefile.am): New variable
552         test_array_oset_LDADD.
553         * modules/avltree-list-tests (Makefile.am): New variable
554         test_avltree_list_LDADD.
555         * modules/avltree-oset-tests (Makefile.am): New variable
556         test_avltree_oset_LDADD.
557         * modules/avltreehash-list-tests (Makefile.am): New variable
558         test_avltreehash_list_LDADD.
559         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
560         test_canonicalize_lgpl_LDADD.
561         * modules/carray-list-tests (Makefile.am): New variable
562         test_carray_list_LDADD.
563         * modules/dirname-tests (Makefile.am): New variable
564         test_dirname_LDADD.
565         * modules/linked-list-tests (Makefile.am): New variable
566         test_linked_list_LDADD.
567         * modules/linkedhash-list-tests (Makefile.am): New variable
568         test_linkedhash_list_LDADD.
569         * modules/rbtree-list-tests (Makefile.am): New variable
570         test_rbtree_list_LDADD.
571         * modules/rbtree-oset-tests (Makefile.am): New variable
572         test_rbtree_oset_LDADD.
573         * modules/rbtreehash-list-tests (Makefile.am): New variable
574         test_rbtreehash_list_LDADD.
575         * modules/xvasprintf-tests (Makefile.am): New variable
576         test_xvasprintf_LDADD.
577         Reported by Eric Blake.
578
579 2007-04-03  Eric Blake  <ebb9@byu.net>
580
581         * DEPENDENCIES: Weaken m4 requirements.
582
583 2007-04-03  Bruno Haible  <bruno@clisp.org>
584
585         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
586         * modules/isnanl-tests (configure.ac): Likewise.
587
588 2007-04-03  Ben Pfaff  <blp@gnu.org>
589
590         * modules/iconv_open: Add $(srcdir)/ to source directory
591         references in Makefile fragments that call gperf, to fix VPATH
592         builds.
593
594 2007-04-03  Bruno Haible  <bruno@clisp.org>
595
596         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
597         * lib/ldexpl.c: Undo last change.
598
599 2007-04-03  Bruno Haible  <bruno@clisp.org>
600
601         * modules/printf-frexpl (Depends-on): Undo last change.
602         (Files): Add m4/ldexpl.m4.
603
604 2007-04-03  Bruno Haible  <bruno@clisp.org>
605
606         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
607         * modules/isnanl (Link): New section.
608
609         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
610         * modules/frexp (Link): New section.
611
612         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
613         * modules/frexpl (Link): New section.
614
615         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
616         * modules/ldexpl (Link): New section.
617
618 2007-04-03  Bruno Haible  <bruno@clisp.org>
619
620         * modules/TEMPLATE-EXTENDED: New file.
621         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
622
623 2007-04-03  Bruno Haible  <bruno@clisp.org>
624
625         * DEPENDENCIES: New file.
626         Suggested by Simon Josefsson.
627
628 2007-04-03  Bruno Haible  <bruno@clisp.org>
629
630         * doc/gnulib.texi: Escape @.
631
632 2007-04-03  James Youngman  <jay@gnu.org>
633         and Paul Eggert  <eggert@cs.ucla.edu>
634
635         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
636         birthtime on all systems that have birthtime, not just those which
637         use st_birthtimensec rather than st_birthtim.  Putting zero in
638         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
639         that the birth time is not available for files on an NFS mount.
640
641 2007-04-03  Simon Josefsson  <simon@josefsson.org>
642
643         * modules/memxor: Move back from crypto/, suggested by Bruno.
644         * modules/crypto/hmac-sha1: Fix memxor dependency.
645
646         * modules/crypto/gc: Moved from ../.
647
648 2007-04-02  Eric Blake  <ebb9@byu.net>
649
650         * lib/ldexpl.c (includes): Avoid libm.
651
652         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
653
654 2007-04-02  Bruno Haible  <bruno@clisp.org>
655
656         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
657         on IRIX.
658
659 2007-04-02  Bruno Haible  <bruno@clisp.org>
660
661         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
662         x86 or x86_64 platforms running MacOS X.
663         Reported by Ryan Schmidt <@ryandesign.com>.
664
665 2007-04-02  Bruno Haible  <bruno@clisp.org>
666
667         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
668         i386.
669
670 2007-04-01  Simon Josefsson  <simon@josefsson.org>
671
672         * modules/crypto/arcfour: Moved from ../.
673         * modules/crypto/arcfour-tests: Moved from ../.
674         * modules/crypto/arctwo: Moved from ../.
675         * modules/crypto/arctwo-tests: Moved from ../.
676         * modules/crypto/des: Moved from ../.
677         * modules/crypto/des-tests: Moved from ../.
678         * modules/crypto/gc-arcfour: Moved from ../.
679         * modules/crypto/gc-arcfour-tests: Moved from ../.
680         * modules/crypto/gc-arctwo: Moved from ../.
681         * modules/crypto/gc-arctwo-tests: Moved from ../.
682         * modules/crypto/gc-des: Moved from ../.
683         * modules/crypto/gc-des-tests: Moved from ../.
684         * modules/crypto/gc-hmac-md5: Moved from ../.
685         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
686         * modules/crypto/gc-hmac-sha1: Moved from ../.
687         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
688         * modules/crypto/gc-md2: Moved from ../.
689         * modules/crypto/gc-md2-tests: Moved from ../.
690         * modules/crypto/gc-md4: Moved from ../.
691         * modules/crypto/gc-md4-tests: Moved from ../.
692         * modules/crypto/gc-md5: Moved from ../.
693         * modules/crypto/gc-md5-tests: Moved from ../.
694         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
695         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
696         * modules/crypto/gc-random: Moved from ../.
697         * modules/crypto/gc-rijndael: Moved from ../.
698         * modules/crypto/gc-rijndael-tests: Moved from ../.
699         * modules/crypto/gc-sha1: Moved from ../.
700         * modules/crypto/gc-sha1-tests: Moved from ../.
701         * modules/crypto/gc-tests: Moved from ../.
702         * modules/crypto/hmac-md5: Moved from ../.
703         * modules/crypto/hmac-md5-tests: Moved from ../.
704         * modules/crypto/hmac-sha1: Moved from ../.
705         * modules/crypto/hmac-sha1-tests: Moved from ../.
706         * modules/crypto/md2: Moved from ../.
707         * modules/crypto/md2-tests: Moved from ../.
708         * modules/crypto/md4: Moved from ../.
709         * modules/crypto/md4-tests: Moved from ../.
710         * modules/crypto/md5: Moved from ../.
711         * modules/crypto/md5-tests: Moved from ../.
712         * modules/crypto/memxor: Moved from ../.
713         * modules/crypto/rijndael: Moved from ../.
714         * modules/crypto/rijndael-tests: Moved from ../.
715         * modules/crypto/sha1: Moved from ../.
716
717 2007-03-30  James Youngman  <jay@gnu.org>
718
719         * tests/test-stat-time.c (prepare_test): use chmod() rather than
720         rename() to change the ctime of a file (because ctime is unaffected
721         by rename on jfs2 on AIX 5.1).
722         (main): Start by doing cleanup, in case a previous run failed leaving
723         test files behind.
724
725 2007-03-31  Bruno Haible  <bruno@clisp.org>
726
727         Support old proprietary implementations of iconv.
728         * modules/iconv_open: New file.
729         * lib/iconv_.h: New file.
730         * m4/iconv_h.m4: New file.
731         * lib/iconv_open.c: New file.
732         * lib/iconv_open-aix.gperf: New file.
733         * lib/iconv_open-hpux.gperf: New file.
734         * lib/iconv_open-irix.gperf: New file.
735         * lib/iconv_open-osf.gperf: New file.
736         * m4/iconv_open.m4: New file.
737         * modules/linebreak (Depends-on): Add iconv_open.
738         * modules/striconv (Depends-on): Likewise.
739         * modules/striconveh (Depends-on): Likewise.
740         * modules/unicodeio (Depends-on): Likewise.
741         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
742         (iconv_t)(-1).
743         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
744         conversion if cd is (iconv_t)(-1).
745         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
746         is not possible.
747
748 2007-03-31  Bruno Haible  <bruno@clisp.org>
749
750         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
751         work on Solaris either. Protect also second use of "autodetect_jp".
752
753 2007-03-31  Bruno Haible  <bruno@clisp.org>
754
755         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
756         the function is not present.
757
758 2007-03-31  Bruno Haible  <bruno@clisp.org>
759
760         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
761         the function is not present.
762
763 2007-03-31  Bruno Haible  <bruno@clisp.org>
764
765         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
766         a bug in HP-UX iconv_open().
767
768 2007-03-31  Bruno Haible  <bruno@clisp.org>
769
770         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
771         (Mathematics <math.h>): New section, add fpieee.
772         (Input/output <stdio.h>): Add fseterr.
773         (Mathematics <math.h>): New section, add printf-frexp.
774         (Container data structures): Add sublist.
775         (Core language properties): Add fpucw, inline.
776         (Functions for greatest-width integer types <inttypes.h>): Add
777         imaxabs, imaxdiv, inttypes.
778         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
779         isnanl-nolibm, ldexp.
780         (Mathematics <math.h>): New section, add printf-frexpl.
781         (Support for systems lacking POSIX:2001): Add fprintf-posix,
782         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
783         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
784         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
785         (Unicode string functions): Add unistr/u*-mbtoucr.
786         (Java): Add javacomp-script, javaexec-script.
787         (C#): Add csharpcomp-script, csharpexec-script.
788         (Support for building libraries and executables): Add havelib,
789         relocatable-*.
790         (Support for maintaining and releasing projects): Renamed from
791         'Support for maintaining and release projects'. Add announce-gen.
792
793 2007-03-31  Bruno Haible  <bruno@clisp.org>
794
795         * README: Talk primarily about git.
796         (git and CVS): Renamed from CVS.
797         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
798         gnulib is available through git.
799         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
800
801 2007-03-30  Bruno Haible  <bruno@clisp.org>
802
803         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
804         * lib/poll_.h: Likewise.
805         * lib/stat_.h: Likewise.
806         * lib/sys_time_.h: Likewise.
807         * lib/sysexit_.h: Likewise.
808         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
809         * lib/stdbool_.h: Likewise.
810         * lib/byteswap_.h: Add double-inclusion guard.
811
812 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
813
814         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
815
816 2007-03-30  Karl Berry  <karl@gnu.org>
817
818         * config/srclist-update: double space after USA in the license
819         substitution, since that's how it's usually (?) written.
820
821 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
822
823         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
824         reported by Bruno Haible.
825
826 2007-03-29  Bruno Haible  <bruno@clisp.org>
827
828         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
829         a bug in AIX iconv().
830
831 2007-03-29  Bruno Haible  <bruno@clisp.org>
832
833         * modules/ldexpl-tests: New file.
834         * tests/test-ldexpl.c: New file.
835
836 2007-03-29  Bruno Haible  <bruno@clisp.org>
837
838         * lib/ldexpl.c: Include fpucw.h.
839         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
840         multiplication.
841         * modules/ldexpl (Depends-on): Add fpucw.
842
843 2007-03-29  Bruno Haible  <bruno@clisp.org>
844
845         * modules/ldexpl: New file.
846         * m4/ldexpl.m4: New file.
847         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
848         set.
849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
850         REPLACE_LDEXPL.
851         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
852         REPLACE_LDEXPL.
853         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
854         gl_FUNC_LDEXPL_WORKS.
855         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
856         * modules/mathl (Files): Remove lib/ldexpl.c.
857         (Depends-on): Add ldexpl.
858
859 2007-03-29  Bruno Haible  <bruno@clisp.org>
860
861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
862
863 2007-03-29  Bruno Haible  <bruno@clisp.org>
864
865         * tests/test-striconveh.c (main): Don't assume that a direct conversion
866         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
867         and possibly also HP-UX.
868         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
869         work on AIX, IRIX, HP-UX, OSF/1.
870         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
871         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
872         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
873         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
874         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
875         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
876
877 2007-03-29  Bruno Haible  <bruno@clisp.org>
878
879         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
880
881 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
882
883         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
884         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
885
886 2007-03-29  Eric Blake  <ebb9@byu.net>
887
888         * lib/acl-internal.h: Remove redundant include.
889         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
890         Cygwin when a file is locked.
891
892 2007-03-29  Bruno Haible  <bruno@clisp.org>
893
894         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
895         file.
896         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
897
898 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
899
900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
901         try to remove a parent directory if the child couldn't be removed
902         (except for the first rmdir, which could fail because the child
903         doesn't exist).  Problem reported by Jeff Blaine in
904         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
905
906 2007-03-28  Bruno Haible  <bruno@clisp.org>
907
908         * lib/striconveh.c (utf8conv_carefully): New function.
909         (mem_cd_iconveh_internal): Invoke it.
910
911 2007-03-28  Bruno Haible  <bruno@clisp.org>
912
913         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
914         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
915         input.
916         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
917         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
918         unistr/u8-uctomb.
919
920 2007-03-28  Bruno Haible  <bruno@clisp.org>
921
922         * modules/unistr/u8-mbtoucr: New file.
923         * lib/unistr/u8-mbtoucr.c: New file.
924         * modules/unistr/u16-mbtoucr: New file.
925         * lib/unistr/u16-mbtoucr.c: New file.
926         * modules/unistr/u16-mbtoucr: New file.
927         * lib/unistr/u16-mbtoucr.c: New file.
928         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
929
930 2007-03-27  Simon Josefsson  <simon@josefsson.org>
931             Bruno Haible  <bruno@clisp.org>
932
933         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
934         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
935         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
936
937         * m4/stdio_h.m4: Add stubs for vasprintf too.
938
939         * modules/stdio: Support vasprintf in sed command.
940
941         * modules/vasprintf: Depend on stdio for prototypes.  Remove
942         vasprintf.h.  Add stdio module indicator.
943
944         * lib/stdio_.h: Declare asprintf and vasprintf, based on
945         vasprintf.h.
946
947         * lib/vasprintf.h: File removed.
948
949         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
950         * lib/vasprintf.c: Ditto.
951         * lib/xvasprintf.c: Ditto.
952         * tests/test-vasprintf-posix.c: Ditto.
953         * tests/test-vasprintf.c: Ditto.
954
955 2007-03-27  Bruno Haible  <bruno@clisp.org>
956
957         Make vasnprintf multithread-safe.
958         * lib/vasnprintf.c (decimal_point_char): New function.
959         (VASNPRINTF): Use it.
960         Suggested by Simon Josefsson.
961
962 2007-03-27  Eric Blake  <ebb9@byu.net>
963
964         Support sub-second birthtime on cygwin.
965         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
966         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
967         (get_stat_birthtime): Also work with st_birthtim.
968
969 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
970
971         * lib/stat-time.h (USE_BIRTHTIME): Remove.
972         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
973         (get_stat_birthtime_ns): Do not try to use "spare" fields.
974         (get_stat_birthtime_ns): Simplify compile-time tests.
975         (get_stat_birthtime): Change the API to look like
976         get_stat_mtime etc., except return a negative tv_nsec on error.
977         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
978         Don't check for "spare" fields.
979         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
980         or for struct stat.st_birthtime, as these tests aren't used.
981         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
982
983 2007-03-27  Bruno Haible  <bruno@clisp.org>
984
985         * lib/stat-time.h: Include <sys/stat.h>.
986
987 2007-03-27  James Youngman  <jay@gnu.org>
988
989         * lib/stat-time.h (get_stat_birthtime): New function for
990           retrieving st_birthtime as provided by UFS2 (hence *BSD).
991         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
992           and its variants.
993         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
994         * modules/stat-time-test: New file.
995         * tests/test-stat-time.c: New test, devised by Bruno Haible.
996
997 2007-03-26  Bruno Haible  <bruno@clisp.org>
998
999         Better support of signalling NaNs.
1000         * lib/atanl.c: Include isnanl.h.
1001         (atanl): Perform test for NaN at the beginning of the function and
1002         through a call to isnanl.
1003         * lib/cosl.c: Include isnanl.h.
1004         (cosl): Perform test for NaN at the beginning of the function and
1005         through a call to isnanl.
1006         * lib/ldexpl.c: Include isnanl.h.
1007         (ldexpl): Perform test for NaN through a call to isnanl.
1008         * lib/logl.c: Include isnanl.h.
1009         (logl): Perform test for NaN at the beginning of the function and
1010         through a call to isnanl.
1011         * lib/sinl.c: Include isnanl.h.
1012         (sinl): Perform test for NaN at the beginning of the function and
1013         through a call to isnanl.
1014         * lib/sqrtl.c: Include isnanl.h.
1015         (sqrtl): Perform test for NaN at the beginning of the function and
1016         through a call to isnanl.
1017         * lib/tanl.c: Include isnanl.h.
1018         (tanl): Perform test for NaN at the beginning of the function and
1019         through a call to isnanl.
1020         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
1021         * modules/mathl (Depends-on): Add isnanl.
1022
1023 2007-03-26  Eric Blake  <ebb9@byu.net>
1024
1025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
1026         regression in logic sense of previous patch.
1027
1028 2007-03-26  Bruno Haible  <bruno@clisp.org>
1029
1030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
1031         unportable shell command "if ! ...".
1032         Reported by Ralf Wildenhues.
1033
1034 2007-03-25  Bruno Haible  <bruno@clisp.org>
1035
1036         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
1037         <sysexits.h> file, and only add EX_CONFIG.
1038         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
1039         absolute file name and whether it is sufficient. Substitute also
1040         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
1041         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
1042         ABSOLUTE_SYSEXITS_H into sysexits.h.
1043
1044 2007-03-25  Bruno Haible  <bruno@clisp.org>
1045
1046         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
1047         hints is NULL.
1048
1049 2007-03-25  Bruno Haible  <bruno@clisp.org>
1050
1051         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
1052         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
1053
1054 2007-03-25  Bruno Haible  <bruno@clisp.org>
1055
1056         * lib/vasnprintf.c: Include langinfo.h.
1057         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
1058         multithread-safe.
1059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
1060         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
1061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1062         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1063         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1064         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1065         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1066         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
1067         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1068         Reported by Simon Josefsson.
1069
1070 2007-03-25  Bruno Haible  <bruno@clisp.org>
1071
1072         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
1073         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
1074         * modules/vasnprintf (Depends-on): Add stdint.
1075
1076 2007-03-25  Bruno Haible  <bruno@clisp.org>
1077
1078         * modules/fpieee: New file.
1079         * m4/fpieee.m4: New file.
1080         * modules/isnan-nolibm (Depends-on): Add fpieee.
1081         * modules/isnanl-nolibm (Depends-on): Add fpieee.
1082         * modules/isnanl (Depends-on): Add fpieee.
1083
1084 2007-03-25  Bruno Haible  <bruno@clisp.org>
1085
1086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
1087
1088 2007-03-25  Bruno Haible  <bruno@clisp.org>
1089
1090         Avoid test failures on IRIX 6.5.
1091         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
1092         (main): Use it.
1093         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
1094         macros.
1095         (main): Use them.
1096
1097 2007-03-25  Bruno Haible  <bruno@clisp.org>
1098
1099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
1100         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
1101         exists but doesn't work.
1102         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
1103         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
1104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
1105         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
1106
1107 2007-03-25  Bruno Haible  <bruno@clisp.org>
1108
1109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
1110         returns inf. Needed on IRIX 6.5.
1111
1112 2007-03-25  Bruno Haible  <bruno@clisp.org>
1113
1114         * tests/test-frexpl.c: Include isnanl-nolibm.h.
1115         (main): Use isnanl instead of x != x idiom.
1116         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
1117
1118         * tests/test-frexp.c: Include isnan.h.
1119         (main): Use isnan instead of x != x idiom.
1120         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
1121
1122 2007-03-25  Bruno Haible  <bruno@clisp.org>
1123
1124         * tests/test-frexp.c (NaN): New function/macro.
1125         (main): Use it instead of 0.0 / 0.0.
1126         * tests/test-isnan.c (NaN): New function/macro.
1127         (main): Use it instead of 0.0 / 0.0.
1128         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
1129         (test_function): Use it instead of 0.0 / 0.0.
1130         * tests/test-vasprintf-posix.c (NaN): New function/macro.
1131         (test_function): Use it instead of 0.0 / 0.0.
1132         * tests/test-snprintf-posix.h (NaN): New function/macro.
1133         (test_function): Use it instead of 0.0 / 0.0.
1134         * tests/test-sprintf-posix.h (NaN): New function/macro.
1135         (test_function): Use it instead of 0.0 / 0.0.
1136         * tests/test-fprintf-posix.h (NaN): New function/macro.
1137         (test_function): Use it instead of 0.0 / 0.0.
1138         * tests/test-printf-posix.h (NaN): New function/macro.
1139         (test_function): Use it instead of 0.0 / 0.0.
1140
1141         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
1142
1143 2007-03-25  Bruno Haible  <bruno@clisp.org>
1144
1145         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
1146
1147 2007-03-25  Bruno Haible  <bruno@clisp.org>
1148
1149         * lib/regexec.c (merge_state_with_log): Make static.
1150
1151 2007-03-25  Bruno Haible  <bruno@clisp.org>
1152
1153         * lib/trigl.c (kernel_rem_pio2): Make static.
1154
1155 2007-03-25  Bruno Haible  <bruno@clisp.org>
1156
1157         * lib/sincosl.c (sincosl_table): Make static.
1158
1159 2007-03-25  Bruno Haible  <bruno@clisp.org>
1160
1161         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
1162         if the compiler does not support C99.
1163
1164 2007-03-25  Bruno Haible  <bruno@clisp.org>
1165
1166         * modules/time (Makefile.am): Ensure all rule action lines start with a
1167         tab.
1168
1169 2007-03-24  Bruno Haible  <bruno@clisp.org>
1170
1171         * modules/tsearch-tests: New file.
1172         * tests/test-tsearch.sh: New file.
1173         * tests/test-tsearch.c: New file, mostly copied from glibc.
1174
1175         * modules/search-tests: New file.
1176         * tests/test-search.c: New file.
1177
1178         * modules/search: New file.
1179         * lib/search_.h: New file, incorporating lib/tsearch.h.
1180         * m4/search_h.m4: New file.
1181         * lib/tsearch.h: Remove file.
1182         * lib/tsearch.c: Include search.h instead of tsearch.h.
1183         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
1184         HAVE_TSEARCH.
1185         * modules/tsearch (Files): Remove lib/tsearch.h.
1186         (Depends-on): Add search.
1187         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
1188         (Include): Change tsearch.h into search.h.
1189
1190 2007-03-24  Bruno Haible  <bruno@clisp.org>
1191
1192         * modules/fpucw: New file.
1193         * lib/fpucw.h: New file.
1194         * lib/frexp.c: Include fpucw.h.
1195         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
1196         (FUNC): Use them.
1197         * lib/printf-frexp.c: Include fpucw.h.
1198         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
1199         (FUNC): Use them.
1200         * lib/vasnprintf.c: Include fpucw.h.
1201         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
1202         'long double' calculations.
1203         * tests/test-frexpl.c: Include fpucw.h.
1204         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
1205         * tests/test-printf-frexpl.c: Include fpucw.h.
1206         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
1207         * modules/frexpl (Depends-on): Add fpucw.
1208         * modules/printf-frexpl (Depends-on): Likewise.
1209         * modules/fprintf-posix (Depends-on): Likewise.
1210         * modules/snprintf-posix (Depends-on): Likewise.
1211         * modules/sprintf-posix (Depends-on): Likewise.
1212         * modules/vasnprintf-posix (Depends-on): Likewise.
1213         * modules/vasprintf-posix (Depends-on): Likewise.
1214         * modules/vfprintf-posix (Depends-on): Likewise.
1215         * modules/vsnprintf-posix (Depends-on): Likewise.
1216         * modules/vsprintf-posix (Depends-on): Likewise.
1217         * modules/frexpl-tests (Depends-on): Likewise.
1218         * modules/printf-frexpl-tests (Depends-on): Likewise.
1219
1220 2007-03-24  Bruno Haible  <bruno@clisp.org>
1221
1222         * lib/float+.h: New file.
1223         * lib/isnan.c: Include float+.h.
1224         (SIZE): New macro.
1225         (FUNC): Compare only SIZE bytes of the value.
1226         * lib/vasnprintf.c: Include float+.h.
1227         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
1228         SIZEOF_LDBL or SIZEOF_DBL bytes.
1229         * modules/isnan-nolibm (Files): Add lib/float+.h.
1230         * modules/isnanl-nolibm (Files): Add lib/float+.h.
1231         * modules/isnanl (Files): Add lib/float+.h.
1232         * modules/vasnprintf (Files): Add lib/float+.h.
1233
1234 2007-03-24  Bruno Haible  <bruno@clisp.org>
1235
1236         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
1237         include isnanl-nolibm.h.
1238
1239 2007-03-24  Bruno Haible  <bruno@clisp.org>
1240
1241         * tests/test-read-file.c (main): Don't produce spurious output for
1242         expected situations. Make the test fail if it encountered unexpected
1243         results.
1244
1245 2007-03-24  Bruno Haible  <bruno@clisp.org>
1246
1247         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
1248         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
1249
1250 2007-03-24  Bruno Haible  <bruno@clisp.org>
1251
1252         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
1253
1254 2007-03-24  Bruno Haible  <bruno@clisp.org>
1255
1256         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
1257         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
1258
1259         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
1260         * modules/utf8-ucs4: Turn into a symbolic link to module
1261         unistr/u8-mbtouc.
1262
1263         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
1264         utf8-ucs4-unsafe.
1265         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
1266         unistr/u8-mbtouc-unsafe.
1267
1268         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
1269         * modules/utf16-ucs4: Turn into a symbolic link to module
1270         unistr/u16-mbtouc.
1271
1272         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
1273         utf16-ucs4-unsafe.
1274         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
1275         unistr/u16-mbtouc-unsafe.
1276
1277         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
1278         * modules/ucs4-utf8: Turn into a symbolic link to module
1279         unistr/u8-ubtomb.
1280
1281         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
1282         * modules/ucs4-utf16: Turn into a symbolic link to module
1283         unistr/u16-ubtomb.
1284
1285 2007-03-24  Bruno Haible  <bruno@clisp.org>
1286
1287         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
1288         Enable the function only if HAVE_INLINE.
1289         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
1290         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
1291         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
1292         Enable the function only if HAVE_INLINE.
1293         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
1294         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
1295         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
1296         Enable the function only if HAVE_INLINE.
1297         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
1298         Enable the function only if HAVE_INLINE.
1299         * modules/utf8-ucs4: Update.
1300         * modules/utf8-ucs4-unsafe: Update.
1301         * modules/utf16-ucs4: Update.
1302         * modules/utf16-ucs4-unsafe: Update.
1303         * modules/ucs4-utf8: Update.
1304         * modules/ucs4-utf16: Update.
1305
1306 2007-03-24  Bruno Haible  <bruno@clisp.org>
1307
1308         * lib/utf8-ucs4.h: Remove file.
1309         * lib/utf8-ucs4-unsafe.h: Remove file.
1310         * lib/utf16-ucs4.h: Remove file.
1311         * lib/utf16-ucs4-unsafe.h: Remove file.
1312         * lib/ucs4-utf8.h: Remove file.
1313         * lib/ucs4-utf16.h: Remove file.
1314         * lib/unistr.h: Include their previous contents.
1315         * m4/utf-ucs4.m4: Remove file.
1316         * m4/ucs4-utf.m4: Remove file.
1317         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
1318         (Depends-on): Add unistr/base.
1319         (configure.ac): Remove gl_UTF_UCS4.
1320         (Makefile.am): Update.
1321         (Include): Change to unistr.h.
1322         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
1323         (Depends-on): Add unistr/base.
1324         (configure.ac): Remove gl_UTF_UCS4.
1325         (Makefile.am): Update.
1326         (Include): Change to unistr.h.
1327         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
1328         (Depends-on): Add unistr/base.
1329         (configure.ac): Remove gl_UTF_UCS4.
1330         (Makefile.am): Update.
1331         (Include): Change to unistr.h.
1332         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
1333         (Depends-on): Add unistr/base.
1334         (configure.ac): Remove gl_UTF_UCS4.
1335         (Makefile.am): Update.
1336         (Include): Change to unistr.h.
1337         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
1338         (Depends-on): Add unistr/base.
1339         (configure.ac): Remove gl_UCS4_UTF.
1340         (Makefile.am): Update.
1341         (Include): Change to unistr.h.
1342         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
1343         (Depends-on): Add unistr/base.
1344         (configure.ac): Remove gl_UCS4_UTF.
1345         (Makefile.am): Update.
1346         (Include): Change to unistr.h.
1347         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
1348         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
1349         utf8-ucs4-unsafe.h.
1350         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
1351         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
1352         utf16-ucs4-unsafe.h.
1353         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
1354         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
1355         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
1356         * lib/unistr/u8-strchr.c: Likewise.
1357         * lib/unistr/u8-strrchr.c: Likewise.
1358         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
1359         * lib/unistr/u16-strchr.c: Likewise.
1360         * lib/unistr/u16-strrchr.c: Likewise.
1361         * lib/striconveh.c: Update.
1362         * lib/linebreak.c: Update.
1363
1364 2007-03-24  Bruno Haible  <bruno@clisp.org>
1365
1366         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
1367         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
1368
1369 2007-03-22  Bruno Haible  <bruno@clisp.org>
1370
1371         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
1372
1373 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
1374
1375         * MODULES.html.sh (File system functions): New module write-any-file.
1376         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
1377         * m4/write-any-file.m4: New files.
1378
1379 2007-03-23  Eric Blake  <ebb9@byu.net>
1380
1381         * gnulib-tool: Rearrange space-tab sequences, since some editors
1382         like to eat them.
1383
1384 2007-03-23  Eric Blake  <ebb9@byu.net>
1385
1386         * lib/version-etc.c (version_etc_va): Update license wording to
1387         be more concise.  Recommended by Richard Stallman.
1388
1389 2007-03-22  Bruno Haible  <bruno@clisp.org>
1390
1391         * lib/poll.c (MSG_PEEK): New fallback definition.
1392
1393 2007-03-22  Bruno Haible  <bruno@clisp.org>
1394
1395         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
1396         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
1397         (main): Update.
1398         Fixes a compilation error on BeOS.
1399
1400 2007-03-22  Bruno Haible  <bruno@clisp.org>
1401
1402         * modules/frexpl-tests: New file.
1403         * tests/test-frexpl.c: New file.
1404
1405         * modules/frexpl: New file.
1406         * m4/frexpl.m4: New file.
1407         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
1408         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
1409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
1410         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
1411         (Depends-on): Add frexpl. Remove isnanl-nolibm.
1412         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
1413
1414 2007-03-22  Bruno Haible  <bruno@clisp.org>
1415
1416         * lib/frexpl.c: Share code with lib/frexp.c.
1417         * modules/mathl (Files): Add lib/frexp.c.
1418         (Depends-on): Add isnanl-nolibm.
1419
1420 2007-03-22  Bruno Haible  <bruno@clisp.org>
1421
1422         * modules/printf-frexp (Files): Add m4/frexp.m4.
1423         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
1424         only if the found frexp function actually works.
1425
1426 2007-03-22  Bruno Haible  <bruno@clisp.org>
1427
1428         * lib/frexp.c: Remove older implementation that uses divisions.
1429
1430 2007-03-21  Bruno Haible  <bruno@clisp.org>
1431
1432         * modules/frexp-tests: New file.
1433         * tests/test-frexp.c: New file.
1434
1435         * modules/frexp: New file.
1436         * lib/frexp.c: New file.
1437         * m4/frexp.m4: New file.
1438         * lib/math_.h (frexp): New declaration.
1439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
1440         REPLACE_FREXP.
1441         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
1442
1443 2007-03-21  Bruno Haible  <bruno@clisp.org>
1444
1445         * modules/isnanl-tests: New file.
1446         * tests/test-isnanl.c: New file.
1447
1448         * modules/isnanl: New file.
1449         * lib/isnanl.h: New file.
1450         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
1451         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
1452         gl_FUNC_ISNANL_WORKS.
1453         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
1454         New macros.
1455
1456 2007-03-21  Bruno Haible  <bruno@clisp.org>
1457
1458         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
1459         lib/isnanl.h.
1460         (Include): Update.
1461         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
1462         * lib/vasnprintf.c: Update.
1463         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
1464         tests/test-isnanl.h, remove tests/test-isnanl.c.
1465         (Makefile.am): Update.
1466         * tests/test-isnanl-nolibm.c: New file.
1467         * tests/test-isnanl.h: New file.
1468         * tests/test-isnanl.c: Remove file.
1469
1470 2007-03-21  Jim Meyering  <jim@meyering.net>
1471
1472         When trying to open ".", treat ESTALE like EACCES.
1473         * lib/savewd.c (savewd_save): Resort to forking not just upon
1474         failure with EACCES, but also when errno is ESTALE.
1475
1476 2007-03-20  Bruno Haible  <bruno@clisp.org>
1477
1478         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
1479         Needed on AIX 5.1. Reported by Matthew Woehlke.
1480
1481 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1482
1483         Suggestions by Bruno Haible:
1484         * lib/acl-internal.h: Include "gettext.h" rather than rolling
1485         our own.
1486         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
1487         * modules/acl (Depends-on): Add gettext.
1488
1489 2007-03-19  Bruno Haible  <bruno@clisp.org>
1490
1491         * modules/iconvme: Remove file.
1492         * lib/iconvme.h: Remove file.
1493         * lib/iconvme.c: Remove file.
1494         * m4/iconvme.m4: Remove file.
1495
1496 2007-03-19  Bruno Haible  <bruno@clisp.org>
1497
1498         * doc/relocatable-maint.texi: Break long shell script line.
1499         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
1500
1501 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1502
1503         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
1504         handle file_has_acl.
1505         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
1506         * lib/acl.c: Move header inclusions and related macro defns into
1507         lib/acl-internal.h.
1508         (S_ISLNK): Remove defn, since that's now done for us.
1509         (file_has_acl): Move to lib/file-has-acl.c.
1510         Call acl_trivial if available.  This is the crucial part of the fix.
1511         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
1512         shared within the library.  Rewrite a bit, partly to make it compatible
1513         with the GNU coding style.
1514         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
1515         Remove unnecessary double-quotes.
1516         Don't test for acl_to_text; the build will catch that.
1517         Replace acl_entries if it doesn't exist and it is needed.
1518         Check for -lsec and acl_trivial (as used on Solaris 10).
1519         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
1520         lib/file-has-acl.c.
1521         (Depends-on): Add sys_stat, for S_ISLNK.
1522
1523 2007-03-19  Ben Pfaff  <blp@gnu.org>
1524
1525         * doc/gnulib.texi: Fix typos.
1526         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
1527
1528 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1529
1530         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
1531         If size is zero here, buf must be zero.
1532
1533 2007-03-19  Simon Josefsson  <simon@josefsson.org>
1534
1535         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
1536         <bruno@clisp.org>.
1537
1538 2007-03-18  Bruno Haible  <bruno@clisp.org>
1539
1540         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
1541         Suggested by Eric Blake.
1542
1543 2007-03-18  Ben Pfaff  <blp@gnu.org>
1544
1545         * doc/relocatable.texi: Recommend using as prefix a directory
1546         that does not exist and will never be created.  Based on
1547         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
1548         and others.
1549
1550 2007-03-17  Bruno Haible  <bruno@clisp.org>
1551
1552         * lib/fchownat.c: Include lchown.h.
1553
1554 2007-03-17  Bruno Haible  <bruno@clisp.org>
1555
1556         Fix endless loop when the given allocated size was > INT_MAX.
1557         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
1558         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
1559         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
1560         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
1561         * lib/sprintf.c (sprintf): Likewise.
1562
1563 2007-03-17  Bruno Haible  <bruno@clisp.org>
1564
1565         * tests/test-argp-2.sh (func_compare): Output a context diff.
1566
1567 2007-03-17  Bruno Haible  <bruno@clisp.org>
1568
1569         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
1570         locale's decimal-point character.
1571
1572 2007-03-17  Bruno Haible  <bruno@clisp.org>
1573
1574         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
1575         before comparing it. Needed because on some platforms (e.g. x86) a
1576         'long double' occupies less bytes than sizeof (long double).
1577
1578 2007-03-17  Bruno Haible  <bruno@clisp.org>
1579
1580         * tests/test-crc.c (main): Make printf statements 64-bit clean.
1581         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
1582         * tests/test-getaddrinfo.c (simple): Likewise.
1583         * tests/test-read-file.c (main): Likewise.
1584
1585 2007-03-17  Bruno Haible  <bruno@clisp.org>
1586
1587         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
1588
1589 2007-03-17  Bruno Haible  <bruno@clisp.org>
1590
1591         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
1592         unused variable.
1593
1594 2007-03-17  Bruno Haible  <bruno@clisp.org>
1595
1596         * tests/test-c-strcasecmp.c: Include c-strcase.h.
1597         * tests/test-c-strncasecmp.c: Likewise.
1598
1599 2007-03-17  Bruno Haible  <bruno@clisp.org>
1600
1601         * modules/stdlib (Depends-on): Add unistd.
1602         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
1603         Needed for MacOS X 10.3.
1604
1605 2007-03-17  Bruno Haible  <bruno@clisp.org>
1606
1607         * lib/unistr/u-strdup.h: Include <stdlib.h>.
1608
1609 2007-03-17  Bruno Haible  <bruno@clisp.org>
1610
1611         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
1612
1613 2007-03-17  Bruno Haible  <bruno@clisp.org>
1614
1615         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
1616         to reflect files copied from gnulib (with or without modifications).
1617         Suggested by Jim Meyering.
1618
1619 2007-03-17  Eric Blake  <ebb9@byu.net>
1620
1621         * NEWS: Document stdlib change from 2007-02-18.
1622
1623 2007-03-17  Jim Meyering  <jim@meyering.net>
1624
1625         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
1626         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
1627         someone uses a name containing shell meta-characters.
1628         Reported by Alfred M. Szmidt.
1629
1630         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
1631
1632 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
1633
1634         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
1635         and copy gettext configuration files only if configure.ac contains
1636         a use of AM_GNU_GETTEXT_VERSION.
1637
1638 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
1639
1640         * build-aux/bootstrap (gnulib_name): New variable.
1641         (gnulib_tool_options): Use it.
1642
1643 2007-03-13  Simon Josefsson  <simon@josefsson.org>
1644
1645         * tests/test-des.c: Use new namespace.
1646
1647 2007-03-15  Bruno Haible  <bruno@clisp.org>
1648
1649         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
1650         Reported by James Youngman <jay@gnu.org>.
1651
1652 2007-03-15  Bruno Haible  <bruno@clisp.org>
1653
1654         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
1655         declared prototype. Needed with cc on OSF/1 5.1.
1656
1657 2007-03-15  Bruno Haible  <bruno@clisp.org>
1658
1659         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
1660         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
1661         (struct gl_list_implementation): Add dispose_fn argument to the
1662         'create_empty', 'create' methods.
1663         (struct gl_list_impl_base): Add field 'dispose_fn'.
1664         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
1665         argument.
1666         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
1667         dispose_fn argument.
1668         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
1669         dispose_fn on the dropped values.
1670         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
1671         dispose_fn argument.
1672         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
1673         dropped values.
1674         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
1675         (gl_tree_remove_node): Call dispose_fn on the dropped value.
1676         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
1677         (gl_tree_remove_node): Call dispose_fn on the dropped value.
1678         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
1679         argument.
1680         (gl_tree_list_free): Call dispose_fn on the dropped values.
1681         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
1682         the dropped values.
1683         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
1684         Add dispose_fn argument.
1685         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
1686         Call dispose_fn on the dropped values.
1687         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
1688         Add dispose_fn argument.
1689         (gl_sublist_create): Initialize the 'dispose_fn' field.
1690         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
1691         * tests/test-array_list.c (main): Update.
1692         * tests/test-carray_list.c (main): Update.
1693         * tests/test-avltree_list.c (main): Update.
1694         * tests/test-rbtree_list.c (main): Update.
1695         * tests/test-avltreehash_list.c (main): Update.
1696         * tests/test-rbtreehash_list.c (main): Update.
1697         * tests/test-linked_list.c (main): Update.
1698         * tests/test-linkedhash_list.c (main): Update.
1699         * tests/test-array_oset.c (main): Update.
1700
1701 2007-03-15  Bruno Haible  <bruno@clisp.org>
1702
1703         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
1704         (gl_oset_create_empty): Add dispose_fn argument.
1705         (struct gl_oset_implementation): Add dispose_fn argument to
1706         'create_empty' method.
1707         (struct gl_oset_impl_base): Add dispose_fn field.
1708         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
1709         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
1710         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
1711         values.
1712         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
1713         (gl_tree_oset_free): Call dispose_fn on the dropped values.
1714         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
1715         dropped value.
1716         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
1717         dropped value.
1718         * tests/test-array_oset.c (main): Update.
1719         * tests/test-avltree_oset.c (main): Update.
1720         * tests/test-rbtree_oset.c (main): Update.
1721         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
1722
1723 2007-03-13  Bruno Haible  <bruno@clisp.org>
1724
1725         * tests/test-stdbool.c (i): Update after last patch.
1726
1727 2007-03-12  Bruno Haible  <bruno@clisp.org>
1728
1729         * lib/quotearg.c: Include <wctype.h> early, before the definition of
1730         the iswprint macro. Needed on Solaris 2.5.1.
1731
1732 2007-03-12  Bruno Haible  <bruno@clisp.org>
1733
1734         * tests/test-printf-frexp.c (main): Declare x as volatile.
1735
1736 2007-03-12  Simon Josefsson  <simon@josefsson.org>
1737
1738         * doc/gnulib.texi (Build robot for gnulib): New section.
1739
1740 2007-03-12  Jim Meyering  <jim@meyering.net>
1741
1742         * build-aux/bootstrap: New file.
1743         * build-aux/bootstrap.conf: New file, from coreutils.
1744
1745 2007-03-11  Bruno Haible  <bruno@clisp.org>
1746
1747         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
1748
1749 2007-03-12  Simon Josefsson  <simon@josefsson.org>
1750
1751         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
1752         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
1753         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
1754
1755 2007-03-11  Bruno Haible  <bruno@clisp.org>
1756
1757         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
1758         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
1759
1760 2007-03-11  Bruno Haible  <bruno@clisp.org>
1761
1762         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
1763         formula. Needed for SunPRO C 5.0.
1764
1765 2007-03-11  Bruno Haible  <bruno@clisp.org>
1766
1767         * modules/long-options (Depends-on): Add getopt.
1768
1769 2007-03-11  Bruno Haible  <bruno@clisp.org>
1770
1771         * modules/modechange (Depends-on): Add stdbool.
1772
1773 2007-03-11  Bruno Haible  <bruno@clisp.org>
1774
1775         * modules/i-ring (Depends-on): Add stdbool.
1776
1777 2007-03-11  Bruno Haible  <bruno@clisp.org>
1778
1779         * modules/gc-des (Depends-on): Add stdbool.
1780
1781 2007-03-11  Bruno Haible  <bruno@clisp.org>
1782
1783         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
1784
1785 2007-03-11  Bruno Haible  <bruno@clisp.org>
1786
1787         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
1788
1789 2007-03-11  Bruno Haible  <bruno@clisp.org>
1790
1791         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
1792
1793 2007-03-11  Bruno Haible  <bruno@clisp.org>
1794
1795         * lib/vasnprintf.c (sprintf): Undefine.
1796
1797 2007-03-11  Bruno Haible  <bruno@clisp.org>
1798
1799         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
1800         initializers in SunPRO C and Compaq C compilers.
1801
1802 2007-03-11  Bruno Haible  <bruno@clisp.org>
1803
1804         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
1805         decrementing code ANSI C compliant.
1806
1807 2007-03-11  Bruno Haible  <bruno@clisp.org>
1808
1809         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
1810         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
1811
1812 2007-03-11  Bruno Haible  <bruno@clisp.org>
1813
1814         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
1815         <stdbool.h> substitute doesn't pass.
1816
1817 2007-03-11  Bruno Haible  <bruno@clisp.org>
1818
1819         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
1820
1821 2007-03-11  Bruno Haible  <bruno@clisp.org>
1822
1823         * gnulib-tool (func_create_megatestdir): Create also an autobuild
1824         script, for submission to autobuild.josefsson.org.
1825
1826 2007-03-10  Bruno Haible  <bruno@clisp.org>
1827
1828         * modules/canonicalize-lgpl-tests: New file.
1829         * tests/test-canonicalize-lgpl.sh: New file.
1830         * tests/test-canonicalize-lgpl.c: New file.
1831
1832         * modules/c-strcase-tests: New file.
1833         * tests/test-c-strcase.sh: New file.
1834         * tests/test-c-strcasecmp.c: New file.
1835         * tests/test-c-strncasecmp.c: New file.
1836
1837         * modules/atexit-tests: New file.
1838         * tests/test-atexit.sh: New file.
1839         * tests/test-atexit.c: New file.
1840
1841 2007-03-10  Bruno Haible  <bruno@clisp.org>
1842
1843         * tests/test-binary-io.sh: Use temporary filenames that are not so
1844         likely to clash with those of other tests (in a parallel make).
1845         * tests/test-binary-io.c: Likewise.
1846
1847 2007-03-10  Bruno Haible  <bruno@clisp.org>
1848
1849         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
1850         fallback; use #error instead.
1851         Suggested by Simon Josefsson.
1852
1853 2007-03-10  Bruno Haible  <bruno@clisp.org>
1854
1855         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
1856         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
1857         first and the last.
1858
1859 2007-03-10  Bruno Haible  <bruno@clisp.org>
1860
1861         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
1862
1863 2007-03-10  Bruno Haible  <bruno@clisp.org>
1864
1865         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
1866         "make distcheck".
1867         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
1868         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
1869         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
1870
1871 2007-03-10  Bruno Haible  <bruno@clisp.org>
1872
1873         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
1874         variable.
1875         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
1876         variable.
1877
1878 2007-03-09  Eric Blake  <ebb9@byu.net>
1879         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
1880
1881         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
1882         types are not being provided by gnulib.
1883         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
1884         types are supported.
1885
1886 2007-03-10  Bruno Haible  <bruno@clisp.org>
1887
1888         * lib/stdio_.h (__attribute__): New macro.
1889         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
1890         vsprintf): Specify __attribute__ __format__ for GCC.
1891         Suggested by Eric Blake.
1892
1893 2007-03-09  Bruno Haible  <bruno@clisp.org>
1894
1895         * modules/printf-posix-tests: New file.
1896         * tests/test-printf-posix.sh: New file.
1897         * tests/test-printf-posix.c: New file.
1898
1899         * modules/printf-posix: New file.
1900         * lib/printf.c: New file.
1901         * m4/printf-posix-rpl.m4: New file.
1902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
1903         REPLACE_PRINTF.
1904         * lib/stdio_.h (printf): New declaration.
1905         (format, __format__, ____printf____, ____scanf____, ____strftime____,
1906         ____strfmon____): New macros.
1907         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
1908         REPLACE_PRINTF.
1909
1910 2007-03-09  Bruno Haible  <bruno@clisp.org>
1911
1912         * tests/test-vasnprintf-posix2.sh: New file.
1913         * tests/test-vasnprintf-posix2.c: New file.
1914         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
1915         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
1916         (Makefile.am): Activate test-vasnprintf-posix2.sh.
1917
1918         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
1919         a locale dependent decimal point, rather than always '.'.
1920
1921 2007-03-09  Eric Blake  <ebb9@byu.net>
1922
1923         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
1924         spite of platforms like Tandem/NSK that define it to -1.
1925
1926 2007-03-08  Bruno Haible  <bruno@clisp.org>
1927
1928         * modules/vprintf-posix-tests: New file.
1929         * tests/test-vprintf-posix.sh: New file.
1930         * tests/test-vprintf-posix.c: New file.
1931         * tests/test-printf-posix.h: New file.
1932
1933         * modules/vprintf-posix: New file.
1934         * lib/vprintf.c: New file.
1935         * m4/vprintf-posix.m4: New file.
1936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
1937         REPLACE_VPRINTF.
1938         * lib/stdio_.h (vprintf): New declaration.
1939         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
1940         REPLACE_VPRINTF.
1941
1942 2007-03-08  Bruno Haible  <bruno@clisp.org>
1943
1944         * modules/fprintf-posix-tests: New file.
1945         * tests/test-fprintf-posix.sh: New file.
1946         * tests/test-fprintf-posix.c: New file.
1947
1948         * modules/fprintf-posix: New file.
1949         * lib/fprintf.c: New file.
1950         * m4/fprintf-posix.m4: New file.
1951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
1952         REPLACE_FPRINTF.
1953         * lib/stdio_.h (fprintf): New declaration.
1954         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
1955         REPLACE_FPRINTF.
1956
1957 2007-03-08  Bruno Haible  <bruno@clisp.org>
1958
1959         * modules/vfprintf-posix-tests: New file.
1960         * tests/test-vfprintf-posix.sh: New file.
1961         * tests/test-vfprintf-posix.c: New file.
1962         * tests/test-fprintf-posix.h: New file.
1963         * tests/test-fprintf-posix.out: New file.
1964
1965         * modules/vfprintf-posix: New file.
1966         * lib/vfprintf.c: New file.
1967         * m4/vfprintf-posix.m4: New file.
1968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
1969         REPLACE_VFPRINTF.
1970         * lib/stdio_.h (vfprintf): New declaration.
1971         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
1972         REPLACE_VFPRINTF.
1973
1974 2007-03-08  Bruno Haible  <bruno@clisp.org>
1975
1976         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
1977
1978 2007-03-08  Bruno Haible  <bruno@clisp.org>
1979
1980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
1981         instead of 'expr' invocations.
1982         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1983         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1984         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1987         Suggested by Paul Eggert.
1988
1989 2007-03-08  Bruno Haible  <bruno@clisp.org>
1990
1991         * modules/fseterr-tests: New file.
1992         * tests/test-fseterr.c: New file.
1993
1994         * modules/fseterr: New file.
1995         * lib/fseterr.h: New file.
1996         * lib/fseterr.c: New file.
1997
1998 2007-03-08  Bruno Haible  <bruno@clisp.org>
1999
2000         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
2001         * lib/getopt_.h: Likewise.
2002         * lib/mbswidth.h: Likewise.
2003         * lib/setenv.h: Likewise.
2004         * lib/vasnprintf.h: Likewise.
2005         * lib/vasprintf.h: Likewise.
2006         * lib/verror.h: Likewise.
2007         * lib/xsetenv.h: Likewise.
2008         * lib/xvasprintf.h: Likewise.
2009
2010 2007-03-08  Jim Meyering  <jim@meyering.net>
2011
2012         * users.txt: Add parted.
2013
2014         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
2015
2016 2007-03-07  Bruno Haible  <bruno@clisp.org>
2017
2018         * m4/printf.m4: Make the shell script snippets copy&pastable.
2019
2020 2007-03-02  Bruno Haible  <bruno@clisp.org>
2021
2022         * lib/netinet_in_.h: New file.
2023         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
2024         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
2025         * modules/netinet_in (Files): Add lib/netinet_in_.h.
2026         (Depends-on): Add absolute-header.
2027         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
2028         into netinet/in.h.
2029
2030 2007-03-03  Bruno Haible  <bruno@clisp.org>
2031
2032         * lib/sys_select_.h: New file.
2033         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
2034         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
2035         * modules/sys_select (Files): Add lib/sys_select_.h.
2036         (Depends-on): Add absolute-header.
2037         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
2038         into sys/select.h.
2039
2040 2007-03-02  Bruno Haible  <bruno@clisp.org>
2041
2042         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
2043         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
2044         values.
2045         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
2046         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
2047         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
2048         * modules/sys_socket (Depends-on): Add absolute-header.
2049         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
2050         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
2051         (Include): Remove requirement of inclusion of <sys/types.h>.
2052
2053 2007-03-02  Bruno Haible  <bruno@clisp.org>
2054
2055         * lib/byteswap_.h (bswap_32): Fix formula.
2056
2057 2007-03-06  Bruno Haible  <bruno@clisp.org>
2058
2059         * modules/sprintf-posix-tests: New file.
2060         * tests/test-sprintf-posix.c: New file.
2061
2062         * modules/sprintf-posix: New file.
2063         * lib/sprintf.c: New file.
2064         * m4/sprintf-posix.m4: New file.
2065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
2066         REPLACE_SPRINTF.
2067         * lib/stdio_.h (sprintf): New declaration.
2068         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
2069         REPLACE_SPRINTF.
2070
2071 2007-03-06  Bruno Haible  <bruno@clisp.org>
2072
2073         * modules/vsprintf-posix-tests: New file.
2074         * tests/test-vsprintf-posix.c: New file.
2075         * tests/test-sprintf-posix.h: New file.
2076
2077         * modules/vsprintf-posix: New file.
2078         * lib/vsprintf.c: New file.
2079         * m4/vsprintf-posix.m4: New file.
2080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
2081         REPLACE_VSPRINTF.
2082         * lib/stdio_.h (vsprintf): New declaration.
2083         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
2084         REPLACE_VSPRINTF.
2085
2086 2007-03-06  Bruno Haible  <bruno@clisp.org>
2087
2088         * modules/vsnprintf (Depend-on): Remove minmax.
2089
2090 2007-03-06  Bruno Haible  <bruno@clisp.org>
2091
2092         * modules/snprintf-posix-tests: New file.
2093         * tests/test-snprintf-posix.c: New file.
2094
2095         * modules/snprintf-posix: New file.
2096         * m4/snprintf-posix.m4: New file.
2097         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
2098         gl_FUNC_SNPRINTF.
2099         (gl_FUNC_SNPRINTF): Invoke it.
2100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
2101         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
2102         is set.
2103         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
2104
2105 2007-03-06  Bruno Haible  <bruno@clisp.org>
2106
2107         * modules/vsnprintf-posix-tests: New file.
2108         * tests/test-vsnprintf-posix.c: New file.
2109         * tests/test-snprintf-posix.h: New file.
2110
2111         * modules/vsnprintf-posix: New file.
2112         * m4/vsnprintf-posix.m4: New file.
2113         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
2114         gl_FUNC_VSNPRINTF.
2115         (gl_FUNC_VSNPRINTF): Invoke it.
2116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
2117         * lib/stdio_.h (vsnprintf): Define as a replacement if
2118         REPLACE_VSNPRINTF is set.
2119         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
2120
2121 2007-03-06  Bruno Haible  <bruno@clisp.org>
2122
2123         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
2124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
2125
2126 2007-03-06  Bruno Haible  <bruno@clisp.org>
2127
2128         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
2129         (asinl): Declare also if HAVE_DECL_ASINL is set.
2130         (atanl): Declare also if HAVE_DECL_ATANL is set.
2131         (ceill): Declare also if HAVE_DECL_CEILL is set.
2132         (cosl): Declare also if HAVE_DECL_COSL is set.
2133         (expl): Declare also if HAVE_DECL_EXPL is set.
2134         (floorl): Declare also if HAVE_DECL_FLOORL is set.
2135         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
2136         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
2137         (logl): Declare also if HAVE_DECL_LOGL is set.
2138         (sinl): Declare also if HAVE_DECL_SINL is set.
2139         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
2140         (tanl): Declare also if HAVE_DECL_TANL is set.
2141         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
2142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
2143         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
2144         declaration of frexpl, ldexpl.
2145         * modules/printf-frexpl (Depends-on): Add math.
2146         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
2147
2148 2007-03-05  Bruno Haible  <bruno@clisp.org>
2149
2150         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
2151         frexpl and ldexpl are declared.
2152         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
2153
2154 2007-03-05  Bruno Haible  <bruno@clisp.org>
2155
2156         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
2157         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
2158
2159 2007-03-05  Bruno Haible  <bruno@clisp.org>
2160
2161         * lib/stdio_.h: Include <stddef.h>.
2162
2163 2007-03-05  Bruno Haible  <bruno@clisp.org>
2164
2165         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
2166
2167 2007-03-05  Bruno Haible  <bruno@clisp.org>
2168
2169         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
2170         NetBSD 4, from Ralf Wildenhues.
2171
2172 2007-03-04  Bruno Haible  <bruno@clisp.org>
2173
2174         * lib/vasprintf.h: Update #if logic for the case when the functions
2175         exist but are overridden.
2176
2177 2007-03-04  Bruno Haible  <bruno@clisp.org>
2178
2179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
2180         implementations: glibc-2.4 and MacOS X 10.3.
2181         * tests/test-vasnprintf-posix.c (test_function): Test also the case
2182         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
2183         * tests/test-vasprintf-posix.c (test_function): Likewise.
2184
2185 2007-03-04  Bruno Haible  <bruno@clisp.org>
2186
2187         * modules/vasprintf-posix-tests: New file.
2188         * tests/test-vasprintf-posix.c: New file.
2189
2190         * modules/vasprintf-posix: New file.
2191         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
2192         defined.
2193         * m4/vasprintf-posix.m4: New file.
2194         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
2195         gl_FUNC_VASPRINTF.
2196         (gl_FUNC_VASPRINTF): Invoke it.
2197         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
2198         here.
2199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
2200
2201 2007-03-04  Bruno Haible  <bruno@clisp.org>
2202
2203         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
2204         REPLACE_GETTIMEOFDAY.
2205         * modules/sys_time (Makefile.am): Likewise.
2206         * m4/sys_time_h.m4: Likewise.
2207         * m4/gettimeofday.m4: Likewise.
2208
2209 2007-03-04  Bruno Haible  <bruno@clisp.org>
2210
2211         * modules/vasnprintf-posix-tests: New file.
2212         * tests/test-vasnprintf-posix.c: New file.
2213
2214         * modules/vasnprintf-posix: New file.
2215         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
2216         printf-frexpl.h.
2217         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
2218         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
2219         REPLACE_VASNPRINTF is defined.
2220         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
2221         gl_FUNC_VASNPRINTF.
2222         (gl_FUNC_VASNPRINTF): Invoke it.
2223         * m4/vasnprintf-posix.m4: New file.
2224         * m4/printf.m4: New file.
2225
2226 2007-03-04  Bruno Haible  <bruno@clisp.org>
2227
2228         Compile progreloc.c only if --enable-relocatable is specified.
2229         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
2230         if --enable-relocatable was specified.
2231         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
2232         lib_SOURCES.
2233
2234 2007-03-04  Jim Meyering  <jim@meyering.net>
2235
2236         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
2237         Use it consistently, rather than enumerating errno constants.
2238
2239 2007-03-04  Bruno Haible  <bruno@clisp.org>
2240
2241         * modules/xvasprintf-tests: New file.
2242         * tests/test-xvasprintf.c: New file.
2243
2244         * modules/vasprintf-tests: New file.
2245         * tests/test-vasprintf.c: New file.
2246
2247         * modules/vasnprintf-tests: New file.
2248         * tests/test-vasnprintf.c: New file.
2249
2250         * modules/vsnprintf-tests: New file.
2251         * tests/test-vsnprintf.c: New file.
2252
2253         * modules/snprintf-tests: New file.
2254         * tests/test-snprintf.c: New file.
2255
2256 2007-03-04  Bruno Haible  <bruno@clisp.org>
2257
2258         Compile relocatable.c only if --enable-relocatable is specified.
2259         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
2260         gl_RELOCATABLE_LIBRARY.
2261         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
2262         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
2263         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
2264         gl_RELOCATABLE_LIBRARY.
2265         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
2266         (Makefile.am): Remove lib_SOURCES.
2267         * modules/relocatable-lib-lgpl (configure.ac): Invoke
2268         gl_RELOCATABLE_LIBRARY.
2269         (Makefile.am): Remove lib_SOURCES.
2270         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
2271         always.
2272         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2273         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
2274
2275 2007-03-04  Bruno Haible  <bruno@clisp.org>
2276
2277         * modules/argmatch-tests: New file.
2278         * tests/test-argmatch.c: New file.
2279
2280         * tests/test-allocsa.c (main): Halve the number of loop runs.
2281
2282         * modules/alloca-opt-tests: New file.
2283         * tests/test-alloca-opt.c: New file.
2284
2285 2007-03-04  Jim Meyering  <jim@meyering.net>
2286
2287         Work around difference between Linux ACLs and Solaris 10 ZFS.
2288         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
2289         for EINVAL.
2290
2291 2007-03-03  Bruno Haible  <bruno@clisp.org>
2292
2293         * modules/relocatable-prog (Depends-on): Add back progreloc's
2294         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
2295
2296 2007-03-03  Bruno Haible  <bruno@clisp.org>
2297
2298         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
2299         * modules/relocatable-lib: New file.
2300
2301 2007-03-03  Bruno Haible  <bruno@clisp.org>
2302
2303         * modules/relocatable-prog: Renamed from modules/relocatable.
2304         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
2305
2306 2007-03-03  Bruno Haible  <bruno@clisp.org>
2307
2308         * modules/relocatable-script (Files): Add doc/relocatable.texi,
2309         m4/relocatable-lib.m4.
2310         (Depends-on): Remove 'relocatable'.
2311         (configure.ac): Add gl_RELOCATABLE_NOP.
2312
2313 2007-03-03  Bruno Haible  <bruno@clisp.org>
2314
2315         * modules/relocatable-prog-wrapper: New file.
2316         * modules/relocatable (Depends-on): Add it. Remove all other
2317         dependencies except progname.
2318         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
2319
2320         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
2321         (gl_FUNC_STRERROR): Nop.
2322         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
2323
2324         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
2325         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
2326
2327         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
2328         (gl_FUNC_READLINK): Update.
2329
2330         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
2331
2332 2007-03-03  Bruno Haible  <bruno@clisp.org>
2333
2334         * lib/xreadlink.c: Include <unistd.h> unconditionally.
2335         * modules/xreadlink (Depends-on): Add unistd.
2336         * modules/xreadlink-with-size (Depends-on): Likewise.
2337
2338 2007-03-03  Bruno Haible  <bruno@clisp.org>
2339
2340         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
2341         extracted from gt_FUNC_SETENV.
2342         (gt_FUNC_SETENV): Remove macro.
2343         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
2344         remove gt_FUNC_SETENV.
2345
2346 2007-03-03  Bruno Haible  <bruno@clisp.org>
2347
2348         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
2349         ENABLE_RELOCATABLE here.
2350         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
2351
2352 2007-03-03  Bruno Haible  <bruno@clisp.org>
2353
2354         * modules/rbtreehash-list-tests (Depends-on): Add progname.
2355         * tests/test-rbtreehash_list.c: Include progname.h.
2356         (main): Call set_program_name.
2357
2358         * modules/rbtree-oset-tests (Depends-on): Add progname.
2359         * tests/test-rbtree_oset.c: Include progname.h.
2360         (main): Call set_program_name.
2361
2362         * modules/rbtree-list-tests (Depends-on): Add progname.
2363         * tests/test-rbtree_list.c: Include progname.h.
2364         (main): Call set_program_name.
2365
2366         * modules/linked-list-tests (Depends-on): Add progname.
2367         * tests/test-linked_list.c: Include progname.h.
2368         (main): Call set_program_name.
2369
2370 2007-03-03  Bruno Haible  <bruno@clisp.org>
2371
2372         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
2373         All uses of __restrict changed to _Restrict_.
2374         * lib/glob_.h (__restrict): Remove macro.
2375
2376 2007-03-02  Bruno Haible  <bruno@clisp.org>
2377
2378         * modules/gettext (configure.ac): Require gettext infrastructure
2379         from version 0.16.1.
2380
2381 2007-03-02  Bruno Haible  <bruno@clisp.org>
2382
2383         * modules/linkedhash-list-tests (Depends-on): Add progname.
2384         * tests/test-linkedhash_list.c: Include progname.h.
2385         (main): Call set_program_name.
2386
2387         * modules/carray-list-tests (Depends-on): Add progname.
2388         * tests/test-carray_list.c: Include progname.h.
2389         (main): Call set_program_name.
2390
2391         * modules/avltreehash-list-tests (Depends-on): Add progname.
2392         * tests/test-avltreehash_list.c: Include progname.h.
2393         (main): Call set_program_name.
2394
2395         * modules/avltree-oset-tests (Depends-on): Add progname.
2396         * tests/test-avltree_oset.c: Include progname.h.
2397         (main): Call set_program_name.
2398
2399         * modules/avltree-list-tests (Depends-on): Add progname.
2400         * tests/test-avltree_list.c: Include progname.h.
2401         (main): Call set_program_name.
2402
2403         * modules/array-oset-tests (Depends-on): Add progname.
2404         * tests/test-array_oset.c: Include progname.h.
2405         (main): Call set_program_name.
2406
2407         * modules/array-list-tests (Depends-on): Add progname.
2408         * tests/test-array_list.c: Include progname.h.
2409         (main): Call set_program_name.
2410
2411         * modules/argp-tests (Depends-on): Add progname.
2412         * tests/test-argp.c: Include argp.h first. Include progname.h.
2413         (main): Call set_program_name.
2414
2415 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
2416
2417         * doc/gnulib-tool.texi (Initial import): Reword description of
2418         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
2419         limited effect even if defined after the first system include.
2420
2421 2007-03-01  Bruno Haible  <bruno@clisp.org>
2422
2423         * build-aux/config.libpath: Update to libtool-1.5.22.
2424         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2425
2426 2007-03-01  Bruno Haible  <bruno@clisp.org>
2427
2428         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
2429         foo_CFLAGS.
2430         Reported by Ralf Wildenhues.
2431
2432 2007-03-01  Bruno Haible  <bruno@clisp.org>
2433
2434         * build-aux/install-reloc: Remove object files left over by some
2435         compilers.
2436         Reported by Ralf Wildenhues.
2437
2438 2007-03-01  Bruno Haible  <bruno@clisp.org>
2439
2440         * build-aux/install-reloc: Break long lines.
2441
2442 2007-03-01  Bruno Haible  <bruno@clisp.org>
2443
2444         * doc/relocatable.texi: Document that it may not work on OpenBSD.
2445         Reported by Ralf Wildenhues.
2446
2447 2007-03-01  Bruno Haible  <bruno@clisp.org>
2448
2449         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
2450         include ordering constraints.
2451
2452 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
2453
2454         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
2455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
2456         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
2457         as another example.
2458         * lib/time_.h: Fix misspelling.
2459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2460         Require gl_HEADER_TIME_H_DEFAULTS.
2461         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
2462         * m4/time_r.m4 (gl_TIME_R): Likewise.
2463         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
2464
2465 2007-03-01  Bruno Haible  <bruno@clisp.org>
2466
2467         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
2468         * m4/utimens.m4 (gl_UTIMENS): Likewise.
2469
2470 2007-03-01  Jim Meyering  <jim@meyering.net>
2471
2472         * modules/xreadlink (Maintainer): Add my name.
2473         * modules/xreadlink-with-size (Depends-on): Alphabetize.
2474
2475 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
2476             Bruno Haible  <bruno@clisp.org>
2477
2478         * build-aux/install-reloc: Compile also c-ctype.c.
2479         * build-aux/relocatable.sh.in: New file.
2480         * doc/relocatable.texi: New file.
2481         * doc/relocatable-maint.texi: New file.
2482         * doc/gnulib.texi: Include relocatable-maint.texi.
2483         * lib/progreloc.c: Include unistd.h unconditionally.
2484         * lib/relocwrapper.c: Include unistd.h unconditionally.
2485         Include c-ctype.h.
2486         (add_dotbin): Use c_tolower.
2487         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
2488         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
2489         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
2490         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
2491         to m4/relocatable-lib.m4.
2492         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
2493         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
2494         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
2495         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
2496         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
2497         * modules/relocatable: New file.
2498         * modules/relocatable-lib: New file.
2499         * modules/relocatable-script: New file.
2500
2501 2007-02-28  Bruno Haible  <bruno@clisp.org>
2502
2503         Import --enable-relocatable infrastructure.
2504         * build-aux/config.libpath: New file, from GNU gettext.
2505         * build-aux/install-reloc: New file, from GNU gettext.
2506         * build-aux/reloc-ldflags: New file, from GNU gettext.
2507         * lib/relocatable.h: New file, from GNU gettext.
2508         * lib/relocatable.c: New file, from GNU gettext.
2509         * lib/relocwrapper.c: New file, from GNU gettext.
2510         * m4/relocatable.m4: New file, from GNU gettext.
2511
2512 2007-02-28  Bruno Haible  <bruno@clisp.org>
2513
2514         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
2515
2516         * modules/xreadlink: New file, from GNU gettext with modifications.
2517         * lib/xreadlink.c: New file, from GNU gettext.
2518         * lib/xreadlink.h: Add comments.
2519         (xreadlink): New declaration.
2520
2521         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
2522         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
2523         lib/xreadlink-with-size.c.
2524         (configure.ac): Remove gl_XREADLINK invocation.
2525         (Makefile.am): Augment lib_SOURCES.
2526         * m4/xreadlink.m4: Remove file.
2527         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
2528         (xreadlink_with_size): Renamed from xreadink.
2529         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
2530         * modules/canonicalize (Depends-on): Replace xreadlink with
2531         xreadlink-with-size.
2532         * lib/canonicalize.c (canonicalize_filename_mode): Update.
2533
2534 2007-02-25  Jim Meyering  <jim@meyering.net>
2535
2536         * build-aux/announce-gen: When complaining about excess arguments,
2537         list them.
2538
2539 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2540
2541         * README: Document signed integer overflow situation more
2542         accurately.
2543
2544 2007-02-25  Bruno Haible  <bruno@clisp.org>
2545
2546         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
2547         'a' or 'A' conversion.
2548
2549 2007-02-25  Bruno Haible  <bruno@clisp.org>
2550
2551         * modules/filename: Renamed from modules/pathname.
2552         (Files): Replace lib/pathname.h with lib/filename.h. Replace
2553         lib/concatpath.c with lib/concat-filename.c.
2554         (Makefile.am): Update.
2555         (Include): Replace pathname.h with filename.h.
2556         * lib/filename.h: Renamed from lib/pathname.h.
2557         (concatenated_filename): Renamed from concatenated_pathname.
2558         * lib/concat-filename.c: Renamed from lib/concatpath.c.
2559         (concatenated_filename): Renamed from concatenated_pathname.
2560         * lib/findprog.c: Include filename.h instead of pathname.h.
2561         (find_in_path): Update.
2562         * lib/javacomp.c: Include filename.h instead of pathname.h.
2563         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2564         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2565         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2566         is_oldgcj_14_13_usable, is_javac_usable): Update.
2567         * lib/javaexec.c: Include filename.h instead of pathname.h.
2568         (execute_java_class): Update.
2569         * modules/findprog: Update.
2570         * modules/javacomp: Update.
2571         * modules/javaexec: Update.
2572         * MODULES.html.sh (File system functions): Add 'filename', remove
2573         'pathname'.
2574
2575 2007-02-25  Bruno Haible  <bruno@clisp.org>
2576
2577         * modules/printf-frexpl-tests: New file.
2578         * tests/test-printf-frexpl.c: New file.
2579
2580         * modules/printf-frexpl: New file.
2581         * lib/printf-frexpl.h: New file.
2582         * lib/printf-frexpl.c: New file.
2583         * m4/printf-frexpl.m4: New file.
2584
2585 2007-02-25  Bruno Haible  <bruno@clisp.org>
2586
2587         * modules/printf-frexp-tests: New file.
2588         * tests/test-printf-frexp.c: New file.
2589
2590         * modules/printf-frexp: New file.
2591         * lib/printf-frexp.h: New file.
2592         * lib/printf-frexp.c: New file.
2593         * m4/printf-frexp.m4: New file.
2594
2595 2007-02-25  Bruno Haible  <bruno@clisp.org>
2596
2597         Assume automake >= 1.10 for the tests.
2598         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
2599         * modules/arctwo-tests: Likewise.
2600         * modules/argp-tests: Likewise.
2601         * modules/avltree-list-tests: Likewise.
2602         * modules/avltree-oset-tests: Likewise.
2603         * modules/avltreehash-list-tests: Likewise.
2604         * modules/carray-list-tests: Likewise.
2605         * modules/crc-tests: Likewise.
2606         * modules/des-tests: Likewise.
2607         * modules/gc-arcfour-tests: Likewise.
2608         * modules/gc-arctwo-tests: Likewise.
2609         * modules/gc-des-tests: Likewise.
2610         * modules/gc-hmac-md5-tests: Likewise.
2611         * modules/gc-hmac-sha1-tests: Likewise.
2612         * modules/gc-md2-tests: Likewise.
2613         * modules/gc-md4-tests: Likewise.
2614         * modules/gc-md5-tests: Likewise.
2615         * modules/gc-pbkdf2-sha1-tests: Likewise.
2616         * modules/gc-rijndael-tests: Likewise.
2617         * modules/gc-sha1-tests: Likewise.
2618         * modules/gc-tests: Likewise.
2619         * modules/getaddrinfo-tests: Likewise.
2620         * modules/hmac-md5-tests: Likewise.
2621         * modules/hmac-sha1-tests: Likewise.
2622         * modules/linked-list-tests: Likewise.
2623         * modules/linkedhash-list-tests: Likewise.
2624         * modules/lock-tests: Likewise.
2625         * modules/md2-tests: Likewise.
2626         * modules/md4-tests: Likewise.
2627         * modules/md5-tests: Likewise.
2628         * modules/rbtree-list-tests: Likewise.
2629         * modules/rbtree-oset-tests: Likewise.
2630         * modules/rbtreehash-list-tests: Likewise.
2631         * modules/read-file-tests: Likewise.
2632         * modules/rijndael-tests: Likewise.
2633         * modules/stdint-tests: Likewise.
2634         * modules/tls-tests: Likewise.
2635
2636 2007-02-24  Bruno Haible  <bruno@clisp.org>
2637
2638         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
2639         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
2640         function; instead check whether isnan with a double argument links.
2641         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
2642         function; instead check whether isnan with a 'long double' argument
2643         links.
2644         Reported by Eric Blake <ebb9@byu.net>.
2645
2646 2007-02-24  Bruno Haible  <bruno@clisp.org>
2647
2648         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
2649         defined.
2650         * lib/isnanl.c: Remove all code. Just include isnan.c.
2651         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
2652
2653 2007-02-25  Jim Meyering  <jim@meyering.net>
2654
2655         Avoid conflicting types for 'unsetenv' on FreeBSD.
2656         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
2657         conflicting with FreeBSD's (5.0 and 6.1) function declaration
2658         in stdlib.h.
2659
2660 2007-02-24  Bruno Haible  <bruno@clisp.org>
2661
2662         * modules/isnanl-nolibm-tests: New file.
2663         * tests/test-isnanl.c: New file.
2664
2665         * modules/isnanl-nolibm: New file.
2666         * lib/isnanl.h: New file.
2667         * lib/isnanl.c: New file.
2668         * m4/isnanl.m4: New file.
2669
2670 2007-02-24  Bruno Haible  <bruno@clisp.org>
2671
2672         * modules/isnan-nolibm-tests: New file.
2673         * tests/test-isnan.c: New file.
2674
2675         * modules/isnan-nolibm: New file.
2676         * lib/isnan.h: New file.
2677         * lib/isnan.c: New file.
2678         * m4/isnan.m4: New file.
2679
2680 2007-02-24  Bruno Haible  <bruno@clisp.org>
2681
2682         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
2683         assume that an exponent fits in 20 bits.
2684
2685 2007-02-24  Jim Meyering  <jim@meyering.net>
2686
2687         * m4/regex.m4: Update the description of the configure-time option,
2688         --without-included-regex, to state accurately what the defaults are,
2689         and perhaps to give people an idea why using this option is risky.
2690
2691 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2692
2693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
2694         loops on small arguments.  This attempts to avoid the problem
2695         Bruno Haible reported for AIX 4.3.2 in
2696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
2697
2698 2007-02-23  Bruno Haible  <bruno@clisp.org>
2699
2700         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
2701         Needed for help2man.
2702
2703 2007-02-23  Karl Berry  <karl@gnu.org>
2704
2705         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
2706         exists, foo.h should be cvs-ignored, not committed.
2707
2708 2007-02-23  Eric Blake  <ebb9@byu.net>
2709
2710         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
2711         * lib/stat-time.h (includes): Likewise.
2712         * lib/utimecmp.c (includes): Likewise.
2713         * lib/utimens.h (includes): Likewise.
2714         * lib/getdate.y (includes): Also include "timespec.h" for use
2715         internal to the module.
2716         * modules/utimens (Depends-on): Revert yesterday's patch.
2717         * modules/nanosleep (Depends-on): Add missing dependency.
2718
2719 2007-02-22  Bruno Haible  <bruno@clisp.org>
2720
2721         * lib/glob.c: Don't include getlogin_r.h.
2722
2723 2007-02-22  Jim Meyering  <jim@meyering.net>
2724
2725         * modules/utimens (Depends-on): Add timespec, required for
2726         utimens.h's inclusion of timespec.h.
2727
2728 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
2729
2730         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
2731         long unreadable paths in GNU/Linux.  Problem reported by Andreas
2732         Schwab in
2733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
2734         I'll try to think of a better way to fix the Solaris problem.
2735
2736         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
2737         like glibc; on Solaris 10, it fails with errno == EINVAL.
2738         POSIX says the behavior is unspecified if the first argument is NULL,
2739         so play it safe and never pass NULL to the system getcwd.
2740
2741 2007-02-21  Jim Meyering  <jim@meyering.net>
2742
2743         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
2744         of gettimeofday.  It would conflict with the one now always
2745         provided via sys_time_.h.  Reported by Matthew Woehlke, as
2746         an IRIX 6.5 build failure.
2747
2748 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2749
2750         Minor fixups to port to Solaris 10 with Sun C 5.8.
2751         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
2752         * modules/getcwd (Depends-on): Add dirfd.
2753         * lib/putenv.c (putenv): #undef it.
2754         (rpl_putenv): New decl.
2755         (malloc, free): Include <stdlib.h> rather than prototyping separately.
2756
2757 2007-02-20  Bruno Haible  <bruno@clisp.org>
2758
2759         * modules/stdio-tests: New file.
2760         * tests/test-stdio.c: New file.
2761
2762         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
2763         (Depends-on): Add stdio.
2764         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
2765         (Include): Use <stdio.h> instead of vsnprintf.h.
2766         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
2767         HAVE_DECL_VSNPRINTF.
2768         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
2769
2770         * modules/snprintf (Files): Remove lib/snprintf.h.
2771         (Depends-on): Add stdio.
2772         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
2773         (Include): Use <stdio.h> instead of snprintf.h.
2774         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
2775         HAVE_DECL_SNPRINTF.
2776         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
2777         * lib/getaddrinfo.c: Likewise.
2778
2779         * modules/stdio: New file.
2780         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
2781         * lib/snprintf.h: Remove file.
2782         * lib/vsnprintf.h: Remove file.
2783         * lib/.cppi-disable: Remove snprintf.h.
2784         * m4/stdio_h.m4: New file.
2785         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
2786
2787 2007-02-20  Jim Meyering  <jim@meyering.net>
2788
2789         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
2790         used by e.g., mingw.  From Bruno Haible.
2791
2792 2007-02-19  Bruno Haible  <bruno@clisp.org>
2793
2794         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
2795         warnings.
2796         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2797
2798 2007-02-19  Bruno Haible  <bruno@clisp.org>
2799
2800         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
2801         from mingw users.
2802
2803 2007-02-19  Bruno Haible  <bruno@clisp.org>
2804
2805         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
2806         warnings.
2807         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
2808
2809 2007-02-19  Jim Meyering  <jim@meyering.net>
2810
2811         Don't use FD after a successful "fdopendir (fd)".
2812         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
2813         Reset it by calling dirfd on the just-obtained DIR*.
2814
2815         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
2816         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
2817
2818 2007-02-18  Bruno Haible  <bruno@clisp.org>
2819
2820         * lib/readlink.c: Include <unistd.h>.
2821         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
2822         HAVE_READLINK.
2823         * modules/readlink (Depends-on): Add unistd.
2824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2825         (Include): Add <unistd.h>.
2826
2827         * lib/getlogin_r.h: Remove file.
2828         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
2829         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
2830         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
2831         HAVE_DECL_GETLOGIN_R.
2832         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
2833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2834         (Include): Use <unistd.h> instead of getlogin_r.h.
2835
2836         * lib/getcwd.h: Remove file.
2837         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
2838         * lib/xgetcwd.c: Likewise.
2839         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
2840         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
2841         * modules/getcwd (Files): Remove lib/getcwd.h.
2842         (Depends-on): Add unistd.
2843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2844         (Include): Use <unistd.h> instad of getcwd.h.
2845
2846         * lib/ftruncate.c: Include <unistd.h> first.
2847         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
2848         Set HAVE_FTRUNCATE.
2849         * modules/ftruncate (Depends-on): Add unistd.
2850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2851
2852         * lib/fchdir.c: Include <unistd.h> first.
2853         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
2854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
2855         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
2856         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2857         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
2858
2859         * lib/dup2.c: Include <unistd.h> first.
2860         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
2861         HAVE_DUP2.
2862         * modules/dup2 (Depends-on): Add unistd.
2863         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2864
2865         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
2866         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
2867         REPLACE_CHOWN. Don't define chown as a macro here.
2868         * modules/chown (Depends-on): Add unistd.
2869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2870
2871         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
2872         Add definition for GL_LINK_WARNING.
2873         (chown, dup2): New declarations.
2874         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
2875         link warning.
2876         (ftruncate): New declaration.
2877         (getcwd): New declaration, taken from old getcwd.h.
2878         (getlogin_r): New declaration, taken from old getlogin_r.h.
2879         (readlink): New declaration.
2880         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
2881         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
2882         (gl_PREREQ_UNISTD): Remove macro.
2883         (gl_UNISTD_MODULE_INDICATOR): New macro.
2884         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
2885         many new variables. Don't set UNISTD_H.
2886         * modules/unistd (Description): Change.
2887         (Depends-on): Add link-warning.
2888         (configure.ac): Update.
2889         (Makefile.am): Create unistd.h always. Substitute many new variables
2890         into it.
2891
2892 2007-02-18  Bruno Haible  <bruno@clisp.org>
2893
2894         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
2895         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
2896         HAVE_GETSUBOPT.
2897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
2898         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
2899         * lib/getsubopt.h: Remove file.
2900         * modules/getsubopt (Files): Remove lib/getsubopt.h.
2901         (Depends-on): Add stdlib.
2902         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2903         (Includes): Use <stdlib.h> instead of getsubopt.h.
2904         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
2905         Set HAVE_GETSUBOPT.
2906         * lib/getsubopt.c: Don't include getsubopt.h.
2907
2908 2007-02-18  Bruno Haible  <bruno@clisp.org>
2909
2910         * modules/fchdir (Depends-on): Add dup2.
2911
2912 2007-02-18  Bruno Haible  <bruno@clisp.org>
2913
2914         * lib/stdlib_.h: Handle glibc's special invocation convention
2915         specially.
2916
2917 2007-02-18  Bruno Haible  <bruno@clisp.org>
2918
2919         * modules/stdlib-tests: New file.
2920         * tests/test-stdlib.c: New file.
2921
2922         * modules/mkstemp (Files): Remove lib/mkstemp.h.
2923         (Depends-on): Add stdlib.
2924         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2925         (Includes): Use <stdlib.h> instead of mkstemp.h.
2926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
2927         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
2928         * lib/mkstemp.c: Don't include mkstemp.h.
2929         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
2930         * lib/stdlib--.h: Don't include mkstemp.h.
2931
2932         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
2933         (Depends-on): Add stdlib.
2934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2935         (Includes): Use <stdlib.h> instead of mkdtemp.h.
2936         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
2937         HAVE_MKDTEMP.
2938         * lib/mkdtemp.c: Don't include mkdtemp.h.
2939         * lib/clean-temp.c: Don't include mkdtemp.h.
2940
2941         * modules/exit (Files): Remove lib/exit.h.
2942         (Depends-on): Add stdlib.
2943         (Makefile.am): Remove lib_SOURCES.
2944         (Include): Use <stdlib.h> instead of exit.h.
2945         * lib/argmatch.c: Don't include exit.h.
2946         * lib/execute.c: Likewise.
2947         * lib/pagealign_alloc.c: Likewise.
2948         * lib/pipe.c: Likewise.
2949         * lib/wait-process.c: Likewise.
2950         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
2951         * lib/exitfail.c: Likewise.
2952         * lib/savewd.c: Likewise.
2953         * lib/xsetenv.c: Likewise.
2954
2955         * modules/stdlib: New file.
2956         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
2957         and extra comments about mkstemp().
2958         * lib/exit.h: Remove file.
2959         * lib/mkdtemp.h: Remove file.
2960         * lib/mkstemp.h: Remove file.
2961         * m4/stdlib_h.m4: New file.
2962         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
2963
2964 2007-02-18  Bruno Haible  <bruno@clisp.org>
2965
2966         * modules/math-tests: New file.
2967         * tests/test-math.c: New file.
2968
2969         * modules/math: New file.
2970         * modules/mathl (Files): Remove lib/mathl.h.
2971         (Depends-on): Add math.
2972         (Makefile.am): Don't mention mathl.h.
2973         (Include): Use <math.h> instead of mathl.h.
2974         * lib/math_.h: New file.
2975         * lib/mathl.h: Remove file.
2976         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
2977         mathl.h.
2978         * lib/asinl.c: Likewise.
2979         * lib/atanl.c: Likewise.
2980         * lib/ceill.c: Likewise.
2981         * lib/cosl.c: Likewise.
2982         * lib/expl.c: Likewise.
2983         * lib/floorl.c: Likewise.
2984         * lib/frexpl.c: Likewise.
2985         * lib/ldexpl.c: Likewise.
2986         * lib/logl.c: Likewise.
2987         * lib/sincosl.c: Likewise.
2988         * lib/sinl.c: Likewise.
2989         * lib/sqrtl.c: Likewise.
2990         * lib/tanl.c: Likewise.
2991         * lib/trigl.c: Likewise.
2992         * m4/math_h.m4: New file.
2993         * MODULES.html.sh (Mathematics): Add math.
2994
2995 2007-02-17  Bruno Haible  <bruno@clisp.org>
2996
2997         * modules/wctype-tests: New file.
2998         * tests/test-wctype.c: New file.
2999
3000         * modules/wchar-tests: New file.
3001         * tests/test-wchar.c: New file.
3002
3003         * modules/unistd-tests: New file.
3004         * tests/test-unistd.c: New file.
3005
3006         * modules/time-tests: New file.
3007         * tests/test-time.c: New file.
3008
3009         * modules/sysexits-tests: New file.
3010         * tests/test-sysexits.c: New file.
3011
3012         * modules/sys_time-tests: New file.
3013         * tests/test-sys_time.c: New file.
3014
3015         * modules/sys_stat-tests: New file.
3016         * tests/test-sys_stat.c: New file.
3017
3018         * modules/sys_socket-tests: New file.
3019         * tests/test-sys_socket.c: New file.
3020
3021         * modules/sys_select-tests: New file.
3022         * tests/test-sys_select.c: New file.
3023
3024         * modules/string-tests: New file.
3025         * tests/test-string.c: New file.
3026
3027         * modules/stdbool-tests: New file.
3028         * tests/test-stdbool.c: New file.
3029
3030         * modules/netinet_in-tests: New file.
3031         * tests/test-netinet_in.c: New file.
3032
3033         * modules/inttypes-tests: New file.
3034         * tests/test-inttypes.c: New file.
3035
3036         * modules/fcntl-tests: New file.
3037         * tests/test-fcntl.c: New file.
3038
3039         * modules/byteswap-tests: New file.
3040         * tests/test-byteswap.c: New file.
3041
3042         * modules/arpa_inet-tests: New file.
3043         * tests/test-arpa_inet.c: New file.
3044
3045 2007-02-17  Bruno Haible  <bruno@clisp.org>
3046
3047         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
3048         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
3049         if the corresponding module is not enabled. Emit link warnings if
3050         the function is used nevertheless.
3051         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
3052         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
3053         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
3054         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
3055         * modules/inttypes (Depends-on): Add link-warning.
3056         (Makefile.am): Copy the contents of build-aux/link-warning.h into
3057         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
3058         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
3059         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
3060         * modules/imaxdiv (configure.ac): Likewise.
3061         * modules/strtoimax (configure.ac): Likewise.
3062         * modules/strtoumax (configure.ac): Likewise.
3063
3064 2007-02-17  Bruno Haible  <bruno@clisp.org>
3065
3066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
3067         gl_STRING_MODULE_INDICATOR_DEFAULTS.
3068         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
3069         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
3070
3071 2007-02-17  Bruno Haible  <bruno@clisp.org>
3072
3073         * modules/link-warning: New file.
3074         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
3075         * lib/string_.h (GL_LINK_WARNING): Remove definition.
3076         * modules/string (Depends-on): Add link-warning.
3077         (Makefile.am): Copy the contents of build-aux/link-warning.h into
3078         string.h.
3079         * MODULES.html.sh (Support for building libraries and executables): Add
3080         link-warning.
3081
3082 2007-02-17  Bruno Haible  <bruno@clisp.org>
3083
3084         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
3085         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
3086         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
3087         long lines.
3088
3089 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
3090             Bruno Haible  <bruno@clisp.org>
3091
3092         * modules/tmpfile: New file.
3093         * lib/tmpfile.c: New file.
3094         * m4/tmpfile.m4: New file.
3095         * MODULES.html.sh (func_all_modules): New section "Input/output".
3096
3097 2007-02-15  Bruno Haible  <bruno@clisp.org>
3098
3099         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
3100         (supports_delete_on_close): New function.
3101         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
3102
3103 2007-02-14  Bruno Haible  <bruno@clisp.org>
3104
3105         * modules/mbspcasecmp-tests: New file.
3106         * tests/test-mbspcasecmp.sh: New file.
3107         * tests/test-mbspcasecmp.c: New file.
3108
3109         New module mbspcasecmp.
3110         * modules/mbspcasecmp: New file.
3111         * lib/mbspcasecmp.c: New file.
3112         * lib/string_.h (strncasecmp): Change warning message.
3113         (mbspcasecmp): New declaration.
3114         * m4/mbspcasecmp.m4: New file.
3115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3116         GNULIB_MBSPCASECMP.
3117         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
3118         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
3119
3120 2007-02-14  Bruno Haible  <bruno@clisp.org>
3121
3122         * modules/mbsncasecmp-tests: New file.
3123         * tests/test-mbsncasecmp.sh: New file.
3124         * tests/test-mbsncasecmp.c: New file.
3125
3126         New module mbsncasecmp.
3127         * modules/mbsncasecmp: New file.
3128         * lib/mbsncasecmp.c: New file.
3129         * lib/string_.h (mbsncasecmp): New declaration.
3130         * m4/mbsncasecmp.m4: New file.
3131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3132         GNULIB_MBSNCASECMP.
3133         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
3134         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
3135
3136 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
3137
3138         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
3139         Verify that it doesn't overlap with our flags.
3140         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
3141         do not have the desired effect in multibyte locales; instead, use
3142         mbscasecmp.
3143         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
3144         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
3145         we don't require GNU fnmatch ourselves (if our users require it, they
3146         should do so explicitly).
3147
3148         Fix regex code so it doesn't rely on strcasecmp.
3149         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
3150         Otherwise, include gnulib's langinfo.h.
3151         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
3152         undesirable behavior in non-C locales.  Instead, rely on localecharset.
3153         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
3154         * modules/regex (FILES): Remove m4/codeset.m4.
3155         (Depends-on): Add localcharset.  Remove strcase.
3156
3157 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3158
3159         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
3160         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3161
3162 2007-02-13  Bruno Haible  <bruno@clisp.org>
3163
3164         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
3165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3166
3167 2007-02-12  Bruno Haible  <bruno@clisp.org>
3168
3169         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
3170         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
3171         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
3172         time warning rather than a link error.
3173
3174 2007-02-12  Bruno Haible  <bruno@clisp.org>
3175
3176         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
3177         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3179
3180 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3181
3182         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
3183         args, not 2.
3184
3185 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         New module 'time', so that apps can include <time.h> as per
3188         POSIX and GNU instead of separate include files like time_r.h
3189         and timegm.h.  This implementation tries out a simpler approach
3190         for replacing decls in standard include files (as compared to
3191         the string module), somewhat as an experiment.
3192
3193         * config/srclist.txt: Comment out mktime.c for now.
3194         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
3195         since it doesn't apply any more.  Use generic wording instead.
3196         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
3197         'time'.
3198         * lib/time_.h, m4/time_h.m4, modules/time: New files.
3199         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
3200         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
3201         Don't include <sys/types.h>; no longer needed since we assume C89.
3202         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
3203         * lib/strftime.c: Likewise.
3204         * lib/time_r.c: Likewise.
3205         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
3206         * lib/nanosleep.c: Include <time.h> first, to check interface.
3207         * lib/strptime.c: Likewise.
3208         * lib/time_r.c: Likewise.
3209         * lib/timegm.c: Likewise.
3210         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
3211         needed.
3212         * lib/timegm.c: Don't include timegm.h; no longer needed.
3213         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
3214         time.h now handles any problems in that area.
3215         (struct timespec, nanosleep): Remove; time.h now arranges for these.
3216         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
3217         that time.h defines struct timespec.
3218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
3219         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
3220         handles that.
3221         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
3222         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
3223         needed.  Set REPLACE_LOCALTIME.
3224         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
3225         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
3226         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
3227         nanosleep; time_h.m4 now does that.  Don't require
3228         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
3229         module handles this now.
3230         * modules/getdate (Depends-on): Remove timespec.  Add time.
3231         * modules/nanosleep (Depends-on): Likewise.
3232         * modules/stat-time (Depends-on): Likewise.
3233         * modules/nanosleep (Include): Include time.h, not timespec.h.
3234         * modules/strptime (Files): Remove lib/strptime.h.
3235         (Depends-on): Add extensions, time.
3236         (Include): Include time.h, not strptime.h.
3237         * modules/time_r (Files): Remove lib/time_r.h.
3238         (Depends-on): Add time.
3239         (Include): Include time.h, not time_r.h.
3240         * modules/timegm: Likewise.
3241         * modules/timespec (Description): Now does timespec-related decls
3242         of our own, instead of struct timespec itself.
3243         (Depends-on): Add time; remove extensions.
3244         (Maintainer): Add self.
3245         * modules/utimecmp (Depends-on): Add time; remove timespec.
3246         * modules/utimens (Depends-on): Likewise.
3247         * modules/xnanosleep (Depends-on): Likewise.
3248
3249 2007-02-11  Bruno Haible  <bruno@clisp.org>
3250
3251         * lib/c-strstr.c: Include allocsa.h.
3252         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3253         * lib/c-strcasestr.c: Include allocsa.h.
3254         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3255         * lib/strcasestr.c: Include allocsa.h.
3256         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3257         * lib/mbsstr.c: Include allocsa.h.
3258         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
3259         allocsa/freesa instead of malloc/free.
3260         * lib/mbscasestr.c: Include allocsa.h.
3261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
3262         allocsa/freesa instead of malloc/free.
3263         * modules/c-strstr (Depends-on): Add allocsa.
3264         * modules/c-strcasestr (Depends-on): Likewise.
3265         * modules/strcasestr (Depends-on): Likewise.
3266         * modules/mbsstr (Depends-on): Likewise.
3267         * modules/mbscasestr (Depends-on): Likewise.
3268
3269 2007-02-11  Bruno Haible  <bruno@clisp.org>
3270
3271         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
3272
3273         * modules/mbsspn-tests: New file.
3274         * tests/test-mbsspn.sh: New file.
3275         * tests/test-mbsspn.c: New file.
3276
3277 2007-02-11  Bruno Haible  <bruno@clisp.org>
3278
3279         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
3280
3281         * modules/mbspbrk-tests: New file.
3282         * tests/test-mbspbrk.sh: New file.
3283         * tests/test-mbspbrk.c: New file.
3284
3285 2007-02-11  Bruno Haible  <bruno@clisp.org>
3286
3287         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
3288         unneeded cast.
3289
3290         * modules/mbscspn-tests: New file.
3291         * tests/test-mbscspn.sh: New file.
3292         * tests/test-mbscspn.c: New file.
3293
3294 2007-02-11  Bruno Haible  <bruno@clisp.org>
3295
3296         * modules/mbscasecmp-tests: New file.
3297         * tests/test-mbscasecmp.sh: New file.
3298         * tests/test-mbscasecmp.c: New file.
3299
3300 2007-02-11  Bruno Haible  <bruno@clisp.org>
3301
3302         Ensure O(n) worst-case complexity of mbscasestr.
3303         * lib/mbscasestr.c: Include stdbool.h.
3304         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
3305         functions.
3306         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
3307         the bookkeeping indicates that it's worth it.
3308         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
3309
3310         * modules/mbscasestr-tests: New file.
3311         * tests/test-mbscasestr1.c: New file.
3312         * tests/test-mbscasestr2.sh: New file.
3313         * tests/test-mbscasestr2.c: New file.
3314         * tests/test-mbscasestr3.sh: New file.
3315         * tests/test-mbscasestr3.c: New file.
3316         * tests/test-mbscasestr4.sh: New file.
3317         * tests/test-mbscasestr4.c: New file.
3318         * m4/locale-tr.m4: New file.
3319
3320 2007-02-11  Bruno Haible  <bruno@clisp.org>
3321
3322         Ensure O(n) worst-case complexity of mbsstr.
3323         * lib/mbsstr.c: Include stdbool.h.
3324         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
3325         functions.
3326         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
3327         bookkeeping indicates that it's worth it.
3328         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
3329
3330         * modules/mbsstr-tests: New file.
3331         * tests/test-mbsstr1.c: New file.
3332         * tests/test-mbsstr2.sh: New file.
3333         * tests/test-mbsstr2.c: New file.
3334         * tests/test-mbsstr3.sh: New file.
3335         * tests/test-mbsstr3.c: New file.
3336         * m4/locale-fr.m4: New file.
3337
3338 2007-02-11  Bruno Haible  <bruno@clisp.org>
3339
3340         * lib/mbsrchr.c (mbsrchr): Fix bug.
3341
3342         * modules/mbsrchr-tests: New file.
3343         * tests/test-mbsrchr.sh: New file.
3344         * tests/test-mbsrchr.c: New file.
3345
3346 2007-02-11  Bruno Haible  <bruno@clisp.org>
3347
3348         * lib/mbschr.c (mbschr): Fix bug.
3349
3350         * modules/mbschr-tests: New file.
3351         * tests/test-mbschr.sh: New file.
3352         * tests/test-mbschr.c: New file.
3353         * m4/locale-zh.m4: New file.
3354
3355 2007-02-11  Bruno Haible  <bruno@clisp.org>
3356
3357         Support for copying multibyte string iterators.
3358         * lib/mbiter.h: Include <string.h>.
3359         (mbiter_multi_copy): New function.
3360         (mbi_copy): New macro.
3361         * lib/mbuiter.h: Include <string.h>.
3362         (mbuiter_multi_copy): New function.
3363         (mbui_copy): New macro.
3364
3365 2007-02-11  Bruno Haible  <bruno@clisp.org>
3366
3367         New module mbslen.
3368         * modules/mbslen: New file.
3369         * lib/mbslen.c: New file.
3370         * lib/string_.h (mbslen): New declaration.
3371         * m4/mbslen.m4: New file.
3372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3373         GNULIB_MBSLEN.
3374         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
3375         * MODULES.html.sh (Internationalization functions): Add mbslen.
3376
3377 2007-02-11  Bruno Haible  <bruno@clisp.org>
3378
3379         Ensure O(n) worst-case complexity of strcasestr substitute.
3380         * lib/strcasestr.c: Include stdbool.h.
3381         (knuth_morris_pratt): New function.
3382         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
3383         bookkeeping indicates that it's worth it.
3384         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
3385
3386         * modules/strcasestr-tests: New file.
3387         * tests/test-strcasestr.c: New file.
3388
3389 2007-02-11  Bruno Haible  <bruno@clisp.org>
3390
3391         Ensure O(n) worst-case complexity of c_strcasestr.
3392         * lib/c-strcasestr.c: Include stdbool.h, string.h.
3393         (knuth_morris_pratt): New function.
3394         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
3395         the bookkeeping indicates that it's worth it.
3396         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
3397
3398         * modules/c-strcasestr-tests: New file.
3399         * tests/test-c-strcasestr.c: New file.
3400
3401 2007-02-11  Bruno Haible  <bruno@clisp.org>
3402
3403         Ensure O(n) worst-case complexity of c_strstr.
3404         * lib/c-strstr.c: Include stdbool.h, string.h.
3405         (knuth_morris_pratt): New function.
3406         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
3407         bookkeeping indicates that it's worth it.
3408         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
3409
3410         * lib/c-strstr.c: Complete rewrite for maintainability.
3411
3412         * modules/c-strstr-tests: New file.
3413         * tests/test-c-strstr.c: New file.
3414
3415 2007-02-11  Bruno Haible  <bruno@clisp.org>
3416
3417         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
3418         5.2.1 and earlier, whereby \055 was treated just like the range
3419         delimiter '-'.
3420         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3421
3422 2007-02-08  Bruno Haible  <bruno@clisp.org>
3423
3424         * modules/regex (Depends-on): Add stdbool.
3425         Reported by Dalibor Topic <robilad@kaffe.org>.
3426
3427 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
3428
3429         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
3430         Prefer returning from main to exiting from it.
3431         Remove unnecessary parens after sizeof.
3432
3433 2007-02-05  Bruno Haible  <bruno@clisp.org>
3434
3435         New module mbssep.
3436         * modules/mbssep: New file.
3437         * lib/mbssep.c: New file.
3438         * lib/string_.h (strsep): Add a conditional link warning.
3439         (mbssep): New declaration.
3440         * m4/mbssep.m4: New file.
3441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3442         GNULIB_MBSSEP.
3443         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
3444         * MODULES.html.sh (Internationalization functions): Add mbssep.
3445
3446 2007-02-05  Bruno Haible  <bruno@clisp.org>
3447
3448         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
3449         Optimize search in case of 1 delimiter.
3450
3451 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
3452
3453         * lib/acl.h: Include sys/types.h before sys/acl.h.
3454
3455 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
3456
3457         Merge upstream fix for glibc bugzilla #3957:
3458
3459         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
3460
3461         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
3462         bit for RE_HAT_LISTS_NOT_NEWLINE.
3463         (build_charclass_op): Remove bogus comment.
3464
3465 2007-02-05  Simon Josefsson  <simon@josefsson.org>
3466
3467         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
3468
3469 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3470
3471         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
3472         * lib/memmem.c [!defined _LIBC]: Include config.h.
3473
3474 2007-02-04  Bruno Haible  <bruno@clisp.org>
3475
3476         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
3477         warning message.
3478
3479 2007-02-04  Bruno Haible  <bruno@clisp.org>
3480
3481         New module mbstok_r.
3482         * modules/mbstok_r: New file.
3483         * lib/mbstok_r.c: New file.
3484         * lib/string_.h (strtok_r): Change argument names to match the
3485         comments. Add a conditional link warning.
3486         (mbstok_r): New declaration.
3487         * m4/mbstok_r.m4: New file.
3488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3489         GNULIB_MBSTOK_R.
3490         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
3491         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
3492
3493 2007-02-04  Bruno Haible  <bruno@clisp.org>
3494
3495         New module mbsspn.
3496         * modules/mbsspn: New file.
3497         * lib/mbsspn.c: New file.
3498         * lib/string_.h (strspn): Add a conditional link warning.
3499         (mbsspn): New declaration.
3500         * m4/mbsspn.m4: New file.
3501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3502         GNULIB_MBSSPN.
3503         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
3504         * MODULES.html.sh (Internationalization functions): Add mbsspn.
3505
3506 2007-02-04  Bruno Haible  <bruno@clisp.org>
3507
3508         New module mbspbrk.
3509         * modules/mbspbrk: New file.
3510         * lib/mbspbrk.c: New file.
3511         * lib/string_.h (strpbrk): Add a conditional link warning.
3512         (mbspbrk): New declaration.
3513         * m4/mbspbrk.m4: New file.
3514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3515         GNULIB_MBSPBRK.
3516         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
3517         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
3518
3519 2007-02-04  Bruno Haible  <bruno@clisp.org>
3520
3521         New module mbscspn.
3522         * modules/mbscspn: New file.
3523         * lib/mbscspn.c: New file.
3524         * lib/string_.h (strcspn): Add a conditional link warning.
3525         (mbscspn): New declaration.
3526         * m4/mbscspn.m4: New file.
3527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3528         GNULIB_MBSCSPN.
3529         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
3530         * MODULES.html.sh (Internationalization functions): Add mbscspn.
3531
3532 2007-02-04  Bruno Haible  <bruno@clisp.org>
3533
3534         New module mbscasestr, reduced goal of strcasestr.
3535         * modules/mbscasestr: New file.
3536         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
3537         (mbscasestr): Renamed from strcasestr.
3538         * lib/strcasestr.c: Don't include mbuiter.h.
3539         (strcasestr): Remove support for multibyte locales.
3540         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
3541         Change the conditional link warning.
3542         (mbscasestr): New declaration.
3543         * m4/mbscasestr.m4: New file.
3544         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
3545         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
3546         REPLACE_STRCASESTR.
3547         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
3548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3549         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
3550         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
3551         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
3552         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
3553         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
3554         (Depends-on): Remove mbuiter.
3555         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
3556
3557 2007-02-04  Bruno Haible  <bruno@clisp.org>
3558
3559         Simplify handling of strncasecmp.
3560         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
3561         the conditional link warning.
3562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3563         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
3564         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
3565         * modules/strcase (configure.ac): Don't invoke
3566         gl_STRING_MODULE_INDICATOR.
3567         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
3568
3569 2007-02-04  Bruno Haible  <bruno@clisp.org>
3570
3571         New module mbscasecmp, reduced goal of strcasecmp.
3572         * modules/mbscasecmp: New file.
3573         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
3574         (mbscasecmp): Renamed from strcasecmp.
3575         * lib/strcasecmp.c: Don't include mbuiter.h.
3576         (strcasecmp): Remove support for multibyte locales.
3577         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
3578         Change the conditional link warning.
3579         (mbscasecmp): New declaration.
3580         * m4/mbscasecmp.m4: New file.
3581         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
3582         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
3583         REPLACE_STRCASECMP.
3584         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
3585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3586         GNULIB_MBSCASECMP.
3587         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
3588         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
3589         * modules/strcase (Files): Remove m4/mbrtowc.m4.
3590         (Depends-on): Remove mbuiter.
3591         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
3592
3593 2007-02-04  Bruno Haible  <bruno@clisp.org>
3594
3595         New module mbsstr. Remove module strstr.
3596         * modules/mbsstr: New file.
3597         * modules/strstr: Remove file.
3598         * lib/mbsstr.c: Renamed from lib/strstr.c.
3599         (mbsstr): Renamed from strstr.
3600         * lib/string_.h (strstr): Remove declaration. Change the conditional
3601         link warning.
3602         (mbsstr): New declaration.
3603         * m4/mbsstr.m4: New file.
3604         * m4/strstr.m4: Remove file.
3605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3606         REPLACE_STRSTR.
3607         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
3608         Don't initialize GNULIB_STRSTR.
3609         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
3610         substitute GNULIB_STRSTR and REPLACE_STRSTR.
3611         * MODULES.html.sh (Internationalization functions): Add mbsstr.
3612         (Support for systems lacking ANSI C 89): Remove strstr.
3613
3614 2007-02-04  Bruno Haible  <bruno@clisp.org>
3615
3616         New module mbsrchr.
3617         * modules/mbsrchr: New file.
3618         * lib/mbsrchr.c: New file.
3619         * lib/string_.h (strrchr): Add a conditional link warning.
3620         (mbsrchr): New declaration.
3621         * m4/mbsrchr.m4: New file.
3622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3623         GNULIB_MBSRCHR.
3624         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
3625         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
3626
3627 2007-02-04  Bruno Haible  <bruno@clisp.org>
3628
3629         New module mbschr.
3630         * modules/mbschr: New file.
3631         * lib/mbschr.c: New file.
3632         * lib/string_.h (strchr): Add a conditional link warning.
3633         (mbschr): New declaration.
3634         * m4/mbschr.m4: New file.
3635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3636         GNULIB_MBSCHR.
3637         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
3638         * MODULES.html.sh (Internationalization functions): Add mbschr.
3639
3640 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3641
3642         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
3643
3644         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
3645
3646 2007-02-04  Bruno Haible  <bruno@clisp.org>
3647
3648         New module description section 'configure.ac-early'.
3649         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
3650         (func_get_autoconf_early_snippet): New function.
3651         (func_import, func_create_testdir): Use it. Remove special cases for
3652         modules 'extensions' and 'lock'.
3653         * modules/extensions (configure.ac-early): Require
3654         gl_USE_SYSTEM_EXTENSIONS.
3655         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
3656
3657 2007-02-04  Bruno Haible  <bruno@clisp.org>
3658
3659         Make use of gcj-4.3's -fsource and -ftarget option.
3660         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
3661         and if so try the options -fsource and -ftarget.
3662         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
3663         source_version, ftarget_option, target_version arguments.
3664         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
3665         (is_envjavac_oldgcj_14_14_usable): Renamed from
3666         is_envjavac_gcj_14_14_usable.
3667         (is_envjavac_oldgcj_14_13_usable): Renamed from
3668         is_envjavac_gcj_14_13_usable.
3669         (is_gcj_present): Update.
3670         (is_gcj_43, is_gcj43_usable): New functions.
3671         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
3672         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
3673         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
3674         try the options -fsource and -ftarget.
3675
3676 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
3677
3678         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
3679         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
3680         larger value.
3681
3682 2007-02-03  Jim Meyering  <jim@meyering.net>
3683
3684         Give tools a better chance to allocate space for very large buffers.
3685         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
3686
3687         Make pwd and readlink work also when run with an unreadable parent dir
3688         on systems with openat support.
3689         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
3690         provided getcwd function, even when we have openat support.
3691         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
3692
3693 2007-02-02  Bruno Haible  <bruno@clisp.org>
3694
3695         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
3696         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
3697         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
3698         portability problems if one of these functions is only used on specific
3699         platforms.
3700         Reported by Paul Eggert.
3701
3702 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
3703
3704         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
3705         is causing more trouble than it's curing.
3706         * lib/regex_internal.h (__mempcpy): Remove.
3707         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
3708         (and make the code a tad smaller to boot).
3709         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
3710
3711 2007-02-02  Jim Meyering  <jim@meyering.net>
3712
3713         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
3714         section, not in the Makefile.am: one.
3715
3716 2007-02-02  Eric Blake  <ebb9@byu.net>
3717
3718         * lib/strchrnul.c: Always include config.h first.
3719
3720         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
3721         gnulib strstr is not necessary here.
3722
3723 2007-02-02  Simon Josefsson  <simon@josefsson.org>
3724
3725         * m4/socklen.m4: Fix typo.
3726
3727 2007-02-02  Eric Blake  <ebb9@byu.net>
3728
3729         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
3730         * modules/netinet_in (Makefile.am): Likewise.
3731
3732 2007-02-01  Bruno Haible  <bruno@clisp.org>
3733
3734         * lib/string_.h (GL_LINK_WARNING): New macro.
3735         (strcasecmp, strstr, strcasestr): If provided by the system,
3736         conditionally define as a macro that leads to a warning instead of to
3737         an error.
3738         (strncasecmp): Conditionally define as a macro that leads to a warning.
3739
3740 2007-02-01  Karl Berry  <karl@gnu.org>
3741
3742         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
3743
3744 2007-02-01  Bruno Haible  <bruno@clisp.org>
3745
3746         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
3747         renamings.
3748
3749 2007-02-01  Eric Blake  <ebb9@byu.net>
3750
3751         * modules/regex (Depends-on): Revert dependence on mempcpy.
3752         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
3753         module's definition of mempcpy.
3754         Reported by Paul Eggert.
3755
3756 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
3757
3758         * lib/string_.h: If the gnulib module XYZ is not present, undefine
3759         the symbol XYZ before redefining it.  This fixes a problem with
3760         programs that don't use XYZ, when compiled on systems that define
3761         XYZ to something else.
3762
3763 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
3764
3765         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
3766         occurs when "mkdir -m foo" creates a setgid directory that is (1)
3767         writeable to group or other and (2) is intended to have a special
3768         mode bit that is set or cleared.  In such a case, the directory
3769         should be neither group- nor other-writeable until the special
3770         mode bits are right.
3771
3772 2007-01-31  Eric Blake  <ebb9@byu.net>
3773
3774         * modules/mountlist (Depends-on): Add strstr.
3775
3776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
3777         bug.
3778         * modules/string (Makefile.am): Remove redundant replacement.
3779         * modules/regex (Depends-on): Add mempcpy.
3780
3781 2007-01-31  Bruno Haible  <bruno@clisp.org>
3782
3783         New module description field 'Link'.
3784         * gnulib-tool (func_usage): Document --extract-link-directive.
3785         (sed_extract_prog): Recognize 'Link' directive.
3786         (func_get_link_directive): New function.
3787         (func_import): Show summary of link directives.
3788         Handle --extract-link-directive option.
3789         * modules/acl (Link): New section.
3790         * modules/clock-time (Link): New section.
3791         * modules/euidaccess (Link): New section.
3792         * modules/gettext (Link): New section.
3793         * modules/iconv (Link): New section.
3794         * modules/lock (Link): New section.
3795         * modules/nanosleep (Link): New section.
3796         * modules/readline (Link): New section.
3797
3798 2007-01-27  Bruno Haible  <bruno@clisp.org>
3799
3800         Enforce the use of gnulib modules for unportable <string.h> functions.
3801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
3802         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
3803         (gl_HEADER_STRING_H_BODY): Require it.
3804         * lib/string_.h: If the gnulib module XYZ is not present, redefine
3805         the symbol XYZ to one that gives a link error.
3806         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
3807         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
3808         * modules/mempcpy (configure.ac): Likewise.
3809         * modules/memrchr (configure.ac): Likewise.
3810         * modules/stpcpy (configure.ac): Likewise.
3811         * modules/stpncpy (configure.ac): Likewise.
3812         * modules/strcase (configure.ac): Likewise.
3813         * modules/strcasestr (configure.ac): Likewise.
3814         * modules/strchrnul (configure.ac): Likewise.
3815         * modules/strdup (configure.ac): Likewise.
3816         * modules/strndup (configure.ac): Likewise.
3817         * modules/strnlen (configure.ac): Likewise.
3818         * modules/strpbrk (configure.ac): Likewise.
3819         * modules/strsep (configure.ac): Likewise.
3820         * modules/strstr (configure.ac): Likewise.
3821         * modules/strtok_r (configure.ac): Likewise.
3822
3823 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
3824
3825         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
3826
3827 2007-01-30  Jim Meyering  <jim@meyering.net>
3828
3829         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
3830
3831 2007-01-29  Bruno Haible  <bruno@clisp.org>
3832
3833         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
3834         * lib/execute.c: Likewise.
3835         * lib/pipe.c: Likewise.
3836         * lib/printf-args.h: Likewise.
3837         * lib/printf-args.c: Likewise.
3838         * lib/printf-parse.c: Likewise.
3839         * lib/vasnprintf.c: Likewise.
3840
3841 2007-01-29  Eric Blake  <ebb9@byu.net>
3842
3843         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
3844         declaration.
3845
3846 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3847
3848         * lib/strptime.h (strptime): Use 'restrict' for args where
3849         POSIX requires this.
3850         * lib/strptime.c (strptime): Likewise.
3851         Change license notice from LGPL to GPL, since gnulib-tool will
3852         change this as needed.
3853         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
3854         defined.
3855         Include "strptime.h" first, to check interface.
3856         Do not #undef _LIBC and _NL_CURRENT.
3857         Do not include <stdlib.h>; no longer needed.
3858         Include "time_r.h" and declare ptime_locale_status
3859         only if _LIBC is not defined.
3860         (__P): Remove unused macro.
3861         (match_string): Bring back glibc version, but use it only if _LIBC
3862         is defined.
3863         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
3864         Remove unnecessary assertion and abort() call.
3865         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
3866         * m4/strptime.m4: Fix serial number comment.
3867         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
3868         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
3869         (Depends-on): Add time_r.
3870
3871 2007-01-29  Bruno Haible  <bruno@clisp.org>
3872
3873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3874         strptime.
3875         * modules/strptime (Depends-on): Add stdbool.
3876         * lib/strptime.h: Include <time.h> always. Add comments.
3877
3878 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
3879
3880         * modules/strptime: New file.
3881         * lib/strptime.h: New file.
3882         * lib/strptime.c: New file.
3883         * m4/strptime.m4: New file.
3884
3885 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3886
3887         * MODULES.html.sh: New module mpsort.
3888         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
3889
3890         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
3891         a circularity problem with HP-UX ia64 reported by Bob Proulx in
3892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
3893         All uses changed.
3894         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
3895         All uses changed.
3896         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
3897         to _Restrict_.
3898         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
3899         the parameter matches the prototype.
3900
3901 2007-01-28  Jim Meyering  <jim@meyering.net>
3902
3903         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
3904         sys/time.h here, reverting that part of the previous patch:
3905         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
3906
3907 2007-01-28  Bruno Haible  <bruno@clisp.org>
3908
3909         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
3910         value of $(SYS_TIME_H).
3911         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
3912         remove it conditionally, too. [added by Jim Meyering]
3913         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
3914         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
3915         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
3916         GETTIMEOFDAY_REPLACEMENT to 1.
3917
3918 2007-01-28  Bruno Haible  <bruno@clisp.org>
3919
3920         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
3921         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
3922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
3923         Set UNISTD_H instead of UNISTD_H2.
3924         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
3925
3926 2007-01-28  Bruno Haible  <bruno@clisp.org>
3927
3928         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
3929         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
3930
3931 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3932
3933         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
3934         (func_create_testdir): Ensure C locale for `grep' and `tr'
3935         character ranges.
3936         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
3937         ACLOCAL_AMFLAGS parsing state machine.
3938
3939 2007-01-27  Bruno Haible  <bruno@clisp.org>
3940
3941         * modules/unistr/base: Update.
3942
3943 2007-01-27  Bruno Haible  <bruno@clisp.org>
3944
3945         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
3946         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
3947         * modules/unistr/u32-mbtouc-unsafe: Renamed from
3948         modules/unistr/u32-mbtouc.
3949         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
3950         * lib/unistr.h: Update.
3951         * lib/linebreak.c: Update.
3952         * modules/unistr/u32-mbtouc: Renamed from
3953         modules/unistr/u32-mbtouc-safe.
3954         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
3955         * lib/unistr.h: Update.
3956         * lib/unistr/u32-to-u8.c: Update.
3957         * lib/unistr/u32-to-u16.c: Update.
3958
3959 2007-01-27  Bruno Haible  <bruno@clisp.org>
3960
3961         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
3962         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
3963         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
3964         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
3965         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
3966         * modules/unistr/u16-mbtouc-unsafe: Renamed from
3967         modules/unistr/u16-mbtouc.
3968         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
3969         * lib/unistr.h: Update.
3970         * lib/linebreak.c: Update.
3971         * modules/linebreak: Update.
3972         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
3973         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
3974         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
3975         * modules/unistr/u16-mbtouc: Renamed from
3976         modules/unistr/u16-mbtouc-safe.
3977         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
3978         * lib/unistr.h: Update.
3979         * lib/unistr/u16-to-u8.c: Update.
3980         * modules/unistr/u16-to-u8: Update.
3981         * lib/unistr/u16-to-u32.c: Update.
3982         * modules/unistr/u16-to-u32: Update.
3983
3984 2007-01-27  Bruno Haible  <bruno@clisp.org>
3985
3986         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
3987         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
3988         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
3989         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
3990         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
3991         * modules/unistr/u8-mbtouc-unsafe: Renamed from
3992         modules/unistr/u8-mbtouc.
3993         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
3994         * lib/unistr.h: Update.
3995         * lib/striconveh.c: Update.
3996         * modules/striconveh: Update.
3997         * lib/linebreak.c: Update.
3998         * modules/linebreak: Update.
3999         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
4000         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
4001         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
4002         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
4003         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
4004         * lib/unistr.h: Update.
4005         * lib/striconveh.c: Update.
4006         * modules/striconveh: Update.
4007         * lib/unistr/u8-to-u16.c: Update.
4008         * modules/unistr/u8-to-u16: Update.
4009         * lib/unistr/u8-to-u32.c: Update.
4010         * modules/unistr/u8-to-u32: Update.
4011
4012 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4013
4014         Sync from Libtool.
4015         * lib/argz.c: Do not include strings.h nor memory.h, include
4016         string.h unconditionally.  Patch by Simon Josefsson.
4017
4018 2007-01-27  Bruno Haible  <bruno@clisp.org>
4019
4020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
4021         from gl_HEADER_STRING_H_BODY.
4022         (gl_HEADER_STRING_H_BODY): Require it.
4023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
4024         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
4025         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
4026         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
4027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4028         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
4029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4030         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
4031         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
4032         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4033         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
4034         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
4035         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
4036         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4037         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4038
4039 2007-01-27  Bruno Haible  <bruno@clisp.org>
4040
4041         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
4042         check_PROGRAMS into noinst_PROGRAMS.
4043         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
4044         check_PROGRAMS in this case.
4045         (func_import): Set for_test to false.
4046         (func_create_testdir): Set for_test to true.
4047
4048 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4049             Bruno Haible  <bruno@clisp.org>
4050
4051         * modules/strcasestr (Files): Remove lib/strcasestr.h.
4052         (Depends-on): Add string.
4053         (Includes): Use <string.h> instead of strcasestr.h.
4054         * modules/string (Makefile.am): Also substitute the value of
4055         REPLACE_STRCASESTR.
4056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
4057         assume strcasestr is declared in <string.h> not <strings.h>. Also
4058         set REPLACE_STRCASESTR.
4059         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
4060         REPLACE_STRCASESTR.
4061         * lib/strcasestr.h: Remove file.
4062         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
4063         * lib/string_.h (strcasestr): New declaration.
4064
4065 2007-01-27  Bruno Haible  <bruno@clisp.org>
4066
4067         * lib/string_.h: Use 'extern'.
4068
4069 2007-01-27  Jim Meyering  <jim@meyering.net>
4070
4071         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
4072         of set-but-not-used local, "q".
4073
4074         * lib/mempcpy.c: Include <config.h> before <string.h>.
4075         This fixes a compilation error on HP-UX, due to the system's
4076         "restrict"-using mempcpy prototype.
4077
4078 2007-01-26  Bruno Haible  <bruno@clisp.org>
4079
4080         Small optimization.
4081         * lib/javacomp.c: Include c-strstr.h.
4082          (is_envjavac_gcj): Use c_strstr instead of strstr.
4083         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
4084
4085 2007-01-26  Bruno Haible  <bruno@clisp.org>
4086
4087         * MODULES.html.sh (Unicode string functions): Add the new modules.
4088
4089         * modules/uniconv/u32-strconv-to-locale: New file.
4090         * lib/uniconv/u32-strconv-to-locale.c: New file.
4091
4092         * modules/uniconv/u16-strconv-to-locale: New file.
4093         * lib/uniconv/u16-strconv-to-locale.c: New file.
4094
4095         * modules/uniconv/u8-strconv-to-locale: New file.
4096         * lib/uniconv/u8-strconv-to-locale.c: New file.
4097
4098         * modules/uniconv/u32-strconv-from-locale: New file.
4099         * lib/uniconv/u32-strconv-from-locale.c: New file.
4100
4101         * modules/uniconv/u16-strconv-from-locale: New file.
4102         * lib/uniconv/u16-strconv-from-locale.c: New file.
4103
4104         * modules/uniconv/u8-strconv-from-locale: New file.
4105         * lib/uniconv/u8-strconv-from-locale.c: New file.
4106
4107         * modules/uniconv/u32-strconv-to-enc: New file.
4108         * lib/uniconv/u32-strconv-to-enc.c: New file.
4109         * modules/uniconv/u32-strconv-to-enc-tests: New file.
4110         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
4111
4112         * modules/uniconv/u16-strconv-to-enc: New file.
4113         * lib/uniconv/u16-strconv-to-enc.c: New file.
4114         * lib/uniconv/u-strconv-to-enc.h: New file.
4115         * modules/uniconv/u16-strconv-to-enc-tests: New file.
4116         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
4117
4118         * modules/uniconv/u8-strconv-to-enc: New file.
4119         * lib/uniconv/u8-strconv-to-enc.c: New file.
4120         * modules/uniconv/u8-strconv-to-enc-tests: New file.
4121         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
4122
4123         * modules/uniconv/u32-strconv-from-enc: New file.
4124         * lib/uniconv/u32-strconv-from-enc.c: New file.
4125         * modules/uniconv/u32-strconv-from-enc-tests: New file.
4126         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
4127
4128         * modules/uniconv/u16-strconv-from-enc: New file.
4129         * lib/uniconv/u16-strconv-from-enc.c: New file.
4130         * modules/uniconv/u16-strconv-from-enc-tests: New file.
4131         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
4132
4133         * modules/uniconv/u8-strconv-from-enc: New file.
4134         * lib/uniconv/u8-strconv-from-enc.c: New file.
4135         * lib/uniconv/u-strconv-from-enc.h: New file.
4136         * modules/uniconv/u8-strconv-from-enc-tests: New file.
4137         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
4138
4139         * modules/uniconv/u32-conv-from-enc: New file.
4140         * lib/uniconv/u32-conv-from-enc.c: New file.
4141         * modules/uniconv/u32-conv-from-enc-tests: New file.
4142         * tests/uniconv/test-u32-conv-from-enc.c: New file.
4143
4144         * modules/uniconv/u16-conv-from-enc: New file.
4145         * lib/uniconv/u16-conv-from-enc.c: New file.
4146         * lib/uniconv/u-conv-from-enc.h: New file.
4147         * modules/uniconv/u16-conv-from-enc-tests: New file.
4148         * tests/uniconv/test-u16-conv-from-enc.c: New file.
4149
4150         * modules/uniconv/u8-conv-from-enc: New file.
4151         * lib/uniconv/u8-conv-from-enc.c: New file.
4152         * modules/uniconv/u8-conv-from-enc-tests: New file.
4153         * tests/uniconv/test-u8-conv-from-enc.c: New file.
4154
4155         * modules/uniconv/base: New file.
4156         * lib/uniconv.h: New file.
4157
4158 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4159
4160         * doc/gnulib-tool.texi (Initial import): Update to match current
4161         behavior with strdup module.
4162         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
4163         * lib/memmem.h: Remove; all uses removed.  This is now done
4164         by <string.h>.
4165         * lib/mempcpy.h: Likewise.
4166         * lib/memrchr.h: Likewise.
4167         * lib/stpcpy.h: Likewise.
4168         * lib/stpncpy.h: Likewise.
4169         * lib/strcase.h: Likewise.
4170         * lib/strchrnul.h: Likewise.
4171         * lib/strdup.h: Likewise.
4172         * lib/strndup.h: Likewise.
4173         * lib/strnlen.h: Likewise.
4174         * lib/strpbrk.h: Likewise.
4175         * lib/strsep.h: Likewise.
4176         * lib/strstr.h: Likewise.
4177         * lib/strtok_r.h: Likewise.
4178         * lib/string_.h: New file.
4179         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
4180         Rely on <string.h> instead.
4181         * lib/canon-host.c: Likewise.
4182         * lib/chdir-long.c: Likewise.
4183         * lib/concatpath.c: Likewise.
4184         * lib/exclude.c: Likewise.
4185         * lib/fchdir.c: Likewise.
4186         * lib/getaddrinfo.c: Likewise.
4187         * lib/getcwd.c: Likewise.
4188         * lib/getsubopt.c: Likewise.
4189         * lib/glob.c: Likewise.
4190         * lib/hard-locale.c: Likewise.
4191         * lib/iconvme.c: Likewise.
4192         * lib/javacomp.c: Likewise.
4193         * lib/mempcpy.c: Likewise.
4194         * lib/memrchr.c: Likewise.
4195         * lib/regex_internal.h: Likewise.
4196         * lib/stpncpy.c: Likewise.
4197         * lib/strcasecmp.c: Likewise.
4198         * lib/strchrnul.c: Likewise.
4199         * lib/strdup.c: Likewise.
4200         * lib/striconv.c: Likewise.
4201         * lib/striconveh.c: Likewise.
4202         * lib/striconveha.c: Likewise.
4203         * lib/strncasecmp.c: Likewise.
4204         * lib/strndup.c: Likewise.
4205         * lib/strnlen.c: Likewise.
4206         * lib/strsep.c: Likewise.
4207         * lib/strstr.c: Likewise.
4208         * lib/strtok_r.c: Likewise.
4209         * lib/userspec.c: Likewise.
4210         * lib/w32spawn.h: Likewise.
4211         * lib/xstrndup.c: Likewise.
4212         * lib/mountlist.c (strstr): Remove decl.
4213         * m4/string_h.m4: New file.
4214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
4215         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
4216         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
4217         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
4218         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
4219         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
4220         Set REPLACE_STRCASECMP if necessary.
4221         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
4222         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
4223         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
4224         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
4225         HAVE_DECL_STRDUP if necessary.
4226         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
4227         since gl_FUNC_STRNDUP does that now.
4228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
4229         Check for decl here...
4230         (gl_PREREQ_STRNLEN): ... not here.
4231         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
4232         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
4233         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
4234         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
4235         necessary.
4236         * modules/string: New file.
4237         * modules/memmem (Files): Remove special-purpose include file.
4238         (Depends-on): Add string.
4239         (Include): Include <string.h>, not the removed file.
4240         * modules/mempcpy: Likewise.
4241         * modules/memrchr: Likewise.
4242         * modules/stpcpy: Likewise.
4243         * modules/stpncpy: Likewise.
4244         * modules/strcase: Likewise.
4245         * modules/strchrnul: Likewise.
4246         * modules/strdup: Likewise.
4247         * modules/strndup: Likewise.
4248         * modules/strnlen: Likewise.
4249         * modules/strpbrk: Likewise.
4250         * modules/strsep: Likewise.
4251         * modules/strstr: Likewise.
4252         * modules/strtok_r: Likewise.
4253         * tests/test-dirname.c: Don't include "strdup.h", since
4254         <string.h> now suffices.
4255         * tests/test-memmem.c: Don't include "memmem.h", since
4256         <string.h> now suffices.
4257
4258 2007-01-25  Bruno Haible  <bruno@clisp.org>
4259
4260         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
4261         *resultp is 0.
4262
4263         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
4264         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
4265         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
4266         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
4267
4268         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
4269         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
4270         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
4271         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
4272         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
4273         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
4274
4275 2007-01-24  Bruno Haible  <bruno@clisp.org>
4276
4277         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
4278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
4279         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
4280         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
4281         gl_FUNC_FTS_CORE.
4282         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
4283         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
4284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4285         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
4286         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
4287         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
4288         gl_FUNC_FCHOWNAT.
4289         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
4290         gl_FUNC_STRFTIME.
4291         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
4292         Reported by Ralf Wildenhues.
4293
4294 2007-01-24  Bruno Haible  <bruno@clisp.org>
4295
4296         Drop AC_REQUIRE calls that are redundant with the module dependencies.
4297         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
4298         gl_GETADDRINFO.
4299         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
4300         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
4301         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
4302
4303 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4304
4305         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
4306         Don't use 'exit'; just return from 'main'.
4307         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
4308
4309         * lib/fnmatch_.h: Readjust white space and comments to match
4310         glibc, to avoid spurious diffs.
4311
4312 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4313
4314         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
4315         2004-12-01 change by Jakub Jelinek, since this code won't compile
4316         if !LIBC.  Problem reported by Bob Proulx.
4317
4318 2007-01-23  Bruno Haible  <bruno@clisp.org>
4319
4320         * lib/striconveh.c: Include c-strcaseeq.h.
4321         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
4322         * modules/striconveh (Depends-on): Add c-strcaseeq.
4323
4324 2007-01-23  Bruno Haible  <bruno@clisp.org>
4325
4326         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
4327
4328         * modules/c-strcaseeq: New file.
4329         * lib/c-strcaseeq.h: New file.
4330
4331         * modules/streq: New file.
4332         * lib/streq.h: New file.
4333
4334 2007-01-23  Bruno Haible  <bruno@clisp.org>
4335
4336         * modules/striconveha-tests: New file.
4337         * tests/test-striconveha.c: New file.
4338
4339         * lib/striconveha.h: Include <stdbool.h>.
4340         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
4341         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
4342         (mem_iconveha_notranslit): Renamed from mem_iconveha.
4343         (mem_iconveha): New function.
4344         (str_iconveha_notranslit): Renamed from str_iconveha.
4345         (str_iconveha): New function.
4346         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
4347         c-strcase.
4348
4349 2007-01-23  Bruno Haible  <bruno@clisp.org>
4350
4351         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
4352         encodings without forgiving before trying any encoding with handler.
4353         (str_iconveha): Try all encodings without forgiving before trying any
4354         encoding with handler.
4355
4356 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4357
4358         Import the following changes from libc.
4359
4360         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
4361
4362         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
4363
4364         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
4365
4366         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
4367         normal_bracket label.
4368
4369         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
4370
4371         [BZ #361]
4372         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
4373         to normal_bracket after fetching the next character.
4374
4375 2007-01-22  Bruno Haible  <bruno@clisp.org>
4376
4377         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
4378         argument.
4379         * lib/striconveh.c (iconv_carefully_1): New function.
4380         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
4381         argument.
4382         (str_cd_iconveh): Update.
4383         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
4384         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
4385         * tests/test-striconveh.c (MAGIC): New macro.
4386         (new_offsets): New function.
4387         (main): Test call with and without offsets.
4388
4389 2007-01-22  Bruno Haible  <bruno@clisp.org>
4390
4391         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
4392         * modules/sys_select (Makefile.am): Likewise.
4393         * modules/sys_socket (Makefile.am): Likewise.
4394         * modules/sys_time (Makefile.am): Likewise.
4395
4396 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
4397
4398         * modules/gettimeofday (License): Change from GPL to LGPL, since
4399         gettimeofday is a library function.
4400
4401 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4402
4403         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
4404
4405 2007-01-21  Bruno Haible  <bruno@clisp.org>
4406
4407         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
4408
4409 2007-01-21  Bruno Haible  <bruno@clisp.org>
4410
4411         * modules/striconveha: New file.
4412         * lib/striconveha.h: New file.
4413         * lib/striconveha.c: New file.
4414         * MODULES.html.sh (Internationalization functions): Add striconveha.
4415         * lib/striconv.c (str_iconv): Optimize the case of an empty input
4416         string.
4417         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
4418
4419 2007-01-21  Bruno Haible  <bruno@clisp.org>
4420
4421         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
4422         * lib/striconveh.c (str_iconveh): Likewise.
4423
4424 2007-01-21  Bruno Haible  <bruno@clisp.org>
4425
4426         * lib/striconveh.h (mem_iconveh): New declaration.
4427         * lib/striconveh.c (mem_iconveh): New function.
4428         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
4429
4430 2007-01-21  Bruno Haible  <bruno@clisp.org>
4431
4432         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
4433
4434         * lib/striconveh.h (mem_cd_iconveh): Change specification.
4435         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
4436         original result buffer.
4437         (str_cd_iconveh): Update.
4438         * tests/test-striconveh.c (main): Update.
4439
4440         * lib/striconv.h (mem_cd_iconv): Change specification.
4441         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
4442         result buffer.
4443         (str_cd_iconv): Update.
4444         * tests/test-striconv.c (main): Update.
4445
4446 2007-01-21  Bruno Haible  <bruno@clisp.org>
4447
4448         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
4449
4450 2007-01-20  Jim Meyering  <jim@meyering.net>
4451
4452         * lib/userspec.c (parse_with_separator): If a user or group string
4453         starts with "+", skip the corresponding name-to-ID look-up, since
4454         such a look-up must fail: user and group names may not include "+".
4455
4456 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4457
4458         * lib/poll.c: Include sys/time.h and time.h unconditionally,
4459         since we now assume the sys_time module.
4460         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
4461         check for sys/time.h; no longer needed.
4462         * modules/poll (Depends-on): Depend on sys_time.
4463
4464 2007-01-18  Bruno Haible  <bruno@clisp.org>
4465
4466         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
4467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
4468
4469         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
4470         gettimeofday.
4471
4472         * tests/test-gettimeofday.c: Include <time.h>.
4473         (dummy): Remove variable.
4474
4475         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
4476         gl_HEADER_SYS_TIME_H.
4477         (gl_HEADER_SYS_TIME_H): New macro.
4478
4479         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
4480         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4482         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
4483         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
4485         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
4486         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4487         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
4488         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
4489         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4490
4491         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
4492         last change; it caused a compilation error when cross-compiling to
4493         Cygwin.
4494
4495 2007-01-18  Jim Meyering  <jim@meyering.net>
4496
4497         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
4498         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
4499         than the race-prone "test -d sys || mkdir sys".
4500         (configure.ac): Use AC_PROG_MKDIR_P.
4501         * modules/sys_select: Likewise.
4502         * modules/sys_socket: Likewise.
4503         * modules/sys_time: Likewise.
4504
4505 2007-01-18  Eric Blake  <ebb9@byu.net>
4506
4507         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
4508         replace gettimeofday.
4509         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
4510         name, to avoid infinite recursion.
4511
4512 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
4513
4514         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
4515         module sys_time.
4516         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
4517         assume timespec.h defines struct timeval.
4518         * lib/settime.c: Likewise.
4519         * lib/utimens.c: Likewise.
4520         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
4521         since we now assume the gettimeofday module.
4522         * lib/tempname.c (__gen_tempname): Likewise.
4523         * lib/gettimeofday.h: Remove.
4524         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
4525         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
4526         Include <time.h>, for 'time()'.
4527         (localtime_buffer_addr): Also use this workaround if
4528         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
4529         to simplify the uses.  All uses changed.
4530         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
4531         that #undef is inside {}, and 'const' follows type name consistently.
4532         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
4533         (gettimeofday): Do not use the maximum possible value for
4534         tv->tv_usec, since that might break usages other than ls.c.
4535         Instead, we'll leave ls.c alone.  This undoes today's patch
4536         by Bruno.  Add a compile-time warning for 1s-clock resolution;
4537         we've never observed the problem but might as well keep the
4538         canary.
4539         * lib/nanosleep.c: Include timespec.h first, for interface check.
4540         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
4541         now assume the sys_time module.
4542         * lib/tempname.c: Likewise.
4543         * lib/timespec.h: Likewise.
4544         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
4545         needed.
4546         * lib/strftime.c: Likewise.
4547         * lib/timespec.h: Likewise.
4548         * lib/posixtm.c: Include posixtm.h first, for interface check.
4549         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
4550         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
4551         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
4552         * lib/sys_time_.h: New file.
4553         * lib/timespec.h (struct timespec): Use long int, not long.
4554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
4555         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
4556         Remove obsolescent call to AC_HEADER_TIME.
4557         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4559         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
4560         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
4561         Likewise.
4562         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4563         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
4564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
4565         into the sys_time module.  Check for gettimeofday just once.
4566         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
4567         for gettimeofday signature to just check the signature.  Merely
4568         compile it, since linking doesn't test signature.  Improve test for
4569         whether gettimeofday.o is actually needed.
4570         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
4571         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
4572         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
4573         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4574         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
4575         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
4576         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
4577         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
4578         than worrying about sys/time.h.
4579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4580         Don't bother worrying about TIME_WITH_SYS_TIME.
4581         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
4582         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
4583         * m4/sys_time_h.m4: New file.
4584         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
4585         Don't include sys/time.h.  Return from main rather than exiting.
4586         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
4587         all uses changed.
4588         * modules/gethrxtime (Depends-on): Add sys_time.
4589         * modules/gettime (Depends-on): Likewise.
4590         * modules/gettimeofday (Depends-on): Likewise.
4591         * modules/nanosleep (Depends-on): Likewise.
4592         * modules/settime (Depends-on): Likewise.
4593         * modules/tempname (Depends-on): Likewise.
4594         * modules/utimens (Depends-on): Likewise.
4595         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
4596         (Include:) Change back to <sys/time.h>.
4597         (Maintainer:) Add self.
4598         * modules/sys_time: New file.
4599         * modules/tempname (Depends-on): Add gettimeofday.
4600         * tests/test-gettimeofday.c: Include <sys/time.h>
4601         rather than gettimeofday.h.
4602
4603 2007-01-17  Bruno Haible  <bruno@clisp.org>
4604
4605         * gnulib-tool (func_get_license): Revert last patch. Instead, let
4606         the license default to GPL.
4607         (func_create_testdir): Don't complain if a module is LGPL and its
4608         tests module depends on GPLed modules.
4609
4610 2007-01-17  Bruno Haible  <bruno@clisp.org>
4611
4612         * lib/gettimeofday.c (gettimeofday): Add code for the case
4613         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
4614         maximum possible value for tv->tv_usec, rather than the minimum one.
4615
4616 2005-10-08  Martin Lambers  <marlam@marlam.de>
4617 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4618 2007-01-16  Bruno Haible  <bruno@clisp.org>
4619
4620         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
4621         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
4622         gl_FUNC_GETTIMEOFDAY.
4623         (Include): Add gettimeofday.h.
4624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
4625         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
4626         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
4627         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
4628         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
4629         * lib/gettimeofday.h: New file.
4630         * lib/gettimeofday.c: Include <sys/timeb.h>.
4631         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
4632         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4633         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
4634         fall back on time().
4635
4636         * tests/test-gettimeofday.c: New file.
4637         * modules/gettimeofday-tests: New file.
4638
4639 2007-01-16  Eric Blake  <ebb9@byu.net>
4640
4641         * modules/fnmatch (Depends-on): Depend on wchar.
4642         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
4643         * m4/fnmatch.m4: Likewise.
4644         * modules/mbchar (Makefile.am): Assume <wchar.h>.
4645         * m4/mbchar.m4: Likewise.
4646         * modules/mbswidth (Depends-on): Depend on wchar.
4647         * lib/mbswidth.c: Assume <wchar.h>.
4648         * m4/mbswidth.m4: Likewise.
4649         * modules/quotearg (Depends-on): Depend on wchar.
4650         * lib/quotearg.c: Assume <wchar.h>.
4651         * m4/quotearg.m4: Likewise.
4652         * modules/regex (Depends-on): Depend on wchar.
4653         * lib/regex_internal.h: Assume <wchar.h>.
4654         * m4/regex.m4: Likewise.
4655         * modules/stdint (Depends-on): Depend on wchar.
4656         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
4657         * m4/stdint.m4: Likewise.
4658         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
4659         * modules/strftime (Depends-on): Depend on wchar.
4660         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
4661         * modules/strtol (Depends-on): Depend on wchar.
4662         * lib/strtol.c: Assume <wchar.h>.
4663         * modules/wcwidth (Depends-on): Depend on wchar.
4664         * lib/wcwidth.h: Assume <wchar.h>.
4665         * m4/wcwidth.m4: Likewise.
4666
4667 2007-01-16  Bruno Haible  <bruno@clisp.org>
4668
4669         * modules/csharpexec-script: New, created from...
4670         * modules/csharpexec: ... this.
4671
4672 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
4673
4674         * modules/javaexec-script: New, created from...
4675         * modules/javaexec: ... this.
4676
4677 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4678
4679         * modules/poll (Dependencies): Add sys_select.
4680
4681 2007-01-15  Jim Meyering  <jim@meyering.net>
4682
4683         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
4684         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
4685         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
4686         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
4687
4688 2007-01-15  Bruno Haible  <bruno@clisp.org>
4689
4690         * modules/striconveh: New file.
4691         * lib/striconveh.h: New file.
4692         * lib/striconveh.c: New file.
4693         * MODULES.html.sh (Internationalization functions): Add striconveh.
4694
4695         * modules/striconveh-tests: New file.
4696         * tests/test-striconveh.c: New file.
4697
4698 2007-01-15  Bruno Haible  <bruno@clisp.org>
4699
4700         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
4701         not from GNU libiconv or GNU libc.
4702
4703 2007-01-15  Bruno Haible  <bruno@clisp.org>
4704
4705         * doc/gnulib-intro.texi (Copyright): Explain the different license
4706         terms for module descriptions, autoconf macros, tests, documentation.
4707
4708 2007-01-14  Bruno Haible  <bruno@clisp.org>
4709
4710         * modules/striconv-tests: New file.
4711         * tests/test-striconv.c: New file.
4712
4713 2007-01-14  Bruno Haible  <bruno@clisp.org>
4714
4715         * modules/iconv-tests: New file.
4716         * tests/test-iconv.c: New file.
4717
4718 2007-01-14  Bruno Haible  <bruno@clisp.org>
4719
4720         * gnulib-tool (func_get_license): For test modules, use the license of
4721         the main module.
4722
4723 2007-01-14  Bruno Haible  <bruno@clisp.org>
4724
4725         * modules/iconv (Include): Clarify that <iconv.h> can only be included
4726         if iconv is found to exist.
4727
4728 2007-01-14  Bruno Haible  <bruno@clisp.org>
4729
4730         * modules/c-ctype-tests: New file.
4731         * tests/test-c-ctype.c: New file.
4732
4733 2007-01-14  Bruno Haible  <bruno@clisp.org>
4734
4735         * modules/binary-io-tests: New file.
4736         * tests/test-binary-io.sh: New file.
4737         * tests/test-binary-io.c: New file.
4738
4739 2007-01-14  Bruno Haible  <bruno@clisp.org>
4740
4741         * modules/array-oset-tests: New file.
4742         * tests/test-array_oset.c: New file.
4743
4744 2007-01-14  Bruno Haible  <bruno@clisp.org>
4745
4746         * modules/array-list-tests: New file.
4747         * tests/test-array_list.c: New file.
4748
4749 2007-01-14  Bruno Haible  <bruno@clisp.org>
4750
4751         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
4752         and make.
4753         Reported by Simon Josefsson in
4754         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
4755
4756 2007-01-14  Bruno Haible  <bruno@clisp.org>
4757
4758         * modules/allocsa-tests: New file.
4759         * tests/test-allocsa.c: New file.
4760
4761 2007-01-14  Bruno Haible  <bruno@clisp.org>
4762
4763         * modules/fchdir (Depends-on): Add absolute-header.
4764         * modules/unistd (Depends-on): Likewise.
4765
4766 2006-12-30  Bruno Haible  <bruno@clisp.org>
4767
4768         * modules/fchdir: New file.
4769         * modules/unistd (Files): Add lib/unistd_.h.
4770         (Makefile.am): Generate unistd.h from unistd_.h.
4771         * lib/fchdir.c: New file.
4772         * lib/dirent_.h: New file.
4773         * lib/unistd_.h: New file.
4774         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
4775         * m4/fchdir.m4: New file.
4776         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
4777         (gl_HEADER_UNISTD): Invoke it.
4778         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
4779         function.
4780         * lib/backupfile.c (opendir, closedir): Undefine.
4781         * lib/chown.c (open, close): Undefine.
4782         * lib/clean-temp.c (open, close): Undefine.
4783         * lib/copy-file.c (open, close): Undefine.
4784         * lib/execute.c (open, close): Undefine.
4785         * lib/fsusage.c (open, close): Undefine.
4786         * lib/gc-gnulib.c (open, close): Undefine.
4787         * lib/getcwd.c (opendir, closedir): Undefine.
4788         * lib/glob.c (opendir, closedir): Undefine.
4789         * lib/javacomp.c (open, close): Undefine.
4790         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
4791         * lib/openat-proc.c (open, close): Undefine.
4792         * lib/pagealign_alloc.c (open, close): Undefine.
4793         * lib/pipe.c (open, close): Undefine.
4794         * lib/progreloc.c (open, close): Undefine.
4795         * lib/savedir.c (opendir, closedir): Undefine.
4796         * lib/utime.c (open, close): Undefine.
4797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
4798
4799 2007-01-10  Bruno Haible  <bruno@clisp.org>
4800
4801         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
4802
4803 2007-01-12  Eric Blake  <ebb9@byu.net>
4804
4805         Provide a robust <wchar.h>.  Further simplifications are now
4806         possible in other modules, but not included here.
4807         * modules/wchar: New module.
4808         * m4/wchar.m4: New file.
4809         * lib/wchar_.h: Likewise.
4810         * modules/mbchar (Depends-on): Depend on wchar, as the first use
4811         of the new module.
4812         * MODULES.html.sh (Extended multibyte and wide character utilities):
4813         New section.
4814
4815 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
4816
4817         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
4818         to a reasonable default for memory allocation.
4819         (xreadlink): Don't allocate a huge buffer, to work around a buggy
4820         file system that reports garbage st_size values for symlinks.
4821         Problem reported by Liyang Hu.
4822
4823 2007-01-11  Simon Josefsson  <simon@josefsson.org>
4824
4825         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
4826         Emacs .#* auto-save files).
4827
4828 2007-01-11  Bruno Haible  <bruno@clisp.org>
4829
4830         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
4831         directory.
4832
4833 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
4834
4835         Use @...@ consistently in lib/wctype_.h.
4836         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
4837         on it being set to 1 or 0.
4838         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
4839         go back to AC_SUBSTing it.
4840         * modules/wctype (Makefile.am): Undo previous change.
4841
4842 2007-01-10  Eric Blake  <ebb9@byu.net>
4843
4844         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
4845         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
4846         * modules/wctype (Makefile.am): Likewise.
4847         Reported by Chris McGuire.
4848
4849 2007-01-10  Jim Meyering  <jim@meyering.net>
4850
4851         fts.c: a small readability/maintainability improvement
4852         * lib/fts.c (fts_read): Make this code slightly more readable and
4853         maintainable by hoisting the "sp->fts_cur = p" assignments to
4854         immediately follow the statements that set P.  Derived from
4855         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
4856
4857 2007-01-10  Eric Blake  <ebb9@byu.net>
4858
4859         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
4860         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
4861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4862         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
4863         Reported by Chris McGuire.
4864
4865 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4866
4867         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
4868         in sed script.
4869
4870 2007-01-09  Bruno Haible  <bruno@clisp.org>
4871
4872         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
4873         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
4874         variables.
4875         (func_module): Use them.
4876
4877 2007-01-09  Bruno Haible  <bruno@clisp.org>
4878
4879         * modules/unistr/base: New file.
4880         * lib/unistr.h: New file.
4881
4882         * modules/unistr/u8-to-u16: New file.
4883         * lib/unistr/u8-to-u16.c: New file.
4884
4885         * modules/unistr/u8-to-u32: New file.
4886         * lib/unistr/u8-to-u32.c: New file.
4887
4888         * modules/unistr/u16-to-u8: New file.
4889         * lib/unistr/u16-to-u8.c: New file.
4890
4891         * modules/unistr/u16-to-u32: New file.
4892         * lib/unistr/u16-to-u32.c: New file.
4893
4894         * modules/unistr/u32-to-u8: New file.
4895         * lib/unistr/u32-to-u8.c: New file.
4896
4897         * modules/unistr/u32-to-u16: New file.
4898         * lib/unistr/u32-to-u16.c: New file.
4899
4900         * modules/unistr/u8-check: New file.
4901         * modules/unistr/u16-check: New file.
4902         * modules/unistr/u32-check: New file.
4903         * lib/unistr/u8-check.c: New file.
4904         * lib/unistr/u16-check.c: New file.
4905         * lib/unistr/u32-check.c: New file.
4906
4907         * modules/unistr/u8-chr: New file.
4908         * modules/unistr/u16-chr: New file.
4909         * modules/unistr/u32-chr: New file.
4910         * lib/unistr/u8-chr.c: New file.
4911         * lib/unistr/u16-chr.c: New file.
4912         * lib/unistr/u32-chr.c: New file.
4913
4914         * modules/unistr/u8-cmp: New file.
4915         * modules/unistr/u16-cmp: New file.
4916         * modules/unistr/u32-cmp: New file.
4917         * lib/unistr/u8-cmp.c: New file.
4918         * lib/unistr/u16-cmp.c: New file.
4919         * lib/unistr/u32-cmp.c: New file.
4920
4921         * modules/unistr/u8-cpy: New file.
4922         * modules/unistr/u16-cpy: New file.
4923         * modules/unistr/u32-cpy: New file.
4924         * lib/unistr/u8-cpy.c: New file.
4925         * lib/unistr/u16-cpy.c: New file.
4926         * lib/unistr/u32-cpy.c: New file.
4927         * lib/unistr/u-cpy.h: New file.
4928
4929         * modules/unistr/u8-cpy-alloc: New file.
4930         * modules/unistr/u16-cpy-alloc: New file.
4931         * modules/unistr/u32-cpy-alloc: New file.
4932         * lib/unistr/u8-cpy-alloc.c: New file.
4933         * lib/unistr/u16-cpy-alloc.c: New file.
4934         * lib/unistr/u32-cpy-alloc.c: New file.
4935         * lib/unistr/u-cpy-alloc.h: New file.
4936
4937         * modules/unistr/u8-endswith: New file.
4938         * modules/unistr/u16-endswith: New file.
4939         * modules/unistr/u32-endswith: New file.
4940         * lib/unistr/u8-endswith.c: New file.
4941         * lib/unistr/u16-endswith.c: New file.
4942         * lib/unistr/u32-endswith.c: New file.
4943         * lib/unistr/u-endswith.h: New file.
4944
4945         * modules/unistr/u8-mblen: New file.
4946         * modules/unistr/u16-mblen: New file.
4947         * modules/unistr/u32-mblen: New file.
4948         * lib/unistr/u8-mblen.c: New file.
4949         * lib/unistr/u16-mblen.c: New file.
4950         * lib/unistr/u32-mblen.c: New file.
4951
4952         * modules/unistr/u8-mbtouc: New file.
4953         * modules/unistr/u16-mbtouc: New file.
4954         * modules/unistr/u32-mbtouc: New file.
4955         * lib/unistr/u8-mbtouc.c: New file.
4956         * lib/unistr/u16-mbtouc.c: New file.
4957         * lib/unistr/u32-mbtouc.c: New file.
4958
4959         * modules/unistr/u8-mbtouc-safe: New file.
4960         * modules/unistr/u16-mbtouc-safe: New file.
4961         * modules/unistr/u32-mbtouc-safe: New file.
4962         * lib/unistr/u8-mbtouc-safe.c: New file.
4963         * lib/unistr/u16-mbtouc-safe.c: New file.
4964         * lib/unistr/u32-mbtouc-safe.c: New file.
4965
4966         * modules/unistr/u8-move: New file.
4967         * modules/unistr/u16-move: New file.
4968         * modules/unistr/u32-move: New file.
4969         * lib/unistr/u8-move.c: New file.
4970         * lib/unistr/u16-move.c: New file.
4971         * lib/unistr/u32-move.c: New file.
4972         * lib/unistr/u-move.h: New file.
4973
4974         * modules/unistr/u8-next: New file.
4975         * modules/unistr/u16-next: New file.
4976         * modules/unistr/u32-next: New file.
4977         * lib/unistr/u8-next.c: New file.
4978         * lib/unistr/u16-next.c: New file.
4979         * lib/unistr/u32-next.c: New file.
4980
4981         * modules/unistr/u8-prev: New file.
4982         * modules/unistr/u16-prev: New file.
4983         * modules/unistr/u32-prev: New file.
4984         * lib/unistr/u8-prev.c: New file.
4985         * lib/unistr/u16-prev.c: New file.
4986         * lib/unistr/u32-prev.c: New file.
4987
4988         * modules/unistr/u8-set: New file.
4989         * modules/unistr/u16-set: New file.
4990         * modules/unistr/u32-set: New file.
4991         * lib/unistr/u8-set.c: New file.
4992         * lib/unistr/u16-set.c: New file.
4993         * lib/unistr/u32-set.c: New file.
4994         * lib/unistr/u-set.h: New file.
4995
4996         * modules/unistr/u8-startswith: New file.
4997         * modules/unistr/u16-startswith: New file.
4998         * modules/unistr/u32-startswith: New file.
4999         * lib/unistr/u8-startswith.c: New file.
5000         * lib/unistr/u16-startswith.c: New file.
5001         * lib/unistr/u32-startswith.c: New file.
5002         * lib/unistr/u-startswith.h: New file.
5003
5004         * modules/unistr/u8-stpcpy: New file.
5005         * modules/unistr/u16-stpcpy: New file.
5006         * modules/unistr/u32-stpcpy: New file.
5007         * lib/unistr/u8-stpcpy.c: New file.
5008         * lib/unistr/u16-stpcpy.c: New file.
5009         * lib/unistr/u32-stpcpy.c: New file.
5010         * lib/unistr/u-stpcpy.h: New file.
5011
5012         * modules/unistr/u8-stpncpy: New file.
5013         * modules/unistr/u16-stpncpy: New file.
5014         * modules/unistr/u32-stpncpy: New file.
5015         * lib/unistr/u8-stpncpy.c: New file.
5016         * lib/unistr/u16-stpncpy.c: New file.
5017         * lib/unistr/u32-stpncpy.c: New file.
5018         * lib/unistr/u-stpncpy.h: New file.
5019
5020         * modules/unistr/u8-strcat: New file.
5021         * modules/unistr/u16-strcat: New file.
5022         * modules/unistr/u32-strcat: New file.
5023         * lib/unistr/u8-strcat.c: New file.
5024         * lib/unistr/u16-strcat.c: New file.
5025         * lib/unistr/u32-strcat.c: New file.
5026         * lib/unistr/u-strcat.h: New file.
5027
5028         * modules/unistr/u8-strchr: New file.
5029         * modules/unistr/u16-strchr: New file.
5030         * modules/unistr/u32-strchr: New file.
5031         * lib/unistr/u8-strchr.c: New file.
5032         * lib/unistr/u16-strchr.c: New file.
5033         * lib/unistr/u32-strchr.c: New file.
5034
5035         * modules/unistr/u8-strcmp: New file.
5036         * modules/unistr/u16-strcmp: New file.
5037         * modules/unistr/u32-strcmp: New file.
5038         * lib/unistr/u8-strcmp.c: New file.
5039         * lib/unistr/u16-strcmp.c: New file.
5040         * lib/unistr/u32-strcmp.c: New file.
5041
5042         * modules/unistr/u8-strcpy: New file.
5043         * modules/unistr/u16-strcpy: New file.
5044         * modules/unistr/u32-strcpy: New file.
5045         * lib/unistr/u8-strcpy.c: New file.
5046         * lib/unistr/u16-strcpy.c: New file.
5047         * lib/unistr/u32-strcpy.c: New file.
5048         * lib/unistr/u-strcpy.h: New file.
5049
5050         * modules/unistr/u8-strcspn: New file.
5051         * modules/unistr/u16-strcspn: New file.
5052         * modules/unistr/u32-strcspn: New file.
5053         * lib/unistr/u8-strcspn.c: New file.
5054         * lib/unistr/u16-strcspn.c: New file.
5055         * lib/unistr/u32-strcspn.c: New file.
5056         * lib/unistr/u-strcspn.h: New file.
5057
5058         * modules/unistr/u8-strdup: New file.
5059         * modules/unistr/u16-strdup: New file.
5060         * modules/unistr/u32-strdup: New file.
5061         * lib/unistr/u8-strdup.c: New file.
5062         * lib/unistr/u16-strdup.c: New file.
5063         * lib/unistr/u32-strdup.c: New file.
5064         * lib/unistr/u-strdup.h: New file.
5065
5066         * modules/unistr/u8-strlen: New file.
5067         * modules/unistr/u16-strlen: New file.
5068         * modules/unistr/u32-strlen: New file.
5069         * lib/unistr/u8-strlen.c: New file.
5070         * lib/unistr/u16-strlen.c: New file.
5071         * lib/unistr/u32-strlen.c: New file.
5072         * lib/unistr/u-strlen.h: New file.
5073
5074         * modules/unistr/u8-strmblen: New file.
5075         * modules/unistr/u16-strmblen: New file.
5076         * modules/unistr/u32-strmblen: New file.
5077         * lib/unistr/u8-strmblen.c: New file.
5078         * lib/unistr/u16-strmblen.c: New file.
5079         * lib/unistr/u32-strmblen.c: New file.
5080
5081         * modules/unistr/u8-strmbtouc: New file.
5082         * modules/unistr/u16-strmbtouc: New file.
5083         * modules/unistr/u32-strmbtouc: New file.
5084         * lib/unistr/u8-strmbtouc.c: New file.
5085         * lib/unistr/u16-strmbtouc.c: New file.
5086         * lib/unistr/u32-strmbtouc.c: New file.
5087
5088         * modules/unistr/u8-strncat: New file.
5089         * modules/unistr/u16-strncat: New file.
5090         * modules/unistr/u32-strncat: New file.
5091         * lib/unistr/u8-strncat.c: New file.
5092         * lib/unistr/u16-strncat.c: New file.
5093         * lib/unistr/u32-strncat.c: New file.
5094         * lib/unistr/u-strncat.h: New file.
5095
5096         * modules/unistr/u8-strncmp: New file.
5097         * modules/unistr/u16-strncmp: New file.
5098         * modules/unistr/u32-strncmp: New file.
5099         * lib/unistr/u8-strncmp.c: New file.
5100         * lib/unistr/u16-strncmp.c: New file.
5101         * lib/unistr/u32-strncmp.c: New file.
5102
5103         * modules/unistr/u8-strncpy: New file.
5104         * modules/unistr/u16-strncpy: New file.
5105         * modules/unistr/u32-strncpy: New file.
5106         * lib/unistr/u8-strncpy.c: New file.
5107         * lib/unistr/u16-strncpy.c: New file.
5108         * lib/unistr/u32-strncpy.c: New file.
5109         * lib/unistr/u-strncpy.h: New file.
5110
5111         * modules/unistr/u8-strnlen: New file.
5112         * modules/unistr/u16-strnlen: New file.
5113         * modules/unistr/u32-strnlen: New file.
5114         * lib/unistr/u8-strnlen.c: New file.
5115         * lib/unistr/u16-strnlen.c: New file.
5116         * lib/unistr/u32-strnlen.c: New file.
5117         * lib/unistr/u-strnlen.h: New file.
5118
5119         * modules/unistr/u8-strpbrk: New file.
5120         * modules/unistr/u16-strpbrk: New file.
5121         * modules/unistr/u32-strpbrk: New file.
5122         * lib/unistr/u8-strpbrk.c: New file.
5123         * lib/unistr/u16-strpbrk.c: New file.
5124         * lib/unistr/u32-strpbrk.c: New file.
5125         * lib/unistr/u-strpbrk.h: New file.
5126
5127         * modules/unistr/u8-strrchr: New file.
5128         * modules/unistr/u16-strrchr: New file.
5129         * modules/unistr/u32-strrchr: New file.
5130         * lib/unistr/u8-strrchr.c: New file.
5131         * lib/unistr/u16-strrchr.c: New file.
5132         * lib/unistr/u32-strrchr.c: New file.
5133
5134         * modules/unistr/u8-strspn: New file.
5135         * modules/unistr/u16-strspn: New file.
5136         * modules/unistr/u32-strspn: New file.
5137         * lib/unistr/u8-strspn.c: New file.
5138         * lib/unistr/u16-strspn.c: New file.
5139         * lib/unistr/u32-strspn.c: New file.
5140         * lib/unistr/u-strspn.h: New file.
5141
5142         * modules/unistr/u8-strstr: New file.
5143         * modules/unistr/u16-strstr: New file.
5144         * modules/unistr/u32-strstr: New file.
5145         * lib/unistr/u8-strstr.c: New file.
5146         * lib/unistr/u16-strstr.c: New file.
5147         * lib/unistr/u32-strstr.c: New file.
5148         * lib/unistr/u-strstr.h: New file.
5149
5150         * modules/unistr/u8-strtok: New file.
5151         * modules/unistr/u16-strtok: New file.
5152         * modules/unistr/u32-strtok: New file.
5153         * lib/unistr/u8-strtok.c: New file.
5154         * lib/unistr/u16-strtok.c: New file.
5155         * lib/unistr/u32-strtok.c: New file.
5156         * lib/unistr/u-strtok.h: New file.
5157
5158         * modules/unistr/u8-uctomb: New file.
5159         * modules/unistr/u16-uctomb: New file.
5160         * modules/unistr/u32-uctomb: New file.
5161         * lib/unistr/u8-uctomb.c: New file.
5162         * lib/unistr/u16-uctomb.c: New file.
5163         * lib/unistr/u32-uctomb.c: New file.
5164
5165         * MODULES.html.sh (Unicode string functions): Add the new modules.
5166
5167 2007-01-08  Bruno Haible  <bruno@clisp.org>
5168
5169         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
5170         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
5171         subdirectories.
5172
5173 2007-01-08  Karl Berry  <karl@gnu.org>
5174
5175         * doc/error.texi: mention that main() fns must set program_name
5176         when progname is used.
5177
5178 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
5179
5180         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
5181         WCTYPE_H is empty, for the benefit of builds from non-distclean
5182         directories.  Problem reported by Eric Blake in
5183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
5184
5185 2007-01-08  Bruno Haible  <bruno@clisp.org>
5186
5187         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
5188         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
5189         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
5190         PROVIDE_CANONICALIZE_FILENAME_MODE.
5191         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
5192
5193 2007-01-08  Bruno Haible  <bruno@clisp.org>
5194
5195         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
5196         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
5197         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
5198         * lib/fts.c: Likewise.
5199         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
5200
5201 2006-12-25  Bruno Haible  <bruno@clisp.org>
5202
5203         * modules/utf8-ucs4-safe: New file.
5204         * lib/utf8-ucs4-safe.h: New file.
5205         * lib/unistr/utf8-ucs4-safe.c: New file.
5206
5207         * modules/utf16-ucs4-safe: New file.
5208         * lib/utf16-ucs4-safe.h: New file.
5209         * lib/unistr/utf16-ucs4-safe.c: New file.
5210
5211         * MODULES.html.sh (Unicode string functions): Add the new modules.
5212
5213 2007-01-08  Bruno Haible  <bruno@clisp.org>
5214
5215         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
5216         (Depends-on): Add unitypes.
5217         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
5218         (u8_mbtouc_aux): Move out to separate file.
5219         (u8_mbtouc): Use ucs4_t, uint8_t types.
5220         * lib/unistr/utf8-ucs4.c: New file.
5221
5222         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
5223         (Depends-on): Add unitypes.
5224         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
5225         (u16_mbtouc_aux): Move out to separate file.
5226         (u16_mbtouc): Use ucs4_t, uint16_t types.
5227         * lib/unistr/utf16-ucs4.c: New file.
5228
5229         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
5230         (Depends-on): Add unitypes.
5231         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
5232         (u8_uctomb_aux): Move out to separate file.
5233         (u8_uctomb): Use ucs4_t, uint8_t types.
5234         * lib/unistr/ucs4-utf8.c: New file.
5235
5236         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
5237         (Depends-on): Add unitypes.
5238         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
5239         (u16_uctomb_aux): Move out to separate file.
5240         (u16_uctomb): Use ucs4_t, uint16_t types.
5241         * lib/unistr/ucs4-utf16.c: New file.
5242
5243 2006-12-25  Bruno Haible  <bruno@clisp.org>
5244
5245         * modules/unitypes: New file.
5246         * lib/unitypes.h: New file.
5247         * MODULES.html.sh (func_all_modules): New section "Unicode string
5248         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
5249         this section. Add unitypes.
5250
5251 2007-01-08  Bruno Haible  <bruno@clisp.org>
5252
5253         Avoid variable names that conflict with those from libtool.
5254         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
5255         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
5256         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
5257         library_names_spec to acl_library_names_spec, hardcode_* to
5258         acl_hardcode_*.
5259         Reported by Ralf Wildenhues.
5260
5261 2007-01-08  Bruno Haible  <bruno@clisp.org>
5262
5263         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
5264         definition.
5265         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
5266         definition.
5267         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
5268         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
5269         definition.
5270         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
5271         definition.
5272         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
5273         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
5274         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
5275         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
5276         definition.
5277         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
5278         definition.
5279         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
5280         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
5281         GC_USE_<algorithm>.
5282         * lib/gc-libgcrypt.c: Likewise.
5283         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
5284         * modules/gc-arctwo (configure.ac): Likewise.
5285         * modules/gc-des (configure.ac): Likewise.
5286         * modules/gc-hmac-md5 (configure.ac): Likewise.
5287         * modules/gc-hmac-sha1 (configure.ac): Likewise.
5288         * modules/gc-md2 (configure.ac): Likewise.
5289         * modules/gc-md4 (configure.ac): Likewise.
5290         * modules/gc-md5 (configure.ac): Likewise.
5291         * modules/gc-random (configure.ac): Likewise.
5292         * modules/gc-rijndael (configure.ac): Likewise.
5293         * modules/gc-sha1 (configure.ac): Likewise.
5294
5295 2007-01-08  Bruno Haible  <bruno@clisp.org>
5296
5297         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
5298         macro definition.
5299         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
5300         definition.
5301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
5302         definition.
5303         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
5304         * modules/fcntl-safer (configure.ac): Likewise.
5305         * modules/fopen-safer (configure.ac): Likewise.
5306         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
5307         GNULIB_FWRITEERROR macro definition.
5308
5309 2007-01-08  Bruno Haible  <bruno@clisp.org>
5310
5311         * m4/gnulib-common.m4: New file.
5312         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
5313         (func_get_filelist): Add m4/gnulib-common.m4.
5314
5315 2007-01-08  Bruno Haible  <bruno@clisp.org>
5316
5317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
5318         command.
5319
5320 2007-01-08  Jim Meyering  <jim@meyering.net>
5321
5322         Use a more robust test for a "can't happen" condition.
5323         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
5324         narrowed the st_size value.  Presuming the "can't happen" condition
5325         is true, that narrowing could conceivably convert an invalid st_size
5326         value into a valid one.  Instead, use a change based on Matthew
5327         Woehlke's original patch.
5328
5329         Slight readability improvement: use an assert-like macro
5330         in place of literal "abort ()" uses.
5331         * lib/fts.c (fts_assert): Define.
5332         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
5333         Use this macro instead of a bare 'abort'.
5334
5335 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5336
5337         Don't worry about using IRIX 5.3's wctype.h broken definitions;
5338         simply work around them.
5339         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
5340         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
5341         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
5342         declaring.
5343         Don't bother to define as macros, since the standard doesn't require it.
5344         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
5345         longer worry about IRIX 5.3.
5346         (HAVE_WCTYPE_CTMP_BUG): Remove.
5347
5348 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5349
5350         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
5351         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
5352         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
5353         Problems reported by Georg Schwarz for IRIX 5.3.
5354
5355         * gnulib-tool (autoconf_minversion): Take the maximum version number
5356         found, not the minimum.  Problem reported by James Youngman.
5357
5358 2007-01-03  Karl Berry  <karl@gnu.org>
5359
5360         * doc/error.texi: new file, explaining interaction with progname.
5361         * doc/gnulib.texi: include it.  Update copyright.
5362
5363 2007-01-03  Simon Josefsson  <simon@josefsson.org>
5364
5365         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
5366         AC_CANONICAL_HOST, to improve autobuild outputs.
5367
5368 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
5369             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5370
5371         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
5372         sockets, server sockets, and other file descriptors.  Count errors
5373         to compute the return value.  Reorder the code a bit to be easier
5374         to follow.  Don't set event bits that were not requested (except
5375         POLLERR and POLLHUP).
5376
5377 2007-01-01  Bruno Haible  <bruno@clisp.org>
5378
5379         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
5380
5381 2007-01-03  Jim Meyering  <jim@meyering.net>
5382
5383         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
5384
5385 2007-01-02  Bruno Haible  <bruno@clisp.org>
5386
5387         * modules/settime (Include): Require timespec.h.
5388         * modules/nanosleep (Include): Likewise.
5389
5390 2007-01-01  Bruno Haible  <bruno@clisp.org>
5391
5392         * gnulib-tool (func_emit_copyright_notice): Bump year.
5393         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
5394
5395 2007-01-01  Bruno Haible  <bruno@clisp.org>
5396
5397         Improve support for OpenBSD.
5398         * build-aux/config.rpath (libname_spec): Export.
5399         (library_names_spec): New variable. Export.
5400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
5401         library_names_spec from the config.rpath output. Locate shared library
5402         through the name pattern in library_names_spec.
5403
5404 2007-01-01  Eric Blake  <ebb9@byu.net>
5405
5406         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
5407
5408 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5409
5410         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
5411         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
5412         assume the C locale, and avoid an "eval" that could cause trouble.
5413         Problem with SORT reported by Bob Proulx.
5414
5415         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
5416         Define.  Trivial patch from Henning Nielsen Lund, originally
5417         sent to bug-grep@gnu.org today.
5418
5419 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5420
5421         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
5422         struct stat.  Problem reported by Henning Nielsen Lund.
5423         * lib/acl.c: Include acl.h first, to check interface.  Don't
5424         bother to include sys/types.h and sys/stat.h again.
5425
5426 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5427
5428         Import the following change from libc; problem reported by
5429         Sven Verdoolaege.
5430
5431         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
5432
5433         [BZ #1373]
5434         * lib/argp.h: Remove __NTH for __argp_usage inline function.
5435
5436 2006-12-28  Jim Meyering  <jim@meyering.net>
5437
5438         * build-aux/announce-gen: Do not assume that the package
5439         builds any of tar.gz, tar.bz2, and .xdelta files.
5440         Suggestion from Simon Josefsson.
5441
5442 2006-12-28  Simon Josefsson  <simon@josefsson.org>
5443
5444         * modules/announce-gen: New file.
5445
5446 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5447
5448         * lib/mbchar.h: Just include <wctype.h>; the wctype module
5449         handles its gotchas now.
5450         * lib/mbswidth.c: Likewise.
5451         * lib/wcwidth.h: Likewise.
5452         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
5453         and iswcntrl; the wctype module does this stuff now.
5454         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5456         * modules/mbchar (Depends-on): Add wctype.
5457         * modules/mbswidth (Depends-on): Likewise.
5458         * modules/wcwidth (Depends-on): Likewise.
5459
5460 2006-12-27  Eric Blake  <ebb9@byu.net>
5461
5462         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
5463         module uses more than what <wctype.h> is required to provide.
5464
5465 2006-12-26  Eric Blake  <ebb9@byu.net>
5466
5467         * gnulib-tool (sed_extract_prog): Avoid space-tab.
5468
5469 2006-12-26  Eric Blake  <ebb9@byu.net>
5470
5471         * modules/absolute-header: New module.
5472         * modules/fcntl (Depends-on): Depend on it.
5473         * modules/inttypes (Depends-on): Likewise.
5474         * modules/stdint (Depends-on): Likewise.
5475         * modules/sys_stat (Depends-on): Likewise.
5476         * modules/wctype (Depends-on): Likewise.
5477         * MODULES.html.sh (Support for building libraries and
5478         executables): Document it.
5479
5480 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5481
5482         * gnulib-tool (SED): Remove, undoing previous change.
5483         The problem was that it broke coreutils on Solaris, because
5484         "sed --posix" leaked into a makefile.
5485         (sed): New alias, if 'alias' and GNU sed.
5486
5487 2006-12-24  Jim Meyering  <jim@meyering.net>
5488
5489         Work around an fchownat bug in glibc-2.4:
5490         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
5491         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
5492         in spite of the -P option.
5493         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
5494         New macros.
5495         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
5496         * modules/openat (Files): Add lib/fchownat.c.
5497         * lib/openat.c (fchownat): Don't define here.  Move to...
5498         * lib/fchownat.c: ...this new file.
5499
5500 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5501
5502         Fix bug reported by Bruno Haible in
5503         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
5504         where quotearg.c didn't compile on Mac OS X 10.2 because it
5505         lacks <wchar.h> and wint_t.
5506         * lib/wctype_.h (__wctype_wint_t): New type.
5507         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
5508         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
5509         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
5510         Arg is now of type __wctype_wint_t, not wint_t.
5511         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
5512         substitute HAVE_WINT_T.
5513         * modules/wctype (Files): Add m4/wint_t.m4.
5514         (wctype.h): Substitute HAVE_WINT_T.
5515
5516 2006-12-23  Bruno Haible  <bruno@clisp.org>
5517
5518         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
5519
5520 2006-12-23  Bruno Haible  <bruno@clisp.org>
5521
5522         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
5523         S_ISLNK.
5524         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
5525         mingw.
5526
5527 2006-12-22  Bruno Haible  <bruno@clisp.org>
5528
5529         * lib/copy-file.c: Include acl.h.
5530         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
5531         Close the file descriptors only after being done with copy_acl.
5532         * modules/copy-file (Depends-on): Add acl.
5533
5534 2006-12-22  Bruno Haible  <bruno@clisp.org>
5535
5536         * gnulib-tool (SED): New variable.
5537         Use $SED instead of sed everywhere.
5538
5539 2006-12-22  Bruno Haible  <bruno@clisp.org>
5540
5541         * modules/no-c++: New file.
5542         * m4/no-c++.m4: New file.
5543         * MODULES.html.sh (Support for building libraries and executables):
5544         Add no-c++.
5545
5546 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5547
5548         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
5549         Include <limits.h>, and use its INT_MAX to rewrite the
5550         j loop so that it does not overflow 'int'.  Problem reported by
5551         Ralf Wildenhues in
5552         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
5553         Play it safe by shifting left by 1 rather than multiplying by 2,
5554         as GCC is less likely to optimize this away when the value
5555         is signed (when it assumes overflow leads to undefined behavior).
5556         Also, don't assume time_t uses two's complement.
5557
5558 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5559
5560         * MODULES.html.sh: New module wctype.
5561         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
5562         * lib/fnmatch.c: Don't bother to include <wchar.h> before
5563         <wctype.h>, since the new wctype module should fix this.
5564         * lib/quotearg.c: Include <wctype.h> unconditionally, since
5565         the wctype module should arrange for it.
5566         * lib/regex_internal.h: Likewise.
5567         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
5568         since the wctype module should handle this now.
5569         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
5570         * modules/fnmatch (Depends-on): Add wctype.
5571         * modules/quotearg (Depends-on): Likewise.
5572         * modules/regex (Depends-on): Likewise.
5573
5574 2006-12-19  Bruno Haible  <bruno@clisp.org>
5575
5576         * lib/strdup.h [C++]: Wrap definitions in extern "C".
5577         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
5578
5579 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5580
5581         * modules/savewd (Depends-on): Fix dependency on fcntl.
5582
5583 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5584
5585         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
5586         conforms to C99, rather than relying on the user's environment
5587         setting of STDINT_H.
5588
5589 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5590         and Eric Blake  <ebb9@byu.net>
5591
5592         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
5593         This is more consistent with the other defines here.
5594         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
5595         Port to z/OS.  Problem reported by Paul Gilmartin.
5596         Change local vars to use gl_ prefix rather than ac_.
5597         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
5598         with other defines.
5599         * modules/double-slash-root: New module.
5600         * modules/dirname (Files): Remove m4/double-slash-root.m4.
5601         (Depends-on): Add double-slash-root.
5602         * MODULES.html.sh (File system functions): Mention new module.
5603
5604 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
5605
5606         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
5607         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
5608         This is for the benefit of gzip, which doesn't do i18n.
5609
5610 2006-12-12  Jim Meyering  <jim@meyering.net>
5611
5612         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
5613         Reported by Andreas Schwab <schwab@suse.de>.
5614
5615 2006-12-12  Bruno Haible  <bruno@clisp.org>
5616
5617         Merge these changes.
5618         2006-09-05  Bruno Haible  <bruno@clisp.org>
5619         * lib/iconvme.c (iconv_string): No need to save and restore errno when
5620         iconv_alloc succeeded.
5621         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
5622         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
5623         test for " && dest " at the end - dest is always != NULL there. Call
5624         iconv with 4xNULL arguments initially, to reset the state. Call iconv
5625         with 2xNULL arguments, also to flush the state storage. Handle the
5626         IRIX iconv behaviour. Realloc the final result, to throw away unused
5627         memory.
5628
5629 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
5630
5631         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
5632         and fchmodat unconditionally, since glibc 2.4 has them.
5633         Problem reported by Arkadiusz Miskiewicz.
5634
5635 2006-12-10  Bruno Haible  <bruno@clisp.org>
5636
5637         * gnulib-tool (func_import): Show the include files only for those
5638         modules that are copied and specified.
5639         Reported by Karl Berry.
5640
5641 2006-12-08  Jim Meyering  <jim@meyering.net>
5642
5643         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
5644         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
5645
5646         * build-aux/announce-gen: Add two new options, both optional:
5647         --bootstrap-tools=TOOL_LIST
5648               a comma-separated list of tools, e.g.,
5649               autoconf,automake,bison,gnulib
5650         --gnulib-snapshot-date=DATE
5651               if gnulib is in the bootstrap tool list,
5652               then report this as the snapshot date.
5653               If not specified, use the current date/time.
5654               If you specify a date here, be sure it's UTC.
5655
5656 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5657
5658         * tests/test-argp-2.sh: Fix test to match actual output.
5659         (func_compare): Fix sed script to be portable.
5660
5661 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
5662
5663         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
5664         workaround for this case.  It is not autoconfigured now; offhand
5665         it's hard to see how to autoconfigure it.
5666
5667 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
5668
5669         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
5670         a directory that is about to be chowned.  Such a directory's
5671         initial file permissions should permit the owner only and this
5672         should not be changed until after the chown, since the group and
5673         other bits would be incorrect if they granted permission before
5674         the chown.
5675
5676         Fix porting problem for iswctype reported by Georg Schwarz in:
5677         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
5678         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
5679         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
5680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
5681         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5682
5683 2006-12-03  Jim Meyering  <jim@meyering.net>
5684
5685         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
5686         p->fts_statp may not yet be defined.
5687         (fts_read): Instead, set it in the caller, once p->fts_statp is
5688         sure to be defined, and corresponds to a top-level directory.
5689         This bug made du -x fail.  Here's the coreutils test case:
5690         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
5691         Reported by Mike Frysinger.
5692
5693 2006-12-01  Jim Meyering  <jim@meyering.net>
5694
5695         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
5696         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
5697         Reported by Simon Josefsson.
5698
5699 2006-11-30  Jim Meyering  <jim@meyering.net>
5700
5701         * m4/warning.m4: Use the all-permissive copyright notice
5702         recommended by RMS (rather than LGPL).
5703         * m4/vararrays.m4: Likewise.
5704         * m4/flexmember.m4: Likewise.
5705
5706 2006-11-29  Bruno Haible  <bruno@clisp.org>
5707
5708         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5709         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
5710         using +=.
5711         Reported by Simon Josefsson <simon@josefsson.org>.
5712
5713 2006-11-28  James Youngman <jay@gnu.org>
5714
5715         * README: Advise users that they might find the bug-gnulib@gnu.org
5716         and autotools-announce@gnu.org mailing lists useful.
5717
5718 2006-11-28  Bruno Haible  <bruno@clisp.org>
5719
5720         * m4/ptrdiff_max.m4: Remove file.
5721
5722 2006-11-21  Bruno Haible  <bruno@clisp.org>
5723
5724         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
5725         _AC_COMPUTE_INT.
5726         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
5727         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
5728         _AC_COMPUTE_INT.
5729         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
5730         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
5731         _AC_COMPUTE_INT.
5732         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
5733
5734 2006-11-28  Jim Meyering  <jim@meyering.net>
5735
5736         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
5737         warning from "gcc -Wshadow" about shadowing the builtin.
5738
5739 2006-11-27  Bruno Haible  <bruno@clisp.org>
5740
5741         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
5742         _AC_COMPUTE_INT.
5743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
5744
5745 2006-11-27  Bruno Haible  <bruno@clisp.org>
5746             Paul Eggert  <eggert@cs.ucla.edu>
5747
5748         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
5749
5750 2006-11-26  Bruno Haible  <bruno@clisp.org>
5751
5752         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5753         noinst_LTLIBRARIES.
5754
5755 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
5756             Bruno Haible  <bruno@clisp.org>
5757
5758         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
5759         if compiling with "gcc -ansi".
5760
5761 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
5762
5763         Fix some incompatibilities with gcc -ansi -pedantic.
5764         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
5765         if compiling pedantically with GCC, unless it's C99 or later.
5766         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
5767         it mishandles gcc -ansi -pedantic as well.
5768         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
5769         if gcc -pedantic.
5770         * lib/regexec.c (check_node_accept_bytes): Don't use auto
5771         initializers for struct if -pedantic, unless it's C99 or later.
5772
5773 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
5774
5775         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
5776         Don't close an fd more than once. Identical atimes indicate
5777         success, not failure.
5778
5779 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
5780
5781         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
5782
5783 2006-11-23  Jim Meyering  <jim@meyering.net>
5784
5785         * build-aux/announce-gen: New file.  From coreutils.
5786
5787 2006-11-22  Jim Meyering  <jim@meyering.net>
5788
5789         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
5790         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
5791         (fts_read): Use a temporary to narrow the overused st_size member
5792         before using it in a switch statement.  Reported by Matthew Woehlke.
5793
5794         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
5795         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5796
5797 2006-11-20  Bruno Haible  <bruno@clisp.org>
5798
5799         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
5800         changequote instead of pairs of brackets.
5801         Reported by Andreas Schwab <schwab@suse.de>.
5802
5803 2006-11-21  Jim Meyering  <jim@meyering.net>
5804
5805         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
5806         so as to remain compatible with older compilers.
5807         Patch from Michael Deutschmann.
5808
5809 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
5810
5811         * MODULES.html.sh (File system functions): Add openat.
5812
5813         * lib/openat.h (rpl_fstatat): New macro, if
5814         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
5815         (fstatat): Define to rpl_fstatat under the same conditions,
5816         unless COMPILING_FSTATAT.
5817         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
5818         seems to have the bug.
5819         * lib/fstatat.c: New file.
5820         * modules/openat (Files): Add it.
5821
5822 2006-11-20  Bruno Haible  <bruno@clisp.org>
5823
5824         * Makefile: New file.
5825
5826 2006-11-20  Jim Meyering  <jim@meyering.net>
5827
5828         The beginnings of syntax-related checks for gnulib.
5829         * lib/Makefile: New file.
5830         * lib/t-idcache: New script.  Ensure that the two halves of
5831         idcache.c stay in sync.
5832
5833         * lib/idcache.c: Adjust comments in user- and group- portions to
5834         be more accurate, and to be consistent with one another.
5835
5836 2006-11-20  Jim Meyering  <jim@meyering.net>
5837
5838         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
5839         continue using the flexible array member (thus, this module performs
5840         half as many malloc calls), with the addition that...
5841         (getgroup, getuser): Consistently record a non-match via an empty
5842         "name" string, and map an empty string match to a NULL return value.
5843         * modules/idcache (Depends-on): Re-add flexmember.
5844
5845         * lib/idcache.c (getuser): Remove all uses of the register keyword.
5846         (getuidbyname, getgroup, getgidbyname): Likewise.
5847
5848         Use cleaner syntax: NULL rather than 0.
5849         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
5850
5851 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
5854         It mishandled the case where the group was missing.
5855         Problem reported by Greg Schafer.
5856         * modules/idcache: Likewise.
5857
5858 2006-11-18  Jim Meyering  <jim@meyering.net>
5859
5860         * check-module (%exempt_header): Add exception for some
5861         conditionally-included headers.
5862
5863         * modules/i-ring (Depends-on): Add verify.
5864         (License): Change to LGPL.
5865
5866 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
5867
5868         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
5869         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
5870         and inttostr.h.  Use snprintf rather than uinttostr, so that
5871         LGPLed code doesn't depend on GPLed.
5872
5873 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5874
5875         * modules/inline (License): Change from GPL to LGPL.
5876
5877 2006-11-17  Jim Meyering  <jim@meyering.net>
5878
5879         * modules/d-type (License): Switch to LGPL.
5880
5881 2006-11-15  Bruno Haible  <bruno@clisp.org>
5882
5883         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
5884
5885 2006-11-15  Eric Blake  <ebb9@byu.net>
5886
5887         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
5888         the module dependency.
5889
5890 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5891             Bruno Haible  <bruno@clisp.org>
5892
5893         * gnulib-tool (func_create_testdir): Add license consistency check.
5894
5895 2006-11-15  Eric Blake  <ebb9@byu.net>
5896
5897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
5898         random "(cached)" in configure output.
5899
5900 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5901
5902         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
5903         test for conforming inttypes.h is both announced and cached.
5904
5905         * MODULES.html.sh (seen_modules, seen_files): New variables.
5906         (func_module): Rewrite to use a few less gnulib-tool and sed
5907         invocations.  Avoid a couple of quadratic algorithms for ...
5908         (missed_modules, missed_files): ... these, with ...
5909         (func_append, func_tmpdir): ... these new functions, from
5910         gnulib-tool.  Analogously, install traps for cleanup.
5911
5912         * tests/test-gc.c (main): Remove unused variables.
5913         * tests/test-read-file.c: Include stdlib.h, for 'free'.
5914
5915 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
5916
5917         * modules/inttostr (License): Change to LGPL.
5918
5919 2006-11-14  Eric Blake  <ebb9@byu.net>
5920
5921         * modules/tempname (License): Change to LGPL.
5922
5923 2006-11-14  Eric Blake  <ebb9@byu.net>
5924
5925         * doc/functions.texi (Function Portability): *printf functions on
5926         Cygwin now understand all POSIX size specifiers.
5927
5928 2006-11-14  Bruno Haible  <bruno@clisp.org>
5929
5930         * modules/c-ctype (License): Change to LGPL.
5931
5932 2006-11-12  Bruno Haible  <bruno@clisp.org>
5933
5934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5935         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
5936         for GNOME libraries, for which the include files are installed in
5937         subdirectories of $prefix/include.
5938
5939 2006-11-12  Bruno Haible  <bruno@clisp.org>
5940
5941         * m4/lib-link.m4: Require at least autoconf-2.54.
5942         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
5943         name to underscores for the --with option.
5944
5945 2006-11-13  Bruno Haible  <bruno@clisp.org>
5946
5947         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
5948         the tests directory.
5949         Reported by Ralf Wildenhues.
5950
5951 2006-11-13  Bruno Haible  <bruno@clisp.org>
5952
5953         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
5954         (func_emit_initmacro_end): Undo the override here.
5955         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
5956         Works around the famous automake error in coreutils.
5957
5958 2006-11-13  Eric Blake  <ebb9@byu.net>
5959
5960         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
5961         element, not its node.
5962
5963 2006-11-12  Bruno Haible  <bruno@clisp.org>
5964
5965         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
5966         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
5967
5968 2006-11-12  Bruno Haible  <bruno@clisp.org>
5969
5970         * gnulib-tool: New option --local-symlink.
5971         (func_usage): Document it.
5972         (lsymbolic): New variable.
5973         (func_import, func_create_testdir): If --symlink was not specified,
5974         test whether --local-symlink was specified and the file comes from
5975         the local_gnulib_dir.
5976
5977 2006-11-12  Bruno Haible  <bruno@clisp.org>
5978
5979         * gnulib-tool (func_ln): New function.
5980         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
5981
5982 2006-11-12  Bruno Haible  <bruno@clisp.org>
5983
5984         Finish support for source files in subdirectories.
5985         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
5986         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
5987         AUTOMAKE_OPTIONS.
5988         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
5989
5990 2006-11-12  Bruno Haible  <bruno@clisp.org>
5991
5992         * gnulib-tool (func_get_automake_snippet): Synthesize also an
5993         EXTRA_lib_SOURCES augmentation.
5994         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
5995
5996 2006-11-12  Jim Meyering  <jim@meyering.net>
5997
5998         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
5999         file descriptors.  This also averts a failure on systems with
6000         native openat support when a traversed directory lacks "x" access.
6001         * lib/fts_.h: Include "i-ring.h"
6002         (struct FTS) [fts_fd_ring]: New member.
6003         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
6004         (FCHDIR): Add parentheses.
6005         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
6006         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
6007         When descending, rather than simply closing the previous
6008         fts_cwd_fd value, push that file descriptor onto the ring.
6009         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
6010         (fts_open): Initialize the new fd_ring member.
6011         (fts_close): Clear the ring.
6012         (fts_safe_changedir): When possible, use our new fd_ring to skip
6013         the diropen and fstat and dev/ino comparison that would normally
6014         accompany a virtual `chdir ("..")'.
6015
6016         * modules/fts (Depends-on): Add i-ring.
6017         * modules/i-ring: New module.
6018         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
6019         * m4/i-ring.m4: New file.
6020
6021 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6022
6023         * gnulib-tool (func_create_testdir): Fix replacement of
6024         `build-aux' in configure.ac.  Run autotools in gltests
6025         subdirectory.
6026         (func_create_testdir, func_create_megatestdir, test): There is
6027         no need for '--force' in most autotool invocations in a new
6028         tree.  Actually fail the whole test if any of the tools, or the
6029         configure or make stages fail.
6030
6031         Sync from Automake.
6032         * build-aux/gnupload: Revert last change.  Add pointer to upload
6033         instructions of the GNU Maintenance Instructions.
6034         Suggestion by Karl Berry.
6035
6036 2006-11-10  Jim Meyering  <jim@meyering.net>
6037
6038         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
6039
6040 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6041
6042         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
6043         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
6044         (bind_textdomain_codeset) [! ENABLE_NLS]:
6045         Evaluate all the arguments.  That way, callers get compatible behavior
6046         if the arguments have side effects.  Also, it avoids some GCC
6047         diagnostics in some cases; Joel E. Denny reported problems when Bison
6048         was configured with --enable-gcc-warnigs.
6049
6050 2006-11-10  Jim Meyering  <jim@meyering.net>
6051
6052         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
6053         relevant options in CFLAGS (like -O, -fno-inline) are taken into
6054         account.
6055
6056 2006-11-10  Jim Meyering  <jim@meyering.net>
6057
6058         * modules/inline: New file/module.
6059         * modules/xalloc (Files): Remove m4/inline.m4.
6060         (Depends-on): Add inline, instead.
6061         * modules/oset: Likewise.
6062         * modules/list: Likewise.
6063
6064 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6065
6066         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
6067         Problem reported by Matthew Woehlke.
6068
6069 2006-11-09  Bruno Haible  <bruno@clisp.org>
6070
6071         * lib/tempname.c (gen_tempname): Remove variant that invokes
6072         __gen_tempname.
6073         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
6074         __gen_tempname.
6075
6076 2006-11-08  Bruno Haible  <bruno@clisp.org>
6077
6078         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
6079         to 'yes' instead of 'cross-compiling'.
6080
6081 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
6082
6083         * lib/quotearg.h (quotearg_free): New decl.
6084         * lib/quotearg.c (quotearg_free): New function.
6085         (slot0, nslots, slotvec0, slotvec):
6086         Now file-scope so that quotearg_free can get at them.
6087
6088 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6089
6090         Sync from Automake.
6091         * build-aux/gnupload: Add missing 'gnu' to example URL.
6092         Report by Karl Berry.
6093
6094 2006-11-08  Bruno Haible  <bruno@clisp.org>
6095
6096         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
6097         Suggested by Paul Eggert.
6098
6099 2006-11-08  Jim Meyering  <jim@meyering.net>
6100
6101         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
6102         It's already included if !_LIBC.
6103         (fts_safe_changedir): Add a comment.
6104
6105 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6106
6107         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
6108         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
6109         Matthew Woehlke.
6110
6111         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
6112         definitions up, to avoid colliding with change below.
6113         (static_inline) [HAVE_INLINE]: New macro.
6114         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
6115         Provide extern decls when !HAVE_INLINE.  Do not define unless
6116         static_inline is defined, either by us or by xmalloc.c.  Use
6117         static_inline rather than static inline.
6118         (XCALLOC): Optimize sizeof(T) = 1 case.
6119         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
6120
6121 2006-11-07  Bruno Haible  <bruno@clisp.org>
6122
6123         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
6124         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
6125         AC_C_INLINE.
6126         * modules/xalloc (Files): Add m4/inline.m4.
6127
6128 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6129
6130         * README: Fix typo.
6131         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
6132         (Miscellanous Notes): ...from this.
6133
6134 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6135
6136         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6137         Mention that offsetof should be used instead of sizeof.
6138         From Bruno Haible.
6139
6140 2006-11-07  Bruno Haible  <bruno@clisp.org>
6141
6142         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
6143
6144 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6145
6146         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
6147         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
6148         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
6149         (gl_tree_add_before, gl_tree_add_after):
6150         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
6151         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
6152         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
6153         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
6154         (gl_linked_add_after, gl_linked_add_at): Likewise.
6155         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
6156         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
6157         (gl_tree_add_before, gl_tree_add_after): Likewise.
6158         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
6159         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
6160         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6161
6162 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6163
6164         * lib/gl_oset.h: Use C comment style, not C++ comment style.
6165
6166 2006-11-06  Bruno Haible  <bruno@clisp.org>
6167
6168         * m4/inline.m4: New file.
6169         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
6170         * modules/list (Files): Add m4/inline.m4.
6171         * modules/oset (Files): Likewise.
6172
6173 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         * lib/idcache.c: Include <stddef.h>, for offsetof.
6176         (struct userid.name): Change from char * to a flexible array member.
6177         All uses changed.
6178         * modules/idcache (Depends-on): Add flexmember.
6179
6180         * MODULES.html.sh (Core language properties): New module flexmember.
6181         * modules/flexmember, m4/flexmember.m4: New files.
6182
6183         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
6184         inline functions that are identical with the old xnmalloc_inline,
6185         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
6186         that we can avoid some unnecessary integer multiplications and
6187         divisions in the common case where the element size is known at
6188         compile time.
6189         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
6190         needed.
6191         (xnboundedmalloc): Remove.
6192         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
6193         arguments, for consistency with rest of this header.
6194         (xcharalloc): Rewrite using XNMALLOC.
6195         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
6196         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
6197         versions have been moved to lib/xalloc.h and renamed to be the
6198         non-*_inline versions.
6199         (xmalloc, xrealloc): Implement without reference to the xnmalloc
6200         and xnrealloc functions, since those functions are now inline and
6201         now call us.
6202         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
6203         renaming described above.
6204         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
6205         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
6206         captures the dependency in AC_C_INLINE.
6207
6208         New module canonicalize-lgpl, proposed by Charles Wilson in
6209         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
6210         with a few small changes afterwards.
6211         * MODULES.html.sh (File system functions): New module
6212         canonicalize-lgpl.
6213         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
6214         and canonicalize_file_name.
6215         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
6216         * modules/canonicalize-lgpl: New files.
6217
6218 2006-11-05  Bruno Haible  <bruno@clisp.org>
6219
6220         * gnulib-tool (func_import, func_create_testdir): Create directories
6221         also for files in subdirectories of lib/.
6222
6223 2006-11-05  Bruno Haible  <bruno@clisp.org>
6224
6225         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
6226         ANSI C compliant.
6227
6228 2006-11-03  Bruno Haible  <bruno@clisp.org>
6229
6230         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
6231         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
6232         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
6233         (xnboundedmalloc): New inline function.
6234         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
6235         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
6236         xmalloc.
6237         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
6238         xmalloc.
6239         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
6240         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
6241         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
6242         xmalloc.
6243         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
6244         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
6245         xmalloc.
6246         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
6247         gl_tree_add_after): Use XMALLOC instead of xmalloc.
6248         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
6249         xmalloc.
6250         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
6251         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
6252         gl_tree_add_after): Use XMALLOC instead of xmalloc.
6253         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
6254         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
6255         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
6256         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
6257
6258 2006-11-03  Bruno Haible  <bruno@clisp.org>
6259
6260         * lib/c-ctype.h [C++]: Define functions without name mangling.
6261         * lib/fwriteerror.h [C++]: Likewise.
6262         * lib/gcd.h [C++]: Likewise.
6263         * lib/linebreak.h [C++]: Likewise.
6264
6265 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6266
6267         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
6268         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
6269         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
6270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
6271         Check for functions and headers just once.
6272         Check for declaration of canonicalize_file_name.
6273         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
6274
6275 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6276
6277         * gnulib-tool (func_import): Fix typo in actioncmd.
6278
6279 2006-11-02  Bruno Haible  <bruno@clisp.org>
6280
6281         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
6282         newline sequence in the Makefile.am snippet as a space, like "make"
6283         does.
6284         Reported by Roger Persson <perrog@gmail.com>.
6285
6286 2006-11-01  Bruno Haible  <bruno@clisp.org>
6287
6288         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
6289         already declared in <string.h>.
6290         * lib/strcase.h (strncasecmp): Don't declare it if yes.
6291
6292 2006-11-01  Bruno Haible  <bruno@clisp.org>
6293
6294         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
6295         * lib/strcase.h: Include <string.h>.
6296         (strcasecmp): Define to rpl_strcasecmp here.
6297
6298 2006-11-01  Bruno Haible  <bruno@clisp.org>
6299
6300         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
6301
6302 2006-11-01  Eric Blake  <ebb9@byu.net>
6303
6304         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
6305
6306         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
6307
6308 2006-10-29  Bruno Haible  <bruno@clisp.org>
6309
6310         Make it compile in C++ mode.
6311         * lib/full-write.c (full_rw): Add a cast.
6312
6313 2006-11-01  Bruno Haible  <bruno@clisp.org>
6314
6315         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
6316         be POSIX compliant.
6317         Reported by Roger Persson <perrog@gmail.com>.
6318
6319 2006-11-01  Eric Blake  <ebb9@byu.net>
6320
6321         * lib/getopt_.h: Fix comments.
6322
6323 2006-10-31  Eric Blake  <ebb9@byu.net>
6324
6325         * modules/tmpdir (Depends-on): Add sys_stat.
6326         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
6327         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
6328         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
6329         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
6330         tempname.
6331
6332 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6333
6334         Avoid some C++ diagnostics reported by Bruno Haible.
6335         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
6336         xmalloc.
6337         (quotearg_alloc): Use xcharalloc rather than xmalloc.
6338         (struct slotvec): Move to top level.
6339         (quotearg_n_options): Rewrite to avoid xmalloc.
6340         * lib/xalloc.h (xcharalloc): New function.
6341         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
6342         [defined __cplusplus]: Add function template that provides result
6343         type propagation.  This part of the change is from Bruno Haible.
6344
6345 2006-10-29  Bruno Haible  <bruno@clisp.org>
6346
6347         Make it compile in C++ mode.
6348         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
6349         * lib/strnlen1.c (strnlen1): Cast memchr result.
6350         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
6351         * lib/clean-temp.c (string_equals, string_hash): Add casts.
6352         (create_temp_dir): Rename local variable 'template'.
6353         (compile_csharp_using_sscli): Add cast.
6354         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
6355         * lib/findprog.c (find_in_path): Likewise.
6356         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
6357         * lib/wait-process.c (register_slave_subprocess): Likewise.
6358
6359 2006-10-22  Bruno Haible  <bruno@clisp.org>
6360
6361         * modules/tsearch: New file.
6362         * lib/tsearch.h: New file.
6363         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
6364         * m4/tsearch.m4: New file.
6365         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
6366
6367 2006-10-29  Eric Blake  <ebb9@byu.net>
6368
6369         * lib/arcfour.c: Assume config.h.
6370         * lib/arctwo.c: Likewise.
6371         * lib/base64.c: Likewise.
6372         * lib/check-version.c: Likewise.
6373         * lib/crc.c: Likewise.
6374         * lib/des.c: Likewise.
6375         * lib/gc-gnulib.c: Likewise.
6376         * lib/gc-libgcrypt.c: Likewise.
6377         * lib/gc-pbkdf2-sha1.c: Likewise.
6378         * lib/getaddrinfo.c: Likewise.
6379         * lib/getdelim.c: Likewise.
6380         * lib/getline.c: Likewise.
6381         * lib/hmac-md5.c: Likewise.
6382         * lib/hmac-sha1.c: Likewise.
6383         * lib/iconvme.c: Likewise.
6384         * lib/md2.c: Likewise.
6385         * lib/md4.c: Likewise.
6386         * lib/memxor.c: Likewise.
6387         * lib/read-file.c: Likewise.
6388         * lib/readline.c: Likewise.
6389         * lib/rijndael-alg-fst.c: Likewise.
6390         * lib/rijndael-api-fst.c: Likewise.
6391         * lib/xgetdomainname.c: Likewise.
6392
6393 2006-10-28  Eric Blake  <ebb9@byu.net>
6394
6395         * lib/xstrndup.c: Assume config.h.
6396
6397 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6398
6399         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
6400         stat-macros.h is now for our own macros, whereas stat_h is for
6401         macros in the <sys/stat.h> name space.
6402         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
6403         (STAT_MACROS_H): Remove.
6404         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
6405         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
6406         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
6407         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
6408         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
6409         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
6410         Move these macros to ...
6411         * lib/stat_.h: here.  Don't include stat-macros.h.
6412         * lib/canonicalize.c: Don't include stat-macros.h.
6413         * lib/chown.c: Likewise.
6414         * lib/euidaccess.c: Likewise.
6415         * lib/file-type.c: Likewise.
6416         * lib/filemode.c: Likewise.
6417         * lib/glob.c: Likewise.
6418         * lib/isapipe.c: Likewise.
6419         * lib/lchown.c: Likewise.
6420         * lib/lstat.c: Likewise.
6421         * lib/mkdir-p.c: Likewise.
6422         * lib/rmdir.c: Likewise.
6423         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
6424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
6425         unless mkdir isn't declared, to speed up 'configure'.
6426         Always create sys/stat.h, since it's unlikely any real sys/stat.h
6427         would define all the S_* symbols.
6428         * modules/canonicalize (Depends-on):
6429         Depend on sys_stat, not stat-macros.
6430         * modules/chown: Likewise.
6431         * modules/euidaccess: Likewise.
6432         * modules/filemode: Likewise.
6433         * modules/file-type: Likewise.
6434         * modules/glob: Likewise.
6435         * modules/isapipe: Likewise.
6436         * modules/lchown: Likewise.
6437         * modules/lstat: Likewise.
6438         * modules/mkancesdirs: Likewise.
6439         * modules/rmdir: Likewise.
6440         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
6441         * modules/modechange: Likewise.
6442         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
6443         (configure.ac): Remove gl_STAT_MACROS.
6444         * modules/sys_stat (Depends-on): Remove stat-macros.
6445
6446 2006-10-27  Bruno Haible  <bruno@clisp.org>
6447
6448         * m4/signed.m4: Remove file.
6449         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
6450         invocation.
6451         * modules/vasnprintf (Files): Remove m4/signed.m4.
6452
6453 2006-10-27  Bruno Haible  <bruno@clisp.org>
6454
6455         Update to GNU gettext 0.16.
6456         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
6457         m4/inttypes-h.m4, m4/signed.m4.
6458         * m4/gettext.m4: Update to GNU gettext 0.16.
6459         * m4/intl.m4: New file, from GNU gettext.
6460         * m4/intldir.m4: New file, from GNU gettext.
6461         * config/srclist.txt: Update
6462
6463 2006-10-27  Eric Blake  <ebb9@byu.net>
6464
6465         * MODULES.html.sh: Document tempname.
6466         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
6467         dependencies.
6468         (Files): Move lib/tempname.c...
6469         * modules/tempname: ...to this new module.
6470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
6471         (gl_PREREQ_TEMPNAME): Move...
6472         * m4/tempname.m4: ...to this new file.
6473         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
6474         * modules/sys_stat (Depends-on): Add stat-macros.
6475         * lib/stat_.h (includes): Pick up stat macros.
6476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
6477         if stat macros are broken.
6478         * lib/tempname.c (includes): No need to include "stat-macros.h".
6479         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
6480         (direxists, __path_search) [!_LIBC]: Don't compile these in
6481         gnulib; the tmpdir module covers that.
6482         * lib/tempname.h: New file.
6483
6484 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6485
6486         * COPYING: Explain how gnulib-tool converts licence headers.
6487         Almost all wording by Eric Blake.
6488
6489 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6490
6491         * lib/mbchar.h (is_basic_table): Make read-only.
6492         * lib/mbchar.c (is_basic_table): Likewise.
6493         Reported by John Darrington.
6494
6495 2006-10-25  Bruno Haible  <bruno@clisp.org>
6496
6497         * lib/progname.h (set_program_name): Undefine before defining.
6498
6499 2006-10-25  Bruno Haible  <bruno@clisp.org>
6500
6501         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
6502         false for non-gcc C++ compilers.
6503         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6504
6505 2006-10-24  Bruno Haible  <bruno@clisp.org>
6506
6507         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
6508         iconv implementations like Irix iconv.
6509
6510 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6511
6512         * modules/vararrays: New file.
6513         * m4/vararrays.m4: New file, taken from diffutils.
6514         * MODULES.html.sh: New module vararrays.
6515
6516 2006-10-24  Karl Berry  <karl@gnu.org>
6517
6518         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
6519         Don't call GNU Unix.
6520
6521 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6522
6523         * users.txt: Add Libtool.
6524
6525         Sync from Libtool:
6526
6527         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6528
6529         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
6530         to gnulib's policy of including config.h unconditionally.
6531
6532 2006-10-24  Bruno Haible  <bruno@clisp.org>
6533
6534         * modules/wcwidth (Files): Add m4/wint_t.m4.
6535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
6536         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
6537
6538 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6539
6540         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
6541         to pacify GCC with some -W flags enabled.  Problem reported by
6542         Bruno Haible.
6543
6544 2006-10-24  Jim Meyering  <jim@meyering.net>
6545
6546         * MODULES.html.sh: Remove uinttostr.  It's not a module.
6547         Reported by Karl Berry.
6548
6549 2006-10-23  Bruno Haible  <bruno@clisp.org>
6550
6551         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
6552
6553 2006-10-24  Bruno Haible  <bruno@clisp.org>
6554
6555         * lib/gl_list.h: Use C comment style, not C++ comment style.
6556
6557 2006-10-23  Eric Blake  <ebb9@byu.net>
6558
6559         * lib/getaddrinfo.c (includes): Add missing include.
6560
6561 2006-10-23  Bruno Haible  <bruno@clisp.org>
6562             Paul Eggert  <eggert@cs.ucla.edu>
6563
6564         Ability to rename obstack_free.
6565         * lib/obstack.h (__obstack_free): New macro. Declare instead of
6566         obstack_free.
6567         (obstack_free): Invoke the __obstack_free macro.
6568         * lib/obstack.c (obstack_free): Use __obstack_free macro.
6569
6570 2006-10-23  Bruno Haible  <bruno@clisp.org>
6571             Paul Eggert  <eggert@cs.ucla.edu>
6572
6573         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
6574         __argc, __argv from the declaration. (They are defined as macros on
6575         mingw.)
6576
6577 2006-10-22  Bruno Haible  <bruno@clisp.org>
6578
6579         * doc/gnulib-intro.texi: New file.
6580         * doc/gnulib.texi: Include it.
6581
6582 2006-10-21  Bruno Haible  <bruno@clisp.org>
6583
6584         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
6585         "Introduction", "Miscellanous Notes", "Particular Modules".
6586
6587 2006-10-21  Bruno Haible  <bruno@clisp.org>
6588
6589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6590         Change mostlyclean-local rule to avoid sh syntax error from bash
6591         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
6592
6593 2006-10-23  Jim Meyering  <jim@meyering.net>
6594
6595         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
6596         in place of snprintf.
6597
6598         * modules/inttostr (Files): Add lib/uinttostr.c.
6599         * lib/uinttostr.c (inttostr): New file/function.
6600         * lib/inttostr.h (uinttostr): Declare.
6601         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
6602         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
6603         Add uinttostr.
6604         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
6605
6606 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
6607
6608         * lib/canonicalize.c (ELOOP): Define if not already defined.
6609         Problem reported by Bruno Haible in
6610         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
6611
6612 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
6613
6614         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
6615         Problem reported by Perry Smith and Ville Laurikari.
6616
6617         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
6618         uses.
6619
6620 2006-10-19  Bruno Haible  <bruno@clisp.org>
6621
6622         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
6623         for mingw.
6624
6625 2006-10-19  Bruno Haible  <bruno@clisp.org>
6626
6627         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
6628         Needed for mingw.
6629
6630 2006-10-19  Bruno Haible  <bruno@clisp.org>
6631
6632         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
6633
6634 2006-10-19  Bruno Haible  <bruno@clisp.org>
6635
6636         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
6637         it.
6638
6639 2006-10-19  Bruno Haible  <bruno@clisp.org>
6640
6641         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
6642         invocation.
6643
6644 2006-10-19  Bruno Haible  <bruno@clisp.org>
6645
6646         * gnulib-tool (func_create_testdir): Don't include ftruncate and
6647         mountlist by default.
6648
6649 2006-10-16  Bruno Haible  <bruno@clisp.org>
6650
6651         * lib/c-strstr.c: Include c-strstr.h.
6652
6653 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6654
6655         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
6656         in a slash.
6657
6658 2006-10-18  Bruno Haible  <bruno@clisp.org>
6659
6660         * lib/lock.h [C++]: Wrap definitions in extern "C".
6661
6662 2006-10-18  Bruno Haible  <bruno@clisp.org>
6663
6664         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
6665         gl_LIBOBJS list.
6666
6667 2006-10-18  Bruno Haible  <bruno@clisp.org>
6668
6669         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
6670
6671 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
6672
6673         * lib/xstrtol.h: Include gettext.h.
6674         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
6675         Problem reported by Eric Blake.
6676         * modules/xstrtol (Depends-on): Add gettext-h.
6677
6678 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
6679
6680         * lib/strftime.c (advance): New macro.
6681         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
6682         incomplete type, so you can't add 0 to it.  Problem and patch
6683         reported by Eelco Dolstra for dietlibc.
6684
6685 2006-10-18  Jim Meyering  <jim@meyering.net>
6686
6687         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
6688         type for a local, and rename it: s/up/user_proc/.
6689
6690 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6691
6692         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
6693         READ_UTMP_USER_PROCESS.
6694         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
6695
6696 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
6697
6698         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
6699         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
6700
6701 2006-10-17  Eric Blake  <ebb9@byu.net>
6702
6703         * lib/sigprocmask.c (sigprocmask): Fix typo.
6704
6705         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
6706
6707         * modules/clean-temp (Makefile.am): Don't add to make output...
6708         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
6709         config.h.
6710
6711 2006-10-17  Bruno Haible  <bruno@clisp.org>
6712
6713         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
6714         differently if DEFAULT_TEXT_DOMAIN is set.
6715
6716 2006-10-16  Bruno Haible  <bruno@clisp.org>
6717
6718         * lib/clean-temp.c: Include fwriteerror.h.
6719
6720 2006-10-16  Bruno Haible  <bruno@clisp.org>
6721
6722         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
6723
6724 2006-10-16  Bruno Haible  <bruno@clisp.org>
6725
6726         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
6727         * lib/sigprocmask.h: Include <sys/types.h>.
6728         (sigset_t): Use the system's definition if present.
6729
6730 2006-10-17  Eric Blake  <ebb9@byu.net>
6731
6732         * lib/xvasprintf.c (includes): Assume config.h.
6733         * lib/xasprintf.c (includes): Likewise.
6734
6735 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6736
6737         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
6738         at least as wide as intmax_t.
6739
6740 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
6741
6742         (Imported from Automake.)
6743         * build-aux/gnupload: Update to version 1.1 of directive file.
6744
6745 2006-10-16  Eric Blake  <ebb9@byu.net>
6746
6747         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
6748         match Automake 1.10a.
6749
6750 2006-10-14  Bruno Haible  <bruno@clisp.org>
6751
6752         * modules/sigprocmask: New file.
6753         * lib/sigprocmask.h: New file.
6754         * lib/sigprocmask.c: New file.
6755         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
6756         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
6757         request sigprocmask.o.
6758         (gl_PREREQ_SIGPROCMASK): New macro.
6759         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
6760         (Depends-on): Add sigprocmask.
6761         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
6762         gt_SIGNALBLOCKING. Test for 'raise' only once.
6763         * lib/fatal-signal.c: Include sigprocmask.h.
6764         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
6765         unblock_fatal_signals): Define always.
6766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6767         sigprocmask.
6768
6769 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
6770
6771         Sync from Automake.
6772         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
6773         which incorrectly sets the mode of an existing destination
6774         directory.  In some cases the unpatched install-sh could do the
6775         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
6776         system.  We hope this is rare in practice, but it's clearly worth
6777         fixing.  Problem reported by Alex Unleashed in
6778         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
6779         Also, don't bother to check for -m bugs unless we're using -m;
6780         suggested by Stepan Kasal.
6781
6782 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6783
6784         Sync from Automake.
6785         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
6786         `-c' flag, so they appear at the same position as in %FASTDEP%
6787         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
6788         which ignores unknown options only after the first non-option.
6789         Bug report against M4 by Nelson H. F. Beebe.
6790
6791 2006-10-13  Jim Meyering  <jim@meyering.net>
6792
6793         Fix a bug in yesterday's change.
6794         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
6795         p->fts_statp->st_dev would be used uninitialized.
6796         Ensures that we always call fts_stat on the very first entry.
6797         Miklos Szeredi reported that find -xdev stopped working.
6798
6799 2006-10-12  Bruno Haible  <bruno@clisp.org>
6800
6801         * gnulib-tool (func_get_automake_snippet): Append an automatically
6802         computed EXTRA_DIST augmentation.
6803         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
6804         * modules/alloca-opt (Makefile.am): Likewise.
6805         * modules/allocsa (Makefile.am): Likewise.
6806         * modules/arcfour (Makefile.am): Likewise.
6807         * modules/arctwo (Makefile.am): Likewise.
6808         * modules/argmatch (Makefile.am): Likewise.
6809         * modules/argz (Makefile.am): Likewise.
6810         * modules/atexit (Makefile.am): Likewise.
6811         * modules/backupfile (Makefile.am): Likewise.
6812         * modules/byteswap (Makefile.am): Likewise.
6813         * modules/c-strtod (Makefile.am): Likewise.
6814         * modules/c-strtold (Makefile.am): Likewise.
6815         * modules/calloc (Makefile.am): Likewise.
6816         * modules/canon-host (Makefile.am): Likewise.
6817         * modules/canonicalize (Makefile.am): Likewise.
6818         * modules/chdir-long (Makefile.am): Likewise.
6819         * modules/chdir-safer (Makefile.am): Likewise.
6820         * modules/check-version (Makefile.am): Likewise.
6821         * modules/chown (Makefile.am): Likewise.
6822         * modules/cloexec (Makefile.am): Likewise.
6823         * modules/close-stream (Makefile.am): Likewise.
6824         * modules/closeout (Makefile.am): Likewise.
6825         * modules/crc (Makefile.am): Likewise.
6826         * modules/csharpexec (Makefile.am): Likewise.
6827         * modules/cycle-check (Makefile.am): Likewise.
6828         * modules/des (Makefile.am): Likewise.
6829         * modules/dev-ino (Makefile.am): Likewise.
6830         * modules/dirfd (Makefile.am): Likewise.
6831         * modules/dirname (Makefile.am): Likewise.
6832         * modules/dup2 (Makefile.am): Likewise.
6833         * modules/eealloc (Makefile.am): Likewise.
6834         * modules/error (Makefile.am): Likewise.
6835         * modules/euidaccess (Makefile.am): Likewise.
6836         * modules/exclude (Makefile.am): Likewise.
6837         * modules/exitfail (Makefile.am): Likewise.
6838         * modules/fcntl-safer (Makefile.am): Likewise.
6839         * modules/fcntl (Makefile.am): Likewise.
6840         * modules/file-type (Makefile.am): Likewise.
6841         * modules/fileblocks (Makefile.am): Likewise.
6842         * modules/filemode (Makefile.am): Likewise.
6843         * modules/filenamecat (Makefile.am): Likewise.
6844         * modules/fnmatch (Makefile.am): Likewise.
6845         * modules/fopen-safer (Makefile.am): Likewise.
6846         * modules/fpending (Makefile.am): Likewise.
6847         * modules/fprintftime (Makefile.am): Likewise.
6848         * modules/free (Makefile.am): Likewise.
6849         * modules/fsusage (Makefile.am): Likewise.
6850         * modules/ftruncate (Makefile.am): Likewise.
6851         * modules/fts (Makefile.am): Likewise.
6852         * modules/gc-arcfour (Makefile.am): Likewise.
6853         * modules/gc-des (Makefile.am): Likewise.
6854         * modules/gc-hmac-md5 (Makefile.am): Likewise.
6855         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
6856         * modules/gc-md4 (Makefile.am): Likewise.
6857         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
6858         * modules/gc-sha1 (Makefile.am): Likewise.
6859         * modules/gc (Makefile.am): Likewise.
6860         * modules/getaddrinfo (Makefile.am): Likewise.
6861         * modules/getcwd (Makefile.am): Likewise.
6862         * modules/getdelim (Makefile.am): Likewise.
6863         * modules/getdomainname (Makefile.am): Likewise.
6864         * modules/getgroups (Makefile.am): Likewise.
6865         * modules/gethostname (Makefile.am): Likewise.
6866         * modules/gethrxtime (Makefile.am): Likewise.
6867         * modules/getline (Makefile.am): Likewise.
6868         * modules/getloadavg (Makefile.am): Likewise.
6869         * modules/getlogin_r (Makefile.am): Likewise.
6870         * modules/getndelim2 (Makefile.am): Likewise.
6871         * modules/getopt (Makefile.am): Likewise.
6872         * modules/getpagesize (Makefile.am): Likewise.
6873         * modules/getpass-gnu (Makefile.am): Likewise.
6874         * modules/getpass (Makefile.am): Likewise.
6875         * modules/getsubopt (Makefile.am): Likewise.
6876         * modules/gettime (Makefile.am): Likewise.
6877         * modules/gettimeofday (Makefile.am): Likewise.
6878         * modules/getugroups (Makefile.am): Likewise.
6879         * modules/getusershell (Makefile.am): Likewise.
6880         * modules/glob (Makefile.am): Likewise.
6881         * modules/group-member (Makefile.am): Likewise.
6882         * modules/hard-locale (Makefile.am): Likewise.
6883         * modules/hash (Makefile.am): Likewise.
6884         * modules/hmac-md5 (Makefile.am): Likewise.
6885         * modules/hmac-sha1 (Makefile.am): Likewise.
6886         * modules/human (Makefile.am): Likewise.
6887         * modules/idcache (Makefile.am): Likewise.
6888         * modules/imaxabs (Makefile.am): Likewise.
6889         * modules/imaxdiv (Makefile.am): Likewise.
6890         * modules/inet_ntop (Makefile.am): Likewise.
6891         * modules/inet_pton (Makefile.am): Likewise.
6892         * modules/intprops (Makefile.am): Likewise.
6893         * modules/inttostr (Makefile.am): Likewise.
6894         * modules/inttypes (Makefile.am): Likewise.
6895         * modules/isapipe (Makefile.am): Likewise.
6896         * modules/javaversion (Makefile.am): Likewise.
6897         * modules/lchmod (Makefile.am): Likewise.
6898         * modules/lchown (Makefile.am): Likewise.
6899         * modules/localcharset (Makefile.am): Likewise.
6900         * modules/long-options (Makefile.am): Likewise.
6901         * modules/lstat (Makefile.am): Likewise.
6902         * modules/malloc (Makefile.am): Likewise.
6903         * modules/mathl (Makefile.am): Likewise.
6904         * modules/mbchar (Makefile.am): Likewise.
6905         * modules/md2 (Makefile.am): Likewise.
6906         * modules/md4 (Makefile.am): Likewise.
6907         * modules/md5 (Makefile.am): Likewise.
6908         * modules/memcasecmp (Makefile.am): Likewise.
6909         * modules/memchr (Makefile.am): Likewise.
6910         * modules/memcmp (Makefile.am): Likewise.
6911         * modules/memcoll (Makefile.am): Likewise.
6912         * modules/memcpy (Makefile.am): Likewise.
6913         * modules/memmem (Makefile.am): Likewise.
6914         * modules/memmove (Makefile.am): Likewise.
6915         * modules/mempcpy (Makefile.am): Likewise.
6916         * modules/memrchr (Makefile.am): Likewise.
6917         * modules/memset (Makefile.am): Likewise.
6918         * modules/memxor (Makefile.am): Likewise.
6919         * modules/mkancesdirs (Makefile.am): Likewise.
6920         * modules/mkdir-p (Makefile.am): Likewise.
6921         * modules/mkdir (Makefile.am): Likewise.
6922         * modules/mkdtemp (Makefile.am): Likewise.
6923         * modules/mkstemp (Makefile.am): Likewise.
6924         * modules/mktime (Makefile.am): Likewise.
6925         * modules/modechange (Makefile.am): Likewise.
6926         * modules/mountlist (Makefile.am): Likewise.
6927         * modules/nanosleep (Makefile.am): Likewise.
6928         * modules/obstack (Makefile.am): Likewise.
6929         * modules/openat (Makefile.am): Likewise.
6930         * modules/pagealign_alloc (Makefile.am): Likewise.
6931         * modules/pathmax (Makefile.am): Likewise.
6932         * modules/physmem (Makefile.am): Likewise.
6933         * modules/poll (Makefile.am): Likewise.
6934         * modules/posixtm (Makefile.am): Likewise.
6935         * modules/posixver (Makefile.am): Likewise.
6936         * modules/putenv (Makefile.am): Likewise.
6937         * modules/quote (Makefile.am): Likewise.
6938         * modules/quotearg (Makefile.am): Likewise.
6939         * modules/raise (Makefile.am): Likewise.
6940         * modules/read-file (Makefile.am): Likewise.
6941         * modules/readline (Makefile.am): Likewise.
6942         * modules/readlink (Makefile.am): Likewise.
6943         * modules/readtokens (Makefile.am): Likewise.
6944         * modules/readutmp (Makefile.am): Likewise.
6945         * modules/realloc (Makefile.am): Likewise.
6946         * modules/regex (Makefile.am): Likewise.
6947         * modules/rename-dest-slash (Makefile.am): Likewise.
6948         * modules/rename (Makefile.am): Likewise.
6949         * modules/rijndael (Makefile.am): Likewise.
6950         * modules/rmdir (Makefile.am): Likewise.
6951         * modules/rpmatch (Makefile.am): Likewise.
6952         * modules/safe-read (Makefile.am): Likewise.
6953         * modules/safe-write (Makefile.am): Likewise.
6954         * modules/same-inode (Makefile.am): Likewise.
6955         * modules/same (Makefile.am): Likewise.
6956         * modules/save-cwd (Makefile.am): Likewise.
6957         * modules/savedir (Makefile.am): Likewise.
6958         * modules/setenv (Makefile.am): Likewise.
6959         * modules/settime (Makefile.am): Likewise.
6960         * modules/sha1 (Makefile.am): Likewise.
6961         * modules/sig2str (Makefile.am): Likewise.
6962         * modules/snprintf (Makefile.am): Likewise.
6963         * modules/stat-macros (Makefile.am): Likewise.
6964         * modules/stat-time (Makefile.am): Likewise.
6965         * modules/stdbool (Makefile.am): Likewise.
6966         * modules/stdint (Makefile.am): Likewise.
6967         * modules/stdlib-safer (Makefile.am): Likewise.
6968         * modules/stpcpy (Makefile.am): Likewise.
6969         * modules/stpncpy (Makefile.am): Likewise.
6970         * modules/strcase (Makefile.am): Likewise.
6971         * modules/strcasestr (Makefile.am): Likewise.
6972         * modules/strchrnul (Makefile.am): Likewise.
6973         * modules/strcspn (Makefile.am): Likewise.
6974         * modules/strdup (Makefile.am): Likewise.
6975         * modules/strerror (Makefile.am): Likewise.
6976         * modules/strftime (Makefile.am): Likewise.
6977         * modules/strndup (Makefile.am): Likewise.
6978         * modules/strnlen (Makefile.am): Likewise.
6979         * modules/strpbrk (Makefile.am): Likewise.
6980         * modules/strsep (Makefile.am): Likewise.
6981         * modules/strstr (Makefile.am): Likewise.
6982         * modules/strtod (Makefile.am): Likewise.
6983         * modules/strtoimax (Makefile.am): Likewise.
6984         * modules/strtok_r (Makefile.am): Likewise.
6985         * modules/strtol (Makefile.am): Likewise.
6986         * modules/strtoll (Makefile.am): Likewise.
6987         * modules/strtoul (Makefile.am): Likewise.
6988         * modules/strtoull (Makefile.am): Likewise.
6989         * modules/strtoumax (Makefile.am): Likewise.
6990         * modules/strverscmp (Makefile.am): Likewise.
6991         * modules/sys_socket (Makefile.am): Likewise.
6992         * modules/sys_stat (Makefile.am): Likewise.
6993         * modules/sysexits (Makefile.am): Likewise.
6994         * modules/time_r (Makefile.am): Likewise.
6995         * modules/timegm (Makefile.am): Likewise.
6996         * modules/timespec (Makefile.am): Likewise.
6997         * modules/tmpfile-safer (Makefile.am): Likewise.
6998         * modules/trim (Makefile.am): Likewise.
6999         * modules/unistd-safer (Makefile.am): Likewise.
7000         * modules/unlinkdir (Makefile.am): Likewise.
7001         * modules/unlocked-io (Makefile.am): Likewise.
7002         * modules/userspec (Makefile.am): Likewise.
7003         * modules/utime (Makefile.am): Likewise.
7004         * modules/utimecmp (Makefile.am): Likewise.
7005         * modules/utimens (Makefile.am): Likewise.
7006         * modules/vasnprintf (Makefile.am): Likewise.
7007         * modules/vasprintf (Makefile.am): Likewise.
7008         * modules/vsnprintf (Makefile.am): Likewise.
7009         * modules/xalloc (Makefile.am): Likewise.
7010         * modules/xgetcwd (Makefile.am): Likewise.
7011         * modules/xnanosleep (Makefile.am): Likewise.
7012         * modules/xreadlink (Makefile.am): Likewise.
7013         * modules/xstrtod (Makefile.am): Likewise.
7014         * modules/xstrtol (Makefile.am): Likewise.
7015         * modules/xstrtold (Makefile.am): Likewise.
7016         * modules/yesno (Makefile.am): Likewise.
7017         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
7018
7019 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
7020
7021         * modules/error (Makefile.am): Distribute files through
7022         EXTRA_DIST, not lib_SOURCES.
7023
7024 2006-10-12  Eric Blake  <ebb9@byu.net>
7025
7026         * modules/error (Makefile.am): Distribute files in /lib.
7027         * modules/obstack (Makefile.am): Likewise.
7028
7029 2006-10-12  Bruno Haible  <bruno@clisp.org>
7030
7031         * modules/acl (Makefile.am): Distribute all files in lib/ through
7032         EXTRA_DIST.
7033         * modules/arcfour (Makefile.am): Likewise.
7034         * modules/arctwo (Makefile.am): Likewise.
7035         * modules/argmatch (Makefile.am): Likewise.
7036         * modules/argz (Makefile.am): Likewise.
7037         * modules/atexit (Makefile.am): Likewise.
7038         * modules/backupfile (Makefile.am): Likewise.
7039         * modules/c-strtod (Makefile.am): Likewise.
7040         * modules/c-strtold (Makefile.am): Likewise.
7041         * modules/calloc (Makefile.am): Likewise.
7042         * modules/canon-host (Makefile.am): Likewise.
7043         * modules/canonicalize (Makefile.am): Likewise.
7044         * modules/chdir-long (Makefile.am): Likewise.
7045         * modules/chdir-safer (Makefile.am): Likewise.
7046         * modules/check-version (Makefile.am): Likewise.
7047         * modules/chown (Makefile.am): Likewise.
7048         * modules/cloexec (Makefile.am): Likewise.
7049         * modules/close-stream (Makefile.am): Likewise.
7050         * modules/closeout (Makefile.am): Likewise.
7051         * modules/crc (Makefile.am): Likewise.
7052         * modules/cycle-check (Makefile.am): Likewise.
7053         * modules/des (Makefile.am): Likewise.
7054         * modules/dirfd (Makefile.am): Likewise.
7055         * modules/dirname (Makefile.am): Likewise.
7056         * modules/dup2 (Makefile.am): Likewise.
7057         * modules/euidaccess (Makefile.am): Likewise.
7058         * modules/exclude (Makefile.am): Likewise.
7059         * modules/exitfail (Makefile.am): Likewise.
7060         * modules/fcntl-safer (Makefile.am): Likewise.
7061         * modules/file-type (Makefile.am): Likewise.
7062         * modules/fileblocks (Makefile.am): Likewise.
7063         * modules/filemode (Makefile.am): Likewise.
7064         * modules/filenamecat (Makefile.am): Likewise.
7065         * modules/fnmatch (Makefile.am): Likewise.
7066         * modules/fopen-safer (Makefile.am): Likewise.
7067         * modules/fpending (Makefile.am): Likewise.
7068         * modules/fprintftime (Makefile.am): Likewise.
7069         * modules/free (Makefile.am): Likewise.
7070         * modules/fsusage (Makefile.am): Likewise.
7071         * modules/ftruncate (Makefile.am): Likewise.
7072         * modules/fts (Makefile.am): Likewise.
7073         * modules/gc (Makefile.am): Likewise.
7074         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
7075         * modules/getaddrinfo (Makefile.am): Likewise.
7076         * modules/getcwd (Makefile.am): Likewise.
7077         * modules/getdelim (Makefile.am): Likewise.
7078         * modules/getdomainname (Makefile.am): Likewise.
7079         * modules/getgroups (Makefile.am): Likewise.
7080         * modules/gethostname (Makefile.am): Likewise.
7081         * modules/gethrxtime (Makefile.am): Likewise.
7082         * modules/getline (Makefile.am): Likewise.
7083         * modules/getloadavg (Makefile.am): Likewise.
7084         * modules/getlogin_r (Makefile.am): Likewise.
7085         * modules/getopt (Makefile.am): Likewise.
7086         * modules/getpass (Makefile.am): Likewise.
7087         * modules/getpass-gnu (Makefile.am): Likewise.
7088         * modules/getsubopt (Makefile.am): Likewise.
7089         * modules/gettime (Makefile.am): Likewise.
7090         * modules/gettimeofday (Makefile.am): Likewise.
7091         * modules/getugroups (Makefile.am): Likewise.
7092         * modules/getusershell (Makefile.am): Likewise.
7093         * modules/glob (Makefile.am): Likewise.
7094         * modules/group-member (Makefile.am): Likewise.
7095         * modules/hard-locale (Makefile.am): Likewise.
7096         * modules/hash (Makefile.am): Likewise.
7097         * modules/hmac-md5 (Makefile.am): Likewise.
7098         * modules/hmac-sha1 (Makefile.am): Likewise.
7099         * modules/human (Makefile.am): Likewise.
7100         * modules/idcache (Makefile.am): Likewise.
7101         * modules/imaxabs (Makefile.am): Likewise.
7102         * modules/imaxdiv (Makefile.am): Likewise.
7103         * modules/inet_ntop (Makefile.am): Likewise.
7104         * modules/inet_pton (Makefile.am): Likewise.
7105         * modules/inttostr (Makefile.am): Likewise.
7106         * modules/isapipe (Makefile.am): Likewise.
7107         * modules/lchown (Makefile.am): Likewise.
7108         * modules/long-options (Makefile.am): Likewise.
7109         * modules/lstat (Makefile.am): Likewise.
7110         * modules/malloc (Makefile.am): Likewise.
7111         * modules/mathl (Makefile.am): Likewise.
7112         * modules/mbchar (Makefile.am): Likewise.
7113         * modules/md2 (Makefile.am): Likewise.
7114         * modules/md4 (Makefile.am): Likewise.
7115         * modules/md5 (Makefile.am): Likewise.
7116         * modules/memcasecmp (Makefile.am): Likewise.
7117         * modules/memchr (Makefile.am): Likewise.
7118         * modules/memcmp (Makefile.am): Likewise.
7119         * modules/memcoll (Makefile.am): Likewise.
7120         * modules/memcpy (Makefile.am): Likewise.
7121         * modules/memmem (Makefile.am): Likewise.
7122         * modules/memmove (Makefile.am): Likewise.
7123         * modules/mempcpy (Makefile.am): Likewise.
7124         * modules/memrchr (Makefile.am): Likewise.
7125         * modules/memset (Makefile.am): Likewise.
7126         * modules/memxor (Makefile.am): Likewise.
7127         * modules/mkancesdirs (Makefile.am): Likewise.
7128         * modules/mkdir (Makefile.am): Likewise.
7129         * modules/mkdir-p (Makefile.am): Likewise.
7130         * modules/mkdtemp (Makefile.am): Likewise.
7131         * modules/mkstemp (Makefile.am): Likewise.
7132         * modules/mktime (Makefile.am): Likewise.
7133         * modules/modechange (Makefile.am): Likewise.
7134         * modules/mountlist (Makefile.am): Likewise.
7135         * modules/nanosleep (Makefile.am): Likewise.
7136         * modules/openat (Makefile.am): Likewise.
7137         * modules/pagealign_alloc (Makefile.am): Likewise.
7138         * modules/physmem (Makefile.am): Likewise.
7139         * modules/poll (Makefile.am): Likewise.
7140         * modules/posixtm (Makefile.am): Likewise.
7141         * modules/posixver (Makefile.am): Likewise.
7142         * modules/putenv (Makefile.am): Likewise.
7143         * modules/quote (Makefile.am): Likewise.
7144         * modules/quotearg (Makefile.am): Likewise.
7145         * modules/raise (Makefile.am): Likewise.
7146         * modules/read-file (Makefile.am): Likewise.
7147         * modules/readline (Makefile.am): Likewise.
7148         * modules/readlink (Makefile.am): Likewise.
7149         * modules/readtokens (Makefile.am): Likewise.
7150         * modules/readutmp (Makefile.am): Likewise.
7151         * modules/realloc (Makefile.am): Likewise.
7152         * modules/regex (Makefile.am): Likewise.
7153         * modules/rename (Makefile.am): Likewise.
7154         * modules/rename-dest-slash (Makefile.am): Likewise.
7155         * modules/rijndael (Makefile.am): Likewise.
7156         * modules/rmdir (Makefile.am): Likewise.
7157         * modules/rpmatch (Makefile.am): Likewise.
7158         * modules/safe-read (Makefile.am): Likewise.
7159         * modules/safe-write (Makefile.am): Likewise.
7160         * modules/same (Makefile.am): Likewise.
7161         * modules/save-cwd (Makefile.am): Likewise.
7162         * modules/savedir (Makefile.am): Likewise.
7163         * modules/setenv (Makefile.am): Likewise.
7164         * modules/settime (Makefile.am): Likewise.
7165         * modules/sha1 (Makefile.am): Likewise.
7166         * modules/sig2str (Makefile.am): Likewise.
7167         * modules/snprintf (Makefile.am): Likewise.
7168         * modules/stdlib-safer (Makefile.am): Likewise.
7169         * modules/stpcpy (Makefile.am): Likewise.
7170         * modules/stpncpy (Makefile.am): Likewise.
7171         * modules/strcase (Makefile.am): Likewise.
7172         * modules/strcasestr (Makefile.am): Likewise.
7173         * modules/strchrnul (Makefile.am): Likewise.
7174         * modules/strcspn (Makefile.am): Likewise.
7175         * modules/strdup (Makefile.am): Likewise.
7176         * modules/strerror (Makefile.am): Likewise.
7177         * modules/strftime (Makefile.am): Likewise.
7178         * modules/strndup (Makefile.am): Likewise.
7179         * modules/strnlen (Makefile.am): Likewise.
7180         * modules/strpbrk (Makefile.am): Likewise.
7181         * modules/strsep (Makefile.am): Likewise.
7182         * modules/strstr (Makefile.am): Likewise.
7183         * modules/strtod (Makefile.am): Likewise.
7184         * modules/strtoimax (Makefile.am): Likewise.
7185         * modules/strtok_r (Makefile.am): Likewise.
7186         * modules/strtol (Makefile.am): Likewise.
7187         * modules/strtoll (Makefile.am): Likewise.
7188         * modules/strtoul (Makefile.am): Likewise.
7189         * modules/strtoull (Makefile.am): Likewise.
7190         * modules/strtoumax (Makefile.am): Likewise.
7191         * modules/strverscmp (Makefile.am): Likewise.
7192         * modules/time_r (Makefile.am): Likewise.
7193         * modules/timegm (Makefile.am): Likewise.
7194         * modules/tmpfile-safer (Makefile.am): Likewise.
7195         * modules/unistd-safer (Makefile.am): Likewise.
7196         * modules/unlinkdir (Makefile.am): Likewise.
7197         * modules/userspec (Makefile.am): Likewise.
7198         * modules/utime (Makefile.am): Likewise.
7199         * modules/utimecmp (Makefile.am): Likewise.
7200         * modules/utimens (Makefile.am): Likewise.
7201         * modules/vasnprintf (Makefile.am): Likewise.
7202         * modules/vasprintf (Makefile.am): Likewise.
7203         * modules/vsnprintf (Makefile.am): Likewise.
7204         * modules/xalloc (Makefile.am): Likewise.
7205         * modules/xgetcwd (Makefile.am): Likewise.
7206         * modules/xnanosleep (Makefile.am): Likewise.
7207         * modules/xreadlink (Makefile.am): Likewise.
7208         * modules/xstrtod (Makefile.am): Likewise.
7209         * modules/xstrtol (Makefile.am): Likewise.
7210         * modules/xstrtold (Makefile.am): Likewise.
7211         * modules/yesno (Makefile.am): Likewise.
7212
7213 2006-10-12  Jim Meyering  <jim@meyering.net>
7214
7215         * m4/getloadavg.m4: Revert the change below.
7216
7217         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
7218         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
7219         fail with a symlink, which is what coreutils' ./bootstrap now
7220         creates by default.
7221
7222 2006-10-12  Bruno Haible  <bruno@clisp.org>
7223
7224         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
7225         mingw.
7226         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
7227         MSVC and mingw explicitly.
7228
7229 2006-10-11  Simon Josefsson  <jas@extundo.com>
7230             Bruno Haible  <bruno@clisp.org>
7231
7232         Add support for multiple gnulib-tool invocations in the scope of a
7233         single configure.ac file.
7234         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
7235         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
7236         with the same contents as the _LIBADD variable.
7237         (func_emit_initmacro_start, func_emit_initmacro_end,
7238         func_emit_initmacro_done): New functions.
7239         (func_import, func_create_testdir): Invoke them. Allow the identifiers
7240         gl_LIBOBJS and gl_LTLIBOBJS.
7241
7242 2006-10-11  Bruno Haible  <bruno@clisp.org>
7243
7244         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
7245         (func_create_testdir): Don't create po/Makefile.am, don't invoke
7246         autoreconf. Instead, invoke autopoint explicitly but move back the
7247         *.m4 files from gnulib.
7248
7249 2006-10-11  Bruno Haible  <bruno@clisp.org>
7250
7251         * gnulib-tool (func_usage): Make module names after --create-testdir
7252         optional.
7253         (func_create_testdir): If no module was specified, use nearly all
7254         modules.
7255
7256 2006-10-12  Jim Meyering  <jim@meyering.net>
7257
7258         Big performance improvement for fts-based tools that use FTS_NOSTAT.
7259         Avoid spurious inode-mismatch problems on non-POSIX file systems.
7260         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
7261         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
7262         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
7263         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
7264         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
7265         (fts_set_stat_required): New function.
7266         (fts_open): Defer the calls to fts_stat, if possible or requested.
7267         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
7268         into fts_stat itself.
7269         (fts_read): Perform any required (deferred) fts_stat call.
7270         (fts_build): Likewise, for the directory we're about to open and read.
7271         In the readdir loop, carefully decide whether each entry will require
7272         an eventual call to fts_stat, using dirent.d_type info if available.
7273         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
7274         a command line argument into this function.  Update all callers.
7275         Map a return value of FTS_DOT to FTS_D for a command line argument.
7276         * modules/fts (Depends-on): Add d-type.  Alphabetize.
7277         Thanks to Miklos Szeredi for his tenacity and for the initial
7278         bug report about "find" failing on a FUSE-based file system.
7279
7280         * lib/fts.c (fts_open): Use consistent indentation.
7281
7282 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
7283
7284         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
7285         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
7286         reported by Jim Meyering.  All uses of cache variables renamed
7287         to match Autoconf's.
7288         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
7289         the other one.
7290
7291         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7292         Fix misspelling in diagnostic.
7293
7294 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7295
7296         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
7297         defined.  Problem reported by Matthew Woehlke.
7298
7299         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
7300         Add support for Tandem NonStop R series.
7301         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
7302         Use new macro.
7303
7304         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
7305         (has_trailing_slash): Omit size arg; all callers changed.
7306         Omit 'inline', since it doesn't help performance and we'd
7307         need to configure it.
7308         Don't count //, ///, etc. as having a trailing slash.
7309         As a side effect, this removes a C99ism reported by Matthew Woehlke.
7310         (rpl_rename_dest_slash): On failure, use rename's errno rather
7311         than (in some cases) an incorrect or junk errno.
7312         Simplify code by removing need to compute length; this does
7313         cause it to make two passes instead of one over the file name,
7314         but it's worth it.
7315
7316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
7317         change, since Autoconf's version may no longer be appropriate now
7318         that we are using CVS Autoconf's version.  Add support for Tandem.
7319
7320 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7321             Bruno Haible  <bruno@clisp.org>
7322
7323         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
7324         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
7325         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
7326         gl_AC_TYPE_LONG_LONG.
7327
7328         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
7329         instead of HAVE_LONG_LONG.
7330         * lib/printf-args.c (printf_fetchargs): Likewise.
7331         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7332         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7333         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
7334         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
7335         gl_AC_TYPE_LONG_LONG.
7336
7337 2006-10-11  Bruno Haible  <bruno@clisp.org>
7338
7339         * m4/longlong.m4: Add comments.
7340         * m4/ulonglong.m4: Likewise.
7341
7342 2006-10-10  Bruno Haible  <bruno@clisp.org>
7343
7344         Make it possible to #define stpcpy, strdup to aliases.
7345         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
7346         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
7347
7348 2006-10-10  Bruno Haible  <bruno@clisp.org>
7349
7350         Make it possible to #define gcd to an alias.
7351         * lib/gcd.c: Include config.h.
7352
7353 2006-10-10  Bruno Haible  <bruno@clisp.org>
7354
7355         Make it possible to #define c_isascii to an alias.
7356         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
7357         defined. Undefine the macros before defining them, to avoid gcc
7358         warnings.
7359         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
7360         define NO_C_CTYPE_MACROS early.
7361
7362 2006-10-10  Bruno Haible  <bruno@clisp.org>
7363
7364         Make it possible to #define set_program_name to an alias.
7365         * lib/progname.c: Don't undefine set_program_name; instead, undefine
7366         ENABLE_RELOCATABLE early.
7367
7368 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7369
7370         Port to Tandem NSK OSS, which has 64-bit signed int but at most
7371         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
7372         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
7373         More generally, don't assume that 64-bit signed int is available
7374         if unsigned int is, and vice versa.
7375         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
7376         unsigned symbols, not on their signed counterparts.
7377         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
7378         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
7379         (UINT64_C, UINTMAX_C):
7380         Likewise.
7381         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
7382         unsigned counterparts.
7383         (Have_long_long, Unsigned): New macros.
7384         (Int): Renamed from INT.
7385         (strtoimax): Use the new macros.
7386         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
7387         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
7388         * modules/inttypes (inttypes.h): Substitute
7389         HAVE_UNSIGNED_LONG_LONG_INT.
7390         * modules/stdint (stdint.h): Likewise.
7391         (Files): Add m4/ulonglong.m4.
7392
7393 2006-10-10  Bruno Haible  <bruno@clisp.org>
7394
7395         Fix a gcc -Wshadow warning.
7396         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
7397         to 'bucket'.
7398         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
7399         gl_linked_indexof_from_to): Likewise.
7400         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
7401         Likewise.
7402         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
7403         Likewise.
7404         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
7405         Reported by Eric Blake.
7406
7407 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7408
7409         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
7410         for NetBSD.  Problem reported by Bruno Haible.
7411
7412 2006-10-09  Jim Meyering  <jim@meyering.net>
7413
7414         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
7415         Patch from Bruno Haible.
7416
7417 2006-10-09  Jim Meyering  <jim@meyering.net>
7418
7419         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
7420         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
7421         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
7422
7423 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7424
7425         Don't include <config.h> twice; this doesn't work in some cases,
7426         e.g., when config.h has "#define intmax_t long long int" and
7427         we include <config.h>, <inttypes.h>, <config.h> in that order.
7428         Problem reported by Matthew Woehlke in:
7429         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
7430         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
7431         * lib/fts-cycle.c: Don't include config.h.
7432         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
7433         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
7434         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
7435         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
7436         inttypes.h.
7437         * lib/xstrtoumax.c: Likewise.
7438         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
7439         __strtol and the like, so that this module is more like its siblings.
7440         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
7441         Remove; no longer needed now that we assume gnulib inttypes.h.
7442
7443 2006-10-08  Bruno Haible  <bruno@clisp.org>
7444
7445         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
7446         option.
7447
7448 2006-10-07  Jim Meyering  <jim@meyering.net>
7449
7450         * modules/inttypes (inttypes.h): Revert what seems to have been
7451         an inadvertent part of today's change: use "|", not "/" in the
7452         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
7453
7454 2006-10-07  Bruno Haible  <bruno@clisp.org>
7455
7456         * modules/sublist: New file.
7457
7458 2006-10-07  Bruno Haible  <bruno@clisp.org>
7459
7460         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
7461         * modules/argz (argz.h): Likewise.
7462         * modules/arpa_inet (arpa/inet.h): Likewise.
7463         * modules/byteswap (byteswap.h): Likewise.
7464         * modules/configmake (configmake.h): Likewise.
7465         * modules/fcntl (fcntl.h): Likewise.
7466         * modules/fnmatch (fnmatch.h): Likewise.
7467         * modules/getopt (getopt.h): Likewise.
7468         * modules/glob (glob.h): Likewise.
7469         * modules/inttypes (inttypes.h): Likewise.
7470         * modules/netinet_in (netinet/in.h): Likewise.
7471         * modules/poll (poll.h): Likewise.
7472         * modules/stdbool (stdbool.h): Likewise.
7473         * modules/stdint (stdint.h): Likewise.
7474         * modules/sys_select (sys/select.h): Likewise.
7475         * modules/sys_socket (sys/socket.h): Likewise.
7476         * modules/sys_stat (sys/stat.h): Likewise.
7477         * modules/sysexits (sysexits.h): Likewise.
7478         * modules/unistd (unistd.h): Likewise.
7479         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7480         Add a "DO NOT EDIT" comment to the generated file.
7481         (func_import): Likewise for gnulib-comp.m4.
7482
7483 2006-10-07  Bruno Haible  <bruno@clisp.org>
7484
7485         * lib/gl_sublist.h: New file.
7486         * lib/gl_sublist.c: New file.
7487
7488 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
7489
7490         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
7491         name (relative to the original working directory) and the file
7492         name component (relative to the temporary working directory).  All
7493         callers changed.
7494         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
7495         * lib/mkdir-p.c (make_dir_parents): Likewise.
7496         * lib/mkdir-p.h (make_dir_parents): Likewise.
7497
7498 2006-10-06  Eric Blake  <ebb9@byu.net>
7499
7500         Define several macros for use by the clean-temp module.
7501         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
7502         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
7503         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
7504
7505         * lib/clean-temp.h (close_stream_temp): New declaration.
7506         * lib/clean-temp.c (includes): Pull in headers according to what
7507         other modules are in use.
7508         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
7509
7510 2006-10-06  Bruno Haible  <bruno@clisp.org>
7511
7512         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
7513         instead of fopen, fwriteerror.
7514
7515 2006-10-06  Bruno Haible  <bruno@clisp.org>
7516
7517         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
7518         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
7519         int.
7520         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
7521         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
7522         Return an error indicator.
7523         Suggested by Eric Blake.
7524
7525 2006-10-06  Bruno Haible  <bruno@clisp.org>
7526
7527         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
7528         Reported by Eric Blake.
7529
7530 2006-10-06  Bruno Haible  <bruno@clisp.org>
7531
7532         * modules/closeout (Description): Mention stderr too.
7533
7534 2006-10-06  Bruno Haible  <bruno@clisp.org>
7535         and Paul Eggert  <eggert@cs.ucla.edu>
7536
7537         * lib/closeout.c (close_stdout): Also close stderr.
7538         * lib/closeout.h: Update comment.
7539
7540 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7541
7542         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
7543         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
7544         * lib/dirchownmod.c: Include lchown.h.
7545         * lib/lchown.c: Don't include files that lchown.h now includes.
7546         Don't declare chown, since lchown.h now does that.
7547         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
7548         (lchown): Define to rpl_chown if lchown is declared but
7549         does not exist.  Declare using a prototype if lchown is not
7550         declared.  Add a copyright notice.
7551         * lib/mkstemp.h: Include <unistd.h>.
7552         * lib/openat.c: Include lchown.h.
7553
7554         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
7555         we now test for that separately.
7556         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
7557         rather than O_NOFOLLOW, when testing whether it's possible to
7558         avoid a race condition reliably.
7559         * lib/savewd.c (savewd_chdir): Likewise.
7560
7561         Remove macros that are no longer needed now that stdint.h is
7562         reliable.
7563         * lib/fsusage.c (UINTMAX_MAX): Remove.
7564         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
7565         * lib/utimecmp.c (SIZE_MAX): Remove.
7566
7567         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
7568
7569         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
7570         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
7571         O_NOATIME works.
7572
7573 2006-10-05  Bruno Haible  <bruno@clisp.org>
7574
7575         * lib/gl_list.h (gl_sortedlist_search_from_to,
7576         gl_sortedlist_indexof_from_to): New declarations.
7577         (gl_list_implementation): New fields sortedlist_search_from_to,
7578         sortedlist_indexof_from_to.
7579         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
7580         inline functions.
7581         * lib/gl_list.c (gl_sortedlist_search_from_to,
7582         gl_sortedlist_indexof_from_to): New functions.
7583         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
7584         function.
7585         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
7586         (gl_array_sortedlist_search_from_to): New function.
7587         (gl_array_list_implementation): Update.
7588         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
7589         function.
7590         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
7591         (gl_carray_sortedlist_search_from_to): New function.
7592         (gl_carray_list_implementation): Update.
7593         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
7594         gl_linked_sortedlist_indexof_from_to): New functions.
7595         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7596         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7597         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
7598         gl_tree_sortedlist_indexof_from_to): New functions.
7599         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7600         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7601         Update.
7602         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7603         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
7604         Update.
7605
7606 2006-10-05  Bruno Haible  <bruno@clisp.org>
7607
7608         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
7609         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
7610         (struct gl_list_implementation): Add fields search_from_to,
7611         indexof_from_to. Remove fields search, indexof.
7612         (gl_list_search): Use the search_from_to method.
7613         (gl_list_search_from, gl_list_search_from_to): New functions.
7614         (gl_list_indexof): Use the indexof_from_to method.
7615         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
7616         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
7617         (gl_list_search_from, gl_list_search_from_to): New functions.
7618         (gl_list_indexof): Use the indexof_from_to method.
7619         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
7620         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
7621         gl_array_indexof. Add start_index, end_index arguments.
7622         (gl_array_search_from_to): Renamed from gl_array_search. Add
7623         start_index, end_index arguments.
7624         (gl_array_remove, gl_array_list_implementation): Update.
7625         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
7626         gl_carray_indexof. Add start_index, end_index arguments.
7627         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
7628         start_index, end_index arguments.
7629         (gl_carray_remove, gl_carray_list_implementation): Update.
7630         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
7631         gl_linked_search. Add start_index, end_index arguments.
7632         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
7633         start_index, end_index arguments.
7634         (gl_linked_remove): Update.
7635         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7636         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7637         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
7638         field to 'size_t'.
7639         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
7640         gl_tree_search. Add start_index, end_index arguments.
7641         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
7642         start_index, end_index arguments.
7643         (gl_tree_remove): Update.
7644         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7645         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7646         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
7647         function.
7648         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
7649         gl_tree_search. Add start_index, end_index arguments.
7650         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
7651         start_index, end_index arguments.
7652         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7653         Update.
7654         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7655
7656 2006-10-05  Bruno Haible  <bruno@clisp.org>
7657
7658         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
7659
7660         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
7661         fwriteerror_temp): New declarations.
7662         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
7663         (descriptors): New variable.
7664         (cleanup): First, close the descriptors.
7665         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
7666         fclose_temp, fwriteerror_temp): New functions.
7667
7668 2006-10-04  Jim Meyering  <jim@meyering.net>
7669
7670         * lib/fts.c (fts_open): Tiny comment change.
7671
7672 2006-10-04  Bruno Haible  <bruno@clisp.org>
7673
7674         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
7675         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
7676         gl_LOCK_BODY.
7677         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
7678         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
7679         gl_LOCK_EARLY_BODY.
7680         (gl_LOCK): Require gl_LOCK_BODY.
7681
7682 2006-10-04  Bruno Haible  <bruno@clisp.org>
7683
7684         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
7685         (gl_oset_search_atleast): New declaration.
7686         (struct gl_oset_implementation): Add field 'search_atleast'.
7687         (gl_oset_search_atleast): New inline function.
7688         * lib/gl_oset.c (gl_oset_search_atleast): New function.
7689         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
7690         (gl_array_oset_implementation): Update.
7691         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
7692         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
7693         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
7694
7695 2006-10-04  Bruno Haible  <bruno@clisp.org>
7696
7697         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
7698
7699 2006-10-03  Bruno Haible  <bruno@clisp.org>
7700
7701         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
7702         from gl_avltreehash_list_implementation.
7703
7704 2006-10-03  Bruno Haible  <bruno@clisp.org>
7705
7706         * lib/gl_oset.c (gl_oset_add): Fix return type.
7707
7708 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
7709
7710         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
7711
7712 2006-10-02  Eric Blake  <ebb9@byu.net>
7713
7714         * modules/strnlen (Depends-on): Add extensions.
7715
7716 2006-10-02  Eric Blake  <ebb9@byu.net>
7717
7718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
7719         definition in 2.60+.
7720
7721 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
7722
7723         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
7724         checks.
7725
7726 2006-10-02  Bruno Haible  <bruno@clisp.org>
7727
7728         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
7729         to the AUTOMAKE_OPTIONS.
7730         Reported by Jim Meyering.
7731
7732 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
7733
7734         Work around bug in Solaris 10 /proc file system:
7735         /proc/self/fd/NNN/.. isn't the parent directory of
7736         the directory whose file descriptor is NNN.  This needs to
7737         be worked around at run time, not compile time, since a
7738         program might be built on Solaris 8, where things work, and
7739         run on Solaris 10.
7740         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
7741         to use the following interface instead:
7742         (OPENAT_BUFFER_SIZE): New macro.
7743         (openat_proc_name): New function.
7744         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
7745         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
7746         Likewise.
7747         * lib/openat-proc.c: New file.
7748         * modules/openat (Files): Add lib/openat-proc.c.
7749         (Depends-on): Add same-inode, stdbool.
7750         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
7751
7752 2006-09-29  Bruno Haible  <bruno@clisp.org>
7753
7754         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
7755         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
7756         argument. Set stdout_closed before testing for ferror, not after.
7757         (fwriteerror, fwriteerror_no_ebadf): New functions.
7758
7759 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7760
7761         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
7762
7763 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
7764
7765         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
7766         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
7767
7768 2006-09-28  Jim Meyering  <jim@meyering.net>
7769
7770         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
7771         Include <unistd.h>.
7772
7773 2006-09-28  Bruno Haible  <bruno@clisp.org>
7774
7775         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
7776         * modules/linkedhash-list (Depends-on): Likewise.
7777         * modules/rbtreehash-list (Depends-on): Likewise.
7778
7779 2006-09-28  Bruno Haible  <bruno@clisp.org>
7780
7781         * lib/strndup.h: Simplify the redefinition of strndup.
7782         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
7783         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
7784
7785 2006-09-28  Bruno Haible  <bruno@clisp.org>
7786
7787         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
7788         * lib/gl_linkedhash_list.c: Likewise.
7789         * lib/gl_rbtreehash_list.c: Likewise.
7790
7791 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
7792
7793         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
7794         getaddrinfo.
7795
7796         * lib/__fpending.h: Don't include <stdio_ext.h> unless
7797         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
7798         it causes <stdio_ext.h> to cause a compile-time error.
7799         Problem reported by Nelson H. F. Beebe.
7800         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
7801         of HAVE_DECL___PENDING.
7802
7803         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
7804         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
7805         declaration.
7806
7807 2006-09-27  Jim Meyering  <jim@meyering.net>
7808
7809         This file could end up with a definition for a function
7810         named __strndup, rather than rpl_strndup on a system with
7811         incomplete weak_alias support.
7812         * lib/strndup.c (strndup): Rename from __strndup.
7813         Remove #defines that used to map __strndup to strndup.
7814         Don't use K&R prototypes.
7815         Remove LIBC-related code, since this file is not sync'd with glibc.
7816         * lib/strndup.h: Revamp, accordingly.
7817         * m4/strndup.m4: Modernize.
7818
7819 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7820
7821         * modules/savewd (Depends-on): Add 'raise'.
7822         * lib/savewd.c: Include <signal.h>, for 'raise'.
7823
7824 2006-09-26  Jim Meyering  <jim@meyering.net>
7825
7826         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
7827         when we detect Darwin 8.7.0's acl_get_file bug.
7828         Rearrange to perform the new (below) run-test while $LIBS
7829         contains any acl-related library.  Set USE_ACL at the end.
7830         (gl_ACL_GET_FILE): New function.
7831
7832 2006-09-26  Eric Blake  <ebb9@byu.net>
7833
7834         * lib/verror.c: Include <config.h> unconditionally.
7835
7836 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7837
7838         * modules/clock-time (Maintainer): Add self.
7839         * modules/getlogin_r (Depends-on): Add extensions.
7840
7841 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7842
7843         * modules/clock-time: New module.
7844         * modules/nanosleep (Depends-on): Add clock-time.
7845         * modules/gethrxtime (Depends-on): Likewise.
7846         * modules/gettime (Depends-on): Likewise.
7847         * modules/settime (Depends-on): Likewise.
7848
7849         * modules/fts-lgpl: Depend on openat.
7850         * modules/mkancesdirs: Depend on savewd.
7851         * modules/mkdir-p: Likewise.
7852
7853 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7854
7855         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
7856
7857         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
7858         `gl_have_arbitrary_file_name_length_limit' to
7859         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
7860         actually works between configure runs.
7861
7862 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7863             Bruno Haible  <bruno@clisp.org>
7864
7865         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
7866
7867 2006-09-25  Jim Meyering  <jim@meyering.net>
7868
7869         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
7870         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
7871
7872 2006-09-25  Eric Blake  <ebb9@byu.net>
7873
7874         * gnulib-tool (func_import, func_create_testdir): Fix typos in
7875         exec's in 2006-09-18 patch when shuffling fds.
7876
7877 2006-09-25  Bruno Haible  <bruno@clisp.org>
7878
7879         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
7880         Reported by Jim Meyering.
7881
7882 2006-09-24  Jim Meyering  <jim@meyering.net>
7883
7884         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
7885         compare a pointer against a literal "0".  That caused failures with
7886         at least HP-UX's hpcc.
7887
7888 2006-09-22  Simon Josefsson  <jas@extundo.com>
7889
7890         * modules/gc-sha1:
7891         * modules/gc-md4:
7892         * modules/gc-hmac-sha1:
7893         * modules/gc-hmac-md5:
7894         * modules/gc-des:
7895         * modules/gc-arcfour: Distribute more files.
7896
7897 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7898
7899         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
7900         (gl_linked_iterator_from_to): Initialize struct completely.
7901         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
7902         (gl_tree_iterator_from_to): Likewise
7903         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
7904         * lib/gl_array_list.c [lint] (gl_array_iterator)
7905         (gl_array_iterator_from_to): Likewise.
7906         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
7907         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
7908         (gl_carray_iterator_from_to): Likewise.
7909
7910         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
7911         * lib/md4.c (md4_process_block): Remove unused variable.
7912         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
7913         parentheses for clarity.
7914
7915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7916
7917         * modules/bison-i18n (Depends-on): Add gettext.
7918
7919 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7920
7921         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
7922         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7923         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
7924         also add missing comma that caused broken test.
7925         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
7926         stdlib.h, for `abort'.
7927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
7928         variables.
7929         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
7930         include unistd.h if present, for `rmdir'.
7931         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
7932         variables.
7933         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
7934         in the process include standard headers for prototypes.
7935         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
7936         gets declared on GNU/Linux.
7937         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
7938         unistd.h, for `rmdir'.
7939         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
7940
7941         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
7942         always true.
7943         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
7944
7945         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
7946
7947 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7948
7949         * gnulib-tool (func_version): Create output all at once.  This
7950         may help avoid triggering unnecessary SIGPIPEs, and at any
7951         rate it doesn't hurt.
7952
7953 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7954             Bruno Haible  <bruno@clisp.org>
7955
7956         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
7957         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7958         * m4/signed.m4 (bh_C_SIGNED): Likewise.
7959
7960         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
7961         (gl_FUNC_VASPRINTF): Invoke it.
7962
7963 2006-09-22  Bruno Haible  <bruno@clisp.org>
7964
7965         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
7966         getloadavg.c as first argument.
7967
7968 2006-09-22  Bruno Haible  <bruno@clisp.org>
7969
7970         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
7971         at the beginning of the gl_INIT macro.
7972         * modules/getloadavg (configure.ac): Pass $gl_source_base to
7973         gl_GETLOADAVG.
7974
7975 2006-09-22  Bruno Haible  <bruno@clisp.org>
7976
7977         * gnulib-tool (func_create_megatestdir): Don't include the config-h
7978         module.
7979         Suggested by Ralf Wildenhues.
7980
7981 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7982
7983         Import this patch from libc:
7984
7985         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
7986
7987         * lib/regex_internal.c (re_string_reconstruct): Handle
7988         offset < pstr->valid_raw_len && pstr->offsets_needed case.
7989         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
7990         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
7991         re_string_context_at.
7992
7993         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
7994         now requires it.
7995         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
7996         gl_REGEX now does it for us.
7997         (gl_REGEX): Add test taken from
7998         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
7999
8000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
8001         Check that large offsets work.  Modernize Autoconf usages.
8002         Prefer "yes" to mean a good thing rather than a bad.
8003         Don't put "#define mkstemp" in config.h, as this might interfere
8004         with standard system headers that "#define mkstemp mkstemp64".
8005
8006         * modules/mkstemp (Depends-on): Add extensions, so that
8007         mkstemp is visible on some platforms.
8008         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
8009         (Include): Change to "mkstemp.h" from <stdlib.h>.
8010         (Files): Add mkstemp.h.
8011
8012         * lib/mkstemp.h: New file, since some standard headers
8013         #define mkstemp.
8014         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
8015         Include "mkstemp.h".
8016         Make the _LIBC code resemble glibc original more,
8017         e.g., use K&R style.
8018         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
8019         (mkstemp): Remove, since mkstemp.h does this for us.
8020         * lib/stdlib--.h: Include mkstemp.h.
8021
8022         Import this patch from libc:
8023
8024         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
8025
8026         * lib/tempname.c (__gen_tempname): Change attempts_min
8027         into a macro.  Use preprocessor to decide how to initialize
8028         attempts [Coverity CID 67].
8029
8030 2006-09-20  Bruno Haible  <bruno@clisp.org>
8031
8032         * lib/mkdtemp.c: Import from libc.
8033         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
8034                 * sysdeps/posix/tempname.c (__gen_tempname): Change
8035                 attempts_min into a macro.  Use preprocessor to decide how to
8036                 initialize attempts [Coverity CID 67].
8037         2001-11-27  Paul Eggert  <eggert@twinsun.com>
8038                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8039                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8040
8041 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8042
8043         * gnulib-tool (func_exit): New function, to allow to pass the
8044         exit status portably through the trap.  Use everywhere.
8045         (--help, --version): Signal a write error.
8046         (trap): catch SIGPIPE, for write errors.
8047         Exit at the end of the trap, with the correct exit status.
8048
8049 2006-09-19  Karl Berry  <karl@gnu.org>
8050
8051         * doc/gnulib.texi: note about the license texinfo files.
8052
8053 2006-09-19  Eric Blake  <ebb9@byu.net>
8054
8055         * gnulib-tool: Avoid space-tab.
8056
8057 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8058
8059         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
8060         that prevented coreutils 6.1 from building.  Problem reported
8061         by Petter Reinholdtsen.
8062
8063 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8064
8065         * gnulib-tool (avoidlist): Fix typo that broke options like
8066         --avoid=lock that are used by coreutils bootstrap.
8067
8068 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
8069
8070         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
8071         more systematically.
8072
8073 2006-09-18  Jim Meyering  <jim@meyering.net>
8074
8075         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
8076
8077 2006-09-18  Bruno Haible  <bruno@clisp.org>
8078
8079         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
8080
8081 2006-09-18  Bruno Haible  <bruno@clisp.org>
8082
8083         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
8084         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
8085         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
8086         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
8087         * m4/gettext.m4: Require autoconf >= 2.52.
8088         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
8089         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
8090         of gl_cv_header_inttypes_h.
8091
8092 2006-09-18  Bruno Haible  <bruno@clisp.org>
8093
8094         * lib/javaversion.c: Include configmake.h.
8095
8096 2006-09-18  Bruno Haible  <bruno@clisp.org>
8097
8098         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
8099         avoid that the while loops be executed in a subshell.
8100
8101 2006-09-18  Bruno Haible  <bruno@clisp.org>
8102
8103         * MODULES.html.sh (func_module): Break long lines.
8104         Suggested by Bruce Korb <bkorb@gnu.org>.
8105
8106 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8107
8108         Speed up by a factor of 1.12.
8109         * gnulib-tool (nl): New variable.
8110         (func_import): Rewrite include directive extraction to only read each
8111         directive once.
8112
8113 2006-09-17  Bruno Haible  <bruno@clisp.org>
8114
8115         * modules/javaversion (Makefile.am): Remove DEFS setting.
8116         (Depends-on): Add configmake, for PKGDATADIR definition.
8117
8118 2006-09-17  Bruno Haible  <bruno@clisp.org>
8119
8120         * gnulib-tool (func_create_testdir): Rewrite all files at once.
8121
8122 2006-09-17  Bruno Haible  <bruno@clisp.org>
8123
8124         * gnulib-tool (func_append): New function, stolen from libtool.m4.
8125         (func_modules_transitive_closure, func_modules_add_dummy,
8126         func_modules_to_filelist, func_import, func_create_testdir,
8127         func_create_megatestdir, ...): Use it wherever possible.
8128         Suggested by Ralf Wildenhues.
8129
8130 2006-09-16  Karl Berry  <karl@gnu.org>
8131
8132         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
8133         to avoid sectioning errors.
8134         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
8135         [ifinfo]: blank line after @center-ed titles.
8136         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
8137         Spell FSF address consistently with others.
8138         (These changes approved by rms.)
8139
8140 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8141
8142         Speed up by a factor of 1.61.
8143         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
8144         already checked module names again.
8145
8146 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8147
8148         Speed up by a factor of 1.13.
8149         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
8150         for new_files, and the input to func_add_or_update.
8151
8152 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8153
8154         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
8155         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
8156
8157 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8158
8159         * modules/mkancesdirs (Depends-on): Add fcntl.
8160         * modules/savewd: New file.
8161         * MODULES.html.sh (File system functions): Add savewd.
8162
8163         * modules/configmake (Makefile.am): Add support for the
8164         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
8165
8166 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8167
8168         * m4/savewd.m4: New file.
8169
8170 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8171
8172         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
8173         (dirchownmod): New arg FD.  All callers changed.
8174         Use FD rather than opening the directory ourself, as opening is
8175         now the caller's responsibility.
8176         * lib/dirchownmod.h: Likewise.
8177         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
8178         hosts that require <sys/types.h> before <sys/stat.h>.  Include
8179         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
8180         (test_dir): Remove.
8181         (mkancesdirs): Return length of prefix of FILE that has already
8182         been made, or -2 if there is a child doing the work.  Redo
8183         algorithm so that it is O(N) rather than O(N**2).  Optimize away
8184         ".", and treat ".." specially since it might stray back into
8185         already-created areas.  Use a subprocess if necessary.  New arg
8186         WD; all users changed.  MAKE_DIR function should now return 1
8187         if it creates a directory that is not readable.  Return -2 if
8188         a child process is spun off.
8189         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
8190         Adjust signature to match code.
8191         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
8192         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
8193         all users changed.
8194         * lib/savewd.c, lib/savewd.h: New files.
8195
8196 2006-09-15  Jim Meyering  <jim@meyering.net>
8197
8198         * modules/rename-dest-slash: New module.
8199         * MODULES.html.sh (posix_compat): Add it here.
8200
8201         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
8202
8203 2006-09-15  Jim Meyering  <jim@meyering.net>
8204
8205         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
8206         file.
8207
8208         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
8209
8210 2006-09-15  Jim Meyering  <jim@meyering.net>
8211
8212         * lib/rename-dest-slash.c (has_trailing_slash): Use
8213         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
8214         (rpl_rename_dest_slash): Perform the cheaper trailing slash
8215         test before testing whether SRC is a directory.
8216         Suggestions from Bruno Haible.
8217
8218         Avoid a warning about an unused variable.
8219         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
8220         into the #ifdef block where it's used.
8221
8222         * lib/rename-dest-slash.c: New file.
8223
8224 2006-09-14  Bruno Haible  <bruno@clisp.org>
8225
8226         * lib/allocsa.c: Include <config.h> unconditionally.
8227         * lib/asnprintf.c: Likewise.
8228         * lib/asprintf.c: Likewise.
8229         * lib/c-strcasecmp.c: Likewise.
8230         * lib/c-strcasestr.c: Likewise.
8231         * lib/c-strncasecmp.c: Likewise.
8232         * lib/c-strstr.c: Likewise.
8233         * lib/classpath.c: Likewise.
8234         * lib/clean-temp.c: Likewise.
8235         * lib/concatpath.c: Likewise.
8236         * lib/copy-file.c: Likewise.
8237         * lib/csharpcomp.c: Likewise.
8238         * lib/csharpexec.c: Likewise.
8239         * lib/execute.c: Likewise.
8240         * lib/fatal-signal.c: Likewise.
8241         * lib/findprog.c: Likewise.
8242         * lib/fwriteerror.c: Likewise.
8243         * lib/gl_array_list.c: Likewise.
8244         * lib/gl_array_oset.c: Likewise.
8245         * lib/gl_avltree_list.c: Likewise.
8246         * lib/gl_avltree_oset.c: Likewise.
8247         * lib/gl_avltreehash_list.c: Likewise.
8248         * lib/gl_carray_list.c: Likewise.
8249         * lib/gl_linked_list.c: Likewise.
8250         * lib/gl_linkedhash_list.c: Likewise.
8251         * lib/gl_list.c: Likewise.
8252         * lib/gl_oset.c: Likewise.
8253         * lib/gl_rbtree_list.c: Likewise.
8254         * lib/gl_rbtree_oset.c: Likewise.
8255         * lib/gl_rbtreehash_list.c: Likewise.
8256         * lib/imaxabs.c: Likewise.
8257         * lib/imaxdiv.c: Likewise.
8258         * lib/javacomp.c: Likewise.
8259         * lib/javaexec.c: Likewise.
8260         * lib/javaversion.c: Likewise.
8261         * lib/linebreak.c: Likewise.
8262         * lib/localcharset.c: Likewise.
8263         * lib/lock.c: Likewise.
8264         * lib/mbchar.c: Likewise.
8265         * lib/mbswidth.c: Likewise.
8266         * lib/mkdtemp.c: Likewise.
8267         * lib/pipe.c: Likewise.
8268         * lib/printf-args.c: Likewise.
8269         * lib/printf-parse.c: Likewise.
8270         * lib/progname.c: Likewise.
8271         * lib/progreloc.c: Likewise.
8272         * lib/readlink.c: Likewise.
8273         * lib/sh-quote.c: Likewise.
8274         * lib/stpcpy.c: Likewise.
8275         * lib/stpncpy.c: Likewise.
8276         * lib/strcasecmp.c: Likewise.
8277         * lib/strcasestr.c: Likewise.
8278         * lib/strcspn.c: Likewise.
8279         * lib/striconv.c: Likewise.
8280         * lib/strncasecmp.c: Likewise.
8281         * lib/strnlen1.c: Likewise.
8282         * lib/strstr.c: Likewise.
8283         * lib/strtok_r.c: Likewise.
8284         * lib/tls.c: Likewise.
8285         * lib/tmpdir.c: Likewise.
8286         * lib/unicodeio.c: Likewise.
8287         * lib/unsetenv.c: Likewise.
8288         * lib/vasnprintf.c: Likewise.
8289         * lib/vasprintf.c: Likewise.
8290         * lib/wait-process.c: Likewise.
8291         * lib/xallocsa.c: Likewise.
8292         * lib/xsetenv.c: Likewise.
8293         * lib/xstriconv.c: Likewise.
8294
8295 2006-09-13  Simon Josefsson  <jas@extundo.com>
8296
8297         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
8298         that internally, suggested by Ralf Wildenhues
8299         <Ralf.Wildenhues@gmx.de>.
8300
8301 2006-09-13  Simon Josefsson  <jas@extundo.com>
8302
8303         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
8304         @LIBOBJS@.
8305         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8306
8307 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8308
8309         * lib/_fpending.c: Include <config.h> unconditionally, since we no
8310         longer worry about uses that don't define HAVE_CONFIG_H.
8311         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
8312         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
8313         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
8314         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
8315         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
8316         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
8317         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
8318         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
8319         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
8320         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
8321         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
8322         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
8323         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
8324         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
8325         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
8326         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
8327         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
8328         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
8329         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
8330         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
8331         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
8332         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
8333         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
8334         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
8335         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
8336         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
8337         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
8338         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
8339         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
8340         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
8341         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
8342         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
8343         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
8344         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
8345         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
8346         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
8347         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
8348         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
8349         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
8350         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
8351         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
8352         Likewise.
8353
8354 2006-09-13  Eric Blake  <ebb9@byu.net>
8355
8356         * lib/getopt.c: Fix typo in last commit.
8357
8358 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8359
8360         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
8361         dgettext.
8362
8363 2006-09-12  Jim Meyering  <jim@meyering.net>
8364
8365         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
8366         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
8367         Reported by Nelson H. F. Beebe.
8368
8369 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8370
8371         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
8372         program_invocation_name and program_invocation_short_name are
8373         initialized.
8374         * lib/argp-namefrob.h: Move declarations of program_invocation_name
8375         and program_invocation_short_name to argp.h, so they are visible
8376         to user programs.
8377         * lib/argp.h: Likewise
8378
8379 2006-09-10  Bruno Haible  <bruno@clisp.org>
8380
8381         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
8382         m4/inttypes_h.m4, m4/uintmax_t.m4.
8383
8384 2006-09-10  Bruno Haible  <bruno@clisp.org>
8385
8386         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
8387         gl_AC_TYPE_UINTMAX_T.
8388
8389 2006-09-10  Bruno Haible  <bruno@clisp.org>
8390
8391         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
8392
8393 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8394
8395         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
8396         convention.  Text proposed by Bruno Haible.
8397         (struct argp_option): Document the use of N_() wrappers.
8398
8399         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
8400         '\v', and translate the two parts separately, instead of feeding
8401         the whole string to gettext.  This allows to exclude
8402         '\v' from the strings visible to the translator by writing doc
8403         strings as N_("..") "\v" N_("..").
8404
8405 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
8406
8407         * config/srclist.txt: Undo latest change; the bug was fixed.
8408
8409 2006-09-09  Bruno Haible  <bruno@clisp.org>
8410
8411         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
8412         assignments if building a library without libtool.
8413         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
8414         in func_emit_lib_Makefile_am.
8415         (func_import): When building a static library libfoo.a, arrange to
8416         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
8417         (func_create_testdir): Likewise.
8418         * modules/gc (configure.ac, Makefile.am): If building statically,
8419         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
8420         * modules/iconvme (configure.ac, Makefile.am): Likewise.
8421         * modules/striconv (configure.ac, Makefile.am): Likewise.
8422         Based on a suggestion by Ralf Wildenhues.
8423
8424 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8425
8426         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8427         Check for unistd.h too, since Autoconf doesn't assume POSIX.
8428         Also:
8429
8430         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8431         Add year_2050_test to catch glibc bug 2821
8432         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
8433
8434         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8435         Prefer #ifdef to #if.
8436
8437         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
8438         Return from 'main' instead of calling 'exit'.
8439
8440 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8441
8442         * lib/mktime.c (guess_time_tm): Fix bug where mktime
8443         returned the maximum time_t value rather than (time_t) -1.
8444         Problem originally reported by William Bardwell
8445         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
8446
8447         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
8448         Moved to here ...
8449         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
8450         ... from here.
8451
8452 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8453
8454         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
8455         2821 is fixed.
8456
8457 2006-09-08  Jim Meyering  <jim@meyering.net>
8458
8459         Don't make generated files read-only.  That would bother too many
8460         people.  However, do retain the ability to work when targets are
8461         read-only: remove the destination and temporary files before writing
8462         them (when generated via sed or echo), or by using the -f option for
8463         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
8464         * modules/alloca-opt, modules/argz, modules/arpa_inet:
8465         * modules/byteswap, modules/configmake, modules/fcntl:
8466         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
8467         * modules/localcharset, modules/netinet_in, modules/poll:
8468         * modules/stdbool, modules/stdint, modules/sys_select:
8469         * modules/sys_socket, modules/sys_stat, modules/sysexits:
8470
8471 2006-09-08  Jim Meyering  <jim@meyering.net>
8472
8473         Avoid new build failure on FreeBSD 6.0.
8474         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
8475         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
8476         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
8477
8478 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8479
8480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
8481
8482 2006-09-07  Jim Meyering  <jim@meyering.net>
8483
8484         Fix global typo in last change: use chmod u-w, not chmod u-x.
8485         Spotted by Paul Eggert and Bruce Korb.
8486         * modules/alloca-opt, modules/argz, modules/arpa_inet:
8487         * modules/byteswap, modules/configmake, modules/fcntl:
8488         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
8489         * modules/localcharset, modules/netinet_in, modules/poll:
8490         * modules/stdbool, modules/stdint, modules/sys_select:
8491         * modules/sys_socket, modules/sys_stat, modules/sysexits:
8492
8493 2006-09-06  Jim Meyering  <jim@meyering.net>
8494
8495         Make generated files be read-only.
8496         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
8497         Ensure that each generated file is now read-only.
8498         * modules/argz: Likewise.
8499         * modules/arpa_inet: Likewise.
8500         * modules/byteswap: Likewise.
8501         * modules/configmake: Likewise.
8502         * modules/fcntl: Likewise.
8503         * modules/fnmatch: Likewise.
8504         * modules/getopt: Likewise.
8505         * modules/glob: Likewise.
8506         * modules/inttypes: Likewise.
8507         * modules/netinet_in: Likewise.
8508         * modules/poll: Likewise.
8509         * modules/stdbool: Likewise.
8510         * modules/stdint: Likewise.
8511         * modules/sys_select: Likewise.
8512         * modules/sys_socket: Likewise.
8513         * modules/sys_stat: Likewise.
8514         * modules/sysexits: Likewise.
8515         * modules/localcharset: Same as above, but continue using temporary
8516         file named "t-$@" (why different?) rather than the "$@-t" used
8517         everywhere else.
8518
8519         * modules/sysexits (Makefile.am): Replace literal occurrences
8520         of "sysexit.h" more readable, and more consistent, "$@".
8521
8522 2006-09-06  Bruno Haible  <bruno@clisp.org>
8523
8524         * modules/striconv: New file.
8525         * modules/xstriconv: New file.
8526         * MODULES.html.sh (Internationalization functions): Add striconv,
8527         xstriconv.
8528
8529 2006-09-06  Bruno Haible  <bruno@clisp.org>
8530
8531         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
8532         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
8533         not using libtool correctly.
8534
8535 2006-09-06  Bruno Haible  <bruno@clisp.org>
8536
8537         * lib/striconv.h: New file.
8538         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
8539         iconvstring.c.
8540         * lib/xstriconv.h: New file.
8541         * lib/xstriconv.c: New file.
8542
8543 2006-09-06  Bruno Haible  <bruno@clisp.org>
8544
8545         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8546         lib_..._LDFLAGS.
8547
8548 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8549
8550         * lib/argz_.h: Sync from Libtool.
8551
8552         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
8553                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8554
8555         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
8556
8557 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
8558
8559         * modules/trim: New file.
8560
8561 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
8562
8563         * lib/trim.h: New file.
8564         * lib/trim.c: New file.
8565
8566 2006-09-05  Bruno Haible  <bruno@clisp.org>
8567
8568         * MODULES.html.sh (String handling): Add trim.
8569
8570 2006-09-04  Karl Berry  <karl@gnu.org>
8571
8572         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
8573         until next release.
8574
8575 2006-09-03  Bruno Haible  <bruno@clisp.org>
8576
8577         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
8578         correctly.
8579
8580 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8581
8582         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
8583         not gl_GETLOADAVG.  Omit unneeded semicolons.
8584         Problems reported by Ralf Wildenhues in
8585         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
8586         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
8587         at the end, which is the usual gnulib style.
8588
8589         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
8590         of doing all the work ourselves.
8591         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
8592         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
8593
8594 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8595
8596         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
8597         Problem reported by Ralf Wildenhues in
8598         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
8599
8600         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
8601         HAVE_STRUCT_STATFS_F_FSTYPENAME.
8602
8603 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8604
8605         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
8606         yesterday's patch by changing test -n to test -z.
8607
8608 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8609
8610         * modules/getloadavg (Files): Add m4/getloadavg.m4.
8611         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
8612         the former is now obsolescent.
8613
8614         * modules/chdir-long (Depends-on): Add fcntl.
8615
8616 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8617
8618         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
8619         obsolescent, and programs should use gnulib instead.
8620         * m4/getloadavg.m4: New file, with contents taken from Autoconf
8621         but with prefixes changed.
8622
8623 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8624
8625         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
8626         or stdbool.h, because they might not exist while configuring.
8627
8628         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
8629         Don't include unistd.h or limits.h; not needed, since chdir-long.h
8630         does that for us.
8631         (O_DIRECTORY): Remove.
8632
8633 2006-08-31  Eric Blake  <ebb9@byu.net>
8634
8635         * gnulib-tool: Don't let emacs change spaces to TAB.
8636
8637 2006-08-31  Bruno Haible  <bruno@clisp.org>
8638
8639         * gnulib-tool: When calling func_import more than once, do it in a
8640         subshell.
8641         Reported by Eric Blake <ebb9@byu.net>.
8642
8643 2006-08-31  Bruno Haible  <bruno@clisp.org>
8644
8645         * gnulib-tool (nl): Remove variable.
8646         (sed_transform_lib_file): Use more robust test for config-h module.
8647         (func_import): Fix typo in 2006-08-25 patch.
8648
8649 2006-08-31  Bruno Haible  <bruno@clisp.org>
8650
8651         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
8652         specified, augment Makefile.am variables instead of assigning them.
8653
8654 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8655
8656         Work around a bug in both the Linux and SunOS 64-bit kernels:
8657         nanosleep mishandles sleeps for longer than 2**31 seconds.
8658         Problem reported by Frank v Waveren in
8659         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
8660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
8661         Check for nanosleep bug.
8662         (LIB_NANOSLEEP): Append clock_gettime library if needed.
8663
8664 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8665
8666         Work around a bug in both the Linux and SunOS 64-bit kernels:
8667         nanosleep mishandles sleeps for longer than 2**31 seconds.
8668         Problem reported by Frank v Waveren in
8669         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
8670         * lib/nanosleep.c (BILLION): New constant.
8671         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
8672         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
8673         implementation.
8674
8675 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         * modules/nanosleep (Depends-on): Add gettime.
8678
8679 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8680         and Simon Josefsson  <jas@extundo.com>
8681         and Oskar Liljeblad  <oskar@osk.mine.nu>
8682
8683         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
8684         * gnulib-tool (func_import): New license type 'unmodifiable license
8685         text'.
8686         * modules/fdl: Use it.  Longer description.
8687         * module/gpl, module/lgpl: New files.
8688
8689 2006-08-30  Jim Meyering  <jim@meyering.net>
8690
8691         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
8692         shadowing the parameter.
8693
8694 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8695
8696         Sync from Libtool:
8697
8698         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8699
8700         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
8701         sharing with gnulib.  Report by Eric Blake.
8702
8703 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8704
8705         * modules/isapipe: New file.
8706         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
8707
8708 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8709
8710         * modules/configmake (Makefile.am): Add a comment, and omit
8711         the CONFIGMAKE_ prefix from generated macro names.  Suggested
8712         by Bruno Haible.
8713
8714 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8715
8716         * m4/isapipe.m4: New file.
8717
8718 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8719
8720         * lib/isapipe.c, lib/isapipe.h: New files.
8721
8722 2006-08-29  Jim Meyering  <jim@meyering.net>
8723
8724         * modules/configmake (Makefile.am): Make configmake.h depend on
8725         Makefile.  Otherwise, a stale configmake.h could hang around.
8726
8727 2006-08-29  Eric Blake  <ebb9@byu.net>
8728
8729         * lib/error.c (error_at_line, print_errno_message): Match libc, after
8730         resolution of upstream bug 3044.
8731
8732 2006-08-29  Bruno Haible  <bruno@clisp.org>
8733
8734         * modules/localcharset (Depends-on): Add configmake.
8735         (Makefile.am): Remove setting of LIBDIR through DEFS.
8736
8737 2006-08-29  Bruno Haible  <bruno@clisp.org>
8738
8739         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
8740         defined.
8741
8742 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
8743
8744         * modules/fcntl: New file.
8745         * modules/chdir-safer (Depends-on): Add fcntl.
8746         * modules/fts: Likewise.
8747         * modules/mkdir-p: Likewise.
8748
8749         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
8750         This undoes the most recent change, since we're now addressing the
8751         problem in a different way.
8752
8753         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
8754         into output, since the output might be called Makefile.am even
8755         if $makefile_name is something different.
8756         (func_import): Use $makefile_am rather than
8757         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
8758         empty.
8759
8760         * modules/inttypes (Files): Add m4/inttypes-h.m4.
8761
8762 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
8763
8764         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
8765         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
8766         recent change to stdint.m4, since we're now addressing the problem in a
8767         different way.
8768
8769 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
8770
8771         * m4/fcntl_h.m4: New file.
8772
8773 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
8774
8775         * lib/fcntl_.h: New file.
8776         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
8777         the fcntl module.
8778         * lib/dirchownmod.c: Likewise.
8779         * lib/fts.c: Likewise.
8780
8781         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
8782         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
8783         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
8784         just before including <inttypes.h>, to avoid circular inclusion.
8785
8786 2006-08-28  Jim Meyering  <jim@meyering.net>
8787
8788         * doc/visibility.texi: Actually read and correct the grammar of the
8789         sentence affected by yesterday's change.
8790
8791 2006-08-28  Eric Blake  <ebb9@byu.net>
8792
8793         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
8794         needs wrapper.
8795
8796 2006-08-28  Eric Blake  <ebb9@byu.net>
8797
8798         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
8799
8800 2006-08-28  Eric Blake  <ebb9@byu.net>
8801
8802         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
8803
8804 2006-08-28  Bruno Haible  <bruno@clisp.org>
8805
8806         * modules/c-strstr: New file, from GNU gettext.
8807         * MODULES.html.sh (String handling): Add c-strstr.
8808
8809 2006-08-28  Bruno Haible  <bruno@clisp.org>
8810
8811         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
8812         macros.
8813         Reported by Eric Blake.
8814
8815 2006-08-28  Bruno Haible  <bruno@clisp.org>
8816
8817         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
8818         (VASNPRINTF): Return a string of length > INT_MAX without failing.
8819         * lib/vasprintf.c: Include errno.h, limits.h.
8820         (EOVERFLOW): New fallback definition.
8821         (vasprintf): Test here whether the string length is > INT_MAX.
8822         * lib/vsnprintf.c: Include errno.h, limits.h.
8823         (EOVERFLOW): New fallback definition.
8824         (vsnprintf): Fix bug when generated string was too long for the buffer.
8825         Test here whether the string length is > INT_MAX.
8826
8827 2006-08-28  Bruno Haible  <bruno@clisp.org>
8828
8829         * lib/inttypes_.h (SCNX*): Remove definitions.
8830         Reported by Eric Blake.
8831
8832 2006-08-28  Bruno Haible  <bruno@clisp.org>
8833
8834         * lib/c-strstr.h: New file, from GNU gettext.
8835         * lib/c-strstr.c: New file, from GNU gettext.
8836
8837 2006-08-28  Bruno Haible  <bruno@clisp.org>
8838
8839         * gnulib-tool: Reorder some statements.
8840
8841 2006-08-28  Bruno Haible  <bruno@clisp.org>
8842
8843         * gnulib-tool: New option --makefile-name.
8844         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
8845         $makefile_name.
8846         (func_import): Write $makefile_name to the cache file, and read it from
8847         there unless explicitly specified. Use $makefile_name as file name
8848         instead of Makefile.am. Adjust the recommendations accordingly.
8849
8850 2006-08-28  Bruno Haible  <bruno@clisp.org>
8851
8852         * gnulib-tool (func_verify_module): Check against misapplying patch.
8853
8854 2006-08-28  Bruno Haible  <bruno@clisp.org>
8855
8856         * gnulib-tool (func_relativize, func_relconcat): New functions.
8857         Give an error if --local-dir is given with --update.
8858         Remove trailing slashes from $local_gnulib_dir.
8859         (func_import): Store the relativized $local_gnulib_dir in
8860         gnulib-cache.m4, and read it from there if not specified explicitly.
8861
8862 2006-08-28  Bruno Haible  <bruno@clisp.org>
8863
8864         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
8865         is the current directory. Respect also $local_gnulib_dir.
8866
8867 2006-08-28  Bruno Haible  <bruno@clisp.org>
8868             Simon Josefsson  <jas@extundo.com>
8869
8870         BeOS portability.
8871         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
8872
8873 2006-08-27  Jim Meyering  <jim@meyering.net>
8874
8875         * doc/visibility.texi: Remove duplicate word: "pointer".
8876
8877 2006-08-26  Bruno Haible  <bruno@clisp.org>
8878
8879         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
8880         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
8881         (Makefile.am): Create inttypes.h from inttypes_.h.
8882         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
8883
8884         * modules/imaxabs: New file.
8885
8886         * modules/imaxdiv: New file.
8887
8888 2006-08-26  Bruno Haible  <bruno@clisp.org>
8889
8890         * m4/inttypes.m4: New file.
8891         * m4/_inttypes_h.m4: Remove file.
8892         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
8893         PRI_MACROS_BROKEN.
8894         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
8895
8896         * m4/imaxabs.m4: New file.
8897
8898         * m4/imaxdiv.m4: New file.
8899
8900 2006-08-26  Bruno Haible  <bruno@clisp.org>
8901
8902         * lib/inttypes_.h: New file.
8903         * lib/inttypes.h: Remove file.
8904         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
8905
8906         * lib/imaxabs.c: New file.
8907
8908         * lib/imaxdiv.c: New file.
8909
8910 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8911
8912         New config-h module, so that "make" output needn't be cluttered
8913         by -DHAVE_CONFIG_H.
8914         * MODULES.html.sh (Support for building libraries and executables):
8915         Add config-h.
8916         * modules/config-h: New file.
8917         * gnulib-tool (nl, sed_transform_lib_file): New vars.
8918         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
8919         the config-h module is used.
8920
8921         New configmake module, so that "make" output needn't be cluttered
8922         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
8923         * MODULES.html.sh (Support for building libraries and executables):
8924         Add configmake.
8925         * modules/configmake: New file.
8926
8927 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8928
8929         * m4/config-h.m4: New file.
8930
8931 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8932
8933         * config/srclist.txt: Add elisp-comp.
8934
8935 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8936
8937         * MODULES.html.sh (Support for building libraries and executables):
8938         Add elisp-comp.
8939         * build-aux/elisp-comp: New file.
8940         * modules/elisp-comp: New file.
8941
8942 2006-08-24  Bruno Haible  <bruno@clisp.org>
8943
8944         * gnulib-tool (func_create_testdir): Use non-default values of
8945         sourcebase and m4base.
8946
8947 2006-08-24  Bruno Haible  <bruno@clisp.org>
8948
8949         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
8950         HTML structure.
8951
8952 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
8953
8954         * modules/openat (Depends-on): Add lchown.
8955
8956 2006-08-23  Bruno Haible  <bruno@clisp.org>
8957
8958         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
8959         of gl_LOCK_EARLY instead of gl_LOCK.
8960
8961 2006-08-23  Bruno Haible  <bruno@clisp.org>
8962
8963         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
8964         on OSF/1 to no.
8965         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
8966
8967 2006-08-23  Bruno Haible  <bruno@clisp.org>
8968
8969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
8970         as unusable.
8971
8972         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
8973         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
8974         (gl_LOCK): New macro.
8975
8976 2006-08-22  Simon Josefsson  <jas@extundo.com>
8977
8978         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
8979         to md5 module.
8980
8981 2006-08-22  Simon Josefsson  <jas@extundo.com>
8982
8983         * MODULES.html.sh: Add "Support for maintaining and release
8984         projects".
8985
8986         * build-aux/gnupload: New file, from coreutils.
8987
8988 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
8989
8990         Avoid the need for AC_LIBSOURCES in m4 macros.
8991         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
8992         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
8993         * modules/check-version (EXTRA_DIST): Add check-version.h.
8994         * modules/crc (EXTRA_DIST): Add crc.h.
8995         * modules/des (EXTRA_DIST): Add des.h.
8996         * modules/gc (EXTRA_DIST): Add gc.h.
8997         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
8998         * modules/getline (EXTRA_DIST): Add getline.h.
8999         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
9000         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
9001         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
9002         * modules/md2 (EXTRA_DIST): Add md2.h.
9003         * modules/md4 (EXTRA_DIST): Add md4.h.
9004         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
9005         * modules/read-file (EXTRA_DIST): Add read-file.h.
9006         * modules/readline (EXTRA_DIST): Add readline.h.
9007         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
9008         rijndael-api-fst.h.
9009
9010 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
9011
9012         * m4/rijndael.m4 (gl_ARCFOUR):
9013         * m4/arctwo.m4 (gl_ARCTWO):
9014         * m4/check-version.m4 (gl_CHECK_VERSION):
9015         * m4/crc.m4 (gl_CRC):
9016         * m4/des.m4 (gl_DES):
9017         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
9018         * m4/gc.m4 (gl_GC):
9019         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
9020         * m4/getline.m4 (gl_FUNC_GETLINE):
9021         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
9022         * m4/hmac-md5.m4 (gl_HMAC_MD5):
9023         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
9024         * m4/md2.m4 (gl_MD2):
9025         * m4/md4.m4 (gl_MD4):
9026         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
9027         * m4/read-file.m4 (gl_FUNC_READ_FILE):
9028         * m4/readline.m4 (gl_FUNC_READLINE):
9029         * m4/rijndael.m4 (gl_RIJNDAEL):
9030         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
9031         to get the necessary .h files and whatnot.
9032
9033 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
9034
9035         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
9036         gnulib rather than the other way around.
9037         * config/srclistvars.sh (COREUTILS): Remove.
9038
9039 2006-08-22  Jim Meyering  <jim@meyering.net>
9040
9041         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
9042
9043         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
9044
9045 2006-08-22  Eric Blake  <ebb9@byu.net>
9046
9047         * modules/regexprops-generic: New file.
9048         * MODULES.html.sh (Support for building documentation): List it.
9049
9050 2006-08-22  Eric Blake  <ebb9@byu.net>
9051
9052         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
9053         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9054         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
9055         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9056
9057 2006-08-22  Bruno Haible  <bruno@clisp.org>
9058
9059         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
9060         and lib_LTLIBRARIES like the other lib_* variables.
9061
9062 2006-08-22  Bruno Haible  <bruno@clisp.org>
9063
9064         * build-aux/x-to-1.in: New file, from GNU gettext.
9065
9066 2006-08-22  Bruno Haible  <bruno@clisp.org>
9067
9068         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
9069         <utmpx.h> exists.
9070
9071 2006-08-22  Bruno Haible  <bruno@clisp.org>
9072
9073         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
9074         <utmpx.h> exists.
9075
9076 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9077
9078         BeOS portability.
9079         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
9080         exist.
9081         Problem reported by Bruno Haible.
9082
9083 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9084
9085         Avoid the need for AC_LIBSOURCES in m4 macros.
9086         * modules/acl (EXTRA_DIST): Add acl.h.
9087         * modules/argmatch (Files): Add m4/argmatch.m4.
9088         (configure.ac): Add gl_ARGMATCH.
9089         (EXTRA_DIST): Renamed from lib_SOURCES, for
9090         consistency with the other modules.  Remove argmatch.c.
9091         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
9092         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
9093         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
9094         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
9095         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
9096         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
9097         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
9098         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
9099         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
9100         * modules/closeout (EXTRA_DIST): Add closeout.h.
9101         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
9102         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
9103         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
9104         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
9105         dirname.h; remove basename.c and stripslash.c.
9106         * modules/exclude (EXTRA_DIST): Add exclude.h.
9107         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
9108         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
9109         * modules/file-type (EXTRA_DIST): Add file-type.h.
9110         * modules/filemode (EXTRA_DIST): Add filemode.h.
9111         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
9112         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
9113         * modules/fpending (EXTRA_DIST): Add __fpending.h.
9114         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
9115         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
9116         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
9117         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
9118         * modules/getdate (EXTRA_DIST): Add getdate.c.
9119         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
9120         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
9121         * modules/getpass (EXTRA_DIST): Add getpass.h.
9122         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
9123         * modules/group-member (EXTRA_DIST): Add group-member.h.
9124         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
9125         * modules/hash (EXTRA_DIST): Add hash.h.
9126         * modules/human (EXTRA_DIST): Add human.h.
9127         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
9128         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
9129         * modules/lchown (EXTRA_DIST): Add lchown.h.
9130         * modules/long-options (EXTRA_DIST): Add long-options.h.
9131         * modules/lstat (EXTRA_DIST): Add lstat.h.
9132         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
9133         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
9134         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
9135         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
9136         * modules/memxor (EXTRA_DIST): Add memxor.h.
9137         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
9138         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
9139         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
9140         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
9141         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
9142         * modules/physmem (EXTRA_DIST): Add physmem.h.
9143         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
9144         * modules/posixver (EXTRA_DIST): Add posixver.h.
9145         * modules/quote (EXTRA_DIST): Add quote.h.
9146         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
9147         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
9148         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
9149         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
9150         regex_internal.h regexec.c.
9151         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
9152         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
9153         * modules/same (EXTRA_DIST): Add same.h.
9154         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
9155         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
9156         * modules/savedir (EXTRA_DIST): Add savedir.h.
9157         * modules/sha1 (EXTRA_DIST): Add sha1.h.
9158         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
9159         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
9160         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
9161         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
9162         * modules/strdup (EXTRA_DIST): Add strdup.h.
9163         * modules/strftime (EXTRA_DIST): Add strftime.h.
9164         * modules/strndup (EXTRA_DIST): Add strndup.h.
9165         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
9166         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
9167         * modules/time_r (EXTRA_DIST): Add time_r.h.
9168         * modules/timespec (EXTRA_DIST): Add timespec.h.
9169         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
9170         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
9171         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
9172         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
9173         * modules/userspec (EXTRA_DIST): Add userspec.h.
9174         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
9175         * modules/utimens (EXTRA_DIST): Add utimens.h.
9176         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
9177         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
9178         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
9179         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
9180         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
9181         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
9182         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
9183         * modules/yesno (EXTRA_DIST): Add yesno.h.
9184
9185 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9186
9187         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
9188
9189         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
9190         * m4/dev-ino.m4, same-inode.m4: Remove.
9191
9192         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
9193         * m4/acl.m4 (AC_FUNC_ACL):
9194         * m4/backupfile.m4 (gl_BACKUPFILE):
9195         * m4/c-strtod.m4 (gl_C99_STRTOLD):
9196         * m4/canon-host.m4 (gl_CANON_HOST):
9197         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9198         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
9199         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
9200         * m4/cloexec.m4 (gl_CLOEXEC):
9201         * m4/close-stream.m4 (gl_CLOSE_STREAM):
9202         * m4/closeout.m4 (gl_CLOSEOUT):
9203         * m4/dirfd.m4 (gl_FUNC_DIRFD):
9204         * m4/dirname.m4 (gl_DIRNAME):
9205         * m4/exclude.m4 (gl_EXCLUDE):
9206         * m4/exitfail.m4 (gl_EXITFAIL):
9207         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
9208         * m4/file-type.m4 (gl_FILE_TYPE):
9209         * m4/filemode.m4 (gl_FILEMODE):
9210         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
9211         * m4/fpending.m4 (gl_FUNC_FPENDING):
9212         * m4/fprintftime.m4 (gl_FPRINTFTIME):
9213         * m4/fts.m4 (gl_FUNC_FTS):
9214         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
9215         * m4/getdate.m4 (gl_GETDATE):
9216         * m4/gethrxtime.m4 (gl_GETHRXTIME):
9217         * m4/getpagesize.m4 (gl_GETPAGESIZE):
9218         * m4/getpass.m4 (gl_FUNC_GETPASS):
9219         * m4/gettime.m4 (gl_GETTIME):
9220         * m4/getugroups.m4 (gl_GETUGROUPS):
9221         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
9222         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
9223         * m4/hard-locale.m4 (gl_HARD_LOCALE):
9224         * m4/hash.m4 (gl_HASH):
9225         * m4/idcache.m4 (gl_IDCACHE):
9226         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
9227         * m4/lchown.m4 (gl_FUNC_LCHOWN):
9228         * m4/long-options.m4 (gl_LONG_OPTIONS):
9229         * m4/lstat.m4 (gl_FUNC_LSTAT):
9230         * m4/md5.m4 (gl_MD5):
9231         * m4/memcasecmp.m4 (gl_MEMCASECMP):
9232         * m4/memcoll.m4 (gl_MEMCOLL):
9233         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
9234         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
9235         * m4/memxor.m4 (gl_MEMXOR):
9236         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
9237         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
9238         * m4/modechange.m4 (gl_MODECHANGE):
9239         * m4/mountlist.m4 (gl_MOUNTLIST):
9240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
9241         * m4/openat.m4 (gl_FUNC_OPENAT):
9242         * m4/pathmax.m4 (gl_PATHMAX):
9243         * m4/physmem.m4 (gl_PHYSMEM):
9244         * m4/posixtm.m4 (gl_POSIXTM):
9245         * m4/posixver.m4 (gl_POSIXVER):
9246         * m4/quote.m4 (gl_QUOTE):
9247         * m4/quotearg.m4 (gl_QUOTEARG):
9248         * m4/readtokens.m4 (gl_READTOKENS):
9249         * m4/readutmp.m4 (gl_READUTMP):
9250         * m4/regex.m4 (gl_REGEX):
9251         * m4/safe-read.m4 (gl_SAFE_READ):
9252         * m4/safe-write.m4 (gl_SAFE_WRITE):
9253         * m4/same.m4 (gl_SAME):
9254         * m4/save-cwd.m4 (gl_SAVE_CWD):
9255         * m4/savedir.m4 (gl_SAVEDIR):
9256         * m4/settime.m4 (gl_SETTIME):
9257         * m4/sha1.m4 (gl_SHA1):
9258         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
9259         * m4/stat-macros.m4 (gl_STAT_MACROS):
9260         * m4/stat-time.m4 (gl_STAT_TIME):
9261         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
9262         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
9263         * m4/strdup.m4 (gl_FUNC_STRDUP):
9264         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
9265         * m4/strndup.m4 (gl_FUNC_STRNDUP):
9266         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
9267         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
9268         * m4/time_r.m4 (gl_TIME_R):
9269         * m4/timespec.m4 (gl_TIMESPEC):
9270         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
9271         * m4/unlinkdir.m4 (gl_UNLINKDIR):
9272         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
9273         * m4/userspec.m4 (gl_USERSPEC):
9274         * m4/utimecmp.m4 (gl_UTIMECMP):
9275         * m4/utimens.m4 (gl_UTIMENS):
9276         * m4/xalloc.m4 (gl_XALLOC):
9277         * m4/xgetcwd.m4 (gl_XGETCWD):
9278         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
9279         * m4/xreadlink.m4 (gl_XREADLINK):
9280         * m4/xstrtod.m4 (gl_XSTRTOD):
9281         * m4/yesno.m4 (gl_YESNO):
9282         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
9283         to get the necessary .h files and whatnot.
9284
9285 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
9286             Bruno Haible  <bruno@clisp.org>
9287
9288         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
9289         /bin/sh understanding of '!' conditional negation.
9290
9291 2006-08-21  Jim Meyering  <jim@meyering.net>
9292
9293         * modules/openat (Depends-on): Really alphabetize.
9294
9295         * modules/acl (Depends-on): Add error and quote.
9296
9297         * check-module (find_included_lib_files): Add at-func.c to the
9298         ok-to-include-more-than-once white list.
9299
9300         * modules/openat (Depends-on): Add lstat.  Alphabetize.
9301
9302 2006-08-21  Bruno Haible  <bruno@clisp.org>
9303
9304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9305         Emit a pkgdata_DATA variable only if some snippets add contents to it.
9306         Reported by Martin Lambers <marlam@marlam.de>.
9307
9308 2006-08-21  Bruno Haible  <bruno@clisp.org>
9309
9310         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
9311         specify an installation location, don't emit a noinst_LIBRARIES or
9312         noinst_LTLIBRARIES assignment.
9313
9314 2006-08-21  Bruno Haible  <bruno@clisp.org>
9315
9316         BeOS portability.
9317         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
9318         BeOS has mbrtowc() but no <wctype.h>.
9319
9320 2006-08-21  Bruno Haible  <bruno@clisp.org>
9321
9322         BeOS portability.
9323         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
9324         exist.
9325
9326 2006-08-21  Bruno Haible  <bruno@clisp.org>
9327
9328         BeOS portability.
9329         * lib/mbchar.h: Include <wctype.h> only if it exists.
9330
9331 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9332
9333         Remove files that are no longer needed by their respective modules.
9334         * m4/obstack.m4: Remove.
9335         * m4/strerror_r.m4: Remove.
9336         * m4/uint32_t.m4: Remove.
9337         * m4/uintptr_t.m4: Remove.
9338         * m4/ullong_max.m4: Remove.
9339         * m4/xstrtoimax.m4: Remove.
9340         * m4/xstrtoumax.m4: Remove.
9341
9342         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
9343         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
9344         dependencies now capture this.
9345
9346         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
9347         Do not use AC_LIBSOURCES, since gnulib modules now do this.
9348         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
9349         * m4/human.m4 (gl_HUMAN): Likewise.
9350         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
9351         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
9352
9353         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
9354
9355         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
9356         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
9357         stdint.
9358         * m4/human.m4 (gl_HUMAN): Likewise.
9359         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
9360         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
9361         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
9362         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
9363         * m4/xstrtol (gl_XSTRTOL): Likewise.
9364
9365         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
9366         AC_TYPE_LONG_LONG_INT.
9367         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
9368         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
9369         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
9370         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
9371
9372         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
9373         on stdbool.
9374
9375         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
9376         (gl_PREREQ_XSTRTOUL): Remove.
9377
9378         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
9379
9380         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
9381         mode.
9382
9383 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9384
9385         Add and change modules to make it easier for coreutils to use
9386         gnulib-tool.
9387         * modules/backupfile (Files): Remove m4/d-ino.m4.
9388         (Depends-on): Add d-ino.
9389         * modules/cycle-check (Depends-on): Add stdint.
9390         (lib_SOURCES): Add cycle-check.h.
9391         * modules/d-ino: New module.
9392         * modules/d-type: New module.
9393         * modules/error (Files): Remove m4/strerror_r.m4.
9394         * modules/filemode (Files): Add m4/st_dm_mode.m4.
9395         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
9396         m4/inttypes_h.m4, m4/uintmax_t.m4.
9397         (Depends-on): Add stdint.
9398         (lib_SOURCES): Add fsusage.h.
9399         * modules/getcwd (Files): Remove d-ino.m4.
9400         (Depends-on): Add d-ino.
9401         * modules/getndelim2 (Depends-on): Add stdint.
9402         * modules/glob (Files): Remove m4/d-type.m4.
9403         (Depends-on): Add d-type.
9404         * modules/host-os: New module.
9405         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
9406         m4/inttypes_h.m4, m4/uintmax_t.m4.
9407         * Depends-on: Add stdint.
9408         (lib_SOURCES): Add human.h.
9409         * modules/inttostr (Files): Remove m4/intmax_t.m4,
9410         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
9411         m4/uintmax_t.m4, m4/ulonglong.m4.
9412         (Depends-on): Add stdint.
9413         (EXTRA_DIST): Add inttostr.h.
9414         * modules/lchmod: New module.
9415         * modules/link-follow: New module.
9416         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
9417         (Depends-on): Add lchmod.
9418         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
9419         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
9420         (Depends-on): Add stdint.
9421         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
9422         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
9423         (Depends-on): Add stdint.
9424         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
9425         * modules/perl: New module.
9426         * modules/regex (Depends-on): Add stdint.
9427         * modules/rmdir-errno: New module.
9428         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
9429         m4/intmax_t.m4.
9430         (Depends-on): Add stdint.
9431         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
9432         m4/uintmax_t.m4.
9433         (Depends-on): Add stdint.
9434         * modules/unlink-busy: New module.
9435         * modules/utimecmp (Depends-on): Add stdint.
9436         * modules/uptime: New module.
9437         * modules/winsz-ioctl: New module.
9438         * modules/winsz-termios: New module.
9439         * modules/xnanosleep (Depends-on): Add nanosleep.
9440         * modules/ullong_max: Remove.
9441         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
9442         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
9443         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
9444         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
9445         (Depends-on): Add inttypes.
9446         (lib_SOURCES): Add xstrtol.h.
9447         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
9448         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
9449         * MODULES.html.sh: Move 'assert' into the assert section.
9450         Move 'dummy' into the linking section.
9451         Remove ullong_max.
9452         Add section for compatibility checks for POSIX:2001 functions,
9453         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
9454         winsz-ioctl, and winsz-termios into it.
9455         Add lchmod.
9456         Add top-level Misc section and put host-os, perl, and uptime
9457         into it.
9458
9459 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9460
9461         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
9462         now assume the stdint module.  Do not include inttypes.h.
9463         * lib/fsusage.h: Likewise.
9464         * lib/getndelim2.c: Likewise.
9465         * lib/human.h: Likewise.
9466         * lib/inttostr.h: Likewise.
9467         * lib/obstack.c: Likewise.
9468         * lib/regex_internal.h: Likewise.
9469         * lib/tempname.c: Likewise.
9470         * lib/utimecmp.c: Likewise.
9471         * lib/xstrtol.h: Likewise.
9472
9473         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
9474
9475         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
9476         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
9477         * lib/xtime.h: Likewise.
9478
9479 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9480
9481         * modules/openat (Files): Add lib/fchmodat.c.
9482         Fixes problem reported by Jay Youngman.
9483
9484 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9485
9486         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
9487         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
9488
9489 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9490             Bruno Haible  <bruno@clisp.org>
9491
9492         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
9493         and is a script that invokes bison. Tighten the code. Add comments.
9494
9495 2006-08-18  Jim Meyering  <jim@meyering.net>
9496
9497         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
9498         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
9499         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
9500         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
9501
9502 2006-08-18  Bruno Haible  <bruno@clisp.org>
9503
9504         * modules/bison-i18n: New file.
9505         * MODULES.html.sh (Internationalization functions): Add it.
9506
9507 2006-08-18  Bruno Haible  <bruno@clisp.org>
9508
9509         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
9510         sys/statvfs.h. When getmntinfo was found, check its declaration and
9511         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
9512
9513 2006-08-18  Bruno Haible  <bruno@clisp.org>
9514
9515         * m4/bison-i18n.m4: New file, from bison.
9516
9517 2006-08-18  Bruno Haible  <bruno@clisp.org>
9518
9519         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
9520         (ME_DUMMY): Treat "kernfs" as a dummy.
9521         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
9522
9523 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9524
9525         Update from coreutils.
9526
9527         2006-08-15  Jim Meyering  <jim@meyering.net>
9528
9529         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
9530
9531         2006-01-17  Jim Meyering  <jim@meyering.net>
9532
9533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
9534
9535         2006-01-11  Jim Meyering  <jim@meyering.net>
9536
9537         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
9538         Check for the lchmod function.
9539
9540 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9541
9542         Update from coreutils.
9543
9544         * lib/__fpending.h: Add copyright notice.
9545         * lib/fprintftime.h: Likewise.
9546         * lib/savedir.c: Use (C) in copyright notice.
9547         * lib/savedir.h: Likewise.
9548
9549         2006-08-15  Jim Meyering  <jim@meyering.net>
9550
9551         * lib/at-func.c: New file, with the logic of all emulated at-functions.
9552         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
9553         in support of the EXPECTED_ERRNO macro.
9554         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
9555         definitions.  Instead, define the appropriate symbols and include
9556         "at-func.c".
9557         * lib/mkdirat.c (mkdirat): Likewise.
9558         * lib/fchmodat.c (fchmodat): Likewise.
9559         (ENOSYS): Remove definition.
9560         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
9561         it.  Don't include "unistd--.h" -- it wasn't ever used.
9562
9563         2006-01-17  Jim Meyering  <jim@meyering.net>
9564
9565         Rewrite fts.c not to change the current working directory,
9566         by using openat, fstatat, fdopendir, etc..
9567
9568         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
9569         (HAVE_OPENAT_SUPPORT): Define.
9570         [_LIBC] (fchdir): Don't undef or define; no longer used.
9571         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
9572         Now, this `function' always succeeds, and consumes its file descriptor
9573         parameter -- so callers must not close such FDs.  Update callers.
9574         (diropen_fd, opendirat, cwd_advance_fd): New functions.
9575         (diropen): Add parameter, SP.  Adjust all callers.
9576         Implement using diropen_fd, rather than open.
9577         (fts_open): Initialize new member, fts_cwd_fd.
9578         Remove fts_rft-setting code.
9579         (fts_close): Close fts_cwd_fd, if necessary.
9580         (__opendir2): Define in terms of opendir or opendirat,
9581         depending on whether the FST_NOCHDIR flag is set.
9582         (fts_build): Since fts_safe_changedir consumes its FD, and since
9583         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
9584         and close the dup'd file descriptor upon failure.
9585         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
9586         (fts_safe_changedir): Tweak semantics to reflect that this function
9587         now calls cwd_advance_fd and hence consumes its FD argument.
9588         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
9589         [struct FTS] (fts_rft): Remove now-unused member.
9590         [struct FTS] (fts_cycle.state): Improve comment.
9591
9592         * lib/openat.c (openat_needs_fchdir): New function.
9593         * lib/openat.h (openat_needs_fchdir): Declare it.
9594
9595 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
9596
9597         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
9598         Problem and fix reported by Pádraig Brady in
9599         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
9600
9601 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9602
9603         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
9604
9605 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9606
9607         * lib/memcoll.c (memcoll): Optimize for the common case where the
9608         arguments are bytewise equal.
9609
9610 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9611
9612         * doc/regexprops-generic.texi: Add a copyright notice.
9613
9614 2006-08-15  Bruno Haible  <bruno@clisp.org>
9615
9616         * modules/tmpdir (License): Change to LGPL.
9617
9618 2006-08-15  Bruno Haible  <bruno@clisp.org>
9619
9620         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
9621         module.
9622
9623 2006-08-14  Simon Josefsson  <jas@extundo.com>
9624
9625         * config/srclist.txt: Add gnupload.
9626
9627 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9628
9629         Change copyright notice from LGPL 2 to GPL 2, since that's the
9630         standard form used in the gnulib repository.
9631         * tests/test-lock.c: Likewise.
9632         * tests/test-stdint.c: Likewise.
9633         * tests/test-tls.c: Likewise.
9634
9635         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
9636         prelude-manager.  User shorter URLs for GNU projects, without '?'.
9637         Add copyright notice.
9638
9639         * check-module: Add copyright notice.  Output a copyright
9640         notice if "--version" is specified.
9641         * modules/COPYING: New file.
9642         * tests/test-getaddrinfo.c: Add copyright notice.
9643         * tests/test-verify.c: Likewise.
9644
9645 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9646
9647         Change copyright notice from LGPL 2 to GPL 2, since that's the
9648         standard form used in the gnulib repository.
9649         * lib/lock.c: LGPL -> GPL.
9650         * lib/lock.h: Likewise.
9651         * lib/strnlen1.c: Likewise.
9652         * lib/strnlen1.h: Likewise.
9653         * lib/tls.c: Likewise.
9654         * lib/tls.h: Likewise.
9655         * lib/tmpdir.c: Likewise.
9656
9657         * lib/TODO: Remove; this belongs only in coreutils.
9658
9659 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9660
9661         Add copyright notices to long-enough files that lack them, since
9662         otherwise the files aren't clearly free.  Use the same notice that
9663         getdate.texi already uses.
9664         * doc/alloca-opt.texi: Add copyright notice.
9665         * doc/alloca.texi: Likewise.
9666         * doc/ctime.texi: Likewise.
9667         * doc/functions.texi: Likewise.
9668         * doc/gcd.texi: Likewise.
9669         * doc/gnulib-tool.texi: Likewise.
9670         * doc/inet_ntoa.texi: Likewise.
9671         * doc/visibility.texi: Likewise.
9672
9673         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
9674         * doc/quote.texi: Add copyright notice.
9675
9676         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
9677         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
9678         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
9679         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
9680         is now obsolete, and give a pointer to the Sun list.
9681         Add copyright notice.
9682
9683 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         * config/srclistvars.sh: Add copyright notice.
9686
9687 2006-08-14  Eric Blake  <ebb9@byu.net>
9688
9689         Import the following change from libc:
9690
9691         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9692
9693         Upstream bug 2997.
9694         * lib/misc/error.c: Add space between program name and message if file
9695         name is missing.
9696
9697 2006-08-12  Karl Berry  <karl@gnu.org>
9698
9699         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
9700         remove, these originate in gnulib now.
9701
9702 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9703
9704         * doc/Makefile (standards.info standards.html standards.dvi):
9705         Also depend on make-stds.texi.
9706
9707 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9708
9709         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
9710         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
9711
9712         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
9713         in wchar_t.  Problem reported by Eric Blake.
9714
9715         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
9716         LEN is smaller than SIZE.  Suggested by Bruno Haible.
9717         Also, help the compiler to keep LEN in a register.
9718
9719 2006-08-11  Eric Blake  <ebb9@byu.net>
9720
9721         * users.txt: Sort.  Add tar.
9722
9723 2006-08-11  Bruno Haible  <bruno@clisp.org>
9724
9725         * users.txt: New file.
9726
9727 2006-08-11  Bruno Haible  <bruno@clisp.org>
9728
9729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
9730         before <wchar.h>. Needed for OSF/1 and BSD/OS.
9731
9732 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9733
9734         * modules/snprintf (Depends-on): Remove minmax.
9735         (Maintainer): Add self and Bruno.
9736
9737 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9738
9739         * lib/.cppi-disable: Add snprintf.h, socket_.h.
9740         * lib/snprintf.c: Include <errno.h> and <limits.h>.
9741         (EOVERFLOW): Define if the system does not.
9742         Do not include "minmax.h"; it wasn't used.
9743         (snprintf): Don't assume size_t promotes to an unsigned type.
9744         Fix bug when generated string was too long for the buffer: the
9745         buffer's contents are supposed to be the initial prefix of the
9746         output.  Don't assume vasnprintf returns EOVERFLOW if the size
9747         exceeds INT_MAX; do the check ourselves.
9748
9749         Import the following changes from libc:
9750
9751         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9752
9753         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
9754         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
9755         set wc to the byte which couldn't be converted.
9756         (re_string_reconstruct): Don't clear valid_raw_len before calling
9757         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9758         tip_context using re_string_context_at.
9759
9760         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
9761
9762         * lib/posix/regex.h: g++ still cannot handled [restrict].
9763
9764         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
9765
9766         * lib/posix/regex.h: Remove special handling for VMS.
9767
9768 2006-08-10  Jim Meyering  <jim@meyering.net>
9769
9770         * modules/same-inode: New module.
9771         * modules/dev-ino: New module.
9772         * modules/cycle-check: Depend on these modules, rather than simply
9773         including their .h files.
9774         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
9775         required via m4/cycle-check.m4.
9776         * modules/same: Depend on new same-inode module, rather than
9777         including same-inode.h.
9778         * modules/chdir-safer: New file.
9779
9780         * modules/chown (Depends-on): Add stat-macros.
9781
9782 2006-08-10  Jim Meyering  <jim@meyering.net>
9783
9784         * m4/cycle-check.m4: New file.
9785         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
9786         * m4/dev-ino.m4, m4/same-inode.m4: New files.
9787
9788 2006-08-10  Eric Blake  <ebb9@byu.net>
9789
9790         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
9791         in from original proposal.
9792
9793 2006-08-10  Eric Blake  <ebb9@byu.net>
9794         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9795
9796         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
9797         namespace.
9798
9799 2006-08-10  Bruno Haible  <bruno@clisp.org>
9800
9801         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
9802         as well.
9803
9804 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9805
9806         Sync from coreutils.
9807
9808         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
9809
9810         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
9811         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
9812
9813 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9814
9815         * modules/restrict: Remove; no longer needed now that we assume
9816         Autoconf 2.59 or later.
9817         * MODULES.html.sh: Remove 'restrict'.
9818         * modules/argp (Depends-on): Remove 'restrict'.
9819         * modules/base64 (Depends-on): Likewise.
9820         * modules/gc (Depends-on): Likewise.
9821         * modules/getaddrinfo (Depends-on): Likewise.
9822         * modules/glob (Depends-on): Likewise.
9823         * modules/inet_ntop (Depends-on): Likewise.
9824         * modules/inet_pton (Depends-on): Likewise.
9825         * modules/memxor (Depends-on): Likewise.
9826         * modules/regex (Depends-on): Likewise.
9827         * modules/strtok_r (Depends-on): Likewise.
9828         * modules/time_r (Depends-on): Likewise.
9829
9830 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9831
9832         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
9833         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
9834         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
9835         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
9836         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9837         * m4/memxor.m4 (gl_MEMXOR): Likewise.
9838         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
9839         gl_C_RESTRICT replaced by AC_C_RESTRICT.
9840
9841         Merge from coreutils.
9842         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
9843         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
9844         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
9845         * m4/time_r.m4 (gl_TIME_R): Likewise.
9846
9847 2006-08-09  Karl Berry  <karl@gnu.org>
9848
9849         * config/srclist.txt: no more gettext-tools, per Bruno.
9850
9851 2006-08-08  Eric Blake  <ebb9@byu.net>
9852
9853         * modules/verror: New module.
9854         * MODULES.html.sh: Document it.
9855
9856 2006-08-08  Eric Blake  <ebb9@byu.net>
9857
9858         * lib/verror.h, lib/verror.c: New files.
9859
9860 2006-08-08  Eric Blake  <ebb9@byu.net>
9861
9862         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
9863         verror_at_line output complies with GNU Coding Standards even when
9864         file is NULL.
9865
9866 2006-08-07  Bruno Haible  <bruno@clisp.org>
9867
9868         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
9869         versions of AIX.
9870         Reported by Ralf Wildenhues.
9871
9872 2006-08-07  Bruno Haible  <bruno@clisp.org>
9873
9874         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
9875         in an AC_DEFUN. Needed so that the autoconf snippets can use
9876         AC_REQUIRE.
9877
9878 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9879
9880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9881         Initialize pkgdata_DATA.
9882         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
9883         overriding it.
9884
9885 2006-08-06  Eric Blake  <ebb9@byu.net>
9886
9887         * lib/error.h: Fold in some upstream changes from glibc.
9888         * lib/error.c: Likewise.
9889
9890 2006-08-04  Bruno Haible  <bruno@clisp.org>
9891
9892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9893         Make the mostlyclean-local rule depend on mostlyclean-generic.
9894         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
9895
9896 2006-07-31  Bruno Haible  <bruno@clisp.org>
9897
9898         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
9899         <stdlib.h>, <string.h>.
9900
9901 2006-07-30  Bruno Haible  <bruno@clisp.org>
9902
9903         * modules/readlink (License): Change to LGPL.
9904
9905 2006-07-30  Bruno Haible  <bruno@clisp.org>
9906
9907         * modules/javaversion (Makefile.am): Distribute javaversion.java and
9908         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
9909         set PKGDATADIR to point to it.
9910
9911 2006-07-30  Bruno Haible  <bruno@clisp.org>
9912
9913         * modules/csharpexec (configure.ac): Comment out macro invocation.
9914         * modules/javaexec (configure.ac): Likewise.
9915         * modules/javacomp-script (configure.ac): Likewise.
9916
9917         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
9918
9919 2006-07-30  Bruno Haible  <bruno@clisp.org>
9920
9921         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
9922         linked-list.
9923
9924 2006-07-30  Bruno Haible  <bruno@clisp.org>
9925
9926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
9927
9928 2006-07-30  Bruno Haible  <bruno@clisp.org>
9929
9930         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9931         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
9932         get removed.
9933
9934 2006-07-29  Bruno Haible  <bruno@clisp.org>
9935
9936         Make it possible for gnulib-tool to work with locally modified or
9937         augmented gnulib repositories.
9938         * gnulib-tool (func_usage): Document --local-dir option.
9939         (local_gnulib_dir): New variable.
9940         Handle --local-dir option.
9941         (func_lookup_file): New function.
9942         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
9943         (func_get_description, func_get_filelist, func_get_description,
9944         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
9945         func_get_automake_snippet, func_get_include_directive,
9946         func_get_license, func_get_maintainer): Use func_lookup_file.
9947         (func_import, func_create_testdir): Use func_lookup_file.
9948
9949 2006-07-29  Bruno Haible  <bruno@clisp.org>
9950
9951         * modules/setenv (Depends-on): Add unistd.
9952
9953 2006-07-29  Bruno Haible  <bruno@clisp.org>
9954
9955         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
9956
9957 2006-07-29  Bruno Haible  <bruno@clisp.org>
9958
9959         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
9960
9961 2006-07-29  Bruno Haible  <bruno@clisp.org>
9962
9963         * gnulib-tool (import, update): If there is no Makefile.am, look at
9964         aclocal.m4, instead of bailing out.
9965
9966 2006-07-29  Bruno Haible  <bruno@clisp.org>
9967
9968         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
9969         Categorize the options by when they are useful.
9970
9971 2006-07-29  Bruno Haible  <bruno@clisp.org>
9972
9973         * gnulib-tool (func_usage): Document option --no-libtool.
9974         Handle option --no-libtool.
9975         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
9976         for changed semantics of $libtool variable.
9977         (func_import): Likewise. If libtool is not used, show this through
9978         an option --no-libtool.
9979         (func_create_testdir): Update.
9980
9981 2006-07-29  Bruno Haible  <bruno@clisp.org>
9982
9983         * gnulib-tool (func_import): Extend error message about missing
9984         --doc-base.
9985
9986 2006-07-29  Bruno Haible  <bruno@clisp.org>
9987
9988         * gnulib-tool (func_import): Don't create the $docbase directory if
9989         there is no file to store there.
9990
9991 2006-07-29  Bruno Haible  <bruno@clisp.org>
9992
9993         * gnulib-tool (autoconf_minversion): If a --dir option is given and
9994         relevant, look for configure.ac there, not in the current directory.
9995         Also use a simple search for AC_PREREQ, not "autoconf --trace".
9996
9997 2006-07-29  Bruno Haible  <bruno@clisp.org>
9998
9999         * gnulib-tool (SORT): New variable.
10000         (func_usage): Undocument --assume-autoconf option.
10001         Remove --assume-autoconf option handling.
10002         (autoconf_minversion): Determine from the contents of configure.ac.
10003         (func_import): Remove autoconf_minversion handling.
10004         Suggested by Eric Blake.
10005
10006 2006-07-29  Bruno Haible  <bruno@clisp.org>
10007
10008         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
10009
10010 2006-07-29  Bruno Haible  <bruno@clisp.org>
10011
10012         * config/srclist.txt (*setenv.[ch]): Remove rules.
10013
10014 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10015
10016         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
10017
10018 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10019
10020         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
10021         arpa/inet.h.
10022
10023 2006-07-28  Simon Josefsson  <jas@extundo.com>
10024
10025         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
10026         * modules/inet_pton (Depends-on): Likewise.
10027
10028 2006-07-28  Simon Josefsson  <jas@extundo.com>
10029
10030         * m4/netinet_in_h.m4: New file.
10031
10032 2006-07-28  Simon Josefsson  <jas@extundo.com>
10033
10034         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
10035         #include's.
10036
10037 2006-07-28  Simon Josefsson  <jas@extundo.com>
10038
10039         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
10040         #include's.
10041
10042 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
10043
10044         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
10045         setgid on directories only if they set these bits.
10046         * lib/modechange.h: Remove obsolete comment about masks.
10047
10048 2006-07-28  Eric Blake  <ebb9@byu.net>
10049
10050         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
10051         macro expansion.
10052
10053 2006-07-28  Bruno Haible  <bruno@clisp.org>
10054
10055         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
10056
10057 2006-07-28  Bruno Haible  <bruno@clisp.org>
10058
10059         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
10060
10061 2006-07-28  Bruno Haible  <bruno@clisp.org>
10062
10063         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10064         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10065         Define fallbacks.
10066         Avoids link error on FreeBSD 4.x.
10067         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10068
10069         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
10070         encoding.
10071         * lib/mbswidth.c (iswcntrl): Likewise.
10072
10073 2006-07-27  Bruno Haible  <bruno@clisp.org>
10074
10075         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
10076         test.
10077
10078 2006-07-27  Bruno Haible  <bruno@clisp.org>
10079
10080         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
10081         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
10082         defined.
10083
10084 2006-07-26  Eric Blake  <ebb9@byu.net>
10085
10086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
10087
10088 2006-07-26  Eric Blake  <ebb9@byu.net>
10089
10090         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
10091         like mingw that lack mkstemp.
10092         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
10093         avoid compilation warning on mingw.
10094
10095 2006-07-26  Bruno Haible  <bruno@clisp.org>
10096
10097         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
10098         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
10099         INT_FAST*_MIN, INTPTR_MIN.
10100
10101 2006-07-25  Bruno Haible  <bruno@clisp.org>
10102
10103         * modules/version-etc (Depends-on): Add stdarg.
10104
10105 2006-07-25  Bruno Haible  <bruno@clisp.org>
10106
10107         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
10108         complex commands.
10109
10110 2006-07-25  Bruno Haible  <bruno@clisp.org>
10111
10112         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
10113         defined in <stdarg.h> or config.h.
10114
10115 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10116
10117         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
10118         (gl_STDIO_SAFER): Remove.
10119
10120 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10121
10122         * MODULES.html.sh (File stream based Input/Output):
10123         Add fopen-safer, tmpfile-safer; remove stdio-safer.
10124         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
10125         * modules/fopen-safer, modules/tmpfile-safer: New files.
10126         * modules/stdio-safer: Remove.
10127
10128 2006-07-24  Bruno Haible  <bruno@clisp.org>
10129
10130         * modules/tmpdir: New file.
10131         * MODULES.html.sh (File system functions): Add it.
10132
10133 2006-07-24  Bruno Haible  <bruno@clisp.org>
10134
10135         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
10136         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
10137
10138 2006-07-24  Bruno Haible  <bruno@clisp.org>
10139
10140         * modules/clean-temp: New file.
10141
10142 2006-07-24  Bruno Haible  <bruno@clisp.org>
10143
10144         * m4/tmpdir.m4: New file, from GNU gettext.
10145
10146 2006-07-24  Bruno Haible  <bruno@clisp.org>
10147
10148         * lib/tmpdir.h: New file, from GNU gettext.
10149         * lib/tmpdir.c: New file, from GNU gettext.
10150
10151 2006-07-24  Bruno Haible  <bruno@clisp.org>
10152
10153         * lib/clean-temp.h: New file, from GNU gettext.
10154         * lib/clean-temp.c: New file, from GNU gettext.
10155
10156 2006-07-23  Eric Blake  <ebb9@byu.net>
10157
10158         * modules/stdio-safer (Files): Add tmpfile-safer.c.
10159         (Depends-on): Add binary-io.
10160
10161 2006-07-23  Eric Blake  <ebb9@byu.net>
10162
10163         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
10164
10165 2006-07-23  Eric Blake  <ebb9@byu.net>
10166
10167         * lib/tmpfile-safer.c: New file.
10168         * lib/stdio-safer.h (fopen_safer): Add prototype.
10169         * lib/stdio--.h (tmpfile): Make safer.
10170
10171 2006-07-23  Bruno Haible  <bruno@clisp.org>
10172
10173         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
10174         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
10175         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
10176         gl_linked_remove_at): Use it.
10177
10178 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10179         and Simon Josefsson <jas@extundo.com>
10180
10181         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
10182
10183         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
10184
10185 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10186
10187         * modules/close-stream: New file.
10188         * modules/closeout (Description): Make it clear that it exits
10189         with a diagnostic on error.
10190         (Depends-on): Add close-stream.  Remove fpending, stdbool.
10191         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
10192
10193 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10194
10195         * m4/close-stream.m4: New file.
10196
10197 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10198
10199         * lib/close-stream.c, lib/close-stream.h: New files.
10200
10201 2006-07-22  Bruno Haible  <bruno@clisp.org>
10202
10203         Merge from GNU gettext 0.15.
10204
10205         2006-05-01  Bruno Haible  <bruno@clisp.org>
10206
10207                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
10208
10209         2006-07-22  Bruno Haible  <bruno@clisp.org>
10210
10211                 * modules/javaversion: New file.
10212                 * MODULES.html.sh (Java): Add javaversion.
10213
10214         2006-03-12  Bruno Haible  <bruno@clisp.org>
10215
10216                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
10217
10218         2005-12-04  Bruno Haible  <bruno@clisp.org>
10219
10220                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
10221                 (untested).
10222
10223         2006-06-21  Bruno Haible  <bruno@clisp.org>
10224
10225                 Avoid warnings from recent versions of mcs.
10226                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
10227                 -o, -L, -r any more. Use options documented since mcs-1.0
10228                 instead. Similarly for -g.
10229
10230         2005-12-04  Bruno Haible  <bruno@clisp.org>
10231
10232                 * build-aux/csharpcomp.sh.in: Suffix for resources is
10233                 .resources, not .resource.
10234
10235         2005-07-09  Bruno Haible  <bruno@clisp.org>
10236
10237                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
10238                 add a .dll suffix.
10239                 Reported by Mark Junker <mjscod@gmx.de>.
10240
10241         2006-07-22  Bruno Haible  <bruno@clisp.org>
10242
10243                 * modules/gettext: Upgrade to gettext-0.15.
10244                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
10245                 m4/visibility.m4.
10246                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
10247
10248 2006-07-22  Bruno Haible  <bruno@clisp.org>
10249
10250         Merge from GNU gettext 0.15.
10251
10252         2006-03-25  Bruno Haible  <bruno@clisp.org>
10253
10254                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
10255
10256         2006-07-21  Bruno Haible  <bruno@clisp.org>
10257
10258                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
10259                 "1.1".
10260
10261         2006-05-09  Bruno Haible  <bruno@clisp.org>
10262
10263                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
10264                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
10265                 for the conftestver execution.
10266
10267         2006-05-01  Bruno Haible  <bruno@clisp.org>
10268
10269                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
10270                 optional target-version argument. Verify that the compiler
10271                 groks source of the specified source-version, or add -source
10272                 option as necessary. Verify that the compiler produces
10273                 bytecode in the specified target-version, or add -target and
10274                 -source options as necessary. Make the result of the test
10275                 available as variable CONF_JAVAC. Also log error output in
10276                 config.log.
10277
10278         2006-03-11  Bruno Haible  <bruno@clisp.org>
10279
10280                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
10281
10282         2006-05-09  Bruno Haible  <bruno@clisp.org>
10283
10284                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
10285                 CLASSPATH_SEPARATOR to a semicolon.
10286
10287         2006-03-12  Bruno Haible  <bruno@clisp.org>
10288
10289                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
10290                 available as variable CONF_JAVA, for subsequent autoconf
10291                 tests. Also log error output in config.log.
10292
10293         2006-07-19  Bruno Haible  <bruno@clisp.org>
10294
10295                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
10296                 that getline works on glibc2 systems. Needed to avoid trouble
10297                 in relocatable.c.
10298                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
10299
10300         2005-12-04  Bruno Haible  <bruno@clisp.org>
10301
10302                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
10303                 launcher (untested).
10304
10305         2005-12-04  Bruno Haible  <bruno@clisp.org>
10306
10307                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
10308
10309         2006-07-22  Bruno Haible  <bruno@clisp.org>
10310
10311                 * gettext.m4: Update from GNU gettext-0.15.
10312                 * nls.m4: Likewise.
10313                 * po.m4: Likewise.
10314                 * inttypes-pri.m4: Likewise.
10315                 * inttypes-h.m4: Renamed from inttypes.m4.
10316                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
10317
10318 2006-07-22  Bruno Haible  <bruno@clisp.org>
10319
10320         Merge from GNU gettext 0.15.
10321
10322         2005-07-05  Bruno Haible  <bruno@clisp.org>
10323
10324                 * printf-args.c (printf_fetchargs): Work around broken
10325                 definition of wint_t on mingw.
10326
10327         2005-02-12  Bruno Haible  <bruno@clisp.org>
10328
10329                 * xallocsa.h: Add extern "C" for C++.
10330
10331         2006-05-17  Bruno Haible  <bruno@clisp.org>
10332
10333                 Cygwin portability.
10334                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
10335
10336         2006-04-30  Bruno Haible  <bruno@clisp.org>
10337
10338                 * progreloc.c: Include <mach-o/dyld.h> if available.
10339                 (find_executable): Use _NSGetExecutablePath when possible.
10340
10341         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
10342
10343                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
10344                 function.
10345
10346         2005-12-29  Bruno Haible  <bruno@clisp.org>
10347
10348                 * progreloc.c (set_program_name_and_installdir): Fix
10349                 compilation error.
10350
10351         2005-12-04  Bruno Haible  <bruno@clisp.org>
10352
10353                 Cygwin portability.
10354                 * progreloc.c: Include <windows.h> also on Cygwin.
10355                 (find_executable): Add support for Cygwin.
10356                 (set_program_name_and_installdir): Handle also platforms with
10357                 nonempty EXEEXT.
10358
10359         2006-07-11  Bruno Haible  <bruno@clisp.org>
10360
10361                 * javacomp.c: Fix a comment.
10362                 Reported by Jim Meyering.
10363
10364         2006-04-30  Bruno Haible  <bruno@clisp.org>
10365
10366                 * javacomp.h (compile_java_class): Add source_version,
10367                 target_version arguments.
10368                 * javacomp.c: Rewritten to choose only a compiler that
10369                 respects the specified source_version and target_version.
10370
10371         2006-06-27  Bruno Haible  <bruno@clisp.org>
10372
10373                 Assume correct S_ISDIR macro.
10374                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
10375
10376         2006-07-22  Bruno Haible  <bruno@clisp.org>
10377
10378                 * javaversion.h: New file, from GNU gettext.
10379                 * javaversion.c: New file, from GNU gettext.
10380                 * javaversion.java: New file, from GNU gettext.
10381                 * javaversion.class: New file, from GNU gettext.
10382
10383         2006-05-17  Bruno Haible  <bruno@clisp.org>
10384
10385                 Cygwin portability.
10386                 * javaexec.c (execute_java_class): Test for jview program
10387                 also on Cygwin.
10388
10389         2006-04-09  Bruno Haible  <bruno@clisp.org>
10390
10391                 * fatal-signal.c: Don't include string.h.
10392                 (at_fatal_signal): Use a copying loop instead of memcpy.
10393
10394         2005-12-04  Bruno Haible  <bruno@clisp.org>
10395
10396                 * csharpexec.c: Add support for 'clix' launcher (untested).
10397                 (execute_csharp_using_sscli): New function.
10398                 (execute_csharp_program): Call it.
10399
10400         2006-06-21  Bruno Haible  <bruno@clisp.org>
10401
10402                 Avoid warnings from recent versions of mcs.
10403                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
10404                 -o, -L, -r any more. Use options documented since mcs-1.0
10405                 instead. Similarly for -g.
10406
10407         2005-07-09  Bruno Haible  <bruno@clisp.org>
10408
10409                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
10410                 add a .dll suffix.
10411                 Reported by Mark Junker <mjscod@gmx.de>.
10412
10413         2006-06-17  Bruno Haible  <bruno@clisp.org>
10414
10415                 * config.charset: Update for NetBSD 3.0.
10416
10417         2006-05-17  Bruno Haible  <bruno@clisp.org>
10418
10419                 Cygwin portability.
10420                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
10421
10422         2006-05-16  Bruno Haible  <bruno@clisp.org>
10423
10424                 * localcharset.c [CYGWIN]: Include <windows.h>.
10425                 (get_charset_aliases): For Cygwin, return the same CPxxx
10426                 aliases list as under WIN32.
10427                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
10428                 the environment variables. Fall back to GetACP().
10429
10430         2006-04-05  Bruno Haible  <bruno@clisp.org>
10431
10432                 * config.charset: Update Juan Manuel Guerrero's address.
10433
10434         2005-02-12  Bruno Haible  <bruno@clisp.org>
10435
10436                 * allocsa.h: Add extern "C" for C++.
10437
10438         2005-02-10  Bruno Haible  <bruno@clisp.org>
10439
10440                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
10441                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
10442
10443         2006-07-22  Bruno Haible  <bruno@clisp.org>
10444
10445                 * gettext.h: Update to GNU gettext-0.15.
10446
10447 2006-07-22  Bruno Haible  <bruno@clisp.org>
10448
10449         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
10450         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
10451         lib-prefix.m4, longdouble.m4, ssize_t.m4.
10452
10453 2006-07-21  Eric Blake  <ebb9@byu.net>
10454
10455         * modules/stdlib-safer: New file.
10456         * MODULES.html.sh (File stream based Input/Output): Add
10457         stdlib-safer.
10458
10459 2006-07-21  Eric Blake  <ebb9@byu.net>
10460
10461         * lib/stdlib-safer.h: New file from coreutils, required by
10462         stdlib--.h.
10463
10464 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
10465
10466         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
10467
10468 2006-07-20  Bruno Haible  <bruno@clisp.org>
10469
10470         * gnulib-tool: Recognize new option --assume-autoconf.
10471         (autoconf_minversion): New variable.
10472         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
10473
10474 2006-07-20  Bruno Haible  <bruno@clisp.org>
10475
10476         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
10477
10478 2006-07-19  Derek R. Price  <derek@ximbiot.com>
10479
10480         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
10481         Reindent and repaginate.
10482
10483 2006-07-19  Derek Price  <derek@ximbiot.com>
10484
10485         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
10486         Correct grammar.
10487
10488 2006-07-17  Bruno Haible  <bruno@clisp.org>
10489
10490         * modules/list: New file.
10491         * modules/array-list: New file.
10492         * modules/carray-list, modules/carray-list-tests: New files.
10493         * modules/linked-list, modules/linked-list-tests: New files.
10494         * modules/avltree-list, modules/avltree-list-tests: New files.
10495         * modules/rbtree-list, modules/rbtree-list-tests: New files.
10496         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
10497         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
10498         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
10499         * modules/oset: New file.
10500         * modules/array-oset: New file.
10501         * modules/avltree-oset, modules/avltree-oset-tests: New files.
10502         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
10503         * tests/test-carray_list.c: New file.
10504         * tests/test-linked_list.c: New file.
10505         * tests/test-avltree_list.c: New file.
10506         * tests/test-rbtree_list.c: New file.
10507         * tests/test-linkedhash_list.c: New file.
10508         * tests/test-avltreehash_list.c: New file.
10509         * tests/test-rbtreehash_list.c: New file.
10510         * tests/test-avltree_oset.c: New file.
10511         * tests/test-rbtree_oset.c: New file.
10512         * MODULES.html.sh (Container data structures): New section.
10513
10514 2006-07-17  Bruno Haible  <bruno@clisp.org>
10515
10516         * m4/gl_list.m4: New file.
10517
10518 2006-07-17  Bruno Haible  <bruno@clisp.org>
10519
10520         * lib/gl_list.h: New file.
10521         * lib/gl_list.c: New file.
10522         * lib/gl_array_list.h: New file.
10523         * lib/gl_array_list.c: New file.
10524         * lib/gl_carray_list.h: New file.
10525         * lib/gl_carray_list.c: New file.
10526         * lib/gl_linked_list.h: New file.
10527         * lib/gl_linked_list.c: New file.
10528         * lib/gl_anylinked_list1.h: New file.
10529         * lib/gl_anylinked_list2.h: New file.
10530         * lib/gl_avltree_list.h: New file.
10531         * lib/gl_avltree_list.c: New file.
10532         * lib/gl_anyavltree_list1.h: New file.
10533         * lib/gl_anyavltree_list2.h: New file.
10534         * lib/gl_rbtree_list.h: New file.
10535         * lib/gl_rbtree_list.c: New file.
10536         * lib/gl_anyrbtree_list1.h: New file.
10537         * lib/gl_anyrbtree_list2.h: New file.
10538         * lib/gl_anytree_list1.h: New file.
10539         * lib/gl_anytree_list2.h: New file.
10540         * lib/gl_linkedhash_list.h: New file.
10541         * lib/gl_linkedhash_list.c: New file.
10542         * lib/gl_anyhash_list1.h: New file.
10543         * lib/gl_anyhash_list2.h: New file.
10544         * lib/gl_avltreehash_list.h: New file.
10545         * lib/gl_avltreehash_list.c: New file.
10546         * lib/gl_rbtreehash_list.h: New file.
10547         * lib/gl_rbtreehash_list.c: New file.
10548         * lib/gl_anytreehash_list1.h: New file.
10549         * lib/gl_anytreehash_list2.h: New file.
10550
10551         * lib/gl_oset.h: New file.
10552         * lib/gl_oset.c: New file.
10553         * lib/gl_array_oset.h: New file.
10554         * lib/gl_array_oset.c: New file.
10555         * lib/gl_avltree_oset.h: New file.
10556         * lib/gl_avltree_oset.c: New file.
10557         * lib/gl_rbtree_oset.h: New file.
10558         * lib/gl_rbtree_oset.c: New file.
10559         * lib/gl_anytree_oset.h: New file.
10560
10561 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10562
10563         * m4/mkancesdirs.m4: New file.
10564         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
10565         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
10566         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
10567         it.
10568
10569 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10570
10571         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
10572         * lib/mkancesdirs.h: New files.
10573         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
10574         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
10575         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
10576         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
10577         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
10578         callers changed.  Revamp internals significantly, by not
10579         attempting to create directories that are temporarily more
10580         permissive than the final results.  Do not attempt to use
10581         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
10582         This removes some race conditions, fixes some bugs, and simplifies
10583         things.  Use new dirchownmod function to do owner and mode changes.
10584         * lib/mkdir-p.h: Likewise.
10585         * lib/modechange.c (octal_to_mode): New function.
10586         (struct mode_change): New member mentioned.
10587         (make_node_op_equals): New arg mentioned.  All callers changed.
10588         (mode_compile): Keep track of which mode bits the user has explicitly
10589         mentioned.
10590         (mode_adjust): New arg DIR, so that we implement the X op correctly.
10591         New arg PMODE_BITS, to keep track of which mode bits the user
10592         mentioned; it treats S_ISUID and S_ISGID speciall.
10593         All callers changed.
10594         * lib/modechange.h: Likewise.
10595
10596 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10597
10598         * MODULES.html.sh: Add mkancestors.
10599         * modules/mkancesdirs: New module.
10600         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
10601         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
10602         The chdir-safer and afs files are now orphans; I'll remove them
10603         unless someone speaks up.
10604         Add lib/dirchownmod.c, lib/dirchownmod.h.
10605         (Depends-on): Remove alloca, chown, save-cwd, dirname.
10606         Add lchown, mkancesdirs.
10607         (Maintainer): Add self.
10608
10609 2006-07-15  Karl Berry  <karl@gnu.org>
10610
10611         * gnulib-tool: help message wording/arrangement.
10612
10613 2006-07-14  Simon Josefsson  <jas@extundo.com>
10614
10615         * doc/gnulib.texi (Libtool and Windows): New section.
10616
10617 2006-07-12  Simon Josefsson  <jas@extundo.com>
10618
10619         * modules/gendocs (License): Fix license, approved by Karl.
10620
10621 2006-07-12  Eric Blake  <ebb9@byu.net>
10622
10623         * MODULES.html.sh: Add gendocs.
10624
10625 2006-07-11  Eric Blake  <ebb9@byu.net>
10626
10627         * modules/fdl: New module, to install doc/fdl.texi.
10628         * MODULES.html.sh: Add new section for documentation modules.
10629         * gnulib-tool: Avoid space-tab.
10630         (--doc-base): New option, to manage files from doc.
10631
10632 2006-07-11  Eric Blake  <ebb9@byu.net>
10633
10634         * m4/absolute-header.m4: Fix comments to match recent change.
10635
10636 2006-07-11  Eric Blake  <ebb9@byu.net>
10637
10638         * gnulib-tool: List --doc-base before --tests-base.
10639
10640 2006-07-11  Derek R. Price  <derek@ximbiot.com>
10641
10642         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
10643
10644 2006-07-11  Bruno Haible  <bruno@clisp.org>
10645
10646         * README: Mention where to put documentation.
10647
10648 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10649
10650         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
10651
10652 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
10653
10654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
10655         to stdint.m4.
10656
10657 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
10658
10659         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
10660         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
10661         "no/such/file/stdint.h" when there is no such file, so that
10662         the resulting C code can be parsed by dodgy compilers.
10663         Problems reported by Bob Proulx.
10664
10665 2006-07-10  Derek R. Price  <derek@ximbiot.com>
10666
10667         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
10668         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
10669         macros into the GNU _D_EXACT_NAMLEN.
10670         * lib/savedir.c:  Likewise.
10671         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
10672
10673 2006-07-10  Derek R. Price  <derek@ximbiot.com>
10674         and Paul Eggert  <eggert@cs.ucla.edu>
10675
10676         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
10677         * m4/savedir.m4:
10678         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
10679         macros into the GNU _D_EXACT_NAMLEN.
10680
10681 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10682
10683         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
10684         around the absolute name, to work around a problem with the HP-UX
10685         11.23 native C compiler, reported by Bob Proulx.
10686
10687 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10688
10689         * doc/maintain.texi, make-stds.texi: Sync from
10690         <http://savannah.gnu.org/projects/gnustandards>.
10691
10692 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10693
10694         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
10695
10696 2006-07-09  Jim Meyering  <jim@meyering.net>
10697
10698         * m4/glob.m4: Remove a doubled word in a comment.
10699
10700 2006-07-09  Jim Meyering  <jim@meyering.net>
10701
10702         * lib/argp-pv.c: Remove a doubled word in a comment.
10703         * lib/check-version.c (check_version): Likewise.
10704         * lib/javacomp.c (compile_java_class): Likewise.
10705
10706 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10707
10708         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
10709         for the benefit of people using Autoconf 2.60.  If you want to
10710         support older Autoconf versions you can copy m4/onceonly_2_57.m4
10711         (or m4/onceonly.m4, if pre-2.57) manually.
10712
10713 2006-07-08  Jim Meyering  <jim@meyering.net>
10714
10715         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
10716         comment.
10717         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
10718         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
10719         comment.
10720
10721 2006-07-08  Jim Meyering  <jim@meyering.net>
10722
10723         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
10724
10725 2006-07-07  Simon Josefsson  <jas@extundo.com>
10726
10727         * tests/test-crc.c: Change expected crc value, the test vector
10728         were probably computed using the old broken crc.c?
10729
10730 2006-07-06  Simon Josefsson  <jas@extundo.com>
10731
10732         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
10733         now the canonical place for the M4 file).
10734
10735         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
10736         from the sys_socket dependency now.
10737
10738         * modules/inet_pton (Files): Ditto.
10739
10740         * modules/inet_ntop (Files): Ditto.
10741
10742 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
10743
10744         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
10745         not gl_PREREQ_GETUSERSHELL.
10746
10747 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10748
10749         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
10750         with only one argument, for Autoconf 2.60.
10751         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
10752         expand to nothing, so add a shell command to avoid syntax error.
10753         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10754
10755 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10756
10757         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
10758
10759 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10760
10761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
10762         no longer needed.  Check for isblank decl.
10763         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
10764         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
10765         of existence.
10766
10767 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10768
10769         * lib/getloadavg.c: Use __VMS, not VMS.
10770         * lib/getopt.c: Likewise.
10771         * lib/getpagesize.h: Likewise.
10772         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
10773         and probably does not work.
10774
10775 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10776
10777         * lib/.cppi-disable: Add wcwidth.
10778         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
10779         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
10780         (ISGRAPH): Remove.  All uses changed to isgraph.
10781         (FOLD) [!defined _LIBC]: Remove special case.
10782         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
10783         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
10784         HAVE_ISBLANK.
10785         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
10786         case.
10787
10788 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
10789
10790         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
10791         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
10792         brackets.  Other minor changes to suppress some compiler
10793         warnings.
10794
10795 2006-07-06  Derek R. Price  <derek@ximbiot.com>
10796         and Paul Eggert  <eggert@cs.ucla.edu>
10797
10798         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
10799         of invoking obsolescent AC_HEADER_DIRENT macro.
10800         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10801         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
10802         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10804         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
10805         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10806         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
10807         * m4/readdir.m4: Remove; no longer needed.
10808
10809 2006-07-06  Derek R. Price  <derek@ximbiot.com>
10810         and Paul Eggert  <eggert@cs.ucla.edu>
10811
10812         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
10813         Don't worry about this obsolete case any more.
10814         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
10815         directories.
10816         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
10817         worry about this obsolete case any more.
10818         * lib/fts.c: Likewise.
10819         * lib/getcwd.c: Likewise.
10820         * lib/glob.h: Likewise.
10821         * lib/savedir.c: Likewise.
10822
10823 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10824
10825         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
10826         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
10827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
10828         needed.
10829         All uses removed.
10830         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
10831         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
10832         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
10833         needed.
10834         * m4/getdate.m4 (gl_GETDATE): Likewise.
10835         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
10836         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
10837         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10838         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
10839         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
10840         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
10841         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
10842         needed.
10843
10844 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10845
10846         * lib/memcasecmp.c: Include <limits.h>.
10847         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
10848         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
10849         Don't assume isdigit succeeds only on '0' through '9'.
10850
10851 2006-07-05  Eric Blake  <ebb9@byu.net>
10852
10853         * modules/getaddrinfo (Depends-on): Add snprintf.
10854
10855 2006-07-05  Eric Blake  <ebb9@byu.net>
10856
10857         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
10858         to avoid 'header present but could not be compiled' on cygwin.
10859
10860 2006-07-05  Eric Blake  <ebb9@byu.net>
10861
10862         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
10863         missing from netdb.h.
10864         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
10865
10866 2006-07-05  Derek R. Price  <derek@ximbiot.com>
10867
10868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
10869         no longer needed.
10870         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
10871         * m4/getdate.m4 (gl_GETDATE): Likewise.
10872         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
10873         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
10874         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10875         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
10876         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
10877
10878 2006-07-05  Derek R. Price  <derek@ximbiot.com>
10879
10880         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
10881         All uses of is_space replaced by isspace.
10882         * lib/exit.h: Don't talk about STDC_HEADERS.
10883         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
10884         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
10885         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
10886         replaced by isprint etc.
10887         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
10888         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
10889         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
10890         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
10891         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
10892         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
10893
10894 2006-07-05  Bruno Haible  <bruno@clisp.org>
10895
10896         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
10897         the function exists, before testing against AIX.
10898         Reported by Martin Lambers <marlam@marlam.de>.
10899
10900 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10901
10902         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
10903         From Mark D. Baushke.
10904
10905 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10906
10907         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
10908         to the absolute name, not just one, to bypass Sun C 5.8's
10909         "warning: #include of /usr/include/... may be non-portable".
10910
10911 2006-07-04  Eric Blake  <ebb9@byu.net>
10912
10913         * modules/dirname-tests: New test module.
10914         * tests/test-dirname.c: New file, replacing dirname.c
10915         TEST_DIRNAME section that was recently deleted.
10916
10917 2006-07-04  Bruno Haible  <bruno@clisp.org>
10918
10919         Assume ANSI C header files and <ctype.h> functions.
10920         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
10921         (mbsnwidth): Use isprint, iscntrl instead.
10922
10923 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10924
10925         Merge from coreutils.
10926         * MODULES.html.sh: Add xstrtold.
10927         * modules/xstrtold: New file.
10928         * modules/cycle-check (Files): Add lib/same-inode.h.
10929         * modules/dirname (Files): Add m4/double-slash-root.m4.
10930         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
10931         * modules/mkdir-p (Files): Add lib/same-inode.h.
10932         * modules/same (Files): Add lib/same-inode.h.
10933
10934 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10935
10936         * m4/absolute-header.m4: Renamed from full-header-path.m4.
10937         This is to keep the terminology clean; POSIX talks about
10938         "absolute pathnames", not "full pathnames", but the GNU
10939         Coding Standards say to use "path" for something else;
10940         so use "absolute" to keep both sides happy.
10941         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
10942         Set gl_absolute_header, not gl_full_header_path.
10943         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
10944         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
10945         All uses changed.
10946
10947         Merge from coreutils.
10948
10949         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10950
10951         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
10952         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
10953         want to require the building of c-strtod.o.
10954         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
10955         needs -lm directly.
10956         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
10957
10958         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
10959
10960         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
10961         --as-needed option if available.  Problem reported by Albert Chin in
10962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
10963         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
10964         cc merely issues a bunch of annoying warnings for --as-needed
10965         (this problem was reported by Bob Proulx).  Also, try linking with
10966         -lm to detect a bug in binutils 2.16 (this problem was reported
10967         by Ralf Wildenhues).
10968
10969         2006-06-18  Jim Meyering  <jim@meyering.net>
10970
10971         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
10972         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
10973         macro.
10974         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
10975         also check for glibc-2.4's abort-inducing bug.
10976
10977         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
10978         Low-probability clean-up should be to use rmdir to get rid of
10979         the just-created directory, not unlink.
10980
10981         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
10982         configure fail, and request a bug report to inform us about it.
10983         Add a comment that, barring reports to the contrary, in 2007 we'll
10984         assume ftruncate is universally available.
10985
10986         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
10987
10988         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
10989
10990         2006-03-12  Jim Meyering  <jim@meyering.net>
10991
10992         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
10993         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
10994         * m4/same.m4 (gl_SAME): Likewise.
10995         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
10996
10997         2006-03-11  Eric Blake  <ebb9@byu.net>
10998
10999         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
11000         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
11001         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
11002         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
11003
11004 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11005
11006         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
11007         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
11008         reported by Mark D. Baushke, one in
11009         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
11010
11011         Merge from coreutils.
11012
11013         * lib/.cppi-disable: Add stdint_.h.
11014         * lib/.cvsignore: Add stdint.h.
11015
11016         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11017
11018         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
11019         both double and long double versions.
11020         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
11021         * lib/xstrtold.c: New file.
11022         * lib/xstrtod.h (xstrtold): New decl.
11023
11024         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11025
11026         * lib/filemode.c (setst): Remove.
11027         (strmode): Rewrite to avoid setst.  This makes the code shorter,
11028         (arguably) clearer, and the generated code is a bit smaller on my
11029         Debian GNU/Linux stable x86 host.
11030
11031         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
11032
11033         * lib/filemode.c: Include "filemode.h" first, to test the interface.
11034         Assume that filemode.h includes sys/types.h and sys/stat.h.
11035         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
11036         (ftypelet): Reorder to put common cases first, for efficiency.
11037         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
11038         to do 'M'.
11039         (strmode): Renamed from mode_string, and now stores 12 bytes instead
11040         of 10, for compatibility with FreeBSD.  All callers changed.
11041         (filemodestring): Now stores 12 bytes instead of 10, and sets file
11042         types that can't be deduced solely from st_mode.  First arg is now a
11043         const pointer.
11044         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
11045         (strmode): Renamed from mode_string.
11046         (filemodestring): New decl.
11047         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
11048         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
11049         needed.
11050         (S_ISPORT, S_ISWHT): New macros, if not already defined.
11051
11052         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11053
11054         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
11055         fsusage.h now does that.  Include fsusage.h first, to test interface.
11056         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
11057         at most one method (the old code could have generated decls that
11058         didn't conform to C89, not that this was ever exercised).
11059         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
11060
11061         2006-03-19  Jim Meyering  <jim@meyering.net>
11062
11063         Work even in a chroot where d_ino values for entries in "/"
11064         don't match the stat.st_ino values for the same names.
11065         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
11066         number, iterate through all entries again, using lstat instead.
11067         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
11068         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
11069
11070         * lib/getcwd.c (__getcwd): Clarify a comment.
11071         Use memcpy in place of a call to strcpy.
11072
11073         2006-03-12  Jim Meyering  <jim@meyering.net>
11074
11075         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
11076         matches that of the current directory (which we're about to chdir ".."
11077         out of), then save the dev-ino of the parent, instead.
11078
11079         * lib/same-inode.h (SAME_INODE): New file/macro.
11080         * lib/chdir-safer.c (SAME_INODE): Remove definition.
11081         Include "same-inode.h", instead.
11082         * lib/same.c: Likewise.
11083         * lib/cycle-check.h: Include "same-inode.h".
11084         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
11085         * lib/cycle-check.c (SAME_INODE): Remove definition.
11086         * lib/root-dev-ino.h: Include "same-inode.h".
11087
11088         2006-03-11  Eric Blake  <ebb9@byu.net>
11089
11090         * lib/same.c (same_name): s/base_name/last_component/
11091         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
11092         * lib/filenamecat.c (file_name_concat): Likewise.
11093
11094         2006-03-11  Eric Blake  <ebb9@byu.net>,
11095                     Paul Eggert  <eggert@cs.ucla.edu>
11096
11097         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
11098         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
11099         drive prefix.
11100         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
11101         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
11102         (last_component): New method.
11103         * lib/dirname.c (dir_len): Determine when drive letters need a
11104         subsequent slash.  Preserve // when it is special.
11105         (dir_name): Don't append dot when drive letter is absolute.
11106         [TEST_DIRNAME]: Move into a full-blown gnulib test.
11107         * lib/basename.c (base_name): New semantics - malloc the result.
11108         Preserve // when it is special.  Preserve relative files that look
11109         like drive letters.
11110         (base_len): Preserve // when it is special.
11111         (last_component): New method, similar to old base_name semantics.
11112         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
11113         base_name.  Strip redundant slashes from ///.
11114
11115 2006-07-03  Jim Meyering  <jim@meyering.net>
11116
11117         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
11118         macro is used before the first cycle_check call.
11119
11120 2006-07-03  Eric Blake  <ebb9@byu.net>
11121
11122         * modules/dirname (Depends-on): Add xstrndup.
11123
11124 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11125
11126         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
11127         test cases, so that config.log is a bit easier to follow.
11128
11129 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11130
11131         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
11132         both are 64 bits, since this seems to be the tradition, and this
11133         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
11134         we ever run into a host that prefers long long to long in this
11135         case, we'll need another configure-time test.  Problem reported by
11136         Jim Meyering.
11137
11138 2006-07-02  Eric Blake  <ebb9@byu.net>
11139
11140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
11141
11142 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11143
11144         * modules/inttypes (Depends-on): No longer depends on stdint.
11145         * modules/stdint (Description): Say more about assumptions.
11146         Say that the fast types might differ.  Say macros are used.
11147         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
11148         (Makefile.am): Revise list of substituted symbols to match
11149         new stdint.m4.
11150         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
11151         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
11152         * tests/test-stdint.c (verify_same_types)
11153         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
11154         the code conforms to C99/C89.
11155         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
11156         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
11157
11158 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11159
11160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
11161         but fix a bug, by requiring at least 64 bits.
11162         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
11163         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
11164         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
11165         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
11166
11167         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
11168         changes.  Make 2.59 a prerequisite.  Check and substitute for
11169         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
11170         inttypes.h.  Do not use special include files; just use the
11171         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
11172         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
11173         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
11174         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
11175         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
11176         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
11177         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
11178         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
11179         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
11180         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
11181         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
11182         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
11183         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
11184         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
11185         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
11186         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
11187         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
11188         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
11189         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
11190         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
11191         WINT_MAX.  Check for C99 conformance more strictly, by detecting
11192         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
11193         not check for things that C99 does not require, e.g., int8_t.  If
11194         a test isn't needed unless <stdint.h> isn't working, and is
11195         unlikely to be needed for any other reason, then don't do it
11196         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
11197         size_t, since we assume C89 freestanding at least.  Do not check
11198         for sig_atomic_t, wchar_t, or wint_t, since the code now does
11199         the right thing even if the types are not defined.  Instead use:
11200         (gl_STDINT_TYPE_PROPERTIES): New macro.
11201         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
11202         testing whether <sys/types.h> clashes, as Autoconf does this for
11203         us now.  All uses removed.
11204         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
11205         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
11206         (gl_CHECK_TYPE_SAME):
11207         Remove; no longer needed.
11208         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
11209         exists, since we'll return 0 anyway in that case.
11210         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
11211
11212 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11213
11214         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
11215         possible collision with system files.
11216         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
11217         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
11218         WCHAR_MIN and WCHAR_MAX in this case.
11219         (<stddef.h>): Do not include; no longer needed.
11220         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
11221         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
11222         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
11223         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
11224         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
11225         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
11226         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
11227         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
11228         !defined(__c99))]: Include in this case too, since it's harmless
11229         now.
11230         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
11231         dangerous to do so.
11232         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
11233         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
11234         (_STDINT_MIN, _STDINT_MAX): New macros.
11235         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
11236         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
11237         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
11238         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
11239         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
11240         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
11241         macros, not typedefs; this simplifies things quite a bit.
11242         Use long int for all types narrower than int64_t.
11243         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
11244         Define in terms of long long int or int64_t or long int,
11245         not int64_t or int32_t.  This saves some compile-time testing.
11246         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
11247         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
11248         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
11249         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
11250         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
11251         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
11252         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
11253         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
11254         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
11255         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
11256         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
11257         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
11258         undef any previous version and define our own version, for
11259         simplicity and consistency with the new macros for types.
11260         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
11261         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
11262         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
11263         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
11264         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
11265         @WINT_T_SUFFIX@ to keep things simple here.
11266         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
11267         Simplify by assuming typical 8/16/32/64 host, since we're
11268         already doing that elsewhere anyway.
11269         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
11270         and assume long long int is 64 bits if available.  This
11271         speeds up 'configure'.
11272
11273 2006-07-01  Eric Blake  <ebb9@byu.net>
11274
11275         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
11276         Reported by Andreas Buening.
11277
11278 2006-07-01  Eric Blake  <ebb9@byu.net>
11279
11280         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
11281
11282 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
11283
11284         * lib/getaddrinfo.c: fixed typo
11285
11286 2006-06-29  Jim Meyering  <jim@meyering.net>
11287
11288         * modules/strftime (Maintainer): Add my name, since with the
11289         FPRINTFTIME changes strftime.c has forked from glibc.
11290
11291 2006-06-29  Eric Blake  <ebb9@byu.net>
11292
11293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
11294
11295 2006-06-29  Eric Blake  <ebb9@byu.net>
11296
11297         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
11298
11299 2006-06-29  Eric Blake  <ebb9@byu.net>
11300
11301         * lib/stat_.h: New file.
11302
11303 2006-06-29  Eric Blake  <ebb9@byu.net>
11304
11305         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
11306         unused static function.
11307
11308 2006-06-29  Eric Blake  <ebb9@byu.net>
11309
11310         * doc/functions.texi (Function Portability): Document missing lstat
11311         on mingw.
11312
11313 2006-06-29  Eric Blake  <ebb9@byu.net>
11314
11315         * MODULES.html.sh: Add sys_stat.
11316         * modules/sys_stat: New module.
11317         * modules/mkstemp (Depends-on): Add sys_stat.
11318
11319 2006-06-29  Derek R. Price  <derek@ximbiot.com>
11320
11321         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
11322
11323 2006-06-29  Derek R. Price  <derek@ximbiot.com>
11324
11325         * m4/c-bs-a.m4: Removed.
11326
11327 2006-06-29  Derek R. Price  <derek@ximbiot.com>
11328
11329         * lib/strftime.c: Assume strftime() exists.
11330
11331 2006-06-29  Derek Price  <derek@ximbiot.com>
11332
11333         * modules/c-bs-a: Removed - \a is C89.
11334         * MODULES.html.sh: Remove c-bs-a.
11335
11336 2006-06-29  Bruno Haible  <bruno@clisp.org>
11337
11338         * modules/wcwidth (License): Change to LGPL.
11339
11340 2006-06-28  Simon Josefsson  <jas@extundo.com>
11341
11342         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
11343         on _WIN32.
11344
11345         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
11346         getnameinfo.
11347
11348 2006-06-28  Simon Josefsson  <jas@extundo.com>
11349
11350         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
11351
11352 2006-06-28  Simon Josefsson  <jas@extundo.com>
11353
11354         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
11355         functions there.  It will succeed on Windows XP, but on Windows
11356         2000 and (presumably) earlier, it will fail, and use the internal
11357         re-implementation.
11358         (use_win32_p): New function.
11359         (getaddrinfo): Use strtoul on servname, to support numeric ports.
11360         Support AI_NUMERICSERV to disable getservbyname.
11361         (getnameinfo): New function, only supports
11362         NI_NUMERICHOST|NI_NUMERICSERV for now.
11363
11364         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
11365         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
11366         getnameinfo.
11367
11368 2006-06-28  Eric Blake  <ebb9@byu.net>
11369
11370         * modules/wcwidth: New file.
11371         * modules/mbchar (Depends-on): Add wcwidth.
11372         * modules/mbswidth (Depends-on): Add wcwidth.
11373         * MODULES.html.sh: Add wcwidth.
11374
11375 2006-06-28  Eric Blake  <ebb9@byu.net>
11376
11377         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
11378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
11379
11380 2006-06-28  Eric Blake  <ebb9@byu.net>
11381
11382         * lib/xvasprintf.h: Fix comments.
11383
11384 2006-06-28  Eric Blake  <ebb9@byu.net>
11385
11386         * lib/mbchar.h (wcwidth): Include wcwidth.h.
11387         * lib/mbswidth.c (wcwidth): Move from here...
11388         * lib/wcwidth.h: ...to this new file.
11389
11390 2006-06-28  Derek R. Price  <derek@ximbiot.com>
11391
11392         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
11393
11394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
11395         it's obsolete.
11396         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
11397
11398 2006-06-28  Derek R. Price  <derek@ximbiot.com>
11399
11400         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
11401         Autoconf 2.60 says this stuff was obsolete.
11402
11403 2006-06-28  Bruno Haible  <bruno@clisp.org>
11404
11405         * modules/wcwidth (Files): Add m4/wchar_t.m4.
11406
11407 2006-06-28  Bruno Haible  <bruno@clisp.org>
11408
11409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
11410         gt_TYPE_WCHAR_T.
11411
11412 2006-06-28  Bruno Haible  <bruno@clisp.org>
11413
11414         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
11415         declaration for wcwidth.
11416         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
11417
11418 2006-06-28  Bruno Haible  <bruno@clisp.org>
11419
11420         * lib/mkdtemp.c [MINGW]: Include <io.h>.
11421         (mkdir): Define using _mkdir.
11422
11423 2006-06-28  Bruno Haible  <bruno@clisp.org>
11424
11425         * lib/getaddrinfo.h: Fix POSIX URL.
11426         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
11427         _WIN32.
11428         (use_win32_p): Make static.
11429         (getaddrinfo): Reject service name if it is empty or does not consist
11430         solely of decimal digits, or if its value is > 65535.
11431         (getnameinfo): Remove useless casts.
11432
11433 2006-06-27  Simon Josefsson  <jas@extundo.com>
11434
11435         * modules/sys_select: New file, suggested by Bruno Haible, Paul
11436         Eggert and Martin Lambers.
11437
11438 2006-06-27  Simon Josefsson  <jas@extundo.com>
11439
11440         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
11441         Eggert and Martin Lambers.
11442
11443 2006-06-27  Bruno Haible  <bruno@clisp.org>
11444
11445         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
11446         result to 0, not to empty.
11447         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
11448
11449 2006-06-27  Bruno Haible  <bruno@clisp.org>
11450
11451         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
11452
11453 2006-06-26  Simon Josefsson  <jas@extundo.com>
11454
11455         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
11456         present.
11457
11458 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
11459
11460         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
11461         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
11462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
11463
11464 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
11465
11466         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
11467
11468 2006-06-26  Bruno Haible  <bruno@clisp.org>
11469
11470         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
11471
11472 2006-06-26  Bruno Haible  <bruno@clisp.org>
11473
11474         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
11475
11476 2006-06-26  Bruno Haible  <bruno@clisp.org>
11477
11478         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
11479         SGI C compiler in pre-C99 mode.
11480         Suggested by Mark D. Baushke and Larry Jones.
11481
11482 2006-06-26  Bruno Haible  <bruno@clisp.org>
11483
11484         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
11485         WCHAR_MAX.
11486         Reported by Mark D. Baushke and Larry Jones.
11487
11488 2006-06-26  Bruno Haible  <bruno@clisp.org>
11489
11490         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
11491         in pre-C99 mode.
11492         Suggested by Mark D. Baushke and Larry Jones.
11493
11494 2006-06-23  Simon Josefsson  <jas@extundo.com>
11495             Bruno Haible  <bruno@clisp.org>
11496
11497         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
11498         Emit mostlyclean-local rule.
11499         (func_emit_tests_Makefile_am): Likewise.
11500         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
11501
11502 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
11503
11504         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
11505
11506 2006-06-23  Bruno Haible  <bruno@clisp.org>
11507
11508         * tests/test-stdint.c: Update to match ISO C 99 Technical
11509         Corrigendum 1.
11510
11511 2006-06-23  Bruno Haible  <bruno@clisp.org>
11512
11513         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
11514
11515 2006-06-23  Bruno Haible  <bruno@clisp.org>
11516
11517         * lib/stdint_.h: Treat IRIX like OpenBSD.
11518
11519 2006-06-23  Bruno Haible  <bruno@clisp.org>
11520
11521         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
11522         ISO C 99 Technical Corrigendum 1.
11523
11524 2006-06-22  Simon Josefsson  <jas@extundo.com>
11525
11526         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
11527         MinGW.
11528
11529 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
11530
11531         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
11532         needed.  Some compiler complained about some of them.  Problem reported
11533         by Larry Jones in
11534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
11535
11536 2006-06-21  Simon Josefsson  <jas@extundo.com>
11537
11538         * tests/test-getaddrinfo.c: New file.
11539
11540         * modules/getaddrinfo-tests: New file.
11541
11542         * MODULES.html.sh: Add inet_pton.
11543
11544         * modules/inet_pton: New file.
11545
11546 2006-06-21  Simon Josefsson  <jas@extundo.com>
11547
11548         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
11549         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
11550         of using the (limited) gnulib implementation on Windows XP.
11551
11552         * m4/inet_pton.m4: New file.
11553
11554 2006-06-21  Simon Josefsson  <jas@extundo.com>
11555
11556         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
11557         variable.
11558
11559         * lib/socket_.h: Don't define WINVER.
11560
11561         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
11562         slightly modified to work in gnulib.
11563
11564 2006-06-21  Simon Josefsson  <jas@extundo.com>
11565
11566         * doc/gnulib.texi (Windows sockets): Add.
11567
11568 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11569
11570         * lib/read-file.c (fread_file): Start with buffer allocation of
11571         0 bytes rather than 1 byte; this simplifies the code.
11572         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
11573         code to free buffer and save/restore errno.
11574         (internal_read_file): Remove unused local.
11575
11576 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11577
11578         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
11579         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
11580         Problem reported by Denis Excoffier in
11581         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
11582
11583 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11584
11585         * modules/sys_socket, modules/socklen: Include sys/types since
11586         FreeBSD 4.x's sys/socket.h needs it.
11587
11588 2006-06-19  Simon Josefsson  <jas@extundo.com>
11589
11590         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
11591
11592 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
11593
11594         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
11595
11596 2006-06-19  Bruno Haible  <bruno@clisp.org>
11597
11598         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
11599         and FULL_PATH_INTTYPES_H in angle brackets.
11600         Reported by Mark D. Baushke <mdb@gnu.org>.
11601
11602 2006-06-17  Eric Blake  <ebb9@byu.net>
11603
11604         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
11605         errno.
11606
11607 2006-06-17  Bruno Haible  <bruno@clisp.org>
11608
11609         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
11610         <sys/inttypes.h>.
11611
11612 2006-06-17  Bruno Haible  <bruno@clisp.org>
11613
11614         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
11615         whether errno is declared. Assume <errno.h> declares errno.
11616
11617 2006-06-17  Bruno Haible  <bruno@clisp.org>
11618
11619         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
11620
11621 2006-06-17  Bruno Haible  <bruno@clisp.org>
11622
11623         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
11624         problem on Solaris 2.5.1.
11625
11626 2006-06-16  Eric Blake  <ebb9@byu.net>
11627
11628         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
11629         * lib/unicodeio.c [!defined errno]: Likewise.
11630         * lib/strtol.c [!defined errno]: Likewise.
11631         * lib/strtod.c [!defined errno]: Likewise.
11632
11633 2006-06-15  Eric Blake  <ebb9@byu.net>
11634
11635         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
11636
11637 2006-06-15  Eric Blake  <ebb9@byu.net>
11638
11639         * config/srclist.txt (ssize_t.m4): Lose sync.
11640
11641 2006-06-15  Bruno Haible  <bruno@clisp.org>
11642
11643         * modules/stdint (Files): Include m4/full-header-path.m4,
11644         m4/size_max.m4, m4/wchar_t.m4.
11645         (Makefile.am): Many more substitutions.
11646         * modules/stdint-tests: New file.
11647         * tests/test-stdint.c: New file.
11648
11649 2006-06-15  Bruno Haible  <bruno@clisp.org>
11650
11651         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
11652         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
11653         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
11654         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
11655         gl_CHECK_TYPE_SAME): New macros.
11656
11657 2006-06-15  Bruno Haible  <bruno@clisp.org>
11658
11659         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
11660
11661 2006-06-15  Bruno Haible  <bruno@clisp.org>
11662
11663         * lib/stdint_.h: Rewritten to be fully auto-configured.
11664         Fixes bug on HP-UX/IA64.
11665
11666 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
11667
11668         * lib/getdate.y (__attribute__): Don't define if already defined.
11669         Problem reported by Larry Jones.
11670         * lib/utimens.c (__attribute__): Likewise.
11671
11672 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11673
11674         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
11675         reported by Andreas Schwab.
11676
11677 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11678             Bruno Haible  <bruno@clisp.org>
11679
11680         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
11681         check for the declaration of strnlen and a run test that exposes the
11682         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
11683         rpl_strndup.
11684
11685 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11686             Bruno Haible  <bruno@clisp.org>
11687
11688         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
11689
11690 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11691
11692         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
11693         compile test, for Tru64 4.0D.
11694
11695 2006-05-28  Karl Berry  <karl@gnu.org>
11696
11697         * config/srclist.txt (printf-args.c): lose sync.
11698
11699 2006-05-26  Martin Lambers  <marlam@marlam.de>
11700
11701         * lib/getpass.c: Updates the test for the native W32 API, and adds
11702         missing includes, thus fixing compilation warnings.
11703
11704 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11705
11706         * lib/exclude.c (exclude_fnmatch): New function.
11707         (excluded_file_name): Call exclude_fnmatch.
11708         * lib/exclude.h (excluded_file_name): New prototype
11709
11710 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
11711
11712         * lib/tempname.c (small_open, large_open): New macros.
11713         (__open, __open64) [!_LIBC]: Remove.
11714         (__gen_tempname): Use small_open and large_open instead of __open
11715         and __open64.  This fixes a portability bug on HP-UX 11.11i
11716         reported by Simon Wing-Tang in
11717         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
11718
11719 2006-05-24  Bruno Haible  <bruno@clisp.org>
11720
11721         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
11722         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
11723         Reported by Thorsten Maerz <torte@netztorte.de> via
11724         Aaron Stone <aaron@serendipity.cx>.
11725
11726 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11727
11728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
11729         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
11730         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
11731         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
11732         not really conditional on the cache.
11733         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
11734
11735 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11736
11737         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
11738         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
11739         (my_usleep): Don't mishandle maximum value.
11740
11741 2006-05-19  Jim Meyering  <jim@meyering.net>
11742
11743         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
11744
11745 2006-05-17  Bruno Haible  <bruno@clisp.org>
11746
11747         Cygwin portability.
11748         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
11749
11750 2006-05-17  Bruno Haible  <bruno@clisp.org>
11751
11752         * lib/stdint_.h: Fix recognition of Cygwin.
11753
11754 2006-05-15  Bruno Haible  <bruno@clisp.org>
11755
11756         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
11757         on libtool patch by Ralf Wildenhues.
11758
11759 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11760
11761         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
11762         test for C99 conformance; (bool) 0.5 is an integer constant
11763         expression, but (bool) -0.5 is not.  Problem reported by Fedor
11764         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
11765
11766 2006-05-11  Simon Josefsson  <jas@extundo.com>
11767
11768         * m4/xvasprintf.m4: Fix obvious typo.
11769
11770 2006-05-11  Jim Meyering  <jim@meyering.net>
11771
11772         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
11773         James Lemley.
11774
11775 2006-05-10  Simon Josefsson  <jas@extundo.com>
11776
11777         * lib/md4.c: Typo fix, update copyright years.
11778         (K1, K2): Don't use L because it turn computations into 64-bit on
11779         64-bit platforms.
11780
11781 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
11782
11783         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
11784         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
11785         unwanted sign propagation, e.g., on hosts with 64-bit int.
11786         There still are some problems with reeelly weird theoretical hosts
11787         (e.g., 33-bit int) but it's not worth worrying about now.
11788         * lib/sha1.c (rol): Likewise.
11789         (K1, K2, K3, K4): Remove unnecessary L suffix.
11790
11791 2006-05-10  Bruno Haible  <bruno@clisp.org>
11792
11793         * lib/des.c: Cast to avoid warnings.
11794
11795 2006-05-09  Bruno Haible  <bruno@clisp.org>
11796
11797         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
11798         (Depends-on): Depend also on xsize, stdarg.
11799         (configure.ac): Add gl_XVASPRINTF.
11800
11801 2006-05-09  Bruno Haible  <bruno@clisp.org>
11802
11803         * m4/xvasprintf.m4: New file.
11804
11805 2006-05-09  Bruno Haible  <bruno@clisp.org>
11806
11807         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
11808         (EOVERFLOW): Define fallback value.
11809         (xstrcat): New function.
11810         (xvasprintf): Recognize the special case of a string concatenation.
11811
11812 2006-05-08  Eric Blake  <ebb9@byu.net>
11813
11814         * gnulib-tool (func_version): Base copyright year on CVS date.
11815         (func_emit_copyright_notice): New function.
11816         (func_emit_lib_Makefile_am): Use it.
11817         (func_emit_tests_Makefile_am): Likewise.
11818         (func_import): Likewise.
11819
11820 2006-05-08  Bruno Haible  <bruno@clisp.org>
11821
11822         * modules/stdarg: New file.
11823         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
11824
11825 2006-05-08  Bruno Haible  <bruno@clisp.org>
11826
11827         * m4/stdarg.m4: New file, from GNU gettext.
11828
11829 2006-05-08  Bruno Haible  <bruno@clisp.org>
11830
11831         * config/srclist.txt (build-aux/config.rpath): different from latest
11832         release.
11833
11834 2006-05-08  Bruno Haible  <bruno@clisp.org>
11835
11836         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
11837
11838 2006-05-05  Jim Meyering  <jim@meyering.net>
11839
11840         * m4/warning.m4: New file, derived from bison's file by the same name.
11841
11842 2006-05-03  Bruno Haible  <bruno@clisp.org>
11843
11844         * lib/stdint_.h: Shorter URL.
11845         * lib/inttypes.h: Likewise.
11846
11847 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11848
11849         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
11850
11851 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11852
11853         * lib/verify.h: Document the internals better.  Most of this change
11854         was written by Bruno Haible.
11855
11856 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11857
11858         * doc/verify.texi: New file, partly based on a proposal by
11859         Bruno Haible.
11860
11861 2006-05-02  Bruno Haible  <bruno@clisp.org>
11862
11863         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
11864         test from here...
11865         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
11866
11867 2006-04-29  Bruno Haible  <bruno@clisp.org>
11868
11869         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
11870         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
11871
11872 2006-04-29  Bruno Haible  <bruno@clisp.org>
11873
11874         * gnulib-tool: Make --update option actually work.
11875
11876 2006-04-29  Bruno Haible  <bruno@clisp.org>
11877
11878         * doc/gcd.texi: New file.
11879         * doc/gnulib.texi: Include it.
11880
11881 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11882
11883         * lib/getdate.y (get_date): When adding relative date, start with the
11884         initial time, not with the result of the first mktime call.
11885
11886 2006-04-25  Bruno Haible  <bruno@clisp.org>
11887
11888         * gnulib-tool (func_import): Output the include directives in three
11889         blocks, sorted separately.
11890         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11891
11892 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11893
11894         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
11895         to define main with arguments, for C++.  Reported by Eric Blake.
11896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11897         Prefer 'int main ()' to 'int main (void)', for C++.
11898         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11899         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
11900         for 'main', for C99 and C++.
11901
11902 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11903
11904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
11905         Don't assume that exit status -1 is valid.
11906         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11907         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11908         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11909         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
11910         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
11911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
11912         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
11913         functions can be used without declaring them, or that you can
11914         exit with status -1.
11915         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11916
11917 2006-04-24  Karl Berry  <karl@gnu.org>
11918
11919         * config/srclist.txt (longdouble.m4): sync lost.
11920
11921 2006-04-24  Eric Blake  <ebb9@byu.net>
11922
11923         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
11924
11925 2006-04-24  Bruno Haible  <bruno@clisp.org>
11926
11927         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
11928         poll() implementation in AIX.
11929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11930
11931 2006-04-24  Bruno Haible  <bruno@clisp.org>
11932
11933         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
11934         assigned exactly once.
11935
11936 2006-04-23  Claudio Fontana  <claudio@gnu.org>
11937             Bruno Haible  <bruno@clisp.org>
11938
11939         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
11940         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
11941         for AM_CPPFLAGS.
11942
11943 2006-04-23  Bruno Haible  <bruno@clisp.org>
11944
11945         * modules/copy-file: Depend on unistd.
11946         * modules/execute: Likewise.
11947         * modules/fatal-signal: Likewise.
11948         * modules/findprog: Likewise.
11949         * modules/mkdtemp : Likewise.
11950         * modules/pipe: Likewise.
11951         * modules/wait-process: Likewise.
11952
11953 2006-04-23  Bruno Haible  <bruno@clisp.org>
11954
11955         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
11956         condition was already detected.
11957         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11958
11959 2006-04-23  Bruno Haible  <bruno@clisp.org>
11960
11961         * lib/copy-file.c: Include <unistd.h> unconditionally.
11962         * lib/execute.c: Likewise.
11963         * lib/fatal-signal.c: Likewise.
11964         * lib/findprog.c: Likewise.
11965         * lib/mkdtemp.c: Likewise.
11966         * lib/pipe.h: Likewise.
11967         * lib/pipe.c: Likewise.
11968         * lib/wait-process.h: Likewise.
11969
11970 2006-04-23  Bruno Haible  <bruno@clisp.org>
11971
11972         * gnulib-tool (func_usage): Fix --import description. Document
11973         --update.
11974         (func_import): Create temporary file in a temporary directory, if
11975         --dry-run is specified. Silence errors from 'grep' when there are no
11976         m4 files in $m4dir.
11977         (func_create_testdir): Silence errors from 'grep' when there are no
11978         m4 files in $m4dir.
11979         Reported by Karl Berry <karl@freefriends.org>.
11980
11981 2006-04-20  Bruno Haible  <bruno@clisp.org>
11982
11983         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
11984         one argument, so that the code will be portable to Autoconf 2.60.
11985         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
11986         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11987         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
11988
11989 2006-04-19  Derek Price  <derek@ximbiot.com>
11990             Eric Blake  <ebb9@byu.net>
11991
11992         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
11993         rather than "/full/path.h".  Update comment to match.  Shorten &
11994         generalize m4_translit call via AS_TR_CPP.
11995
11996 2006-04-19  Derek Price  <derek@ximbiot.com>
11997             Eric Blake  <ebb9@byu.net>
11998
11999         * lib/inttypes.h: Correct grammar in comment.
12000
12001 2006-04-18  Derek Price  <derek@ximbiot.com>
12002             Paul Eggert  <eggert@cs.ucla.edu>
12003
12004         * modules/inttypes: New file.
12005         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
12006
12007 2006-04-18  Derek Price  <derek@ximbiot.com>
12008             Paul Eggert  <eggert@cs.ucla.edu>
12009
12010         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
12011         New files.
12012
12013 2006-04-18  Derek Price  <derek@ximbiot.com>
12014             Paul Eggert  <eggert@cs.ucla.edu>
12015
12016         * lib/inttypes.h: New file.
12017         * lib/strtoimax.c: Assume <inttypes.h>.
12018
12019 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
12020
12021         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
12022         isn't mounted.  Problem reported by Kir Kolyshkin.
12023
12024 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12025
12026         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
12027         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
12028         Derek R. Price.
12029         * lib/regex.h (RE_DUP_MAX): Update comment to match current
12030         implementation.
12031
12032 2006-04-12  Eric Blake  <ebb9@byu.net>
12033
12034         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
12035         is now done automatically by the corresponding Autoconf macro.
12036
12037 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12038
12039         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
12040         time_r.h.
12041
12042 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12043
12044         Merge regex changes from libc, removing some of our
12045         POSIX-conformance changes that were rejected and redoing them in a
12046         less-intrusive way.
12047
12048         * lib/regcomp.c (re_compile_internal, init_dfa):
12049         Length arg is now size_t, not Idx.  All uses changed.
12050         (peek_token): Forward decl now says internal_function.
12051         (__re_error_msgid, __re_error_msgid_idx):
12052         Now static rather than extern with attribute_hidden.
12053         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
12054         For some reason libc prefers K&R style defns for external functions.
12055         (regerror) [!defined _LIBC]: Likewise.
12056         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
12057         (seek_collating_symbol_entry, lookup_collation_sequence_value):
12058         (build_range_exp, build_collating_symbol):
12059         Use K&R-style defn.
12060         (re_compile_fastmap): Use '\0' to memset, not 0.
12061         (utf8_sb_map): Make the calculations more obvious.
12062         (init_dfa, parse_bracket_exp, build_charclass_op):
12063         Call calloc and cast result, as glibc does.
12064         (init_word_char, fetch_token, peek_token, peek_token_bracket):
12065         (build_range_exp, build_collating_symbol):
12066         Now internal functions.
12067
12068         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
12069
12070         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
12071         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
12072         Don't depend on VMS; depend on __VMS instead, for POSIX
12073         namespace cleanness.
12074         (regoff_t): Define to ssize_t, not long int.
12075
12076         Remove the REG_ macros named below.  Instead, make the old names
12077         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
12078         __USE_GNU_REGEX.
12079         (REG_BACKSLASH_ESCAPE_IN_LISTS):
12080         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
12081         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
12082         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
12083         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
12084         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
12085         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
12086         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
12087         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
12088         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
12089         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
12090         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
12091         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
12092         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
12093         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
12094         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
12095         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
12096         (REG_NREGS):
12097         Remove.  All uses replaced by the old RE_* names.
12098         (RE_BACKSLASH_ESCAPE_IN_LISTS):
12099         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
12100         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
12101         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
12102         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
12103         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
12104         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
12105         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
12106         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
12107         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
12108         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
12109         Don't bother having these macros be independent of each others'
12110         values, since they no longer exist in the POSIX name space.
12111
12112         Rename the following member names back to their old names,
12113         unless !__USE_GNU_REGEX.  All uses changed back.
12114         (buffer): Renamed from re_buffer.
12115         (allocated): Renamed from re_allocated.
12116         (used): Renamed from re_used.
12117         (syntax): Renamed from re_syntax.
12118         (fastmap): Renamed from re_fastmap.
12119         (translate): Renamed from re_translate.
12120         (can_be_null): Renamed from re_can_be_null.
12121         (regs_allocated): Renamed from re_regs_allocated.
12122         (fastmap_accurate): Renamed from re_fastmap_accurate.
12123         (no_sub): Renamed from re_no_sub.
12124         (not_bol): Renamed from re_not_bol.
12125         (not_eol): Renamed from re_not_eol.
12126         (newline_anchor): Renamed from re_newline_anchor.
12127         (num_regs): Renamed from rm_num_regs.
12128         (start): Renamed from rm_start.
12129         (end): Renamed from rm_end.
12130
12131         (free_state): Move up a bit.
12132
12133         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
12134         #define to be empty.
12135         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
12136         when that is what is intended.
12137         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
12138         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
12139         (MAX): New macro.
12140         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
12141         All uses changed back to re_malloc, etc.  It's now the caller's
12142         responsibility to check for overflow; all callers changed.
12143         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
12144         (re_x2nrealloc): Remove.
12145         (free_state): Remove decl.
12146
12147         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
12148         (re_set_registers, re_exec):
12149         Use K&R-style defn.
12150
12151         2006-01-31  Roland McGrath  <roland@redhat.com>
12152
12153         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
12154         Reported by Mike Frysinger <vapier@gentoo.org>.
12155
12156         2006-01-15  Andreas Jaeger  <aj@suse.de>
12157
12158         [BZ #1950]
12159         * lib/regex_internal.c (re_string_reconstruct): Adjust for
12160         build_wcs_upper_buffer change.
12161         (build_wcs_upper_buffer): Change return type.
12162
12163         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
12164
12165         * lib/regex_internal.h: Include <stdint.h> if available.
12166
12167         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
12168
12169         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
12170
12171         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
12172
12173         * lib/regcomp.c: Adjust for changed secondary hash function.
12174
12175         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
12176
12177         * lib/regex.h: Pretty printing.
12178         Clean up namespace a bit.
12179
12180         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
12181
12182         * lib/regexec.c (update_cur_sifted_state, check_arrival,
12183         check_arrival_add_next_nodes): Avoid using uninitialized variable.
12184
12185         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12186                     Ulrich Drepper  <drepper@redhat.com>
12187
12188         [BZ #1302]
12189         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
12190         changed.
12191         (bitset_word_t): Renamed from bitset_word.  All uses changed.
12192
12193         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
12194
12195         [BZ #281]
12196         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
12197         * lib/regcomp.c: Remove unnecessary uses of
12198         unsigned RE_TRANSLATE_TYPE.
12199         * lib/regex_internal.h: Likewise.
12200         * lib/regex_internal.c: Likewise.
12201         * lib/regexec.c: Likewise.
12202         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
12203
12204         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
12205
12206         * lib/regexec.c (find_recover_state): Remove unnecessary
12207         initialization.
12208         (transit_state_bkref): Make DFA a const pointer.
12209         (get_subexp): Likewise.
12210         (check_arrival): Likewise.
12211         (update_cur_sifted_state): Likewise.
12212         (re_search_internal): Likewise.
12213         (prune_impossible_nodes): Likewise.
12214         (acquire_init_state_context): Likewise.
12215         (proceed_next_node): Likewise.
12216         (set_regs): Likewise.
12217         (free_fail_stack_return): Likewise.
12218         (check_arrival_expand_ecl): Mark DFA parameter as const.
12219         (check_arrival_expand_ecl_sub): Likewise.
12220         (check_subexp_limits): Likewise.
12221         (sub_epsilon_src_nodes):  Likewise.
12222         (add_epsilon_src_nodes):  Likewise.
12223         (merge_state_array): Likewise.
12224         (update_regs): Likewise.
12225         (build_trtable): Likewise.
12226         (sift_states_backward): Mark MCTX parameter as const.
12227         (build_sifted_states): Likewise.
12228         (update_cur_sifted_state): Likewise.
12229         (sift_states_mkref): Likewise.
12230         (check_arrival_expand_ecl): Mark eclosure as const.
12231         (check_dst_limits_calc_pos_1): Likewise.
12232         * lib/regex_internal.h (re_match_context_t): Make dfa a const
12233         pointer.
12234
12235         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
12236
12237         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
12238         (transit_state_sb): Likewise.
12239         (transit_state_mb): Likewise.
12240         (sift_states_iter_mb): Likewise.
12241         (check_arrival_add_next_nodes): Likewise.
12242         (check_node_accept_bytes): Change first parameter to pointer-to-const.
12243         [_LIBC] (re_search_2_stub): Use mempcpy.
12244
12245         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
12246         mbrtowc for very simple UTF-8 case.
12247
12248         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
12249         a pointer-to-const.
12250         (re_acquire_state_context): Likewise.
12251         * lib/regex_internal.h: Adjust prototypes.
12252
12253         * lib/regex.c: Prevent using C++ compilers.
12254
12255         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
12256         (re_acquire_state_context): Likewise.
12257
12258 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12259
12260         * modules/regex (Depends-on): Add ssize_t.
12261
12262 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12263
12264         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
12265         translation table.
12266
12267 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12268
12269         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
12270
12271 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
12272             Bruno Haible  <bruno@clisp.org>
12273
12274         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
12275         <sys/types.h> and <inttypes.h>.
12276
12277 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12278
12279         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
12280         `__error_t_defined', so argp.h will not typedef the former.
12281
12282 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12283
12284         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
12285         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
12286         glibc names.  Even if glibc is changed to conform to POSIX, the
12287         traditional names will be available anyway, since regex depends on
12288         the extensions module.  Also, fix a longstanding typo in the
12289         implementation of Spencer ERE test #75 from grep 2.3.  Problems
12290         reported by Emanuele Giaquinta.  Also, change sense of cached
12291         variable, so that the message makes sense.
12292
12293 2006-03-24  Simon Josefsson  <jas@extundo.com>
12294
12295         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
12296         including some doc fixes.
12297         (base64_encode_alloc): Fix +1 bug on allocation failures.
12298
12299 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12300
12301         * lib/base64.c (base64_encode): Do not read past end of array with
12302         unsanitized input on systems with CHAR_BIT > 8.
12303
12304 2006-03-24  Eric Blake  <ebb9@byu.net>
12305
12306         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
12307
12308 2006-03-22  Karl Berry  <karl@gnu.org>
12309
12310         * config/srclist.txt (*setenv.[ch]): get from coreutils.
12311         * config/srclistvars.sh (COREUTILS): new var.
12312
12313 2006-03-17  Jim Meyering  <jim@meyering.net>
12314
12315         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
12316         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
12317
12318 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
12319
12320         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
12321         no longer needs it.  Instead, check that regoff_t is as least
12322         as wide as ptrdiff_t.
12323
12324         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
12325         so that our regex.h stays compatible with the installed regex.
12326         This is helpful for installers who configure --without-included-regex.
12327         Problem reported by Emanuele Giaquinta.
12328
12329 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
12330
12331         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
12332         Typedef to long int, not to off_, as POSIX will likely change
12333         in that direction.
12334
12335 2006-03-15  Eric Blake  <ebb9@byu.net>
12336
12337         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
12338
12339 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
12340
12341         * lib/argp-help.c (validate_uparams): Fix typo
12342         * lib/argp-parse.c (argp_default_options): Consistently begin help
12343         messages with a lowercase letter.
12344
12345 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
12346
12347         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
12348         overrun buffers and shouldn't be used (much as gets shouldn't be
12349         used).
12350         * lib/time_r.c (asctime_r, ctime_r): Likewise.
12351
12352 2006-03-08  Simon Josefsson  <jas@extundo.com>
12353
12354         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
12355         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12356
12357 2006-03-08  Simon Josefsson  <jas@extundo.com>
12358
12359         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
12360         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12361
12362 2006-03-08  Simon Josefsson  <jas@extundo.com>
12363
12364         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
12365         signal that configure disabled the device.
12366
12367 2006-03-08  Simon Josefsson  <jas@extundo.com>
12368
12369         * build-aux/maint.mk: Fix refresh-po, to handle no translated
12370         languages.
12371
12372 2006-03-07  Simon Josefsson  <jas@extundo.com>
12373
12374         * modules/getopt (Depends-on): Add unistd.
12375
12376         * modules/unistd: New file.
12377
12378 2006-03-07  Simon Josefsson  <jas@extundo.com>
12379
12380         * modules/gc-random: New file.
12381
12382 2006-03-07  Simon Josefsson  <jas@extundo.com>
12383
12384         * m4/unistd_h.m4: New file.
12385
12386 2006-03-07  Simon Josefsson  <jas@extundo.com>
12387
12388         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
12389         test to be side-effect free by storing the result in the cache
12390         variable gl_cv_lib_readline, and moving the assignment of
12391         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
12392         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12393
12394 2006-03-07  Simon Josefsson  <jas@extundo.com>
12395
12396         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
12397         error on missing devices (the functions will return an error).
12398
12399         * m4/gc.m4: Move random stuff to gc-random.m4
12400
12401 2006-03-07  Simon Josefsson  <jas@extundo.com>
12402
12403         * lib/unistd_.h: New file.
12404
12405 2006-03-07  Simon Josefsson  <jas@extundo.com>
12406
12407         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
12408
12409 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
12410
12411         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
12412         Problem reported by Juan Manuel Guerrero.
12413
12414 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
12415
12416         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
12417         the unistd module.
12418         * lib/getlogin_r.c: Likewise.
12419         * lib/getlogin_r.h: Likewise.
12420         * lib/glob.c: Likewise.
12421         * lib/pagealign_alloc.c: Likewise.
12422         * lib/unistd_.h: Remove; no longer needed.
12423
12424 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
12425
12426         * MODULES.html.sh (Support for systems lacking POSIX:2001):
12427         Add unistd.
12428         * modules/c-stack (Depends-on): Add unistd.
12429         * modules/getlogin_r: Likewise.
12430         * modules/glob: Likewise.
12431         * modules/pagealign_alloc: Likewise.
12432         * modules/unistd (Files): Remove lib/unistd_.h.
12433         (EXTRA_DIST): Remove.
12434         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
12435         need unistd_.h.
12436         (MOSTLYCLEANFILES): Remove unistd.h-t.
12437
12438 2006-03-03  Simon Josefsson  <jas@extundo.com>
12439
12440         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
12441
12442 2006-03-03  Simon Josefsson  <jas@extundo.com>
12443
12444         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
12445         libidn and bison.
12446
12447 2006-03-03  Simon Josefsson  <jas@extundo.com>
12448
12449         * build-aux/maint.mk: Add indent target.
12450
12451 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
12452
12453         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
12454         our replacement poll.h in any case, to avoid a differing
12455         declaration from a system header.  Seen on AIX.
12456
12457 2006-03-01  Simon Josefsson  <jas@extundo.com>
12458
12459         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
12460         <kasal@ucw.cz>.
12461
12462 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12463
12464         * modules/gettime (Depends-on): Add extensions module.
12465         * modules/nanosleep (Depends-on): Likewise.
12466         * modules/settime (Depends-on): Likewise.
12467
12468 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12469
12470         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
12471         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
12472         pedantically.
12473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12474         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
12475
12476         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
12477         not "==".  Reported by Ralf Wildenhues.
12478
12479 2006-03-01  Karl Berry  <karl@gnu.org>
12480
12481         * doc/Copyright/request-*: new files, synced from gnuorg.
12482
12483 2006-03-01  Karl Berry  <karl@gnu.org>
12484
12485         * config/srclist.txt (Copyright/*): new entries.
12486
12487 2006-02-28  Simon Josefsson  <jas@extundo.com>
12488
12489         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
12490
12491 2006-02-27  Simon Josefsson  <jas@extundo.com>
12492
12493         * lib/base64.h: Indent #define's.  From Jim Meyering
12494         <jim@meyering.net>.
12495
12496 2006-02-27  Jim Meyering  <jim@meyering.net>
12497
12498         Revert the change of 2006-02-24, so these files can continue
12499         to be sync'd from gettext.
12500         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
12501         of `config.h'.
12502
12503 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12504
12505         * modules/intprops: New file.
12506         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
12507         Add intprops.
12508         * modules/getloadavg (Files): Remove lib/intprops.h.
12509         (Depends-on): Add intprops.
12510         * modules/human: Likewise.
12511         * modules/inttostr: Likewise.
12512         * modules/openat: Likewise.
12513         * modules/sig2str: Likewise.
12514         * modules/userspec: Likewise.
12515         * modules/utimecmp: Likewise.
12516         * modules/xnanosleep: Likewise.
12517         * modules/xstrtol: Likewise.
12518
12519 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
12520
12521         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
12522         * modules/lock-tests (TESTS): Use $(EXEEXT).
12523         * modules/tls-tests: Likewise.
12524         * modules/argp-tests: Likewise.
12525         (check_PROGRAMS): New var, replacing...
12526         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
12527
12528 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12529
12530         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
12531         `config.h'.
12532
12533 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12534
12535         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
12536
12537 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12538
12539         Sync from coreutils.
12540         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
12541         gl_CHDIR_SAFER.
12542
12543 2006-02-22  Jim Meyering  <jim@meyering.net>
12544
12545         Sync from coreutils.
12546         * m4/chdir-safer.m4: New file.
12547
12548 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12549
12550         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
12551         AT_FDCWD exceeds INT_MAX.
12552         * lib/openat.h (AT_FDCWD): Likewise.
12553
12554 2006-02-17  Eric Blake  <address@hidden>
12555
12556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
12557
12558 2006-02-16  Simon Josefsson  <jas@extundo.com>
12559
12560         * modules/getaddrinfo (Depends-on): Add sys_socket.
12561
12562 2006-02-15  Simon Josefsson  <jas@extundo.com>
12563
12564         * build-aux/maint.mk: Add dsyntax-check rule.
12565
12566 2006-02-15  Eric Blake  <ebb9@byu.net>
12567
12568         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
12569         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
12570         'present but cannot compile' warnings on cygwin.
12571         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
12572         use ws2tcpip.h if sys/socket.h works.
12573         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
12574         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
12575
12576 2006-02-14  Simon Josefsson  <jas@extundo.com>
12577
12578         * modules/maintainer-makefile (Files): Rename.
12579
12580         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
12581         and (the local) Makefile.cfg to maint-cfg.mk.
12582
12583         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
12584         to the latter.
12585
12586         * modules/maintainer-makefile: New module.
12587
12588         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
12589         severaly stripped to make it possible to build it up from scratch
12590         with reliable tests.
12591
12592         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
12593         fixes to permit overriding the default actions when configure and
12594         makefile are not available.
12595
12596 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12597
12598         Sync from coreutils.
12599         * modules/lstat (Depends-on): Don't depend on xalloc.
12600         (License): Change from GPL to LGPL, since this is now simply a
12601         replacement for a libc function.
12602
12603 2006-02-14  Jim Meyering  <jim@meyering.net>
12604
12605         Sync from coreutils.
12606
12607         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
12608         failure on deficient systems, and simplify gnulib lgpl dependencies.
12609         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
12610         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
12611
12612         * lib/xalloc-die.c: Remove unused definition of N_.
12613
12614 2006-02-14  Jim Meyering  <jim@meyering.net>
12615
12616         Sync from coreutils.
12617         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
12618         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
12619         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
12620         double-quote uses of that variable, to accommodate the rare case in
12621         which getmntent is available in none of the libraries checked.  This
12622         happens at least on FreeBSD 5.0.
12623
12624 2006-02-13  Simon Josefsson  <jas@extundo.com>
12625
12626         * gnulib-tool (Usage): Fix --import, from
12627         karl@freefriends.org (Karl Berry).
12628
12629 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
12630
12631         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
12632
12633 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
12634
12635         * lib/argp-namefrob.h: Restore changes accidentally lost during the
12636         "autoupdate" on 2005-12-12.
12637
12638 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
12639
12640         * modules/closeout (Depends-on): Remove atexit.
12641
12642 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
12643
12644         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
12645         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
12646
12647 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
12648
12649         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
12650         __EXTENSIONS__ if this causes compilation to fail.  Problem
12651         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
12652         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
12653
12654 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
12655
12656         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
12657         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
12658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
12659         All uses changed.
12660
12661 2006-01-26  Simon Josefsson  <jas@extundo.com>
12662
12663         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
12664         prototype is visible on mingw32.
12665
12666         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
12667         for mingw32.
12668
12669         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
12670         mingw32).
12671
12672 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
12673
12674         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
12675         attempt to open for write; this always fails, at least on POSIX
12676         hosts.  This reinstates the 2006-01-09 change, which was
12677         inadvertently removed.
12678
12679 2006-01-26  Bruno Haible  <bruno@clisp.org>
12680
12681         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
12682         Reported by Paul Eggert.
12683
12684 2006-01-26  Bruno Haible  <bruno@clisp.org>
12685             Paul Eggert  <eggert@cs.ucla.edu>
12686
12687         * lib/stdbool_.h (_Bool)
12688         [(! (defined __cplusplus || defined __BEOS__)
12689           && !defined __GNUC__
12690           && !(defined __HP_cc || defined __xlc__
12691                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
12692                || defined __sgi))]:
12693         #define to signed char in these cases too; this simplifies
12694         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
12695         etc., separately) and makes it more conservative.
12696
12697 2006-01-25  Simon Josefsson  <jas@extundo.com>
12698
12699         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
12700         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
12701         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
12702
12703 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12704
12705         * lib/argp-namefrob.h: Bugfix. Remove stray #
12706
12707 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12708
12709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
12710         so that we test the test.
12711         Check for yet another HP-UX cc bug involving *bool |= bool.
12712
12713 2006-01-25  Karl Berry  <karl@gnu.org>
12714
12715         * config/srclist.txt (vasnprintf.c): sync lost.
12716
12717 2006-01-25  Jim Meyering  <jim@meyering.net>
12718
12719         Sync from the stable (b5) branch of coreutils:
12720
12721         * lib/fts.c (fts_children): Don't let close() clobber errno from
12722         failed fchdir().
12723
12724         * lib/fts.c (fts_stat): When following a symlink-to-directory,
12725         don't necessarily interpret stat-fails+lstat-succeeds as indicating
12726         a dangling symlink.  That can also happen at least for ELOOP.
12727         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
12728         FYI, this bug predates the inclusion of fts.c in coreutils.
12729
12730         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
12731         in their own block, so pre-c99 compilers don't object.
12732
12733         Avoid the double-free (first in fts_read, second in fts_close) that
12734         would occur when an `active' directory is made inaccessible (e.g.,
12735         via chmod a-x) during a traversal.
12736         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
12737         before returning.  Reproduce this failure by
12738         mkdir -p a/b; cd a; chmod a-x . b
12739         Reported by Stavros Passas.
12740
12741 2006-01-25  Jim Meyering  <jim@meyering.net>
12742
12743         * lib/fileblocks.c: Remove more useless parentheses.
12744         * lib/readutmp.h: Likewise.
12745
12746 2006-01-25  Bruno Haible  <bruno@clisp.org>
12747
12748         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
12749         warnings.
12750         Reported by Paul Eggert.
12751
12752 2006-01-25  Bruno Haible  <bruno@clisp.org>
12753
12754         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
12755         rid of a trap command. For Solaris sh.
12756         Reported by Mark D. Baushke <mdb@gnu.org>.
12757
12758 2006-01-24  Simon Josefsson  <jas@extundo.com>
12759
12760         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
12761         Bruno.
12762
12763 2006-01-24  Karl Berry  <karl@gnu.org>
12764
12765         * config/srclist.txt (argp-namefrob.h): sync lost.
12766
12767 2006-01-24  Jim Meyering  <jim@meyering.net>
12768
12769         * modules/openat (Files): Add lib/intprops.h.
12770         From Mark D. Baushke.
12771
12772 2006-01-24  Jim Meyering  <jim@meyering.net>
12773
12774         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
12775         Reported by Mark D. Baushke.
12776
12777 2006-01-24  Jim Meyering  <jim@meyering.net>
12778
12779         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
12780
12781 2006-01-24  Bruno Haible  <bruno@clisp.org>
12782
12783         * modules/strnlen (Maintainer): Change from glibc to all.
12784
12785 2006-01-24  Bruno Haible  <bruno@clisp.org>
12786
12787         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
12788         Patch by Paul Eggert.
12789
12790 2006-01-24  Bruno Haible  <bruno@clisp.org>
12791
12792         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
12793         already has it.
12794         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
12795         2005-11-26.
12796
12797         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
12798         'signed char' to avoid problems with the built-in _Bool type.
12799         Reported by Paul Eggert on 2005-11-26.
12800
12801 2006-01-24  Bruno Haible  <bruno@clisp.org>
12802
12803         * gnulib-tool (func_import): Avoid constructing complicated sed
12804         expressions inside backquote.
12805         Report and solution by Mark D. Baushke <mdb@gnu.org>.
12806
12807 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
12808
12809         These changes imported from libc.
12810         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
12811         test and two separate function calls.
12812         * lib/strndup.c (__strndup): Add libc_hidden_def.
12813
12814 2006-01-23  Simon Josefsson  <jas@extundo.com>
12815
12816         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
12817         Remove the test_*_SOURCES variable: automake infers it by default.
12818         * modules/tls-tests: Likewise.
12819
12820 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12821
12822         Work around porting bugs reported by Dieter in
12823         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
12824         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
12825         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
12826         Include "getopt.h" first, to check interface.
12827         (getenv): Declare only if defined HAVE_DECL_GETENV &&
12828         !HAVE_DECL_GETENV.
12829         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
12830         (__strndup): Revert to K&R-style function dfns, the glibc style.
12831         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
12832         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
12833         Include strnlen.h first, to get prototype properly.
12834         (strnlen): Renamed from __strnlen.
12835         Remove weak alias.
12836
12837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12838
12839         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
12840
12841 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12842
12843         * config/srclist.txt: Adjust to reflect glibc reorganization.
12844         This affects only comments.
12845
12846 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12847
12848          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
12849          Reported by Bruce Korb <bkorb@gnu.org>.
12850
12851 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
12852
12853         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
12854         to pacify gcc -Wswitch-default.
12855
12856 2006-01-22  Bruno Haible  <bruno@clisp.org>
12857
12858         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
12859         temporary buffer for sprintf, take into account the precision also
12860         for 'd', 'i', 'u', 'o', 'x', 'X'.
12861
12862 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
12863
12864         * modules/argp-tests: New module
12865         * tests/test-argp.c: New file
12866         * tests/test-argp-2.sh: New file
12867
12868 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
12869
12870         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
12871         (__argp_base_name): Removed
12872         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
12873         typo.
12874         (__argp_base_name): Provide macro definition or extern declaration
12875         depending on the configuration
12876
12877 2006-01-20  Simon Josefsson  <jas@extundo.com>
12878
12879         * modules/inet_ntop (Depends-on): Depend on sys_socket.
12880
12881 2006-01-20  Simon Josefsson  <jas@extundo.com>
12882
12883         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
12884
12885 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12886
12887         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
12888         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
12889         Suggested by Bruno Haible.
12890
12891 2006-01-20  Karl Berry  <karl@gnu.org>
12892
12893         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
12894         until changes propagate, I guess.
12895
12896 2006-01-19  Simon Josefsson  <jas@extundo.com>
12897
12898         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
12899
12900 2006-01-19  Simon Josefsson  <jas@extundo.com>
12901
12902         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
12903
12904 2006-01-19  Simon Josefsson  <jas@extundo.com>
12905
12906         * gnulib-tool: Set check_PROGRAMS.
12907
12908         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
12909         modules/des-tests, modules/gc-arcfour-tests,
12910         modules/gc-arctwo-tests, modules/gc-des-tests,
12911         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
12912         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
12913         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
12914         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
12915         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
12916         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
12917         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
12918         test_*_SOURCES.
12919
12920 2006-01-18  Simon Josefsson  <jas@extundo.com>
12921
12922         * modules/socklen (Depends-on): Depend on sys_socket.
12923
12924 2006-01-18  Simon Josefsson  <jas@extundo.com>
12925
12926         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
12927         modules/des-tests, modules/gc-arcfour-tests,
12928         modules/gc-arctwo-tests, modules/gc-des-tests,
12929         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
12930         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
12931         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
12932         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
12933         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
12934         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
12935         $(EXEEXT) to automake TESTS variable, for mingw32.
12936
12937 2006-01-17  Simon Josefsson  <jas@extundo.com>
12938
12939         * modules/socklen (Include): Need sys/socket.h.
12940
12941 2006-01-17  Bruno Haible  <bruno@clisp.org>
12942
12943         * modules/ssize_t (Include): Add <sys/types.h>.
12944
12945 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
12946
12947         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
12948         it's not portable and it doesn't work with cross-compiles.
12949         Problem reported by Bruno Haible.  Fix missing-$ typo in
12950         'test "gl_cv_ignore_unused_libraries" ...' that prevented
12951         -zignore from being used with Sun's C compiler.
12952
12953 2006-01-12  Simon Josefsson  <jas@extundo.com>
12954
12955         * lib/base64.c: Fix warning, reported by Bruno Haible
12956         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
12957
12958 2006-01-12  Bruno Haible  <bruno@clisp.org>
12959
12960         * modules/ldd: New file.
12961         * build-aux/ldd.sh.in: New file.
12962         * MODULES.html.sh (Support for building libraries and executables): Add
12963         ldd.
12964
12965 2006-01-12  Bruno Haible  <bruno@clisp.org>
12966
12967         * m4/ldd.m4: New file.
12968
12969 2006-01-12  Bruno Haible  <bruno@clisp.org>
12970
12971         * gnulib-tool (func_import, func_create_testdir): Don't go into an
12972         endless loop while replacing $auxdir with build-aux.
12973
12974 2006-01-11  Simon Josefsson  <jas@extundo.com>
12975
12976         * lib/stdint_.h (SIZE_MAX): Add missing (.
12977
12978 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12979
12980         Sync from coreutils.
12981         * lib/md5.c: Fix commentary typos.
12982         (alignof, UNALIGNED_P): No need for a GCC-specific version.
12983         * lib/md5.h (__attribute__): Remove; unused.
12984         * lib/sha1.c: Fix commentary to match md5 better.
12985         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
12986         so that we don't need to worry about alignment.  All uses changed.
12987         This merges the 2005-10-28 md5 change into sha1.
12988
12989 2006-01-11  Jim Meyering  <jim@meyering.net>
12990
12991         Sync from coreutils.
12992         * lib/md5.c (OP): Fix spacing.
12993
12994 2006-01-11  Bruno Haible  <bruno@clisp.org>
12995
12996         Ensure automatic ordering between gl_LOCK and gl_ARGP.
12997         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
12998         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
12999
13000 2006-01-11  Bruno Haible  <bruno@clisp.org>
13001
13002         Ensure automatic ordering between gl_LOCK and gl_ARGP.
13003         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
13004         the "early" section as well.
13005
13006 2006-01-11  Bruno Haible  <bruno@clisp.org>
13007
13008         Avoid "ar: no archive members specified" error on MacOS X.
13009         * gnulib-tool (func_modules_add_dummy): New function.
13010         (func_import, func_create_testdir): Invoke it.
13011
13012 2006-01-11  Bruno Haible  <bruno@clisp.org>
13013
13014         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
13015         with $auxdir in AC_CONFIG_FILES statements.
13016
13017 2006-01-11  Bruno Haible  <bruno@clisp.org>
13018
13019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13020         Initialize also noinst_HEADERS to empty.
13021
13022 2006-01-11  Bruno Haible  <bruno@clisp.org>
13023
13024         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
13025         variables.
13026         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
13027         autoreconf.
13028
13029 2006-01-11  Bruno Haible  <bruno@clisp.org>
13030
13031         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
13032         overridable by the user.
13033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13034
13035 2006-01-10  Simon Josefsson  <jas@extundo.com>
13036
13037         * modules/sys_socket: New file.
13038
13039 2006-01-10  Simon Josefsson  <jas@extundo.com>
13040
13041         * m4/sys_socket_h.m4: New file.
13042
13043 2006-01-10  Simon Josefsson  <jas@extundo.com>
13044
13045         * lib/socket_.h: New file.
13046
13047 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13048
13049         * modules/readutmp (Maintainer): Add myself.
13050
13051 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13052
13053         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
13054         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
13055         People who are still concerned with buggy memcmp implementations
13056         can invoke gl_FUNC_MEMCMP themselves.
13057
13058 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13059
13060         * lib/regex_internal.h (BITSET_WORD_BITS):
13061         Work around a bug in 64-bit PGC (before version 6.1-2), where the
13062         preprocessor mishandles large unsigned values as if they were signed.
13063         Problem reported by Claudio Fontana in
13064         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
13065
13066 2006-01-10  Jim Meyering  <jim@meyering.net>
13067
13068         Avoid the double-free (first in fts_read, second in fts_close) that
13069         would occur when an `active' directory is made inaccessible (e.g.,
13070         via chmod a-x) during a traversal.
13071         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
13072         before returning.  Reproduce this failure by
13073         mkdir -p a/b; cd a; chmod a-x . b
13074         Reported by Stavros Passas.
13075
13076         Sync from coreutils.
13077         * lib/sha1.c: Tweak grammar in a comment.
13078
13079 2006-01-10  Jim Meyering  <jim@meyering.net>
13080
13081         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
13082         Patch by Joerg Sonnenberger.
13083
13084 2006-01-10  Bruno Haible  <bruno@clisp.org>
13085
13086         * modules/readutmp: Depend on module free.
13087         * modules/strtok_r: Depend on module restrict.
13088
13089 2006-01-10  Bruno Haible  <bruno@clisp.org>
13090
13091         * modules/gettext (configure.ac): Add an invocation of
13092         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
13093
13094 2006-01-10  Bruno Haible  <bruno@clisp.org>
13095
13096         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
13097         Reported by Werner Lemberg <wl@gnu.org>.
13098
13099 2006-01-10  Bruno Haible  <bruno@clisp.org>
13100
13101         * lib/localcharset.c: Update from GNU gettext.
13102
13103 2006-01-10  Bruno Haible  <bruno@clisp.org>
13104
13105         * lib/argp.h (__const): Remove macro. Use const instead.
13106         * lib/argp-fmtstream.h (__const): Likewise.
13107         * lib/glob_.h (__const): Remove macro.
13108         * lib/glob-libc.h: Use const instead of __const.
13109
13110 2006-01-10  Bruno Haible  <bruno@clisp.org>
13111
13112         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
13113         variable.
13114         Needed to avoid an automake error regarding the 'gettext' module.
13115
13116 2006-01-09  Simon Josefsson  <jas@extundo.com>
13117
13118         * modules/inet_ntop (Depends-on): Add restrict.
13119
13120 2006-01-09  Simon Josefsson  <jas@extundo.com>
13121
13122         * modules/gc-rijndael-tests (License): Put under LGPL.
13123
13124         * modules/gc-des-tests (License): Likewise.
13125
13126         * modules/gc-arcfour-tests (License): Likewise.
13127
13128         * modules/gc-arctwo-tests (License): Likewise.
13129
13130         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
13131
13132         * modules/gc-hmac-sha1-tests (Files): Likewise.
13133
13134         * modules/gc-hmac-md5-tests (License): Likewise.
13135
13136         * modules/gc-sha1-tests (License): Likewise.
13137
13138         * modules/gc-md5-tests (License): Likewise.
13139
13140         * modules/gc-md4-tests (License): Likewise.
13141
13142         * modules/gc-md2-tests (License): Likewise.
13143
13144         * modules/gc-tests (License): Likewise.
13145
13146         * modules/des-tests (License): Likewise.
13147
13148         * modules/md4-tests (License): Likewise.
13149
13150         * modules/md2-tests (License): Likewise.
13151
13152 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13153
13154         Sync from coreutils:
13155
13156         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
13157         * modules/lib-ignore: New file.
13158         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
13159         chdir-safer.m4, lchmod.m4.
13160         * modules/openat: Add mkdirat.c, openat-priv.h.
13161
13162 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13163
13164         Sync from coreutils.
13165         * m4/lib-ignore.m4: New file.
13166         * m4/lchmod.m4: New file.
13167
13168 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13169
13170         Sync from coreutils.
13171         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
13172         for write access: POSIX says that must fail.
13173         * lib/fts.c (diropen): Likewise.
13174         * lib/save-cwd.c (save_cwd): Likewise.
13175         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
13176         well, for minor improvements on hosts that lack O_DIRECTORY.
13177         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
13178         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
13179         Fall back on chown if open failed with EACCES.
13180
13181         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
13182         Report an error at compile-time if only a 1-second nominal clock
13183         resolution is found.
13184
13185         * lib/lchmod.h: New file.
13186         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
13187         (make_dir_parents): Use lchown rather than chown, and
13188         lchmod rather than chmod.
13189
13190         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
13191         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
13192         "proc" reported by n0dalus.
13193
13194         * lib/mountlist.c: Include <limits.h>.
13195         (dev_from_mount_options)
13196         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
13197         New function.  It no longer assumes "dev=" has the System V meaning
13198         on Linux (since it doesn't).  It also parses "dev=" more carefully.
13199         (read_file_system_list)
13200         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
13201         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
13202         dev= in that case.
13203
13204         * lib/posixtm.h (PDS_PRE_2000): New macro.
13205         * lib/posixtm.c (year): Arg is now syntax_bits rather than
13206         allow_century.  All usages changed.  Reject dates outside the range
13207         1969-1999 if PDS_PRE_2000 is used.
13208
13209 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13210
13211         Sync from coreutils.
13212         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
13213         (Time of day items): Mention the possibility of leap seconds.
13214         Problem reported by Dr. David Alan Gilbert.
13215
13216 2006-01-09  Jim Meyering  <jim@meyering.net>
13217
13218         Sync from coreutils.
13219
13220         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
13221
13222         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
13223
13224         * lib/modechange.c (mode_compile): Reject an invalid mode string
13225         that starts with an octal digit.  From Andreas Gruenbacher.
13226
13227         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
13228         and dup to open_safer and dup_safer, respectively.
13229         (openat_permissive): Fix typo in comment.
13230
13231         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
13232         "gettext.h"; either no longer needed or are guaranteed by openat.h.
13233         (_): Remove; no longer needed.
13234         (openat): Renamed from rpl_openat; no need for rpl_openat
13235         since openat.h renames openat for us.
13236         Replace most of the body with a call to openat_permissive,
13237         to avoid duplicate code.
13238         Port to (probably hypothetical) environments were mode_t is
13239         wider than int.
13240         (openat_permissive): Require mode arg, so that we can check
13241         types better.  Put it just after flags.  Change cwd failure
13242         indicator from pointer-to-bool to pointer-to-errno-value.
13243         All callers changed.
13244         Invoke openat_save_fail and/or openat_restore_fail if
13245         cwd_errno is null, so that openat can call us.
13246         (openat_permissive, fdopendir, fstatat, unlinkat):
13247         Simplify errno handling to avoid some duplicate code,
13248         as it's OK to set errno on success.
13249         * lib/openat.h: Revamp code so that function macros depend on
13250         __OPENAT_PREFIX only, not also on AT_FDCWD.
13251         (openat_ro): Remove.  Caller changed to use openat_permissive.
13252         (openat_permissive): Now a macro, if not a function.
13253         (openat_restore_fail, openat_save_fail): Now always functions,
13254         since mkdirat needs them even if __OPENAT_PREFIX is defined.
13255
13256         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
13257         and openat.c.
13258         * lib/mkdirat.c: Include openat-priv.h.
13259         Remove definitions of macros defined therein.
13260         * lib/openat.c: Likewise.
13261
13262         * lib/mkdirat.c (mkdirat): New file and function.
13263         * lib/openat.h (mkdirat): Declare.
13264
13265         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
13266
13267         * lib/openat.h (openat_permissive): Declare.
13268         (openat_ro): Define.
13269
13270         * lib/openat.c (EXPECTED_ERRNO): New macro.
13271         (openat_permissive): New function -- used in remove.c rewrite.
13272         (all functions): Set errno just before returning, only if there
13273         was an actual failure.
13274         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
13275
13276         Emulate openat-family functions using Linux's procfs, if possible.
13277         Idea and some code based on Ulrich Drepper's glibc changes.
13278
13279         * lib/openat.c: (BUILD_PROC_NAME): New macro.
13280         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
13281         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
13282         before falling back on save_cwd and restore_cwd.
13283         (fdopendir, fstatat, unlinkat): Likewise.
13284
13285         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
13286         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
13287
13288         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
13289         as second argument to va_arg.  Otherwise, some versions of gcc
13290         warn that `if this code is reached, the program will abort'.
13291
13292 2006-01-09  Jim Meyering  <jim@meyering.net>
13293
13294         Sync from coreutils.
13295         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
13296         Require openat-priv.h.
13297
13298 2006-01-09  Bruno Haible  <bruno@clisp.org>
13299
13300         * modules/strnlen (Include): Use strnlen.h.
13301
13302 2006-01-09  Bruno Haible  <bruno@clisp.org>
13303
13304         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
13305
13306 2006-01-09  Bruno Haible  <bruno@clisp.org>
13307
13308         * lib/sysexit_.h (EX_OK): New macro.
13309         Suggested by Martin Lambers <marlam@marlam.de>.
13310
13311 2006-01-09  Bruno Haible  <bruno@clisp.org>
13312
13313         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
13314         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
13315
13316 2006-01-09  Bruno Haible  <bruno@clisp.org>
13317
13318         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
13319         numbers.
13320
13321 2006-01-09  Bruno Haible  <bruno@clisp.org>
13322
13323         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
13324         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
13325         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
13326         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
13327
13328 2006-01-09  Bruno Haible  <bruno@clisp.org>
13329
13330         * build-aux/javacomp.sh.in: New file, moved from lib/.
13331         * modules/javacomp-script (Files): Update.
13332         (configure.ac): Add AC_CONFIG_FILES invocation.
13333         (EXTRA_DIST): Remove variable.
13334
13335         * build-aux/javaexec.sh.in: New file, moved from lib/.
13336         * modules/javaexec (Files): Update.
13337         (configure.ac): Add AC_CONFIG_FILES invocation.
13338         (EXTRA_DIST): Remove javaexec.sh.in.
13339
13340         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
13341         * modules/csharpcomp-script (Files): Update.
13342         (configure.ac): Add AC_CONFIG_FILES invocation.
13343         (EXTRA_DIST): Remove variable.
13344
13345         * build-aux/csharpexec.sh.in: New file, moved from lib/.
13346         * modules/csharpexec (Files): Update.
13347         (configure.ac): Add AC_CONFIG_FILES invocation.
13348         (EXTRA_DIST): Remove csharpexec.sh.in.
13349
13350 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
13351
13352         Sync from coreutils.
13353
13354         Add POSIX ACL support
13355         * lib/acl.h (copy_acl, set_acl): Add declarations.
13356         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
13357         systems other than Linux.
13358         (chmod_or_fchmod): New function: use fchmod when possible,
13359         and chmod otherwise.
13360         (file_has_acl): Add a POSIX ACL implementation, with a
13361         Linux-specific subcase.
13362         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
13363         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
13364         acls are unsupported.
13365         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
13366         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
13367         are unsupported.
13368
13369 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
13370
13371         Sync from coreutils.
13372         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
13373
13374 2006-01-07  Bruno Haible  <bruno@clisp.org>
13375
13376         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
13377         gl_EARLY.
13378
13379 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13380
13381         * lib/strftime.c (tzname): Don't declare if it is already #defined.
13382         Problem reported for Mingw by Mark Junker.
13383
13384 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13385
13386         * README: Gnulib normally doesn't generate a tarball.
13387
13388 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13389
13390         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
13391         long int, not int, for nanosecond counts, so that people who are
13392         used to POSIX struct timespec won't be surprised.  Reported by Jim
13393         Meyering.
13394
13395 2005-12-28  Bruno Haible  <bruno@clisp.org>
13396
13397         * build-aux/config.rpath: Update from GNU gettext.
13398
13399 2005-12-16  Jim Meyering  <jim@meyering.net>
13400
13401         * modules/fprintftime: New module.
13402         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
13403
13404 2005-12-16  Jim Meyering  <jim@meyering.net>
13405
13406         * m4/fprintftime.m4: New file.
13407
13408 2005-12-16  Jim Meyering  <jim@meyering.net>
13409
13410         * lib/fprintftime.c, lib/fprintftime.h: New files.
13411
13412 2005-12-15  Simon Josefsson  <jas@extundo.com>
13413
13414         * modules/socklen (configure.ac): Fix M4 macro name, to align with
13415         new m4/socklen.m4.
13416
13417 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13418
13419         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
13420         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
13421
13422 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13423
13424         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
13425         * lib/argp-help.c (fill_in_uparams): Check if the constructed
13426         struct uparams is valid. Fall back to the default values if it is
13427         not.
13428
13429 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13430
13431         * modules/argp (Files): Add argp-pin.c
13432         (Depends-on): dirname
13433         (lib_SOURCES): Add argp-pin.c
13434
13435 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13436
13437         * m4/argp.m4:  Check if program_invocation_name and
13438         program_invocation_short_name are declared and define appropriate
13439         macros if they are not.
13440
13441 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13442
13443         * lib/argp-help.c (__argp_base_name): New function
13444         (__argp_short_program_name): Rewrite using __argp_base_name
13445         * lib/argp-namefrob.h: Define program_invocation_name and
13446         program_invocation_short_name if requested
13447         (__argp_base_name): Add prototype
13448         * lib/argp-parse.c (argp_def): Use gettext wrappers
13449         (argp_default_parser): Use __argp_base_name
13450         * lib/argp-pin.c: New file. Defines program_invocation_name and
13451         program_invocation_short_name on systems that lack them.
13452
13453 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13454
13455         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
13456         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
13457         porting problem reported by Georg Schwarz in
13458         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
13459
13460 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13461
13462         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
13463         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
13464         porting problem reported by Georg Schwarz in
13465         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
13466
13467 2005-12-05  Bruno Haible  <bruno@clisp.org>
13468
13469         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
13470         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
13471         Reported by Mark Junker <mjscod@gmx.de>.
13472
13473 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
13476         Use implementation from Albert Chin, with some
13477         comments/corrections by Stepan Kasal and myself.
13478
13479 2005-12-02  Bruno Haible  <bruno@clisp.org>
13480
13481         * gnulib-tool (func_import): Accept GPLed build tool modules when
13482         --lgpl is given.
13483         * modules/csharpcomp-script: New file.
13484         * modules/csharpcomp: Depend on it.
13485         * modules/javacomp-script: New file.
13486         * modules/javacomp: Depend on it.
13487         Suggested by Simon Josefsson.
13488
13489 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13490
13491         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
13492         statement, to work around an HP-UX 10.20 compiler bug reported by
13493         Peter O'Gorman.
13494
13495 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
13496
13497         * modules/savedir (Depends-on): Add openat.
13498
13499 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
13500
13501         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
13502         (uintmax_t) [defined uintmax_t]: Do not declare.
13503         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
13504         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
13505         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
13506         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
13507         sake of portability to weird hosts that C allows (though we don't
13508         know of any practical examples).
13509
13510         * lib/savedir.h (fdsavedir): New decl.
13511         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
13512         contains most of the former guts of savedir.
13513         (savedir): Use savedirstream.
13514         Include "openat.h".
13515
13516 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13517
13518         * modules/obstack (Files): Add m4/ulonglong.m4.
13519         Problem reported by Davide Angelocola.
13520
13521 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13522
13523         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
13524         coreutils no longer futzes with rounding modes.
13525
13526 2005-11-14  Jim Meyering  <jim@meyering.net>
13527
13528         * lib/mkstemp-safer.c: Include <config.h>, required for possible
13529         replacement of mkstemp.
13530
13531 2005-11-10  Simon Josefsson  <jas@extundo.com>
13532
13533         * lib/readline.c: Remove EOL.
13534
13535 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13536
13537         * modules/gethrxtime (Depends-on): Add gettime.
13538
13539 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13540
13541         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
13542         or gettimeofday; no longer needed.
13543
13544 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13545
13546         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
13547         time business.
13548         (gethrxtime) [! (HAVE_NANOUPTIME
13549         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
13550         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
13551         our own approximation.
13552
13553 2005-11-08  Eric Blake  <ebb9@byu.net>
13554
13555         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
13556
13557 2005-11-08  Eric Blake  <ebb9@byu.net>
13558
13559         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
13560
13561 2005-11-04  Bruno Haible  <bruno@clisp.org>
13562
13563         * gnulib-tool: Implement --update mode.
13564
13565 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13566
13567         Fix porting problem reported by Theodoros V. Kalamatianos.
13568         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
13569         Don't assume that futimes failing means we must fail.
13570
13571 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13572
13573         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
13574         variables to suggest the intended function of the PATH_MAX check.
13575
13576 2005-10-30  Kean Johnston  <jkj@sco.com>
13577
13578         Trivial changes to support SCO systems.
13579         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
13580         as PATH_MAX.
13581         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
13582         where __ptr is null when no I/O is pending.
13583
13584 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13585
13586         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
13587         leave errno alone.  Problem reported by Dmitry V. Levin.
13588
13589 2005-10-28  Simon Josefsson  <jas@extundo.com>
13590
13591         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
13592         Test more.
13593
13594         * tests/test-gc-md2.c, tests/test-md2.c: New files.
13595
13596         * modules/md2, modules/md2-tests: New files.
13597
13598 2005-10-28  Simon Josefsson  <jas@extundo.com>
13599
13600         * m4/inet_ntop.m4: More tests.
13601
13602         * m4/gc-md2.m4, md2.m4: New file.
13603
13604 2005-10-28  Simon Josefsson  <jas@extundo.com>
13605
13606         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
13607         "restrict" keywords, as per POSIX.  Protect the function
13608         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
13609         Don't use K&R prototypes.  Check the sprintf return values.
13610         Re-define EAFNOSUPPORT if not present.  Indent.
13611
13612         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
13613         suggested by Bruno Haible <bruno@clisp.org>.
13614
13615         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
13616
13617         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
13618
13619         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
13620         libgcrypt).
13621
13622         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
13623
13624         * lib/md2.h, lib/md2.c: New files.
13625
13626 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
13627
13628         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
13629         errno alone.  Problem reported by Frederic Jolliton.
13630
13631 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
13632
13633         * modules/verify (License): Change from GPL to LGPL.  This is a
13634         tiny module and there are apparently near-equivalents that are
13635         under the BSD license.
13636
13637 2005-10-24  Simon Josefsson  <jas@extundo.com>
13638
13639         * modules/sha1: Relicense to LGPL.
13640
13641 2005-10-24  Simon Josefsson  <jas@extundo.com>
13642
13643         * lib/md4.h: Shrink buffer size, now that we changed the type.
13644
13645 2005-10-23  Simon Josefsson  <jas@extundo.com>
13646
13647         * gnulib-tool (func_import): Fix --tests-base.
13648
13649 2005-10-22  Simon Josefsson  <jas@extundo.com>
13650
13651         * modules/arcfour (Depends-on): Need stdint.
13652
13653 2005-10-22  Simon Josefsson  <jas@extundo.com>
13654
13655         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
13656         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
13657
13658 2005-10-22  Simon Josefsson  <jas@extundo.com>
13659
13660         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
13661         suggested by Bruno Haible <bruno@clisp.org>.
13662
13663 2005-10-22  Simon Josefsson  <jas@extundo.com>
13664
13665         * lib/crc.h: Include stddef.h, for size_t.
13666
13667 2005-10-22  Simon Josefsson  <jas@extundo.com>
13668
13669         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
13670         arcfour_context struct (simplify test vector testing in GNU
13671         Shishi).
13672
13673 2005-10-21  Simon Josefsson  <jas@extundo.com>
13674
13675         * modules/des, modules/des-tests: New files.
13676
13677         * modules/gc-des, modules/gc-des-tests: New files.
13678
13679         * tests/test-des.c, tests/test-gc-des.c: New file.
13680
13681 2005-10-21  Simon Josefsson  <jas@extundo.com>
13682
13683         * modules/arctwo, modules/arctwo-tests: New files.
13684
13685         * tests/test-arctwo.c: New file.
13686
13687         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
13688
13689         * tests/test-gc-arctwo.c: New file.
13690
13691 2005-10-21  Simon Josefsson  <jas@extundo.com>
13692
13693         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
13694         Bruno Haible <bruno@clisp.org>.
13695
13696         * m4/gc-des.m4: New file.
13697
13698 2005-10-21  Simon Josefsson  <jas@extundo.com>
13699
13700         * m4/arctwo.m4: New file.
13701
13702         * m4/gc-arctwo.m4: New file.
13703
13704 2005-10-21  Simon Josefsson  <jas@extundo.com>
13705
13706         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
13707         block.
13708
13709 2005-10-21  Simon Josefsson  <jas@extundo.com>
13710
13711         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
13712         <bruno@clisp.org>.
13713
13714         * lib/hmac-sha1.c (hmac_sha1): Likewise.
13715
13716         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
13717         Bruno Haible <bruno@clisp.org>.
13718
13719         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
13720         <bruno@clisp.org>.
13721
13722 2005-10-21  Simon Josefsson  <jas@extundo.com>
13723
13724         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
13725
13726 2005-10-21  Simon Josefsson  <jas@extundo.com>
13727
13728         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
13729
13730 2005-10-21  Simon Josefsson  <jas@extundo.com>
13731
13732         * lib/des.h, lib/des.c: New files.
13733
13734         * lib/gc-gnulib.c: Support DES.c
13735
13736 2005-10-21  Simon Josefsson  <jas@extundo.com>
13737
13738         * lib/arctwo.h, lib/arctwo.c: New files.
13739
13740         * lib/gc-gnulib.c: Support ARCTWO.
13741
13742 2005-10-21  Simon Josefsson  <jas@extundo.com>
13743
13744         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
13745         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13746
13747 2005-10-21  Simon Josefsson  <jas@extundo.com>
13748
13749         * gnulib-tool (func_import, func_create_testdir): Define automake
13750         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
13751         Makefile.am snippet),
13752         suggested by Bruno Haible <bruno@clisp.org>.
13753
13754         * modules/gc (Makefile.am): Use it.
13755
13756 2005-10-21  Bruno Haible  <bruno@clisp.org>
13757
13758         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
13759         patch.
13760
13761 2005-10-19  Simon Josefsson  <jas@extundo.com>
13762
13763         * tests/test-gc-rijndael.c: New file.
13764
13765         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
13766
13767 2005-10-19  Simon Josefsson  <jas@extundo.com>
13768
13769         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
13770         interface too.
13771
13772 2005-10-19  Simon Josefsson  <jas@extundo.com>
13773
13774         * tests/test-gc-arcfour.c: New file.
13775
13776         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
13777
13778 2005-10-19  Simon Josefsson  <jas@extundo.com>
13779
13780         * modules/gc-md4, modules/gc-md4-tests: New file.
13781
13782         * tests/test-gc-md4.c: New file.
13783
13784 2005-10-19  Simon Josefsson  <jas@extundo.com>
13785
13786         * m4/gc-md4.m4: New file.
13787
13788 2005-10-19  Simon Josefsson  <jas@extundo.com>
13789
13790         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
13791         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
13792         <kasal@ucw.cz>.
13793
13794 2005-10-19  Simon Josefsson  <jas@extundo.com>
13795
13796         * m4/gc-arcfour.m4: New file.
13797
13798         * m4/gc-rijndael.m4: New file.
13799
13800 2005-10-19  Simon Josefsson  <jas@extundo.com>
13801
13802         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
13803
13804 2005-10-19  Simon Josefsson  <jas@extundo.com>
13805
13806         * lib/gc-gnulib.c: Support ARCFOUR.
13807
13808 2005-10-19  Simon Josefsson  <jas@extundo.com>
13809
13810         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
13811         support.
13812
13813         * lib/gc.h: Add ECB enum type.
13814
13815         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
13816
13817 2005-10-18  Simon Josefsson  <jas@extundo.com>
13818
13819         * tests/test-md5.c: New file.
13820
13821         * modules/md5-tests: New file.
13822
13823 2005-10-18  Simon Josefsson  <jas@extundo.com>
13824
13825         * tests/test-md4.c: New file.
13826
13827         * modules/md4, modules/md4-tests: New files.
13828
13829 2005-10-18  Simon Josefsson  <jas@extundo.com>
13830
13831         * m4/md4.m4: New file.
13832
13833 2005-10-18  Simon Josefsson  <jas@extundo.com>
13834
13835         * lib/md4.h, lib/md4.c: New files, based on md5.?.
13836
13837 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
13838
13839         * gnulib-tool (func_create_testdir): Omit the second check whether
13840         BUILT_SOURCES in nonempty.
13841
13842 2005-10-17  Simon Josefsson  <jas@extundo.com>
13843
13844         * tests/test-rijndael.c: New file.
13845
13846 2005-10-17  Simon Josefsson  <jas@extundo.com>
13847
13848         * modules/sha1: Depend on stdint instead of md5.
13849
13850         * modules/md5: Depend on stdint, remove uint32_t.
13851
13852 2005-10-17  Simon Josefsson  <jas@extundo.com>
13853
13854         * modules/gc-sha1-tests: New file.
13855
13856         * tests/test-gc-sha1.c: New file.
13857
13858 2005-10-17  Simon Josefsson  <jas@extundo.com>
13859
13860         * m4/md5.m4: Remove call to uint32_t.m4.
13861
13862 2005-10-17  Simon Josefsson  <jas@extundo.com>
13863
13864         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
13865
13866         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
13867         md5.h.
13868
13869         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
13870
13871         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
13872
13873 2005-10-17  Simon Josefsson  <jas@extundo.com>
13874
13875         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
13876
13877 2005-10-17  Simon Josefsson  <jas@extundo.com>
13878
13879         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
13880
13881 2005-10-17  Simon Josefsson  <jas@extundo.com>
13882
13883         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
13884
13885         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
13886
13887 2005-10-17  Bruno Haible  <bruno@clisp.org>
13888
13889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
13890         that it can also be used in a test.
13891
13892 2005-10-16  Bruno Haible  <bruno@clisp.org>
13893
13894         * gnulib-tool (func_emit_tests_Makefile_am): Also define
13895         TESTS_ENVIRONMENT, so that individual tests can augment it.
13896
13897         * gnulib-tool (func_create_testdir): Use an intermediate target for
13898         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
13899         macros, like $(ALLOCA_H), which cannot be passed through the command
13900         line.
13901
13902 2005-10-15  Simon Josefsson  <jas@extundo.com>
13903
13904         * modules/rijndael-tests: New file.
13905
13906         * modules/rijndael: New file.
13907
13908 2005-10-15  Simon Josefsson  <jas@extundo.com>
13909
13910         * m4/rijndael.m4: New file.
13911
13912 2005-10-15  Simon Josefsson  <jas@extundo.com>
13913
13914         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
13915
13916         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
13917
13918 2005-10-14  Simon Josefsson  <jas@extundo.com>
13919
13920         * tests/test-arcfour.c: New file.
13921
13922         * modules/arcfour, modules/arcfour-tests: New files.
13923
13924 2005-10-14  Simon Josefsson  <jas@extundo.com>
13925
13926         * m4/arcfour.m4: New file.
13927
13928 2005-10-14  Simon Josefsson  <jas@extundo.com>
13929
13930         * lib/arcfour.h, lib/arcfour.c: New files.
13931
13932 2005-10-14  Roland McGrath  <roland@redhat.com>
13933
13934         Import from libc.  [BZ #1331]
13935         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
13936         macro argument.
13937         Reported by Matej Vela <vela@debian.org>.
13938
13939 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
13940
13941         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
13942         include <wchar.h>; no longer needed.
13943
13944 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
13945
13946         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
13947
13948 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
13949         and  Ulrich Drepper  <drepper@redhat.com>
13950
13951         Import from libc.
13952         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
13953         instead of inline stream orientation test and two separate
13954         function calls.  Pay no attention to USE_IN_LIBIO.
13955
13956 2005-10-13  Simon Josefsson  <jas@extundo.com>
13957
13958         * modules/gc-hmac-md5-tests: New file.
13959
13960         * tests/test-gc-hmac-sha1.c: New file.
13961
13962         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
13963
13964         * modules/gc-hmac-md5-tests: New file.
13965
13966         * tests/test-gc-md5.c: New file.
13967
13968         * modules/gc-md5-tests: New file.
13969
13970 2005-10-13  Simon Josefsson  <jas@extundo.com>
13971
13972         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
13973         Move memory allocation outside of loop.
13974
13975 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13976
13977         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
13978         intermediate directory is in a read-only file system.  Problem
13979         reported by Eric Blake.
13980
13981 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
13982
13983         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
13984
13985 2005-10-12  Simon Josefsson  <jas@extundo.com>
13986
13987         * tests/test-hmac-sha1.c: New file.
13988
13989         * modules/hmac-sha1-tests: New file.
13990
13991         * modules/hmac-sha1: New file.
13992
13993 2005-10-12  Simon Josefsson  <jas@extundo.com>
13994
13995         * modules/gc-sha1: New file.
13996
13997 2005-10-12  Simon Josefsson  <jas@extundo.com>
13998
13999         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
14000
14001         * tests/test-gc-pbkdf2-sha1.c: New file.
14002
14003 2005-10-12  Simon Josefsson  <jas@extundo.com>
14004
14005         * modules/gc-md5, modules/gc-hmac-md5: New files.
14006
14007         * modules/gc (Files): Remove md5, memxor and hmac files.
14008
14009 2005-10-12  Simon Josefsson  <jas@extundo.com>
14010
14011         * m4/gc-pbkdf2-sha1.m4: New file.
14012
14013         * m4/gc-hmac-sha1.m4: New file.
14014
14015         * m4/gc-sha1: New file.
14016
14017         * m4/hmac-sha1.m4: New file.
14018
14019 2005-10-12  Simon Josefsson  <jas@extundo.com>
14020
14021         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
14022
14023         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
14024
14025 2005-10-12  Simon Josefsson  <jas@extundo.com>
14026
14027         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
14028         suggested by Bruno Haible <bruno@clisp.org>.
14029
14030 2005-10-12  Simon Josefsson  <jas@extundo.com>
14031
14032         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
14033
14034 2005-10-12  Simon Josefsson  <jas@extundo.com>
14035
14036         * lib/gc-pbkdf2-sha1.c: New file.
14037
14038         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
14039
14040 2005-10-12  Simon Josefsson  <jas@extundo.com>
14041
14042         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
14043
14044         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
14045
14046 2005-10-12  Simon Josefsson  <jas@extundo.com>
14047
14048         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
14049         GC_USE_HMAC_MD5, respectively.
14050
14051         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
14052         (gc_md5): Fix typo.
14053
14054         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
14055
14056         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
14057
14058         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
14059
14060 2005-10-12  Bruno Haible  <bruno@clisp.org>
14061
14062         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
14063         Reported by Stepan Kasal <kasal@ucw.cz>.
14064
14065 2005-10-11  Simon Josefsson  <jas@extundo.com>
14066
14067         * tests/test-crc.c: New file.
14068
14069         * modules/crc, modules/crc-tests: New files.
14070
14071 2005-10-11  Simon Josefsson  <jas@extundo.com>
14072
14073         * m4/crc.m4: New file.
14074
14075 2005-10-11  Simon Josefsson  <jas@extundo.com>
14076
14077         * lib/gc.h: Add gc_hash and gc_hash_buffer.
14078
14079         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
14080
14081         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
14082
14083 2005-10-11  Simon Josefsson  <jas@extundo.com>
14084
14085         * lib/crc.h, lib/crc.c: New files.
14086
14087         * lib/gc.h (gc_hash_buffer): Add doc.
14088
14089 2005-10-11  Bruno Haible  <bruno@clisp.org>
14090
14091         * modules/c-strcasestr: New file.
14092         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
14093
14094 2005-10-11  Bruno Haible  <bruno@clisp.org>
14095
14096         * modules/c-strcase: New file.
14097         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
14098
14099 2005-10-11  Bruno Haible  <bruno@clisp.org>
14100
14101         * lib/strcasecmp.c: Include limits.h.
14102         (strcasecmp): Avoid integer overflow on exotic platforms.
14103         * lib/strncasecmp.c: Include limits.h.
14104         (strncasecmp): Avoid integer overflow on exotic platforms.
14105         Reported by Paul Eggert.
14106
14107 2005-10-11  Bruno Haible  <bruno@clisp.org>
14108
14109         * lib/c-strcasestr.h: New file, from GNU gettext.
14110         * lib/c-strcasestr.c: New file, from GNU gettext.
14111
14112 2005-10-11  Bruno Haible  <bruno@clisp.org>
14113
14114         * lib/c-strcase.h: New file, from GNU gettext.
14115         * lib/c-strcasecmp.c: New file, from GNU gettext.
14116         * lib/c-strncasecmp.c: New file, from GNU gettext.
14117
14118 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14119
14120         * modules/mempcpy (License): GPL -> LGPL.
14121         * modules/strchrnul (License): Likewise.
14122         * modules/sysexits (License): Likewise.
14123
14124 2005-10-08  Simon Josefsson  <jas@extundo.com>
14125
14126         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
14127
14128 2005-10-07  Simon Josefsson  <jas@extundo.com>
14129
14130         * m4/memxor.m4: Remove gl_C_RESTRICT call.
14131
14132 2005-10-06  Simon Josefsson  <jas@extundo.com>
14133
14134         * tests/test-hmac-md5.c: New file.
14135
14136         * modules/hmac-md5-tests: New file.
14137
14138         * modules/hmac-md5: New file.
14139
14140 2005-10-06  Simon Josefsson  <jas@extundo.com>
14141
14142         * m4/hmac-md5.m4: New file.
14143
14144         * m4/memxor.m4: Require gl_C_RESTRICT.
14145
14146 2005-10-06  Simon Josefsson  <jas@extundo.com>
14147
14148         * lib/memxor.c (memxor): Avoid casts and warnings.
14149
14150 2005-10-06  Simon Josefsson  <jas@extundo.com>
14151
14152         * lib/hmac-md5.c: New file.
14153
14154         * lib/hmac.h: New file.
14155
14156 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14157
14158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
14159         promotes to int, not unsigned int, to catch the AIX 5.3
14160         compiler bug.
14161
14162 2005-10-05  Simon Josefsson  <jas@extundo.com>
14163
14164         * modules/memxor: New file.
14165
14166         * modules/iconv (Files): Move config.rpath to havelib, it is used
14167         there.
14168
14169         * modules/havelib (Files): Add config.rpath.
14170
14171 2005-10-05  Simon Josefsson  <jas@extundo.com>
14172
14173         * m4/memxor.m4: New file.
14174
14175 2005-10-05  Simon Josefsson  <jas@extundo.com>
14176
14177         * lib/memxor.c (memxor): Fix compiler error.
14178
14179         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
14180         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
14181
14182         * lib/memxor.h, lib/memxor.c: New files.
14183
14184         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
14185         we assume all systems have it, suggested by Jim Meyering
14186         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
14187         any systems lack sys/socket.h; mingw32 is known to lack it, but we
14188         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
14189         same reasons.
14190
14191 2005-10-05  Simon Josefsson  <jas@extundo.com>
14192
14193         * config/srclist.txt: Add glibc bug 1423 for md5.h.
14194
14195 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14196
14197         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
14198         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
14199         needed, since the source code now assumes these .h files.
14200
14201 2005-10-05  Derek Price  <derek@ximbiot.com>
14202
14203         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
14204
14205 2005-10-05  Bruno Haible  <bruno@clisp.org>
14206
14207         * modules/stdint (License): Change to LGPL.
14208
14209 2005-10-04  Simon Josefsson  <jas@extundo.com>
14210
14211         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
14212         D. Baushke" <mdb@gnu.org>.
14213
14214 2005-10-04  Bruno Haible  <bruno@clisp.org>
14215
14216         * lib/verify.h (verify_true): Provide alternative definition for C++.
14217
14218 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14219
14220         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
14221         (SSIZE_MAX): New macro, if not already defined.
14222         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
14223         than 2 GiB.
14224
14225 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         Sync from coreutils.
14228         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
14229         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
14230         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
14231         ULLONG_MAX doesn't work with 2.7.2.1.
14232
14233 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14234
14235         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
14236         From Ben Pfaff.
14237
14238         * modules/exclude (Depends-on): Depend on verify.
14239         * modules/strtoimax (Depends-on): Likewise.
14240         * modules/utimecmp (Depends-on): Likewise.
14241
14242 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14243
14244         * lib/exclude.c: Include verify.h.
14245         (verify): Remove.  All callers changed to use verify.h's version.
14246         * lib/strtoimax.c: Likewise.
14247         * lib/utimecmp.c: Likewis.e
14248
14249         Sync from coreutils.
14250         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
14251         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
14252         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
14253         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
14254         bother returning ENOSYS if settimeofday or stime fails; just let
14255         them return whatever errno they want to return.
14256         * lib/utimens.c: Include unistd.h, for dup2.
14257         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
14258         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
14259
14260 2005-10-02  Jim Meyering  <jim@meyering.net>
14261
14262         Sync from coreutils.
14263         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
14264         from glibc-2.2.5 that fails for read-only files.
14265
14266 2005-10-02  Jim Meyering  <jim@meyering.net>
14267
14268         Sync from coreutils.
14269         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
14270         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
14271         `#if HAVE_CONFIG_H'.
14272         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
14273         Remove AT_FDCWD test.
14274         Do not consume the fd unless successful.
14275         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
14276         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
14277         block, so that we don't even try to compile it if settimeofday is
14278         available.  This works around a compilation failure on OSF1 V5.1,
14279         due to stime requiring a `long int*' while tv_sec is `int'.
14280
14281 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
14282
14283         Sync from coreutils.
14284         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
14285         against `yes', rather than just testing for nonempty.
14286
14287 2005-10-01  Simon Josefsson  <jas@extundo.com>
14288
14289         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
14290         and Darwin.
14291
14292         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
14293         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
14294         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
14295         freeaddrinfo and gai_strerror are declared by the POSIX headers.
14296         Check if struct addrinfo is declared.
14297
14298 2005-10-01  Simon Josefsson  <jas@extundo.com>
14299
14300         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
14301         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
14302         AI_* and EAI_* definitions.  Protect function declarations.
14303
14304 2005-10-01  Jim Meyering  <jim@meyering.net>
14305
14306         Sync from coreutils.
14307
14308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
14309         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
14310         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
14311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
14312         in the inet and nsl libraries.  Required on Solaris 5.7.
14313
14314 2005-10-01  Jim Meyering  <jim@meyering.net>
14315
14316         Sync from coreutils.
14317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
14318         in the inet and nsl libraries.  Required on Solaris 5.7.
14319
14320 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
14321
14322         * lib/getdelim.c (getdelim): Remove unused variables.
14323
14324 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
14325
14326         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
14327         so that the code works even with ancient cpp.  Portability problem
14328         with GCC 2.7.2.1 reported by Thomas M.Ott.
14329
14330 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
14331
14332         * modules/regex (Depends-on): Add strcase.
14333
14334         * modules/gethostname (Licence): Change from GPL to LGPL, since
14335         gethostname.c is a trivial implementation of a standard library
14336         function.
14337         * modules/poll (License): Change from GPL to LGPL, since it's
14338         derived from LGPL code.
14339
14340 2005-09-27  Jim Meyering  <jim@meyering.net>
14341
14342         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
14343         HAVE_CONFIG_H.
14344
14345         * lib/intprops.h (signed_type_or_expr__): Define.
14346         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
14347         for unsigned types.
14348
14349 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
14350
14351         * lib/verify.h (verify_expr): Remove, replacing with:
14352         (verify_true): New macro that returns true instead of void.
14353         (verify_type__): Remove.
14354         (verify): Use verify_true rather than verify_type__.
14355
14356 2005-09-26  Bruno Haible  <bruno@clisp.org>
14357
14358         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
14359         is necessary.
14360         (lib_SOURCES): Remove mbchar.c.
14361         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
14362         (Files): Add m4/mbrtowc.m4.
14363         * modules/mbiter: Likewise.
14364         * modules/mbuiter: Likewise.
14365
14366 2005-09-26  Bruno Haible  <bruno@clisp.org>
14367
14368         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
14369         compile mbchar.c if they are not both present.
14370         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
14371         * m4/mbiter.m4 (gl_MBITER): Likewise.
14372         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
14373         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
14374         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
14375
14376 2005-09-25  Jim Meyering  <jim@meyering.net>
14377
14378         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
14379         also uses socklen_t.
14380
14381 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
14382
14383         * lib/utimens.c (ENOSYS): Define if not already defined.
14384         (futimens): Support having a null PATH if the file descriptor
14385         is nonnegative.
14386
14387         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
14388         Remove.
14389         (__attribute): Define to empty unless GCC 3.1 or later.
14390         This works around a core dump on OpenBSD 3.4, which has GCC
14391         2.95.3, which dumps core when given __attribute__(()).  It also
14392         simplifies other tests, since we really don't want to bother with
14393         worrying about which ancient version of GCC supported what.
14394         Original problem reported by Yoann Vandoorselaere, with part of
14395         the fix suggested by Derek Price.
14396
14397 2005-09-24  Jim Meyering  <jim@meyering.net>
14398
14399         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
14400         so we can once again use a positive bitfield width of 1 -- now we
14401         don't have to explain why we were using a bitfield width of 2.
14402
14403 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14404
14405         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
14406         and similarly for the other external symbols.  Problem reported
14407         by James Gallager.
14408
14409         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
14410         bug reported by Jim Meyering.
14411
14412         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
14413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
14414         not needed, since socklen is a prerequisite module.
14415
14416 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14417
14418         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
14419         Problem reported by Eric Blake.
14420         (getaddrinfo): Initialize se so that it's not garbage.
14421         Redo internal storage allocation so that it doesn't make unportable
14422         assumptions about alignment.
14423         Fix a memory leak.
14424
14425         * lib/utimens.c (futimens): Use futimesat if available.
14426         Prefer it to futimes since it doesn't have the futimes bug.
14427
14428         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
14429         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
14430         Instead, declare a function that returns a pointer to an array,
14431         and use verify_type__ to declare the size of the array.
14432         Problem and germ of a solution reported by Bruno Haible.
14433         (verify_type__): Use 2, not 1, for bitfield size, to avoid
14434         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
14435
14436 2005-09-23  Jim Meyering  <jim@meyering.net>
14437
14438         Sync from coreutils.
14439         Correct build failure (socklen_t not defined) on at least
14440         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
14441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
14442
14443 2005-09-23  Jim Meyering  <jim@meyering.net>
14444
14445         * modules/getaddrinfo (Depends-on): Add socklen.
14446
14447 2005-09-23  Bruno Haible  <bruno@clisp.org>
14448
14449         * tests/test-verify.c: New file.
14450
14451 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14452
14453         Sync from coreutils.
14454
14455         * modules/argmatch (Depends-on): Add verify.
14456         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
14457         unistd-safer.
14458         * modules/save-cwd (Depends-on): Likewise.
14459
14460         * modules/openat (Files): Add lib/openat-die.c.
14461         (Depends-on): Remove error, exitfail.
14462         Add dirname.
14463
14464         * modules/verify: New file.
14465         * MODULES.html.sh (Diagnostics <assert.h>): New section,
14466         with "verify" module.
14467
14468 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14469
14470         Sync from coreutils.
14471
14472         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
14473         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
14474         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
14475         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
14476         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
14477         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
14478         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
14479         Don't bother checking for string.h, stdlib.h, unistd.h.
14480         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
14481         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
14482         module's job.
14483         * m4/jm-macros.m4 (gl_MACROS): Likewise.
14484         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
14485
14486         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
14487         (gl_GETDATE): Use it.
14488
14489         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
14490
14491 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14492
14493         Sync from coreutils.
14494
14495         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
14496         stat-time.h.
14497         * lib/argmatch.h: Include verify.h
14498         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
14499         (ARGMATCH_ASSERT): Remove; unused.
14500         * lib/canonicalize.c: Assume STDC_HEADERS.
14501         * lib/exclude.c: Include "strcase.h".
14502         * lib/regex_internal.h [!defined _LIBC]: Likewise.
14503         * lib/getusershell.c: Include stdio--.h rather than stdio.h
14504         and stdio-safer.h.
14505         (getusershell): Call fopen, not fopen_safer.
14506         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
14507         Do not include unistd-safer.h.
14508         (save_cwd): Don't call fd_safer; no longer needed
14509         now that we include fcntl--.h.
14510
14511         * lib/getdate.y (relative_time): New type.
14512         (RELATIVE_TIME_0): New constant.
14513         (parser_control): Use relative_time instead of doing it ourselves.
14514         (%union): Add new relative_time rel member.
14515         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
14516         Now typeless.
14517         (relunit, relunit_snumber): Now of type rel.
14518         (zone, rel, relunit, get_date): Adjust to above changes.
14519
14520         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
14521         Do not include unistd-safer.h.
14522         (getloadavg): Don't call fd_safer; no longer needed
14523         now that we include fcntl--.h.
14524
14525         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
14526         (make_dir_parents): Treat ENOSYS like EEXIST.
14527
14528         Improve quality of diagnostics on restore_cwd failure.
14529         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
14530         (make_dir_parents): Last arg is now int * (for errno), not bool *.
14531         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
14532         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
14533         each time through the loop.  Do not diagnose restore_cwd failure;
14534         that is the caller's job (and perhaps the caller does not care).
14535
14536         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
14537         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
14538         If the file already exists but is not a directory, don't bother
14539         to try to make its parents.
14540         Close potential file descriptor leak if we can't chdir("/") (!).
14541         Don't always return true if chdir($PWD) fails; return true only
14542         if the requested action was done successfully (except for the
14543         chdir($PWD)).
14544         Don't log final directory unless we actually made it.
14545         Refactor to avoid duplicate code to fix up permissions.
14546         Don't attempt to fix up parent permissions if chdir($PWD) fails.
14547
14548         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
14549         to make it a bit faster and (I hope) clearer.
14550         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
14551         Fix bug in formats like %2N.
14552
14553         * lib/verify.h: New file.
14554
14555 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14556
14557         Sync from coreutils.
14558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
14559
14560 2005-09-22  Jim Meyering  <jim@meyering.net>
14561
14562         Sync from coreutils.
14563
14564         * m4/lstat.m4 (gl_FUNC_LSTAT):
14565         Use AC_LIBSOURCES to require lstat.c and lstat.h.
14566         Remove obsolete comment.
14567         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
14568         * m4/xstrtod.m4: Likewise.
14569
14570         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
14571
14572 2005-09-22  Jim Meyering  <jim@meyering.net>
14573
14574         Sync from coreutils.
14575
14576         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
14577
14578         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
14579         the .tm_year member, since otherwise gcc-4.0 would now warn about
14580         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
14581
14582         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
14583         order to avoid an unsuppressible warning from gcc on 64-bit systems.
14584
14585         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
14586         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
14587         when run in a time zone for which daylight savings time is in effect
14588         for the starting date.
14589
14590         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
14591         stop us from restricting permissions of just-created absolute-named
14592         directories.
14593         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
14594         to restore initial working directory.
14595         * lib/mkdir-p.c (make_dir_parents): New parameter:
14596         different_working_dir, to tell caller if/when we change the working
14597         directory and are unable to return to the initial one.
14598         * lib/mkdir-p.h (make_dir_parents): Update prototype.
14599         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
14600         `return false'.  This fixes a bug introduced on 2004-07-30.
14601
14602         * lib/openat.c (fdopendir): Be sure to close the supplied
14603         file descriptor before returning.  This makes our replacement
14604         implementation a little closer to Solaris's, where fdopendir
14605         ties the file descriptor to the returned DIR* pointer.
14606         * lib/openat.c (unlinkat): New function.
14607         * lib/openat.h (unlinkat): Add prototype.
14608         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
14609         (openat_restore_fail): Rename from openat_restore_die.
14610         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
14611
14612         Provide an alternative to exiting immediately upon save_cwd or
14613         restore_cwd failure.  Now, an application can arrange e.g.,
14614         to perform a longjump in that case.
14615         * lib/openat.c: Include dirname.h.
14616         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
14617         (rpl_openat, fdopendir, fstatat): Call openat_save_die
14618         and openat_restore_die rather than calling error directly.
14619         Don't include "error.h" or "exitfail.h"; they're no longer needed.
14620
14621         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
14622         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
14623         define.
14624
14625         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
14626         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
14627                             int utc, int nanoseconds);
14628         Background:
14629         date should not have to allocate a megabyte of virtual memory to
14630         handle a format argument like +%1048575T.  When implemented with
14631         strftime, it must allocate such a buffer, use strftime to fill it
14632         in, print it, then free it.
14633         With fprintftime, it simply prints everything and exits.
14634         With no need for memory allocation, that's one fewer way to fail.
14635         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
14636         optional field width, not before, so we accept %9:z, not %:9z.
14637         (my_strftime): Be sure to use L_('x') for literals.
14638
14639         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
14640         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
14641         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
14642         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
14643         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
14644         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
14645         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
14646         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
14647         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
14648         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
14649         * lib/xgethostname.c, lib/xreadlink.c:
14650         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
14651
14652         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
14653         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
14654         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
14655         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
14656         and don't include <sys/file.h>).
14657
14658 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
14659
14660         Sync from coreutils.
14661
14662         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
14663         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
14664         [!LDAV_DONE]: Avoid unused variable warning.
14665
14666 2005-09-21  Bruno Haible  <bruno@clisp.org>
14667
14668         * lib/unicodeio.h (unicode_to_mb): New declaration.
14669
14670 2005-09-20  Derek Price  <derek@ximbiot.com>
14671
14672         * lib/getaddrinfo.c: Don't include <netdb.h> included from
14673         getaddrinfo.h.
14674
14675 2005-09-20  Bruno Haible  <bruno@clisp.org>
14676
14677         * gnulib-tool: Remove trailing slashes from the values specified for
14678         --source-base, --m4-base, --tests-base, --aux-dir.
14679         Suggested by Simon Josefsson <jas@extundo.com>.
14680
14681 2005-09-20  Bruno Haible  <bruno@clisp.org>
14682
14683         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
14684         func_modules_to_filelist, func_import, func_create_testdir): Make all
14685         sorting results locale-independent, so that gnulib-cache.m4 doesn't
14686         change when gnulib-tool is invoked in a different locale.
14687
14688 2005-09-19  Simon Josefsson  <jas@extundo.com>
14689
14690         * m4/socklen.m4: Fix typo.
14691
14692 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14693
14694         Use a consistent style for including <config.h>.
14695         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
14696         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
14697         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
14698         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
14699         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
14700         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
14701         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
14702         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
14703         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
14704         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
14705         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
14706         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
14707         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
14708         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
14709         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
14710         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
14711         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
14712         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
14713         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
14714         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
14715         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
14716         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
14717         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
14718         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
14719         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
14720         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
14721         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
14722         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
14723         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
14724         lib/xstrtoumax.c, lib/yesno.c:
14725         Standardize inclusion of config.h.
14726         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
14727         lib/inttostr.h:  Removed inclusion of config.h from header files.
14728         * lib/inttostr.c:  Adjusted in-tree users.
14729         * lib/timespec.h: Remove superfluous warning to include config.h.
14730         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
14731         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
14732         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
14733         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
14734         config.h with HAVE_CONFIG_H.
14735
14736 2005-09-19  Jim Meyering  <jim@meyering.net>
14737
14738         * modules/pathmax (License): Change to LGPL.
14739
14740 2005-09-19  Derek Price  <derek@ximbiot.com>
14741
14742         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
14743
14744 2005-09-19  Bruno Haible  <bruno@clisp.org>
14745
14746         * gnulib-tool (import): Provide default for --tests-base.
14747
14748 2005-09-19  Bruno Haible  <bruno@clisp.org>
14749
14750         * doc/quote.texi: New file, extracted from gnulib.texi.
14751         * doc/ctime.texi: New file, extracted from gnulib.texi.
14752         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
14753         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
14754         * doc/gnulib.texi: Include them.
14755
14756 2005-09-18  Bruno Haible  <bruno@clisp.org>
14757
14758         Portability fix.
14759         * gnulib-tool (func_readlink): New function.
14760         (func_ln_if_changed): Use it.
14761
14762 2005-09-18  Bruno Haible  <bruno@clisp.org>
14763
14764         * gnulib-tool: Support --with-tests also with --import.
14765         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
14766         (func_import): Use variables $testsbase and $inctests. Emit a
14767         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
14768         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
14769         SUBDIRS += $testsdir.
14770         (func_create_testdir): Update.
14771
14772 2005-09-18  Bruno Haible  <bruno@clisp.org>
14773
14774         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
14775         instead of $dry_run.
14776         (func_cp_if_changed, func_mv_if_changed): Remove functions.
14777         (func_ln_if_changed): Don't handle dry-run here.
14778         (func_import): In dry-run mode, detect more precisely which actions
14779         would be performed, and don't use "...ing" verbs.
14780
14781 2005-09-18  Bruno Haible  <bruno@clisp.org>
14782
14783         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
14784         (func_import): Use join on two temporary files instead of three nested
14785         loops, in order to determine which files are new or old.
14786
14787 2005-09-18  Bruno Haible  <bruno@clisp.org>
14788
14789         * gnulib-tool (func_import): Comment out code that spits out the
14790         new files with --dry-run.
14791
14792 2005-09-18  Bruno Haible  <bruno@clisp.org>
14793
14794         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
14795
14796 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14797
14798         * lib/stat-time.h: New file.
14799         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
14800         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
14801         in a different way.
14802         (timespec_cmp): New function.
14803         * lib/utimecmp.c: Include stat-time.h.
14804         (SYSCALL_RESOLUTION): Depend on whether various struct stat
14805         members exist, not on the obsolescent ST_MTIM_NSEC.
14806         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
14807
14808 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14809
14810         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
14811
14812 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14813
14814         * MODULES.html.sh (File system functions): Add stat-time.
14815         * modules/stat-time: New file.
14816         * modules/timespec (Files): Remove m4/st_mtim.m4; this
14817         is now done in a different way, by the stat-time module.
14818         * modules/utimecmp (Depends-on): Add stat-time.
14819
14820 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
14821
14822         * m4/st_mtim.m4: Remove.  Superseded by...
14823         * m4/stat-time.m4: New file.
14824         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
14825         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
14826
14827 2005-09-15  Derek Price  <derek@ximbiot.com>
14828
14829         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
14830
14831 2005-09-15  Derek Price  <derek@ximbiot.com>
14832
14833         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
14834         * lib/regex_internal.c: Ditto, using this...
14835         (__GNUC_PREREQ): ...new macro.
14836         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
14837         using...
14838         (__GNUC_PREREQ): ...this new macro.
14839
14840         * lib/strstr.h: Include string.h. Define strstr as a macro here.
14841
14842 2005-09-15  Derek Price  <derek@ximbiot.com>
14843             Paul Eggert  <eggert@cs.ucla.edu>
14844
14845         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
14846         changes, consolidating in...
14847         * lib/regex_internal.h: ...this file.
14848
14849 2005-09-13  Jim Meyering  <jim@meyering.net>
14850
14851         * lib/canon-host.c: Filter through gnu indent and reword comments
14852         slightly.
14853         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
14854
14855 2005-09-13  Derek Price  <derek@ximbiot.com>
14856
14857         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
14858         failure.
14859         Reported by Jim Meyering  <jim@meyering.net>.
14860
14861 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
14862
14863         * lib/base64.c: Typo.
14864         (base64_encode): Put b64str in initialized data section.
14865
14866 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14867
14868         Merge glibc and coreutils changes into gnulib, plus a few
14869         extra fixes.
14870         * lib/md5.c: Use #error rather than a string.
14871         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
14872         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
14873         (__attribute__): Define to empty for non recent-GCC.
14874         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
14875         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
14876         Renamed from their non-__ counterparts, with new macros replacing
14877         them if not _LIBC.  Add __THROW attribute.
14878         (rol): Remove.
14879         (struct md5_ctx): Align buffer if using GCC.
14880         * lib/sha1.h (struct sha1_ctx): Likewise.
14881         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
14882         The old name was backwards.
14883         (NOTSWAP): Remove; not used.
14884         (rol): New macro, moved here from md5.h.
14885         (sha1_process_block): Remove a FIXME that doesn't make sense.
14886
14887 2005-09-12  Derek Price  <derek@ximbiot.com>
14888
14889         Return usable errors from canon-host.
14890         * lib/canon-host.h: New file.
14891         * lib/canon-host.c (canon_host): Wrap...
14892         (canon_host_r): ...this new function, which now relies exclusively on
14893         getaddrinfo.
14894         (ch_strerror): New function.
14895         (last_cherror): New global.
14896         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
14897         interface.
14898         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
14899         void *.
14900         (freeaddrinfo): Free ai->ai_canonname when set.
14901
14902 2005-09-12  Derek Price  <derek@ximbiot.com>
14903
14904         Make canon-host require getaddrinfo.
14905         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
14906         AC_LIBSOURCE canon-host.h.  Call...
14907         (gl_PREREQ_CANON_HOST): ...this new function, which requires
14908         gl_GETADDRINFO.
14909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
14910
14911 2005-09-12  Derek Price  <derek@ximbiot.com>
14912
14913         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
14914         LGPL.
14915         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
14916
14917 2005-09-12  Derek Price  <derek@ximbiot.com>
14918
14919         * lib/gai_strerror.c: Include config.h when available.  Include
14920         getaddrinfo.h before other headers to test interface.
14921         Reported by Larry Jones <lawrence.jones@ugs.com>.
14922
14923 2005-09-12  Derek Price  <derek@ximbiot.com>
14924             Paul Eggert  <eggert@cs.ucla.edu>
14925
14926         * modules/glob (Files): Add glob-libc.h.
14927
14928 2005-09-12  Derek Price  <derek@ximbiot.com>
14929             Paul Eggert  <eggert@cs.ucla.edu>
14930
14931         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
14932         glob_.h, glob-libc.h.
14933         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
14934
14935 2005-09-12  Derek Price  <derek@ximbiot.com>
14936             Paul Eggert  <eggert@cs.ucla.edu>
14937
14938         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
14939         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
14940         protecting things that should be done only in gnulib contexts.
14941         * lib/glob_.h: New file, containing only the glob things needed for
14942         gnulib.
14943         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
14944         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
14945         (glob, globfree, glob_pattern_p): Now defined simply in terms of
14946         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
14947         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
14948         and to respect the namespace rules better.
14949
14950 2005-09-08  Simon Josefsson  <jas@extundo.com>
14951
14952         * modules/socklen: New file.
14953
14954 2005-09-08  Simon Josefsson  <jas@extundo.com>
14955
14956         * m4/socklen.m4: New file.
14957
14958 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
14959
14960         * modules/utimens (Files): Add m4/utimbuf.m4, since
14961         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
14962         Reported by Sergey Poznyakoff.
14963
14964 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
14965
14966         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
14967         definitions, since that's the preferred style in glibc.
14968         Fix a minor spacing issue, and update copyright notice to match
14969         glibc's.
14970
14971 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
14972
14973         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
14974
14975 2005-09-06  Simon Josefsson  <jas@extundo.com>
14976
14977         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
14978         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
14979
14980 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
14981
14982         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
14983         warning.
14984
14985 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
14986
14987         * config/srclist.txt: Add glibc bug 1302.
14988
14989 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14990
14991         Change bitset word type from unsigned int to unsigned long int,
14992         as this has better performance on typical 64-bit hosts.
14993         Port bitset code to hosts with unusual word sizes.
14994         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
14995         (build_collating_symbol):
14996         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
14997         argument is a bitset.  This is merely a style issue, but it makes
14998         it clearer that an entire array is expected.
14999         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
15000         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
15001         Port to the case where bitset_word is not the same as unsigned int.
15002         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
15003         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
15004         Likewise.
15005         * lib/regexec.c (check_dst_limits_calc_pos_1,
15006         check_subexp_matching_top):
15007         (build_trtable, group_nodes_into_DFAstates):
15008         Likewise.
15009         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
15010         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
15011         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
15012         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
15013         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
15014         * lib/regcomp.c (optimize_subexps, lower_subexp):
15015         Work even if bitset_word has holes in its bitwise representation.
15016         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
15017         * lib/regexec.c (check_dst_limits_calc_pos_1,
15018         check_subexp_matching_top):
15019         Likewise.
15020         * lib/regex_internal.c (re_string_reconstruct):
15021         Don't assume UCHAR_MAX == 255.
15022         * lib/regex_internal.h (bitset_set_all): Likewise.
15023         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
15024         All uses changed.
15025         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
15026         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
15027         All uses changed.
15028         (BITSET_WORD_MAX): New macro.
15029         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
15030         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
15031         (bitset_empty, bitset_copy):
15032         Prefer sizeof (bitset) to multiplying it out ourselves.
15033         (bitset_not_merge): Remove; unused.
15034         (bitset_contain): Return bool, not unsigned int with one bit on.
15035         All callers changed.
15036         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
15037         alignment than re_node_set; do this by defining a new internal
15038         type struct dests_alloc and using it to allocate memory.
15039
15040 2005-09-05  Bruno Haible  <bruno@clisp.org>
15041
15042         * gnulib-tool (func_import): Fix comparison in handling of symbolic
15043         links.
15044
15045 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
15046
15047         * modules/size_max (Makefile.am): Add size_max.h
15048
15049 2005-09-04  Derek Price  <derek@ximbiot.com>
15050
15051         * gnulib-tool (func_import): Fix reversed $symbolic logic.
15052
15053 2005-09-03  Simon Josefsson  <jas@extundo.com>
15054
15055         * gnulib-tool: Fix typo.
15056
15057 2005-09-03  Simon Josefsson  <jas@extundo.com>
15058
15059         * config/srclist.txt: Add glibc bug 1293.
15060
15061 2005-09-03  Derek Price  <derek@ximbiot.com>
15062
15063         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
15064         From Larry Jones <lawrence.jones@ugs.com>.
15065
15066 2005-09-02  Simon Josefsson  <jas@extundo.com>
15067
15068         * modules/socklen: New file.
15069
15070 2005-09-02  Simon Josefsson  <jas@extundo.com>
15071
15072         * modules/havelib: New module.
15073
15074         * modules/gettext, modules/iconv, modules/lock, modules/readline:
15075         Use havelib.
15076
15077 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15078
15079         Check for arithmetic overflow when calculating sizes, to prevent
15080         some buffer-overflow issues.  These patches are conservative, in the
15081         sense that when I couldn't determine whether an overflow was possible,
15082         I inserted a run-time check.
15083         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
15084         macros.
15085         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
15086         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
15087         (re_xnrealloc, re_x2nrealloc): New inline functions.
15088         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
15089         parse_bracket_exp):
15090         (build_equiv_class, build_charclass): Check for arithmetic overflow
15091         in size expression calculations.
15092         * lib/regex_internal.c (re_string_realloc_buffers):
15093         (build_wcs_upper_buffer, re_node_set_add_intersect):
15094         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
15095         (re_dfa_add_node, register_state): Likewise.
15096         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
15097         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
15098         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
15099         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
15100
15101 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15102
15103         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15104         m4/ulonglong.m4.  Problem reported by Martin Lambers.
15105
15106 2005-09-02  Bruno Haible  <bruno@clisp.org>
15107
15108         Support for lib vs. lib64 distinction on biarch platforms.
15109         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
15110         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
15111         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
15112
15113 2005-09-02  Bruno Haible  <bruno@clisp.org>
15114
15115         * gnulib-tool (import): In the other first-use case, provide defaults
15116         as well.
15117
15118 2005-09-02  Bruno Haible  <bruno@clisp.org>
15119
15120         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
15121         patches not yet found in the latest gettext release.
15122
15123 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15124
15125         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
15126         to avoid a collision with bits/local_lim.h in glibc.
15127         All uses changed.  Problem reported by Dmitry V. Levin in
15128         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
15129
15130         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
15131         bugs in int versus size_t comparisons.
15132         (re_string_context_at): Fix bug where the code assumed that
15133         Idx is signed.
15134
15135         Use bool where appropriate.
15136         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
15137         All callers changed.
15138         (calc_eclosure_iter): Likewise, for ROOT arg.
15139         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
15140         (build_charclass_op): Likewise, for NON_MATCH arg.
15141         * lib/regex_internal.c (re_string_allocate, re_string_construct):
15142         (re_string_construct_common): Likewise, for ICASE arg.
15143         * lib/regexec.c (re_search_2_stub, re_search_stub):
15144         Likewise, for RET_LEN arg.
15145         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
15146         (set_regs): Likewise, for FL_BACKTRACK arg.
15147         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
15148         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
15149         (calc_eclosure_iter, parse_bracket_exp):
15150         Use bool for internal variables that are booleans.
15151         * lib/regexec.c (re_search_internal, check_matching,
15152         proceed_next_node):
15153         (set_regs, build_sifted_states, sift_states_bkref):
15154         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
15155         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
15156         (find_collation_sequence_value):
15157         Likewise.
15158         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
15159         (re_node_set_compare):
15160         Return bool, not int. All callers changed.
15161         * lib/regexec.c (check_halt_node_context, check_dst_limits):
15162         (build_trtable, check_node_accept): Likewise.
15163         * lib/regex_internal.h: Include stdbool.h.
15164
15165         Fix bugs uncovered when converting to bool.
15166         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
15167         failure instead of charging ahead blindly.
15168         * lib/regex_internal.c (register_state): Likewise.
15169         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
15170         for freeing internal storage.
15171         (group_nodes_into_DFA_states): Use unsigned int, not int, for
15172         bitset pieces used as boolean, to avoid undefined behavior
15173         on hosts that do int overflow checking.
15174
15175 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15176
15177         * config/srclist.txt: Add glibc bugs 1285-1287.
15178
15179 2005-09-01  Jim Meyering  <jim@meyering.net>
15180
15181         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
15182         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
15183         Require gl_STAT_MACROS, too.
15184
15185 2005-09-01  Bruno Haible  <bruno@clisp.org>
15186
15187         * gnulib-tool (import): In the first-use case, provide defaults.
15188
15189 2005-09-01  Bruno Haible  <bruno@clisp.org>
15190
15191         * gnulib-tool (func_import): Remove the .tmp files.
15192
15193 2005-09-01  Bruno Haible  <bruno@clisp.org>
15194
15195         * gnulib-tool (func_import): Fix handling of symbolic links.
15196
15197 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15198
15199         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
15200         old glibc regex code mishandles strings longer than 2**31 bytes.
15201         This patch fixes this when the regex code is used in gnulib
15202         (i.e., outside glibc).
15203
15204         This patch should not affect the use of the regex code inside
15205         glibc.  No doubt this problem also needs to be handled for glibc
15206         as well, but the result will be an incompatible change to the
15207         glibc ABI, and the old ABI will have to be supported too.  That
15208         can be the the subject for another patch.
15209
15210         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
15211         governing whether the rest of this patch is active.  By default,
15212         the macro is disabled and the patch has no effect.
15213         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
15214         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
15215         (struct re_pattern_buffer, re_search, re_search_2, re_match):
15216         (re_match_2, re_set_registers): Use the new types.
15217         * lib/regex_internal.h (Idx, re_hashval_t): New types.
15218         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
15219         New macros.
15220         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
15221         (re_string_context_at, bin_tree_t, re_dfastate_t):
15222         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
15223         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
15224         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
15225         (re_string_char_size_at, re_string_wchar_at):
15226         (re_string_elem_size_at):
15227         Use the new types and macros to port to 64-bit hosts.
15228         Use unsigned types for internal values, so that the code
15229         mostly works even for arrays larger than SSIZE_MAX.
15230         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
15231         (search_duplicated_node, calc_eclosure_iter, fetch_number):
15232         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
15233         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
15234         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
15235         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
15236         (calc_inveclosure, parse_dup_op, build_range_exp):
15237         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
15238         (fetch_number, create_token_tree, mark_opt_subexp):
15239         Likewise.
15240         * lib/regex_internal.c (re_string_construct_common,
15241         create_ci_newstate):
15242         (create_cd_newstate, re_string_allocate, re_string_construct):
15243         (re_string_realloc_buffers, build_wcs_upper_buffer):
15244         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
15245         (re_string_reconstruct, re_string_peek_byte_case):
15246         (re_string_fetch_byte_case, re_string_context_at):
15247         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
15248         (re_node_set_init_copy, re_node_set_add_intersect):
15249         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
15250         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
15251         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
15252         (re_acquire_state, re_acquire_state_context, register_state):
15253         Likewise.
15254         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
15255         search_cur_bkref_entry):
15256         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
15257         (re_search_internal, re_search_2_stub, re_search_stub)
15258         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
15259         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
15260         (update_cur_sifted_state, check_dst_limits):
15261         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
15262         (check_subexp_limits, sift_states_bkref, merge_state_array):
15263         (check_subexp_matching_top, get_subexp, get_subexp_sub):
15264         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
15265         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
15266         (expand_bkref_cache, check_node_accept_bytes):
15267         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
15268         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
15269         (acquire_init_state_context, check_halt_node_context):
15270         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
15271         (sift_states_backward, clean_state_log_if_needed):
15272         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
15273         (find_recover_state, transit_state_sb, transit_state_mb):
15274         (transit_state_bkref, build_trtable, match_ctx_clean):
15275         Likewise.
15276         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
15277         to work around an assumption that REG_MISSING is negative.
15278
15279         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
15280         (seek_collating_symbol_entry) [defined _LIBC]:
15281         (lookup_collation_sequence_value) [defined _LIBC]:
15282         (build_range_exp, build_collating_symbol) [defined _LIBC]:
15283         Use prototypes rather than old-style function definitions.
15284         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
15285         (transit_state_sb) [0]:
15286         (find_collation_sequence_value) [defined _LIBC]: Likewise.
15287
15288         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
15289         rm_eo.
15290
15291         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
15292         (optimize_subexps, lower_subexp):
15293         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
15294         since the signed shift might overflow.  Use 1u<<31 instead.
15295         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
15296         Likewise.
15297         * lib/regexec.c (check_dst_limits_calc_pos_1,
15298         check_subexp_matching_top): Likewise.
15299
15300         * lib/regcomp.c (optimize_subexps, lower_subexp):
15301         Use CHAR_BIT rather than 8, for clarity.
15302         * lib/regexec.c (check_dst_limits_calc_pos_1):
15303         (check_subexp_matching_top): Likewise.
15304         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
15305         have to worry about portability issues when shifting it left.
15306         Remove no-longer-needed test for table_size > 0.
15307         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
15308         in a word, as the resulting behavior is undefined.
15309         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
15310         in one case, a <= should have been an <, and in another case the
15311         whole test was missing.
15312         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
15313         the standard name CHAR_BIT.
15314         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
15315         this is not true on one's complement and signed-magnitude hosts.
15316
15317         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
15318         next_last_offset.
15319         (struct re_dfa_t): Remove unused member states_alloc.
15320         * lib/regcomp.c (init_dfa): Don't initialize unused members.
15321
15322 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15323
15324         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
15325         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
15326         and large-file glibc and in 32-bit large-file Solaris.
15327
15328 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15329
15330         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
15331         lengths fit in regoff_t; this isn't true if regoff_t is the same
15332         width as size_t.
15333         * lib/regex.c (re_search_internal): 5th arg is LAST_START
15334         (= START + RANGE) instead of RANGE.  This avoids overflow
15335         problems when regoff_t is the same width as size_t.
15336         All callers changed.
15337         (re_search_2_stub): Check for overflow when adding the
15338         sizes of the two strings.
15339         (re_search_stub): Check for overflow when adding START
15340         to RANGE; if it occurs, substitute the extreme value.
15341
15342 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15343
15344         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
15345
15346 2005-08-31  Jim Meyering  <jim@meyering.net>
15347
15348         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
15349         a pointer-to-const.
15350         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
15351         (register_state): Likewise.
15352         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
15353         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
15354         (group_nodes_into_DFAstates): Likewise.
15355
15356 2005-08-31  Jim Meyering  <jim@meyering.net>
15357
15358         * check-module: Add a FIXME comment.
15359
15360 2005-08-31  Eric Blake  <ebb9@byu.net>
15361
15362         * modules/unistd-safer (Files): Add unistd--.h.
15363         * modules/stdio-safer (Files): Add stdio--.h.
15364
15365 2005-08-31  Derek Price  <derek@ximbiot.com>
15366
15367         * lib/getdelim.c (getdelim): Return EOF on EOF.
15368         Reported by Larry Jones <lawrence.jones@ugs.com>.
15369
15370 2005-08-31  Bruno Haible  <bruno@clisp.org>
15371
15372         Avoid unnecessary diffs in the generated lib/Makefile.am.
15373         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
15374         the generated files.
15375         (func_import): Don't set cmd.
15376
15377 2005-08-31  Bruno Haible  <bruno@clisp.org>
15378
15379         * lib/strstr.c: Include <stddef.h>, for NULL.
15380         * lib/strcasestr.c: Likewise.
15381         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15382
15383 2005-08-31  Bruno Haible  <bruno@clisp.org>
15384
15385         * gnulib-tool: New option --macro-prefix.
15386         (func_import): Use macro_prefix.
15387         (import): Handle option --macro-prefix.
15388
15389 2005-08-31  Bruno Haible  <bruno@clisp.org>
15390
15391         * gnulib-tool (import): Rename most ac_* variables to cached_*.
15392         Also use new variables cached_lgpl, cached_libtool.
15393
15394 2005-08-31  Bruno Haible  <bruno@clisp.org>
15395
15396         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
15397         always instantiating them.
15398
15399 2005-08-31  Bruno Haible  <bruno@clisp.org>
15400
15401         * gnulib-tool (func_import): Read the previous cached settings
15402         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
15403         earlier added by gnulib but are now dropped. Warn when a gnulib file
15404         overwrites a non-gnulib file.
15405
15406 2005-08-31  Bruno Haible  <bruno@clisp.org>
15407
15408         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
15409         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
15410         projects that don't keep autogenerated files in CVS. Put into
15411         actioncmd only the specified modules, not the transitive closure.
15412
15413 2005-08-31  Bruno Haible  <bruno@clisp.org>
15414
15415         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
15416         Create directories that shall be filled.
15417         (import): Don't look for gl_* macros in configure.ac. Recurse across
15418         all directories containing a gnulib-cache.m4 files, if meaningful.
15419
15420 2005-08-31  Bruno Haible  <bruno@clisp.org>
15421
15422         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
15423         (import): Set seen_libtool when we see gl_LIBTOOL.
15424
15425 2005-08-31  Bruno Haible  <bruno@clisp.org>
15426
15427         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
15428         declaration macro definitions from generated gnulib.m4.
15429
15430 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
15431
15432         * lib/iconvme.h: Add prototype for iconv_alloc.
15433
15434 2005-08-29  Simon Josefsson  <jas@extundo.com>
15435
15436         * lib/iconvme.c: Fix errno.
15437
15438 2005-08-29  Bruno Haible  <bruno@clisp.org>
15439
15440         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
15441         that it works when the directory contains spaces.
15442
15443 2005-08-29  Bruno Haible  <bruno@clisp.org>
15444
15445         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
15446
15447 2005-08-29  Bruno Haible  <bruno@clisp.org>
15448
15449         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
15450         Emit more advice.
15451
15452 2005-08-29  Bruno Haible  <bruno@clisp.org>
15453         and Stepan Kasal  <kasal@ucw.cz>
15454
15455         * check-module: If more parameters are given, check each of them
15456         separately; add more exceptions, as noted by Jim Meyering.
15457         (check_module): New procedure.
15458         (%exempt_header): Now contains all exceptions.
15459
15460 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
15461
15462         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
15463
15464 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
15465
15466         * lib/iconvme.c: Split iconv_string into iconv_alloc.
15467
15468 2005-08-28  Bruno Haible  <bruno@clisp.org>
15469
15470         * m4/gnulib-tool.m4: New file.
15471
15472 2005-08-27  Jim Meyering  <jim@meyering.net>
15473
15474         * modules/unistd-safer (Files): Add pipe-safer.c.
15475         * modules/fcntl-safer (Files): Add creat-safer.c.
15476
15477 2005-08-27  Jim Meyering  <jim@meyering.net>
15478
15479         * m4/stdlib-safer.m4: New file.  From coreutils.
15480         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
15481         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
15482         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
15483         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
15484         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
15485
15486 2005-08-27  Jim Meyering  <jim@meyering.net>
15487
15488         * lib/fopen-safer.c: Merge minor changes from coreutils.
15489         * lib/dup-safer.c: Likewise.
15490         * lib/fd-safer.c: Likewise.
15491
15492         Merge from coreutils.
15493         * lib/stdio--.h: New file.
15494         * lib/stdlib--.h: New file.
15495         * lib/mkstemp-safer.c: New file.
15496
15497         GNU tar needs these.
15498         * lib/pipe-safer.c: New file.
15499         * lib/creat-safer.c: New file.
15500         * lib/fcntl--.h (creat): Define to creat_safer.
15501         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
15502         * lib/unistd--.h (pipe): Define to pipe_safer.
15503         * lib/unistd-safer.h: Declare pipe_safer.
15504
15505 2005-08-26  Simon Josefsson  <jas@extundo.com>
15506
15507         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
15508         Haible <bruno@clisp.org>.
15509
15510 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
15511
15512         * lib/regex_internal.h: Remove all references to
15513         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
15514         or better.
15515         (bitset_not, bitset_merge, bitset_not_merge):
15516         (bitset_mask, re_string_allocate, re_string_construct):
15517         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
15518         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
15519         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
15520         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
15521         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
15522         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
15523         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
15524         (re_acquire_state_context):
15525         Remove unnecessary forward decls.
15526         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
15527         Put __attribute at function definition,
15528         now that the function decl has been removed.
15529         * lib/regex_internal.c (re_string_peek_byte_case):
15530         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
15531         Likewise.
15532
15533 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
15534
15535         * m4/regex.m4: Add AC_PREREQ(2.50).
15536         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
15537
15538 2005-08-25  Simon Josefsson  <jas@extundo.com>
15539
15540         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
15541         __fsetlocking.
15542
15543 2005-08-25  Simon Josefsson  <jas@extundo.com>
15544
15545         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
15546         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
15547         GLIBC specific code.
15548
15549 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
15550
15551         Make regex safe for g++.  This fixes one real bug (an "err"
15552         that should have been "*err").  g++ problem reported by
15553         Sam Steingold.
15554         * lib/regex_internal.h (re_calloc): New macro, consistent with
15555         re_malloc etc.  All callers of calloc changed to use re_calloc.
15556         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
15557         not int.  All callers changed.
15558         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
15559         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
15560         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
15561         (find_recover_state): Change "err" to "*err"; this fixes what
15562         appears to be a real bug.
15563         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
15564         versus int.
15565
15566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
15567
15568         * modules/regex (Depends-on): Add malloc, since the code
15569         assumes that !malloc(0) means failure.
15570
15571 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
15572
15573         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
15574
15575         alloca modernization/simplification for regex.
15576         * lib/regex.c: Remove portability cruft for alloca.  This no longer
15577         needs to be at the start of the file, and can be moved into
15578         regex_internal.h and simplified.
15579         * lib/regex_internal.h: Include <alloca.h>.
15580         (__libc_use_alloca) [!defined _LIBC]: New macro.
15581         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
15582         now works outside glibc.
15583
15584 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
15585
15586         * config/srclist.txt: Add glibc bugs 1241, 1245.
15587
15588 2005-08-25  Jim Meyering  <jim@meyering.net>
15589
15590         * lib/open-safer.c: Include <config.h>.
15591         Otherwise, we'd lose LARGEFILE support in any file using
15592         e.g. "fcntl--.h"
15593
15594 2005-08-25  Bruno Haible  <bruno@clisp.org>
15595
15596         * m4/minmax.m4: Require autoconf 2.52.
15597         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
15598         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
15599         alternatives of translit over the alphabet.
15600         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
15601
15602 2005-08-24  Simon Josefsson  <jas@extundo.com>
15603
15604         * tests/test-getpass.c: New file.
15605
15606 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15607
15608         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
15609         for GNU regex features.
15610
15611 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15612
15613         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
15614         * lib/regex.h (regerror): Likewise.
15615
15616         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
15617         requires this.  (The code never needed it.)
15618
15619         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
15620         All uses of recently-renamed identifiers changed to use the new,
15621         POSIX-compliant names.  The code will build and run just fine
15622         without these changes, but it's better to eat our own dog food
15623         and use the standard-conforming names.
15624
15625         * lib/regex.h: Fix a multitude of POSIX name space violations.
15626         These changes have an effect only for programs that define
15627         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
15628         do not change anything for programs compiled in the normal way.
15629         Also, there is no effect on the ABI.
15630
15631         (_REGEX_SOURCE): New macro.
15632         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
15633         defined and _GNU_SOURCE is not; this fixes a name space violation.
15634
15635         Rename the following macros to obey POSIX requirements.
15636         The old names are still visible as macros if _REGEX_SOURCE is defined.
15637         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
15638         RE_BACKSLASH_ESCAPE_IN_LISTS.
15639         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
15640         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
15641         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
15642         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
15643         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
15644         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
15645         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
15646         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
15647         (REG_INTERVALS): renamed from RE_INTERVALS.
15648         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
15649         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
15650         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
15651         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
15652         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
15653         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
15654         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
15655         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
15656         RE_UNMATCHED_RIGHT_PAREN_ORD.
15657         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
15658         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
15659         (REG_DEBUG): renamed from RE_DEBUG.
15660         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
15661         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
15662         unusual, since we can't clash with the POSIX REG_ICASE.
15663         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
15664         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
15665         (REG_NO_SUB): renamed from RE_NO_SUB.
15666         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
15667         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
15668         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
15669         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
15670         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
15671         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
15672         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
15673         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
15674         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
15675         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
15676         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
15677         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
15678         RE_SYNTAX_POSIX_MINIMAL_BASIC.
15679         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
15680         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
15681         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
15682         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
15683         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
15684         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
15685         (REG_FIXED): Renamed from REGS_FIXED.
15686         (REG_NREGS): Renamed from RE_NREGS.
15687
15688         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
15689         of other REG_* macros, since POSIX says the user is allowed to
15690         #undef these macros selectively.
15691
15692         (reg_errcode_t): Update comment stating what other tables need
15693         to be consistent.
15694
15695         Rename the following enum values to obey POSIX requirements.
15696         The old names are still visible as macros.
15697         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
15698         is not defined, since GNU is supposed to be a superset of POSIX as
15699         much as possible, and since we want reg_errcode_t to be a signed
15700         type for implementation consistency.
15701         (_REG_NOERROR): Renamed from REG_NOERROR.
15702         (_REG_NOMATCH): Renamed from REG_NOMATCH.
15703         (_REG_BADPAT): Renamed from REG_BADPAT.
15704         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
15705         (_REG_ECTYPE): Renamed from REG_ECTYPE.
15706         (_REG_EESCAPE): Renamed from REG_EESCAPE.
15707         (_REG_ESUBREG): Renamed from REG_ESUBREG.
15708         (_REG_EBRACK): Renamed from REG_EBRACK.
15709         (_REG_EPAREN): Renamed from REG_EPAREN.
15710         (_REG_EBRACE): Renamed from REG_EBRACE.
15711         (_REG_BADBR): Renamed from REG_BADBR.
15712         (_REG_ERANGE): Renamed from REG_ERANGE.
15713         (_REG_ESPACE): Renamed from REG_ESPACE.
15714         (_REG_BADRPT): Renamed from REG_BADRPT.
15715         (_REG_EEND): Renamed from REG_EEND.
15716         (_REG_ESIZE): Renamed from REG_ESIZE.
15717         (_REG_ERPAREN): Renamed from REG_ERPAREN.
15718         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
15719         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
15720         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
15721         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
15722
15723         (_REG_RE_NAME, _REG_RM_NAME): New macros.
15724         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
15725         changed.  But support the old name if the new one is not defined
15726         and if _REGEX_SOURCE.
15727
15728         Change the following member names in struct re_pattern_buffer.
15729         The old names are still supported if !_REGEX_SOURCE.
15730         The new names are always supported, regardless of _REGEX_SOURCE.
15731         (re_buffer): Renamed from buffer.
15732         (re_allocated): Renamed from allocated.
15733         (re_used): Renamed from used.
15734         (re_syntax): Renamed from syntax.
15735         (re_fastmap): Renamed from fastmap.
15736         (re_translate): Renamed from translate.
15737         (re_can_be_null): Renamed from can_be_null.
15738         (re_regs_allocated): Renamed from regs_allocated.
15739         (re_fastmap_accurate): Renamed from fastmap_accurate.
15740         (re_no_sub): Renamed from no_sub.
15741         (re_not_bol): Renamed from not_bol.
15742         (re_not_eol): Renamed from not_eol.
15743         (re_newline_anchor): Renamed from newline_anchor.
15744
15745         Change the following member names in struct re_registers.
15746         The old names are still supported if !_REGEX_SOURCE.
15747         The new names are always supported, regardless of _REGEX_SOURCE.
15748         (rm_num_regs): Renamed from num_regs.
15749         (rm_start): Renamed from start.
15750         (rm_end): Renamed from end.
15751
15752         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
15753         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
15754         Prepend __ to parameter names.
15755
15756         Undo yesterday's changes.
15757
15758 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15759
15760         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
15761         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
15762         lib/regex.c.
15763
15764 2005-08-24  Jim Meyering  <jim@meyering.net>
15765
15766         Sync from coreutils.
15767         * m4/fcntl-safer.m4: New file.
15768
15769         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
15770         and object files for this module.
15771
15772 2005-08-24  Jim Meyering  <jim@meyering.net>
15773
15774         Sync from coreutils.
15775         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
15776
15777 2005-08-24  Jim Meyering  <jim@meyering.net>
15778
15779         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
15780         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
15781
15782 2005-08-24  Jim Meyering  <jim@meyering.net>
15783
15784         * modules/fcntl-safer: New module.
15785         * modules/fts (Depends-on): Add fcntl-safer.
15786         * MODULES.html.sh (File descriptor based Input/Output):
15787         Add fcntl-safer.
15788
15789 2005-08-24  Bruno Haible  <bruno@clisp.org>
15790
15791         Support for unit test modules.
15792         * modules/README: Mention tests modules.
15793         * modules/TEMPLATE-TESTS: New file.
15794         * gnulib-tool: New options --extract-tests-module, --with-tests and
15795         --tests-base (unused for the moment).
15796         (testsbase, inctests): New variables.
15797         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
15798         (func_verify_module): Exclude TEMPLATE-TESTS.
15799         (func_verify_nontests_module, func_verify_tests_module): New functions.
15800         (func_get_dependencies): Add implicit dependency for tests modules.
15801         (func_get_tests_module): New function.
15802         (func_modules_transitive_closure): When --with-tests was specified,
15803         include the unit tests as well, unless explicitly avoided.
15804         (func_emit_lib_Makefile_am): Ignore the tests modules here.
15805         (func_emit_tests_Makefile_am): New function.
15806         (func_create_testdir): When --with-tests was specified, emit a
15807         tests/ directory.
15808         * MODULES.html.sh (Future developments): Update.
15809
15810 2005-08-24  Bruno Haible  <bruno@clisp.org>
15811
15812         * modules/tls-tests: New file.
15813         * tests/test-tls.c: New file, from GNU gettext.
15814
15815 2005-08-24  Bruno Haible  <bruno@clisp.org>
15816
15817         * modules/lock-tests: New file.
15818         * tests/test-lock.c: New file, from GNU gettext.
15819
15820 2005-08-24  Bruno Haible  <bruno@clisp.org>
15821
15822         * lib/lock.h: Add multiple inclusion guard.
15823         * lib/tls.h: Add multiple inclusion guard.
15824
15825 2005-08-24  Bruno Haible  <bruno@clisp.org>
15826
15827         * gnulib-tool: Add support for the --aux-dir option to
15828         --create-testdir, --create-megatestdir, --test, --megatest.
15829         (func_create_testdir, func_create_megatestdir): Optionally emit a
15830         AC_CONFIG_AUX_DIR directive.
15831         (create-testdir, create-megatestdir, test, megatest): Provide a
15832         default value for $auxdir.
15833
15834 2005-08-24  Bruno Haible  <bruno@clisp.org>
15835
15836         * gnulib-tool (import): Use compound statement instead of subshell
15837         where possible.
15838
15839 2005-08-24  Bruno Haible  <bruno@clisp.org>
15840
15841         * gnulib-tool (import): Change --aux-dir default to "build-aux".
15842
15843 2005-08-24  Bruno Haible  <bruno@clisp.org>
15844
15845         * gnulib-tool (func_version): Update.
15846
15847 2005-08-24  Bruno Haible  <bruno@clisp.org>
15848
15849         * gnulib-tool (func_import, func_create_testdir,
15850         func_create_megatestdir): Quote all autoconf macro arguments.
15851
15852 2005-08-24  Bruno Haible  <bruno@clisp.org>
15853
15854         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
15855         option --force, because --force causes the aclocal.m4 of each
15856         subdirectory to be newer than the corresponding config.h.in.
15857
15858 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15859
15860         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
15861         All contents moved to gl_REGEX.
15862         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
15863         assume that it does.
15864
15865 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15866
15867         * lib/regex.h (REG_NOSYS)
15868         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
15869         Define, since POSIX requires it as of 2001.
15870         (_REG_ENOSYS)
15871         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
15872         New private symbol, used to keep the enum signed in all cases.
15873         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
15874         Youngman in
15875         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
15876
15877         * lib/regex_internal.c (re_string_skip_chars, register_state):
15878         (calc_state_hash):
15879         Remove forward decls; no longer needed now that we use prototypes.
15880         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
15881         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
15882         (clean_state_log_if_needed): Likewise.
15883
15884 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15885
15886         * config/srclist.txt: Add glibc bugs 1231-1233.
15887
15888 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15889
15890         Fix problems reported by Sam Steingold in
15891         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
15892         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
15893         assumed that reg_errcode_t is a signed type, which is not
15894         necessarily true if _XOPEN_SOURCE is not defined.
15895         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
15896         since some compilers warn about it otherwise.
15897
15898 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15899
15900         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
15901         (init_word_char, create_initial_state, duplicate_node_closure):
15902         (fetch_token, peek_token_bracket, build_range_exp):
15903         (build_collating_symbol): Remove forward decls; no longer needed
15904         now that we use prototypes.
15905
15906         * lib/regcomp.c:
15907         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
15908         (re_compile_fastmap_iter, regcomp, regerror, regfree):
15909         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
15910         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
15911         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
15912         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
15913         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
15914         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
15915         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
15916         (build_range_exp, build_collating_symbol, parse_bracket_exp):
15917         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
15918         (build_charclass, build_charclass_op, fetch_number, create_tree):
15919         (create_token_tree, mark_opt_subexp, duplicate_tree):
15920         Use prototypes rather than old-style definitions.
15921
15922         * lib/regex_internal.c:
15923         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
15924         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
15925         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
15926         (re_string_reconstruct, re_string_peek_byte_case):
15927         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
15928         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
15929         (re_node_set_init_copy, re_node_set_add_intersect):
15930         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
15931         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
15932         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
15933         (re_acquire_state, re_acquire_state_context, register_state):
15934         (create_ci_newstate, create_cd_newstate, free_state):
15935         Likewise.
15936         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
15937         re_search_2):
15938         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
15939         (re_search_internal, prune_impossible_nodes):
15940         (acquire_init_state_context, check_matching, static):
15941         (check_halt_node_context, check_halt_state_context, proceed_next_node):
15942         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
15943         (update_regs, sift_states_backward, build_sifted_states):
15944         (clean_state_log_if_needed, merge_state_array):
15945         (update_cur_sifted_state, add_epsilon_src_nodes):
15946         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
15947         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
15948         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
15949         (find_recover_state, check_subexp_matching_top, transit_state_mb):
15950         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
15951         (check_arrival, check_arrival_add_next_nodes):
15952         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
15953         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
15954         (check_node_accept_bytes, check_node_accept, extend_buffers):
15955         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
15956         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
15957         (sift_ctx_init):
15958         Likewise.
15959
15960         * lib/regex_internal.h:
15961         (re_string_allocate, re_string_construct, re_string_reconstruct):
15962         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
15963         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
15964         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
15965         (re_string_context_at, re_string_peek_byte_case):
15966         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
15967         is defined, since we now use prototypes always.
15968
15969         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
15970         C89 or better.  All uses removed.
15971
15972 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15973
15974         * config/srclist.txt: Add glibc bugs 1220-1227.
15975
15976 2005-08-20  Jim Meyering  <jim@meyering.net>
15977
15978         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
15979         of unused local, dfa.
15980
15981 2005-08-20  Bruno Haible  <bruno@clisp.org>
15982
15983         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
15984
15985 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15986
15987         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
15988         (re_node_set_insert_last, re_dfa_add_node):
15989         Rename local variables to avoid GCC shadowing warnings.
15990
15991 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15992
15993         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
15994         [defined lint]: Suppress bogus uninitialized-variable warnings.
15995
15996         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
15997         and let the caller return REG_ESPACE if out of space.  This
15998         removes an uninitialied-variable warning with GCC 4.0.1, and also
15999         avoids taking the address of a local variable.  All callers
16000         changed.
16001
16002 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16003
16004         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
16005         $LIBCSRC/posix/regexec.c.
16006         Add glibc bug 1217 for regcomp.c.
16007
16008 2005-08-19  Jim Meyering  <jim@meyering.net>
16009
16010         * lib/regexec.c (proceed_next_node): Redo local variables to
16011         avoid GCC shadowing warnings.
16012
16013 2005-08-18  Bruno Haible  <bruno@clisp.org>
16014
16015         * lib/strstr.c (strstr): Fix return value in multibyte case.
16016         * lib/strcasestr.c (strcasestr): Likewise.
16017
16018 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16019
16020         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
16021
16022 2005-08-17  Jim Meyering  <jim@meyering.net>
16023
16024         Make the %s format (seconds since the epoch) work for a negative
16025         number and when used with a zero-padded field width, e.g. %015s.
16026
16027         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
16028         label so that it precedes the code to set `digits'.  Otherwise,
16029         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
16030         print `00-22'.  Now, it prints `-0022', as it should.
16031
16032 2005-08-17  Bruno Haible  <bruno@clisp.org>
16033
16034         * modules/strstr (Files): Add m4/mbrtowc.m4.
16035         (Depends-on): Add mbuiter.
16036
16037 2005-08-17  Bruno Haible  <bruno@clisp.org>
16038
16039         * modules/strcasestr: New file.
16040         * MODULES.html.sh (String handling, based on ANSI C 89): Add
16041         strcasestr.
16042
16043 2005-08-17  Bruno Haible  <bruno@clisp.org>
16044
16045         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
16046
16047 2005-08-17  Bruno Haible  <bruno@clisp.org>
16048
16049         * modules/mbuiter: New file.
16050         * MODULES.html.sh (Extended multibyte and wide character utilities):
16051         Add mbuiter.
16052
16053 2005-08-17  Bruno Haible  <bruno@clisp.org>
16054
16055         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
16056         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
16057
16058 2005-08-17  Bruno Haible  <bruno@clisp.org>
16059
16060         * m4/strcasestr.m4: New file.
16061
16062 2005-08-17  Bruno Haible  <bruno@clisp.org>
16063
16064         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
16065         * lib/strstr.c: Completely rewritten, with multibyte locale support.
16066
16067 2005-08-17  Bruno Haible  <bruno@clisp.org>
16068
16069         * lib/strcasestr.h: New file.
16070         * lib/strcasestr.c: New file.
16071
16072 2005-08-17  Bruno Haible  <bruno@clisp.org>
16073
16074         * lib/strcasecmp.c: Use mbuiter.h.
16075
16076 2005-08-17  Bruno Haible  <bruno@clisp.org>
16077
16078         * lib/mbuiter.h: New file.
16079
16080 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
16081
16082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
16083         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
16084         and gl_GETOPT are both invoked via different paths (as happens
16085         with GNU tar CVS because it uses both argp and getopt), the former
16086         wins.
16087
16088 2005-08-16  Bruno Haible  <bruno@clisp.org>
16089
16090         * modules/tls: New file.
16091         * MODULES.html.sh (Multithreading): Add tls.
16092
16093 2005-08-16  Bruno Haible  <bruno@clisp.org>
16094
16095         * modules/strnlen1: New file.
16096         * MODULES.html.sh (String handling): Add strnlen1.
16097
16098 2005-08-16  Bruno Haible  <bruno@clisp.org>
16099
16100         * modules/strcase (Files): Add m4/mbrtowc.m4.
16101         (Depends-on): Add strnlen1, mbchar.
16102
16103 2005-08-16  Bruno Haible  <bruno@clisp.org>
16104
16105         * modules/mbiter: New file.
16106         * MODULES.html.sh (Extended multibyte and wide character utilities):
16107         Add mbiter.
16108
16109 2005-08-16  Bruno Haible  <bruno@clisp.org>
16110
16111         * modules/mbfile: New file.
16112         * MODULES.html.sh (Extended multibyte and wide character utilities):
16113         Add mbfile.
16114
16115 2005-08-16  Bruno Haible  <bruno@clisp.org>
16116
16117         * modules/mbchar: New file.
16118         * MODULES.html.sh (Extended multibyte and wide character utilities):
16119         New section.
16120
16121 2005-08-16  Bruno Haible  <bruno@clisp.org>
16122
16123         * m4/tls.m4: New file, from GNU gettext.
16124
16125 2005-08-16  Bruno Haible  <bruno@clisp.org>
16126
16127         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
16128         always.
16129         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
16130
16131 2005-08-16  Bruno Haible  <bruno@clisp.org>
16132
16133         * m4/mbiter.m4: New file.
16134
16135 2005-08-16  Bruno Haible  <bruno@clisp.org>
16136
16137         * m4/mbfile.m4: New file.
16138
16139 2005-08-16  Bruno Haible  <bruno@clisp.org>
16140
16141         * m4/mbchar.m4: New file.
16142
16143 2005-08-16  Bruno Haible  <bruno@clisp.org>
16144
16145         * lib/tls.h: New file, from GNU gettext.
16146         * lib/tls.c: New file, from GNU gettext.
16147
16148 2005-08-16  Bruno Haible  <bruno@clisp.org>
16149
16150         * lib/strnlen1.h: New file.
16151         * lib/strnlen1.c: New file.
16152
16153 2005-08-16  Bruno Haible  <bruno@clisp.org>
16154
16155         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
16156         (mbi_init): Update.
16157         (mbi_avail, mbi_advance): Let the iteration end before the terminating
16158         NUL byte, not after it.
16159
16160 2005-08-16  Bruno Haible  <bruno@clisp.org>
16161
16162         * lib/strcase.h (strcasecmp): Add note in comments.
16163         * lib/strncasecmp.c: Use code from strcasecmp.c.
16164         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
16165         (strcasecmp): Work correctly in multibyte locales.
16166
16167 2005-08-16  Bruno Haible  <bruno@clisp.org>
16168
16169         * lib/mbiter.h: New file.
16170
16171 2005-08-16  Bruno Haible  <bruno@clisp.org>
16172
16173         * lib/mbfile.h: New file.
16174
16175 2005-08-16  Bruno Haible  <bruno@clisp.org>
16176
16177         * lib/mbchar.h: New file.
16178         * lib/mbchar.c: New file.
16179
16180 2005-08-16  Bruno Haible  <bruno@clisp.org>
16181
16182         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
16183         the valid ones. Makes the comparison operations transitive:
16184         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
16185         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
16186
16187 2005-08-15  Simon Josefsson  <jas@extundo.com>
16188
16189         * modules/ssize_t (License): Change to 'unlimited'.
16190
16191         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
16192
16193 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
16196         Add comments for each pending glibc patch.
16197
16198 2005-08-15  Bruno Haible  <bruno@clisp.org>
16199
16200         * lib/regex.h (__restrict_arr): Don't define to __restrict if
16201         __cplusplus is defined.
16202
16203 2005-08-14  Jim Meyering  <jim@meyering.net>
16204
16205         Sync from coreutils.
16206
16207         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
16208         Use the hash-table-based cycle-detection code not just when
16209         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
16210         Reported by James Youngman in
16211         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
16212         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
16213         FTS_TIGHT_CYCLE_CHECK.
16214         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
16215         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
16216         once again.
16217         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
16218         * lib/fts.c (fd_safer): Remove decl.
16219         Include fcntl--.h rather than unistd-safer.h
16220         (fts_safe_changedir): Don't call fd_safer; no longer needed
16221         now that we include fcntl--.h.
16222
16223 2005-08-12  Simon Josefsson  <jas@extundo.com>
16224
16225         * modules/getndelim2: Use ssize_t module.
16226         * modules/getnline: Likewise.
16227         * modules/safe-read: Likewise.
16228         * modules/xreadlink: Likewise.
16229
16230         * modules/ssize_t: New file.
16231
16232 2005-08-12  Simon Josefsson  <jas@extundo.com>
16233
16234         * m4/readline.m4: Look for termcap, curses or ncurses if required.
16235
16236 2005-08-12  Simon Josefsson  <jas@extundo.com>
16237
16238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16239         ssize_t.
16240
16241 2005-08-12  Simon Josefsson  <jas@extundo.com>
16242
16243         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
16244         readline, getdelim and check_version.
16245         (Support for systems lacking ISO C 99: Sizes of integer types):
16246         Add size_max.
16247
16248 2005-08-12  Bruno Haible  <bruno@clisp.org>
16249
16250         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
16251
16252 2005-08-11  Simon Josefsson  <jas@extundo.com>
16253
16254         * modules/readline: New file.
16255
16256         * modules/strnlen (Files): Add strnlen.h.
16257
16258 2005-08-11  Simon Josefsson  <jas@extundo.com>
16259
16260         * m4/readline.m4: New file.
16261
16262 2005-08-11  Simon Josefsson  <jas@extundo.com>
16263
16264         * lib/readline.h, readline.c: New file.
16265
16266 2005-08-11  Simon Josefsson  <jas@extundo.com>
16267
16268         * doc/gnulib.texi (Initial import, Finishing touches): Mention
16269         gl_AVOID.
16270
16271 2005-08-11  Bruno Haible  <bruno@clisp.org>
16272
16273         * lib/strnlen.h (strnlen): Change parameter name to match comment.
16274
16275 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
16276
16277         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
16278
16279 2005-08-10  Simon Josefsson  <jas@extundo.com>
16280
16281         * tests/test-iconvme.c: New file.
16282
16283 2005-08-10  Simon Josefsson  <jas@extundo.com>
16284
16285         * m4/strnlen.m4: New file.
16286
16287         * m4/strndup.m4: Don't check for strnlen declaration, done in
16288         strnlen.m4.
16289
16290 2005-08-10  Simon Josefsson  <jas@extundo.com>
16291
16292         * lib/strndup.c: Use strnlen.h.
16293
16294         * lib/strnlen.h: New file.
16295
16296 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16297
16298         * README: Typos.
16299
16300 2005-08-02  Simon Josefsson  <jas@extundo.com>
16301
16302         * modules/readline: New file.
16303
16304 2005-08-02  Simon Josefsson  <jas@extundo.com>
16305
16306         * modules/getdelim: New file.
16307
16308         * modules/getline: Rewrite, don't use getndelim2.
16309
16310 2005-08-02  Simon Josefsson  <jas@extundo.com>
16311
16312         * m4/getline.m4: Separate out getdelim stuff into separate module.
16313
16314         * m4/getdelim.m4: New file.
16315
16316 2005-08-02  Simon Josefsson  <jas@extundo.com>
16317
16318         * lib/getline.h, getline.c: Rewrite.
16319
16320         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
16321
16322 2005-07-31  Bruno Haible  <bruno@clisp.org>
16323
16324         * lib/lock.h (gl_lock_initializer): New macro.
16325         (gl_lock_define_initialized): Use it.
16326         (gl_rwlock_initializer): New macro.
16327         (gl_rwlock_define_initialized): Use it.
16328         (gl_recursive_lock_initializer): New macro.
16329         (gl_recursive_lock_define_initialized): Use it.
16330
16331 2005-07-30  Karl Berry  <karl@gnu.org>
16332
16333         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
16334         Report from Ben Pfaff, regarding getopt.
16335
16336 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
16337
16338         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
16339         normal way.
16340         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
16341         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
16342         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
16343         (gl_GETOPT): Use the new macros.  Most of the implementation
16344         is moved to the new macros.  This is for programs like Emacs
16345         that don't want all the functionality of gl_GETOPT.
16346
16347 2005-07-26  Bruno Haible  <bruno@clisp.org>
16348
16349         * m4/lock.m4: Update from GNU gettext.
16350
16351 2005-07-26  Bruno Haible  <bruno@clisp.org>
16352
16353         * lib/lock.h: Update from GNU gettext.
16354         * lib/lock.c: Update from GNU gettext.
16355
16356 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16357
16358         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
16359         obsolescent AC_TRY_RUN.  Include the default includes files, for
16360         'exit'.
16361
16362 2005-07-24  Bruno Haible  <bruno@clisp.org>
16363
16364         * modules/visibility: New file.
16365         * MODULES.html.sh (Misc): Add visibility.
16366
16367 2005-07-24  Bruno Haible  <bruno@clisp.org>
16368
16369         * m4/visibility.m4: New file.
16370
16371 2005-07-24  Bruno Haible  <bruno@clisp.org>
16372
16373         * doc/visibility.texi: New file.
16374
16375 2005-07-22  Bruno Haible  <bruno@clisp.org>
16376
16377         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
16378         $(ALLOCA_H), redundant through BUILT_SOURCES.
16379         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
16380         redundant through BUILT_SOURCES.
16381         * modules/byteswap (Makefile.am): Remove explicit dependency on
16382         $(BYTESWAP_H), redundant through BUILT_SOURCES.
16383         * modules/fnmatch (Makefile.am): Remove explicit dependency on
16384         $(FNMATCH_H), redundant through BUILT_SOURCES.
16385         * modules/getopt (Makefile.am): Remove explicit dependency on
16386         $(GETOPT_H), redundant through BUILT_SOURCES.
16387         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
16388         redundant through BUILT_SOURCES.
16389         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
16390         redundant through BUILT_SOURCES.
16391         * modules/stdbool (Makefile.am): Remove explicit dependency on
16392         $(STDBOOL_H), redundant through BUILT_SOURCES.
16393         * modules/stdint (Makefile.am): Remove explicit dependency on
16394         $(STDINT_H), redundant through BUILT_SOURCES.
16395         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
16396         Remove explicit dependency on $(SYSEXITS_H).
16397         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
16398
16399 2005-07-18  Simon Josefsson  <jas@extundo.com>
16400
16401         * lib/check-version.c (check_version): Accept identical versions too.
16402
16403 2005-07-18  Bruno Haible  <bruno@clisp.org>
16404
16405         * modules/lock: New file.
16406         * MODULES.html.sh (Multithreading): New section.
16407
16408 2005-07-18  Bruno Haible  <bruno@clisp.org>
16409
16410         * m4/lock.m4: New file, from GNU gettext.
16411
16412 2005-07-18  Bruno Haible  <bruno@clisp.org>
16413
16414         * lib/lock.h: New file, from GNU gettext.
16415         * lib/lock.c: New file, from GNU gettext.
16416
16417 2005-07-18  Bruno Haible  <bruno@clisp.org>
16418
16419         * lib/lock.h (gl_once_t): New type.
16420         (gl_once_define, gl_once): New macros.
16421         * lib/lock.c (fresh_once): New variable.
16422         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
16423         functions.
16424
16425 2005-07-16  Simon Josefsson  <jas@extundo.com>
16426
16427         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
16428         workaround, suggested by Bruno.
16429
16430 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16431
16432         * modules/xalloc (Depends-on): Add xalloc-die.
16433         * modules/xvasprintf (Depends-on): Add xalloc-die.
16434
16435 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16436
16437         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
16438         with a minor change.
16439
16440 2005-07-15  Bruno Haible  <bruno@clisp.org>
16441
16442         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
16443         When using lib/poll.c, define poll as rpl_poll.
16444
16445 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
16446
16447         * modules/argp (Depends-on): Remove unlocked-io.
16448
16449 2005-07-14  Derek Price  <derek@ximbiot.com>
16450
16451         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
16452         for glob symlink bug.
16453
16454 2005-07-14  Bruno Haible  <bruno@clisp.org>
16455
16456         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
16457         Instead, test for *_unlocked function declarations directly.
16458
16459 2005-07-11  Simon Josefsson  <jas@extundo.com>
16460
16461         * modules/size_max: New file.
16462
16463         * modules/xsize: Depend on size_max module for size_max.m4.
16464
16465 2005-07-11  Simon Josefsson  <jas@extundo.com>
16466
16467         * lib/size_max.h: New file.
16468
16469 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16470
16471         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
16472         copyright symbol and the year.
16473         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
16474         (version_etc_va): Use parameterized copyright notice.
16475         Reword to conform to the current GNU coding standards.
16476
16477 2005-07-11  Karl Berry  <karl@gnu.org>
16478
16479         * doc/gnulib.texi (Quoting): new node.
16480         (Initial import): more info, from Patrice.
16481
16482 2005-07-11  Bruno Haible  <bruno@clisp.org>
16483
16484         * gnulib-tool (func_usage): Document option --avoid.
16485         (Command line options): Handle --avoid.
16486         (func_acceptable): New function.
16487         (func_modules_transitive_closure): Use it.
16488
16489 2005-07-11  Bruno Haible  <bruno@clisp.org>
16490
16491         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
16492         Reported by Jim Meyering.
16493
16494 2005-07-10  Bruno Haible  <bruno@clisp.org>
16495
16496         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
16497         Needed when size_t is smaller than 'unsigned int'.
16498         Reported by Paul Eggert.
16499
16500 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16501
16502         * modules/argp (Depends-on): Add unlocked-io
16503
16504 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16505
16506         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
16507         block of defines.
16508
16509 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16510
16511         * config/srclist.txt: Comment out regcomp.c, since we have a porting
16512         fix now.
16513
16514 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
16515         and Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
16518         in wint_t, not wchar_t.  Remove now-unnecessary cast.
16519
16520 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         * modules/regex (Files): Add lib/regex_internal.c,
16523         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
16524         (Depends-on): Add extensions.
16525         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
16526
16527 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16528
16529         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
16530         pathconf.
16531         * m4/same.m4 (gl_SAME): Likewise.
16532         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
16533
16534         * m4/regex.m4: Adjust to new libc regex implementation.
16535         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
16536         all the .c and .h parts of (the new) regex.
16537         Quote the m4 stuff better.
16538         Check for RE_ICASE bug of old gnulib.
16539         Check for REG_STARTEND of recent libc.
16540         Rename local variables from jm_* to gl_*.
16541         Quote operand of "test -f".
16542         Say "recent enough" version of libc, not "version 2".
16543         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
16544         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
16545         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
16546         Remove check for btowc, isascii.
16547         Require AM_LANGINFO_CODESET.
16548
16549 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16550
16551         * lib/regex.c, regex.h: Sync from libc.
16552         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
16553         * lib/regexec.c:
16554         New files, synced from libc, except that regex_internal.h
16555         currently has a small porting fix.
16556
16557 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16558
16559         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
16560         regex_internal.c, regexec.c.
16561         Add regex_internal.h too, but as a comment, since the libc version
16562         is currently broken in gnulib mode.
16563
16564 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16565
16566         Support programs like Emacs that use gnulib but not gettext.
16567         * MODULES.html.sh (Internationalization functions): Add gettext-h.
16568         * modules/gettext-h: New file.
16569         * modules/gettext (Files): Remove lib/gettext.h.
16570         (Depends-on): Add gettext-h.
16571         (Makefile.am): Remove lib_SOURCES.
16572         * modules/argmatch, modules/c-stack, modules/closeout:
16573         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
16574         * modules/execute, modules/file-type, modules/getaddrinfo:
16575         * modules/getopt, modules/human, modules/javacomp:
16576         * modules/javaexec, modules/mkdir-p, modules/obstack:
16577         * modules/openat, modules/pagealign_alloc, modules/pipe:
16578         * modules/quotearg, modules/regex, modules/rpmatch:
16579         * modules/unicodeio, modules/userspec, modules/version-etc:
16580         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
16581         * modules/xsetenv:
16582         Depend on gettext-h, not gettext.
16583
16584 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16585
16586         * gnulib-tool (func_import): Add support for 'public domain' license.
16587         * modules/alloca, modules/atexit, modules/memmove:
16588         Now public domain, not GPL.
16589         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
16590         * modules/realloc, modules/strerror, modules/strtod:
16591         Now LGPL, not GPL.
16592
16593 2005-07-05  Bruno Haible  <bruno@clisp.org>
16594
16595         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
16596         autoconf CVS. Needed for mingw.
16597
16598 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16599
16600         Remove the dependency of the strftime module on the tzset module.
16601         * modules/strftime (Depends-on): Remove dependency on tzset.
16602
16603 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16604
16605         Remove the dependency of the strftime module on the tzset module.
16606         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
16607         gl_FUNC_TZSET_CLOBBER.
16608
16609 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16610
16611         Remove the dependency of the strftime module on the tzset module.
16612         * lib/strftime.c (my_strftime)
16613         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
16614         Copy the input structure, to work around some of the bug with
16615         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
16616         Solaris releases, you should also use the tzset module, but we won't
16617         require it as a dependency any more since we don't want LGPLed code
16618         to depend on GPLed code.
16619
16620 2005-07-02  Jim Meyering  <jim@meyering.net>
16621
16622         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
16623         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
16624         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
16625         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
16626
16627 2005-07-02  Jim Meyering  <jim@meyering.net>
16628
16629         * lib/backupfile.c (backup_args): Change a `0' to NULL.
16630
16631 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
16632
16633         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
16634         declares only 'struct timespec;' (!).
16635
16636 2005-07-01  Jim Meyering  <jim@meyering.net>
16637
16638         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
16639         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
16640         * lib/save-cwd.c, tempname.c:
16641         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
16642         and don't include <sys/file.h>).
16643
16644 2005-06-29  Jim Meyering  <jim@meyering.net>
16645
16646         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
16647         type name.  Use the variable name instead.
16648         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
16649         Likewise.
16650
16651 2005-06-28  Simon Josefsson  <jas@extundo.com>
16652
16653         * modules/check-version (Files): Add check-version.m4.
16654
16655 2005-06-28  Simon Josefsson  <jas@extundo.com>
16656
16657         * m4/check-version.m4: New file, suggested by Jim Meyering
16658         <jim@meyering.net>.
16659
16660 2005-06-28  Simon Josefsson  <jas@extundo.com>
16661
16662         * lib/check-version.h, lib/check-version.c: New files.
16663
16664 2005-06-28  Simon Josefsson  <jas@extundo.com>
16665
16666         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
16667         collision with global variable.  Better indentation.  Don't
16668         increment buffer pointer beyond buffer end.  Based on comments
16669         from Paul Eggert <eggert@cs.ucla.edu>.
16670
16671         * lib/base64.h: Indent.
16672
16673 2005-06-28  Simon Josefsson  <jas@extundo.com>
16674
16675         * doc/gnulib.texi (Library version handling): New section.
16676
16677 2005-06-28  Jim Meyering  <jim@meyering.net>
16678
16679         * check-module (find_included_lib_files): Hard-code another
16680         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
16681         but modules/fts-lgpl (correctly) does not list those files.
16682
16683         * modules/canonicalize (Files): Add lib/pathmax.h.
16684
16685 2005-06-25  Simon Josefsson  <jas@extundo.com>
16686
16687         * modules/check-version: New file.
16688
16689 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
16690
16691         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
16692         initializer of struct addrinfo, as an indication that we don't
16693         care how many members the structure has.
16694
16695 2005-06-24  Derek Price  <derek@ximbiot.com>
16696         and Bruno Haible  <bruno@clisp.org>
16697
16698         Remove stat module & update lstat.
16699         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
16700         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16701         * m4/stat.m4: Remove this file.
16702
16703 2005-06-24  Derek Price  <derek@ximbiot.com>
16704         and Bruno Haible  <bruno@clisp.org>
16705
16706         Remove stat module & update lstat.
16707         * lib/stat.c: Remove this file...
16708         (slash_aware_lstat): ...moving this content and its support...
16709         * lib/lstat.c (rpl_lstat): ...into here.
16710         * lib/lstat.h: New file.
16711
16712 2005-06-24  Derek Price  <derek@ximbiot.com>
16713         and Bruno Haible  <bruno@clisp.org>
16714
16715         Remove stat module & update lstat.
16716         * config/srclist.txt (libc sources): Remove stat.
16717
16718 2005-06-24  Derek Price  <derek@ximbiot.com>
16719         and Bruno Haible  <bruno@clisp.org>
16720
16721         Remove stat module & update lstat.
16722         * MODULES.html.sh (stat): Remove.
16723         * MODULES.html: Regenerated.
16724         * modules/lstat (Description): Correct function name.
16725         (Files): Add "lstat.h".
16726         (Depends-on): Remove stat, add xalloc, stat-macros.
16727         * modules/stat: Remove this file.
16728         (Include): Add "lstat.h", remove <sys/stat.h>.
16729
16730 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16731
16732         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
16733         (ranged_convert): Don't save conversion in a temporary struct.
16734         This causes a warning with GCC 4.0.0, and anyway in the typical
16735         case it's not worth the extra 100 bytes or so of code.
16736         (ranged_convert, __mktime_internal): When calling a function via a
16737         pointer P, use P () rather than (*P) (), as we now assume C89 or
16738         better.
16739
16740 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16741
16742         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
16743         "who -r" failed to give output.  Problem reported by Tim Waugh.
16744
16745         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
16746         (xcalloc): Use it to avoid needless tests.
16747         Problem reported by Jim Meyering.
16748
16749 2005-06-20  Derek Price  <derek@ximbiot.com>
16750
16751         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
16752         unnecessary for Autoconfs > 2.59c.
16753
16754 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16755
16756         * lib/argp.h (__option_is_short): Check upper limit of
16757         __key. Isprint() requires its argument to have the value
16758         of an unsigned char or EOF.
16759
16760 2005-06-16  Jim Meyering  <jim@meyering.net>
16761
16762         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
16763         when either N or S is zero.
16764
16765 2005-06-16  Derek Price  <derek@ximbiot.com>
16766
16767         * m4/bison.m4: Declare YACC & YFLAGS precious.
16768
16769 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
16770
16771         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
16772         multibyte string or pattern, fall back on unibyte matching.
16773         Problem reported by James Youngman.
16774
16775 2005-06-08  Bruno Haible  <bruno@clisp.org>
16776
16777         * modules/csharpcomp: New file.
16778         * MODULES.html.sh (C#): Add csharpcomp.
16779
16780 2005-06-08  Bruno Haible  <bruno@clisp.org>
16781
16782         * m4/csharpcomp.m4: New file, from GNU gettext.
16783
16784 2005-06-08  Bruno Haible  <bruno@clisp.org>
16785
16786         * lib/csharpcomp.h: New file, from GNU gettext.
16787         * lib/csharpcomp.c: New file, from GNU gettext.
16788         * lib/csharpcomp.sh.in: New file, from GNU gettext.
16789
16790 2005-06-08  Bruno Haible  <bruno@clisp.org>
16791
16792         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
16793         warning on mingw.
16794
16795 2005-06-07  Derek Price  <derek@ximbiot.com>
16796
16797         Sync from CVS.
16798         * lib/glob_.h: Indent nested #ifdef.
16799
16800 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16801
16802         Sync from coreutils.
16803         Use "file name" when talking about file names, instead of "filename"
16804         or "path", as per the GNU coding standards.
16805         * lib/mkdir-p.c: Renamed from makepath.c.
16806         (make_dir_parents): Renamed from make_path.  All callers changed.
16807         * lib/mkdir-p.h: Likewise.  All includers changed.
16808         * lib/filenamecat.c: Renamed from path-concat.c.
16809         (file_name_concat): Renamed from path_concat.  All callers changed.
16810         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
16811         * lib/filenamecat.h: Likewise.  All includers changed.
16812         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
16813         in comments or local variable names.
16814         * lib/basename.c: Likewise.
16815         * lib/canonicalize.c, canonicalize.h: Likewise.
16816         * lib/dirname.c, dirname.h: Likewise.
16817         * lib/euidaccess.c: Likewise.
16818         * lib/exclude.c: Likewise
16819         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
16820         * lib/fsusage.c, fsuage.h: Likewise.
16821         * lib/fts.c, fts_.h: Likewise.
16822         * lib/getcwd.c: Likewise.
16823         * lib/getloadavg.c: Likewise.
16824         * lib/mkstemp.c: Likewise.
16825         * lib/mountlist.c, mountlist.h: Likewise.
16826         * lib/openat.c, openat.h: Likewise.
16827         * lib/readlink-stub.c: Likewise.
16828         * lib/readutmp.c, readutmp.h: Likewise.
16829         * lib/rename.c: Likewise.
16830         * lib/rmdir.c: Likewise.
16831         * lib/same.c: Likewise.
16832         * lib/savedir.c: Likewise.
16833         * lib/stripslash.c: Likewise.
16834         * lib/tempname.c: Likewise.
16835         * lib/xreadlink.c: Likewise.
16836         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
16837         All uses changed.
16838         * lib/exclude.h: Likewise.
16839
16840         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
16841         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
16842         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
16843         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
16844         * lib/pathmax.h: Include <limits.h> unconditionally, since other
16845         files have been getting away with it for years (MORE/BSD 4.3
16846         is extinct now).
16847         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
16848         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
16849
16850         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
16851         Define to 256, not 255, as per modern POSIX.
16852
16853 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16854
16855         Sync from coreutils.
16856         Use "file name" when talking about file names, instead of "filename"
16857         or "path", as per the GNU coding standards.
16858         * MODULES.html.sh: mkdir-p renamed from makepath.
16859         filenamecat renamed from path-concat.
16860         * modules/filenamecat: Renamed from modules/path-concat.
16861         (Files): filenamecat.h and filenamecat.c renamed from
16862         path-concat.h and path-concat.c.
16863         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
16864         (Include): filenamecat.h, not path-concat.h.
16865         * modules/mkdir-p: Renamed from modules/makepath.
16866         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
16867         makepath.c.
16868         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
16869         (Include): mkdir-p.h, not makepath.h.
16870
16871 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16872
16873         Sync from coreutils.
16874         * m4/mkdir-p.m4: Renamed from makepath.m4.
16875         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
16876         Rename files from makepath.c to mkdir-p.c, and from
16877         makepath.h to mkdir-p.h.
16878         * m4/filenamecat.m4: Renamed from path-concat.m4.
16879         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
16880         Rename files from path-concat.c to filenamecat.c,
16881         and from path-concat.h to filenamecat.h.
16882         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
16883         "file name" in local variables or comments.
16884         * m4/rename.m4: Likewise.
16885
16886 2005-06-01  Bruno Haible  <bruno@clisp.org>
16887
16888         * modules/csharpexec: New file.
16889         * MODULES.html.sh (C#): New section.
16890
16891 2005-06-01  Bruno Haible  <bruno@clisp.org>
16892
16893         * m4/csharp.m4: New file, from GNU gettext.
16894         * m4/csharpexec.m4: New file, from GNU gettext.
16895
16896 2005-06-01  Bruno Haible  <bruno@clisp.org>
16897
16898         * lib/csharpexec.h: New file, from GNU gettext.
16899         * lib/csharpexec.c: New file, from GNU gettext.
16900         * lib/csharpexec.sh.in: New file, from GNU gettext.
16901
16902 2005-05-31  Derek Price  <derek@ximbiot.com>
16903             Paul Eggert  <eggert@cs.ucla.edu>
16904
16905         Sync from cvs.
16906         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
16907
16908 2005-05-31  Derek Price  <derek@ximbiot.com>
16909             Paul Eggert  <eggert@cs.ucla.edu>
16910
16911         Sync from cvs.
16912         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
16913
16914 2005-05-29  Derek Price  <derek@ximbiot.com>
16915
16916         * config/srclist.txt (glob_.h, glob.c): Add these files.
16917
16918 2005-05-29  Derek Price  <derek@ximbiot.com>
16919
16920         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
16921         * modules/glob: New file.
16922         * modules/getlogin_r: Add link to POSIX spec in description.
16923
16924 2005-05-29  Derek Price  <derek@ximbiot.com>
16925             Paul Eggert  <eggert@cs.ucla.edu>
16926
16927         * m4/glob.m4: New file.
16928
16929 2005-05-29  Derek Price  <derek@ximbiot.com>
16930             Paul Eggert  <eggert@cs.ucla.edu>
16931
16932         * lib/glob_.h, lib/glob.c: New files.
16933
16934 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
16935
16936         * modules/fts (Files): Remove m4/inttypes-pri.m4.
16937         * modules/fts-lgpl (Depends-on): Remove gettext.
16938
16939 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
16940
16941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
16942         and don't require gt_INTTYPES_PRI.
16943
16944 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
16945
16946         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
16947
16948         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
16949         the configuration hassle isn't worth it.
16950         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
16951         (LONGEST_MODIFIER, PRIuMAX): Remove.
16952
16953 2005-05-27  Bruno Haible  <bruno@clisp.org>
16954
16955         * lib/getlogin_r.h: Remove second include of <stddef.h>.
16956
16957 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
16958
16959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
16960         _POSIX_PTHREAD_SEMANTICS for Solaris.
16961
16962 2005-05-25  Derek Price  <derek@ximbiot.com>
16963
16964         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
16965
16966 2005-05-25  Derek Price  <derek@ximbiot.com>
16967             Paul Eggert  <eggert@cs.ucla.edu>
16968
16969         * modules/getlogin_r, m4/getlogin_r.m4: New files.
16970         * lib/getlogin_r.c, getlogin_r.h: New files.
16971
16972 2005-05-25  Bruno Haible  <bruno@clisp.org>
16973             Derek Price  <derek@ximbiot.com>
16974
16975         * lib/getlogin_r.h: Simplify API documentation.
16976
16977 2005-05-23  Derek Price  <derek@ximbiot.com>
16978
16979         * modules/minmax (Files): Add m4/minmax.m4.
16980         (configure.ac): Add gl_MINMAX.
16981
16982 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16983
16984         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
16985         so that unistd-safer.h (GPL'ed code) need not be included.
16986
16987 2005-05-22  Bruno Haible  <bruno@clisp.org>
16988
16989         * m4/minmax.m4: New file.
16990         Based on a patch by Derek Price <derek@ximbiot.com>.
16991
16992 2005-05-22  Bruno Haible  <bruno@clisp.org>
16993
16994         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
16995         (INT64_MIN): Fix definition.
16996         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
16997
16998         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
16999         NEED_SIGNED_INT_TYPES.
17000
17001         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
17002         HAVE_SYSTEM_INTTYPES.
17003
17004 2005-05-22  Bruno Haible  <bruno@clisp.org>
17005
17006         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
17007         Also include <sys/param.h> if it defines MIN, MAX.
17008         Based on a patch by Derek Price <derek@ximbiot.com>.
17009
17010 2005-05-21  Jim Meyering  <jim@meyering.net>
17011
17012         * modules/fts (Files): Add m4/inttypes-pri.m4.
17013         (Depends-on): Add lstat and remove gettext.  Alphabetize.
17014
17015 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17016
17017         New fts module.
17018         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
17019         (setup_dir, free_dir): New functions.
17020         (enter_dir, leave_dir): Define trivial
17021         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
17022         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
17023         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
17024         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
17025         Move to fts-cycle.c.
17026         (fts_open): Use setup_dir.
17027         (fts_close): Use free_dir.
17028         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
17029         This adds a label and some gotos, but the alternatives were messier.
17030         Check for memory allocation failure when entering a dir.
17031         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
17032         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
17033         (FTS): New member fts_cycle, that is a union that contains the
17034         old active_dir_ht and cycle_state.  All uses changed to mention
17035         fts_cycle.ht and fts_cycle.state.
17036         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
17037         fts.c, with the following changes:
17038         (setup_dir, free_dir): New functions.
17039         (enter_dir): Now returns bool.  Return true if successful, false
17040         if memory exhausted.  All callers changed.
17041         Do not bother partly cleaning up on
17042         memory allocation failure; that is free_dir's job.
17043         However, free ad if hash_insert fails, to avoid memory leak.
17044         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
17045         fts->fts_options to see which union member to use.
17046
17047 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17048
17049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
17050         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
17051
17052 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17053
17054         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
17055
17056 2005-05-20  Jim Meyering  <jim@meyering.net>
17057
17058         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
17059         Now a macro, to pacify GCC.
17060
17061 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
17062
17063         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
17064         of -1.
17065
17066 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
17067
17068         * lib/chown.c (rpl_chown): Return -1 on failure.
17069
17070 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17071
17072         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
17073         Don't check for stddef.h.
17074         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
17075         don't use its results.
17076         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
17077         since we include them unconditionally.  Don't require
17078         AM_STDBOOL_H, since stdbool is a prerequisite.
17079         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
17080         since we assume C89 or better.
17081         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
17082         as we don't use their results.
17083         Don't check for fchdir, memmove, memset, strrchr, as we use
17084         them unconditionally.
17085         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
17086         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
17087
17088 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17089
17090         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
17091         Include <stddef.h> unconditionally, since we assume C89 now.
17092         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
17093         * lib/fts.c: Include fts_.h first, to check interface.
17094         Do not include intprops.h; no longer needed.
17095         Include cycle-check.h and hash.h, since fts_.h no longer does.
17096         Remove unnecessary casts of closedir to void.
17097         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
17098         decide whether to decrement nlinks.
17099         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
17100         (FTS): Use struct hash_table * instead of Hash_table, so that
17101         we no longer need to include hash.h here.
17102
17103 2005-05-18  Jim Meyering  <jim@meyering.net>
17104
17105         * modules/dirfd (License): Change to LGPL.  Most of the code
17106         is already in the public domain.
17107
17108 2005-05-18  Jim Meyering  <jim@meyering.net>
17109
17110         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
17111         Reported by Yoann Vandoorselaere.
17112
17113 2005-05-17  Jim Meyering  <jim@meyering.net>
17114
17115         * m4/fts.m4: New file, from coreutils.
17116
17117 2005-05-17  Jim Meyering  <jim@meyering.net>
17118
17119         * lib/fts.c, lib/fts_.h: New files, from coreutils.
17120
17121 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17122
17123         Sync from coreutils.
17124         * m4/unlinkdir.m4: New file.
17125
17126 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17127
17128         Sync from coreutils.
17129         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
17130         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
17131         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
17132         White space changes only.
17133         * lib/makepath.c (make_path): Port to hosts where leading "//" is
17134         special.
17135         * lib/yesno.c: Include getline.h, not ctype.h.
17136         (yesno): Don't remove leading white space; POSIX doesn't allow it.
17137         Use getline to remove arbitrary restriction on response length.
17138
17139 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17140
17141         * config/srclist-update: Spell out "Street" in FSF postal
17142         mail address; this is the style the FSF seems to prefer.
17143
17144         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
17145         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
17146         this updates FSF postal mail address.
17147
17148         Sync from coreutils.
17149         * modules/unlinkdir: New file.
17150         * modules/yesno (Depends-on): Add getline.
17151         * MODULES.html.sh (File system functions): Add unlinkdir.
17152
17153 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17154
17155         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
17156         lib/strsep.h:
17157         Change the initial comment to refer to GPL, not LGPL.
17158         gnulib-tool will change it to LGPL as needed.
17159
17160         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
17161         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
17162         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
17163         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
17164         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
17165         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
17166         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
17167         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
17168         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
17169         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
17170         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
17171         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
17172         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
17173         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
17174         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
17175         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
17176         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
17177         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
17178         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
17179         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
17180         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
17181         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
17182         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
17183         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
17184         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
17185         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
17186         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
17187         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
17188         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
17189         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
17190         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
17191         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
17192         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
17193         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
17194         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
17195         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
17196         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
17197         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
17198         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
17199         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
17200         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
17201         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
17202         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
17203         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
17204         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
17205         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
17206         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
17207         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
17208         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
17209         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
17210         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
17211         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
17212         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
17213         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
17214         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
17215         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
17216         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
17217         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
17218         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
17219         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
17220         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
17221         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
17222         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
17223         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
17224         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
17225         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
17226         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
17227         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
17228         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
17229         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
17230         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
17231         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
17232         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
17233         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
17234         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
17235         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
17236         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
17237         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
17238         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
17239         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
17240         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
17241         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
17242         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
17243         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
17244         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
17245         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
17246         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
17247         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
17248         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
17249         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
17250         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
17251         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
17252         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
17253         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
17254         lib/yesno.c, lib/yesno.h:
17255         Update FSF postal mail address.
17256
17257 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17258
17259         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
17260         tests/test-memmem.c, tests/test-stpncpy.c:
17261         Update FSF postal mail address.
17262
17263 2005-05-13  Bruno Haible  <bruno@clisp.org>
17264
17265         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
17266         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
17267         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
17268         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
17269         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
17270         Add support for 64-bit integers in the MSVC compiler.
17271
17272 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
17273
17274         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
17275
17276 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
17277
17278         * gnulib-tool (func_import): Sort and uniquify recommended includes.
17279
17280 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17281
17282         * doc/getdate.texi (General date syntax): Don't say that date
17283         date --iso-8601=ns generates acceptable dates; it doesn't yet.
17284         Problem reported by Nic Ferrier.
17285
17286 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17287
17288         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
17289         specified in ai_socktype. Fix invalid ai_protocol
17290         check. ai_protocol is usually set to 0 or depending on
17291         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
17292         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
17293         ai_socktype / ai_protocol in the returned addrinfo structure.
17294
17295 2005-05-10  Simon Josefsson  <jas@extundo.com>
17296
17297         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
17298         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17299
17300 2005-05-10  Karl Berry  <karl@gnu.org>
17301
17302         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
17303         (from http://www.gnu.org/licenses).
17304         * doc/COPYING.LIB: also rename to COPYING.LESSER.
17305         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
17306         fdl.texi suffices.
17307
17308 2005-05-10  Karl Berry  <karl@gnu.org>
17309
17310         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
17311         (COPYING.DOC): remove.
17312
17313         * config/srclist-update: new FSF address.
17314
17315 2005-05-10  Derek Price  <derek@ximbiot.com>
17316
17317         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
17318         possible.
17319
17320 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17321             Bruno Haible  <bruno@clisp.org>
17322
17323         * modules/inet_ntop: New file.
17324         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17325         inet_ntop.
17326
17327 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17328             Bruno Haible  <bruno@clisp.org>
17329
17330         * m4/inet_ntop.m4: New file.
17331
17332 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17333             Bruno Haible  <bruno@clisp.org>
17334
17335         * lib/inet_ntop.h: New file.
17336         * lib/inet_ntop.c: New file, from glibc with modifications.
17337
17338 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
17339
17340         * modules/time_r (License): Change to LGPL.
17341         * modules/extensions (License): Change to LGPL.  Actually,
17342         the license is more permissive than that, but currently gnulib-tool
17343         doesn't know how to handle more-permissive licenses.
17344
17345         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
17346         Problem reported by Dave Love.
17347
17348 2005-05-08  Jim Meyering  <jim@meyering.net>
17349
17350         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
17351         blank.
17352
17353 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
17354
17355         * modules/argmatch (Depends-on): Add stdbool.
17356         * modules/backupfile (Depends-on): Likewise.
17357         * modules/chdir-long (Depends-on): Likewise.
17358         * modules/closeout (Depends-on): Likewise.
17359         * modules/cycle-check (Depends-on): Likewise.
17360         * modules/dirname (Depends-on): Likewise.
17361         * modules/fnmatch (Depends-on): Likewise.
17362         * modules/fsusage (Depends-on): Likewise.
17363         * modules/fwriteerror (Depends-on): Likewise.
17364         * modules/getcwd (Depends-on): Likewise.
17365         * modules/getloadavg (Depends-on): Likewise.
17366         * modules/hard-locale (Depends-on): Likewise.
17367         * modules/makepath (Depends-on): Likewise.
17368         * modules/mountlist (Depends-on): Likewise.
17369         * modules/nanosleep (Depends-on): Likewise.
17370         * modules/posixtm (Depends-on): Likewise.
17371         * modules/quotearg (Depends-on): Likewise.
17372         * modules/readtokens (Depends-on): Likewise.
17373         * modules/readtokens0 (Depends-on): Likewise.
17374         * modules/readutmp (Depends-on): Likewise.
17375         * modules/save-cwd (Depends-on): Likewise.
17376         * modules/strftime (Depends-on): Likewise.
17377         * modules/userspec (Depends-on): Likewise.
17378         * modules/utimecmp (Depends-on): Likewise.
17379         * modules/xgetcwd (Depends-on): Likewise.
17380         * modules/xnanosleep (Depends-on): Likewise.
17381         * modules/xstrtod (Depends-on): Likewise.
17382         * modules/yesno (Depends-on): Likewise.
17383
17384 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17385
17386         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
17387         needless checks.
17388
17389 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17390
17391         Merge from coreutils.  Among other things,
17392         add bulletproofing for cases where stdin, stdout, or stderr are closed.
17393         * lib/fd-safer.c: New file.
17394         * lib/fcntl-safer.h, open-safer.c: Remove.
17395         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
17396         * lib/dup-safer.c: Include unistd-safer.h first.
17397         Don't include errno.h.
17398         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
17399         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
17400         * lib/file-type.c: Rely on file-type.h change.
17401         * lib/getloadavg.c: Include unistd-safer.h.
17402         (getloadavg): Use safer open.
17403         * lib/getusershell.c: Include "stdio-safer.h".
17404         (getusershell): Use safer fopen.
17405         * lib/long-options.c (long_options): Use NULL rather than 0.
17406         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
17407         'free'.
17408         * lib/modechange.c: Likewise.
17409         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
17410         (MODE_DONE): New constant.
17411         (struct mode_change): Remove 'next' member.
17412         (make_node_op_equals): New function; like the old one of the
17413         same name, except it allocates an array.
17414         (mode_compile, mode_create_from_ref): Use it.
17415         (mode_compile): Allocate result as an array, not a linked list.
17416         Parse octal string ourself, so that we catch mistakes like "+0".
17417         (mode_adjust): Arg is an array, not a linked list.
17418         * lib/modechange.c: Include stat-macros.h, xalloc.h.
17419         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
17420         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
17421         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
17422         Remove.  This is now stat-macros.h's job.
17423         (talloc): Remove.  All callers replaced by xalloc, so that
17424         our invokers don't have to worry about reporting memory failures.
17425         (make_node_op_equals): Remove.
17426         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
17427         New constants.
17428         (struct mode_change): Moved here from modechange.h.
17429         (mode_append_entry): Remove.
17430         (mode_compile): Remove MASKED_OPS arg, since it encouraged
17431         apps to have incorrect behavior.  Use simpler algorithm for head
17432         and tail.  Don't futz with umask; that's now the job of mode_adjust.
17433         Detect more invalid usages rather than having somewhat-random behavior.
17434         Don't insert an "a=" action, as that leads to incorrect behavior.
17435         (mode_compile, mode_create_from_ref): Return NULL on error instead
17436         of an enum, since now there's only one way to have an error.  All
17437         callers changed.
17438         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
17439         at the correct time.  Simplify calculation of "+u" and its ilk.
17440         Don't mishandle "+X".
17441         (mode_free): Remove "register" and localize decls.
17442         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
17443         (struct mode_change): Move to modechange.c; callers don't
17444         need to see this stuff.
17445         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
17446         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
17447         (mode_change, mode_adjust): Reflect the new signatures noted above.
17448         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
17449         that might redefine system include files.
17450         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
17451         (my_usleep): Use NULL rather than (void *) 0.
17452         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
17453         Use siginterrupt to specify that system calls should be interrupted.
17454         (rpl_nanosleep): Move initialization of suspended closer to call of
17455         my_usleep.
17456         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
17457         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
17458         (desirable_utmp_entry): New function.
17459         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
17460         using x2nrealloc, to simplify logic.
17461         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
17462         size calculation.  Do not assume utmp file is a regular file.
17463         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
17464         (READ_UTMP_CHECK_PIDS): New constant.
17465         * lib/save-cwd.c: Include unistd-safer.h.
17466         (save_cwd): Use fd_safer.
17467         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
17468         [!_LIBC] Include "stat-macros.h" instead.
17469         * lib/unistd-safer.h (fd_safer): New decl.
17470
17471 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17472
17473         * modules/getloadavg (Depends-on): Add unistd-safer.
17474         * modules/getusershell (Depends-on): Add stdio-safer.
17475         * modules/lstat (Depends-on): Remove xalloc.
17476         * modules/mkstemp (Depends-on): Add stat-macros.
17477         * modules/modechange (Depends-on): Remove xstrtol.
17478         Add stat-macros, xalloc.
17479         * modules/save-cwd (Depends-on): Add unistd-safer.
17480         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
17481         * modules/unistd-safer (Files): Add lib/fd-safer.c
17482         (Makefile.am): Remove lib_SOURCES.
17483
17484         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
17485         Remove fcntl-safer; unistd-safer supersedes it.
17486
17487 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17488
17489         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
17490         AC_HEADER_STAT.
17491         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
17492         (gl_PREREQ_CHOWN): Remove.
17493         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
17494         it.  Don't require AC_HEADER_STAT.
17495         (gl_PREREQ_LSTAT): Remove.
17496         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
17497         Don't require AC_HEADER_STAT.
17498         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
17499         (gl_PREREQ_RMDIR): Remove.
17500         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
17501         mention stat-macros.h or AC_HEADER_STAT, since we'll make
17502         the stat-macros module a prerequisite.
17503         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
17504         * m4/filemode.m4 (gl_FILEMODE): Likewise.
17505         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
17506         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
17507         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
17508         variable names.
17509         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
17510         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
17511         variable prefixes.
17512         * m4/fcntl-safer.m4: Remove.
17513         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
17514         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
17515         Invoke gl_PREREQ_FD_SAFER.
17516         (gl_PREREQ_FD_SAFER): New macro.
17517         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
17518         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
17519         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
17520         Remove duplicate call to AC_LIBOBJ(readutmp).
17521         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
17522
17523         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
17524         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
17525
17526 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17527
17528         * MODULES.html.sh (Misc): Add byteswap.
17529
17530 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
17531
17532         * modules/getcwd (Depends-on): Add extensions.
17533         * modules/openat (Depends-on): Likewise.
17534
17535 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
17536
17537         * modules/byteswap: New file.
17538
17539 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
17540
17541         * m4/byteswap.m4: New file.
17542
17543 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
17544
17545         * lib/byteswap_.h: New file.
17546
17547 2005-04-25  Karl Berry  <karl@gnu.org>
17548
17549         * m4/gettext.m4: Update from GNU gettext 0.14.4.
17550
17551 2005-04-25  Albert Chin  <china@thewrittenword.com>
17552
17553         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
17554         Toolkit C bug.
17555
17556 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
17557
17558         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
17559         (func_ln_if_changed) Remove forcibly for no error message
17560         in case file does not exist.
17561
17562 2005-04-19  Simon Josefsson  <jas@extundo.com>
17563
17564         * gnulib-tool (Options): Make --symlink mean --symbolic.
17565
17566 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
17567
17568         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
17569
17570 2005-04-16  Simon Josefsson  <jas@extundo.com>
17571
17572         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
17573
17574 2005-04-15  Simon Josefsson  <jas@extundo.com>
17575
17576         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
17577
17578 2005-04-15  Simon Josefsson  <jas@extundo.com>
17579
17580         * gnulib-tool: Rename --symlink to --symbolic.
17581
17582 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
17583
17584         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
17585         symbolic links to files instead of copying/moving.  Add --aux-dir,
17586         specifying directory relative --dir where auxiliary build tools
17587         are placed.
17588
17589 2005-04-14  Bruno Haible  <bruno@clisp.org>
17590
17591         * modules/allocsa (License): Change to LGPL.
17592         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17593
17594 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
17595
17596         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
17597         that "UTC +1 second" continues to work.  Problem reported
17598         by Dmitry V. Levin.
17599         (relunit_snumber): New rule.
17600         (relunit): Use it.
17601
17602 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17603
17604         * lib/getdate.y (universal_time_zone_table): New constant.
17605         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
17606         universal_time_zone_table.
17607         (lookup_zone): Prefer universal_time_zone_table to
17608         local_time_zone_table, so that "GMT" time stamps are allowed in
17609         London during the summer.  Problem reported by Ian Abbott.
17610
17611 2005-04-12  Jim Meyering  <jim@meyering.net>
17612
17613         * lib/human.c (humblock): Set *options even when returning due to
17614         xstrtoumax conversion failure.  Thanks to a used-uninitialized
17615         warning from gcc-4.
17616
17617 2005-04-09  Jim Meyering  <jim@meyering.net>
17618
17619         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
17620         -Wuninitialized: initialize tm0.tm_year.
17621
17622 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
17623
17624         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
17625         count, since there's no maximum.  All uses changed.
17626         Add member dsts_seen.
17627         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
17628         not being INT_MAX.
17629         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
17630         Use pc_rels_seen to decide whther a date is absolute.
17631
17632         * lib/getdate.y (number): Don't overwrite year.
17633         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
17634         check.
17635
17636 2005-04-02  Simon Josefsson  <jas@extundo.com>
17637
17638         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
17639         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
17640
17641 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
17642
17643         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
17644         where no absolute path name can be longer than PATH_MAX.
17645
17646 2005-03-27  Jim Meyering  <jim@meyering.net>
17647
17648         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
17649
17650 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
17651
17652         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
17653         "one's complement" -> "ones' complement" in comment, as per Knuth.
17654         "value of type" -> "type or expression" in comment.
17655         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
17656
17657 2005-03-26  Jim Meyering  <jim@meyering.net>
17658
17659         Comment nits.
17660         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
17661         Correct typos: s/or/of/.
17662
17663 2005-03-26  Jim Meyering  <jim@meyering.net>
17664
17665         * modules/check-include-files: Move to ../ and rename to...
17666         * check-module: ...this.
17667
17668 2005-03-25  Jim Meyering  <jim@meyering.net>
17669
17670         * modules/xvasprintf (Files): Add xalloc.h.
17671
17672 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
17673
17674         * modules/gettext (Files): config/config.rpath ->
17675         build-aux/config.rpath
17676         * modules/iconv (Files): Likewise.
17677         Problem reported by Oskar Liljeblad.
17678
17679 2005-03-23  Jim Meyering  <jim@meyering.net>
17680
17681         * modules/check-include-files: New script to check for
17682         missing dependencies, multiple includes, etc.
17683
17684         * modules/c-strtold (Depends-on): Add xalloc.
17685         * modules/c-strtod (Depends-on): Add xalloc.
17686         * modules/hash (Depends-on): Add xalloc.
17687         (Files): Remove lib/xalloc.h.
17688
17689         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
17690         * modules/userspec (Files): Add lib/inttostr.h.
17691
17692 2005-03-23  Jim Meyering  <jim@meyering.net>
17693
17694         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
17695
17696 2005-03-22  Jim Meyering  <jim@meyering.net>
17697
17698         * modules/stat-macros: New module.
17699         * modules/canonicalize, modules/euidaccess, modules/file-type,
17700         * modules/filemode, modules/lchown, modules/makepath,
17701         * modules/rmdir, modules/stat: Depend on new stat-macros module
17702         rather than listing lib/stat-macros.h manually.
17703         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
17704
17705 2005-03-22  Jim Meyering  <jim@meyering.net>
17706
17707         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
17708
17709 2005-03-22  Bruno Haible  <bruno@clisp.org>
17710
17711         * config/srclist.txt: Replace target directory 'config' with
17712         'build-aux'.
17713         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
17714         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
17715         ../build-aux/.
17716
17717 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
17718
17719         * modules/chdir-long (Depends-on): Add mempcpy.
17720
17721         * modules/acl, modules/backupfile, modules/c-strtod,
17722         modules/c-strtold, modules/canon-host, modules/canonicalize,
17723         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
17724         modules/exclude, modules/exitfail, modules/file-type,
17725         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
17726         modules/getdate, modules/getline, modules/getpagesize,
17727         modules/getpass, modules/getugroups, modules/group-member,
17728         modules/hard-locale, modules/hash, modules/human, modules/idcache,
17729         modules/inttostr, modules/long-options, modules/makepath,
17730         modules/md5, modules/memcasecmp, modules/memcoll,
17731         modules/modechange, modules/mountlist, modules/path-concat,
17732         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
17733         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
17734         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
17735         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
17736         modules/strftime, modules/strndup, modules/strverscmp,
17737         modules/timespec, modules/unlocked-io, modules/userspec,
17738         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
17739         modules/yesno:
17740         Remove lib_SOURCES line from Makefile.am section, as this is now
17741         done automatically by the corresponding Autoconf macro.
17742
17743 2005-03-21  Jim Meyering  <jim@meyering.net>
17744
17745         Changes imported from coreutils.
17746
17747         * lib/cycle-check.c: Don't include xalloc.h.
17748
17749         * lib/path-concat.c: Don't include assert.h.
17750         (path_concat): Remove assertion that would have triggered
17751         for ABASE starting with more than one slash.
17752         Reported by Andreas Schwab.
17753
17754         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
17755         properly when ABASE is an absolute file name.
17756         Correct the description of this function.
17757         Include <assert.h>.
17758         Add an assertion and a test driver.
17759         This fixes a bug introduced on 2004-07-02.
17760         Andreas Schwab reported the resulting failure of cp --parents:
17761         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
17762
17763 2005-03-21  Jim Meyering  <jim@meyering.net>
17764
17765         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
17766         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
17767
17768 2005-03-21  Jim Meyering  <jim@meyering.net>
17769         and  Paul Eggert  <eggert@cs.ucla.edu>
17770
17771         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
17772         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
17773         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
17774         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
17775         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
17776         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
17777         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
17778         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
17779         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
17780         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
17781         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
17782         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
17783         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
17784         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
17785         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
17786         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
17787         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
17788         for these modules.
17789
17790 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
17791
17792         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
17793         (which shouldn't happen), generate nothing instead of returning 0
17794         immediately, so that nstrftime (NULL, ...) doesn't return 0.
17795
17796 2005-03-16  Bruno Haible  <bruno@clisp.org>
17797
17798         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
17799         HAVE_LONGLONG_64BIT.
17800
17801 2005-03-16  Bruno Haible  <bruno@clisp.org>
17802
17803         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
17804         HAVE_LONGLONG_64BIT.
17805
17806 2005-03-16  Bruno Haible  <bruno@clisp.org>
17807
17808         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
17809         HAVE_LONGLONG_64BIT.
17810
17811 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
17812
17813         * lib/strftime.c (my_strftime): Prepend space to format so that we can
17814         reliably distinguish strftime failure from empty output on POSIX
17815         hosts.
17816
17817 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
17818
17819         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
17820         (iconv_string): Don't guess a size-zero buffer, as that might cause
17821         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
17822         result would be 'too large', where 'too large' is (heuristically)
17823         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
17824         overflow concerns.  This will prevent some unwanted malloc failures
17825         when the inputs are very large.
17826
17827 2005-03-15  Karl Berry  <karl@gnu.org>
17828
17829         * config/srclist.txt (config.rpath): from gettext.
17830         * config/config.rpath: update.
17831
17832 2005-03-15  Bruno Haible  <bruno@clisp.org>
17833
17834         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
17835         to 'negate'.
17836
17837         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
17838         variable.
17839
17840         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
17841         results.
17842
17843 2005-03-14  Simon Josefsson  <jas@extundo.com>
17844
17845         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
17846         <fx@gnu.org>.
17847
17848 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
17849
17850         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
17851         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
17852         intprops.h.
17853         * lib/strtol.c: Likewise.
17854
17855 2005-03-14  Jim Meyering  <jim@meyering.net>
17856
17857         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
17858         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
17859         to be nonzero so that we (and caller) can detect the difference
17860         between a valid zero-length expansion and an error return, even
17861         when the underlying strftime fails before writing anything into
17862         that location.
17863
17864 2005-03-14  Bruno Haible  <bruno@clisp.org>
17865
17866         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
17867         Update from GNU gettext 0.14.3.
17868
17869 2005-03-10  Jim Meyering  <jim@meyering.net>
17870
17871         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
17872
17873 2005-03-10  Jim Meyering  <jim@meyering.net>
17874
17875         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
17876         so that this module works on systems without fchdir.
17877
17878 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
17879
17880         Factor int-properties macros into a single file, except for
17881         glibc-related files.
17882         * lib/intprops.h: New file.
17883         * lib/getloadavg.c: Include it instead of limits.h.
17884         (INT_STRLEN_BOUND): Remove.
17885         * lib/human.c: Include intprops.h.
17886         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
17887         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
17888         302/1000.
17889         * lib/inttostr.h: Include intprops.h instead of limits.h.
17890         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
17891         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
17892         for consistency with intprops.h.
17893         (time_t_is_integer, twos_complement_arithmetic): Use them.
17894         * lib/sig2str.h: Include <signal.h>, intprops.h.
17895         (INT_STRLEN_BOUND): Remove.
17896         * lib/strftime.c (TYPE_SIGNED): Remove.
17897         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
17898         * lib/strtol.c: Adjust comments to match intprops.h.
17899         * lib/userspec.c: Include intprops.h.
17900         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
17901         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
17902         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
17903         instead of rolling our own expressions.
17904         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
17905
17906         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
17907         instead of int.
17908         (my_strftime): Do not mishandle years close to INT_MAX, by doing
17909         the right thing even if adding 1900 would overflow.  Similarly
17910         for tm_mon + 1 and tm_yday + 1.
17911         Make %Y always equivalent to %C%y, and similarly for %G and %g.
17912         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
17913         (DO_SIGNED_NUMBER): New macro.
17914         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
17915
17916 2005-03-07  Bruno Haible  <bruno@clisp.org>
17917
17918         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
17919
17920 2005-03-07  Bruno Haible  <bruno@clisp.org>
17921
17922         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
17923
17924 2005-03-04  Derek R. Price  <derek@ximbiot.com>
17925
17926         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
17927         (func_import): Only replace files via --import when they have actually
17928         changed.
17929
17930 2005-03-03  Derek R. Price  <derek@ximbiot.com>
17931
17932         * m4/mmap-anon.m4: New file.
17933         * m4/pagealign_alloc.m4: New file.
17934
17935 2005-03-03  Derek R. Price  <derek@ximbiot.com>
17936             Bruno Haible  <bruno@clisp.org>
17937
17938         * modules/pagealign_alloc: New file.
17939         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
17940
17941 2005-03-03  Derek R. Price  <derek@ximbiot.com>
17942             Bruno Haible  <bruno@clisp.org>
17943
17944         * lib/pagealign_alloc.h: New file.
17945         * lib/pagealign_alloc.c: New file.
17946
17947 2005-03-03  Bruno Haible  <bruno@clisp.org>
17948
17949         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
17950         Use an all-permissive copyright notice, recommended by RMS.
17951
17952 2005-03-02  Bruno Haible  <bruno@clisp.org>
17953
17954         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
17955         of AIX, the replacement has to be done only after <string.h> is
17956         included, therefore not in config.h. stpncpy.h does the replacement,
17957         and stpncpy.c uses it.
17958
17959 2005-03-02  Bruno Haible  <bruno@clisp.org>
17960
17961         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
17962         stpncpy.c uses it.
17963
17964 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17965
17966         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
17967         The workaround isn't strictly needed for POSIX conformance, and
17968         it's too much of a pain to configure and maintain.  We'll ask
17969         people to fix their kernels instead.
17970         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
17971         (NANOSLEEP_BUG_WORKAROUND): Remove.
17972         (xnanosleep): Remove the workaround.
17973
17974 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17975
17976         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
17977         Reported by Derek Price.
17978         (Include): Add "timespec.h".
17979
17980         * modules/xnanosleep (Depends-on): Remove gethrxtime.
17981
17982 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
17983
17984         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
17985         to detect nanosleep bug.
17986
17987 2005-03-01  Bruno Haible  <bruno@clisp.org>
17988
17989         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
17990
17991 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17992
17993         * modules/gethrxtime: New file.
17994         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
17995         (Depends-on): Add gethrxtime.
17996         (configure.ac): Add gl_XNANOSLEEP.
17997         (Makefile.am): Remove lib_SOURCES line.
17998
17999 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18000
18001         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
18002         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
18003
18004 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18005
18006         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
18007         * lib/timespec.h (gettime): Return void, since it always
18008         succeeds now.  All uses changed.
18009         * lib/gettime.c (gettime) Likewise.
18010         [HAVE_NANOTIME]: Prefer nanotime.
18011         Assume gettimeofday succeeds, as POSIX requires.
18012         Assime time () succeeds, since other code already does.
18013         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
18014         (timespec_subtract): Remove.
18015         (NANOSLEEP_BUG_WORKAROUND): New constant.
18016         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
18017         things considerably.  Use it only on GNU/Linux hosts, since the
18018         workaround shouldn't be needed elsewhere.
18019
18020 2005-02-24  Bruno Haible  <bruno@clisp.org>
18021
18022         * modules/gettext (Files): Add m4/glibc2.m4.
18023
18024 2005-02-24  Bruno Haible  <bruno@clisp.org>
18025
18026         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
18027         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
18028         * m4/progtest.m4:
18029         Update from GNU gettext 0.14.2.
18030         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
18031
18032 2005-02-24  Bruno Haible  <bruno@clisp.org>
18033
18034         * lib/localcharset.c: Update from GNU gettext 0.14.2.
18035         * lib/config.charset: Update from GNU gettext 0.14.2.
18036
18037 2005-02-24  Bruno Haible  <bruno@clisp.org>
18038
18039         * lib/gettext.h: Update from GNU gettext 0.14.2.
18040
18041 2005-02-23  Simon Josefsson  <jas@extundo.com>
18042
18043         * m4/iconvme.m4: New file.
18044
18045 2005-02-23  Jim Meyering  <jim@meyering.net>
18046
18047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
18048         change.
18049         Thanks to Bruno Haible for catching it.
18050
18051 2005-02-22  Simon Josefsson  <jas@extundo.com>
18052
18053         * modules/iconvme: New file.
18054
18055         * MODULES.html.sh: Add iconvme.
18056
18057 2005-02-22  Simon Josefsson  <jas@extundo.com>
18058
18059         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
18060
18061 2005-02-22  Simon Josefsson  <jas@extundo.com>
18062
18063         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
18064
18065 2005-02-22  Jim Meyering  <jim@meyering.net>
18066
18067         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
18068         s/ifndef/ifdef/.
18069
18070 2005-02-20  Neil Conway  <neilc@samurai.com>
18071
18072         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
18073         returned by OSX/Darwin if the specified buffer is not large
18074         enough for the hostname.
18075
18076 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18077
18078         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
18079         pass it to _help, otherwise the latter coredumps trying to
18080         dereference state.root_argp.
18081
18082 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18083
18084         * modules/chdir-long (Depends-on): Add memrchr.
18085         * modules/memrchr (Files): Add lib/memrchr.h.
18086         (Include): "memrchr.h".
18087
18088 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18089
18090         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
18091
18092 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18093
18094         * lib/memrchr.h: New file.
18095         * lib/chdir-long.c: Include it.
18096         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
18097         Don't bother including stddef.h.
18098
18099 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18100
18101         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
18102         inclusion.
18103         Include <sys/types.h>, for dev_t.
18104         (ME_DUMMY, ME_REMOTE): Move from here....
18105         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
18106         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
18107         Dmitry V. Levin.
18108         Include mountlist.h first, to test the interface.
18109
18110 2005-01-29  Bruno Haible  <bruno@clisp.org>
18111
18112         * lib/progname.c (program_name): Initialize.
18113         Needed when linking statically on MacOS X.
18114
18115 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18116
18117         Sync from coreutils.
18118         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
18119         (Depends-on): Add c-strtod.
18120         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
18121
18122 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18123
18124         Sync from coreutils.
18125         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
18126
18127         Remove files that are specific to coreutils.
18128         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
18129
18130 2005-01-28  Bruno Haible  <bruno@clisp.org>
18131
18132         * modules/javacomp: New file.
18133         * MODULES.html.sh (Java): Add javacomp.
18134
18135 2005-01-28  Bruno Haible  <bruno@clisp.org>
18136
18137         * m4/javacomp.m4: New file, from GNU gettext.
18138
18139 2005-01-28  Bruno Haible  <bruno@clisp.org>
18140
18141         * lib/javacomp.sh.in: New file, from GNU gettext.
18142         * lib/javacomp.h: New file, from GNU gettext.
18143         * lib/javacomp.c: New file, from GNU gettext.
18144
18145 2005-01-26  Simon Josefsson  <jas@extundo.com>
18146
18147         * lib/gai_strerror.c: Use GPL in header.
18148
18149 2005-01-26  Bruno Haible  <bruno@clisp.org>
18150
18151         * modules/javaexec: New file.
18152         * MODULES.html.sh (Java): Add javaexec.
18153
18154 2005-01-26  Bruno Haible  <bruno@clisp.org>
18155
18156         * m4/javaexec.m4: New file, from GNU gettext.
18157
18158 2005-01-26  Bruno Haible  <bruno@clisp.org>
18159
18160         * lib/javaexec.sh.in: New file, from GNU gettext.
18161         * lib/javaexec.h: New file, from GNU gettext.
18162         * lib/javaexec.c: New file, from GNU gettext.
18163
18164 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18165
18166         * modules/lchown (Depends-on): Remove lchown.h
18167
18168 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18169
18170         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
18171         must be defined if the header file was not found, in order
18172         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
18173
18174 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18175
18176         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
18177         initializers for struct pentry_state.
18178         (__argp_error): Check return value of __asprintf
18179         (__argp_failure): Translate error message
18180
18181         * lib/argp-parse.c: Removed braces around the expansion of N_()
18182
18183 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18184
18185         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
18186         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
18187         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
18188         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
18189         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
18190         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
18191         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
18192         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
18193         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
18194         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
18195         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
18196         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
18197         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
18198         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
18199         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
18200         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
18201         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
18202         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
18203         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
18204         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
18205         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
18206         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
18207         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
18208         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
18209         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
18210         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
18211         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
18212         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
18213         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
18214         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
18215         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
18216         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
18217         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
18218         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
18219         xstrtol.m4, xstrtoumax.m4, yesno.m4:
18220         Use an all-permissive copyright notice, recommended by RMS.
18221
18222 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18223
18224         * modules/chdir-long (Depends-on): Remove mempcpy.
18225
18226 2005-01-21  Jim Meyering  <jim@meyering.net>
18227
18228         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
18229         same value as for Solaris 9.
18230
18231         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
18232         component length.  This included changing the parameter to be
18233         of type `char *' rather than `char const *'.
18234         * lib/chdir-long.h (chdir_long): Update prototype.
18235
18236         * lib/openat.c (fdopendir, fstatat): New functions.
18237         * lib/openat.h: Include headers required for use of DIR and struct
18238         stat.
18239         [AT_SYMLINK_NOFOLLOW]: Define.
18240         (fdopendir, fstatat): Add prototypes.
18241
18242 2005-01-21  Bruno Haible  <bruno@clisp.org>
18243
18244         * modules/classpath: New file.
18245         * MODULES.html.sh (Java): Add classpath.
18246
18247 2005-01-21  Bruno Haible  <bruno@clisp.org>
18248
18249         * lib/classpath.h: New file, from GNU gettext.
18250         * lib/classpath.c: New file, from GNU gettext.
18251
18252 2005-01-20  Simon Josefsson  <jas@extundo.com>
18253
18254         * modules/version-etc-fsf: New file.
18255
18256 2005-01-20  Simon Josefsson  <jas@extundo.com>
18257
18258         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
18259         * lib/version-etc.c: Remove version_etc_copyright.
18260         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
18261         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
18262
18263 2005-01-20  Simon Josefsson  <jas@extundo.com>
18264
18265         * lib/base64.h (isbase64): Add.
18266
18267         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
18268         using a unsigned prototype, don't inline.
18269         (base64_decode): Use it.
18270
18271 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18272
18273         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
18274         it.
18275
18276 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18277
18278         * lib/save-cwd.c (save_cwd): Remove code to support the case
18279         where fchdir is missing or flaky.
18280
18281 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18282
18283         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
18284
18285 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18286
18287         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
18288         AC_LIBSOURCES now does this.
18289         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
18290         with new ullong_max module.
18291
18292 2005-01-19  Bruno Haible  <bruno@clisp.org>
18293
18294         * modules/sh-quote: New file.
18295         * MODULES.html.sh (Executing programs): Add sh-quote.
18296
18297 2005-01-19  Bruno Haible  <bruno@clisp.org>
18298
18299         * lib/sh-quote.h: New file, from GNU gettext.
18300         * lib/sh-quote.c: New file, from GNU gettext.
18301
18302 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18303
18304         Merge from coreutils.
18305         * m4/ullong_max.m4: New file.
18306         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
18307         (gl_MACROS): Assume localeconv exists.
18308
18309 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18310
18311         Merge changes from coreutils, as described below in several
18312         changelogs dated today.
18313
18314         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
18315         (O_DIRECTORY): Remove; not needed here, since "." must be
18316         a directory.  All uses removed.
18317         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
18318         universal on Suns, and we also need to test for IRIX.
18319         Revamp code to use 'if' rather than '#if'.
18320         Avoid unnecessary comparison of cwd->desc to 0.
18321
18322         * lib/utimens.c (futimens): Robustify the previous patch, by checking
18323         for known valid error numbers rather than observed invalid ones.
18324
18325 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18326
18327         * modules/ullong_max: New file.
18328
18329         * modules/chdir-long, modules/openat: New files.
18330         * modules/save-cwd (Depends-on): Depend on chdir-long.
18331         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
18332
18333 2005-01-18  Jim Meyering  <jim@meyering.net>
18334
18335         Merge from coreutils.
18336         * m4/chdir-long.m4, m4/openat.m4: New files.
18337         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
18338         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
18339         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
18340         is sane and DOES follow symlinks.  Besides, testing 20 different
18341         systems found no broken chown implementations.
18342         Prompted by a change in rsync's copy of this macro.
18343         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
18344
18345         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
18346
18347         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
18348         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
18349         NULL-means-set-to-current-time semantics.
18350         Remove temporary file immediately, rather than waiting
18351         for configure's at-exit trap code to do it.
18352
18353 2005-01-18  Jim Meyering  <jim@meyering.net>
18354
18355         * lib/version-etc.c (version_etc_copyright): Update copyright date.
18356
18357         * lib/utimens.c (futimens): Account for the fact that futimes
18358         can also fail with errno == ENOSYS or errno == ENOENT.
18359         Patch from Dmitry V. Levin.
18360
18361         Change the name of the robust chdir function from chdir to chdir_long.
18362         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
18363         (restore_cwd): Use chdir_long, not chdir.
18364         * lib/chdir-long.c: Renamed from chdir.c.
18365         * lib/chdir-long.h: Renamed from chdir.h.
18366         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
18367         Hurd.
18368
18369 2005-01-18  Bruno Haible  <bruno@clisp.org>
18370
18371         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
18372         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
18373         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
18374         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
18375         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
18376         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
18377         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
18378         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
18379         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
18380         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
18381         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
18382         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
18383         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
18384         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
18385         Use an all-permissive copyright notice, recommended by RMS.
18386
18387 2005-01-18  Bob Proulx  <bob@proulx.com>
18388
18389         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
18390         simplify offsetof() macro construct to avoid compile failure with
18391         native HP-UX 11.0 ANSI C compiler.
18392
18393 2005-01-17  Bruno Haible  <bruno@clisp.org>
18394
18395         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
18396         redundant because stpncpy.m4 takes care of it.
18397
18398 2005-01-17  Bruno Haible  <bruno@clisp.org>
18399
18400         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
18401
18402 2005-01-17  Bruno Haible  <bruno@clisp.org>
18403
18404         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
18405         used.
18406
18407 2005-01-17  Bruno Haible  <bruno@clisp.org>
18408
18409         * lib/fwriteerror.h (fwriteerror): Change specification to include
18410         fclose.
18411         * lib/fwriteerror.c: Include <stdbool.h>.
18412         (fwriteerror): At the end, close the file stream. Record whether
18413         stdout was already closed.
18414
18415 2005-01-17  Bruno Haible  <bruno@clisp.org>
18416
18417         * lib/execute.c (environ): Declare if needed.
18418         * lib/pipe.c (environ): Likewise.
18419         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
18420
18421 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18422
18423         * modules/argp: Depend on vsnprintf
18424
18425 2005-01-10  Jim Meyering  <jim@meyering.net>
18426
18427         * modules/closeout (Depends-on): Add atexit.
18428
18429 2005-01-06  Bruno Haible  <bruno@clisp.org>
18430
18431         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
18432
18433 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18434
18435         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
18436         definitions to be after all include files, to avoid collisions.
18437         Problem reported by Bob Proulx.
18438
18439 2005-01-04  Jim Meyering  <jim@meyering.net>
18440
18441         Changes imported from coreutils.
18442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
18443         as the mkstemp template, use a temporary directory and an
18444         8.3-friendly template to avoid trouble on systems like DJGPP.
18445         Reported by Juan M. Guerrero via Stepan Kasal.
18446         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
18447         close. Remove the temporary directory right away, rather than waiting
18448         for configure's at-exit trap code to do it.
18449         Suggestion from Stepan Kasal.
18450
18451 2005-01-01  Simon Josefsson  <jas@extundo.com>
18452
18453         * gnulib-tool: Print #include directives when --import'ing.
18454
18455 2004-12-28  Simon Josefsson  <jas@extundo.com>
18456
18457         * tests/test-base64.c: Include required header files.  Remove
18458         unused variables.
18459
18460 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18461
18462         * modules/error (Depends-on): Remove gettext.
18463
18464 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18465
18466         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
18467         not needed.  This removes a dependency on the gettext module.
18468         [defined _LIBC]: Do not include <libintl.h>; not needed.
18469
18470 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
18471
18472         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
18473         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
18474
18475 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
18476
18477         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
18478         HAVE_DECL_STRTOLD.
18479
18480 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18481
18482         * modules/getdate (Depends-on): Remove alloca-opt.
18483
18484 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18485
18486         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
18487
18488 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18489
18490         * lib/argp-parse.c: Include <stddef.h>.
18491         (alignof, alignto): New macros.
18492         (parser_init): Don't assume that void * is aligned sufficiently
18493         for struct option.
18494
18495         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
18496         need to extend the stack.
18497         (YYINITDEPTH): New macro, so that the initial stack isn't overly
18498         large.
18499
18500 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18501
18502         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
18503
18504 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18505
18506         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
18507         (2004-10-24) change.  Apparently this was a false alarm.
18508
18509         * modules/getdate: Depend on alloca-opt, not alloca.
18510
18511 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18512
18513         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
18514         Remove now-obsolete comment about AIX.
18515         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
18516         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
18517         (YYMAXDEPTH): New macro.
18518
18519 2004-12-18  Simon Josefsson  <jas@extundo.com>
18520
18521         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
18522
18523 2004-12-18  Bruno Haible  <bruno@clisp.org>
18524
18525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
18526
18527 2004-12-18  Bruno Haible  <bruno@clisp.org>
18528
18529         * lib/fatal-signal.c (fatal_signals): Make non-const.
18530         (init_fatal_signals): New function.
18531         (uninstall_handlers, install_handlers): Ignore signals that were set to
18532         SIG_IGN.
18533         (at_fatal_signal): Call init_fatal_signals.
18534         (init_fatal_signal_set): Likewise. Ignore signals that were set to
18535         SIG_IGN.
18536         Reported by Paul Eggert.
18537
18538 2004-12-18  Bruno Haible  <bruno@clisp.org>
18539
18540         * doc/alloca.texi: New file.
18541         * doc/alloca-opt.texi: New file.
18542
18543 2004-12-17  Jim Meyering  <jim@meyering.net>
18544
18545         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
18546         Otherwise, install-sh could exit with improper exit status when
18547         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
18548
18549 2004-12-16  Simon Josefsson  <jas@extundo.com>
18550
18551         * tests/test-base64.c: Add license.
18552
18553 2004-12-15  Stepan Kasal  <address@hidden>
18554
18555         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
18556
18557 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
18558
18559         * modules/getcwd (Files): Add m4/d-ino.m4.
18560         Suggested by Mark D. Baushke.
18561
18562 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
18563
18564         * lib/getdate.y (textint): New member "negative".
18565         (time_zone_hhmm): New function.
18566         Expect 14 shift-reduce conflicts, not 13.
18567         (o_colon_minutes): New rule.
18568         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
18569         (yylex): Set the "negative" member of signed numbers.
18570
18571 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
18572
18573         * doc/getdate.texi (Time of day items, Time zone items):
18574         Describe new formats +00:00, UTC+00:00.
18575
18576 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
18579         spurious "-l"s.  Problem reported by Stepan Kasal.
18580
18581 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
18582
18583         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
18584         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
18585
18586 2004-12-04  Simon Josefsson  <jas@extundo.com>
18587
18588         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
18589         Vandoorselaere <yoann@prelude-ids.org>.
18590
18591 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
18592
18593         Changes imported from coreutils.
18594         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
18595         exist.
18596         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
18597
18598 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
18599
18600         Changes imported from coreutils.
18601         * lib/hard-locale.c: Assume <locale.h> exists.
18602         Include "strdup.h".
18603         (GLIBC_VERSION): New macro.
18604         (hard_locale): Assume setlocale exists.
18605         Rewrite to avoid #ifdef.
18606         Use strdup rather than malloc + strcpy.
18607         * lib/human.c: Assume <locale.h> exists.
18608         (human_readable): Assume localeconv exists.
18609
18610 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
18611
18612         * modules/hard-locale (Depends-on): Add strdup.
18613
18614 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
18615
18616         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
18617         convert T2, not T.  (Imported from libc.)
18618
18619 2004-11-30  Simon Josefsson  <jas@extundo.com>
18620
18621         * modules/restrict (License): Change to LGPL.
18622
18623 2004-11-30  Simon Josefsson  <jas@extundo.com>
18624
18625         * m4/restrict.m4: Add copyright and copying conditions.
18626
18627 2004-11-30  Simon Josefsson  <jas@extundo.com>
18628
18629         * m4/base64.m4: New file.
18630
18631 2004-11-30  Simon Josefsson  <jas@extundo.com>
18632
18633         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
18634         base64.
18635
18636         * tests/test-base64.c: New file.
18637
18638         * modules/base64: New file.
18639
18640 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
18641
18642         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
18643         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
18644
18645         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
18646
18647 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
18648
18649         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
18650         (__getcwd.c): Don't restore errno; glibc doesn't.
18651         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
18652         first, falling back to our code only if its results look suspicious.
18653         Ensure that the resulting buffer is only as large as necessary.
18654
18655         * lib/readutmp.c: Include readutmp.h first.
18656         Include <errno.h>, since readutmp.h no longer does that.
18657         * lib/readutmp.h: Don't include <errno.h>,
18658         <sys/param.h>, <time.h>; not needed to establish interface.
18659         (errno): Remove decl.
18660         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
18661         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
18662         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
18663
18664 2004-11-28  Simon Josefsson  <jas@extundo.com>
18665
18666         * lib/base64.h, base64.c: New file.
18667
18668 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18669
18670         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
18671
18672 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
18673
18674         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
18675         (Depends-on): Remove pathmax, same.  Add mempcpy.
18676         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
18677         (Makefile.am): Append getcwd.h to lib_SOURCES.
18678         (Include): Add getcwd.h.
18679         (Maintainer): Change from Jim Meyering to "all, glibc",
18680         since getdate now uses intended-for-glibc code.
18681         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
18682         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
18683
18684 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18685
18686         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
18687         HP's ANSI C compiler.
18688         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
18689         Declaring int functions causes warnings on some modern systems and
18690         shouldn't be needed to compile on ancient ones.
18691         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
18692         defined.
18693
18694         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
18695         with the following changes.
18696         (__set_errno): Parenthesize properly.
18697         Include <stdbool.h>.
18698         (MIN, MAX, MATCHING_INO): New macros.
18699         (__getcwd): Define with prototype, not K&R form.
18700         Use heuristics to allocate default buffer on stack if possible.
18701         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
18702         behavior, and to avoid the PATH_MAX limit when computing
18703         ../../../../...
18704         Use MATCHING_INO to compare inode number to file.
18705         Check for arithmetic overflow in size calculations.
18706         Fix bug in reallocation of dot array that caused getcwd to fail
18707         on directories nested deeper than 75.
18708         Be more careful about saving errno on error.
18709         Do not use realloc; use only free+malloc, as this is a bit
18710         more flexible and avoids a needless copy operation.
18711         Do not inspect st_dev and st_ino for symbolic links; POSIX
18712         doesn't specify the latter.
18713         Check for closedir errors.
18714         Avoid needless casts.
18715         Use "#ifdef weak_alias" around weak_alias, to be like other
18716         glibc code.
18717         The following changes to getcwd.c have effect only when used in
18718         gnulib; they have no effect inside glibc proper.
18719         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
18720         as alloca isn't used.
18721         (alloca, __alloca): Likewise.
18722         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
18723         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18724         unconditionally, as gnulib assumes C89 or better.
18725         Do not include <sys/param.h>.
18726         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
18727         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
18728         better.
18729         (NULL) [!defined NULL]: Remove; we assume C89 or better.
18730         Include <dirent.h> in a way that is compatible with modern Autoconf.
18731         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
18732         New macros, if not already defined.
18733         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
18734         Use "_LIBC", not "defined _LIBC", for consistency.
18735         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
18736         a mempcpy module.
18737         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
18738         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
18739         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
18740         credit only to Jim Meyering and adjust the copyright dates.
18741         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
18742         <stdlib.h>, <unistd.h>, "pathmax.h".
18743         Instead, include "xgetcwd.h" (first) and "getcwd.h".
18744         (INITIAL_BUFFER_SIZE): Remove.
18745         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
18746
18747 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18748
18749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
18750         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
18751         Use the _ONCE methods, for efficiency.
18752         Check for fcntl.h.  In test program, include <errno.h>
18753         and <fcntl.h> if available.  Remove old K&R cruft from
18754         test program.  Check for common errors in GNU/Linux,
18755         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
18756         don't do AC_LIBOBJ, as that's getcwd.m4's job.
18757         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
18758         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
18759         name accordingly.
18760         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
18761         accommodate new getcwd.c.
18762         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
18763         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
18764         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
18765         that's all we need now.
18766
18767 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18768
18769         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
18770         argp-parse.c depends on getopt internals, that means we should
18771         always use our getopt, to be on the safe side.
18772         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
18773         order not to spoil the result of an eventual previous invocation
18774         of gl_GETOPT_SUBSTITUTE.
18775
18776 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18777
18778         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
18779         redefinition warnings. To avoid them, include the defines
18780         in `#if !defined __need_getopt ... #endif'. The only place
18781         where __getopt_argv_const is used is in definitions
18782         of getopt_long and getopt_long_only below, which are as well
18783         protected by `#ifndef __need_getopt'.
18784         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
18785         __need_getopt after including <stdio.h> and <unistd.h> These
18786         headers might have defined it.
18787
18788 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
18789
18790         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
18791
18792 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
18793
18794         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
18795         (futimens): New function, which uses futimes if available.
18796         (futimens, utimens): Support timespec==NULL, with same semantics
18797         as utime and utimens.
18798         * lib/utimens.h (futimens): New decl.
18799
18800 2004-11-23  Jim Meyering  <jim@meyering.net>
18801
18802         * lib/getopt_.h: Remove trailing blanks.
18803
18804 2004-11-23  Jim Meyering  <jim@meyering.net>
18805
18806         * lib/__fpending.c: Add comment.
18807
18808 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
18809
18810         * modules/canonicalize (Depends-on): Add xreadlink.
18811         Problem reported by James Youngman.
18812
18813 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18814
18815         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
18816         New macros.
18817         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
18818         optopt): Use them instead of invoking ## directly; otherwise, the
18819         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
18820
18821 2004-11-19  Bruno Haible  <bruno@clisp.org>
18822
18823         * lib/strtok_r.c: Move comments from here...
18824         * lib/strtok_r.h: ... to here.
18825
18826 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18827
18828         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
18829         implementations that mishandle size_t overflow.
18830
18831 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
18834         might fail.  Problem reported by Yoann Vandoorselaere.
18835         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
18836         implementations that mishandle size_t overflow.
18837
18838 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18839
18840         * modules/canon-host (Depends-on): Add strdup.
18841
18842 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18843
18844         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
18845
18846 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18847
18848         * lib/canon-host.c: Include "strdup.h".
18849         (canon_host): Use getaddrinfo if available, so that IPv6 works.
18850         Use strdup instead of malloc/strcpy to duplicate strings.
18851
18852         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
18853         (human_space_before_unit): New constant.
18854         * lib/human.c (human_readable): Support it.
18855
18856         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
18857         (xgetcwd): Set errno correctly when failing.
18858         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
18859         the failure is actually due to a PATH_MAX problem.
18860
18861         Further getopt changes to make it more likely that glibc will
18862         buy the changes back.
18863         * lib/getopt.c (POSIXLY_CORRECT): New constant.
18864         (getopt): Use it, so to preserve glibc semantic
18865         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
18866         when compiling for libc.
18867         * lib/getopt_.h (__getopt_argv_const): Bring it back.
18868         (getopt_long, getopt_long_only): Use it.
18869
18870         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
18871         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
18872         (getopt): Argv is now char * const *, as per standard.
18873         (_getopt_internal_r, _getopt_internal): Argv is now char **,
18874         not char *__getopt_argv_const *.
18875         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
18876         _getopt_long_only_r): Likewise.
18877         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
18878         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
18879         _getopt_long_r, _getopt_long_only_r): Likewise.
18880         * lib/getopt_.h (__getopt_argv_const): Remove.
18881         (getopt): Argv is now char * const *, as per standard.
18882
18883         * lib/getdate.y (tORDINAL): New token.
18884         (day, relunit): Allow it for relative times.
18885         (relative_time_table): Use tORDINAL for ordinals.
18886
18887 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18888
18889         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
18890         Document that "second" isn't allowed as an ordinal number.
18891
18892 2004-11-16  Jim Meyering  <jim@meyering.net>
18893
18894         * modules/closeout (Depends-on): Add fpending.
18895
18896 2004-11-15  Jim Meyering  <jim@meyering.net>
18897
18898         * lib/closeout.c: Include "__fpending.h" once again.
18899         Include <stdbool.h>.
18900         (close_stdout): Don't fail just because stdout was closed initially,
18901         since some programs don't write to stdout in the normal course of
18902         operation (other than --version and --help), and we don't want this
18903         function to make e.g. `touch file >&-' fail.
18904         But do fail if it was closed and someone has tried to write to it.
18905         E.g., `printf foo >&-' must fail.
18906
18907 2004-11-13  Jim Meyering  <jim@meyering.net>
18908
18909         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
18910
18911 2004-11-12  Simon Josefsson  <jas@extundo.com>
18912
18913         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
18914         small doc fix is still pending.
18915
18916 2004-11-11  Simon Josefsson  <jas@extundo.com>
18917
18918         * modules/strtok_r: New file.
18919
18920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18921         strtok_r.
18922
18923 2004-11-11  Simon Josefsson  <jas@extundo.com>
18924
18925         * m4/strtok_r.m4: New file.
18926
18927         * m4/getopt.m4: Replace opterr.
18928
18929 2004-11-11  Simon Josefsson  <jas@extundo.com>
18930
18931         * lib/strtok_r.h, strtok_r.c: New file.
18932
18933 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18934
18935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
18936         of replacing opterr, getopt, etc.  This should handle the
18937         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
18938
18939 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18940
18941         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
18942         we can stop lying to compilers about the constness of argv when we
18943         are compiled outside glibc.
18944         (getopt, getopt_long, getopt_long_only): Use it.
18945         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
18946         _getopt_internal, getopt): Likewise.
18947         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
18948         _getopt_long_only_r): Likewise.
18949         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
18950         _getopt_long_r, _getopt_long_only_r): Likewise.
18951
18952         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
18953         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
18954         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
18955         the other external symbols.
18956         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
18957         declaration, since the above renaming now works around collisions.
18958
18959 2004-11-11  Jim Meyering  <jim@meyering.net>
18960
18961         * lib/linebreak.c: Remove trailing blanks.
18962         * lib/alloca_.h: Likewise.
18963         * lib/acosl.c: Likewise.
18964         * lib/euidaccess.c: Likewise.
18965         * lib/allocsa.h: Likewise.
18966
18967 2004-11-10  Simon Josefsson  <jas@extundo.com>
18968
18969         * m4/getaddrinfo.m4: New file.
18970
18971 2004-11-10  Simon Josefsson  <jas@extundo.com>
18972
18973         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
18974
18975 2004-11-10  Simon Josefsson  <jas@extundo.com>
18976
18977         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18978         getaddrinfo.
18979
18980         * modules/getaddrinfo: New file.
18981
18982 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18983
18984         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
18985
18986 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
18987
18988         * lib/mktime.c (SHR): New macro, which is a portable
18989         substitute for >> that should work even on Crays.
18990         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
18991         Problem reported by Mark D. Baushke in
18992         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
18993         * lib/getdate.y (SHR): Likewise.
18994         (tm_diff): Use it.
18995         * lib/strftime.c (SHR): Likewise.
18996         (tm_diff): Use it.
18997         * lib/quotearg.c (struct quoting_options): Use unsigned int for
18998         quote_these_too, so that right shifts are well defined.  All uses
18999         changed.
19000
19001 2004-11-10  Jim Meyering  <jim@meyering.net>
19002
19003         Ensure that no close failure goes unreported.
19004         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
19005         return early when it seems there's nothing to flush.
19006         Don't include __fpending.h.
19007
19008 2004-11-10  Jim Meyering  <jim@meyering.net>
19009
19010         * modules/closeout (Depends-on): Remove fpending.
19011
19012 2004-11-10  Jim Meyering  <jim@meyering.net>
19013
19014         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
19015
19016 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19017
19018         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
19019         gl_FUNC_STRFTIME.
19020         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
19021         and AC_REQUIRE when possible, to avoid duplicate checks.
19022         Check for <wchar.h>.
19023
19024 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19025
19026         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
19027
19028 2004-11-09  Bruno Haible  <bruno@clisp.org>
19029
19030         * m4/sockpfaf.m4: New file.
19031
19032 2004-11-05  Bruno Haible  <bruno@clisp.org>
19033
19034         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
19035         Reported by Mark D. Baushke <mdb@cvshome.org>.
19036
19037 2004-11-04  Bruno Haible  <bruno@clisp.org>
19038
19039         2004-09-11  Bruno Haible  <bruno@clisp.org>
19040                 * allocsa.valgrind: New file.
19041         2004-02-06  Bruno Haible  <bruno@clisp.org>
19042                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
19043                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
19044                 Reported by Christopher Seip <chris.seip@hp.com>.
19045
19046 2004-11-04  Bruno Haible  <bruno@clisp.org>
19047
19048         * modules/allocsa (Files): Add lib/allocsa.valgrind.
19049         (Makefile.am): Distribute it.
19050
19051 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19052
19053         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
19054         with errno == ERANGE if the buffer is too small.
19055         Problem reported by Mark D. Baushke.
19056
19057 2004-11-03  Albert Chin  <china@thewrittenword.com>
19058             Paul Eggert  <eggert@cs.ucla.edu>
19059
19060         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
19061         equivalent, substitute $ac_type for equivalent type rather than
19062         blindly using uint32_t *always* which won't work if uint32_t is not
19063         available.  Define _UINT32_T to work around typedef of uint32_t if
19064         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
19065         2.5.1.
19066
19067 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19068
19069         * m4/jm-macros.m4: Sync from coreutils.
19070         (gl_MACROS): Check for mbrlen, for pathchk.
19071         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
19072
19073 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19074
19075         * lib/xreadlink.c (MAXSIZE): New macro.
19076         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
19077         size does not exceed MAXSIZE.  Avoid cast.
19078         As suggested by Mark D. Baushke in
19079         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
19080         if readlink fails with buffer size just under MAXSIZE, try again
19081         with MAXSIZE.
19082
19083 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19084
19085         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
19086
19087 2004-11-02  Derek R. Price  <derek@ximbiot.com>
19088         and  Paul Eggert  <eggert@cs.ucla.edu>
19089
19090         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
19091         (get_date): Overparenthesize to avoid GCC warning.
19092
19093 2004-11-02  Bruno Haible  <bruno@clisp.org>
19094
19095         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
19096         returns void.
19097
19098 2004-11-02  Bruno Haible  <bruno@clisp.org>
19099
19100         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
19101         function returns void.
19102
19103 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
19104
19105         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
19106         fflush_unlocked, flockfile, funlockfile, funlockfile,
19107         fputs_unlocked, putc_unlocked.
19108
19109 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
19110
19111         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
19112         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
19113         already declared.
19114
19115 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         * modules/getdate (Files): Add doc/getdate.texi.
19118         (Depends-on): Add setenv, xalloc.
19119
19120 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19121
19122         * lib/getdate.y: Add support for TZ="foo" within a date string.
19123         Fix some bugs near time_t boundaries.  Reject dates with
19124         out-of-range components, e.g., "Sept 31".
19125         Include <stdlib.h>, "setenv.h", "xalloc.h".
19126         (ISDIGIT_LOCALE): Remove; unused.
19127         Note that the TZ and time functions used here are not reentrant.
19128         (mktime_ok, get_tz): New functions.
19129         (TZBUFSIZE): New constant.
19130         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
19131         This requires that we sometimes generate our own TZ="XXX..." setting.
19132
19133 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19134
19135         * doc/getdate.texi: New file, from coreutils with modifications for
19136         the new TZ parsing.
19137
19138 2004-10-27  Derek R. Price  <derek@ximbiot.com>
19139
19140         * lib/mktime.c (not_equal_tm): Remove redundant check.
19141
19142 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19143
19144         * modules/regex (lib_SOURCES): Add regex.c.
19145         Reported by James Youngman in
19146         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
19147
19148 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19149
19150         * lib/getdate.y: Use Bison 1.875 features, and some minor
19151         code cleanups.  This change does not affect semantics.
19152         Don't include <stdlib.h>; no longer needed.
19153         Don't include unlocked-io.h; only the "#if TEST" code uses
19154         stdio, and performance isn't crucial there.
19155         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
19156         Bison 1.875 features as described below.
19157         All uses of "PC." replaced by "pc->".
19158         (YYSTYPE): Add a forward declaration.
19159         (yylex, yyerror): Use full prototypes in forward decls.
19160         Use "%pure-parser" rather than obsolescent "%pure_parser".
19161         Use %parse-param and %lex-param instead of obsolescent
19162         YYPARSE_PARAM and YYLEX_PARAM.
19163         (meridian_table, month_and_day_table, time_units_table,
19164         relative_time_table, time_zone_table, military_table,
19165         lookup_zone, lookup_word, get_date):
19166         Use NULL instead of 0 where appropriate.
19167         (to_hour): Avoid abort (), to avoid a dependency on
19168         stdlib.h.
19169         (yyerror, yylex): Now accepts parser_control * arg.
19170         (main) [TEST]: Use '\0' rather than 0 for char.
19171
19172 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19173
19174         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
19175
19176 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19177
19178         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
19179         It's now the caller's responsibility to handle the case where
19180         !HAVE_GETPAGESIZE && !defined getpagesize.
19181
19182         * lib/mktime.c (leapyear): Arg is long int, not int.
19183
19184 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
19185
19186         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
19187
19188 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19189
19190         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
19191         missing.  Problem reported by James Youngman.
19192
19193 2004-10-16  Simon Josefsson  <jas@extundo.com>
19194
19195         * gnulib-tool: Fix comments.  Fix parse problem.
19196         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
19197
19198 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
19199
19200         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
19201         implementation of getopt_long.  Problem reported by Alexander Taler in:
19202         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
19203
19204 2004-10-15  Bruno Haible  <bruno@clisp.org>
19205
19206         * gnulib-tool: Untabify. Initialize supplied_libname.
19207         (func_usage): More homogenous output.
19208         (func_modules_transitive_closure, func_modules_to_filelist,
19209         func_emit_lib_Makefile_am): New functions.
19210         (func_import): New function, extracted from big case statement. Use
19211         func_get_license, func_modules_transitive_closure,
19212         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
19213         opt_lgpl. Don't use test -a, as it's not portable.
19214         (func_create_testdir): Use func_modules_transitive_closure,
19215         func_modules_to_filelist, func_emit_lib_Makefile_am.
19216
19217 2004-10-15  Bruno Haible  <bruno@clisp.org>
19218
19219         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
19220
19221 2004-10-15  Bruno Haible  <bruno@clisp.org>
19222
19223         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
19224         the portions belonging to each module.
19225         Suggested by Derek Robert Price <derek@ximbiot.com>.
19226
19227 2004-10-12  Simon Josefsson  <jas@extundo.com>
19228
19229         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
19230         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
19231         to real functions.
19232
19233 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19234
19235         * modules/vsnprintf: New file.
19236
19237 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19238
19239         * m4/vsnprintf.m4: New file.
19240
19241 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19242
19243         * lib/vsnprintf.h: New file.
19244         * lib/vsnprintf.c: New file.
19245
19246 2004-10-11  Bruno Haible  <bruno@clisp.org>
19247
19248         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
19249         vsnprintf.
19250
19251 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19252
19253         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
19254
19255 2004-10-07  Bruno Haible  <bruno@clisp.org>
19256
19257         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
19258         fits into the provided buffer.
19259
19260 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
19261
19262         * lib/diacrit.c, diacrit.h: Add GPL notice.
19263
19264         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
19265         notice.
19266         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
19267         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
19268         This avoids a potential constant-folding bug.
19269
19270 2004-10-05  Bruno Haible  <bruno@clisp.org>
19271
19272         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
19273         for the declaration of strsep.
19274
19275 2004-10-05  Bruno Haible  <bruno@clisp.org>
19276
19277         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
19278
19279 2004-10-04  Simon Josefsson  <jas@extundo.com>
19280
19281         * modules/memmem: New file.
19282         * tests/test-memmem.c: New file.
19283         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
19284
19285 2004-10-04  Simon Josefsson  <jas@extundo.com>
19286
19287         * m4/memmem.m4: New file.
19288
19289 2004-10-04  Simon Josefsson  <jas@extundo.com>
19290
19291         * lib/memmem.h: New file.
19292         * lib/memmem.c: New file, taken from glibc.
19293
19294 2004-10-04  Simon Josefsson  <jas@extundo.com>
19295
19296         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
19297         '#ifdef USE_UNLOCKED_IO'.
19298
19299 2004-10-04  Simon Josefsson  <jas@extundo.com>
19300
19301         * config/srclist.txt: Add memmem from glibc.
19302
19303 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19304
19305         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
19306
19307         * modules/argmatch, modules/argp, modules/closeout, modules/error,
19308         modules/exclude, modules/getdate, modules/getline,
19309         modules/getndelim2, modules/getpass, modules/getpass-gnu,
19310         modules/getusershell, modules/linebuffer, modules/md5,
19311         modules/mountlist, modules/posixtm, modules/readtokens,
19312         modules/readutmp, modules/regex, modules/sha1,
19313         modules/version-etc, modules/yesno:
19314         Remove dependency on unlocked-io.
19315
19316 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19317
19318         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
19319
19320         * m4/unlocked-io.m4: Add copyright notice.
19321         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
19322
19323 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19324
19325         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
19326         * lib/xmalloc.c (xmemdup): Likewise.
19327         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
19328         XFREE): Remove these long-obsolescent macros.
19329         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
19330         * lib/xstrdup.c: Remove.
19331
19332         * lib/regex.c (re_comp): Cast gettext return value to char *,
19333         Problem reported by Martin Neitzel via Mark D. Baushke.
19334
19335 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19336
19337         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
19338         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
19339         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
19340         regex.c, sha1.c, version-etc.c, yesno.c:
19341         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
19342         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
19343         the includer's responsibility.
19344
19345         Sync from coreutils.
19346
19347         * lib/modechange.c (mode_compile): Don't decrement a pointer that
19348         points to the start of a string, as the C Standard says the
19349         resulting behavior is undefined.
19350
19351         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
19352         simple -> simple_backups, numbered_existing ->
19353         numbered_existing_backups, numbered -> numbered_backups
19354         to avoid shadowing problems.  All uses changed.
19355         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
19356         * lib/backupfile.c (check_extension, numbered_backup):
19357         Rename locals to avoid shadowing 'basename'.
19358         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
19359         once.
19360
19361         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
19362         * lib/.cvsignore: Add getopt.h.
19363
19364 2004-10-04  Bruno Haible  <bruno@clisp.org>
19365
19366         * modules/README: New file.
19367         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
19368         not a module.
19369
19370 2004-10-02  Jim Meyering  <jim@meyering.net>
19371
19372         * lib/dirfd.h, getpagesize.h: Add copyright notice.
19373
19374 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19375
19376         * modules/strsep: New file.
19377
19378 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19379
19380         * m4/strsep.m4: New file.
19381
19382 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19383
19384         * lib/strsep.h: New file.
19385         * lib/strsep.c: New file.
19386
19387 2004-10-01  Simon Josefsson  <jas@extundo.com>
19388
19389         * lib/snprintf.c (snprintf): Handle size==0.
19390
19391 2004-10-01  Simon Josefsson  <jas@extundo.com>
19392             Bruno Haible  <bruno@clisp.org>
19393
19394         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
19395         (snprintf): Declare 'args'.
19396
19397 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
19398
19399         * lib/snprintf.c: Remove comments as to why each header is needed.
19400
19401 2004-10-01  Bruno Haible  <bruno@clisp.org>
19402
19403         * MODULES.html.sh: Add strsep.
19404
19405 2004-09-30  Simon Josefsson  <jas@extundo.com>
19406
19407         * modules/snprintf: New file.
19408
19409 2004-09-30  Simon Josefsson  <jas@extundo.com>
19410
19411         * m4/snprintf.m4: New file.
19412
19413 2004-09-30  Simon Josefsson  <jas@extundo.com>
19414
19415         * lib/snprintf.h, lib/snprintf.c: New files.
19416
19417 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19418
19419         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
19420         (hol_entry_help): Never translate an empty string.
19421         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
19422         * lib/argp.h (OPTION_NO_TRANS): New option.
19423
19424 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19425
19426         * modules/argp (Maintainer): Replace Simon Josefsson
19427         by Sergey Poznyakoff.
19428
19429 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19430
19431         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
19432         changes merged back into glibc.
19433
19434 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19435
19436         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
19437
19438 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
19439
19440         * lib/xvasprintf.c: Include xalloc.h.
19441         (xvasprintf): Use xalloc_die, not xmalloc_die.
19442
19443 2004-09-29  Bruno Haible  <bruno@clisp.org>
19444
19445         * modules/alloca-opt: New file, derived from modules/alloca.
19446         * modules/allocsa: Depend on alloca-opt instead of alloca.
19447         * modules/setenv: Likewise.
19448         * modules/vasnprintf: Likewise.
19449         * MODULES.html.sh: Add alloca-opt.
19450
19451 2004-09-28  Simon Josefsson  <jas@extundo.com>
19452
19453         * gnulib-tool: New parameter --lgpl, to asseert that modules are
19454         LGPL, and to replace license template from GPL to LGPL.
19455
19456 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
19457
19458         * modules/dummy: Change license to LGPL.
19459
19460 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
19461
19462         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
19463
19464 2004-09-24  Simon Josefsson  <jas@extundo.com>
19465
19466         * modules/minmax (License): Change from GPL to LGPL.
19467
19468 2004-09-23  Simon Josefsson  <jas@extundo.com>
19469
19470         * gnulib-tool (--import): Typo.
19471
19472 2004-09-23  Simon Josefsson  <jas@extundo.com>
19473
19474         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
19475
19476 2004-09-22  Bruno Haible  <bruno@clisp.org>
19477
19478         * modules/*: Add 'License' field.
19479         * gnulib-tool: Accept --extract-license option.
19480         (func_get_license): New function.
19481
19482 2004-09-21  Bruno Haible  <bruno@clisp.org>
19483
19484         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
19485         Reported by Simon Josefsson.
19486
19487 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19488
19489         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
19490         gl_AC_TYPE_LONG_LONG.
19491
19492 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19493
19494         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
19495
19496 2004-09-18  Simon Josefsson  <jas@extundo.com>
19497         and  Paul Eggert  <eggert@cs.ucla.edu>
19498
19499         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
19500         calls with autoreconf.  Define GL_LIB.
19501
19502 2004-09-14  Karl Berry  <karl@gnu.org>
19503
19504         * config/srclist.txt: unsync setenv.c, sigh.
19505
19506 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19507
19508         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
19509         Problem reported by Bruno Haible in:
19510         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
19511
19512 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19513
19514         * config/srclist.txt: Comment out argp-pvh.c.
19515
19516 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
19517
19518         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
19519         in case some system header has #define'd it.  Problem reported by
19520         Soeren D. Schulze in
19521         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
19522
19523 2004-09-09  Karl Berry  <karl@gnu.org>
19524
19525         * regex.[ch]: delete from the root.  These were supposed to be
19526                 synced with emacs cvs, but this has not happened for about
19527                 a year, and anyway nothing else uses emacs regex.[ch].
19528                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
19529                 lib/regex[.ch] is untouched.
19530
19531 2004-09-09  Bruno Haible  <bruno@clisp.org>
19532
19533         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
19534
19535 2004-09-09  Bruno Haible  <bruno@clisp.org>
19536
19537         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
19538         modifications.
19539         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
19540
19541 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
19542
19543         * modules/xvasprintf: New file.
19544         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
19545
19546 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
19547
19548         * lib/xvasprintf.h: New file.
19549         * lib/xvasprintf.c: New file.
19550         * lib/xasprintf.c: New file.
19551
19552 2004-09-08  Bruno Haible  <bruno@clisp.org>
19553
19554         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
19555
19556 2004-09-08  Bruno Haible  <bruno@clisp.org>
19557
19558         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
19559         length is > INT_MAX.
19560         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
19561         more.
19562
19563 2004-09-08  Bruno Haible  <bruno@clisp.org>
19564
19565         * lib/stdint_.h: New file, taken from GNU clisp.
19566
19567 2004-09-08  Bruno Haible  <bruno@clisp.org>
19568             Oskar Liljeblad  <oskar@osk.mine.nu>
19569
19570         * modules/stdint: New file.
19571         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
19572
19573 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19574
19575         Import from coreutils.
19576         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
19577         strings on unbounded length.  alloca's performance benefits aren't
19578         that important here.
19579         (V_STRDUP): Remove.
19580         (parse_with_separator): New function, with most of the internals
19581         of the old parse_user_spec.  Allow user to omit both user and group,
19582         for compatibility with FreeBSD.
19583         Clone only the user name, not the entire spec.
19584         Do not set *uid, *gid unless entirely successful.
19585         Avoid memory leak in some failing cases.
19586         Fix regression for USER.GROUP reported by Dmitry V. Levin in
19587         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
19588         (parse_user_spec): Rewrite to use parse_with_separator.
19589
19590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19591
19592         * modules/userspec: Don't depend on alloca.
19593
19594 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19595
19596         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
19597
19598 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19599
19600         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
19601         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
19602         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
19603
19604 2004-08-16  Simon Josefsson  <jas@extundo.com>
19605
19606         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
19607         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
19608         Add --dry-run for --import.
19609         Let user provided command line parameters override configure.ac
19610         settings.
19611
19612 2004-08-12  Simon Josefsson  <jas@extundo.com>
19613
19614         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
19615         as discussed with Paul Eggert in threads rooted at
19616         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
19617         and
19618         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
19619         Before, the test was empty, and relied on ELIDE_CODE in source
19620         code.)
19621         (gl_PREREQ_GETOPT): New macro.
19622         (gl_GETOPT): Use them.
19623
19624 2004-08-12  Simon Josefsson  <jas@extundo.com>
19625
19626         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
19627         * lib/getopt_.h: Renamed from getopt.h.
19628
19629 2004-08-12  Simon Josefsson  <jas@extundo.com>
19630
19631         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
19632         Change default library name from libfoo to libgnu.
19633         Now, if you have a configure.ac that says:
19634                 gl_SOURCE_BASE(gl)
19635                 gl_M4_BASE(gl/m4)
19636                 gl_MODULES(error getopt etcetera)
19637                 gl_INIT
19638         you can import all you need by running:
19639                 ../gnulib/gnulib-tool --import
19640
19641         * modules/getopt (Files): Rename getopt.h to getopt_.h.
19642         (Makefile.am): Rewrite, use logic from argz.
19643         (Include): Use <getopt.h> instead of "getopt.h".
19644
19645 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
19646
19647         * modules/argp (Files): Add m4/unlocked-io.m4.
19648         (Depends-on): Add extensions.
19649
19650 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
19651
19652         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
19653         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
19654         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
19655         Check for program_invocation_name, program_invocation_short_name,
19656         flockfile, funlockfile, features.h, _getopt_long_only_r.
19657
19658 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
19659
19660         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
19661         its complicated substitute.
19662         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
19663         and program_invocation_name.
19664         (__argp_basename) [!_LIBC]: Remove; the only use was
19665         replaced by its body.
19666         (__argp_short_program_name): Change condition from
19667         !defined __argp_short_program_name to
19668         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
19669         to match argp-namefrob.h.
19670         (__argp_failure): Don't assume strerror_r returns char *.
19671         * lib/argp-parse.c (N_): Define unconditionally.
19672         (argp_default_options): Fill out initializers with 0 to avoid
19673         gcc warnings.
19674
19675 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
19676
19677         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
19678         getopt1.c.
19679
19680 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19681
19682         Merge from coreutils.
19683
19684         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
19685
19686         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
19687         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
19688
19689 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19690
19691         Merge from coreutils.
19692
19693         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
19694         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
19695         for Reliant Unix 5.43.
19696
19697         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
19698         (union fooround): Use uintmax_t, not long int.
19699         The rest is a merge from libc:
19700         [defined _LIBC]: Include <shlib-compat.h>.
19701         (_obstack) [defined _LIBC]: Remove after 2.3.4.
19702
19703         * lib/settime.c (settime): Recode to avoid warning with
19704         Sun Forte C 6U2.
19705
19706         * lib/strverscmp.c: Convert to UTF-8.
19707
19708 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19709
19710         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
19711         m4/uintmax_t.m4.
19712
19713 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19714
19715         * modules/xalloc-die: New file.
19716         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
19717
19718         * modules/md5 (Files): Add m4/uint32_t.m4.
19719         * modules/sha1: Renamed from modules/sha.
19720         (Files):
19721         Rename lib/sha.h to lib/sha1.h.
19722         Rename lib/sha.c to lib/sha1.c.
19723         Rename m4/sha.m4 to m4/sha1.m4.
19724         (lib_SOURCES): Likewise.
19725         (configure.ac): Rename gl_SHA to gl_SHA1.
19726         (Include): sha.h -> sha1.h.
19727
19728 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19729
19730         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
19731         * m4/sha1.m4: Renamed from sha.m4.
19732         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
19733
19734 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19735
19736         * lib/obstack.h (obstack_empty_p):
19737         Don't assume that chunk->contents is suitably aligned.
19738         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
19739         Likewise. Problem reported by Benno in
19740         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
19741
19742         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
19743         readable.  This could be improved further but it'd take some work.
19744
19745 2004-08-08  Simon Josefsson  <jas@extundo.com>
19746
19747         * modules/xgethostname (Depends-on): Remove exit and error (not
19748         used).
19749
19750         * modules/getpass-gnu: Add getpass.h.
19751         (Depends-on): Add stdbool.
19752         * modules/getpass: Add getpass.h.
19753
19754 2004-08-08  Simon Josefsson  <jas@extundo.com>
19755
19756         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
19757         Check getpass declaration.
19758
19759 2004-08-08  Simon Josefsson  <jas@extundo.com>
19760
19761         * lib/xgethostname.c: Don't include error.h (not used).
19762
19763         * lib/getpass.h: Add.
19764         * lib/getpass.c: Include getpass.h first.
19765
19766 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
19767
19768         * lib/xalloc-die.c: New file.
19769         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
19770         All uses removed.
19771         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
19772         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
19773         xalloc-die.c.
19774         (_, N_, xalloc_die): Move to xalloc-die.c.
19775         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
19776         so that we needn't mess with xalloc_msg_memory_exhausted.
19777
19778         * lib/sha1.h: Renamed from sha.h.
19779         (SHA1_H): Renamed from _SHA_H.
19780         (sha1_ctx): Renamed from sha_ctx.
19781         (sha1_init_ctx): Renamed from sha_init_ctx.
19782         (sha1_process_block): Renamed from sha_process_block.
19783         (sha1_process_bytes): Renamed from sha_process_bytes.
19784         (sha1_finish_ctx): Renamed from sha_finish_ctx.
19785         (sha1_read_ctx): Renamed from sha_read_ctx.
19786         (sha1_stream): Renamed from sha_stream.
19787         (sha1_buffer): Renamed from sha_buffer.
19788         * lib/sha1.c: Likewise; renamed from sha.c.
19789         Do not include <sys/types.h>.
19790         Include <stddef.h> rather than <stdlib.h>.
19791
19792 2004-08-08  Bruno Haible  <bruno@clisp.org>
19793
19794         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
19795         FILESYSTEM_PREFIX_LEN.
19796         * lib/progreloc.c: Likewise.
19797         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
19798
19799 2004-08-06  Simon Josefsson  <jas@extundo.com>
19800
19801         * modules/progname (Depends-on): Don't depend on stdbool.
19802
19803 2004-08-06  Simon Josefsson  <jas@extundo.com>
19804
19805         * modules/getsubopt: New file.
19806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19807         getsubopt.
19808
19809 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
19810
19811         More merge from coreutils.
19812
19813         * m4/utimens.m4, m4/utimecmp.m4: New files.
19814         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
19815         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
19816         prereq.m4, sha.m4: Import changes from coreutils.
19817
19818 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
19819
19820         More merge from coreutils.
19821         * modules/raise, modules/readtokens0, modules/utimens:
19822         * modules/utimecmp, module/xnanosleep: New files.
19823         * modules/strftime: Add lib/strftime.h.
19824         Change include from <time.h> to "strftime.h".
19825         * modules/yesno: Add lib/yesno.h.
19826         * modules/backupfile: Remove lib/addext.c.
19827         * modules/euidaccess: Add stat-macros.h.
19828         * modules/canonicalize, modules/euidaccess,
19829         modules/filemode, modules/lchown, modules/makepath,
19830         modules/rmdir, modules/stat: Likewise.
19831
19832 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
19833
19834         Merge from tar.
19835         * lib/argp-help.c (make_hol, hol_append): Don't assume that
19836         SIZE_MAX is a valid preprocessor constant.
19837         (__argp_basename): Change from "#ifndef _LIBC"
19838         to "#ifndef __argp_short_program_name", so that
19839         we don't compile these functions for tar.
19840
19841         More merges from coreutils.
19842         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
19843         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
19844         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
19845         * lib/addext.c: Remove; no longer needed.
19846         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
19847         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
19848         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
19849         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
19850         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
19851         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
19852         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
19853         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
19854         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
19855         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
19856         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
19857         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
19858         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
19859         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
19860         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
19861         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
19862         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
19863         Import changes from coreutils.
19864
19865 2004-08-05  Simon Josefsson  <jas@extundo.com>
19866
19867         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
19868
19869 2004-08-05  Simon Josefsson  <jas@extundo.com>
19870
19871         * m4/getsubopt.m4: New file.
19872
19873 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
19874
19875         Merge from coreutils.
19876
19877         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
19878         * m4/getcwd-path-max.m4: New files.
19879
19880         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
19881         FILESYSTEM_PREFIX_LEN ->
19882         FILE_SYSTEM_PREFIX_LEN.
19883         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
19884         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
19885         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
19886         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
19887
19888         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
19889         prerequisite modules now handle the DOS stuff.
19890         Don't check for unistd.h.
19891
19892 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
19893
19894         Merge from coreutils.
19895
19896         * lib/.gdb-history: Remove; this doesn't belong here.
19897
19898         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
19899         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
19900         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
19901         * lib/getcwd.c: New files.
19902
19903         * lib/dirname.h: Include <stdbool.h>.
19904         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
19905         for consistency with POSIX terminology.  All uses changed.
19906         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
19907         (strip_trailing_slashes): Use bool for booleans.
19908         * lib/stripslash.c (strip_trailing_slashes): Likewise.
19909
19910         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
19911         sometimes returns a positive errno value even when it succeeds.
19912         (print_errno_message) [!LIBC]: Fall back on strerror if
19913         __strerror_r fails.
19914
19915         * lib/path-concat.c (mempcpy): Don't define if a system header defines
19916         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
19917         (longest_relative_suffix): New function.
19918         (path_concat): Use it.  Assume first argument is not NULL.
19919         Port to DOS.  Omit redundant separators.
19920         Report an error instead of returning NULL.
19921         Use mempcpy instead of memcpy.
19922         (xpath_concat): Remove: not declared or used.
19923
19924         * lib/same.h: Include <stdbool.h>
19925         (same_name): Return bool, not int.
19926         * lib/same.c (same_name): Likewise.
19927         (errno): Don't declare; we assume C89 or better now.
19928
19929         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
19930         if not already defined.
19931
19932         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
19933         * lib/dup-safer.c (errno): Likewise.
19934
19935 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
19936
19937         Merge from coreutils.
19938         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
19939         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
19940         * modules/path-concat: Don't depend on strdup.
19941
19942 2004-08-03  Simon Josefsson  <jas@extundo.com>
19943
19944         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
19945         * lib/progname.h: Don't include stdbool.h.
19946
19947 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19948
19949         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
19950         * MODULES.html.sh (func_all_modules): Remove fatal.
19951
19952 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19953
19954         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
19955
19956 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19957
19958         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
19959         working.
19960
19961 2004-08-02  Simon Josefsson  <jas@extundo.com>
19962
19963         * lib/getsubopt.h: New file, with comments from Bruno Haible.
19964         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
19965         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
19966
19967 2004-08-01  Simon Josefsson  <jas@extundo.com>
19968
19969         * lib/xgetdomainname.c: Include stdlib.h, for free().
19970
19971 2004-07-19  Bruno Haible  <bruno@clisp.org>
19972
19973         * MODULES.html.sh (func_all_modules): Add dummy.
19974
19975 2004-07-16  Simon Josefsson  <jas@extundo.com>
19976
19977         * modules/dummy: New file.
19978
19979 2004-07-16  Simon Josefsson  <jas@extundo.com>
19980
19981         * lib/dummy.c: New file.
19982
19983 2004-07-16  Bruno Haible  <bruno@clisp.org>
19984
19985         * lib/backupfile.h: Add extern "C" for C++.
19986         * lib/closeout.h: Likewise.
19987         * lib/copy-file.h: Likewise.
19988         * lib/findprog.h: Likewise.
19989         * lib/full-write.h: Likewise.
19990         * lib/pathname.h: Likewise.
19991         * lib/progname.h: Likewise.
19992         * lib/stpcpy.h: Likewise.
19993         * lib/stpncpy.h: Likewise.
19994         * lib/strcase.h: Likewise.
19995         * lib/strstr.h: Likewise.
19996         * lib/xalloc.h: Likewise.
19997
19998         * lib/mbswidth.h: Add extern "C" for C++.
19999         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
20000
20001 2004-07-13  Robert Millan  <robertmh@gnu.org>
20002
20003         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
20004
20005 2004-07-09  Simon Josefsson  <jas@extundo.com>
20006
20007         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
20008         failed without this.)
20009
20010 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20011
20012         * modules/chown (Files): Add lib/fchown-stub.c, since
20013         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
20014
20015 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20016
20017         * lib/fchown-stub.c: New file.
20018
20019 2004-06-24  Jim Meyering  <jim@meyering.net>
20020
20021         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
20022
20023 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20024
20025         * modules/argz: Omit "#include".
20026
20027         * MODULES.html.sh (func_all_modules): Add calloc, to match
20028         2004-06-01 addition of calloc module.
20029
20030 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20031
20032         * m4/argz.m4: New file, which is autoupdated from libtool.
20033
20034 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20035
20036         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
20037         libtool.
20038
20039 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20040
20041         * config/srclist-update: Don't insist on "USA." before the
20042         close-comment, as libtool omits the period and puts the */ on a
20043         separate line.
20044         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
20045         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
20046
20047 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
20048
20049         * modules/argz: New file.
20050         * MODULES.html.sh (func_all_modules): Add argz.
20051
20052 2004-06-12  Jim Meyering  <jim@meyering.net>
20053         and  Paul Eggert  <eggert@cs.ucla.edu>
20054
20055         * modules/hash (Files): Add lib/xalloc.h.
20056         * modules/pipe (Depends-on): Add wait-process.
20057         * modules/stat (Depends-on): Add xalloc.
20058         * modules/userspec (Files): Add lib/userspec.h.
20059         * modules/xstrto
20060
20061         Upgrade from gettext-0.13.
20062         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
20063         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
20064         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
20065
20066 2004-06-10  Jim Meyering  <jim@meyering.net>
20067
20068         * lib/calloc.c: New file.
20069
20070 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
20071
20072         * lib/getdate.y (yylex): Allow space between sign and number.
20073         Problem reported by Dan Jacobson.
20074
20075 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
20076
20077         Merge from coreutils CVS.
20078
20079         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
20080         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
20081         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
20082         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
20083         xstrtol.m4: Fix copyright date and/or serial number.
20084
20085         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
20086         See if we need an fchown replacement.
20087         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
20088         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
20089         and use the replacement function if we detect either defect.
20090
20091         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
20092         gl_UTIMECMP.
20093
20094 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
20095         and  Jim Meyering  <jim@meyering.net>
20096
20097         Merge from coreutils CVS.
20098
20099         * lib/stat-macros.h: New file, with contents from file-type.h
20100         and coreutils' system.h.
20101         * lib/file-type.c: Include "stat-macros.h".
20102         * lib/file-type.h (file_type): Move all macro definitions to new file,
20103         stat-macros.h.
20104
20105         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
20106         Wrap old code with this conditional.
20107         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
20108         function that does not dereference symlinks.
20109         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
20110
20111         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
20112         dependency problems.
20113         (xreadlink): Accept new arg SIZE, for efficiency.
20114         All decls and uses changed.
20115         * lib/xreadlink.h: Include <stddef.h>, for size_t.
20116
20117         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
20118         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
20119
20120         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
20121         sysexits.h.
20122
20123 2004-06-01  Jim Meyering  <jim@meyering.net>
20124
20125         * m4/calloc.m4: New file.
20126
20127 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
20128
20129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
20130         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
20131         Also, fix a typo in a diagnostic.
20132
20133 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
20134
20135         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
20136         or AC_FUNC_REALLOC.
20137
20138 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
20139
20140         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
20141         macros to be defined.
20142         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
20143         the allocator returns NULL because the requested size is zero.
20144
20145 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20146
20147         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
20148         var.  Add comment explaining why libc still defines it.  This
20149         merges the following patch from glibc:
20150         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
20151
20152 2004-05-20  Andreas Schwab  <schwab@suse.de>
20153
20154         * m4/free.m4: Replace free if it not known to work, not the other
20155         way round.
20156
20157 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20158
20159         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
20160         present in glibc since revision 1.1 of this file.
20161         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
20162         obstack_alignment_mask, obstack_alloc, obstack_base,
20163         obstack_blank, obstack_blank_fast, obstack_chunk_size,
20164         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
20165         obstack_grow0, obstack_init, obstack_int_grow,
20166         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
20167         obstack_next_free, obstack_object_size, obstack_ptr_grow,
20168         obstack_ptr_grow_fast, obstack_room): Remove declarations of
20169         nonexistent functions.
20170
20171 2004-05-18  Karl Berry  <karl@gnu.org>
20172
20173         * config/srclist.txt: break link for vasnprintf.c.
20174
20175 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20176
20177         Port obstack to the AS/400, where pointers are 16 bytes wide and
20178         you cannot cast an integer to a valid pointer.  This patch is
20179         currently waiting to be integrated into glibc; see
20180         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
20181
20182         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
20183         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
20184         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
20185         (struct obstack): temp member is now a union of a pointer and
20186         an integer, instead of an integer.  All integer uses changed.
20187         This does not affect the physical layout of struct obstack,
20188         except on hosts (like the AS/400) where the size or alignment of
20189         void * is greater than that of ptrdiff_t.
20190         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
20191         __STDC__)]: Store temporary in pointer member of union, not
20192         integer member.
20193         * lib/obstack.c: Include <stddef.h>, for offsetof.
20194         (struct fooalign): Remove; it doesn't need a name.
20195         (union fooround): Change double to long double, and add void *.
20196         (DEFAULT_ALIGNMENT): Use offsetof to compute.
20197         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
20198         not a macro.  Hence the values are always int; so remove all
20199         casts-to-int in uses.
20200
20201 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20202
20203         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
20204         we can get this patch merged into glibc.
20205
20206 2004-05-17  Derek R. Price  <derek@ximbiot.com>
20207             Paul Eggert  <eggert@cs.ucla.edu>
20208
20209         * m4/argp: Depend on alloca.
20210
20211 2004-05-17  Derek R. Price  <derek@ximbiot.com>
20212             Paul Eggert  <eggert@cs.ucla.edu>
20213
20214         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
20215         freecoding.
20216
20217 2004-05-17  Bruno Haible  <bruno@clisp.org>
20218
20219         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
20220         precision that consists of a '.' followed by an empty digit string.
20221         Patch by Tor Lillqvist <tml@iki.fi>.
20222
20223 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20224
20225         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
20226         for backward compatibility with older code.  We need our own
20227         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
20228         it under some other name, and our alloca.h will define it.
20229
20230 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20231             Derek Price  <derek@ximbiot.com>
20232
20233         * lib/alloca.c: Include <alloca.h>, to get our interface.
20234         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
20235         include <alloca.h> first.  Use C89 prototype for alloca; this
20236         requires including <stddef.h> for size_t.  Use extern "C" if C++.
20237         Use #elif for simplicity, since we can assume C89 now.
20238         Don't try to source the system alloca.h since it will not be found
20239         and to prevent recursively including its replacement.
20240         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
20241         * lib/regex.c: Likewise.
20242
20243 2004-05-16  Derek Price  <derek@ximbiot.com>
20244             Paul Eggert  <eggert@cs.ucla.edu>
20245
20246         getline cleanup.  This changes the getndelim2 API: both order of
20247         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
20248         no delimiter).
20249
20250         * lib/getline.c: Don't include stddef.h or stdio.h, since our
20251         interface does that.
20252         (getline): Always use getdelim, so that we don't have two
20253         copies of this code.
20254         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
20255         if available.
20256         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
20257         (GETNDELIM2_MAXIMUM): New macro.
20258         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
20259         instead of the old practice of delim2==0.  All callers changed.
20260         Return -1 on overflow, instead of returning junk.
20261         Do not set *linesize unless allocation succeeds.
20262         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
20263         that we include sys/types.h.
20264         * lib/getnline.h: Likewise.
20265         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
20266         (getndelim2): Reorder arguments.
20267         * lib/getnline.c (getnline, getndelim):
20268         Don't discard the NMAX argument.
20269         (getnline): Invoke getndelim, to avoid code duplication.
20270         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
20271         of (size_t) -1 by callers of the getnline family.
20272
20273 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20274
20275         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
20276         Check for gettimeofday.
20277         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
20278         Check for settimeofday, stime.
20279
20280 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20281
20282         * lib/nanosleep.c (suspended): Change its type from int to
20283         sig_atomic_t volatile.
20284         (first_call): Make it private to rpl_nanosleep, and have it
20285         be zero initially as that's a bit faster.
20286         (my_usleep): Round up fractional times instead of truncating them,
20287         as this is the usual meaning for 'sleep'.
20288
20289         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
20290         doesn't work.
20291         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
20292         (ENOSYS): Define if not defined.
20293         (settime): Fall back on stime if it exists and settimeofday fails.
20294         But don't bother with fallbacks if a method fails with errno == EPERM.
20295
20296 2004-05-11  Jim Meyering  <jim@meyering.net>
20297
20298         Prior to this change, the save_cwd caller required read access to the
20299         current directory on most systems (ones with the fchdir function).
20300
20301         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
20302         fails, try write-only, and finally, resort to using xgetcwd.
20303
20304 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20305
20306         * lib/obstack.c, obstack.h: Import changes from libc.
20307
20308 2004-04-28  Bruno Haible  <bruno@clisp.org>
20309
20310         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
20311         also implicitly appends .exe to executables.
20312         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
20313         accepts Windows pathnames.
20314         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
20315         Treat Cygwin like Windows, since it now accepts Windows pathnames.
20316         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
20317         Treat Cygwin like Windows, since it now accepts Windows pathnames.
20318         Reported by Derek Robert Price <derek@ximbiot.com>.
20319
20320 2004-04-21  Karl Berry  <karl@gnu.org>
20321
20322         * config/srclist.txt (localcharset.c): break sync.
20323
20324 2004-04-20  Paul Eggert  <eggert@twinsun.com>
20325
20326         * m4/host-os.m4: Add a copyright notice.
20327
20328 2004-04-20  Jim Meyering  <jim@meyering.net>
20329
20330         Change UTILS_ to gl_ in AC_DEFINE'd names.
20331         Change utils_- and jm_-prefixed variables, too.
20332         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
20333         UTILS_FUNC_MKDIR_TRAILING_SLASH.
20334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
20335
20336         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
20337         Don't emit trailing blanks.
20338         Also rename jm_-prefixed variables to have gl_ prefix.
20339
20340         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
20341         Also rename jm_-prefixed variables to have gl_ prefix.
20342
20343         * m4/jm-macros.m4: Reflect the renamings.
20344         * m4/prereq.m4: Likewise.
20345
20346 2004-04-20  Jim Meyering  <jim@meyering.net>
20347
20348         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
20349         memory.
20350
20351 2004-04-20  Jim Meyering  <jim@meyering.net>
20352             Bruno Haible  <bruno@clisp.org>
20353
20354         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
20355         memory when realloc fails.
20356
20357 2004-04-19  Jim Meyering  <jim@meyering.net>
20358
20359         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
20360         now that readutmp.c may call `free (0)'.
20361
20362 2004-04-19  Bruno Haible  <bruno@clisp.org>
20363
20364         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
20365         * m4/inttypes_h.m4: Likewise.
20366         * m4/stdint_h.m4: Likewise.
20367         * m4/intmax_t.m4: Likewise.
20368         * m4/uintmax_t.m4: Likewise.
20369
20370 2004-04-18  Jim Meyering  <jim@meyering.net>
20371
20372         * m4/prereq.m4: Don't forbid jm_ prefix.
20373
20374         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
20375         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
20376         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
20377         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
20378         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
20379         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
20380         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
20381         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
20382         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
20383         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
20384         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
20385         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
20386         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
20387         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
20388         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
20389         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
20390         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
20391         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
20392         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
20393
20394 2004-04-18  Jim Meyering  <jim@meyering.net>
20395
20396         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
20397         failure, don't leak memory and do call END_UTMP_ENT.
20398
20399 2004-04-16  Jim Meyering  <jim@meyering.net>
20400
20401         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
20402         coreutils' stat program.
20403         (gl_PREREQ): Don't require jm_PREREQ_STAT.
20404
20405 2004-04-11  Paul Eggert  <eggert@twinsun.com>
20406
20407         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
20408         C89.
20409         (CHAR_BIT): Remove, since we assume C89.
20410         Include <stdint.h> if available, as per current Autoconf CVS advice.
20411
20412 2004-03-31  Jim Meyering  <jim@meyering.net>
20413
20414         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
20415         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
20416         * m4/xalloc.m4: Likewise.
20417
20418 2004-03-30  Paul Eggert  <eggert@twinsun.com>
20419
20420         Merge from coreutils.
20421
20422         * m4/inttostr.m4: New file.
20423         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
20424         Require AM_STDBOOL_H and gl_TIMESPEC instead.
20425         Require gl_CLOCK_TIME.
20426         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
20427
20428 2004-03-30  Paul Eggert  <eggert@twinsun.com>
20429
20430         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
20431         not bool, to be more consistent with Unix conventions.
20432         Suggested by Bruno Haible.
20433
20434         Merge from coreutils.
20435
20436         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
20437         * lib/umaxtostr.c: New files.
20438
20439         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
20440         the usual <time.h> dance.
20441         (get_date): Change signature to support fractional time stamps.
20442         All callers changed.
20443         * lib/getdate.y: Include "getdate.h" first, as we can now
20444         assume C89 and don't need to worry about 'const'.
20445         Similarly, include "unlocked-io.h" near start, not in middle.
20446         Include <limits.h>.
20447         (textint.value): Use long int rather than int.
20448         (textint.digits): Use size_t rather than int.
20449         (BILLION, LOG10_BILLION): New constants.
20450         (parser_control): New member rel_ns.  Members day_ordinal,
20451         time_zone, month, day, hour, minutes, rel_year, rel_month,
20452         rel_day, rel_hour, rel_minutes, rel_seconds
20453         are now long int, not int.  Member seconds is now struct timespec,
20454         not int.  New member timespec_seen.  Members dates_seen, days_seen,
20455         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
20456         not int.
20457         (%union.intval): Now long int, not int.
20458         New member timespec.
20459         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
20460         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
20461         (spec): Now is a timespec or an item list.
20462         (timespec, items): New nonterminals.
20463         (time, rel, relunit, number, get_date):
20464         Add support for fractional seconds.
20465         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
20466         (gmtime, localtime, mktime): Remove decls; not needed with C89.
20467         (to_hour): First arg is now long int, not int.
20468         (to_year): Returns long int, not int.
20469         Don't treat year -70 like 70.
20470         (tm_diff): Returns long int, not int.
20471         (lookup_word): Use bool instead of int when appropriate.
20472         (yylex): Use size_t for count, not int.
20473         Detect overflow when parsing large integer constants.
20474         Add support for fractions.
20475         (get_date): Make pointers 'const' if possible.
20476         Use more-portable code to detect integer overflow.
20477         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
20478         Don't use ctime; it's not reliable if the year has >4 digits.
20479
20480         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
20481         This is for compatibility with BSD.
20482
20483         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
20484         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
20485         From coreutils' system.h.
20486
20487         * lib/userspec.c: Don't include "posixver.h".
20488         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
20489         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
20490         compatible extension.  Simplify code by removing a boolean int
20491         that was always nonzero if a string was nonnull.
20492
20493 2004-03-30  Jim Meyering  <jim@meyering.net>
20494
20495         Merge from coreutils.
20496
20497         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
20498         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
20499         on some systems one must include <grp.h> before it.
20500         Reported by Christian Krackowizer.
20501
20502 2004-03-30  Jim Meyering  <jim@meyering.net>
20503
20504         Merge from coreutils.
20505
20506         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
20507
20508         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
20509         an empty input stream.
20510
20511         * lib/readtokens.c: Include <stdbool.h>.
20512         (readtoken): Use `size_t' rather than int/long.
20513         All callers adjusted.
20514         Use `bool' rather than `int' where appropriate.
20515         Use memset rather than an explicit loop.
20516         Use x2nrealloc rather than xrealloc.
20517         Allow the use of `\0' as a delimiter.
20518         (readtokens): Likewise.
20519         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
20520
20521 2004-03-30  Jim Meyering  <jim@meyering.net>
20522
20523         * m4/realloc.m4: Remove file, since now it does no more than
20524         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
20525         the `configure.ac' section of module/realloc.
20526         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
20527
20528 2004-03-30  Bruno Haible  <bruno@clisp.org>
20529
20530         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
20531         nonnull.
20532
20533 2004-03-29  Paul Eggert  <eggert@twinsun.com>
20534
20535         Merge changes to getloadavg.c from coreutils and Emacs.
20536
20537         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
20538         Define to an expression, not to the empty string.
20539         Include cloexec.h and xalloc.h.
20540         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
20541         Use set_cloexec_flag rather than rolling our own.
20542         * lib/cloexec.c, lib/cloexec.h: New files.
20543
20544 2004-03-29  Paul Eggert  <eggert@twinsun.com>
20545
20546         * m4/cloexec.m4: New file.
20547
20548 2004-03-18  Paul Eggert  <eggert@twinsun.com>
20549
20550         * lib/getopt.h: Sync with libc CVS.
20551
20552 2004-03-18  Paul Eggert  <eggert@twinsun.com>
20553             Bruno Haible  <bruno@clisp.org>
20554
20555         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
20556         mbswidth.
20557
20558 2004-03-18  Paul Eggert  <eggert@twinsun.com>
20559             Bruno Haible  <bruno@clisp.org>
20560
20561         * lib/mbswidth.h: Include <wchar.h> only if
20562         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
20563         <wchar.h>.
20564         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
20565
20566 2004-03-09  Paul Eggert  <eggert@twinsun.com>
20567
20568         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
20569         Sync with libc CVS.
20570         * lib/getopt_int.h: New file, also synced from libc.
20571
20572 2004-03-09  Paul Eggert  <eggert@twinsun.com>
20573
20574         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
20575         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
20576         Bring back getopt.c, getopt.h, getopt1.c.
20577
20578 2004-03-07  Paul Eggert  <eggert@twinsun.com>
20579
20580         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
20581         All uses changed.  Check for sa_sigaction member; this fixes
20582         a bug first reported by Jason Andrade in
20583         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
20584
20585 2004-03-07  Paul Eggert  <eggert@twinsun.com>
20586
20587         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
20588         '#if' expressions.  Unlike the code it replaces, it does not
20589         depend on (defined _SC_PAGESIZE).  However, it does depend on
20590         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
20591         first reported by Jason Andrade in
20592         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
20593
20594 2004-02-25  Simon Josefsson  <jas@extundo.com>
20595
20596         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
20597
20598 2004-02-25  Simon Josefsson  <jas@extundo.com>
20599
20600         * lib/strdup.h: New file.
20601         * lib/strdup.c: Include it.
20602         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
20603         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
20604
20605 2004-02-23  Karl Berry  <karl@gnu.org>
20606
20607         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
20608         (from fencepost.gnu.org:/gd/gnuorg).
20609
20610 2004-02-23  Karl Berry  <karl@gnu.org>
20611
20612         * config/srclistvars.sh (GNUORG) [karl]: redefine.
20613         * config/srclist.txt: add maintain/standards documents.
20614
20615 2004-02-18  Bruno Haible  <bruno@clisp.org>
20616
20617         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
20618         Reported by Derek Robert Price <derek@ximbiot.com>.
20619
20620 2004-02-16  Karl Berry  <karl@gnu.org>
20621
20622         * config/mkinstalldirs, install-sh: update from automake.
20623
20624 2004-02-06  Karl Berry  <karl@gnu.org>
20625
20626         * m4/po.m4: update from gettext 0.14.1.
20627
20628 2004-02-06  Karl Berry  <karl@gnu.org>
20629
20630         * lib/config.charset: update from gettext 0.14.1.
20631
20632 2004-02-05  Paul Eggert  <eggert@twinsun.com>
20633
20634         Add comments and code, prompted by suggestions from Bruno Haible
20635         for sh-quote.
20636         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
20637         describing the enum quoting_style values.
20638         * lib/quotearg.c (quotearg_alloc): New function.
20639         (quotearg_buffer_restyled): Treat lone { and } as special.
20640         Treat = as special.  Work around bug with older shells
20641         that "see" a '\' that is really the 2nd byte of a multibyte char.
20642         Quote empty string with shell_quoting_style.
20643
20644 2004-02-03  Bruno Haible  <bruno@clisp.org>
20645
20646         * m4/pipe.m4: New file, from GNU gettext.
20647
20648 2004-02-03  Bruno Haible  <bruno@clisp.org>
20649
20650         * lib/pipe.h: New file, from GNU gettext.
20651         * lib/pipe.c: New file, from GNU gettext.
20652
20653 2004-01-27  Bruno Haible  <bruno@clisp.org>
20654
20655         * m4/execute.m4: New file, from GNU gettext.
20656
20657 2004-01-27  Bruno Haible  <bruno@clisp.org>
20658
20659         * lib/execute.h: New file, from GNU gettext.
20660         * lib/execute.c: New file, from GNU gettext.
20661         * lib/w32spawn.h: New file, from GNU gettext.
20662
20663 2004-01-24  Paul Eggert  <eggert@twinsun.com>
20664
20665         Merge from diffutils.
20666
20667         * lib/file-type.c (file_type): Add typed memory objects.
20668         * lib/file-type.h (S_TYPEISTMO): New macro.
20669
20670         * lib/c-stack.h (c_stack_action): Remove argv argument.
20671         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
20672         (die): Don't calculate message unless segv_action returns.
20673         (get_stack_location, min_address_from_argv, max_address_from_argv,
20674         volatile stack_base, volatile_stack_size): Remove.
20675         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
20676         that every segmentation violation is a stack overflow.  (Ouch!)
20677         See Debian bug 136249 (still outstanding) for more info about why
20678         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
20679
20680 2004-01-24  Paul Eggert  <eggert@twinsun.com>
20681
20682         Exit-status fix from coreutils.
20683
20684         Use exit_failure consistently in place of EXIT_FAILURE,
20685         so that program exit statuses are consistent on failure.
20686
20687         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
20688         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
20689         * lib/argmatch.h: Comment fix to match the above.
20690         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
20691         Now a macro referring to exit_failure, instead of a separate
20692         variable.  Include "exitfail.h" to get it.
20693         * lib/xstrtol.h: Include "exitfail.h".
20694         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
20695
20696         * lib/long-options.c (parse_long_options): Use prototype
20697         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
20698         for clarity.
20699
20700 2004-01-21  Jim Meyering  <jim@meyering.net>
20701
20702         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
20703         so as not to conflict with a different-sized __mktime_internal
20704         function in GNU libc.
20705         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
20706         Problem building statically-linked `ls' reported by Michael Brunnbauer.
20707
20708 2004-01-20  Karl Berry  <karl@gnu.org>
20709
20710         * config/config.guess: update from config.
20711
20712         * config/srclistvars.sh: GNUWWWLICENSES for karl.
20713
20714 2004-01-20  Bruno Haible  <bruno@clisp.org>
20715
20716         Safer stack allocation.
20717         * lib/setenv.c: Include allocsa.h.
20718         (alloca): Remove fallback definition.
20719         (freea): Remove macro.
20720         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
20721         instead of freea.
20722
20723 2004-01-20  Bruno Haible  <bruno@clisp.org>
20724
20725         * m4/eealloc.m4: New file, from GNU gettext.
20726
20727 2004-01-20  Bruno Haible  <bruno@clisp.org>
20728
20729         * m4/allocsa.m4: New file, from GNU gettext.
20730
20731 2004-01-20  Bruno Haible  <bruno@clisp.org>
20732
20733         * lib/xallocsa.h: New file, from GNU gettext.
20734         * lib/xallocsa.c: New file, from GNU gettext.
20735
20736 2004-01-20  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
20739
20740 2004-01-20  Bruno Haible  <bruno@clisp.org>
20741
20742         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
20743         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
20744         specially.
20745
20746 2004-01-20  Bruno Haible  <bruno@clisp.org>
20747
20748         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
20749         patch.
20750
20751 2004-01-20  Bruno Haible  <bruno@clisp.org>
20752
20753         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
20754
20755 2004-01-20  Bruno Haible  <bruno@clisp.org>
20756
20757         * lib/eealloc.h: New file.
20758
20759 2004-01-20  Bruno Haible  <bruno@clisp.org>
20760
20761         * lib/binary-io.h: Avoid warnings on Cygwin.
20762
20763 2004-01-20  Bruno Haible  <bruno@clisp.org>
20764
20765         * lib/allocsa.h: New file, from GNU gettext.
20766         * lib/allocsa.c: New file, from GNU gettext.
20767
20768 2004-01-18  Karl Berry  <karl@gnu.org>
20769
20770         * doc/gpl.texi, doc/lgpl.texi: new files.
20771
20772 2004-01-18  Karl Berry  <karl@gnu.org>
20773
20774         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
20775         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
20776
20777 2004-01-15  Paul Eggert  <eggert@twinsun.com>
20778
20779         Merge from coreutils.
20780
20781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
20782         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
20783         (gl_DEFAULT_POSIX2_VERSION): Move
20784         the documentation from 'configure' into 'config.hin',
20785         so that 'configure --help' isn't burdened by it and
20786         we don't have to worry about its formatting there.
20787         Reword the documentation so that it's more succinct
20788         and can be run together into a single paragraph.
20789         * m4/same.m4 (gl_SAME): Check for pathconf.
20790
20791 2004-01-15  Paul Eggert  <eggert@twinsun.com>
20792
20793         Merge from coreutils.
20794
20795         * lib/posixver.c: Include posixver.h.
20796
20797         * lib/same.c: Include <stdbool.h>, <limits.h>.
20798         (_POSIX_NAME_MAX): Define if not defined.
20799         (MIN): New macro.
20800         (same_name): If file names are silently truncated, report
20801         that the file names are the same if they are the same after
20802         the silent truncation.
20803
20804         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
20805         conversion function.
20806         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
20807         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
20808         longer needed.
20809
20810 2004-01-15  Jim Meyering  <jim@meyering.net>
20811
20812         Merge from coreutils.
20813
20814         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
20815         if no library is required.
20816         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
20817         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
20818         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
20819         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
20820         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
20821         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
20822         value, $ac_cv_search_crypt, if it's "none required".
20823         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
20824         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
20825         not gl_FUNC_GETLOADAVG.
20826         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
20827         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
20828
20829 2004-01-15  Jim Meyering  <jim@meyering.net>
20830
20831         Merge from coreutils.
20832
20833         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
20834         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
20835         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
20836
20837         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
20838         optional configure-time default.
20839
20840         * lib/version-etc.c (version_etc_copyright): Update copyright date.
20841
20842         * lib/xreadlink.c (xreadlink): Correct outdated comment.
20843
20844 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
20845
20846         Merge from coreutils.
20847
20848         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
20849         value, $ac_cv_search_nanosleep, if it's "none required".
20850
20851 2004-01-14  Paul Eggert  <eggert@twinsun.com>
20852
20853         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
20854         with like-named macro in fnmatch.c.
20855         (EXT): Use an internal constant instead.
20856
20857         Merge fnmatch patches from glibc.
20858         * lib/fnmatch.c (mbsinit): Remove define.
20859         Add libc_hidden_ver (__fnmatch, fnmatch).
20860         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
20861         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
20862
20863 2004-01-14  Karl Berry  <karl@gnu.org>
20864
20865         * config/install-sh: update from automake.
20866
20867 2004-01-13  Karl Berry  <karl@gnu.org>
20868
20869         * config/install-sh: update from automake.
20870
20871 2004-01-09  Karl Berry  <karl@gnu.org>
20872
20873         * config/install-sh: update from automake.
20874
20875 2004-01-05  Karl Berry  <karl@gnu.org>
20876
20877         * config/config.{sub,guess}: update from config.
20878
20879 2003-12-31  Karl Berry  <karl@gnu.org>
20880
20881         * config/depcomp: update from automake.
20882
20883 2003-12-14  Karl Berry  <karl@gnu.org>
20884
20885         * lib/config.charset: update from gettext-runtime.
20886
20887 2003-12-03  Paul Eggert  <eggert@twinsun.com>
20888
20889         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
20890         Bug reported by Alfred M. Szmidt.
20891
20892 2003-12-03  Bruno Haible  <bruno@clisp.org>
20893
20894         * m4/gettext.m4: Upgrade from gettext-0.13.
20895         * m4/po.m4: Upgrade from gettext-0.13.
20896         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
20897         * m4/intmax.m4: New file, from gettext-0.13.
20898         * m4/printf-posix.m4: New file, from gettext-0.13.
20899
20900 2003-11-29  Karl Berry  <karl@gnu.org>
20901
20902         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
20903
20904 2003-11-25  Paul Eggert  <eggert@twinsun.com>
20905             Bruno Haible  <bruno@clisp.org>
20906
20907         * lib/printf-parse.h: Don't include sys/types.h.
20908         (ARG_NONE): New macro.
20909         (char_directive): Change type of *arg_index fields to size_t.
20910         * lib/printf-parse.c: Don't include sys/types.h.
20911         (SSIZE_MAX): Remove macro.
20912         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
20913         Remove unnecessary overflow check.
20914         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
20915         fields.
20916
20917 2003-11-25  Bruno Haible  <bruno@clisp.org>
20918
20919         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
20920
20921 2003-11-25  Bruno Haible  <bruno@clisp.org>
20922
20923         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
20924         gt_TYPE_SSIZE_T.
20925
20926 2003-11-24  Paul Eggert  <eggert@twinsun.com>
20927
20928         * modules/alloca: Remove dependency on xalloc.
20929
20930 2003-11-24  Paul Eggert  <eggert@twinsun.com>
20931
20932         * lib/alloca.c: Remove dependency on xalloc module.
20933         (xalloc_die): Remove.
20934         (memory_full) [!defined emacs]: New macro.
20935         [!defined emacs]: Don't include xalloc.h.
20936         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
20937         address arithmetic overflows.  Change datatypes a bit to avoid
20938         unnecessary casts.
20939
20940 2003-11-22  Jim Meyering  <jim@meyering.net>
20941
20942         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
20943         s/size/size_t/.
20944
20945 2003-11-21  Karl Berry  <karl@gnu.org>
20946
20947         * config/config.{sub,guess}: update from config.
20948
20949 2003-11-18  Karl Berry  <karl@gnu.org>
20950
20951         * config/config.{sub,guess}: update from config.
20952
20953         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
20954
20955 2003-11-17  Paul Eggert  <eggert@twinsun.com>
20956
20957         * README: Mention that S+T cannot overflow if S is the size of
20958         an existing object and T is sufficiently small.
20959
20960 2003-11-17  Jim Meyering  <jim@meyering.net>
20961
20962         On systems without utime and without a utimes function capable of
20963         dealing with a NULL struct utimbuf* argument, this utime replacement
20964         could -- in unusual circumstances -- leak a file descriptor.
20965         * lib/utime.c: Include <unistd.h> and <errno.h>.
20966         (utime_null): Be sure to close `fd' and to preserve errno.
20967         Reported by Geoff Collyer via Arnold Robbins.
20968
20969 2003-11-17  Bruno Haible  <bruno@clisp.org>
20970
20971         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
20972         (Depends-on): Add xsize.
20973
20974 2003-11-17  Bruno Haible  <bruno@clisp.org>
20975
20976         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
20977
20978 2003-11-17  Bruno Haible  <bruno@clisp.org>
20979
20980         * lib/vasnprintf.c (alloca): Remove fallback definition.
20981         (freea): Remove definition.
20982         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
20983         Reported by Paul Eggert.
20984
20985 2003-11-16  Paul Eggert  <eggert@twinsun.com>
20986             Bruno Haible  <bruno@clisp.org>
20987
20988         Protect against address arithmetic overflow.
20989         * lib/printf-args.h: Include stddef.h.
20990         (arguments): Change type of field 'count' to size_t.
20991         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
20992         'unsigned int' where appropriate.
20993         * lib/printf-parse.h: Include sys/types.h.
20994         (char_directive): Change type of *arg_index fields to ssize_t.
20995         (char_directives): Change type of fields 'count', max_*_length to
20996         size_t.
20997         * lib/printf-parse.c: Include sys/types.h and xsize.h.
20998         (SSIZE_MAX): Define fallback value.
20999         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
21000         instead of 'int' where appropriate. Check a_allocated, d_allocated
21001         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
21002         * lib/vasnprintf.c: Include xsize.h.
21003         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
21004         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
21005         overflow. Avoid wraparound when converting a width or precision from
21006         decimal to binary.
21007
21008 2003-11-16  Bruno Haible  <bruno@clisp.org>
21009
21010         Update from GNU gettext.
21011         * lib/printf-parse.c: Generalize to it can be compiled for wide
21012         strings.
21013         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
21014         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
21015         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
21016         SNPRINTF): New macros.
21017         Don't include <alloca.h> if the file is used inside libintl.
21018         (local_wcslen): New function, for Solaris 2.5.1.
21019         (VASNPRINTF): Use it instead of wcslen.
21020
21021 2003-11-16  Bruno Haible  <bruno@clisp.org>
21022
21023         * lib/xsize.h (xmax): New function.
21024         (xsum, xsum3, xsum4): Declare as "pure" functions.
21025
21026 2003-11-12  Paul Eggert  <eggert@twinsun.com>
21027
21028         * modules/xalloc (Files): Undo latest change, since xalloc.h
21029         no longer needs SIZE_MAX or PTRDIFF_MAX.
21030
21031 2003-11-12  Paul Eggert  <eggert@twinsun.com>
21032
21033         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
21034         gl_PTRDIFF_MAX.
21035
21036 2003-11-12  Paul Eggert  <eggert@twinsun.com>
21037
21038         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
21039         "return", to pacify some unknown compiler.  Problem reported
21040         by Joerg Schilling.
21041
21042 2003-11-12  Paul Eggert  <eggert@twinsun.com>
21043
21044         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
21045         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
21046         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
21047         heuristic is just as accurate as far as we know, and it removes a
21048         dependency on size_max.m4 and ptrdiff_max.m4.
21049
21050 2003-11-11  Bruno Haible  <bruno@clisp.org>
21051
21052         * modules/xsize (Files): Add m4/size_max.m4.
21053         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
21054
21055 2003-11-11  Bruno Haible  <bruno@clisp.org>
21056
21057         * m4/size_max.m4: New file.
21058         * m4/ptrdiff_max.m4: New file.
21059         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
21060         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
21061         (gl_XALLOC): Invoke it.
21062
21063 2003-11-11  Bruno Haible  <bruno@clisp.org>
21064
21065         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
21066         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
21067         defined.
21068
21069 2003-11-10  Paul Eggert  <eggert@twinsun.com>
21070
21071         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
21072         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
21073         rejected some allocations of exactly SIZE_MAX - 2 bytes.
21074         From Bruno Haible.
21075         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
21076         not (size_t) -1, since it's defined here.
21077
21078 2003-11-09  Karl Berry  <karl@gnu.org>
21079
21080         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
21081
21082 2003-11-06  Paul Eggert  <eggert@twinsun.com>
21083
21084         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
21085         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
21086         Reject sizes of exactly SIZE_MAX bytes.
21087         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
21088         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
21089
21090 2003-11-05  Bruno Haible  <bruno@clisp.org>
21091
21092         * lib/xsize.h: Include limits.h, to avoid a possible collision with
21093         SIZE_MAX defined in <limits.h> on Solaris.
21094
21095 2003-11-04  Jim Meyering  <jim@meyering.net>
21096
21097         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
21098         variable names, rather than @VAR@.
21099         * modules/poll: Likewise.
21100
21101 2003-11-04  Bruno Haible  <bruno@clisp.org>
21102
21103         * modules/xsize: New file.
21104         * modules/linebreak: Depend on xsize.
21105         * MODULES.html.sh (func_all_modules): Add xsize.
21106
21107 2003-11-04  Bruno Haible  <bruno@clisp.org>
21108
21109         * m4/xsize.m4: New file.
21110
21111 2003-11-04  Bruno Haible  <bruno@clisp.org>
21112
21113         * lib/xsize.h: New file.
21114         * lib/linebreak.c: Include xsize.h.
21115         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
21116         argument for overflow.
21117         Suggested by Paul Eggert.
21118
21119 2003-11-03  Karl Berry  <karl@gnu.org>
21120
21121         * config/config.{guess,sub}: update from config.
21122
21123 2003-11-03  Jim Meyering  <jim@meyering.net>
21124
21125         * modules/userspec (lib_SOURCES): Add userspec.h.
21126         (Include): Add "userspec.h".
21127         Improve description.
21128
21129 2003-11-03  Jim Meyering  <jim@meyering.net>
21130
21131         * lib/userspec.c: Include "userspec.h".
21132         * lib/userspec.h: New file.
21133
21134 2003-11-03  Bruno Haible  <bruno@clisp.org>
21135
21136         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
21137
21138 2003-11-03  Bruno Haible  <bruno@clisp.org>
21139
21140         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
21141         available, to avoid (extremely rare) race condition.
21142         Suggested by Paul Eggert.
21143
21144 2003-11-02  Karl Berry  <karl@gnu.org>
21145
21146         * config/srclist.txt (vasprintf.c): sync broken, sigh.
21147
21148 2003-10-31  Paul Eggert  <eggert@twinsun.com>
21149
21150         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
21151         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
21152         (read_filesystem_list): Set and use me_type_malloced.
21153         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
21154         whatever the type happens to be), for brevity and consistency.
21155         Check for size calculation overflow on Alphas running OSF/1.
21156
21157 2003-10-31  Jim Meyering  <jim@meyering.net>
21158
21159         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
21160
21161         * lib/linebuffer.c: Include <string.h> for declaration of memset.
21162
21163 2003-10-30  Paul Eggert  <eggert@twinsun.com>
21164             Bruno Haible  <bruno@clisp.org>
21165
21166         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
21167         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
21168
21169 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21170
21171         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
21172         netbsd*-gnu*.  Suggested by Robert Millan.
21173
21174 2003-10-29  Paul Eggert  <eggert@twinsun.com>
21175
21176         * modules/group-member: Depend on stdbool.
21177
21178 2003-10-29  Paul Eggert  <eggert@twinsun.com>
21179
21180         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
21181
21182 2003-10-29  Paul Eggert  <eggert@twinsun.com>
21183
21184         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
21185         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
21186         after the 'gnu' in these cases.  This fixes some bugs in the
21187         previous change, and is based on suggestions by Robert Millan.
21188
21189 2003-10-29  Paul Eggert  <eggert@twinsun.com>
21190
21191         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
21192         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
21193         no longer needed.
21194         * lib/quotearg.c (quotearg_n_options): Use it.
21195         * lib/group-member.c: Include <stdbool.h>.
21196         (free_group_info): Arg is now const *; don't free arg.
21197         (get_group_info): Now returns bool and accepts struct group_info *,
21198         rather than returning a malloc'ed struct group_info *.
21199         All uses changed.  Check for overflow in internal size calculation.
21200
21201         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
21202         rather than xmalloc/xrealloc.
21203         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
21204         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
21205         conformance bug: the old code used a pointer after freeing the
21206         storage that it addressed.
21207         * lib/hash.c (hash_initialize): Simplify the code by using
21208         xalloc_oversized rather than doing it by hand.
21209         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
21210         the buffer preserved.  Use free and xmalloc instead.
21211         * lib/quotearg.c (quotearg_n_options): Likewise.
21212         Use a simpler test for size overflow.  Don't use xalloc_oversized
21213         because unsigned int might be wider than size_t (!); this suggests
21214         that we should switch from unsigned int to size_t for slot numbers.
21215
21216 2003-10-28  Paul Eggert  <eggert@twinsun.com>
21217
21218         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
21219         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
21220         NetBSD kernels.  Requested by Richard Stallman.
21221
21222 2003-10-27  Paul Eggert  <eggert@twinsun.com>
21223
21224         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
21225         to allocate the returned structure.  Do not allocate a subarray,
21226         as x2nrealloc will do that.
21227         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
21228         instead of xnrealloc.
21229         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
21230
21231 2003-10-27  Bruno Haible  <bruno@clisp.org>
21232
21233         * lib/stdbool_.h: Better support for BeOS.
21234
21235 2003-10-26  Paul Eggert  <eggert@twinsun.com>
21236
21237         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
21238         now uses inline.
21239
21240 2003-10-26  Paul Eggert  <eggert@twinsun.com>
21241
21242         * lib/xalloc.h (xalloc_oversized): New static inline function, for
21243         callers that want to do their own size-overflow checking.  Include
21244         <stdbool.h>, since xalloc_oversized returns bool.
21245         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
21246         to use xalloc_oversized.
21247
21248         Add two functions x2realloc, x2nrealloc, for programs that grow
21249         arrays dynamically by doubling their sizes.
21250         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
21251         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
21252         New functions.
21253
21254         Port to C99 semantics for 'inline' of external functions.
21255         Bug reported by Bruno Haible.
21256         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
21257         with the old contents of xnmalloc.
21258         (xnmalloc, xmalloc): Use it.
21259         (xnrealloc_inline): New static inline function,
21260         with the old contents of xnrealloc.
21261         (xnrealloc, xrealloc): Use it.
21262
21263         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
21264         that.
21265
21266 2003-10-26  Karl Berry  <karl@gnu.org>
21267
21268         * config/srclist.txt (COPYING.DOC): no longer available from
21269         /gd/gnuorg; don't know where the ultimate source is.
21270
21271 2003-10-25  Paul Eggert  <eggert@twinsun.com>
21272
21273         Fix several address-calculation bugs in the hash modules,
21274         plus some minor code cleanup.
21275
21276         * lib/hash.h: Include <stdbool.h>, for bool.
21277         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
21278         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
21279         hash_get_n_entries, hash_get_max_bucket_length,
21280         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
21281         hash_rehash): Use size_t rather than unsigned.
21282         * lib/hash.c (struct hash_table, hash_get_n_buckets,
21283         hash_get_n_buckets_used, hash_get_n_entries,
21284         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
21285         hash_get_entries, hash_do_for_each, hash_string, is_prime,
21286         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
21287         Likewise.
21288         (SIZE_MAX): Define if not defined.
21289         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
21290         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
21291         hash_print):
21292         Use const * when possible.
21293         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
21294         (check_tuning): Fix bug: if tuning parameters were very close to
21295         0 or 1, rounding errors could have caused subscript violations.
21296         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
21297         (hash_initialize): Add 'fail:' label
21298         to free table and return NULL, and use it to simplify code.
21299         Use calloc rather than clearing the storage ourself.
21300         (hash_initialize, hash_rehash): Check for arithmetic overflow in
21301         buffer size calculations.
21302         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
21303         Include <stddef.h>, for size_t.
21304         * lib/hash-pjw.c (hash_pjw): Likewise.
21305         Switch to method described by Bruno Haible.
21306         Include <limits.h>, for CHAR_BIT.
21307         (SIZE_BITS): New macro.
21308
21309 2003-10-23  Paul Eggert  <eggert@twinsun.com>
21310
21311         * m4/getline.m4 (AM_FUNC_GETLINE):
21312         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
21313         hosts.  Problem reported by Derek Robert Price in
21314         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
21315         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
21316         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
21317
21318 2003-10-21  Paul Eggert  <eggert@twinsun.com>
21319
21320         * lib/getndelim2.c (getndelim2): When size calculation overflows,
21321         ceiling the allocation at NMAX bytes rather than silently
21322         discarding input bytes before NMAX is reached.  This makes
21323         a difference only if NMAX exceeds SIZE_MAX / 2.
21324
21325         * lib/obstack.c: Merge from glibc.
21326         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
21327         Add libc_hidden_def (_obstack_newchunk).
21328         (_obstack_free) [! defined _LIBC]: Remove.
21329         [defined _LIBC]: Make a strong alias from obstack_free, rather than
21330         a clone of the function body.
21331         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
21332         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
21333
21334         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
21335         glibc.
21336         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
21337         arg to memcpy.
21338
21339         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
21340         (obstack_ptr_grow_fast, obstack_int_grow_fast):
21341         Don't use lvalue casts, as GCC plans to remove support for them
21342         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
21343         was also present in the non-GCC version, indicating that this
21344         code had always been buggy and had never been widely used.
21345         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
21346         Use the fast variant of each macro, rather than copying the
21347         definiens of the fast variant; that way, we'll be more likely to
21348         catch future bugs in the fast variants.
21349
21350 2003-10-20  Bruno Haible  <bruno@clisp.org>
21351
21352         * modules/wait-process: New file.
21353         * MODULES.html.sh (func_all_modules): Add wait-process.
21354
21355 2003-10-20  Bruno Haible  <bruno@clisp.org>
21356
21357         * m4/wait-process.m4: New file.
21358
21359 2003-10-20  Bruno Haible  <bruno@clisp.org>
21360
21361         * lib/wait-process.h: New file, from GNU gettext.
21362         * lib/wait-process.c: New file, from GNU gettext.
21363
21364 2003-10-19  Jim Meyering  <jim@meyering.net>
21365
21366         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
21367         HPUX 10.20.
21368
21369 2003-10-18  Karl Berry  <karl@gnu.org>
21370
21371         * config/config.guess: update from config.
21372
21373 2003-10-16  Paul Eggert  <eggert@twinsun.com>
21374
21375         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
21376         (getgroups): First arg is int, not size_t.
21377         Don't let 'free' mangle errno.
21378
21379 2003-10-16  Paul Eggert  <eggert@twinsun.com>
21380
21381         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
21382
21383 2003-10-16  Karl Berry  <karl@gnu.org>
21384
21385         * config/config.{guess,sub}: update from config.
21386
21387 2003-10-16  Jim Meyering  <jim@meyering.net>
21388
21389         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
21390         memcpy.
21391
21392 2003-10-15  Paul Eggert  <eggert@twinsun.com>
21393
21394         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
21395         (SIZE_MAX): Remove.
21396         (new_exclude, add_exclude_file): Initial size no longer needs to
21397         be a power of 2.
21398         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
21399         our own address arithmetic overflow checking.
21400
21401         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
21402         (fnmatch): Do not alloca more than 2000 wide characters;
21403         instead, use malloc for large buffers.
21404         Check for address arithmetic overflow, and return -1
21405         with errno set to ENOMEM in that case.
21406         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
21407         (NEW_PATTERN): Do not alloca more than 8000 bytes;
21408         instead, return -1.  Check for address arithmetic overflow.
21409
21410 2003-10-14  Paul Eggert  <eggert@twinsun.com>
21411
21412         Handle invalid suffixes and overflow independently, so that
21413         callers can treat them independently as needed.  Fix some bugs in
21414         suffix handling, e.g., "100k@" was not diagnosed as an invalid
21415         suffix for a human-readable blocksize.  The major caller-visible
21416         change is the addition of a new
21417         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
21418         that both overflow and suffix chars were found.
21419
21420         * lib/human.c (humblock): Don't check separately for invalid suffix
21421         char; that is xstrtoumax's job (now that its bug is fixed).
21422         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
21423         INTMAX_MAX]: New macros.
21424         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
21425         TYPE_MAXIMUM): New macros.
21426         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
21427         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
21428         if overflow occurs, as it's what __strtol does and it's more useful
21429         in practice.
21430         (__xstrtol): If __strtol reports some error other than ERANGE,
21431         reflect it to the caller as LONGINT_INVALID.  If it reports
21432         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
21433         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
21434         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
21435         value.
21436         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
21437         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
21438         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
21439         [defined UINTMAX_MAX]: New macros.
21440
21441 2003-10-14  Bruno Haible  <bruno@clisp.org>
21442
21443         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
21444
21445 2003-10-14  Bruno Haible  <bruno@clisp.org>
21446
21447         * m4/sig_atomic_t: New file, from GNU gettext.
21448         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
21449
21450 2003-10-14  Bruno Haible  <bruno@clisp.org>
21451
21452         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
21453         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
21454         Also use volatile where needed.
21455
21456 2003-10-12  Paul Eggert  <eggert@twinsun.com>
21457
21458         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
21459         Change maintainer from Bruno Haible to 'all'.
21460
21461 2003-10-12  Paul Eggert  <eggert@twinsun.com>
21462
21463         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
21464
21465 2003-10-12  Paul Eggert  <eggert@twinsun.com>
21466
21467         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
21468         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
21469         and define in terms of the other primitives.
21470         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
21471         (SIZE_MAX): Define if not already defined.
21472         (array_size_overflow): New function.
21473         (xalloc_die): Abort instead of exiting if 'error' returns.
21474         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
21475         (xmalloc, xrealloc): Use them.
21476         (xcalloc): Check for address arithmetic overflow.
21477         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
21478         a bit faster than strcpy.
21479
21480 2003-10-10  Simon Josefsson  <jas@extundo.com>
21481
21482         * modules/argp (Depends-on): Add restrict and strcase.
21483
21484 2003-10-10  Simon Josefsson  <jas@extundo.com>
21485
21486         * m4/argp.m4: Add AC_C_INLINE.
21487
21488 2003-10-08  Paul Eggert  <eggert@twinsun.com>
21489
21490         Merge getpass from libc, plus a few fixes.
21491
21492         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
21493         Include <stdbool.h>.
21494         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
21495         __fsetlocking to empty.
21496         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
21497         do include <bits/libc-lock.h>.
21498         Do not include <fcntl.h>; not needed.
21499         [_LIBC]: Include <wchar.h>.
21500         (NOTCANCEL_MODE): New macro.
21501         (flockfile, funlockfile) [_LIBC]: New macros.
21502         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
21503         [!_LIBC]: New macros.
21504         (call_fclose): New function.
21505         (getpass): Use it.  Save tty stream separately; this simplifies the
21506         code and makes it more reliable if stdin happens to equal stdout.
21507         Invoke __fsetlocking on tty.
21508         Handle thread cancellation if needed.
21509         Namespace cleanup (use __tcgetattr, __getline).
21510         Use bool for Booleans.
21511         [USE_IN_LIBIO]: Handle wide streams.
21512         [!_LIBC]: Unconditionally do the fseek, since we don't know what
21513         stream might go where.
21514
21515         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
21516         doesn't have to include <stdio.h> before us.
21517         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
21518         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
21519         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
21520         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
21521         if not declared, so that we can use getpass.c code from libc without
21522         rewriting it.
21523         (flockfile, ftrylockfile, funlockfile): New macros.
21524
21525 2003-10-08  Paul Eggert  <eggert@twinsun.com>
21526
21527         * modules/getpass: Depend on stdbool.
21528
21529 2003-10-08  Paul Eggert  <eggert@twinsun.com>
21530
21531         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
21532
21533 2003-10-07  Karl Berry  <karl@gnu.org>
21534
21535         * config/config.{guess,sub}: update from config.
21536
21537 2003-10-06  Jim Meyering  <jim@meyering.net>
21538             Bruno Haible  <bruno@clisp.org>
21539
21540         This lets translators provide better translations for the
21541         "Written by ..." part of --version output.
21542         * lib/version-etc.h: Include stdarg.h.
21543         (version_etc_copyright): Declare as readonly.
21544         (version_etc): Make this function variadic with a NULL-terminated list
21545         of author name strings.
21546         (version_etc_va): New declaration.
21547         * lib/version-etc.c: Include stdarg.h, stdlib.h.
21548         (version_etc_copyright): Declare as readonly.
21549         (version_etc_va): New function. Provide a different translatable string
21550         for each possible number of authors < 10. Abbreviate when there are 10
21551         authors or more.
21552         (version_etc): Make this function variadic. Call version_etc_va.
21553         Suggestion from Gary V. Vaughan.
21554
21555         * lib/long-options.h (parse_long_options): Change prototype: the
21556         authors string is moved to the end and becomes variadic.
21557         * lib/long-options.c: Include stdarg.h.
21558         (parse_long_options): Make this function variadic, too.
21559         Call version_etc_va, not version_etc.
21560
21561 2003-10-06  Bruno Haible  <bruno@clisp.org>
21562
21563         * modules/version-etc-2: Remove file.
21564         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
21565
21566 2003-10-06  Bruno Haible  <bruno@clisp.org>
21567
21568         * modules/fatal-signal: New file.
21569         * MODULES.html.sh (func_all_modules): Add fatal-signal.
21570
21571 2003-10-06  Bruno Haible  <bruno@clisp.org>
21572
21573         * m4/fatal-signal.m4: New file.
21574         * m4/signalblocking.m4: New file, from GNU gettext.
21575
21576 2003-10-06  Bruno Haible  <bruno@clisp.org>
21577
21578         * lib/version-etc-2.h: Remove file.
21579         * lib/version-etc-2.c: Remove file.
21580
21581 2003-10-06  Bruno Haible  <bruno@clisp.org>
21582
21583         * lib/fatal-signal.h: New file, from GNU gettext.
21584         * lib/fatal-signal.c: New file, from GNU gettext.
21585
21586 2003-10-05  Paul Eggert  <eggert@twinsun.com>
21587
21588         * README: Rework advice for preventing empty .o files.
21589         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
21590         not <sys/types.h>.
21591
21592 2003-10-04  Karl Berry  <karl@gnu.org>
21593
21594         * lib/argp*: update from libc.
21595
21596 2003-10-04  Karl Berry  <karl@gnu.org>
21597
21598         * config/config.{guess,sub}: update from config.
21599
21600 2003-10-02  Bruno Haible  <bruno@clisp.org>
21601
21602         * modules/lchown (Include): Add lchown.h.
21603         * modules/time_r (Include): Use "..." syntax.
21604         * modules/xgetdomainname (Include): Add xgetdomainname.h.
21605
21606 2003-10-01  Simon Josefsson  <jas@extundo.com>
21607
21608         * MODULES.html.sh (func_all_modules): Move gethostname from section
21609         'based on' to section 'lacking' POSIX:2001.
21610
21611 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
21612
21613         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
21614         to output mode on the same stream.
21615
21616 2003-09-29  Paul Eggert  <eggert@twinsun.com>
21617
21618         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
21619         Fix arg typo in previous patch.
21620
21621 2003-09-28  Jim Meyering  <jim@meyering.net>
21622
21623         * lib/error.c: Correct cpp indentation.
21624
21625 2003-09-27  Paul Eggert  <eggert@twinsun.com>
21626
21627         * modules/free: New file.
21628
21629 2003-09-27  Paul Eggert  <eggert@twinsun.com>
21630
21631         * m4/free.m4: New file.
21632
21633 2003-09-27  Paul Eggert  <eggert@twinsun.com>
21634
21635         * lib/minmax.h (MIN, MAX)
21636         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
21637         Omit the special code that used __typeof__, since we worry that
21638         it could be more trouble than it's worth.  See:
21639         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
21640         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
21641
21642         * lib/free.c: New file.
21643
21644 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
21645
21646         Trivial fixes to Makefile.am parts of module listings.
21647         * modules/strstr: Append strstr.h to lib_SOURCES.
21648         * modules/strcase: Likewise, for strcase.h.
21649
21650 2003-09-27  Karl Berry  <karl@gnu.org>
21651
21652         * config/mkinstalldirs: update from automake.
21653
21654 2003-09-26  Paul Eggert  <eggert@twinsun.com>
21655
21656         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
21657         (error_tail): Do not loop, reallocating temporary buffer, since
21658         the output cannot contain more wide characters than the input
21659         contains bytes, the size must be big enough already.  This avoids
21660         one potential size overflow calculation.  Check for size overflow
21661         when calculating temporary buffer size.  Free temporary buffer
21662         when done, if it was allocated with malloc; this plugs a memory
21663         leak.  Remove casts from void * to pointers, that are no longer
21664         needed now that we're assuming C89 or better.
21665
21666         Merge error changes from glibc.
21667
21668         * lib/error.c, error.h: Update copyright notice header to match glibc.
21669         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
21670         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
21671         Disable cancellation while printing error.
21672         * lib/error.h: Prepend __ to parameter names.
21673
21674 2003-09-26  Jim Meyering  <jim@meyering.net>
21675
21676         * lib/error.c (error_tail): Move some declarations
21677         into inner scope where the local variables are used.
21678
21679 2003-09-26  Bruno Haible  <bruno@clisp.org>
21680
21681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
21682         stpncpy().
21683         Don't define stpncpy through config.h; it's now done through stpncpy.h.
21684
21685 2003-09-26  Bruno Haible  <bruno@clisp.org>
21686
21687         * lib/stpncpy.h (gnu_stpncpy): New declaration.
21688         (stpncpy): Define as alias for gnu_stpncpy.
21689         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
21690
21691 2003-09-25  Simon Josefsson  <jas@extundo.com>
21692
21693         * lib/xgetdomainname.h: New file.
21694         * lib/xgetdomainname.c: New file.
21695
21696 2003-09-25  Simon Josefsson  <jas@extundo.com>
21697             Bruno Haible  <bruno@clisp.org>
21698
21699         * modules/getdomainname: New file.
21700         * modules/xgetdomainname: New file.
21701         * MODULES.html.sh (func_all_modules): Add getdomainname,
21702         xgetdomainname.
21703
21704 2003-09-25  Simon Josefsson  <jas@extundo.com>
21705             Bruno Haible  <bruno@clisp.org>
21706
21707         * m4/getdomainname.m4: New file.
21708
21709 2003-09-25  Simon Josefsson  <jas@extundo.com>
21710             Bruno Haible  <bruno@clisp.org>
21711
21712         * lib/getdomainname.h: New file.
21713         * lib/getdomainname.c: New file.
21714
21715 2003-09-25  Karl Berry  <karl@gnu.org>
21716
21717         * lib/argp-fmtstream.c, argp-help.c: update from libc.
21718
21719 2003-09-25  Karl Berry  <karl@gnu.org>
21720
21721         * config/install-sh: update from automake.
21722
21723 2003-09-25  Bruno Haible  <bruno@clisp.org>
21724
21725         * modules/version-etc-2: New file, from modules/version-etc with
21726         modifications.
21727         * MODULES.html.sh (func_all_modules): Add version-etc-2.
21728
21729 2003-09-25  Bruno Haible  <bruno@clisp.org>
21730
21731         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
21732         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
21733
21734 2003-09-24  Simon Josefsson  <jas@extundo.com>
21735
21736         * modules/xgethostname: Add xgethostname.h.
21737
21738 2003-09-24  Paul Eggert  <eggert@twinsun.com>
21739
21740         * lib/linebuffer.c (freebuffer): Don't free the argument, just
21741         the buffer associated with the argument.  Bug reported by
21742         Simon Josefsson.
21743
21744 2003-09-24  Paul Eggert  <eggert@twinsun.com>
21745
21746         * README: Document assumptions that 'int' is at least 32 bits
21747         wide, that integer arithmetic is 2's complement without overflow,
21748         that there are no holes in integer values, that adding sizes of
21749         two nonoverlapping objects can't overflow, and that all-bits-zero
21750         yields scalar zero.  Fix spelling and capitalization typos.
21751
21752 2003-09-19  Karl Berry  <karl@gnu.org>
21753
21754         * lib/argp.h: update from libc.
21755
21756 2003-09-17  Paul Eggert  <eggert@twinsun.com>
21757
21758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
21759         to avoid spurious warnings like "AC_RUN_IFELSE was called before
21760         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
21761
21762 2003-09-17  Paul Eggert  <eggert@twinsun.com>
21763
21764         * gnulib-tool: Use "test -h", not "test -L", for portability
21765         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
21766         (tags_regexp): Remove, since \| doesn't conform to POSIX.
21767         (sed_extract_prog): Issue s commands one-by-one, rather than
21768         using \| in one s command.
21769
21770 2003-09-16  Paul Eggert  <eggert@twinsun.com>
21771
21772         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
21773         input error, instead of returning NULL the next time we are called
21774         (and therefore losing track of errno).
21775
21776 2003-09-16  Bruno Haible  <bruno@clisp.org>
21777
21778         * gnulib-tool (func_create_testdir): Warn about duplicated
21779         dependencies.
21780
21781 2003-09-15  Paul Eggert  <eggert@twinsun.com>
21782
21783         * modules/argmatch, modules/fatal, modules/obstack,
21784         modules/xalloc, modules/xgethostname: Sort dependencies by
21785         importance, not alphabetically.
21786
21787 2003-09-15  Paul Eggert  <eggert@twinsun.com>
21788
21789         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
21790         fails, so that the caller gets the proper errno.
21791
21792         * lib/readutmp.c (read_utmp): Likewise.
21793         Check for fstat error.  Close stream and free storage
21794         when failing.
21795
21796 2003-09-14  Karl Berry  <karl@gnu.org>
21797
21798         * config/srclist.txt (strdup.c): disable for c89 changes.
21799
21800 2003-09-14  Jim Meyering  <jim@meyering.net>
21801
21802         * lib/getloadavg.c: Correct cpp indentation.
21803         * lib/strdup.c: Likewise.
21804         * lib/vasnprintf.c: Likewise.
21805
21806 2003-09-14  Bruno Haible  <bruno@clisp.org>
21807
21808         * modules/fwriteerror: New file.
21809         * MODULES.html.sh (func_all_modules): Add fwriteerror.
21810
21811 2003-09-14  Bruno Haible  <bruno@clisp.org>
21812
21813         * lib/fwriteerror.h: New file.
21814         * lib/fwriteerror.c: New file.
21815
21816 2003-09-12  Paul Eggert  <eggert@twinsun.com>
21817
21818         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
21819         modules/xgethostname, modules/xalloc: Depend on exit.
21820
21821 2003-09-12  Paul Eggert  <eggert@twinsun.com>
21822
21823         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
21824
21825         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
21826         and AC_MINIX, too, so that their extensions are available.
21827
21828         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
21829         This macro has been superseded by gl_BACKUPFILE.
21830
21831         More patches to assume C89 or better.
21832
21833         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
21834
21835         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
21836         unconditionally.
21837         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
21838         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
21839         Include <string.h>, <stdlib.h> unconditionally.
21840         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
21841         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
21842         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
21843         headers or for string.h.
21844         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
21845         or strtoul.
21846
21847         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
21848         headers.
21849         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
21850         * m4/userspec.m4 (gl_USERSPEC): Likewise.
21851         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
21852         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
21853         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21854         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
21855         memcpy, memset.
21856         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
21857         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
21858         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
21859         strtol.
21860         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
21861         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
21862         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
21863         strtoul.
21864
21865 2003-09-12  Paul Eggert  <eggert@twinsun.com>
21866
21867         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
21868         * lib/obstack.c [!defined _LIBC]: Likewise.
21869         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
21870         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
21871         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
21872
21873         More changes to assume C89 or better.
21874
21875         * lib/error.c (error_tail): Assume vprintf.
21876
21877         * lib/argmatch.c (getenv): Remove decl.
21878         * lib/progreloc.c (get_full_program_name): Define via prototype.
21879         * lib/setenv.c (clearenv): Likewise.
21880         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
21881         needed.
21882         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
21883         (malloc, memcpy): Remove decls.
21884         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
21885         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
21886         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
21887         (memcpy): Remove macro.
21888         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
21889         (__P): Remove.  All uses removed.
21890         (PTR): Remove.  All uses changed to void *.
21891         (CHAR_BIT, NULL): Remove.
21892         (spaces, zeros, memset_space, memset_zero)
21893         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
21894         Remove.
21895         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
21896         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
21897         Define with prototype.
21898         Remove now-unnecessary prototype decl.
21899         (extra_args_spec): Assume ANSI C.  All uses changed.
21900         (extra_args_spec_iso): Remove.
21901         (my_strftime, emacs_strftimeu): Define via prototype.
21902         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
21903         unconditionally.
21904         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
21905         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
21906         (strtoul, strtol): Remove decls.
21907         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
21908         LONG_MAX): Remove.
21909         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
21910         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
21911         (LOCALE_PARAM_PROTO): New macro.
21912         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
21913         (INTERNAL (strtol), strtol): Define with a prototype.
21914         (PARAMS): Remove.  All uses removed.
21915         * lib/tempname.c: Include <string.h> unconditionally.
21916         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
21917         * lib/xgethostname.c (main): Define with a prototype.
21918         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
21919         Include <stdlib.h> unconditionally.
21920         (calloc, malloc, realloc, free): Remove decls.
21921         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
21922         Include <stdlib.h> unconditionally.  Sort include file names.
21923         (strtod): Remove.
21924         (xstrtod): Define with a prototype.
21925         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
21926         (strtol, strtoul): Remove decls.
21927
21928 2003-09-11  Paul Eggert  <eggert@twinsun.com>
21929
21930         More patches to assume C89 or better.
21931         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
21932         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
21933         string.h, memchr, STDC_HEADERS.
21934
21935 2003-09-11  Paul Eggert  <eggert@twinsun.com>
21936
21937         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
21938         Include <stdlib.h>, <string.h> unconditionally.
21939         Remove now-unnecessary cast to char *.
21940         * lib/strnlen.c: Include <string.h> unconditionally.
21941         * lib/yesno.c (yesno): Define with a prototype.
21942
21943 2003-09-11  Bruno Haible  <bruno@clisp.org>
21944
21945         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
21946
21947 2003-09-10  Jim Meyering  <jim@meyering.net>
21948
21949         * lib/error.c: Correct indentation of cpp directives.
21950
21951 2003-09-10  Bruno Haible  <bruno@clisp.org>
21952
21953         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
21954         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
21955         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
21956         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
21957         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
21958         <stdlib.h> and <string.h> checks.
21959         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
21960         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
21961
21962 2003-09-10  Bruno Haible  <bruno@clisp.org>
21963
21964         * lib/strcspn.c: Include <string.h> unconditionally.
21965         * lib/strpbrk.c: Include <string.h> unconditionally.
21966         * lib/strstr.c: Include <string.h> unconditionally.
21967         * lib/unicodeio.c: Include <string.h> unconditionally.
21968         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
21969         * lib/unsetenv.c: Likewise.
21970         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
21971         * lib/yesno.c: Include <stdlib.h> unconditionally.
21972         (rpmatch): Add prototype.
21973
21974 2003-09-09  Paul Eggert  <eggert@twinsun.com>
21975
21976         More patches to assume C89 or better.
21977         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
21978         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
21979         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
21980         or for string.h.
21981         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
21982         stdlib.h.
21983         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
21984         C headers.
21985         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
21986         string.h.
21987         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
21988         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
21989         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
21990         or for string.h.
21991         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
21992         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
21993         C headers.
21994         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
21995         memcpy.
21996         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
21997         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
21998         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
21999         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
22000         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
22001         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
22002         string.h, free.
22003         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
22004         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
22005         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
22006         C headers, or for string.h.
22007         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
22008         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
22009         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
22010         headers, memory.h, stdlib.h, string.h, strings.h.
22011         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
22012         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
22013         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
22014         strchr.
22015         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
22016         headers, memory.h, string.h.
22017         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
22018         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
22019         free.
22020         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
22021         headers.
22022         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
22023         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
22024         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
22025         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
22026         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
22027
22028 2003-09-09  Paul Eggert  <eggert@twinsun.com>
22029
22030         More K&R removal.
22031
22032         * lib/acosl.c (main): Use a prototype.
22033         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
22034         tanl.c: Likewise.
22035
22036         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
22037
22038         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
22039         (getopt, etopt_long, getopt_long_only, _getopt_internal)
22040         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
22041         with a prototype.
22042         * lib/getopt.c (const): Remove macro.
22043         Include <string.h> unconditionally.
22044         (my_index): Remove; all uses changed to strchr.
22045         (strlen): Remove decl.
22046         (exchange): Remove forward decl; no longer needed.
22047         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
22048         Define with prototype.
22049         * lib/getopt1.c (const): Remove macro.
22050         (getopt_long, getopt_long_only, main): Define with prototype.
22051
22052         * lib/getugroups.c: Include <string.h> unconditionally.
22053
22054         * lib/getusershell.c: Include <stdlib.h> unconditionally.
22055         (getusershell, setusershell, endusershell, readname, main):
22056         Define with prototypes.
22057
22058         * lib/group-member.c: Include group-member.h first.
22059         Include <stdlib.h> unconditionally.
22060
22061         * lib/hard-locale.c: Include hard-locale.h first.
22062         Include <stdlib.h>, <string.h> unconditionally.
22063
22064         * lib/hash.c (free, malloc): Remove decls.
22065         Include <stdlib.h> unconditionally.
22066
22067         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
22068         (getenv): Do not declare.
22069
22070         * lib/idcache.c: Include <string.h> unconditionally.
22071
22072         * lib/long-options.c: Include long-options.h first, to test interface.
22073         Include <stdlib.h> unconditionally.
22074
22075         * lib/makepath.c: Include makepath.h first, to test interface.
22076         Include <stdlib.h> and <string.h> unconditionally.
22077
22078         * lib/linebuffer.c: Include <stdlib.h>.
22079         (free): Remove decl.
22080
22081         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
22082         stddef.h. rpl_malloc returns void *, not char *.
22083         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
22084         prototype.
22085
22086         * lib/md5.h: Include <limits.h> unconditionally.
22087         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
22088         (__P): Remove; all uses removed.
22089         * lib/md5.c: Include "md5.h" first.
22090         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
22091         md5_buffer, md5_process_bytes, md5_process_block):
22092         Define with prototypes.
22093         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
22094         * lib/sha.c: Include "sha.h" first.
22095         Include <stdlib.h>, <string.h> unconditionally.
22096
22097         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
22098         * lib/memcmp.c (__ptr_t): Likewise.
22099         * lib/memrchr.c (__ptr_t): Likewise.
22100         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
22101         Include <string.h> unconditionally.
22102         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
22103         * lib/memchr.c: Include <stdlib.h> unconditionally.
22104         * lib/memchr.c (LONG_MAX): Remove.
22105         * lib/memrchr.c (LONG_MAX): Likewise.
22106         * lib/memchr.c (__memchr): Define via a prototype.
22107         * lib/memrchr.c (__memrchr): Likewise.
22108         * lib/memcmp.c (__P): Remove, and remove all uses.
22109         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
22110         Remove forward decls; no longer needed.
22111         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
22112         Use types required by C89 in prototype.
22113
22114         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
22115         * lib/savedir.c: Likewise.
22116         * lib/mkdir.c (free): Remove decl.
22117         * lib/rmdir.c (rmdir): Define with a prototype.
22118         * lib/savedir.c: Include savedir.h first, to test interface.
22119
22120         * lib/mktime.c (STDC_HEADERS): Remove.
22121         Include <stdlib.h>, <string.h> unconditionally.
22122
22123         * lib/modechange.c: Include <stdlib.h> unconditionally.
22124         (malloc): Remove decl.
22125
22126         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
22127         (free): Remove decl.
22128
22129         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
22130         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
22131         (This type really should be intptr_t, but that's a C99ism.)
22132         (_obstack_memcpy): Remove: all uses changed to memcpy.
22133         Include <string.h> unconditionally.
22134         (struct obstack): Assume __STDC__ for types of members
22135         chunkfun, freefun, extra_arg.
22136         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
22137         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
22138         obstack_begin, obstack_specify_allocation,
22139         obstack_specify_allocation_with_arg, obstack_chunkfun,
22140         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
22141         Remove unprototyped decls and the macros that use them.
22142         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
22143         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
22144         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
22145         (defined __STDC__ && __STDC__)]:
22146         Remove nonprototyped code.
22147         Include <stdlib.h> unconditionally.
22148         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
22149         _obstack_allocated_p, _obstack_free, obstack_free,
22150         _obstack_memory_used, print_and_abort):
22151         Define using prototypes.
22152         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
22153         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
22154         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
22155         obstack_next_free, obstack_object_size, obstack_room) [0]:
22156         Remove unused, unprototyped code.
22157
22158         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
22159
22160         * lib/physmem.c (physmem_total, physmem_available, main): Define
22161         with prototypes.
22162
22163         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
22164         (main): Define with a prototype.
22165
22166         * lib/posixver.c (getenv): Remove decl.
22167
22168         * lib/putenv.c (malloc): Returns void *, not char *.
22169         Include <string.h> unconditionally.
22170         (strchr, memcpy, NULL): Do not define.
22171
22172         * lib/readtokens.c: Include readtokens.h first, to test interface.
22173         Include <stdlib.h>, <string.h> unconditionally.
22174         (init_tokenbuffer): Define with a prototype.
22175
22176         * lib/regex.c (PARAMS): Remove.  All uses removed.
22177         All uses of _RE_ARGS removed, too.
22178         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
22179         unconditionally.
22180         (bzero): Assume memset exists.
22181         (memcmp, memcpy, NULL): Remove.
22182         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
22183         char, or assignments to local vars of type signed char.
22184         (init_syntax_once, PREFIX(extract_number_and_incr),
22185         PREFIX(print_partial_compiled_pattern),
22186         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
22187         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
22188         PREFIX(regex_grow_registers), PREFIX(regex_compile),
22189         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
22190         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
22191         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
22192         wcs_compile_range, byte_compile_range, truncate_wchar,
22193         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
22194         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
22195         count_mbs_length, wcs_re_match_2_internal,
22196         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
22197         PREFIX(alt_match_null_string_p),
22198         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
22199         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
22200         regfree, PREFIX(extract_number)): Define with prototype.  Remove
22201         now-unnecessary declaration, if any.
22202         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
22203         regcomp, regexec):
22204         Remove now-unnecessary casts among pointer types.
22205         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
22206
22207         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
22208         (free): Remove decl.
22209
22210         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
22211
22212         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
22213         (free): Remove decl.
22214
22215         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
22216         * lib/xgetcwd.c: Likewise.
22217
22218         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
22219         (free): Remove decl.
22220
22221         * lib/strchrnul.c (strchrnul): Define with a prototype.
22222         Fix bug: c_in was not converted to char before searching.
22223
22224         The following changes are not K&R related:
22225
22226         * lib/group-member.h: Include <sys/types.h>, so that this file is
22227         self-contained.
22228         * lib/makepath.h: Likewise.
22229
22230         * lib/getusershell.c (readname, default_index, line_size, readname):
22231         Use size_t, not int, for sizes.
22232         (readname): If the size overflows, report an error instead of
22233         looping forever.
22234
22235 2003-09-09  Paul Eggert  <eggert@twinsun.com>
22236
22237         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
22238         libc.
22239
22240 2003-09-09  Paul Eggert  <eggert@twinsun.com>
22241
22242         * README: New section: portability guidelines.
22243
22244 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
22245
22246         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
22247         C89 spec.
22248
22249 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
22250
22251         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
22252
22253 2003-09-08  Paul Eggert  <eggert@twinsun.com>
22254
22255         Assume C89 or better; remove K&R cruft.
22256         A few of these changes were first proposed by Derek Robert Price
22257         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
22258
22259         * lib/addext.c: Include <string.h> unconditionally.
22260         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
22261         Don't declare getenv or malloc.
22262
22263         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
22264         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
22265         (NULL): Remove.
22266         (find_stack_direction, alloca): Use prototypes.
22267
22268         * lib/atexit.c (atexit): Define using a prototype.
22269
22270         * lib/basename.c, dirname.c, stripslash.c:
22271         Include <string.h> unconditionally.
22272
22273         * lib/bcopy.c: Include <stddef.h>.
22274         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
22275
22276         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
22277
22278         * lib/error.h (error, error_at_line, error_print_progname)
22279         [! (defined (__STDC__) && __STDC__)]: Remove decls.
22280         * lib/error.c: Include error.h first, to check interface.
22281         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
22282         (VA_START): Remove; all uses changeed to va_start.
22283         (exit, strerror): Remove decls.
22284         (error_print_progname): Prototype uncondionally.
22285         Don't include <errno.h>; no longer needed.
22286         (private_strerror): Remove.
22287         (error_tail): Always define.
22288         (error, error_at_line): Assume C89 or better; always use prototypes.
22289         * lib/fatal.c: Include "fatal.h" first, to test interface.
22290         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
22291         (VA_START): Remove; all uses changed to va_start.
22292         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
22293         this case.
22294         (exit): Remove decl.
22295         (fatal): Prototype unconditionally.  Assume va_start works.
22296         Abort at end, to pacify gcc.
22297
22298         * lib/euidaccess.c (main): Define with a prototype.
22299
22300         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
22301
22302         * lib/exitfail.c: Include <stdlib.h> unconditionally.
22303
22304         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
22305         prototypes.
22306         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
22307         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
22308         (getenv): Remove decl.
22309         (fnmatch): Define using a prototype.
22310         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
22311         (FCT): Define using a prototype.
22312
22313         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
22314
22315         * lib/gethostname.c: Include <stddef.h>.
22316         (gethostname): Define with prototype.  Length is size_t, not int.
22317
22318 2003-09-08  Paul Eggert  <eggert@twinsun.com>
22319
22320         Assume C89 or better; remove K&R cruft.
22321         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
22322         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
22323         string.h, getenv, malloc.
22324         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
22325         headers.
22326         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
22327         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
22328         do not check for strerror.
22329         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
22330         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
22331         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
22332         do not check for doprnt or vprintf.
22333         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
22334         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
22335
22336 2003-09-08  Paul Eggert  <eggert@twinsun.com>
22337
22338         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
22339         getversion.c should have been removed then, but was accidentally
22340         preserved.
22341
22342         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
22343         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
22344
22345 2003-09-08  Karl Berry  <karl@gnu.org>
22346
22347         * config/config.sub, config.guess, srclistvars.sh: update from savannah
22348                 config, forget about prep.
22349
22350         * config/depcomp, missing: update from automake.
22351
22352 2003-09-07  Paul Eggert  <eggert@twinsun.com>
22353
22354         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
22355         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
22356
22357 2003-09-07  Paul Eggert  <eggert@twinsun.com>
22358
22359         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
22360         copy_tm_result.  Bug reported by Simon Josefsson in
22361         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
22362
22363 2003-09-06  Paul Eggert  <eggert@twinsun.com>
22364
22365         * m4/time_r.m4: New file.
22366         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
22367         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
22368         is. Check for timegm declaration.
22369         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
22370         Do not check for gmtime_r.
22371         Replace mktime if __mktime_internal does not exist and if mktime
22372         hasn't been replaced already.
22373
22374 2003-09-06  Paul Eggert  <eggert@twinsun.com>
22375
22376         * lib/time_r.c, lib/time_r.h: New files.
22377
22378         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
22379         __localtime_r.
22380         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
22381         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
22382
22383         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
22384         __gmtime_r.
22385         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
22386         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
22387         Include <time_r.h>.
22388
22389         * lib/timegm.c: Switch to glibc implementation, with the following
22390         changes:
22391         [defined HAVE_CONFIG_H]: Include <config.h>.
22392         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
22393         (__mktime_internal) [!defined _LIBC]: New decl.
22394         (__gmtime_r) [!defined _LIBC]: New macro and function.
22395         (timegm): Use a prototype, since gnulib assumes C89.
22396         Do not bother declaring tmp to be const, as it's not really usefu.
22397         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
22398         (timegm): Declare only if HAVE_DECL_TIMEGM.
22399
22400 2003-09-06  Paul Eggert  <eggert@twinsun.com>
22401
22402         * MODULES.html.sh (func_all_modules): Add time_r.
22403         * modules/time_r: New file.
22404         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
22405         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
22406
22407 2003-09-03  Paul Eggert  <eggert@twinsun.com>
22408
22409         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
22410         Bug reported by Lute Kamstra in
22411         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
22412
22413         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
22414         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
22415         course with correspondingly smaller numbers for tomorrow and
22416         yesterday.  From Tadayoshi Funaba.  Originally installed into
22417         sh-utils on 1999-08-07, but the patch got lost (I guess during the
22418         coreutils merge?).
22419
22420 2003-08-31  Simon Josefsson  <jas@extundo.com>
22421
22422         * modules/timegm: New file.
22423         * MODULES.html.sh (func_all_modules): Add timegm.
22424
22425 2003-08-31  Simon Josefsson  <jas@extundo.com>
22426
22427         * m4/timegm.m4: New file.
22428
22429 2003-08-31  Simon Josefsson  <jas@extundo.com>
22430
22431         * lib/timegm.h: New file.
22432         * lib/timegm.c: New file.  Based on
22433         wget-1.8.2/src/http.c:mktime_from_utc.
22434
22435 2003-08-31  Karl Berry  <karl@gnu.org>
22436
22437         * lib/argp.h: update from libc.
22438
22439 2003-08-28  Bruno Haible  <bruno@clisp.org>
22440
22441         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
22442         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
22443         followed by '#define fnmatch fnmatch_posix' gives an error.
22444
22445 2003-08-28  Bruno Haible  <bruno@clisp.org>
22446
22447         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
22448         warning on QNX, which defines O_BINARY to 000000.
22449
22450 2003-08-27  Jim Meyering  <jim@meyering.net>
22451
22452         * m4/mkstemp.m4: Require that the system mkstemp be able to create
22453         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
22454         would fail after 32.  Reported by Danny Levinson.  Details here:
22455         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
22456
22457 2003-08-24  Bruno Haible  <bruno@clisp.org>
22458
22459         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
22460         MSVC7 <stdio.h> is included later.
22461
22462 2003-08-22  Simon Josefsson  <jas@extundo.com>
22463
22464         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
22465
22466 2003-08-20  Karl Berry  <karl@gnu.org>
22467
22468         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
22469
22470 2003-08-20  Bruno Haible  <bruno@clisp.org>
22471
22472         * modules/progname: New file.
22473         * MODULES.html.sh (func_all_modules): Add progname.
22474
22475 2003-08-20  Bruno Haible  <bruno@clisp.org>
22476
22477         * lib/progname.h: New file, from GNU gettext.
22478         * lib/progname.c: New file, from GNU gettext.
22479         * lib/progreloc.c: New file, from GNU gettext.
22480
22481 2003-08-19  Jim Meyering  <jim@meyering.net>
22482
22483         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
22484         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
22485
22486 2003-08-19  Bruno Haible  <bruno@clisp.org>
22487
22488         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
22489         more.
22490
22491 2003-08-19  Bruno Haible  <bruno@clisp.org>
22492
22493         * lib/xstrdup.c: Assume <string.h> exists.
22494
22495 2003-08-18  Paul Eggert  <eggert@twinsun.com>
22496
22497         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
22498         in makefile rules.
22499
22500 2003-08-18  Jim Meyering  <jim@meyering.net>
22501
22502         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
22503         * m4/lib-ld.m4: Likewise.
22504
22505 2003-08-18  Jim Meyering  <jim@meyering.net>
22506
22507         * lib/setenv.h: Indent nested cpp directive.
22508         * lib/vasnprintf.c: Remove trailing blanks.
22509
22510 2003-08-17  Simon Josefsson  <jas@extundo.com>
22511
22512         * modules/xstrndup: New file.
22513         * MODULES.html.sh (func_all_modules): Add xstrndup.
22514
22515 2003-08-17  Simon Josefsson  <jas@extundo.com>
22516
22517         * modules/argp: Fix autoconf macro name. Add more dependencies.
22518
22519 2003-08-17  Simon Josefsson  <jas@extundo.com>
22520
22521         * m4/xstrndup.m4: New file.
22522
22523 2003-08-17  Simon Josefsson  <jas@extundo.com>
22524
22525         * m4/argp.m4: New file.
22526
22527 2003-08-17  Simon Josefsson  <jas@extundo.com>
22528             Bruno Haible  <bruno@clisp.org>
22529
22530         * lib/xstrndup.h: New file.
22531         * lib/xstrndup.c: New file.
22532
22533 2003-08-17  Bruno Haible  <bruno@clisp.org>
22534
22535         * modules/strndup (Files, Include): Add lib/strndup.h.
22536
22537 2003-08-17  Bruno Haible  <bruno@clisp.org>
22538
22539         * modules/euidaccess (Files): Add lib/euidaccess.h.
22540
22541 2003-08-17  Bruno Haible  <bruno@clisp.org>
22542
22543         * lib/strndup.h: New file.
22544
22545 2003-08-17  Bruno Haible  <bruno@clisp.org>
22546
22547         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
22548         like AC_GNU_SOURCE.
22549         * modules/extensions (configure.ac): Comment out the invocation of
22550         gl_USE_SYSTEM_EXTENSIONS.
22551
22552 2003-08-16  Paul Eggert  <eggert@twinsun.com>
22553
22554         Merges from coreutils, etc.
22555         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
22556         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
22557         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
22558         fixing a typo.
22559         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
22560         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
22561
22562 2003-08-16  Paul Eggert  <eggert@twinsun.com>
22563
22564         Document merge from coreutils.
22565         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
22566         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
22567         * modules/utime: Add m4/utimes-null.m4.
22568
22569 2003-08-16  Paul Eggert  <eggert@twinsun.com>
22570
22571         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
22572         space, undoing this 2003-08-12 change:
22573         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
22574
22575 2003-08-16  Paul Eggert  <eggert@twinsun.com>
22576
22577         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
22578         strtoul.c from libc, undoing this 2003-08-12 change:
22579         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
22580
22581 2003-08-16  Jim Meyering  <jim@meyering.net>
22582
22583         Merges from coreutils.
22584         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
22585         prefix.  Adjust cache variables similarly.  Create 500 rather than
22586         just 300 files, to exercise bug on Darwin6.5, too.
22587         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
22588         $missing_dir.
22589         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
22590         AM_SYS_POSIX_TERMIOS.
22591         Reported by mkc@mathdogs.com.
22592         Also change use of $am_cv_sys_posix_termios
22593         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
22594         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
22595         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
22596         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
22597         in /proc/mounts until it finds one with matching device number.  This
22598         is unnecessary when the FILE argument *is* a mount point.  No stat call
22599         is necessary in that case.  So, disable the statvfs-testing code on
22600         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
22601         as RedHat bug# 84846.
22602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
22603         to 1MB, so as not to render systems with no stack size limit (e.g.,
22604         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
22605         Include <unistd.h>.  On some systems,
22606         it is required for the definition of _SC_PAGESIZE.
22607
22608 2003-08-16  Jim Meyering  <jim@meyering.net>
22609
22610         Merge from coreutils.
22611         * lib/xstrtoimax.c: #else #if -> #elif.
22612         * lib/xstrtoumax.c: Likewise.
22613
22614 2003-08-16  Jim Meyering  <jim@meyering.net>
22615
22616         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
22617         * m4/utimes.m4: Removed.
22618         * m4/utimes-null.m4: Renamed from utimes.m4.
22619
22620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
22621         to 1MB, so as not to render systems with no stack size limit (e.g.,
22622         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
22623         Include <unistd.h>.  On some systems,
22624         it is required for the definition of _SC_PAGESIZE.
22625
22626 2003-08-16  Jim Meyering  <jim@meyering.net>
22627         and Paul Eggert  <eggert@cs.ucla.edu>
22628
22629         Merges from coreutils, etc.
22630
22631         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
22632         using the latest version from cvs.  This avoids problems with #line
22633         directives using a vendor (Sun) compiler.
22634         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
22635         Don't set GETGROUPS_LIB here; now it's
22636         done via getgroups.m4's wrapper function.
22637         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
22638         rather than just in sh-util/configure.in, so that the
22639         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
22640         same.
22641         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
22642         AC_FUNC_GETLOADAVG where to find getloadavg.c.
22643         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
22644         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
22645         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
22646         Remove code that is now done by the newly-required macros.
22647         Append $(EXEEXT) to DF_PROG.
22648         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
22649         Do not invoke or require the following here,
22650         since prereq.m4 or some gnulib .m4 now does this for us:
22651         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
22652         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
22653         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
22654         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
22655         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
22656         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
22657         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
22658         AC_FUNC_OBSTACK.
22659         Do not replace the following functions, as this is now the job
22660         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
22661         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
22662         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
22663         atexit getpass, strdup, getpagesize.
22664         Replace 'raise'.
22665         Do not check for the following functions, as this is now the job
22666         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
22667         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
22668         setregid.
22669         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
22670         Check for sys/sysctl.h.
22671         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
22672         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
22673         of checking for ssize_t ourselves.
22674
22675         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
22676         Require every macro that gnulib/modules/* suggests for us.
22677         (jm_PREREQ_ADDEXT): New macro.
22678         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
22679         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
22680
22681         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
22682         (gl_PHYSMEM): Use it.
22683         Also check for `table' function.
22684         Check for new headers and functions.
22685         Add check for sys/sysmp.h.
22686         With suggestions from Kaveh Ghazi.
22687         Ignore headers that are present but cannot be compiled.  This
22688         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
22689         C 5.4.
22690
22691 2003-08-15  Paul Eggert  <eggert@twinsun.com>
22692
22693         Document merge from coreutils.
22694         * modules/userspec: Depend on posixver.
22695         * modules/strftime: Depend on tzset.
22696
22697 2003-08-15  Paul Eggert  <eggert@twinsun.com>
22698
22699         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
22700         rather than tab, after '#' in shell-script copyright notices.
22701         Suggested by Bruno Haible.
22702
22703 2003-08-15  Paul Eggert  <eggert@twinsun.com>
22704
22705         * config/srclist-update: Use three spaces, rather than tab, after '#'
22706         in shell-script copyright notices.  Suggested by Bruno Haible.
22707         Remove unnecessary parenthesization in regular expression.
22708
22709 2003-08-15  Jim Meyering  <jim@meyering.net>
22710
22711         Merge from coreutils.
22712         * lib/xgethostname.c: Include <stdlib.h>.
22713         (xghostname): Don't exit for anything other than memory-related
22714         failure; just return NULL.
22715         * lib/userspec.c: Include "posixver.h".
22716         (parse_user_spec): Accept `.' as a separator only
22717         in pre-POSIX-200112 mode.
22718         * lib/strtoimax.c: Use #elif rather than #else #if.
22719         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
22720         Remove function, now that we can rely on a working tzset function.
22721         [!_LIBC]: Ensure that the required autoconf test has been run.
22722         [!defined _NL_CURRENT && HAVE_STRFTIME]:
22723         Use underlying_strftime for %r.
22724         * lib/sha.c: Merge in some clean-up and optimization changes from
22725         glibc.
22726         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
22727         Ensure that it is a multiple of 64.
22728         Rearrange loop exit tests so as to avoid performing an
22729         additional fread after encountering an error or EOF.
22730         * lib/realloc.c: Update copyright date.
22731
22732 2003-08-15  Jim Meyering  <jim@meyering.net>
22733         and Paul Eggert  <eggert@twinsun.com>
22734
22735         Merge from coreutils.
22736         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
22737         member but strut utmpx does not.  Needed for AIX 4.3.3.
22738         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
22739
22740 2003-08-15  Jim Meyering  <jim@meyering.net>
22741         and Paul Eggert  <eggert@cs.ucla.edu>
22742
22743         Merges from coreutils, etc.
22744         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
22745         Require gl_FUNC_TZSET_CLOBBER.
22746         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
22747         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
22748         members.
22749
22750 2003-08-14  Paul Eggert  <eggert@twinsun.com>
22751
22752         Help the merge from coreutils.
22753         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
22754         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
22755         * m4/tzset.m4: Use it too.
22756
22757 2003-08-14  Paul Eggert  <eggert@twinsun.com>
22758
22759         * modules/tzset: New file.
22760
22761 2003-08-14  Jim Meyering  <jim@meyering.net>
22762
22763         Merges from coreutils.
22764         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
22765         variable names, rather than @FNMATCH_H@.
22766         * modules/alloca: Likewise for $(ALLOCA_H).
22767
22768         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
22769         the three copies of the literal target, `fnmatch.h'.
22770         * modules/alloca (alloca.h): Likewise.
22771
22772 2003-08-14  Jim Meyering  <jim@meyering.net>
22773
22774         Merge from coreutils.
22775         * m4/tzset.m4: New file.
22776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
22777         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
22778         otherwise, AIX 5.1 systems would end up using the latter.
22779         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
22780         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
22781         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
22782         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
22783
22784 2003-08-14  Jim Meyering  <jim@meyering.net>
22785
22786         Merge from coreutils.
22787         * lib/obstack.h: Whitespace changes.
22788         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
22789         and xcalloc return values.
22790         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
22791         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
22792         hang on OSF/1 5.1 for DIR on both local and remote file systems.
22793         Reported by (and fix confirmed by) Nelson H. F. Beebe.
22794         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
22795         error from mntctl.
22796         Use mntctl's return value to drive the entry-processing loop, since
22797         we can't rely on the value of the vmt_length member in the last
22798         entry.  On some systems doing so could result in exhausting
22799         virtual memory.  Based in part on a patch from Mike Jetzer.
22800
22801 2003-08-14  Jim Meyering  <jim@meyering.net>
22802         and Paul Eggert  <eggert@twinsun.com>
22803
22804         Merges from coreutils, plus other fixes.
22805         * lib/physmem.c: Merge in portability changes from gcc/libiberty
22806         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
22807         for credits and details.  Thanks to Kaveh Ghazi for helping
22808         to keep these files in sync.
22809         (ARRAY_SIZE): Define it.
22810         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
22811         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
22812         (memcasecmp): Don't assume size_t fits in unsigned int.
22813         Remove casts and duplicate code.
22814         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
22815         (memcpy): Remove definition.
22816         Merge in some clean-up and optimization changes from glibc.
22817         [BLOCKSIZE]: Move definition to top of file.
22818         Ensure that it is a multiple of 64.
22819         Rearrange loop exit tests so as to avoid performing an
22820         additional fread after encountering an error or EOF.
22821         * lib/md5.h (md5_uintptr): Define.
22822         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
22823         return to the initial working directory.  Preserve errno
22824         for caller.
22825         * lib/idcache.c: Include "xalloc.h".
22826         (xmalloc, xrealloc): Remove decls.
22827         (getuser): Remove casts no longer required in C89.
22828         * lib/human.c: Include stdio.h, for sprintf.
22829         * lib/group-member.c: Include "xalloc.h".
22830         (xmalloc, xrealloc): Remove decls.
22831         (get_group_info): Remove casts no longer required in C89.
22832         * lib/getusershell.c (readname): Remove casts no longer required in
22833         C89.
22834         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
22835         * lib/getline.c: Whitespace fix, from coreutils.
22836
22837 2003-08-13  Paul Eggert  <eggert@twinsun.com>
22838
22839         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
22840         Check for isascii.
22841
22842         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
22843         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
22844         Undo previous (whitespace-only) change.
22845
22846 2003-08-13  Paul Eggert  <eggert@twinsun.com>
22847
22848         * lib/exclude.c: Include <ctype.h>
22849         (IN_CTYPE_DOMAIN): New macro.
22850         (is_space): New fn.
22851         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
22852         and empty lines.
22853
22854         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
22855         Undo previous (whitespace-only) change.
22856
22857 2003-08-13  Paul Eggert  <eggert@twinsun.com>
22858
22859         * config/srclist-update: Change update back to the old behavior,
22860         leaving whitespace alone.  Use one 'sed' command rather than a
22861         pipeline.
22862         (fixlicense): Now a variable, not a function.
22863         (remove_trailing_blanks): Remove.
22864         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
22865         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
22866         Undo previous (whitespace-only) change.
22867
22868 2003-08-12  Paul Eggert  <eggert@twinsun.com>
22869
22870         Merge from coreutils.
22871         * modules/euidaccess: Add lib_SOURCES, include for new
22872         file euidaccess.h
22873
22874 2003-08-12  Paul Eggert  <eggert@twinsun.com>
22875
22876         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
22877         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
22878         Normalize leading white space and remove trailing white space.
22879
22880         Merge from coreutils
22881         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
22882
22883         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
22884         0.12.1.  These files are now being upgraded automatically by
22885         ../config/srclist-update.
22886
22887 2003-08-12  Paul Eggert  <eggert@twinsun.com>
22888
22889         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
22890         Normalize leading white space and remove trailing white space.
22891         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
22892         notice, as per ../config/srclist-update.
22893
22894         Merge from coreutils.
22895         * lib/euidaccess.h: New file.
22896         * lib/euidaccess.c: Include it.
22897         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
22898         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
22899         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
22900
22901 2003-08-12  Paul Eggert  <eggert@twinsun.com>
22902
22903         * config/srclist-update: Add copyright notice.
22904         (remove_id_lines, remove_trailing_blanks): New constants.
22905         (fixfile): Use them to normalize spacing a bit in copied files.
22906         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
22907         Normalize leading white space and remove trailing white space.
22908
22909         * config/texinfo.tex: Sync with texinfo.
22910
22911         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
22912         strtoul.c from libc, to merge coreutils whitespace changes.
22913
22914         * config/srclist.txt: Get the following m4 files from gettext:
22915         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
22916         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
22917         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
22918         wint_t.m4.
22919
22920 2003-08-12  Karl Berry  <karl@gnu.org>
22921
22922         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
22923         been made.
22924
22925 2003-08-11  Paul Eggert  <eggert@twinsun.com>
22926
22927         * modules/gnu-source, m4/gnu-source.m4:
22928         Remove; we're assuming Autoconf 2.54 or later now.
22929         Suggested by Bruno Haible.
22930         * MODULES.html.sh (func_all_modules): Remove gnu-source.
22931
22932 2003-08-11  Bruno Haible  <bruno@clisp.org>
22933
22934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
22935
22936 2003-08-11  Bruno Haible  <bruno@clisp.org>
22937
22938         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
22939         (vasnprintf): Use it instead of wcslen.
22940
22941 2003-08-11  Bruno Haible  <bruno@clisp.org>
22942
22943         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
22944         value to ensure that _Bool promotes to int. Use #define for _Bool when
22945         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
22946
22947 2003-08-10  Karl Berry  <karl@gnu.org>
22948
22949         * lib/regex.h: update from libc (whitespace fix).
22950
22951 2003-08-09  Paul Eggert  <eggert@twinsun.com>
22952
22953         Merge some files from coreutils.  These changes were
22954         originally made by Jim Meyering.
22955         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
22956         many older Unixes require this.
22957         * lib/alloca.c (alloca): Remove cast to argument of free;
22958         no longer needed in C89.
22959         * lib/alloca_.h, regex.h: Fix white space to match
22960         what GNU indent does.
22961
22962 2003-08-09  Paul Eggert  <eggert@twinsun.com>
22963
22964         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
22965         apparently Emacs's Unicode mode got confused before my 2003-08-05
22966         checkin.
22967
22968 2003-08-08  Paul Eggert  <eggert@twinsun.com>
22969
22970         * m4/extensions.m4: New file.
22971         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
22972         Require gl_USE_SYSTEM_EXTENSIONS.
22973         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
22974         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
22975
22976 2003-08-08  Paul Eggert  <eggert@twinsun.com>
22977
22978         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
22979         * modules/extensions, modules/gnu-source: New files.
22980         * modules/timespec, modules/unlocked-io: Depend on extensions.
22981
22982 2003-08-07  Paul Eggert  <eggert@twinsun.com>
22983
22984         * modules/restrict: New file.
22985         * MODULES.html.sh (func_all_modules): Add restrict.
22986         * modules/regex: Depend on restrict.
22987
22988 2003-08-07  Paul Eggert  <eggert@twinsun.com>
22989
22990         * m4/restrict.m4: New file.
22991         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
22992
22993 2003-08-07  Bruno Haible  <bruno@clisp.org>
22994
22995         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
22996         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
22997
22998 2003-08-07  Bruno Haible  <bruno@clisp.org>
22999
23000         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
23001         makes the module 'getndelim2' compatible with the module 'getline'.
23002
23003 2003-08-05  Paul Eggert  <eggert@twinsun.com>
23004
23005         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
23006         byte with "\201" to avoid glitches when editing that source file
23007         with multi-gnome-terminal.
23008
23009 2003-08-05  Paul Eggert  <eggert@twinsun.com>
23010
23011         * lib/bumpalloc.h: Remove.
23012
23013 2003-08-05  Paul Eggert  <eggert@twinsun.com>
23014
23015         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
23016         * modules/bumpalloc: Remove.
23017
23018 2003-08-04  Paul Eggert  <eggert@twinsun.com>
23019
23020         * lib/getloadavg.c: Change copyright notice and spacing to conform to
23021         GNU coding style.
23022
23023         Merge from coreutils.
23024         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
23025         1. From glibc.
23026         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
23027         from Karl Berry, implemented by Jim Meyering.
23028         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
23029         from Dmitry V. Levin.
23030         Remove anachronistic cast of xrealloc.
23031         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
23032         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
23033         type. Otherwise, it wouldn't compile with at least /bin/cc on
23034         ymp-cray-unicos9.0.2.X.
23035         Combine two mostly-identical uses of alloca into one.
23036         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
23037
23038 2003-08-04  Dave Love  <d.love@dl.ac.uk>
23039
23040         [From Emacs.]
23041
23042         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
23043         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
23044         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
23045         obsolete NLIST_NAME_UNION.
23046         [__GNU__]: Undef BSD and FSCALE.
23047         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
23048
23049 2003-08-03  Paul Eggert  <eggert@twinsun.com>
23050
23051         * lib/stdbool_.h (_Bool): Make it signed char, instead of
23052         an enum type, so that it's guaranteed to promote to int.  See:
23053         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
23054
23055 2003-08-03  Karl Berry  <karl@gnu.org>
23056
23057         * config/depcomp: update from automake.
23058
23059 2003-07-31  Paul Eggert  <eggert@twinsun.com>
23060
23061         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
23062         (strerror): Don't assume that a printable int fits in 14 bytes.
23063
23064 2003-07-31  Bruno Haible  <bruno@clisp.org>
23065
23066         * modules/getpass-gnu: New file.
23067         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
23068
23069 2003-07-31  Bruno Haible  <bruno@clisp.org>
23070
23071         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
23072
23073 2003-07-24  Karl Berry  <karl@gnu.org>
23074
23075         * config/missing: update from automake.
23076
23077 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
23078             Bruno Haible  <bruno@clisp.org>
23079
23080         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
23081         * lib/getline.c (getline, getdelim): Likewise.
23082         Remove _GNU_SOURCE define; now it's defined in config.h through
23083         m4/getline.m4.
23084
23085 2003-07-23  Karl Berry  <karl@gnu.org>
23086
23087         * config/config.sub: update from prep.
23088
23089 2003-07-22  Paul Eggert  <eggert@twinsun.com>
23090
23091         * modules/xalloc (Depends-on): Add exitfail.
23092         * modules/xmemcoll: Likewise.
23093
23094 2003-07-22  Paul Eggert  <eggert@twinsun.com>
23095
23096         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
23097         over-parenthesization in macros.
23098
23099         Sync with coreutils.
23100
23101         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
23102         required by C99.
23103
23104         Use `exit_failure' for xalloc and xmemcoll instead of their own
23105         private exit-failure variables.
23106         * lib/xalloc.h (xalloc_exit_failure): Remove.
23107         * lib/xmalloc.c: Likewise.  Include exitfail.h.
23108         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
23109         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
23110         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
23111         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
23112
23113 2003-07-20  Jim Meyering  <jim@meyering.net>
23114
23115         * modules/closeout (Depends-on): Add exitfail.
23116         Suggestion from Bruno Haible.
23117
23118 2003-07-19  Karl Berry  <karl@gnu.org>
23119
23120         * config/config.sub: update from prep.
23121
23122 2003-07-18  Paul Eggert  <eggert@twinsun.com>
23123
23124         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
23125         Remove.
23126         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
23127         to test that it can stand by itself.  Include "exitfail.h".
23128         Clients should set exit_failure instead.
23129         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
23130
23131 2003-07-18  Bruno Haible  <bruno@clisp.org>
23132
23133         * modules/getndelim2: New file.
23134         * modules/getline: Share files with module getndelim2.
23135         * modules/getnline: Depend on getndelim2 instead of sharing files with
23136         it. Add getnline.c to lib_SOURCES.
23137         * MODULES.html.sh (func_all_modules): Add getndelim2.
23138
23139 2003-07-18  Bruno Haible  <bruno@clisp.org>
23140
23141         * m4/getndelim2.m4: New file.
23142         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
23143         invoke gl_PREREQ_GETNDELIM2.
23144         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
23145         gl_PREREQ_GETNDELIM2.
23146         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
23147         gl_GETNDELIM2.
23148
23149 2003-07-18  Bruno Haible  <bruno@clisp.org>
23150
23151         * lib/getndelim2.h: New file.
23152         * lib/getndelim2.c: Make into a module of its own. Include config.h,
23153         getndelim2.h.
23154         (getndelim2): Make non-static. Change return type to ssize_t.
23155         * lib/getline.h: Change argument names.
23156         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
23157         * lib/getnline.c: Include getndelim2.h.
23158
23159 2003-07-18  Andreas Schwab  <schwab@suse.de>
23160
23161         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
23162
23163 2003-07-17  Karl Berry  <karl@gnu.org>
23164
23165         * config/config.sub: update from prep.
23166
23167 2003-07-17  Bruno Haible  <bruno@clisp.org>
23168
23169         * modules/getnline: New file.
23170         * modules/getline: Add lib/getndelim2.c to source file list.
23171         * MODULES.html.sh (func_all_modules): Add getnline.
23172
23173 2003-07-17  Bruno Haible  <bruno@clisp.org>
23174
23175         * m4/getnline.m4: New file.
23176
23177 2003-07-17  Bruno Haible  <bruno@clisp.org>
23178
23179         * m4/Makefile.am.in: Remove file.
23180         * m4/Makefile.am: Remove file.
23181         * m4/Makefile.in: Remove file.
23182
23183 2003-07-17  Bruno Haible  <bruno@clisp.org>
23184
23185         * lib/getnline.h: New file.
23186         * lib/getnline.c: New file.
23187         * lib/getndelim2.c: New file, extracted from getline.c.
23188         (getndelim2): Renamed from getdelim2, with added nmax argument.
23189         * lib/getline.c: Include getndelim2.c.
23190         (getdelim2): Moved out to getndelim2.c.
23191         (getline, getdelim): Update.
23192
23193 2003-07-17  Bruno Haible  <bruno@clisp.org>
23194
23195         * lib/Makefile.am: Remove file.
23196         * lib/Makefile.in: Remove file.
23197
23198 2003-07-17  Bruno Haible  <bruno@clisp.org>
23199
23200         * configure.in: Remove file.
23201         * Makefile.in: Remove file.
23202
23203 2003-07-17  Bruno Haible  <bruno@clisp.org>
23204
23205         * MODULES.html.sh: Put the </BODY> right before </HTML>.
23206
23207 2003-07-16  Karl Berry  <karl@gnu.org>
23208
23209         * config/srclist-update: was running fixlicense twice, which caused
23210                 texinfo.tex to be nullified for some reason.  Simplify,
23211                 $gplsrc is no longer needed as far as I can see?
23212
23213 2003-07-16  Jim Meyering  <jim@meyering.net>
23214
23215         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
23216
23217 2003-07-15  Paul Eggert  <eggert@twinsun.com>
23218
23219         * config/srclist.txt: Get the following files from gettext-runtime/intl
23220         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
23221         ref-del.sin.  From Bruno Haible.
23222         * config/srclist-update (fixfile): Change grep pattern again, since the
23223         previous fix didn't work (there was another trailing $).  Use
23224         '[$]' to escape the $s.
23225
23226 2003-07-15  Karl Berry  <karl@gnu.org>
23227
23228         * lib/vasnprintf.c: update from gettext.
23229
23230 2003-07-15  Karl Berry  <karl@gnu.org>
23231
23232         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
23233         gets expanded when surrounded by '$'.
23234
23235 2003-07-15  Jim Meyering  <jim@meyering.net>
23236
23237         * modules/save-cwd: Don't depend on error.  From Derek Price.
23238
23239 2003-07-15  Jim Meyering  <jim@meyering.net>
23240
23241         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
23242
23243 2003-07-14  Simon Josefsson  <jas@extundo.com>
23244
23245         * modules/mempcpy: New file.
23246         * MODULES.html.sh (func_all_modules): Add mempcpy.
23247
23248 2003-07-14  Simon Josefsson  <jas@extundo.com>
23249
23250         * m4/mempcpy.m4: New file.
23251
23252 2003-07-14  Simon Josefsson  <jas@extundo.com>
23253
23254         * lib/mempcpy.h: New file.
23255         * lib/mempcpy.c: New file.
23256
23257 2003-07-14  Paul Eggert  <eggert@twinsun.com>
23258
23259         * modules/getdate, modules/posixtm: Depend on mktime.
23260
23261 2003-07-14  Paul Eggert  <eggert@twinsun.com>
23262
23263         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
23264         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
23265         unicodeio.c, unicodeio.h, unlocked-io.h:
23266         Switch from LGPL to GPL.
23267
23268 2003-07-14  Paul Eggert  <eggert@twinsun.com>
23269
23270         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
23271         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
23272         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
23273         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
23274         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
23275         updated automatically by ../config/srclist-update.  This changes
23276         their license from LPGL to GPL.
23277
23278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
23279
23280         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
23281         assumed to refer to the root of the most recent stable gettext version.
23282         * config/srclistvars.sh: Add defaults for eggert.
23283         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
23284         Match "This program" as well as "The program".  This is needed
23285         for gettext.
23286
23287 2003-07-14  Jim Meyering  <jim@meyering.net>
23288
23289         Don't emit diagnostics.  Let callers do that.
23290         * lib/save-cwd.c: Don't include "error.h".
23291         (save_cwd): Don't call error.  Ensure that errno is valid
23292         when returning nonzero.
23293
23294         * lib/save-cwd.h (restore_cwd): Update prototype.
23295         * lib/save-cwd.c (restore_cwd): Remove two parameters.
23296         Simplify.  Don't call error upon failure.  Let callers do that.
23297         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
23298         when auditing is enabled.  But don't bother updating the #if.
23299
23300 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
23301
23302         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
23303         it breaks C++ compilation.
23304         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
23305
23306 2003-07-10  Simon Josefsson  <jas@extundo.com>
23307
23308         * modules/strchrnul (Makefile.am): Add strchrnul.h.
23309
23310 2003-07-10  Jim Meyering  <jim@meyering.net>
23311
23312         * m4/clock_time.m4: Remove trailing blank.
23313         * m4/intmax_t.m4: Likewise.
23314
23315 2003-07-10  Jim Meyering  <jim@meyering.net>
23316
23317         * lib/vasnprintf.c: Remove trailing blanks.
23318         Make cpp indentation consistent.
23319
23320 2003-07-09  Paul Eggert  <eggert@twinsun.com>
23321
23322         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
23323         posixver.c, strftime.c, strnlen.c, strverscmp.c:
23324         Switch from LGPL to GPL.
23325
23326 2003-07-09  Paul Eggert  <eggert@twinsun.com>
23327
23328         * config/srclist.txt: Sort sublists.  Add
23329         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
23330         that differ from gnulib for one reason or another; we'd like this list
23331         to be smaller but for now let's document what we have.
23332
23333 2003-07-08  Paul Eggert  <eggert@twinsun.com>
23334
23335         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
23336         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
23337         and sweeter "eval x=$x".
23338         * config/srclist.txt: Get lib/argp* from glibc.
23339
23340 2003-07-07  Paul Eggert  <eggert@twinsun.com>
23341
23342         * lib/mktime.c: Fix some boundary cases and remove need for floating
23343         point.
23344
23345         Issue a compile-time diagnostic if time_t is floating point, or if
23346         two's complement arithmetic is not in effect, or if arithmetic
23347         right shift does not propagate the sign.  These assumptions were
23348         all in the original code but they weren't checked.
23349
23350         (TIME_T_MIDPOINT, verify): New macros.
23351         (__isleap): Remove; it has integer overflow problems.
23352         (leapyear): New function, without those problems.
23353         (ydhms_tm_diff): Remove; splitting into two parts.
23354         (ydhms_diff): New function, containing the arithmetic part of
23355         the old ydhms_tm_diff function.  Issue a compile-time
23356         diagnostic if we are not using C99 integer division.
23357         Avoid casts when possible.
23358         (guess_time_tm): New function, containing the checking part of
23359         the old ydhms_tm_diff function.  Return the new value, rather than
23360         the difference between it and the old.  Accept a new argument T
23361         so that *T specifies the old value.  Check for overflow in the result.
23362
23363         (__mktime_internal): Use a time_t offset, not a long int offset.
23364         This undoes the 2003-06-04 change, which is no longer needed now
23365         that we have better overflow checking.
23366         (localtime_offset): Likewise.
23367
23368         (__mktime_internal): Avoid harmful overflow on hosts where time_t
23369         and long are 64-bit but int is only 32-bit.
23370         (ydhms_diff): Use long int to store year1 and yday1.
23371         Issue a compile-time diagnostic if long int is not wide enough.
23372
23373         (__mktime_internal): Use long int to store adjusted year and yday.
23374         Use plain C rather than preprocessor commands, if that doesn't
23375         affect efficiency.
23376         Check for overflow (and try to repair) after each probe
23377         rather than checking only at the very end.  This avoids some bugs
23378         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
23379         does not equal GMT offset at maximum time).
23380         Use integer to check for overflow rather than floating point; this
23381         is more portable to non-IEEE hosts, and is a tad faster.
23382         When we detect that we are oscillating between two values,
23383         don't check whether tm_isdst has the requested value, since
23384         we already know the answer.  When tm_isdst has the wrong value,
23385         use a different heuristic to find the right one, based on the
23386         extreme values actually observed in practice in tz2003a,
23387         rather than the (overly optimistic) "previous 3 calendar quarters".
23388
23389         (not_equal_tm, print_tm, check_result): Use "const T" rather than
23390         "T const" to accommodate glibc style.
23391         (check_result): Use less-confusing report format.  "long" -> "long int.
23392         (main): Likewise.
23393         Don't loop if the iteration overflows time_t.
23394         Allow a negative step in the iteration.
23395
23396 2003-07-06  Karl Berry  <karl@gnu.org>
23397
23398         * config/depcomp: update from automake.
23399         * config/config.sub: update from prep.
23400
23401 2003-07-03  Karl Berry  <karl@gnu.org>
23402
23403         * config/config.guess: update from prep.
23404
23405 2003-07-01  Paul Eggert  <eggert@twinsun.com>
23406
23407         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
23408         xreadlink.c now includes it unconditionally.
23409
23410 2003-07-01  Paul Eggert  <eggert@twinsun.com>
23411
23412         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
23413         having it depend on HAVE_SYS_TYPES_H.
23414
23415 2003-07-01  Bruno Haible  <bruno@clisp.org>
23416
23417         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
23418         <sys/types.h> should be sufficient.
23419         Reported by Paul Eggert.
23420
23421 2003-06-26  Karl Berry  <karl@gnu.org>
23422
23423         * config/depcomp: update from automake.
23424
23425 2003-06-26  Bruno Haible  <bruno@clisp.org>
23426
23427         * modules/human: Depend on module stdbool.
23428
23429 2003-06-25  Bruno Haible  <bruno@clisp.org>
23430
23431         * modules/readlink: New file.
23432         * modules/xreadlink: Depend on it.
23433         * MODULES.html.sh (func_all_modules): Add readlink.
23434
23435 2003-06-25  Bruno Haible  <bruno@clisp.org>
23436
23437         * m4/readlink.m4: New file.
23438
23439 2003-06-25  Bruno Haible  <bruno@clisp.org>
23440
23441         * lib/readlink.c: New file.
23442
23443 2003-06-22  Karl Berry  <karl@gnu.org>
23444
23445         * config/srclist.txt: update mkinstalldirs from automake.
23446         * config/mkinstalldirs: update.
23447
23448 2003-06-22  Bruno Haible  <bruno@clisp.org>
23449
23450         Portability to mingw32.
23451         * m4/ssize_t.m4: New file, from GNU gettext.
23452         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
23453         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
23454
23455 2003-06-22  Bruno Haible  <bruno@clisp.org>
23456
23457         * modules/safe-read: Add m4/ssize_t.m4.
23458         * modules/xreadlink: Add m4/ssize_t.m4.
23459
23460 2003-06-20  Bruno Haible  <bruno@clisp.org>
23461
23462         Assume C89, so PARAMS isn't needed.
23463         * lib/unicodeio.h (PARAMS): Remove.
23464         * lib/unicodeio.c: Don't use PARAMS.
23465
23466 2003-06-18  Karl Berry  <karl@gnu.org>
23467
23468         * config/config.{guess,sub}: update from prep.
23469
23470 2003-06-18  Jim Meyering  <jim@meyering.net>
23471
23472         Merge changes from coreutils.
23473         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
23474         Remove explicit declarations of xmalloc and realloc.
23475         Include xalloc.h.
23476         (read_utmp): Remove anachronistic cast of xmalloc.
23477
23478 2003-06-17  Paul Eggert  <eggert@twinsun.com>
23479
23480         Assume C89, so PARAMS isn't needed.
23481         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
23482         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
23483         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
23484         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
23485         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
23486         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
23487         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
23488         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
23489         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
23490         lib/xstrtod.h, lib/xstrtol.h: Likewise.
23491         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
23492         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
23493         no longer needed. Anyway, config.h should always be included before any
23494         other file.
23495
23496 2003-06-11  Simon Josefsson  <jas@extundo.com>
23497
23498         * modules/sysexits: New file.
23499         * MODULES.html.sh (func_all_modules): Add sysexits.
23500
23501 2003-06-11  Simon Josefsson  <jas@extundo.com>
23502
23503         * lib/sysexit_.h: New file.
23504
23505 2003-06-11  Derek Price  <derek@ximbiot.com>
23506
23507         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
23508         necessary.
23509
23510 2003-06-11  Bruno Haible  <bruno@clisp.org>
23511
23512         * m4/sysexits.m4: New file.
23513
23514 2003-06-10  Simon Josefsson  <jas@extundo.com>
23515
23516         * lib/argp.h: New file, from glibc.
23517         * lib/argp-ba.c: New file, from glibc.
23518         * lib/argp-eexst.c: New file, from glibc.
23519         * lib/argp-fmtstream.c: New file, from glibc.
23520         * lib/argp-fmtstream.h: New file, from glibc.
23521         * lib/argp-fs-xinl.c: New file, from glibc.
23522         * lib/argp-help.c: New file, from glibc.
23523         * lib/argp-namefrob.h: New file, from glibc.
23524         * lib/argp-parse.c: New file, from glibc.
23525         * lib/argp-pv.c: New file, from glibc.
23526         * lib/argp-pvh.c: New file, from glibc.
23527         * lib/argp-xinl.c: New file, from glibc.
23528
23529 2003-06-10  Simon Josefsson  <jas@extundo.com>
23530
23531         * modules/strchrnul: New file.
23532
23533 2003-06-10  Simon Josefsson  <jas@extundo.com>
23534
23535         * modules/argp: New file.
23536
23537 2003-06-10  Simon Josefsson  <jas@extundo.com>
23538
23539         * m4/strchrnul.m4: New file.
23540
23541 2003-06-10  Simon Josefsson  <jas@extundo.com>
23542
23543         * lib/strchrnul.h: New file.
23544         * lib/strchrnul.c: New file.
23545
23546 2003-06-10  Bruno Haible  <bruno@clisp.org>
23547
23548         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
23549
23550 2003-06-07  Karl Berry  <karl@gnu.org>
23551
23552         * config/config.{guess,sub}: update from prep.
23553
23554 2003-06-07  Jim Meyering  <jim@meyering.net>
23555
23556         * modules/strtod: Use $(...) notation, not @...@ for
23557         AC_REPLACE'd variables.
23558         * modules/localcharset: Likewise.
23559
23560 2003-06-07  Jim Meyering  <jim@meyering.net>
23561
23562         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
23563         in place of my name in the copyright comment.
23564         Remove definition and uses of __P.
23565
23566         From coreutils.
23567         * lib/stat.c: Don't declare xmalloc explicitly.
23568         Instead, include "xalloc.h".
23569         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
23570         xrealloc, and xcalloc return values.
23571         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
23572         Improve comment.
23573         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
23574
23575 2003-06-07  Bruno Haible  <bruno@clisp.org>
23576
23577         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
23578         avoid AC_CONFIG_LINKS.
23579         * modules/fnmatch (Makefile.am): Use explicit creation rule for
23580         fnmatch.h, to avoid AC_CONFIG_LINKS.
23581         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
23582
23583 2003-06-07  Bruno Haible  <bruno@clisp.org>
23584
23585         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
23586         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
23587         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
23588         directory.
23589         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
23590         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
23591         directory.
23592
23593 2003-06-06  Jim Meyering  <jim@meyering.net>
23594
23595         Merge from coreutils.
23596         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
23597         Consolidate declarations and initializations of *_base* locals.
23598
23599         Merge from coreutils.
23600         This avoids a core dump on systems without GNU putenv,
23601         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
23602         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
23603         (unsetenv): New static function, from GNU libc.
23604         (rpl_putenv): Use it.
23605
23606         * lib/modechange.c: Remove trailing blanks.
23607
23608         Merge from coreutils.
23609         * lib/fsusage.c: Remove declaration of statfs.
23610         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
23611
23612         * lib/posixtm.c: Include <stdbool.h> unconditionally.
23613
23614 2003-06-06  Jim Meyering  <jim@meyering.net>
23615
23616         * lib/stdbool_.h: Renamed from stdbool.h.in.
23617
23618 2003-06-06  Jim Meyering  <jim@meyering.net>
23619             Bruno Haible  <bruno@clisp.org>
23620
23621         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
23622         Adjust Makefile.am snippet not to redirect directly to target.
23623         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
23624
23625 2003-06-05  Paul Eggert  <eggert@twinsun.com>
23626
23627         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
23628         mismatch, look in future quarters as well as past.  This fixes a
23629         bug when processing fall-backwards gaps immediately after a long
23630         period of daylight-saving time.
23631
23632         * lib/mktime.c: Assume freestanding C89 or better.
23633         (HAVE_LIMITS_H): Remove.  Assume it's 1.
23634         (__P): Remove; not used.
23635         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
23636         (mktime, not_equal_tm, print_tm, check_result,
23637         main): Use prototypes.  Use const * where appropriate.
23638         (main): Fix typo in testing code that uncovered by above changes.
23639         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
23640
23641 2003-06-04  Paul Eggert  <eggert@twinsun.com>
23642
23643         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
23644         locale.h, localeconv.  This merges changes from coreutils.
23645
23646         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
23647         It can be removed after the next Autoconf is released.
23648         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
23649         needed.
23650
23651 2003-06-04  Paul Eggert  <eggert@twinsun.com>
23652
23653         * lib/mktime.c: Fix Debian bug 177940
23654         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
23655         (localtime_offset): Now long int, not time_t, because we want it
23656         to be guaranteed to be signed.  All uses changed.
23657         (__mktime_internal): If overflow would occur when adding offset,
23658         don't add it.
23659
23660         Merge 'human' changes from coreutils.  Rewrite to support
23661         locale-specific notations like thousands separators.
23662         * lib/human.c: Simplify authorship notice.
23663         Include human.h immediately after config.h.
23664         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
23665         <limits.h>: Do not include, since human.h does.
23666         (SIZE_MAX, UINTMAX_MAX): New macros.
23667         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
23668         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
23669         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
23670         (power_letter): Renamed from suffixes.
23671         (generate_suffix_backwards): Remove.
23672         (adjust_value): Now takes int style (because of human.h changes)
23673         and long double value (for greater precision on some platforms).
23674         (group_number): New function.
23675         (human_readable): Use it.  Use integer options, not enum.
23676         Put the options before the sizes in the arg list.
23677         Support all the new options.
23678         The old human_readable function has been removed;
23679         use inttostr.h instead.
23680         (human_readable, default_block_size, humblock):
23681         Use uintmax_t, not int, for block sizes.
23682         (human_readable_inexact, block_size_types): Remove.
23683         (block_size_opts): New constant.
23684         (human_options): Renamed from human_block_size, with new signature
23685         that allows block sizes up to UINTMAX_MAX.  All callers changed.
23686         * lib/human.h: Add copyright and authorship notice.
23687         Include <limits.h> and <stdbool.h> unconditionally.
23688         (PARAMS): Remove.  All uses removed.
23689         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
23690         (enum human_inexact_style): Remove tag; now a nameless enum.
23691         (human_floor, human_ceiling, human_round_to_even): Now have
23692         values 2, 0, 1 rather than -1, 1, 0.
23693         (human_group_digits, human_suppress_point_zero, human_autoscale,
23694         human_base_1024, human_SI, human_B): New constants.
23695         (human_readable_inexact, human_block_size): Remove.
23696         (human_readable): Size args are now uintmax_t, not int.
23697         (human_options): New decl.
23698
23699         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
23700         unnecessary now that we assume C89 or better.  This change
23701         imported from coreutils.
23702
23703         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
23704         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
23705         in the 2003-05-30 sync from glibc.
23706
23707         .h files should stand alone, but we shouldn't include <sys/types.h>
23708         if we can get away with just <stddef.h>.
23709
23710         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
23711         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
23712         rather than <sys/types.h>, as we merely need size_t.
23713         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
23714         to get size_t.
23715         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
23716         Include <stdio.h>, to get FILE.
23717         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
23718         memcasecmp.h has included <stddef.h> and all we need is size_t.
23719         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
23720         our interface, instead of including <sys/types.h>
23721
23722 2003-06-04  Paul Eggert  <eggert@twinsun.com>
23723
23724         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
23725         now, as glibc mktime is buggy on non-glibc systems.
23726
23727 2003-06-03  Karl Berry  <karl@gnu.org>
23728
23729         * config/config.sub: update from prep.
23730
23731 2003-06-02  Paul Eggert  <eggert@twinsun.com>
23732
23733         [from coreutils]
23734         Fix some minor time-related bugs with POSIX time arguments.
23735         Some valid time stamps were being rejected (notably -1, and
23736         time stamps before 1900 on 64-bit hosts).  And some invalid
23737         time stamps were being accepted, e.g. September 31.
23738
23739         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
23740         that we can return (time_t) -1 successfully.
23741         * lib/posixtm.c: Likewise.
23742         [HAVE_STDBOOL_H]: Include <stdbool.h>.
23743         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
23744         (t): Remove static var.
23745         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
23746         of static var.  All uses changed.
23747         (year): Do not reject years before 1900; they can occur with
23748         64-bit time_t.
23749         (posix_time_parse): Do not check for out-of-range components;
23750         that is now the caller's responsibility, since our checks were
23751         only approximations.
23752         (posixtime): Use mktime to check for out-of-range components,
23753         since it knows them exactly.
23754         If mktime returns (time_t) -1, check whether an error actually occurred
23755         by invoking localtime on -1.
23756         (main) [TEST_POSIXTIME]: Check for input data errors, and report
23757         posixtime failures better.
23758         Improve the test data (in comments only).
23759
23760 2003-06-02  Karl Berry  <karl@gnu.org>
23761
23762         * config/mkinstalldirs (version): new variable.
23763         (--version): new option.
23764         (usage): improve message.
23765
23766 2003-05-30  Karl Berry  <karl@gnu.org>
23767
23768         * lib/mktime.c: update from libc.
23769
23770 2003-05-30  Bruno Haible  <bruno@clisp.org>
23771
23772         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
23773         * config/config.rpath: Upgrade to gettext-0.12.1.
23774
23775 2003-05-30  Bruno Haible  <bruno@clisp.org>
23776
23777         * m4/gettext.m4: Upgrade to gettext-0.12.1.
23778         * m4/nls.m4: New file, from gettext-0.12.1.
23779         * m4/po.m4: New file, from gettext-0.12.1.
23780         * m4/progtest.m4: Upgrade to gettext-0.12.1.
23781
23782 2003-05-30  Bruno Haible  <bruno@clisp.org>
23783
23784         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
23785         * lib/localcharset.h: Likewise.
23786         * lib/localcharset.c: Likewise.
23787
23788 2003-05-29  Karl Berry  <karl@gnu.org>
23789
23790         * config/config.rpath: update from gettext.
23791
23792 2003-05-28  Paul Eggert  <eggert@twinsun.com>
23793
23794         Assume the headers required for C89 freestanding compilers.
23795         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
23796         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
23797         * m4/human.m4 (gl_HUMAN): Likewise.
23798         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
23799         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
23800         * m4/userspec.m4 (gl_USERSPEC): Likewise.
23801         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
23802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23803         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
23804
23805 2003-05-28  Paul Eggert  <eggert@twinsun.com>
23806
23807         Assume the headers required for C89 freestanding compilers.
23808         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
23809         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
23810         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
23811         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
23812         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
23813         define, since <limits.h> is guaranteed to do that.
23814         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
23815         * lib/exclude.c: Include <stdbool.h> unconditionally.
23816         * lib/tempname.c: Include <stddef.h> unconditionally.
23817         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
23818         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
23819         <stddef.h> does that.
23820         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
23821         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
23822         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
23823         needed.
23824         * lib/xstrtol.c: Likewise.
23825         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
23826         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
23827
23828         * lib/addext.c (addext): Use assignment rather than cast, to avoid
23829         warnings on some platforms.
23830
23831         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
23832         arbitrarily.
23833
23834 2003-05-26  Jim Meyering  <jim@meyering.net>
23835
23836         Merge in a change from coreutils:
23837         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
23838         that is guaranteed to be `no'.  Use `no_such_member' to indicate
23839         that condition, rather than `-1' which is slightly misleading.
23840         Change the name of the cache variable to have the gl_ prefix.
23841         Prompted by a patch from Richard Dawe for DJGPP.
23842
23843 2003-05-24  Karl Berry  <karl@gnu.org>
23844
23845         * config/config.guess: update from prep.
23846
23847 2003-05-22  Karl Berry  <karl@gnu.org>
23848
23849         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
23850
23851 2003-05-20  Karl Berry  <karl@gnu.org>
23852
23853         * config/config.guess: update from prep.
23854
23855 2003-05-18  Karl Berry  <karl@gnu.org>
23856
23857         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
23858         might actually be set by the user.
23859
23860         * config/depcomp, install-sh, mdate-sh: update from automake.
23861
23862 2003-05-17  Bruno Haible  <bruno@clisp.org>
23863
23864         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
23865         invalid expansion for AC_EGREP_CPP.
23866         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23867         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23868         Suggested by Akim Demaille <akim@epita.fr> in
23869         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
23870
23871 2003-05-12  Jim Meyering  <jim@meyering.net>
23872
23873         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
23874         the space-padded-by-default conversion specifiers, %e, %k, %l.
23875
23876 2003-05-12  Bruno Haible  <bruno@clisp.org>
23877
23878         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
23879         the string is longer than 4 KB.
23880
23881 2003-05-11  Karl Berry  <karl@gnu.org>
23882
23883         * config/config.{guess,sub}: update from prep.
23884
23885 2003-05-09  Bruno Haible  <bruno@clisp.org>
23886
23887         * modules/error: Add m4/strerror_r.m4 to file list.
23888
23889 2003-05-03  Bruno Haible  <bruno@clisp.org>
23890
23891         Upgrade to Unicode-4.0.
23892         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
23893         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
23894         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
23895         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
23896         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
23897         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
23898         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
23899         Change width of U+E0100..U+E01EF from 1 to 0.
23900
23901 2003-04-25  Jim Meyering  <jim@meyering.net>
23902
23903         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
23904         of type size_t, not int.
23905
23906 2003-04-25  Bruno Haible  <bruno@clisp.org>
23907
23908         * lib/copy-file.c: Include <stddef.h>, for size_t.
23909
23910 2003-04-21  Paul Eggert  <eggert@twinsun.com>
23911
23912         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
23913         code which expansion is under static control.  Patch imported from
23914         Akim Demaille's patch to Bison; see
23915         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
23916
23917 2003-04-14  Bruno Haible  <bruno@clisp.org>
23918
23919         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
23920
23921 2003-04-11  Jim Meyering  <jim@meyering.net>
23922
23923         Merge changes from Coreutils.
23924
23925         2003-03-22  Jim Meyering  <jim@meyering.net>
23926
23927         * lib/strftime.c (widen): Cast alloca return value to proper type.
23928
23929         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
23930
23931         From GNU libc.
23932         * lib/strftime.c (my_strftime): Handle very large width
23933         specifications for numeric values correctly.  Improve checks for
23934         overflow.
23935
23936         2003-01-19  Jim Meyering  <jim@meyering.net>
23937
23938         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
23939         definitions.
23940         (nl_get_alt_digit) [! defined my_strftime]: Define.
23941         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
23942         _nl_get_alt_digit and _nl_get_walt_digit.
23943
23944         * lib/strftime.c (my_strftime): Merge in locale-related changes from
23945         libc. These changes have no effect outside of _LIBC.
23946
23947 2003-04-10  Bruno Haible  <bruno@clisp.org>
23948
23949         * modules/findprog: New file.
23950         * MODULES.html.sh (func_all_modules): Add it.
23951
23952 2003-04-10  Bruno Haible  <bruno@clisp.org>
23953
23954         * m4/findprog.m4: New file.
23955         * m4/eaccess.m4: New file.
23956
23957 2003-04-10  Bruno Haible  <bruno@clisp.org>
23958
23959         * lib/findprog.h: New file, from GNU gettext.
23960         * lib/findprog.c: New file, from GNU gettext.
23961
23962 2003-04-05  Jim Meyering  <jim@meyering.net>
23963
23964         Merge changes from Coreutils.
23965
23966         * lib/exclude.h (PARAMS): Remove definition and uses.
23967         * lib/exclude.c: Remove uses of `PARAMS'.
23968
23969         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
23970         Add test-cases for DOS filenames. Declare program_name.
23971         (main): Set up program_name.  Patch by Rich Dawe.
23972
23973         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
23974         error from mntctl.
23975         Use mntctl's return value to drive the entry-processing loop, since
23976         we can't rely on the value of the vmt_length member in the last
23977         entry.  On some systems doing so could result in exhausting
23978         virtual memory.  Based in part on a patch from Mike Jetzer.
23979
23980 2003-04-04  Bruno Haible  <bruno@clisp.org>
23981
23982         * modules/linebreak: New file.
23983         * MODULES.html.sh (func_all_modules): Add it.
23984
23985 2003-04-04  Bruno Haible  <bruno@clisp.org>
23986
23987         * m4/linebreak.m4: New file.
23988
23989 2003-04-04  Bruno Haible  <bruno@clisp.org>
23990
23991         * lib/linebreak.h: New file, from GNU gettext.
23992         * lib/linebreak.c: New file, from GNU gettext with slight
23993         modifications.
23994         * lib/lbrkprop.h: New file, from GNU gettext.
23995
23996 2003-04-03  Bruno Haible  <bruno@clisp.org>
23997
23998         * modules/utf8-ucs4: New file.
23999         * modules/utf16-ucs4: New file.
24000         * modules/ucs4-utf8: New file.
24001         * modules/ucs4-utf16: New file.
24002         * MODULES.html.sh (func_all_modules): Add them.
24003
24004 2003-04-03  Bruno Haible  <bruno@clisp.org>
24005
24006         * m4/utf-ucs4.m4: New file.
24007         * m4/ucs4-utf.m4: New file.
24008
24009 2003-04-03  Bruno Haible  <bruno@clisp.org>
24010
24011         * lib/utf8-ucs4.h: New file, from GNU gettext.
24012         * lib/utf16-ucs4.h: New file, from GNU gettext.
24013         * lib/ucs4-utf8.h: New file, from GNU gettext.
24014         * lib/ucs4-utf16.h: New file, from GNU gettext.
24015
24016 2003-04-02  Bruno Haible  <bruno@clisp.org>
24017
24018         * modules/binary-io: New file.
24019         * MODULES.html.sh (func_all_modules): Add it.
24020
24021 2003-04-02  Bruno Haible  <bruno@clisp.org>
24022
24023         * lib/binary-io.h: New file, from GNU gettext.
24024
24025 2003-04-01  Bruno Haible  <bruno@clisp.org>
24026
24027         * modules/pathname: New file.
24028         * MODULES.html.sh (func_all_modules): Add it.
24029
24030 2003-04-01  Bruno Haible  <bruno@clisp.org>
24031
24032         * lib/pathname.h: New file, from GNU gettext.
24033         * lib/concatpath.c: New file, from GNU gettext.
24034
24035 2003-03-30  Bruno Haible  <bruno@clisp.org>
24036
24037         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
24038
24039 2003-03-30  Bruno Haible  <bruno@clisp.org>
24040
24041         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
24042         function chown() doesn't exist.
24043
24044 2003-03-28  Bruno Haible  <bruno@clisp.org>
24045
24046         * modules/copy-file: New file.
24047         * MODULES.html.sh (func_all_modules): Add it.
24048
24049 2003-03-28  Bruno Haible  <bruno@clisp.org>
24050
24051         * m4/copy-file.m4: New file.
24052
24053 2003-03-28  Bruno Haible  <bruno@clisp.org>
24054
24055         * lib/copy-file.h: New file, from GNU gettext.
24056         * lib/copy-file.c: New file, from GNU gettext.
24057
24058 2003-03-18  Jim Meyering  <jim@meyering.net>
24059
24060         * lib/quote.c (quote_n): Fix typo in comment.
24061
24062 2003-03-18  Bruno Haible  <bruno@clisp.org>
24063
24064         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
24065         checking.
24066         * m4/onceonly_2_57.m4: Likewise.
24067
24068 2003-03-17  Bruno Haible  <bruno@clisp.org>
24069
24070         * m4/onceonly.m4: Require autoconf 2.54 or newer.
24071         (m4_quote): Remove macro.
24072         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
24073
24074 2003-03-14  Jim Meyering  <jim@meyering.net>
24075
24076         Merge changes from Coreutils.
24077         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
24078         to be const, in order to avoid warnings.
24079         (obstack_room): Likewise.
24080         (obstack_empty_p): Likewise.
24081
24082 2003-03-14  Bruno Haible  <bruno@clisp.org>
24083
24084         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
24085         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
24086
24087 2003-03-13  Paul Eggert  <eggert@twinsun.com>
24088
24089         Merge changes from Bison.
24090         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
24091         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
24092         when compiling Bison 1.875's `bitset bset = obstack_alloc
24093         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
24094         * lib/hash.c: Include <stdbool.h> unconditionally.
24095
24096 2003-03-13  Paul Eggert  <eggert@twinsun.com>
24097
24098         * m4/onceonly.m4 (m4_quote): New macro.
24099         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
24100         Quote AC_FOREACH variable-expansions properly.
24101
24102 2003-03-13  Paul Eggert  <eggert@twinsun.com>
24103
24104         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
24105
24106 2003-03-09  Paul Eggert  <eggert@twinsun.com>
24107
24108         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
24109         Reported by Bruce Becker; see:
24110         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
24111
24112 2003-03-03  Paul Eggert  <eggert@twinsun.com>
24113             Bruno Haible  <bruno@clisp.org>
24114
24115         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
24116         Reported by John Hughes, see
24117         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
24118
24119 2003-02-20  Bruno Haible  <bruno@clisp.org>
24120
24121         * MODULES.html.sh (func_all_modules): Add poll.
24122
24123 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
24124
24125         * modules/poll: New file.
24126
24127 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
24128
24129         * lib/poll_.h: New file.
24130         * lib/poll.c: New file.
24131
24132 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
24133
24134         * m4/poll.m4: New file.
24135
24136 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
24137
24138         * modules/mathl: New file.
24139
24140 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
24141
24142         * lib/mathl.h: New file.
24143         * lib/acosl.c: New file.
24144         * lib/asinl.c: New file.
24145         * lib/atanl.c: New file.
24146         * lib/ceill.c: New file.
24147         * lib/cosl.c: New file.
24148         * lib/expl.c: New file.
24149         * lib/floorl.c: New file.
24150         * lib/frexpl.c: New file.
24151         * lib/ldexpl.c: New file.
24152         * lib/logl.c: New file.
24153         * lib/sincosl.c: New file.
24154         * lib/sinl.c: New file.
24155         * lib/sqrtl.c: New file.
24156         * lib/tanl.c: New file.
24157         * lib/trigl.c: New file.
24158         * lib/trigl.h: New file.
24159
24160 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
24161
24162         * m4/mathl.m4: New file.
24163
24164 2003-02-18  Bruno Haible  <bruno@clisp.org>
24165
24166         * MODULES.html.sh (func_all_modules): Add mathl.
24167
24168 2003-02-17  Bruno Haible  <bruno@clisp.org>
24169
24170         * modules/mkdtemp: New module.
24171         * MODULES.html.sh (func_all_modules): Add it.
24172
24173 2003-02-17  Bruno Haible  <bruno@clisp.org>
24174
24175         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
24176
24177 2003-02-17  Bruno Haible  <bruno@clisp.org>
24178
24179         * lib/mkdtemp.h: New file, from GNU gettext.
24180         * lib/mkdtemp.c: New file, from GNU gettext.
24181
24182 2003-02-02  Jim Meyering  <jim@meyering.net>
24183
24184         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
24185         e.g. glibc-2.2.93.
24186
24187 2003-01-31  Bruno Haible  <bruno@clisp.org>
24188
24189         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
24190         'rpl_rename'.
24191         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
24192         'rpl_strnlen'.
24193         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
24194         'rpl_strtod'.
24195         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
24196         'rpl_utime'.
24197
24198 2003-01-31  Bruno Haible  <bruno@clisp.org>
24199
24200         * lib/rename.c: #undef rename before defining rpl_rename.
24201         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
24202
24203 2003-01-30  Bruno Haible  <bruno@clisp.org>
24204
24205         * modules/vasnprintf, modules/vasprintf: New modules.
24206         * MODULES.html.sh (func_all_modules): Add them.
24207
24208 2003-01-30  Bruno Haible  <bruno@clisp.org>
24209
24210         * m4/signed.m4: New file, from GNU gettext.
24211         * m4/longdouble.m4: New file, from GNU gettext.
24212         * m4/wchar_t.m4: New file, from GNU gettext.
24213         * m4/wint_t.m4: New file, from GNU gettext.
24214         * m4/vasnprintf.m4: New file.
24215         * m4/vasprintf.m4: New file.
24216
24217 2003-01-30  Bruno Haible  <bruno@clisp.org>
24218
24219         * lib/printf-args.h: New file, from GNU gettext.
24220         * lib/printf-args.c: New file, from GNU gettext.
24221         * lib/printf-parse.h: New file, from GNU gettext.
24222         * lib/printf-parse.c: New file, from GNU gettext.
24223         * lib/vasnprintf.h: New file, from GNU gettext.
24224         * lib/vasnprintf.c: New file, from GNU gettext.
24225         * lib/asnprintf.c: New file, from GNU gettext.
24226         * lib/vasprintf.h: New file, from GNU gettext with modifications.
24227         * lib/vasprintf.c: New file, from GNU gettext.
24228         * lib/asprintf.c: New file, from GNU gettext.
24229
24230 2003-01-29  Bruno Haible  <bruno@clisp.org>
24231
24232         * modules/stpncpy: New module.
24233         * MODULES.html.sh (func_all_modules): Add it.
24234
24235 2003-01-29  Bruno Haible  <bruno@clisp.org>
24236
24237         * m4/stpncpy.m4: New file.
24238
24239 2003-01-29  Bruno Haible  <bruno@clisp.org>
24240
24241         * lib/stpncpy.h: New file, from GNU gettext with modifications.
24242         * lib/stpncpy.c: New file, from GNU gettext with modifications.
24243
24244 2003-01-28  Bruno Haible  <bruno@clisp.org>
24245
24246         * modules/c-ctype: New module.
24247         * MODULES.html.sh (func_all_modules): Add it.
24248
24249 2003-01-28  Bruno Haible  <bruno@clisp.org>
24250
24251         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
24252         Paul Eggert.
24253         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
24254         Paul Eggert.
24255
24256 2003-01-27  Bruno Haible  <bruno@clisp.org>
24257
24258         * modules/xsetenv: New module.
24259         * MODULES.html.sh (func_all_modules): Add it.
24260
24261 2003-01-27  Bruno Haible  <bruno@clisp.org>
24262
24263         * lib/xsetenv.h: New file, from GNU gettext.
24264         * lib/xsetenv.c: New file, from GNU gettext.
24265
24266 2003-01-23  Jim Meyering  <jim@meyering.net>
24267
24268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
24269         from working on systems without dirfd (at least Irix and OSF1/Tru64).
24270
24271 2003-01-23  Bruno Haible  <bruno@clisp.org>
24272
24273         * modules/minmax: New module.
24274         * MODULES.html.sh (func_all_modules): Add it.
24275
24276 2003-01-23  Bruno Haible  <bruno@clisp.org>
24277
24278         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
24279         Eggert.
24280
24281 2003-01-22  Bruno Haible  <bruno@clisp.org>
24282
24283         * modules/exit: New module.
24284         * MODULES.html.sh (func_all_modules): Add it.
24285
24286 2003-01-22  Bruno Haible  <bruno@clisp.org>
24287
24288         * lib/exit.h: New file, from GNU gettext.
24289
24290 2003-01-19  Bruno Haible  <bruno@clisp.org>
24291
24292         * gnulib-tool: Recognize option --extract-maintainer.
24293         (func_get_maintainer): New function.
24294         * modules/*: Add Maintainer entry.
24295
24296 2003-01-16  Jim Meyering  <jim@meyering.net>
24297
24298         * m4/regex.m4: The `regex' struct is both input and output.
24299         Initialize it before each use.  Patch by Tim Waugh.
24300
24301 2003-01-16  Bruno Haible  <bruno@clisp.org>
24302
24303         * MODULES.html.sh: Add a table of contents. Add the module name as
24304         leftmost column. Add hyperlinks.
24305
24306 2003-01-15  Bruno Haible  <bruno@clisp.org>
24307
24308         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
24309
24310 2003-01-15  Bruno Haible  <bruno@clisp.org>
24311
24312         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
24313         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
24314         suffix.
24315
24316 2003-01-15  Bruno Haible  <bruno@clisp.org>
24317
24318         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
24319
24320 2003-01-15  Bruno Haible  <bruno@clisp.org>
24321
24322         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
24323         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
24324
24325 2003-01-14  Jim Meyering  <jim@meyering.net>
24326
24327         * lib/same.c (same_name): Tweak a comment.
24328
24329 2003-01-14  Bruno Haible  <bruno@clisp.org>
24330
24331         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
24332         when a string comparison is sufficient.
24333
24334 2003-01-14  Bruno Haible  <bruno@clisp.org>
24335
24336         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
24337         'unsigned int'.
24338
24339 2003-01-14  Bruno Haible  <bruno@clisp.org>
24340
24341         * lib/hash-pjw.c: Add comment about low quality of this function.
24342
24343 2003-01-13  Bruno Haible  <bruno@clisp.org>
24344
24345         * modules/stpcpy: Distribute lib/stpcpy.h.
24346         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
24347
24348 2003-01-13  Bruno Haible  <bruno@clisp.org>
24349
24350         * modules/*: Add a description.
24351         * modules/strpbrk: Fix Makefile.am snippet.
24352         * modules/strtoimax: Fix dependencies.
24353         * modules/strtoumax: Likewise.
24354
24355 2003-01-13  Bruno Haible  <bruno@clisp.org>
24356
24357         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
24358         * modules/alloca (Makefile.am): All object files depend on alloca.h.
24359         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
24360
24361 2003-01-13  Bruno Haible  <bruno@clisp.org>
24362
24363         * gnulib-tool (func_create_testdir): Store config/* files in the main
24364         directory.
24365         * config.rpath: Move to ...
24366         * config/config.rpath: ... here.
24367         * modules/gettext: Contains config/config.rpath, not config.rpath.
24368         * modules/iconv: Likewise.
24369
24370 2003-01-12  Paul Eggert  <eggert@twinsun.com>
24371
24372         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24373         to avoid collisions with libcurses and libreadline.
24374
24375         * m4/getstr.m4: Remove.
24376         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
24377
24378 2003-01-12  Paul Eggert  <eggert@twinsun.com>
24379
24380         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24381         to avoid collisions with libcurses and libreadline.
24382
24383         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
24384         * lib/getstr.h, getstr.c: Remove.
24385         * lib/getline.c: Include "getline.h", to check interface.
24386         Move body of old getstr.c here: this defines MIN_CHUNK and
24387         declares getdelim2, which is renamed from getstr.
24388         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
24389
24390         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
24391         All uses changed.
24392         * lib/linebuffer.h: Likewise.
24393         (readline): Remove backward-compatibility macro.
24394
24395 2003-01-12  Paul Eggert  <eggert@twinsun.com>
24396
24397         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24398         to avoid collisions with libcurses and libreadline.
24399         * getstr: Remove.
24400         * MODULES.html.sh: Remove getstr.
24401         * modules/getline: Depend on unlocked-io, not getstr.
24402
24403 2003-01-12  Jim Meyering  <jim@meyering.net>
24404
24405         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
24406
24407 2003-01-10  Bruno Haible  <bruno@clisp.org>
24408
24409         * modules/alloca: Change Makefile.am requirements. Simplify Include
24410         requirements. Add lib/alloca_.h to file list.
24411
24412 2003-01-10  Bruno Haible  <bruno@clisp.org>
24413
24414         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
24415
24416 2003-01-10  Bruno Haible  <bruno@clisp.org>
24417
24418         * lib/alloca_.h: New file.
24419         * lib/getdate.y: Unconditionally include alloca.h.
24420         * lib/makepath.c: Likewise.
24421         * lib/setenv.c: Likewise.
24422         * lib/userspec.c: Likewise.
24423
24424 2003-01-09  Karl Berry  <karl@gnu.org>
24425
24426         * MODULES.html.sh: include `dirname $0` in PATH, to find
24427         gnulib-tool.
24428
24429 2003-01-09  Bruno Haible  <bruno@clisp.org>
24430
24431         * modules/stdbool: Change configure.ac, Makefile.am requirements.
24432         Simplify Include requirements. Add lib/stdbool.h.in to file list.
24433
24434 2003-01-09  Bruno Haible  <bruno@clisp.org>
24435
24436         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
24437
24438 2003-01-09  Bruno Haible  <bruno@clisp.org>
24439
24440         * lib/stdbool.h.in: New file.
24441
24442 2003-01-09  Bruno Haible  <bruno@clisp.org>
24443
24444         * gnulib-tool (func_all_modules): Ignore files ending in ~.
24445         * MODULES.html.sh: Likewise.
24446
24447 2003-01-08  Jim Meyering  <jim@meyering.net>
24448
24449         * lib/full-write.c: Undefine and define-away `const' after inclusion
24450         of errno.h, not before.  Suggestion from Bruno Haible.
24451
24452 2003-01-08  Bruno Haible  <bruno@clisp.org>
24453
24454         * modules/full-read: Depend on full-write.
24455
24456 2003-01-08  Bruno Haible  <bruno@clisp.org>
24457
24458         * lib/safe-read.c: Include specification header first, to ensure its
24459         selfcontainedness.
24460         * lib/full-write.c: Likewise.
24461
24462 2003-01-07  Jim Meyering  <jim@meyering.net>
24463
24464         * lib/full-write.c: Rework so that it may serve to define full_read,
24465         too.
24466         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
24467
24468 2003-01-07  Bruno Haible  <bruno@clisp.org>
24469
24470         * lib/strtoimax.c: Include <stdint.h> as an alternative to
24471         <inttypes.h>.
24472         * lib/xstrtol.h: Likewise.
24473         * lib/xstrtoimax.c: Likewise.
24474         * lib/xstrtoumax.c: Likewise.
24475         * lib/human.h: Likewise.
24476
24477         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
24478         on systems that have <inttypes.h> but not <stdint.h>.
24479
24480 2003-01-07  Bruno Haible  <bruno@clisp.org>
24481
24482         * MODULES.html.sh: Add copyright notice.
24483         (missed_files): Omit CVS directory entries.
24484         (func_module): Make it work with sed-3.02.
24485         * MODULES.txt: Remove file.
24486
24487 2003-01-06  Jim Meyering  <jim@meyering.net>
24488
24489         * lib/version-etc.c: Update year in translatable copyright string.
24490
24491 2003-01-03  Karl Berry  <karl@gnu.org>
24492
24493         * config/config.{guess,sub}: update from prep.
24494
24495 2003-01-02  Karl Berry  <karl@gnu.org>
24496
24497         * doc/COPYING.DOC: belatedly updated to 1.2.
24498
24499 2003-01-01  Karl Berry  <karl@gnu.org>
24500
24501         * gnulib-tool (func_verify_module): report module name $module in
24502         error message, not $1.
24503         * gnulib-tool (create-testdir): don't complain if destdir couldn't
24504         be created, only if it doesn't exist.
24505         * gnulib-tool (last_checkin_date): don't expand the $Date here.
24506
24507 2002-12-31  Paul Eggert  <eggert@twinsun.com>
24508
24509         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
24510
24511 2002-12-31  Paul Eggert  <eggert@twinsun.com>
24512
24513         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
24514         memcmp if strcoll doesn't work.
24515
24516 2002-12-31  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/utime.c (utime_null): No need to call ftruncate if the file was
24519         nonempty.
24520
24521 2002-12-31  Bruno Haible  <bruno@clisp.org>
24522
24523         * lib/memcoll.c (STRCOLL): New macro.
24524         (memcoll): Use it.
24525
24526 2002-12-31  Bruno Haible  <bruno@clisp.org>
24527
24528         * lib/localcharset.h: New file.
24529         * lib/localcharset.c: Include it.
24530         * lib/unicodeio.c: Likewise.
24531
24532 2002-12-31  Bruno Haible  <bruno@clisp.org>
24533
24534         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
24535         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
24536
24537 2002-12-31  Bruno Haible  <bruno@clisp.org>
24538
24539         * lib/getline.h: Include <stddef.h>, for size_t.
24540
24541         * lib/unicodeio.h: Include <stddef.h>, for size_t.
24542         * lib/unicodeio.c: Don't include <stddef.h>.
24543
24544 2002-12-31  Bruno Haible  <bruno@clisp.org>
24545
24546         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
24547         HAVE_TM_ZONE.
24548
24549 2002-12-24  Karl Berry  <karl@gnu.org>
24550
24551         * config/config.guess: update from prep.
24552
24553 2002-12-24  Bruno Haible  <bruno@clisp.org>
24554
24555         General infrasructure.
24556         * m4/README: Rewritten.
24557         * m4/onceonly.m4: New file.
24558         * m4/onceonly_2_57.m4: New file.
24559
24560         Module atexit.
24561         * m4/atexit.m4: New file.
24562
24563         Module strtod.
24564         * m4/strtod.m4: New file.
24565
24566         Module strtol.
24567         * m4/strtol.m4: New file.
24568
24569         Module strtoul.
24570         * m4/strtoul.m4: New file.
24571
24572         Module memchr.
24573         * m4/memchr.m4: New file.
24574
24575         Module memcmp.
24576         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
24577         (jm_FUNC_MEMCMP): Invoke it.
24578
24579         Module memcpy.
24580         * m4/memcpy.m4: New file.
24581
24582         Module memmove.
24583         * m4/memmove.m4: New file.
24584
24585         Module memset.
24586         * m4/memset.m4: New file.
24587
24588         Module strcspn.
24589         * m4/strcspn.m4: New file.
24590
24591         Module strpbrk.
24592         * m4/strpbrk.m4: New file.
24593
24594         Module strstr.
24595         * m4/strstr.m4: New file.
24596
24597         Module strerror.
24598         * m4/strerror.m4: New file.
24599
24600         Module mktime.
24601         * m4/mktime.m4: Renamed from jm-mktime.m4.
24602         (gl_PREREQ_MKTIME): New macro.
24603         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
24604
24605         Module malloc.
24606         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
24607         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
24608         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
24609
24610         Module realloc.
24611         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
24612         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
24613         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
24614
24615         Module strftime.
24616         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
24617         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
24618         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
24619         gl_TM_GMTOFF.
24620         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
24621
24622         Module xalloc.
24623         * m4/xalloc.m4: New file.
24624
24625         Module alloca.
24626         * m4/alloca.m4: New file.
24627
24628         Module putenv.
24629         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
24630         (jm_FUNC_PUTENV): Invoke it.
24631
24632         Module setenv.
24633         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
24634         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
24635         when invoked twice.
24636         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
24637         gt_FUNC_SETENV.
24638
24639         Module memrchr.
24640         * m4/memrchr.m4: New file.
24641
24642         Module stpcpy.
24643         * m4/stpcpy.m4: New file.
24644
24645         Module strcase.
24646         * m4/strcase.m4: New file.
24647
24648         Module strdup.
24649         * m4/strdup.m4: New file.
24650
24651         Module strnlen.
24652         * m4/strnlen.m4: New file.
24653
24654         Module strndup.
24655         * m4/strndup.m4: New file.
24656
24657         Module xstrtod.
24658         * m4/xstrtod.m4: New file.
24659
24660         Module xstrtol.
24661         * m4/xstrtol.m4: New file.
24662
24663         Module getdate.
24664         * m4/getdate.m4: New file.
24665
24666         Module unlocked-io.
24667         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
24668         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
24669         * m4/jm-glibc-io.m4n: Remove file.
24670
24671         Module long-options.
24672         * m4/long-options.m4: New file.
24673
24674         Module md5.
24675         * m4/md5.m4: New file.
24676
24677         Module sha.
24678         * m4/sha.m4: New file.
24679
24680         Module getstr.
24681         * m4/getstr.m4: New file.
24682
24683         Module getline.
24684         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
24685         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
24686         <sys/types.h>, for size_t. Use the function name gnu_getline, not
24687         simply getline. Infoke gl_PREREQ_GETLINE.
24688
24689         Module obstack.
24690         * m4/obstack.m4: New file.
24691
24692         Module hash.
24693         * m4/hash.m4: New file.
24694
24695         Module readtokens.
24696         * m4/readtokens.m4: New file.
24697
24698         Module strverscmp.
24699         * m4/strverscmp.m4: New file.
24700
24701         Module stdbool.
24702         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
24703         OSF/1.
24704
24705         Module strtoll.
24706         * m4/strtoll.m4: New file.
24707
24708         Module strtoull.
24709         * m4/strtoull.m4: New file.
24710
24711         Module strtoimax.
24712         * m4/strtoimax.m4: New file.
24713
24714         Module strtoumax.
24715         * m4/strtoumax.m4: New file.
24716
24717         Module xstrtoimax.
24718         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
24719         jm_AC_PREREQ_XSTRTOIMAX.
24720         Moved the strtol prerequisites to strtol.m4.
24721         Moved the strtoll prerequisites to strtoll.m4.
24722         Moved the strtoimax prerequisites to strtoimax.m4.
24723
24724         Module xstrtoumax.
24725         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
24726         jm_AC_PREREQ_XSTRTOUMAX.
24727         Moved the strtoul prerequisites to strtoul.m4.
24728         Moved the strtoull prerequisites to strtoull.m4.
24729         Moved the strtoumax prerequisites to strtoumax.m4.
24730
24731         Module chown.
24732         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
24733         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
24734
24735         Module dup2.
24736         * m4/dup2.m4: New file.
24737
24738         Module ftruncate.
24739         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
24740         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
24741
24742         Module getgroups.
24743         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
24744         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
24745
24746         Module gettimeofday.
24747         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
24748         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
24749         gl_PREREQ_GETTIMEOFDAY.
24750
24751         Module mkdir.
24752         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
24753         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
24754
24755         Module mkstemp.
24756         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
24757         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
24758         jm_AC_TYPE_UINTMAX_T.
24759         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
24760
24761         Module stat.
24762         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
24763         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
24764
24765         Module lstat.
24766         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
24767         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
24768
24769         Module timespec.
24770         * m4/timespec.m4 (gl_TIMESPEC): New macro.
24771         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
24772         * m4/st_mtim.m4: Indentation.
24773
24774         Module nanosleep.
24775         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
24776         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
24777         gl_PREREQ_NANOSLEEP.
24778
24779         Module regex.
24780         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
24781         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
24782         (gl_REGEX): New macro.
24783
24784         Module rename.
24785         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
24786         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
24787
24788         Module rmdir.
24789         * m4/rmdir.m4: New file.
24790
24791         Module utime.
24792         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
24793         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
24794         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
24795
24796         Module dirname.
24797         * m4/dirname.m4: New file.
24798
24799         Module getopt.
24800         * m4/getopt.m4: New file.
24801
24802         Module unistd-safer.
24803         * m4/unistd-safer.m4: New file.
24804
24805         Module fnmatch.
24806         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
24807         declaration.
24808         (gl_PREREQ_FNMATCH_EXTRA): New macro.
24809         (gl_FUNC_FNMATCH_POSIX): New macro.
24810         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
24811         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
24812         simply fnmatch.
24813
24814         Module exclude.
24815         * m4/exclude.m4: New file.
24816
24817         Module human.
24818         * m4/human.m4: New file.
24819
24820         Module acl.
24821         * m4/acl.m4: Nop.
24822
24823         Module backupfile.
24824         * m4/backupfile.m4: New file.
24825         * m4/d-ino.m4: Indentation.
24826
24827         Module fsusage.
24828         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
24829         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
24830         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
24831
24832         Module dirfd.
24833         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
24834         requirements.
24835
24836         Module euidaccess.
24837         * m4/euidaccess.m4: New file.
24838
24839         Module file-type.
24840         * m4/file-type.m4: New file.
24841
24842         Module fileblocks.
24843         * m4/fileblocks.m4: New file.
24844
24845         Module filemode.
24846         * m4/filemode.m4: New file.
24847
24848         Module isdir.
24849         * m4/isdir.m4: New file.
24850
24851         Module lchown.
24852         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
24853         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
24854
24855         Module makepath.
24856         * m4/makepath.m4: New file.
24857
24858         Module modechange.
24859         * m4/modechange.m4: New file.
24860
24861         Module mountlist.
24862         * m4/mountlist.m4: New file.
24863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
24864         Indentation.
24865
24866         Module path-concat.
24867         * m4/path-concat.m4: New file.
24868
24869         Module pathmax.
24870         * m4/pathmax.m4: New file.
24871
24872         Module same.
24873         * m4/same.m4: New file.
24874
24875         Module save-cwd.
24876         * m4/save-cwd.m4: New file.
24877
24878         Module savedir.
24879         * m4/savedir.m4: New file.
24880
24881         Module xgetcwd.
24882         * m4/xgetcwd.m4: New file.
24883         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
24884
24885         Module xreadlink.
24886         * m4/xreadlink.m4: New file.
24887
24888         Module safe-read.
24889         * m4/safe-read.m4: New file.
24890
24891         Module safe-write.
24892         * m4/safe-write.m4: New file.
24893
24894         Module closeout.
24895         * m4/closeout.m4: New file.
24896
24897         Module stdio-safer.
24898         * m4/stdio-safer.m4: New file.
24899
24900         Module getpass.
24901         * m4/getpass.m4: New file.
24902
24903         Module getugroups.
24904         * m4/getugroups.m4: New file.
24905
24906         Module group-member.
24907         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
24908         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
24909
24910         Module idcache.
24911         * m4/idcache.m4: New file.
24912
24913         Module userspec.
24914         * m4/userspec.m4: New file.
24915
24916         Module gettime.
24917         * m4/clock_time.m4: New file.
24918         * m4/gettime.m4: New file.
24919
24920         Module settime.
24921         * m4/settime.m4: New file.
24922
24923         Module posixtm.
24924         * m4/posixtm.m4: New file.
24925
24926         Module gethostname.
24927         * m4/gethostname.m4: New file.
24928
24929         Module canon-host.
24930         * m4/canon-host.m4: New file.
24931
24932         Module gettext.
24933         * m4/codeset.m4: New file, from gettext-0.11.5.
24934         * m4/gettext.m4: New file, from gettext-0.11.5.
24935         * m4/glibc21.m4: New file, from gettext-0.11.5.
24936         * m4/iconv.m4: New file, from gettext-0.11.5.
24937         * m4/intdiv0.m4: New file, from gettext-0.11.5.
24938         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
24939         * m4/inttypes.m4: New file, from gettext-0.11.5.
24940         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
24941         * m4/isc-posix.m4: New file, from gettext-0.11.5.
24942         * m4/lcmessage.m4: New file, from gettext-0.11.5.
24943         * m4/lib-ld.m4: New file, from gettext-0.11.5.
24944         * m4/lib-link.m4: New file, from gettext-0.11.5.
24945         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
24946         * m4/progtest.m4: New file, from gettext-0.11.5.
24947         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
24948         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
24949         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
24950
24951         Module localcharset.
24952         * m4/localcharset.m4: New file.
24953
24954         Module hard-locale.
24955         * m4/hard-locale.m4: New file.
24956
24957         Module mbswidth.
24958         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
24959         onceonly macros.
24960         * m4/mbrtowc.m4: Add comment.
24961
24962         Module memcasecmp.
24963         * m4/memcasecmp.m4: New file.
24964
24965         Module memcoll.
24966         * m4/memcoll.m4: New file.
24967
24968         Module unicodeio.
24969         * m4/unicodeio.m4: New file.
24970
24971         Module rpmatch.
24972         * m4/rpmatch.m4: New file.
24973
24974         Module yesno.
24975         * m4/yesno.m4: New file.
24976
24977         Module exitfail.
24978         * m4/exitfail.m4: New file.
24979
24980         Module c-stack.
24981         * m4/c-stack.m4 (gl_C_STACK): New macro.
24982         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
24983
24984         Module error.
24985         * m4/error.m4 (gl_ERROR): New macro.
24986         (jm_PREREQ_ERROR): Use onceonly macros.
24987
24988         Module fatal.
24989         * m4/fatal.m4: New file.
24990
24991         Module getloadavg.
24992         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
24993         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
24994
24995         Module getpagesize.
24996         * m4/getpagesize.m4: New file.
24997
24998         Module getusershell.
24999         * m4/getusershell.m4: New file.
25000
25001         Module physmem.
25002         * m4/physmem.m4: New file.
25003
25004         Module posixver.
25005         * m4/posixver.m4: New file.
25006
25007         Module quotearg.
25008         * m4/quotearg.m4: New file.
25009
25010         Module quote.
25011         * m4/quote.m4: New file.
25012
25013         Module readutmp.
25014         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
25015
25016         Module sig2str.
25017         * m4/sig2str.m4: New file.
25018
25019         Other.
25020         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
25021         ulonglong.m4.
25022         * m4/intmax_t.m4: New file.
25023         * m4/d-type.m4: Indentation.
25024         * m4/jm-macros.m4: Update.
25025         * m4/prereq.m4 (jm_PREREQ): Update.
25026         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
25027         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
25028         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
25029         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
25030         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
25031         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
25032         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
25033         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
25034         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
25035         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
25036         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
25037         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
25038         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
25039         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
25040         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
25041         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
25042         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
25043         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
25044         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
25045
25046 2002-12-24  Bruno Haible  <bruno@clisp.org>
25047
25048         * MODULES.txt: Update according to m4/ changes.
25049
25050         Module gettext.
25051         * config.rpath: New file, from gettext-0.11.5.
25052
25053         * modules/*: New module descriptions.
25054         * gnulib-tool: New file.
25055         * MODULES.html.sh: New file.
25056
25057 2002-12-21  Karl Berry  <karl@gnu.org>
25058
25059         * doc/fdl.texi: update to version 1.2.
25060
25061 2002-12-19  Karl Berry  <karl@gnu.org>
25062
25063         * config/config.guess: update from prep.
25064
25065 2002-12-18  Bruno Haible  <bruno@clisp.org>
25066
25067         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
25068         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
25069
25070 2002-12-17  Bruno Haible  <bruno@clisp.org>
25071
25072         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
25073         stdlib.h, string.h.
25074
25075 2002-12-17  Bruno Haible  <bruno@clisp.org>
25076
25077         * lib/canon-host.c (strdup): Remove unused declaration.
25078
25079         * lib/fsusage.c: Include full_read.h.
25080         (get_fs_usage): Use full_read instead of safe_read.
25081
25082         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
25083
25084 2002-12-12  Karl Berry  <karl@gnu.org>
25085
25086         * config/config.guess: update from prep.
25087
25088 2002-12-11  Bruno Haible  <bruno@clisp.org>
25089
25090         * m4/setenv.m4: New file, from gettext-0.11.5.
25091
25092 2002-12-11  Bruno Haible  <bruno@clisp.org>
25093
25094         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
25095         not unsetenv().
25096         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
25097         modifications:
25098
25099         2002-12-11  Bruno Haible  <bruno@clisp.org>
25100
25101                 * setenv.c (alloca): Fall back to malloc.
25102                 (freea): New macro.
25103                 (setenv): Use freea() to free memory allocated with alloca().
25104
25105         2002-11-13  Bruno Haible  <bruno@clisp.org>
25106
25107                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
25108                 function declarations.
25109                 * unsetenv.c (unsetenv): Likewise.
25110
25111         2002-03-04  Bruno Haible  <bruno@clisp.org>
25112
25113                 Portability to AIX 4.3.3.
25114                 * unsetenv.c: New file, extracted from setenv.c.
25115                 * setenv.c: Move the unsetenv() function to unsetenv.c.
25116
25117         2001-12-20  Bruno Haible  <bruno@clisp.org>
25118
25119                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
25120                 use malloc instead. For SunOS 4.
25121
25122         2001-12-11  Bruno Haible  <bruno@clisp.org>
25123
25124                 * setenv.c: Declare alloca.
25125                 (compar_fn_t): New typedef.
25126                 (KNOWN_VALUE, STORE_VALUE): Use it.
25127
25128         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
25129         setenv.h.
25130
25131 2002-12-10  Paul Eggert  <eggert@twinsun.com>
25132
25133         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
25134         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
25135         Choose values that are less likely to collide with system fnmatch
25136         options.
25137         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
25138         defined (e.g., a pure POSIX system).
25139         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
25140         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
25141
25142 2002-12-06  Paul Eggert  <eggert@twinsun.com>
25143
25144         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
25145         a pain in practice to deal with generated m4 files.  This change
25146         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
25147
25148         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
25149         and jm-glibc-io.m4, as they are no longer a special case.
25150         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
25151         kludge and the auto-generation stuff.  Check only whether the
25152         functions are declared, not whether they exist, since older hosts
25153         that don't declare the functions can't use the optimization anyway.
25154
25155 2002-12-06  Jim Meyering  <jim@meyering.net>
25156
25157         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
25158
25159         Merge in changes from libc's misc/error.c, in preparation
25160         for the merge of gnulib's changes back into libc.
25161
25162         * lib/error.c (_): Define only if not already defined.
25163         Move definition to follow all #include directives.
25164         Include unlocked-io.h only if !_LIBC.
25165         [_LIBC]: Include <libio/libioP.h>.
25166         [USE_IN_LIBIO]: Include <libio/iolibio.h>
25167         (fflush): Tweak definition to use INTUSE.
25168         (putc): Define.
25169
25170 2002-12-05  Paul Eggert  <eggert@twinsun.com>
25171
25172         * lib/alloca.c [defined emacs]: Include "lisp.h".
25173         (xalloc_die) [defined emacs]: New macro.
25174         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
25175         [! defined emacs]: Include <xalloc.h>.
25176         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
25177         (pointer): Typedef to POINTER_TYPE *.
25178         (malloc): Remove decl; we now always use xmalloc.
25179         (alloca): Use old-style definition, since Emacs needs this.
25180         Check for arithmetic overflow when computing combined size.
25181
25182 2002-12-04  Paul Eggert  <eggert@twinsun.com>
25183
25184         Do not generate unlocked-io.h automatically, since it's easier to
25185         maintain it by hand.
25186
25187         * lib/unlocked-io.h: New file, from GNU diffutils,
25188         but with proper copyright notice and attribution.
25189         * lib/gen-uio: Remove.
25190         * lib/Makefile.am: Add copyright notice.
25191         (libfetish_a_SOURCES): Add unlocked-io.h.
25192         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
25193         (DISTCLEANFILES, io_functions): Remove macros.
25194         (EXTRA_DIST): Remove gen_uio.
25195         (unlocked-io.h): Remove rule.
25196
25197 2002-12-04  Jim Meyering  <jim@meyering.net>
25198
25199         Reflect the fact that stat.c and lstat.c are no longer generated.
25200         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
25201         (DISTCLEANFILES): Likewise.
25202         (EXTRA_DIST): Likewise.
25203         (all_local): Don't depend on stat.c or lstat.c.
25204         (stat.c, lstat.c): Remove rules.
25205         (EXTRA_DIST): Remove xstat.in.
25206
25207         * lib/xstat.in: Remove file.  Contents moved into stat.c.
25208         * lib/stat.c: New file.  Contents mostly from xstat.in.
25209         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
25210         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
25211
25212         * lib/safe-read.c: Rework so that it may serve to define safe_write,
25213         too.
25214         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
25215
25216 2002-12-03  Jim Meyering  <jim@meyering.net>
25217
25218         * lib/safe-read.c, safe-write.c: Change variable names and comments,
25219         but not semantics, to minimize the differences between these two files.
25220         (safe_read): Change comment to mention SAFE_READ_ERROR.
25221
25222         * lib/safe-read.c (IS_EINTR): Define.
25223         (safe_read): Use IS_EINTR in place of in-function cpp directives.
25224
25225 2002-12-02  Jim Meyering  <jim@meyering.net>
25226
25227         * lib/safe-read.c (EINTR): Define.
25228         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
25229         (INT_MAX): Provide fallback.
25230         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
25231
25232         * lib/safe-read.h (SAFE_READ_ERROR): Define.
25233
25234 2002-12-02  Bruno Haible  <bruno@clisp.org>
25235
25236         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
25237         Define, taken from safe-read.c.
25238         (INT_MAX): Provide fallback.
25239         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
25240         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
25241
25242         * lib/safe-read.c (EINTR): Remove definition.
25243         (safe_read): Don't use EINTR if it is absent.
25244
25245 2002-12-01  Jim Meyering  <jim@meyering.net>
25246
25247         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
25248         zero.
25249         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
25250
25251 2002-11-27  Paul Eggert  <eggert@twinsun.com>
25252
25253         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
25254         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
25255         with `if (! (value < limit)) abort ();', for readability.
25256
25257 2002-11-26  Karl Berry  <karl@gnu.org>
25258
25259         * lib/strdup.c: copy from libc again, with jim's ok.
25260         * lib/.cppi-disable: re-add strdup.c
25261
25262 2002-11-25  Karl Berry  <karl@gnu.org>
25263
25264         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
25265         instead of "strtol.c".
25266
25267 2002-11-25  Karl Berry  <karl@gnu.org>
25268
25269         * config/install-sh: update from automake for variable quoting, $0 in
25270         error msgs, etc.
25271
25272         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
25273         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
25274         entry.
25275
25276 2002-11-25  Jim Meyering  <jim@meyering.net>
25277
25278         * lib/mktime.c: Sync from libc, now that it has the latest fix.
25279
25280 2002-11-24  Karl Berry  <karl@gnu.org>
25281
25282         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
25283         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
25284
25285 2002-11-24  Jim Meyering  <jim@meyering.net>
25286
25287         Update from coreutils:
25288
25289         * lib/mktime.c: Merge in changes from libc.
25290
25291         Avoid a link-time failure on some Linux systems.
25292         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
25293         (otherwise).
25294         (__mon_yday): Declare with the STATIC attribute.
25295         (__mktime_internal): Likewise.
25296         Based on a report from Greg Schafer.
25297
25298 2002-11-23  Jim Meyering  <jim@meyering.net>
25299
25300         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
25301         Use `unsigned', not `int', as type of index.
25302
25303         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
25304
25305         * lib/fsusage.c: Remove unneeded parentheses around operands of
25306         `defined'.
25307
25308 2002-11-22  Paul Eggert  <eggert@twinsun.com>
25309
25310         * lib/quotearg.h: Allow multiple inclusion by surrounding with
25311         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
25312         so that we can be included first.
25313         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
25314         * lib/quotearg.c: Include quotearg.h immediately after config.h.
25315         No need to include stddef.h or sys/types.h any more.
25316         Surround local include files with "", not "<>".
25317         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
25318         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
25319         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
25320         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
25321         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
25322         (ISPRINT): Remove; no longer needed now that we assume C89.
25323
25324         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
25325         Preserve errno.
25326
25327         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
25328         quotearg_char): Use SIZE_MAX rather than
25329         (size_t) -1 when we are talking about "infinity".
25330
25331         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
25332
25333 2002-11-22  Paul Eggert  <eggert@twinsun.com>
25334
25335         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
25336         hint that one should use `if (! x) abort ();' rather than `assert
25337         (x);', and anyway it's one less thing to worry about configuring.
25338         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
25339         hash_rehash, hash_insert): Use abort rather than assert.
25340
25341 2002-11-22  Bruno Haible  <bruno@clisp.org>
25342
25343         * lib/safe-read.h: Assume C89. Add comments.
25344         (safe_read): Change return type to size_t.
25345         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
25346         byte counts > SSIZE_MAX correctly.
25347         * lib/safe-write.h: New file.
25348         * lib/safe-write.c: New file.
25349         * lib/full-read.h: New file.
25350         * lib/full-read.c: New file.
25351         * lib/full-write.h: Assume C89. Add comments.
25352         * lib/full-write.c: Include safe-write.h.
25353         (full_write): Rewritten to use safe_write.
25354         Suggested by Jim Meyering and Paul Eggert.
25355
25356 2002-11-21  Jim Meyering  <jim@meyering.net>
25357
25358         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
25359
25360         Merge in changes from the coreutils.
25361
25362         2002-09-25  Paul Eggert  <eggert@twinsun.com>
25363         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
25364         <stdint.h>.
25365         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
25366         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
25367         int.  Work more efficiently if X is the same width as uintmax_t.
25368         Do not compare X to -1, to avoid bogus compiler warning.
25369         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
25370         Don't assume that f_frsize and f_bsize are the same type.
25371
25372         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
25373         warning on FreeBSD.
25374
25375         * lib/makepath.c (make_path): Restore umask *before* creating the final
25376         component.
25377         (make_path): Minor reformatting.
25378
25379         * lib/xmalloc.c: Adjust to work with new autoconf macros,
25380         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
25381         HAVE_MALLOC/HAVE_REALLOC.
25382
25383         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
25384         dummy ones.  At least on GNU/Linux systems, `auto' means something
25385         else.
25386         From Michael Stone.
25387
25388 2002-11-21  Bruno Haible  <bruno@clisp.org>
25389
25390         Remove case insensitive option matching.
25391         * lib/argmatch.h (argcasematch): Remove declaration.
25392         (ARGCASEMATCH): Remove macro.
25393         (__xargmatch_internal): Remove case_sensitive argument.
25394         (XARGMATCH): Update.
25395         (XARGCASEMATCH): Remove macro.
25396         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
25397         case_sensitive argument.
25398         (argcasematch): Remove function.
25399         (__xargmatch_internal): Remove case_sensitive argument.
25400         (main): Use XARGMATCH instead of XARGCASEMATCH.
25401
25402         * lib/xmalloc.c: Change compile-time error message. Add comment about
25403         required autoconf version.
25404
25405 2002-11-20  Paul Eggert  <eggert@twinsun.com>
25406
25407         Merge argmatch cleanups from Bison.  Assume C89.
25408
25409         * lib/argmatch.c: Include config.h here, not in argmatch.h.
25410         Include stdlib.h, for EXIT_FAILURE.
25411         Always include <string.h>, since we assume C89.
25412         (EXIT_FAILURE): Remove pre-C89 bug workaround.
25413         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
25414         Include <stddef.h> instead, since it's all we need for size_t.
25415         (PARAMS): Remove.  All uses removed.
25416         (ARRAY_CARDINALITY): Do not bother to #undef.
25417         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
25418         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
25419         Remove unnecessary parentheses.
25420         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
25421         Insert necessary parentheses.
25422         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
25423         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
25424
25425 2002-11-19  Bruno Haible  <bruno@clisp.org>
25426
25427         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
25428         * lib/mbswidth.h: Include <stddef.h>, for size_t.
25429
25430         * lib/mbswidth.h (PARAMS): Remove macro.
25431         (mbswidth, mbsnwidth): Use ANSI C function declarations.
25432         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
25433
25434         * lib/gcd.h (PARAMS): Remove macro.
25435         (gcd): Use ANSI C function declarations.
25436         * lib/gcd.c (gcd): Likewise.
25437
25438 2002-11-15  Bruno Haible  <bruno@clisp.org>
25439
25440         * lib/strcspn.c: Include <stddef.h>.
25441         (strcspn): Use ANSI C function declaration. Change return type to
25442         size_t. Use NULL.
25443         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
25444         (strpbrk): Use NULL.
25445         * lib/strpbrk.h (PARAMS): Remove macro.
25446         (strpbrk): Use ANSI C function declaration.
25447         * lib/strstr.c: Don't include <sys/types.h>.
25448         * lib/strstr.h (PARAMS): Remove macro.
25449         (strstr): Use ANSI C function declarations.
25450
25451 2002-11-14  Karl Berry  <karl@gnu.org>
25452
25453         * config/mkinstalldirs: `do' on separate line, instead of
25454         `for var; do'.
25455
25456 2002-11-06  Bruno Haible  <bruno@clisp.org>
25457
25458         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
25459         * lib/gcd.c (gcd): Likewise.
25460
25461 2002-11-05  Bruno Haible  <bruno@clisp.org>
25462
25463         * lib/gcd.h: New file, from gettext-0.11.5.
25464         * lib/gcd.c: New file, from gettext-0.11.5.
25465
25466 2002-11-05  Bruno Haible  <bruno@clisp.org>
25467
25468         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25469         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25470         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25471         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25472
25473         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
25474         <libintl.h>.
25475         * lib/makepath.c: Include gettext.h instead of <locale.h> and
25476         <libintl.h>.
25477
25478         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
25479         * lib/human.c: Include gettext.h instead of <libintl.h>.
25480         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
25481         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
25482         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
25483         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
25484         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
25485         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
25486         (textdomain): Remove definition.
25487         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
25488
25489         * lib/long-options.c: Remove include of <libintl.h> and definition of
25490         _.
25491         * lib/same.c: Remove include of <libintl.h> and definition of _.
25492
25493 2002-11-04  Owen Taylor  <otaylor@redhat.com>
25494
25495         * lib/config.charset: A few additions for Solaris.
25496
25497 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
25498
25499         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
25500         * lib/localcharset.c (locale_charset): Declare as extern "C".
25501
25502 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
25503
25504         * lib/config.charset: msdos in uk_UA uses CP1125.
25505
25506 2002-11-04  Bruno Haible  <bruno@clisp.org>
25507
25508         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
25509         * lib/strcase.h: New file, from GNU gettext-0.11.5.
25510         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
25511         * lib/strstr.h: New file, from GNU gettext-0.11.5.
25512         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
25513
25514 2002-11-04  Bruno Haible  <bruno@clisp.org>
25515
25516         * lib/localcharset.c (locale_charset): Don't return an empty string.
25517
25518 2002-11-04  Bruno Haible  <bruno@clisp.org>
25519
25520         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
25521         aliases.
25522
25523 2002-11-04  Bruno Haible  <bruno@clisp.org>
25524
25525         * lib/config.charset: Update for newest glibc. Add canonical names
25526         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
25527
25528 2002-11-04  Bruno Haible  <bruno@clisp.org>
25529
25530         * lib/config.charset: Add support for NetBSD.
25531
25532 2002-11-04  Bruno Haible  <bruno@clisp.org>
25533
25534         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
25535
25536 2002-11-01  Bruno Haible  <bruno@clisp.org>
25537
25538         * configure.in: Add AC_CONFIG_AUX_DIR call.
25539         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
25540         test/Makefile.
25541         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
25542
25543 2002-09-28  Karl Berry  <karl@gnu.org>
25544
25545         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
25546         installed automake until the next release, since changes have been
25547         made.
25548
25549 2002-09-25  Karl Berry  <karl@gnu.org>
25550
25551         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
25552         * lib/getopt*: copy from libc/posix.
25553         * lib/gettext.h: copy from gettext.
25554         * lib/.cppi-disable: add strdup.c, gettext.h.
25555
25556 2002-09-25  Karl Berry  <karl@gnu.org>
25557
25558         * config/srclist.txt: enable gettext.h check.
25559         * config/config.{guess,sub}: update from prep.
25560         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
25561                 from automake 1.6.3.
25562         See srclist*.
25563
25564 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
25565
25566         * regex.c (PATFETCH): Remove the translating fetch.
25567         (PATFETCH_RAW): Rename to PATFETCH.
25568         (set_image_of_range): New fun.
25569         (SET_RANGE_TABLE_WORK_AREA): Use it.
25570         (regex_compile): Don't translate the pattern chars so eagerly.
25571         Only do it when inserting an `exactn' bytecode or when handling
25572         a char-range.
25573         (mutually_exclusive_p): Avoid empty statement.
25574
25575 2002-07-06  Jim Meyering  <meyering@lucent.com>
25576
25577         * m4/README: Don't mention Makefile.am.in.
25578         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
25579
25580 2002-07-01  Jim Meyering  <meyering@lucent.com>
25581
25582         * lib/c-stack.c: Include sys/time.h.
25583         From Volker Borchert.
25584
25585 2002-06-26  Paul Eggert  <eggert@twinsun.com>
25586
25587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
25588
25589 2002-06-26  Paul Eggert  <eggert@twinsun.com>
25590
25591         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
25592         New macro.  Use it uniformly instead of
25593         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
25594         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
25595         reported by Vin Shelton.
25596
25597 2002-06-22  Paul Eggert  <eggert@twinsun.com>
25598
25599         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
25600         Do not assume SA_SIGINFO behavior.
25601         Bug reported by Jim Meyering on NetBSD 1.5.2.
25602
25603 2002-06-22  Jim Meyering  <meyering@lucent.com>
25604
25605         * m4/c-stack.m4: New file, from diffutils-2.8.2.
25606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
25607
25608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
25609         now that configure.ac uses AC_GNU_SOURCE.
25610         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
25611         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
25612
25613         Update to latest tools.  Suggestions from Paul Eggert.
25614         * m4/stdbool.m4: New file, from diffutils-2.8.2.
25615         * m4/gnu-source.m4: Update from diffutils-2.8.2.
25616         * m4/fnmatch.m4: Likewise.
25617         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
25618         to AC_HEADER_STDBOOL
25619
25620 2002-06-22  Jim Meyering  <meyering@lucent.com>
25621
25622         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
25623         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
25624
25625 2002-06-22  Jim Meyering  <meyering@lucent.com>
25626
25627         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
25628
25629         * lib/exitfail.c, exitfail.h: Likewise.
25630         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
25631
25632         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
25633         of fnmatch.h.
25634         (EXTRA_DIST): Add fnmatch_loop.c.
25635         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
25636
25637         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
25638         * lib/fnmatch.c: Update from diffutils-2.8.2.
25639         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
25640         * lib/fnmatch.h: Remove file.
25641
25642 2002-06-21  Jim Meyering  <meyering@lucent.com>
25643
25644         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
25645         * m4/mbrtowc.m4: Likewise.
25646
25647         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
25648         * m4/mbswidth.m4: Reflect name change:
25649         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
25650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
25651
25652         * m4/lib-link.m4: Update from gettext-0.11.2.
25653         * m4/gettext.m4: Likewise.
25654
25655         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
25656         From Alfred M. Szmidt.
25657
25658 2002-06-18  Paul Eggert  <eggert@twinsun.com>
25659
25660         * lib/file-type.h: Report an error if neither S_ISREG nor
25661         S_IFREG is defined, instead of using a test specific to glibc
25662         2.2.  This should be safe, since POSIX requires S_ISREG and
25663         Unix Version 7 had S_IFREG.  We don't need to check for
25664         <sys/types.h> since we don't use any symbols that it defines.
25665
25666 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
25667
25668         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
25669         $@-t, so that each temporary file name is unique and valid in the first
25670         8 characters, for operation under DOS.
25671
25672 2002-06-15  Paul Eggert  <eggert@twinsun.com>
25673
25674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
25675
25676 2002-06-15  Jim Meyering  <meyering@lucent.com>
25677
25678         Work even with DJGPP 2.03, which lacks support for symlinks.
25679         From Richard Dawe.
25680         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
25681         is defined.
25682         * lib/lchown.c (S_ISLNK): Likewise.
25683
25684 2002-06-15  Jim Meyering  <meyering@lucent.com>
25685
25686         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
25687         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
25688         have been included before this file.
25689
25690 2002-06-14  Jim Meyering  <meyering@lucent.com>
25691
25692         * lib/file-type.h: Use the version from diffutils-2.8.2.
25693         * lib/file-type.c: Likewise.
25694
25695 2002-06-07  Jim Meyering  <meyering@lucent.com>
25696
25697         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
25698         They're needed at least for NetBSD 1.5.2.
25699         ($statxfs_includes): Include those same headers.
25700         ($statxfs_includes): Include sys/vfs.h if available.
25701         ($statxfs_includes): Likewise for sys/statvfs.h.
25702         Check for the following members in both structs statfs and statvfs:
25703         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
25704
25705 2002-06-01  Jim Meyering  <meyering@lucent.com>
25706
25707         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
25708         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
25709
25710 2002-05-28  Jim Meyering  <meyering@lucent.com>
25711
25712         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
25713         Reported by Volker Borchert.
25714
25715 2002-05-27  Jim Meyering  <meyering@lucent.com>
25716
25717         Fix a problem seen only on nonconforming systems whereby ls.c's
25718         use of localtime, and then of gettimeofday would cause trouble:
25719         the localtime call used to initialize rpl_gettimeofday's save
25720         mechanism would clobber ls's current local time information so
25721         that in any long listing the first file would always be listed
25722         with date 1970-01-01.  Analysis by Volker Borchert.
25723
25724         * lib/gettimeofday.c (localtime): Undefine.
25725         (rpl_localtime): New function.
25726
25727 2002-05-27  Jim Meyering  <meyering@lucent.com>
25728
25729         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
25730         localtime.
25731
25732         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
25733         use the replacement function; it wouldn't resolve at link time.
25734         Reported by Volker Borchert.
25735
25736 2002-05-22  Jim Meyering  <meyering@lucent.com>
25737
25738         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
25739         file-type.h.
25740         * lib/file-type.h: New file.
25741         * lib/file-type.c (file_type): New file/function.  Extracted from
25742         diffutils.
25743
25744 2002-04-30  Jim Meyering  <meyering@lucent.com>
25745
25746         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
25747
25748 2002-04-29  Paul Eggert  <eggert@twinsun.com>
25749
25750         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
25751
25752 2002-04-29  Paul Eggert  <eggert@twinsun.com>
25753
25754         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
25755         Do not check for alloca.h (no longer used) or stdbool.h (was never
25756         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
25757
25758 2002-04-29  Paul Eggert  <eggert@twinsun.com>
25759
25760         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
25761
25762 2002-04-29  Jim Meyering  <meyering@lucent.com>
25763
25764         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
25765         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
25766         Use AC_FUNC_STRNLEN here instead.
25767
25768         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
25769         With autoconf-2.53a, it's part of AC_PROG_CC.
25770
25771 2002-04-28  Paul Eggert  <eggert@twinsun.com>
25772
25773         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
25774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
25775
25776 2002-04-28  Paul Eggert  <eggert@twinsun.com>
25777
25778         * lib/sig2str.h, lib/sig2str.c: New files.
25779         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
25780
25781 2002-04-28  Paul Eggert  <eggert@twinsun.com>
25782
25783         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
25784         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
25785         of 127, since 64 is the largest conceivable number for ancient
25786         nonstandard hosts.
25787         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
25788
25789 2002-04-28  Jim Meyering  <meyering@lucent.com>
25790
25791         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
25792
25793 2002-04-24  Jim Meyering  <meyering@lucent.com>
25794
25795         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
25796         (jm_PREREQ): Use it.
25797
25798         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
25799         mach/mach.h fcntl.h.
25800         Check for this function: setlocale.
25801
25802 2002-04-24  Jim Meyering  <meyering@lucent.com>
25803
25804         * lib/gettext.h: New file, from Gettext.
25805         * lib/Makefile.am (INCLUDES): Remove -I../intl.
25806         (libfetish_a_SOURCES): Add gettext.h.
25807
25808 2002-04-16  Jim Meyering  <meyering@lucent.com>
25809
25810         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
25811         ut_pid, ut_id, ut_exit.
25812
25813 2002-04-16  Jim Meyering  <meyering@lucent.com>
25814
25815         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
25816         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
25817         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
25818
25819 2002-04-12  Jim Meyering  <meyering@lucent.com>
25820
25821         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
25822         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
25823         existence of the getmntinfo function.  Needed for Darwin 5.3.
25824
25825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
25826         This is necessary at least on Darwin 5.3.
25827
25828         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
25829         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
25830         strnlen.o in the library, and that makes some versions of ranlib
25831         object.
25832
25833 2002-04-12  Jim Meyering  <meyering@lucent.com>
25834
25835         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
25836
25837 2002-04-09  Jim Meyering  <meyering@lucent.com>
25838
25839         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
25840         to be more precise.  Rather than saying we're checking whether the
25841         function `works', say what we're testing.
25842         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
25843         Reported by Bruno Haible.
25844
25845 2002-03-10  Jim Meyering  <meyering@lucent.com>
25846
25847         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
25848         Suggestion from Santiago Vila.
25849
25850 2002-03-08  Jim Meyering  <meyering@lucent.com>
25851
25852         * lib/rename.c: Mention that this wrapper is needed also on
25853         mips-dec-ultrix4.4 systems.
25854
25855 2002-03-02  Jim Meyering  <meyering@lucent.com>
25856
25857         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
25858         not HAVE_CLOCK_SETTIME.
25859
25860 2002-02-27  Paul Eggert  <eggert@twinsun.com>
25861
25862         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
25863         Check for clock_settime.
25864
25865 2002-02-27  Paul Eggert  <eggert@twinsun.com>
25866
25867         * lib/nanosleep.h: Rename to....
25868         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
25869
25870         * lib/gettime.c: New file.
25871         * lib/settime.c: New file.
25872         * lib/stime.c: Remove.
25873
25874         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
25875         timespec.h.  Remove nanosleep.h.
25876
25877 2002-02-25  Paul Eggert  <eggert@twinsun.com>
25878
25879         * m4/acl.m4: New file.
25880         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
25881         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
25882
25883 2002-02-25  Paul Eggert  <eggert@twinsun.com>
25884
25885         * lib/acl.c, lib/acl.h: New files.
25886         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
25887
25888 2002-02-24  Jim Meyering  <meyering@lucent.com>
25889
25890         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
25891         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
25892         cause trouble.  Reported by Nelson Beebe.
25893
25894 2002-02-23  Paul Eggert  <eggert@twinsun.com>
25895
25896         * lib/path-concat.c (xpath_concat): Reorder code to pacify
25897         compilers that don't know that xalloc_die never returns.
25898
25899 2002-02-20  Jim Meyering  <meyering@lucent.com>
25900
25901         * lib/getdate.c: Regenerate using bison-1.33.
25902
25903 2002-02-17  Jim Meyering  <meyering@lucent.com>
25904
25905         * config/config.guess (main): Don't use `head -1'; it's no longer
25906         portable. Use `sed 1q' instead.
25907
25908 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
25909
25910         * m4/codeset.m4: Upgrade to gettext-0.11.
25911         * m4/gettext.m4: Upgrade to gettext-0.11.
25912         * m4/glibc21.m4: Upgrade to gettext-0.11.
25913         * m4/iconv.m4: Upgrade to gettext-0.11.
25914         * m4/isc-posix.m4: Upgrade to gettext-0.11.
25915         * m4/lcmessage.m4: Upgrade to gettext-0.11.
25916         * m4/lib-ld.m4: New file, from gettext-0.11.
25917         * m4/lib-link.m4: New file, from gettext-0.11.
25918         * m4/lib-prefix.m4: New file, from gettext-0.11.
25919         * m4/progtest.m4: Upgrade to gettext-0.11.
25920
25921 2002-02-15  Paul Eggert  <eggert@twinsun.com>
25922
25923         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
25924         (jm_PREREQ): Use it.
25925
25926 2002-02-15  Paul Eggert  <eggert@twinsun.com>
25927
25928         * lib/posixver.c, lib/posixver.h: New files.
25929         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
25930
25931 2002-02-02  Paul Eggert  <eggert@twinsun.com>
25932             Bruno Haible  <bruno@clisp.org>
25933
25934         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
25935         (fwrite_success_callback): New declaration.
25936         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
25937         print_unicode_char. Call failure callback instead of error.
25938         (fwrite_success_callback): New function.
25939         (exit_failure_callback): New function.
25940         (fallback_failure_callback): New function.
25941         (print_unicode_char): Call unicode_to_mb.
25942
25943 2002-01-26  Jim Meyering  <meyering@lucent.com>
25944
25945         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
25946         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
25947
25948 2002-01-26  Jim Meyering  <meyering@lucent.com>
25949
25950         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
25951
25952 2002-01-22  Paul Eggert  <eggert@twinsun.com>
25953
25954         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
25955
25956 2002-01-22  Jim Meyering  <meyering@lucent.com>
25957
25958         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
25959         Otherwise, some versions of automake would omit the rule that makes
25960         Makefile from Makefile.in.
25961
25962 2002-01-21  Paul Eggert  <eggert@twinsun.com>
25963
25964         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
25965         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
25966         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
25967         (memcoll): Set errno to zero if there is no error.
25968
25969         * lib/quotearg.c (quotearg_buffer_restyled):
25970         Fix bug with quoting buffers containing NUL when backslashing escapes.
25971         This bug was exposed by the other changes in this patch.
25972         (quotearg_n_options): New arg ARGSIZE.
25973         All callers changed.
25974         (quoting_options_from_style): New function.
25975         (quotearg_n_style): Use it.
25976         (quotearg_n_style_mem): New function.
25977
25978         * lib/quotearg.h (quotearg_n_style_mem): New function.
25979
25980 2002-01-19  Jim Meyering  <meyering@lucent.com>
25981
25982         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
25983         Remove useless quotes: DF_PROG="df".
25984         * m4/strnlen.m4: New file.
25985
25986 2002-01-16  Paul Eggert  <eggert@twinsun.com>
25987
25988         * lib/backupfile.c (ISDIGIT): Comment fix.
25989         * lib/getdate.y (ISDIGIT): Likewise.
25990         * lib/posixtm.c (ISDIGIT, year): Likewise.
25991         * lib/strverscmp.c (ISDIGIT): Likewise.
25992         * lib/userspec.c (ISDIGIT): Likewise.
25993
25994 2002-01-16  Jim Meyering  <meyering@lucent.com>
25995
25996         * lib/getdate.y: Add three semicolons, each just before a closing
25997         brace. Bison (as of version 1.31) no longer papers over that mistake.
25998
25999 2002-01-05  Jim Meyering  <meyering@lucent.com>
26000
26001         * lib/version-etc.c (version_etc_copyright): Update copyright year.
26002
26003 2001-12-19  Paul Eggert  <eggert@twinsun.com>
26004
26005         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
26006         not silently exit merely because the output buffer happens to
26007         have nothing pending.
26008
26009 2001-12-18  Paul Eggert  <eggert@twinsun.com>
26010
26011         See the big note in ../ChangeLog.
26012         * lib/human.c (suffixes): Prefer K to k for 1024.
26013         (generate_suffix_backwards): New function.
26014         (human_readable_inexact): Use it.
26015         * lib/xstrtol.c (__xstrtol): If there is no number but there
26016         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
26017         Accept 'K' as well as 'k'.
26018
26019 2001-12-15  Jim Meyering  <meyering@lucent.com>
26020
26021         * lib/regex.h (__restrict_arr): Update from libc.
26022
26023         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
26024         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
26025         (STREQ): Define.
26026
26027 2001-12-14  Jim Meyering  <meyering@lucent.com>
26028
26029         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
26030         Suggestion from Bruno Haible.
26031
26032 2001-12-10  Jim Meyering  <meyering@lucent.com>
26033
26034         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
26035         xrealloc, Instead, include "xalloc.h".
26036         (initbuffer): Don't cast xmalloc return value to char*.
26037         (readline): Reword comment.
26038         Don't cast xrealloc return value to char*
26039         Return NULL, not 0.
26040
26041 2001-12-09  Jim Meyering  <meyering@lucent.com>
26042
26043         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
26044         about `signed and unsigned type in conditional expression'.
26045         * lib/posixtm.c (posix_time_parse): Likewise.
26046
26047         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
26048
26049         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
26050         to avoid a pedantic warning.
26051
26052         * lib/getstr.c: Don't include assert.h.
26053         (getstr): Remove warning-evoking assertions.
26054         Return -1 if offset parameter is out of bounds.
26055         Change the type of a local from int to size_t.
26056
26057         * lib/strftime.c (my_strftime_localtime_r): Include this function
26058         definition in the `#if ! HAVE_TM_GMTOFF' block.
26059
26060         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
26061         Include xalloc.h instead.
26062
26063 2001-12-02  Jim Meyering  <meyering@lucent.com>
26064
26065         * lib/tempname.c: Don't declare getenv, thus reverting the change of
26066         2001-11-18.  It's no longer necessary, now that stdlib.h is always
26067         included.
26068
26069         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
26070         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
26071
26072 2001-11-30  Akim Demaille  <akim@epita.fr>
26073
26074         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
26075         before being defined.
26076
26077 2001-11-27  Paul Eggert  <eggert@twinsun.com>
26078
26079         * lib/quotearg.h (quotearg_n, quotearg_n_style):
26080         First arg is int, not unsigned.
26081         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
26082         (SIZE_MAX, UINT_MAX): New macros.
26083         (quotearg_n_options): Abort if N is negative.
26084         Avoid overflow check on hosts where size_t is 64 bits and int
26085         is 32 bits, as overflow is impossible there.
26086         Fix off-by-one typo that caused unnecessary reallocation.
26087
26088 2001-11-27  Jim Meyering  <meyering@lucent.com>
26089
26090         * lib/tempname.c: Merge with version from libc.
26091         * lib/regex.c: Likewise.
26092
26093         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
26094         systems for which STDC_HEADERS is 0, it was not included, resulting in
26095         a warning about an integer-to-pointer conversion problem with getenv.
26096         Reported by Volker Borchert.
26097
26098 2001-11-26  Jim Meyering  <meyering@lucent.com>
26099
26100         * lib/gtod.h: Remove file.
26101         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
26102         * lib/gettimeofday.c: Don't include gtod.h.
26103         (GTOD_init): Remove function.
26104         (rpl_gettimeofday): Do its job here instead, rather than aborting.
26105         Suggestion from Volker Borchert.
26106
26107 2001-11-23  Jim Meyering  <meyering@lucent.com>
26108
26109         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
26110         it.
26111         * lib/hash.c (struct hash_table): Define it here instead.
26112
26113 2001-11-22  Jim Meyering  <meyering@lucent.com>
26114
26115         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
26116
26117 2001-11-20  Jim Meyering  <meyering@lucent.com>
26118
26119         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
26120         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
26121
26122 2001-11-19  Jim Meyering  <meyering@lucent.com>
26123
26124         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
26125         directory.  Use "conftestXXXXXX" as the template.
26126         Suggestion from Paul Eggert.
26127
26128         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
26129         immediately, so the test doesn't mistakenly hit the max-open-files
26130         limit.
26131
26132 2001-11-18  Paul Eggert  <eggert@twinsun.com>
26133
26134         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
26135         (TEMPORARIES): New macro.
26136         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
26137         removes an artificial limitation (e.g. HP-UX 10.20, where
26138         TMP_MAX is 17576).
26139
26140 2001-11-18  Jim Meyering  <meyering@lucent.com>
26141
26142         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
26143
26144 2001-11-18  Jim Meyering  <meyering@lucent.com>
26145
26146         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
26147         on SunOS 4.
26148
26149         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
26150         files will be created before anything else.
26151
26152 2001-11-17  Paul Eggert  <eggert@twinsun.com>
26153
26154         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
26155         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
26156
26157 2001-11-17  Jim Meyering  <meyering@lucent.com>
26158
26159         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
26160         Prompted by a report from Bob Proulx.
26161
26162         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
26163         Instead, require UTILS_FUNC_MKSTEMP.
26164
26165 2001-11-17  Jim Meyering  <meyering@lucent.com>
26166
26167         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
26168         Now, that's done as part of AC_FUNC_STRTOD.
26169
26170 2001-11-17  Jim Meyering  <meyering@lucent.com>
26171
26172         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
26173         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
26174         rather than group writable.  Patch by Juan F. Codagnone.
26175
26176         * lib/readtokens.c: Remove explicit declarations of xmalloc and
26177         xrealloc, Instead, include "xalloc.h".
26178
26179         * lib/mountlist.c: Include unlocked-io.h after all system headers.
26180         Remove explicit declarations of xmalloc, xrealloc,
26181         and xstrdup.  Instead, include "xalloc.h".
26182
26183         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
26184         unlocked-io.h.
26185         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
26186         Likewise.
26187         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
26188
26189         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
26190         Reported by Padraig Brady.
26191
26192         * lib/mkstemp.c: #undef mkstemp.
26193         Include config.h.
26194         (rpl_mkstemp): Rename from mkstemp.
26195         Protoize.
26196
26197 2001-11-16  Jim Meyering  <meyering@lucent.com>
26198
26199         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
26200         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
26201         determine the amount of total physical memory, use pstat_getstatic.
26202         HPUX-11 doesn't define _SC_PHYS_PAGES.
26203         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
26204         If sysconf couldn't be used to determine the amount of available
26205         physical memory, use both pstat_getstatic and pstat_getdynamic.
26206         Based on a patch from Bob Proulx.
26207
26208 2001-11-10  Jim Meyering  <meyering@lucent.com>
26209
26210         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
26211         (jm_PREREQ): Use it.
26212
26213 2001-11-09  Jim Meyering  <meyering@lucent.com>
26214
26215         * m4/jm-macros.m4: Require autoconf-2.52f.
26216         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
26217         Use these AC_-prefixed names, not the AM_-prefixed ones.
26218
26219         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
26220
26221 2001-11-05  Jim Meyering  <meyering@lucent.com>
26222
26223         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
26224
26225 2001-11-04  Jim Meyering  <meyering@lucent.com>
26226
26227         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
26228         $DEFS.
26229
26230 2001-11-03  Jim Meyering  <meyering@lucent.com>
26231
26232         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
26233         of AC_DEFUN.
26234
26235         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
26236         know the name of the variable in the macro definition.
26237
26238 2001-11-03  Jim Meyering  <meyering@lucent.com>
26239
26240         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
26241         in argmatch_to_argument call.
26242
26243         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
26244         argument.
26245
26246         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
26247         e.g., a fault due to an attempt to free a NULL pointer.
26248
26249 2001-11-01  Jim Meyering  <meyering@lucent.com>
26250
26251         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
26252         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
26253
26254 2001-11-01  Jim Meyering  <meyering@lucent.com>
26255
26256         * lib/dirfd.c, lib/dirfd.h: New files.
26257         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
26258
26259         * lib/hash.c (hash_print) [TESTING]: Clean up.
26260
26261 2001-10-22  Paul Eggert  <eggert@twinsun.com>
26262
26263         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
26264         to avoid a warning if -Wall.
26265
26266 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
26267
26268         * README: New file
26269         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
26270         (per RMS's instructions, this is now the canonical source)
26271         * lgpl/, gpl/: New directories.
26272
26273 2001-10-21  Paul Eggert  <eggert@twinsun.com>
26274
26275         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
26276
26277 2001-10-21  Jim Meyering  <meyering@lucent.com>
26278
26279         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
26280         this code would end up calling gettext even in packages built
26281         with --disable-nls.
26282         * lib/getopt.c (_): Likewise.
26283         * lib/regex.c (_): Likewise.
26284
26285 2001-10-20  Paul Eggert  <eggert@twinsun.com>
26286
26287         * m4/error.m4 (jm_PREREQ_ERROR):
26288         Do not invoke AC_CHECK_FUNCS with strerror_r, as
26289         AC_FUNC_STRERROR_R does that.
26290         Check for strerror declaration.
26291
26292         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
26293         are supposed to have them these days.
26294         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
26295         Merge changes from latest Autoconf CVS.
26296         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
26297         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
26298         POSIX decided to standardize on the int flavor of strerror_r.
26299
26300 2001-10-20  Paul Eggert  <eggert@twinsun.com>
26301
26302         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
26303         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
26304         Use strerror_r that is only a macro, even if it is not a function.
26305         (strerror): Check for HAVE_DECL_STRERROR before declaring.
26306         (private_strerror): Use prototypes, not old-style function definition.
26307         (print_errno_message): New function.
26308         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
26309         char*-flavored one.
26310         (error_tail, error, error_at_line): Use it.
26311
26312 2001-10-11  Jim Meyering  <meyering@lucent.com>
26313
26314         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
26315         and quote_n (1, ... to avoid clobbering a buffer.
26316
26317 2001-10-05  Jim Meyering  <meyering@lucent.com>
26318
26319         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
26320         hash-pjw.h.
26321         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
26322         * lib/hash-pjw.h: New file.
26323
26324 2001-09-30  Jim Meyering  <meyering@lucent.com>
26325
26326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
26327         `struct fsstat' has the `f_fstypename' member.
26328         Use that to define FS_TYPE, which is now used to make
26329         the getfsstat link test tighter.
26330
26331 2001-09-30  Jim Meyering  <meyering@lucent.com>
26332
26333         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
26334         Include <sys/ucred.h>, for Apple Darwin.
26335         Include sys/mount.h and sys/fs_types.h only if available.
26336         (FS_TYPE): Define.
26337         (read_filesystem_list): Use FS_TYPE.
26338
26339 2001-09-29  Paul Eggert  <eggert@twinsun.com>
26340
26341         * lib/exclude.c (excluded_filename): 0 -> false, since it's
26342         a boolean context.
26343
26344 2001-09-29  Jim Meyering  <meyering@lucent.com>
26345
26346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
26347         [one-argument getmntent function]): Include stdio.h before mntent.h.
26348         SunOS 4.1.x needs it for the declaration of `FILE'.
26349         Patch by Volker Borchert.
26350
26351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
26352         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
26353         sys/fs_types.h, and make the link-test for getfsstat guard #include
26354         directives with appropriate #if HAVE_*_H tests so that we can
26355         detect getfsstat on Apple Darwin1.3.7 systems.
26356         Reported by Nelson Beebe.
26357         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
26358
26359 2001-09-28  Paul Eggert  <eggert@twinsun.com>
26360
26361         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
26362         #defines strtoimax.  Also treat the other strto* functions
26363         like strtoimax.
26364
26365         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
26366         Check for strtoul and strtoumax,
26367         as those declarations are made even in the signed case.
26368         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
26369         Likewise, for strtol and strtoimax.
26370
26371 2001-09-28  Paul Eggert  <eggert@twinsun.com>
26372
26373         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
26374         #defines strtoimax.  Also treat the other strto* functions
26375         like strtoimax.
26376
26377         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
26378         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
26379         (strtoimax, strtoumax): Do not declare if already defined as a macro.
26380
26381 2001-09-26  Jim Meyering  <meyering@lucent.com>
26382
26383         Most macros in unlocked-io.h had the wrong number of arguments.
26384         * lib/gen-uio: New script.
26385         (USE_UNLOCKED_IO): Define to 1 if not already defined.
26386         * lib/unlocked-io.hin: Remove file.
26387         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
26388         rather than trying to embed it here.
26389         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
26390         Reported by Padraig Brady.
26391
26392 2001-09-25  Volker Borchert  <bt@teknon.de>
26393
26394         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
26395         `result'.
26396
26397 2001-09-24  Jim Meyering  <meyering@lucent.com>
26398
26399         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
26400
26401 2001-09-23  Jim Meyering  <meyering@lucent.com>
26402
26403         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
26404         instead of the mere test for existence of mntent.h.  The latter
26405         would get a false-positive on AIX 3.4 systems.
26406         In the outer getmntent if-block, don't die if neither of the getmntent
26407         tests succeeds.  Instead, just fall through and continue with the
26408         remaining tests.
26409
26410 2001-09-23  Jim Meyering  <meyering@lucent.com>
26411
26412         * lib/mountlist.c: Remove useless parentheses in #if directives.
26413         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
26414         the deprecated MOUNTED symbol is no longer defined in mntent.h.
26415
26416 2001-09-22  Jim Meyering  <meyering@lucent.com>
26417
26418         * m4/gettext.m4: New file.  From gettext.
26419         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
26420         * m4/progtest.m4: Likewise
26421         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
26422         * m4/glibc21.m4: Likewise.
26423
26424         * m4/libintl.m4: Remove.  No longer used.
26425
26426 2001-09-22  Jim Meyering  <meyering@lucent.com>
26427
26428         * lib/localcharset.c: Update from latest gettext.
26429         * lib/config.charset: Likewise.
26430
26431 2001-09-20  Jim Meyering  <meyering@lucent.com>
26432
26433         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
26434         strtoimax.
26435         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
26436         strtoumax.
26437
26438 2001-09-20  Jim Meyering  <meyering@lucent.com>
26439
26440         * lib/xstrtol.c (strtoimax): Guard declaration with
26441         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
26442         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
26443         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
26444         (strtoumax): Likewise, for completeness (it wasn't necessary).
26445
26446 2001-09-17  Paul Eggert  <eggert@twinsun.com>
26447
26448         * lib/strtoimax.c (HAVE_LONG_LONG):
26449         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
26450         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
26451         to work around bug in IBM C compiler.
26452
26453 2001-09-17  Jim Meyering  <meyering@lucent.com>
26454
26455         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
26456         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
26457         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
26458         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
26459         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
26460         whenever the right hand side need not be expanded by the shell.
26461
26462 2001-09-16  Paul Eggert  <eggert@twinsun.com>
26463
26464         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
26465         library.  It's not correct, as some older glibcs are buggy.
26466         fnmatch wasn't fixed until glibc 2.2.
26467
26468         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
26469         special shell magic here.
26470
26471 2001-09-16  Jim Meyering  <meyering@lucent.com>
26472
26473         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
26474         * m4/jm-macros.m4: Require it.
26475
26476 2001-09-16  Jim Meyering  <meyering@lucent.com>
26477
26478         * lib/mkdir.c: New file.
26479
26480 2001-09-15  Jim Meyering  <meyering@lucent.com>
26481
26482         * m4/jm-macros.m4: Check for help2man.
26483
26484 2001-09-11  Jim Meyering  <meyering@lucent.com>
26485
26486         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
26487         The body, by Paul Eggert, was moved here from configure.in.
26488         * m4/jm-macros.m4: Require UTILS_HOST_OS.
26489
26490 2001-09-04  Paul Eggert  <eggert@twinsun.com>
26491
26492         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
26493         (jm_PREREQ): Use it.
26494
26495 2001-09-04  Paul Eggert  <eggert@twinsun.com>
26496
26497         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
26498         Use ssize_t, not int, to store result of readlink.
26499         Check for ssize_t overflow as well as size_t overflow,
26500         as POSIX says the result of readlink is implementation-defined
26501         when ssize_t overflows.
26502         Remove unnecessary cast to char*.
26503         Use free+malloc instead of realloc, as the storage doesn't need
26504         to be preserved and it's clearer and can be more efficient that way.
26505         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
26506         * lib/xreadlink.h (xreadlink): Update prototype.
26507
26508 2001-09-04  Paul Eggert  <eggert@twinsun.com>
26509
26510         * lib/xgetcwd.c: Revert some of the previous change; intead,
26511         fix the HAVE_GETCWD_NULL code to behave more like the
26512         !HAVE_GETCWD_NULL code used to.
26513
26514         Include "xalloc.h".
26515         (xgetcwd): Do not return NULL when memory is exhausted; instead,
26516         invoke xalloc_die.
26517
26518 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26519
26520         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
26521         sys/param.h, as pathmax.h includes them.
26522
26523 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26524
26525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
26526         (jm_PREREQ_XGETCWD): New macro.
26527
26528         * m4/getcwd.m4: New file.
26529
26530 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26531
26532         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
26533         like the HAVE_GETCWD_NULL code.
26534         Include pathmax.h if not HAVE_GETCWD.
26535         Do not include xalloc.h.
26536         (INITIAL_BUFFER_SIZE): New symbol.
26537         Do not use xmalloc / xrealloc, since the caller is responsible for
26538         handling errors.  Preserve errno around `free' during failure.
26539         Do not overrun buffer when using getwd.
26540
26541 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26542
26543         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
26544         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
26545         getcwd (NULL, 0).
26546
26547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26548
26549         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
26550         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
26551         spotted by Jim Meyering.
26552
26553 2001-09-03  Jim Meyering  <meyering@lucent.com>
26554
26555         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
26556         failure.
26557
26558 2001-09-02  Jim Meyering  <meyering@lucent.com>
26559
26560         * lib/error.c: Update from GNU libc.
26561
26562 2001-09-01  Jim Meyering  <meyering@lucent.com>
26563
26564         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
26565         Used by df.
26566
26567 2001-09-01  Jim Meyering  <meyering@lucent.com>
26568
26569         * lib/xreadlink.c: New file.
26570         * lib/xreadlink.h: New file.
26571         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
26572         xreadlink.h.
26573
26574         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
26575         doesn't conflict with sparc Solaris 7's definition in
26576         /usr/include/sys/int_types.h.
26577
26578         * lib/exclude.c: Use `""', not `<>' to #include non-system header
26579         files.
26580         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
26581         and strncasecmp as r-values.  Unixware didn't have declarations.
26582
26583 2001-08-31  Paul Eggert  <eggert@twinsun.com>
26584
26585         * lib/xstrtol.h: Add copyright notice.
26586         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
26587         LONGINT_INVALID_SUFFIX_CHAR.
26588
26589 2001-08-31  Paul Eggert  <eggert@twinsun.com>
26590
26591         * lib/xstrtol.c (strtoimax): New decl.
26592
26593 2001-08-31  Paul Eggert  <eggert@twinsun.com>
26594
26595         * lib/xgetcwd.c: Don't include pathmax.h.
26596         Include stdlib.h and unistd.h if available.
26597         Include xalloc.h.
26598         (xmalloc, xstrdup, free): Remove decls.
26599         (xgetcwd): Don't assume sizes fit in unsigned.
26600         Check for overflow when computing sizes.
26601         Simplify reallocation code.
26602
26603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
26604
26605         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
26606         a directory's st_size can have an arbitrary value, so the old
26607         usage could waste an arbitrary amount of memory.  All uses
26608         changed.
26609         * lib/savedir.h: Update prototype.
26610
26611 2001-08-31  Paul Eggert  <eggert@twinsun.com>
26612
26613         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
26614
26615         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
26616         old strtoimax.c.
26617
26618         Also, make the following further changes to make this file's
26619         configuration more similar to that of strtol.c:
26620         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
26621         (strtoumax, uintmax_t, strtoull, strtol): Remove.
26622         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
26623         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
26624         changed to signed values.
26625
26626         And make the following changes as well:
26627         Fix copyright notice, as 1999 was missing.
26628         (verify): New macro.
26629         (strtoimax): Check sizes at compile-time, not run-time.
26630         Prefer strtol to strtoll if both work.
26631         (main): Remove; it was not that useful and was a pain to maintain.
26632
26633         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
26634
26635 2001-08-31  Jim Meyering  <meyering@lucent.com>
26636
26637         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
26638         Use an initial, malloc'd, buffer of length 128 rather than
26639         a statically allocated one of length 1024.
26640
26641 2001-08-30  Paul Eggert  <eggert@twinsun.com>
26642
26643         Simplify code, partly by assuming autoconf 2.52 semantics.
26644
26645         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
26646
26647         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
26648         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
26649         All uses removed.
26650         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
26651         Move AC_REQUIRE to next-to-top level, to avoid confusion.
26652         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
26653         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
26654         jm_AC_HEADER_INTTYPES_H.
26655         * m4/jm-macros.m4 (jm_MACROS): Likewise.
26656
26657         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
26658
26659         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
26660         Quote first arg of AC_DEFUN.
26661         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
26662         since they are needed to parse the include file even if we need
26663         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
26664         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
26665         but with opposite signedness.
26666
26667 2001-08-30  Paul Eggert  <eggert@twinsun.com>
26668
26669         Merge 'exclude' changes from tar 1.13.22.
26670         This fixes one or two unlikely storage allocation overflow bugs,
26671         but doesn't change user-visible behavior otherwise.
26672
26673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
26674
26675         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
26676         (jm_PREREQ_EXCLUDE): New macro.
26677
26678 2001-08-30  Paul Eggert  <eggert@twinsun.com>
26679
26680         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
26681         tm to be declared.
26682
26683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
26684
26685         * lib/hash.c: Remove '2001' from copyright notice.
26686
26687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
26688
26689         * lib/full-write.h: New file.
26690         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
26691         * lib/full-write.c: Correct credits, as cccp.c no longer
26692         exists and anyway it was so heavily changed from the old cccp
26693         code as to be unrecognizable.  Include full-write.h.
26694         (full_write) Return size_t, with short writes meaning failure.
26695         All callers changed.  This fixes a bug with large buffers
26696         on 64-bit hosts.
26697         * lib/utime.c: Include full-write.h.
26698
26699 2001-08-30  Paul Eggert  <eggert@twinsun.com>
26700
26701         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
26702         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
26703         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
26704         Include if available.
26705         (<xalloc.h>): Include
26706         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
26707         (verify): New macro.  Use it to verify that EXCLUDE macros do not
26708         collide with FNM macros.
26709         (struct patopts): New struct.
26710         (struct exclude): Use it, as exclude patterns now come with options.
26711         (new_exclude): Support above changes.
26712         (new_exclude, add_exclude_file):
26713         Initial size must now be a power of two to simplify overflow checking.
26714         (free_exclude, fnmatch_no_wildcards): New function.
26715         (excluded_filename): No longer requires options arg, as the options
26716         are determined by add_exclude.  Now returns bool, not int.
26717         (excluded_filename, add_exclude):
26718         Add support for the fancy new exclusion options.
26719         (add_exclude, add_exclude_file): Now takes int options arg.
26720         Check for arithmetic overflow when computing sizes.
26721         (add_exclude_file): xrealloc might modify errno, so don't
26722         realloc until after errno might be used.
26723
26724         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
26725         New macros.
26726         (free_exclude): New decl.
26727         (add_exclude, add_exclude_file): Now takes int options arg.
26728         (excluded_filename): No longer requires options arg, as the options
26729         are determined by add_exclude.  Now returns bool, not int.
26730
26731 2001-08-30  Paul Eggert  <eggert@twinsun.com>
26732
26733         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
26734
26735 2001-08-27  Jim Meyering  <meyering@lucent.com>
26736
26737         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
26738
26739         * lib/version-etc.c (N_): Remove definition.
26740         Revert most of last change.
26741         Instead, simply don't mark the `Copyright...' string for translation.
26742         Based on advice from Paul Eggert.
26743
26744         * lib/strtoxmax.c: Tweak comment.
26745
26746 2001-08-26  Jim Meyering  <meyering@lucent.com>
26747
26748         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
26749
26750         * m4/xstrtoimax.m4: New file.
26751         * m4/xstrtoumax.m4: Add comments explaining why we
26752         AC_REPLACE_FUNCS(strtol).
26753
26754 2001-08-26  Jim Meyering  <meyering@lucent.com>
26755
26756         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
26757         of copyright with `%s' so translators don't get an untranslated
26758         message in 2002.
26759         (COPYRIGHT_YEAR): Define.
26760         (version_etc): Use fprintf rather than fputs.
26761         Suggestion from Ulrich Drepper.
26762
26763         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
26764
26765         * lib/strtoll.c: New file, from GNU libc.
26766         * lib/xstrtoimax.c: New file.
26767
26768         * lib/xstrtol.h: Add xstrtoimax.
26769         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
26770         * lib/strtoimax.c: New file.  Likewise, but first define
26771         STRTOUXMAX_SIGNED.
26772
26773         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
26774         ...
26775         * lib/strtoxmax.c: ... then renamed to this.
26776
26777 2001-08-18  Paul Eggert  <eggert@twinsun.com>
26778
26779         * m4/inttypes.m4: Add AC_PREREQ(2.13).
26780         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
26781         (jm_AC_TYPE_INTMAX_T): New macro.
26782         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
26783
26784         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
26785
26786         * m4/longlong.m4: Renamed from ulonglong.m4.
26787         * m4/inttypes.m4: Renamed from inttypes_h.m4.
26788         * m4/uintmax_t.m4: Removed.
26789
26790 2001-08-13  Paul Eggert  <eggert@twinsun.com>
26791
26792         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
26793         Port to Solaris 8, where 'sed' requires a space after the 'r'
26794         command, and where sh dislikes "$/".  Clean up the spacing a bit.
26795         Redirect output to $tmp just once.
26796
26797 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
26798
26799         * lib/addext.c (<errno.h>): Include.
26800         (errno): Declare if not defined.
26801         (addext): Work correctly when pathconf returns -1 and leaves
26802         errno alone because there is no limit.  Also, work even if
26803         pathconf returns a value greater than SIZE_MAX.
26804
26805 2001-08-12  Jim Meyering  <meyering@lucent.com>
26806
26807         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
26808         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
26809         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
26810         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
26811         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
26812         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
26813         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
26814         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
26815         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
26816         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
26817         utime.m4, utimes.m4, xstrtoumax.m4:
26818         Quote the first argument in each use of AC_DEFUN.
26819
26820 2001-08-12  Jim Meyering  <meyering@lucent.com>
26821
26822         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
26823         Simply `return getcwd (NULL, 0);'.
26824         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
26825         Use 1300 as initial value for length, not PATH_MAX.
26826
26827         * lib/pathmax.h: Clean up cpp syntax.
26828
26829 2001-08-12  Jim Meyering  <meyering@lucent.com>
26830
26831         * lib/gettimeofday.c: New file.
26832         * lib/gtod.h: New file.
26833         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
26834
26835 2001-08-05  Jim Meyering  <meyering@lucent.com>
26836
26837         * m4/jm-macros.m4: Require autoconf-2.52.
26838
26839 2001-08-04  Jim Meyering  <meyering@lucent.com>
26840
26841         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
26842         stmt, to get in sync with glibc.
26843
26844 2001-08-03  Paul Eggert  <eggert@twinsun.com>
26845
26846         The following changes are from gettext 0.10.39 as maintained by
26847         Bruno Haible.
26848
26849         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
26850         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
26851         with inverted sense.  All uses changed.
26852
26853         * lib/mbswidth.c: Don't include <limits.h>.
26854         Include <stdlib.h> and <string.h> unconditionally.
26855         (iswcntrl, mbsinit, ISCNTRL): New macros.
26856         (mbsnwidth): Use K&R style function declarations.
26857         Don't bother checking for MB_LEN_MAX == 1, since the compiler
26858         can optimize it when MB_CUR_MAX == 1.
26859         The width of control characters is zero, not 1.
26860
26861 2001-08-03  Paul Eggert  <eggert@twinsun.com>
26862
26863         The following changes are from gettext 0.10.39 as maintained by
26864         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
26865
26866         * m4/codeset.m4: Upgrade to serial AM1.
26867         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
26868         all uses changed.  Quote first arg of AC_DEFUN.
26869         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
26870
26871         * m4/iconv.m4: Upgrade to serial AM2.
26872         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
26873         Add --with-libconv-prefix.
26874         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
26875         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
26876         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
26877         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
26878         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
26879
26880         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
26881         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
26882         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
26883         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
26884         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
26885         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
26886         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26887         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
26888         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
26889
26890         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
26891         string.h any more.
26892
26893         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
26894         not the default value.
26895
26896         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
26897         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
26898         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
26899         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
26900         Also check for iswcntrl, used for wcwidth fallback.
26901         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
26902         to Autoconf 2.13.
26903
26904 2001-08-03  Jim Meyering  <meyering@lucent.com>
26905
26906         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
26907         as it was in the original.  Reported by Paul Eggert.
26908
26909 2001-07-16  Jim Meyering  <meyering@lucent.com>
26910
26911         * m4/gettimeofday.m4: New file.
26912         Prompted by a report from Bernhard Baehr.
26913
26914 2001-07-15  Jim Meyering  <meyering@lucent.com>
26915
26916         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
26917         stuff. Now it's in ../Makefile.cfg.
26918
26919 2001-07-15  Jim Meyering  <meyering@lucent.com>
26920
26921         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
26922         (BUILT_SOURCES): Add unlocked-io.h.
26923         (io_functions): Define.
26924         (unlocked-io.h): New rule.
26925         (DISTCLEANFILES): Add unlocked-io.h.
26926         (all-local): Depend on unlocked-io.h, to ensure it is created.
26927
26928         * lib/unlocked-io.hin: New file
26929
26930         * lib/regex.c: Update from glibc.
26931
26932 2001-07-05  Jim Meyering  <meyering@lucent.com>
26933
26934         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
26935         recommendation.
26936         (libfetish_a_SOURCES): Put all .h files here instead.
26937         Remove a thus-exposed (better checks in automake) duplicate and
26938         two unnecessary .h files.
26939
26940 2001-07-04  Jim Meyering  <meyering@lucent.com>
26941
26942         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
26943         that generates jm-glibc-io.m4 so that it doesn't trigger any make
26944         distcheck failure.
26945
26946 2001-07-02  Jim Meyering  <meyering@lucent.com>
26947
26948         The following changes were prompted by suggestions from Bruno Haible.
26949
26950         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
26951         is now generated.
26952         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
26953         definition of EXTRA_DIST.
26954         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
26955         ensure that the generated file is created/updated whenever the list
26956         of $(unlocked_functions) is changed.
26957         (jm-glibc-io.m4): New rule.
26958         (unlocked-io.h): New rule -- currently unused.
26959
26960 2001-06-24  Jim Meyering  <meyering@lucent.com>
26961
26962         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
26963         unmatched right bracket, rather than kludging it with an extra,
26964         falsely-matching quote in a comment.  Patch by Akim Demaille.
26965
26966 2001-06-11  Jim Meyering  <meyering@lucent.com>
26967
26968         * lib/regex.c: Update from GNU libc.
26969
26970 2001-05-27  Jim Meyering  <meyering@lucent.com>
26971
26972         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
26973         Check for ut_type in struct utmp.
26974
26975 2001-05-27  Jim Meyering  <meyering@lucent.com>
26976
26977         * lib/readutmp.h (UT_TYPE): Define.
26978
26979 2001-05-24  Jim Meyering  <meyering@lucent.com>
26980
26981         * lib/argmatch.c: Include "quote.h".
26982         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
26983         quote function.  Reported by Göran Uddeborg.
26984
26985 2001-05-22  Jim Meyering  <meyering@lucent.com>
26986
26987         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
26988         now that we use the package-supplied version unconditionally.
26989         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
26990
26991 2001-05-21  Jim Meyering  <meyering@lucent.com>
26992
26993         * m4/regex.m4: Change a couple backticks to single quotes to avoid
26994         shell syntax errors.
26995
26996 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
26997
26998         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
26999
27000 2001-05-20  Paul Eggert  <eggert@twinsun.com>
27001
27002         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
27003         Don't bother to check library strftime, since
27004         we'll be using our own my_strftime function anyway.
27005         Define my_strftime instead of strftime.
27006
27007 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
27008
27009         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
27010         which is not yet declared.
27011
27012 2001-05-15  Jim Meyering  <meyering@lucent.com>
27013
27014         * m4/regex.m4: Use proper quoting so brackets appear in the test
27015         program.
27016         Reported by, and with help from, Bruno Haible.
27017
27018 2001-05-13  Jim Meyering  <meyering@lucent.com>
27019
27020         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
27021         undefined.
27022
27023 2001-05-11  Paul Eggert  <eggert@twinsun.com>
27024
27025         dirname code cleanup.  base_name now behaves more compatibly
27026         with POSIX basename when given file names that have trailing
27027         slashes, and similarly for dir_name.  Add new primitives
27028         base_len and dir_len.  Put the directory-name-related decls
27029         into dirname.h.
27030
27031         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
27032         * lib/backupfile.c (base_name): Likewise.
27033         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
27034         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
27035         * lib/makepath.c (strip_trailing_slashes): Likewise.
27036         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
27037         ISSLASH): Likewise.
27038         * lib/rename.c (strip_trailing_slashes): Likewise.
27039         * lib/same.c (base_name): Likewise.
27040         * lib/stripslash.c (ISSLASH): Likewise.
27041
27042         * lib/addext.c: Include <dirname.h> after size_t is defined.
27043         * lib/backupfile.c: Likewise.
27044
27045         * lib/addext.c (addext): Use base_len to trim redundant
27046         trailing slashes instead of doing it ourselves.
27047         But do not trim the last slash if it is not redundant.
27048
27049         * lib/backupfile.c (find_backup_file_name,
27050         max_backup_version): Use base_len instead of rolling it ourselves.
27051         Handle the case of "" and (on DOS) "C:" correctly.
27052
27053         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
27054         needed. Include <string.h>, <dirname.h>.
27055         (base_name): Allow file names ending in slashes, other than names
27056         that are all slashes.  In this case, return the basename followed
27057         by the slashes.  This is more general, and can be used in places
27058         where the original base_name purposely had an assertion failure.
27059         (base_len): New function.
27060
27061         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
27062         Do not include <assert.h>; no longer needed.
27063         Include xalloc.h.
27064         (memrchr): Remove decl.
27065         (dir_name_r): Remove.
27066         (dir_len): Renamed from dirlen.  All callers changed.
27067         Rewrite in terms of base_name, for simplicity and consistency.
27068         (dir_name): Never return NULL.  All callers changed.
27069         Do not include <stdlib.h> in test program; no longer needed.
27070         return 0; is fine for test program.
27071
27072         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
27073         New macros.
27074         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
27075
27076         * lib/path-concat.c (path_concat): Use base_len to compute
27077         base length, not strlen; this means we cannot rely on memcpy
27078         to null-terminate.
27079
27080         * lib/same.c (STREQ): Remove.
27081         (same_name): Handle the case where the basename ends in trailing '/'.
27082
27083         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
27084         a slash was stripped.  Do not strip the last slash after a
27085         file system prefix.
27086
27087 2001-05-11  Paul Eggert  <eggert@twinsun.com>
27088
27089         * lib/Makefile.am (libfetish_a_SOURCES):
27090         Add strftime.c, since we now compile it on all hosts.
27091
27092         * lib/strftime.c (my_strftime):
27093         Define to nstrftime if emacs, but only if my_strftime is not defined.
27094         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
27095         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
27096         Add one more extra argument: a nanoseconds value.
27097         All uses changed.
27098         (ns): New macro.
27099         (my_strftime function): Add %N format.
27100         (emacs_strftimeu): Renamed from emacs_strftime,
27101         with extra ut argument.
27102
27103 2001-05-09  Paul Eggert  <eggert@twinsun.com>
27104
27105         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
27106
27107 2001-04-21  Jim Meyering  <meyering@lucent.com>
27108
27109         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
27110         doesn't interfere.
27111
27112 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
27113
27114         * m4/ftruncate.m4: Check for chsize.
27115         Link with ftruncate.o unconditionally if ftruncate is missing.
27116         This was required when cross-compiling to i586-mingw32msvc.
27117
27118 2001-04-08  Jim Meyering  <meyering@lucent.com>
27119
27120         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
27121         recomputed; that's necessary when the offset spans a DST transition.
27122         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
27123
27124 2001-04-02  Jim Meyering  <meyering@lucent.com>
27125
27126         * lib/regex.h, regex.c: Update from GNU libc.
27127
27128 2001-03-24  Jim Meyering  <meyering@lucent.com>
27129
27130         * m4/jm-macros.m4: Require autoconf-2.49d.
27131
27132 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
27133
27134         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
27135
27136 2001-03-19  Paul Eggert  <eggert@twinsun.com>
27137
27138         * lib/version-etc.c (version_etc_copyright): Update to 2001.
27139
27140 2001-03-17  Jim Meyering  <meyering@lucent.com>
27141
27142         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
27143         now that the version in autoconf is equivalent.
27144         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
27145
27146         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
27147         Suggestion from Akim Demaille.
27148
27149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
27150         (jm_PREREQ_TEMPNAME): New function.
27151
27152 2001-03-16  Paul Eggert  <eggert@twinsun.com>
27153
27154         * lib/tempname.c (uint64_t): Define to uintmax_t if
27155         not defined, and if UINT64_MAX is not defined.
27156         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
27157         Reported by John David Anglin.
27158
27159 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
27160
27161         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
27162         resolve alias if codeset is empty.
27163         * lib/config.charset (BeOS): Use wildcard syntax.
27164
27165 2001-03-13  Jim Meyering  <meyering@lucent.com>
27166
27167         * lib/path-concat.c (path_concat)
27168         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
27169         concatenating e.g., `C:' and `foo'.
27170         From Bruno Haible.
27171
27172 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
27173
27174         * lib/localcharset.c (locale_charset): Don't use
27175         setlocale(LC_CTYPE,NULL). Don't return NULL.
27176         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
27177
27178 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
27179
27180         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
27181         support for DOS/DJGPP.
27182
27183 2001-03-01  Paul Eggert  <eggert@twinsun.com>
27184
27185         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
27186         lacks mkstemp.  Compile our own tempname.c if we compile our own
27187         mkstemp.c, as mkstemp relies on tempname.
27188
27189 2001-03-01  Jim Meyering  <meyering@lucent.com>
27190
27191         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
27192         AH_VERBATIM really does output its argument verbatim.
27193
27194 2001-02-28  Paul Eggert  <eggert@twinsun.com>
27195
27196         * lib/Makefile.am (libfetish_a_SOURCES):
27197         Add dup-safer.c, fopen-safer.c.
27198         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
27199
27200         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
27201         * lib/unistd-safer.h: New files.
27202
27203 2001-02-25  Paul Eggert  <eggert@twinsun.com>
27204
27205         The mkstemp replacement is taken from glibc 2.2.2, with some
27206         portability fixes for use outside glibc, as follows:
27207
27208         * lib/tempname.c (struct_stat64): New macro.
27209         (direxists, __gen_tempname): Use it.
27210         This avoids a portability problem with Solaris 8.
27211
27212         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
27213         (<stddef.h>, <stdint.h>, <string.h>):
27214         Include only if STDC_HEADERS || _LIBC.
27215         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
27216         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
27217         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
27218         (__set_errno): Define this macro if <errno.h> doesn't.
27219         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
27220         Define these macros if <stdio.h> doesn't.
27221         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
27222         Define these macros if <sys/stat.h>
27223         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
27224         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
27225         __xstat64): Define if not _LIBC.
27226         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
27227         (__gen_tempname): Invoke gettimeofday only if
27228         HAVE_GETTIMEOFDAY || _LIBC;
27229         otherwise, fall back on plain "time".
27230         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
27231
27232         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
27233
27234         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
27235
27236 2001-02-18  Paul Eggert  <eggert@twinsun.com>
27237
27238         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
27239
27240 2001-02-17  Paul Eggert  <eggert@twinsun.com>
27241
27242         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
27243         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
27244         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
27245         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27246
27247 2001-02-17  Paul Eggert  <eggert@twinsun.com>
27248
27249         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
27250         Remove workaround macros for hosts that have mbrtowc but not
27251         mbstate_t, as we now insist on proper declarations for both
27252         before using mbrtowc.
27253
27254 2001-02-17  Jim Meyering  <meyering@lucent.com>
27255
27256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
27257         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
27258         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
27259         UnixWare 7.1.1.
27260
27261         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
27262         rather than AC_CACHE_VAL.
27263
27264 2001-02-17  Jim Meyering  <meyering@lucent.com>
27265
27266         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
27267         around included file name.
27268
27269         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
27270
27271         * lib/strftime.c: Update from GNU libc (the only changes were to
27272         comments).
27273
27274 2001-02-17  Jim Meyering  <meyering@lucent.com>
27275
27276         * lib/regex.c: Update from libc.
27277
27278 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
27279
27280         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
27281         clash.
27282
27283 2001-02-16  Paul Eggert  <eggert@twinsun.com>
27284
27285         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
27286         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
27287         Reported by Mark Hounschell via Paul Eggert.
27288
27289 2001-02-07  Jim Meyering  <meyering@lucent.com>
27290
27291         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
27292
27293 2001-02-05  Jim Meyering  <meyering@lucent.com>
27294
27295         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
27296         it includes the patch required for `large file' support with at least
27297         HP-UX's 10.20 /bin/cc.
27298
27299 2001-02-03  Jim Meyering  <meyering@lucent.com>
27300
27301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
27302         AS_IF, now that it works once again (mysteriously).
27303         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
27304
27305 2001-01-30  Jim Meyering  <meyering@lucent.com>
27306
27307         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
27308         * m4/chown.m4: Rename conftestchown to conftest.chown.
27309         * m4/rename.m4: s/conftestdir/conftest.d1/ and
27310         s/conftestdir2/conftest.d2/.
27311         * m4/utimes.m4: s/conftestdata/conftest.data/
27312         Inspired by Pavel Roskin's change in autoconf.
27313
27314 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
27315
27316         * lib/config.charset: Update for FreeBSD 4.2.
27317
27318 2001-01-27  Jim Meyering  <meyering@lucent.com>
27319
27320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
27321         a use of AS_IF.
27322         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
27323
27324 2001-01-26  Jim Meyering  <meyering@lucent.com>
27325
27326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
27327         quotearg.c includes it.
27328
27329 2001-01-26  Jim Meyering  <meyering@lucent.com>
27330
27331         * lib/quotearg.c: Include stddef.h.
27332         * lib/quote.c: Include stddef.h.
27333         Reported by Axel Kittenberger.
27334
27335         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
27336         line in double quotes so that it evokes a better diagnostic.
27337         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
27338         Reported by Axel Kittenberger.
27339
27340 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
27341
27342         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
27343         as if it was a `charset'.
27344
27345 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
27346
27347         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
27348         has const.
27349
27350 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
27351
27352         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
27353         to avoid a warning.  Add back 'const' to inptr.
27354
27355 2001-01-20  Jim Meyering  <meyering@lucent.com>
27356
27357         Be sure that headers are checked before used in code compiled
27358         for the type checks.
27359         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
27360         In place of that, invoke jm_CHECK_ALL_TYPES.
27361         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
27362         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
27363         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
27364         The check for ssize_t was mistakenly run before the test for unistd.h.
27365
27366         The configure-time check for stdbool.h was missing.
27367         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
27368         (jm_PREREQ_HASH): New function.
27369
27370 2001-01-17  Jim Meyering  <meyering@lucent.com>
27371
27372         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
27373         for autoconf-2.49c.
27374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
27375
27376 2001-01-16  Jim Meyering  <meyering@lucent.com>
27377
27378         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
27379         From Bruno Haible.
27380
27381 2001-01-14  Jim Meyering  <meyering@lucent.com>
27382
27383         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
27384         foo and bar.  Create conftestdir/ in the script, not in the C code.
27385         Remove directories in the script, not in the C code.
27386         Remove conftestdir{,2} before trying to create the directory.
27387         Make the entire configure script fail if the mkdir fails.
27388
27389 2001-01-14  Jim Meyering  <meyering@lucent.com>
27390
27391         * lib/rename.c: New file.  From Volker Borchert.
27392         Include stdlib.h, string.h or strings.h, and xalloc.h.
27393         Use strip_trailing_slashes rather than open-coding it.
27394
27395 2001-01-03  Paul Eggert  <eggert@twinsun.com>
27396
27397         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
27398
27399 2001-01-03  Jim Meyering  <meyering@lucent.com>
27400
27401         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
27402         of local `inptr' to avoid warning with some system declarations of
27403         iconv.
27404
27405 2001-01-02  Volker Borchert  <bt@teknon.de>
27406
27407         * m4/rename.m4: New file.
27408         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
27409
27410 2001-01-01  Jim Meyering  <meyering@lucent.com>
27411
27412         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
27413         even on systems with utmpx.h.  It's necessary for the declaration of
27414         utmp's ut_user member.  Reported by Andreas Jaeger.
27415
27416         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
27417         available. They are required for the declarations of getgrgid and
27418         getpwuid resp.
27419         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
27420         Reported by Andreas Jaeger.
27421
27422 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
27423
27424         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
27425         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
27426         so `make install' also works in VPATH builds.
27427
27428 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
27429
27430         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
27431         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
27432         can be used in subdirectories.
27433
27434 2000-12-29  Paul Eggert  <eggert@twinsun.com>
27435
27436         * lib/modechange.c: Do not assume that mode_t uses the
27437         traditional octal encoding.  E.g. "chmod 1 FOO" should set
27438         the other-execute bit of FOO even if S_IXOTH != 1.
27439
27440         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
27441         WOTH, XOTH, ALLM): New macros.
27442         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
27443          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
27444         Use them.
27445         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
27446         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
27447         (mode_compile):
27448         No need to use uintmax_t; unsigned long is long enough.
27449         Don't bother to get suffix since we don't use it.
27450
27451 2000-12-26  Jim Meyering  <meyering@lucent.com>
27452
27453         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
27454         better with autoheader.
27455
27456 2000-12-24  Jim Meyering  <meyering@lucent.com>
27457
27458         * lib/hash.c (is_prime): Return explicit boolean values.
27459         (hash_get_first): Return NULL to appease Irix5.6's 89.
27460         Reported by Nelson Beebe.
27461
27462 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
27463
27464         * lib/localcharset.c (locale_charset): Add support for Win32.
27465
27466 2000-12-18  Paul Eggert  <eggert@twinsun.com>
27467
27468         * lib/physmem.h, lib/physmem.c: New files.
27469
27470         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
27471         (noinst_HEADERS): Add physmem.h.
27472
27473         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
27474         't' for compatibility with Solaris 8 sort.
27475
27476 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
27477
27478         * lib/config.charset: Add support for BeOS.
27479
27480 2000-12-17  Jim Meyering  <meyering@lucent.com>
27481
27482         * m4/dos.m4 (jm_AC_DOS): New file and macro.
27483         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
27484
27485 2000-12-16  Jim Meyering  <meyering@lucent.com>
27486
27487         This bug had a serious impact on chown: `chown N:M FILE' (for integer
27488         N and M) would have treated it like `chown N:N FILE'.
27489
27490         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
27491
27492 2000-12-16  Jim Meyering  <meyering@lucent.com>
27493
27494         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
27495         SHELLS_FILE to a file name that's useful on djgpp systems.
27496         Include stdlib.h.
27497         (ADDITIONAL_DEFAULT_SHELLS): Define.
27498         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
27499         Based mostly on a patch from Prashant TR.
27500
27501 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
27502
27503         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
27504         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
27505         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
27506
27507 2000-12-08  Andreas Schwab  <schwab@suse.de>
27508
27509         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
27510         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
27511
27512 2000-12-07  Jim Meyering  <meyering@lucent.com>
27513
27514         * lib/stripslash.c (ISSLASH): Define.
27515         (strip_trailing_slashes): Use ISSLASH rather than comparing against
27516         `/'.
27517         From Prashant TR.
27518
27519         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
27520         (dir_name_r): Declare this function as static.
27521         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
27522         manifest itself on a name containing a mix of slashes and
27523         backslashes.
27524         Make this function work with names starting with a DOS-style
27525         drive letter and colon prefix.
27526         (dir_name): Append `.' if necessary.
27527         Based mostly on patches from Prashant TR and Eli Zaretskii.
27528
27529         * lib/dirname.h (dir_name_r): Remove prototype.
27530
27531 2000-12-06  Paul Eggert  <eggert@twinsun.com>
27532
27533         * m4/off_t-format.m4: Remove this file.
27534         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
27535
27536 2000-12-06  Jim Meyering  <meyering@lucent.com>
27537
27538         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
27539         replacement strtoull, we may well need the replacement strtoul, too.
27540         Check for declarations of strtoul and strtoull.
27541         Check for strtol.  Mainly as a cue to cause automake to include
27542         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
27543         Check for limits.h -- strtol.c needs it.
27544
27545 2000-12-05  Jim Meyering  <meyering@lucent.com>
27546
27547         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
27548
27549 2000-12-04  Jim Meyering  <meyering@lucent.com>
27550
27551         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
27552         Also include memory.h, stdlib.h, unistd.h if appropriate.
27553         Reported by Andreas Jaeger (conflicting declaration of malloc).
27554
27555 2000-12-02  Jim Meyering  <meyering@lucent.com>
27556
27557         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
27558         * m4/jm-macros.m4 (jm_MACROS): require it.
27559
27560 2000-12-02  Jim Meyering  <meyering@lucent.com>
27561
27562         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
27563
27564 2000-12-01  Paul Eggert  <eggert@twinsun.com>
27565
27566         * lib/memrchr.c: Include <config.h> before any system include file.
27567
27568 2000-11-30  Jim Meyering  <meyering@lucent.com>
27569
27570         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
27571
27572 2000-11-30  Jim Meyering  <meyering@lucent.com>
27573
27574         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
27575
27576 2000-11-29  Paul Eggert  <eggert@twinsun.com>
27577
27578         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
27579
27580 2000-11-26  Jim Meyering  <meyering@lucent.com>
27581
27582         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
27583
27584 2000-11-22  Paul Eggert  <eggert@twinsun.com>
27585
27586         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
27587         size of (size_t) -1; it's not portable.
27588
27589 2000-11-17  Jim Meyering  <meyering@lucent.com>
27590
27591         * lib/strstr.c: Update from GNU libc.
27592
27593 2000-11-17  Akim Demaille  <akim@epita.fr>
27594
27595         * lib/obstack.h: Formatting changes.
27596         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
27597         prevent type checking.
27598         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
27599         cast the value to (void *): assigning a `foo *' to a `void *'
27600         variable is valid.
27601         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
27602
27603 2000-11-16  Jim Meyering  <meyering@lucent.com>
27604
27605         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
27606
27607 2000-11-11  Jim Meyering  <meyering@lucent.com>
27608
27609         * lib/error.c: Add a couple #includes, merging from GNU libc version.
27610
27611 2000-11-10  Jim Meyering  <meyering@lucent.com>
27612
27613         * lib/obstack.h: Update from GNU libc.
27614         * lib/obstack.c: Likewise.
27615
27616 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
27617
27618         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
27619
27620 2000-11-06  Paul Eggert  <eggert@twinsun.com>
27621
27622         * lib/getusershell.c (setusershell): Use rewind rather than
27623         fseek/fseeko, to avoid configuration hassles with fseeko.
27624         Don't bother opening SHELLS_FILE if shellstream is NULL;
27625         it's not necessary.
27626
27627 2000-11-05  Jim Meyering  <meyering@lucent.com>
27628
27629         * lib/makepath.h (make_dir): Declare.
27630         * lib/makepath.c (make_dir): Remove `static' attribute.
27631         Tweak a comment.
27632
27633 2000-11-04  Jim Meyering  <meyering@lucent.com>
27634
27635         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
27636
27637 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
27638
27639         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
27640         last one in a bucket, advance to the next bucket.
27641
27642 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
27643
27644         * lib/fnmatch.c: Do not comment out all the code if we are using
27645         the GNU C library, because in some cases we are replacing buggy
27646         code in the GNU C library itself.
27647
27648 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
27649
27650         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
27651         (regex_compile): Catch bogus \(\1\).
27652
27653 2000-10-30  Paul Eggert  <eggert@twinsun.com>
27654
27655         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
27656         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
27657         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
27658
27659 2000-10-30  Paul Eggert  <eggert@twinsun.com>
27660
27661         * lib/error.h, getline.h, modechange.h:
27662         Remove "2000" from Copyright line, as the file hasn't been
27663         changed this year other than in the copyright notice.
27664
27665         * lib/xalloc.h: Add "2000" to Copyright line, as this file
27666         was changed this year.
27667
27668 2000-10-29  Jim Meyering  <meyering@lucent.com>
27669
27670         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
27671         renaming.
27672         * m4/ls-mntd-fs.m4: Likewise
27673
27674 2000-10-29  Jim Meyering  <meyering@lucent.com>
27675
27676         * lib/xstat.in: Fix grammar in comment.
27677
27678 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
27679
27680         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
27681         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
27682         doesn't define __restrict_arr.
27683
27684 2000-10-28  Jim Meyering  <meyering@lucent.com>
27685
27686         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
27687         (jm_PREREQ_MEMCHR): New function.
27688
27689 2000-10-28  Jim Meyering  <meyering@lucent.com>
27690
27691         * lib/memchr.c: Update from libc.
27692         Adjust for portability:
27693         [HAVE_STDLIB_H]: Include stdlib.h.
27694         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
27695         Undef __memchr, too.
27696         [!weak_alias]: Define __memchr to memchr.
27697
27698         * lib/regex.c: Update from libc.
27699         * lib/regex.h: Likewise.
27700         * lib/getopt1.c: Likewise.
27701         * lib/memcmp.c: Likewise.
27702
27703         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
27704         Avoid using fseek, when possible -- it's broken by design.
27705         Patch by Ulrich Drepper.
27706
27707 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
27708
27709         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
27710         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
27711         Giving in to popular pressure to shut up the compiler with casts.
27712
27713 2000-10-26  Jim Meyering  <meyering@lucent.com>
27714
27715         * lib/strftime.c: Update from libc.
27716
27717 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
27718
27719         * regex.c: More `unsigned char' -> `re_char' changes.
27720         Also change several `int' into `re_wchar_t'.
27721         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
27722         (PUSH_FAILURE_POINTER): Don't cast any more.
27723         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
27724         We want GCC to complain, since this piece of code makes
27725         re_match non-reentrant, which *should* be fixed.
27726         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
27727         (EXTEND_BUFFER): Use RETALLOC.
27728         (SET_LIST_BIT): Don't cast.
27729         (re_wchar_t): New type.
27730         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
27731         that those two functions will always properly return.
27732         (IMMEDIATE_QUIT_CHECK): Cast to void.
27733         (analyse_first): Use recursion rather than an explicit stack.
27734         (re_compile_fastmap): Can't fail anymore.
27735         (re_search_2): Don't check re_compile_fastmap for failure.
27736         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
27737         Now also sets the new value (passed in a new argument).
27738         (re_match_2_internal): Use it.
27739         Also, use a new var `reg' of type size_t when looping through regs
27740         rather than reuse the inappropriate `mcnt'.
27741
27742 2000-10-25  Jim Meyering  <meyering@lucent.com>
27743
27744         * lib/obstack.c: Update from libc.
27745
27746 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
27747
27748         * regex.c (regex_compile): Change the way of handling a range from
27749         a char less than 256 to a char not less than 256.
27750
27751 2000-10-24  Andrew Innes  <andrewi@gnu.org>
27752
27753         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
27754         NT-Emacs only.
27755         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
27756         so that re_search functions only quit when callers expect them to.
27757
27758 2000-10-23  Jim Meyering  <meyering@lucent.com>
27759
27760         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
27761         wrong.  That set_locale call must not have any side effects.
27762         From Paul Eggert.
27763
27764 2000-10-22  Jim Meyering  <meyering@lucent.com>
27765
27766         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
27767         [CYCLIC]: Remove now-unused definition.
27768
27769         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
27770         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
27771         Suggestion from Ulrich Drepper.
27772
27773 2000-10-21  Jim Meyering  <meyering@lucent.com>
27774
27775         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
27776         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
27777         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
27778
27779 2000-10-21  Jim Meyering  <meyering@lucent.com>
27780
27781         * lib/dirname.c (memrchr): Declare if necessary.
27782         (dir_name): Remove the restriction that there be no
27783         trailing slashes.  Now, this code skips past them, effectively
27784         ignoring them.
27785         [TEST_DIRNAME] (main): New unit tests.
27786
27787         * lib/memrchr.c: New file from GNU libc.
27788         Undef __memrchr, too.
27789         [!weak_alias]: Define __memrchr to memrchr.
27790         Guard weak_alias use with `#ifdef weak_alias'.
27791
27792 2000-10-21  Jim Meyering  <meyering@lucent.com>
27793
27794         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
27795         (dir_name): Use dir_name_r.
27796         * lib/dirname.h (dir_name_r): Declare it.
27797
27798 2000-10-17  Jim Meyering  <meyering@lucent.com>
27799
27800         * lib/quote.h (PARAMS): Define and use.
27801         Reported by Akim Demaille.
27802
27803         * lib/getopt.c: Update from libc.
27804
27805 2000-10-16  Jim Meyering  <meyering@lucent.com>
27806
27807         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
27808         setlocale.
27809         From Jan Fedak.
27810
27811 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
27812
27813         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
27814
27815 2000-09-25  Jim Meyering  <meyering@lucent.com>
27816
27817         * lib/md5.h (rol): Define (from GnuPG).
27818
27819         * lib/sha.c: Give credit (GnuPG) where due.
27820         (M): Use rol rather than open-coding it.
27821         Add a FIXME comment.
27822
27823 2000-09-21  Jim Meyering  <meyering@lucent.com>
27824
27825         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
27826         Reported by Michael Stone.
27827
27828 2000-09-20  Jim Meyering  <meyering@lucent.com>
27829
27830         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
27831         (noinst_HEADERS): Add sha.h.
27832         Based on code from Scott G. Miller and from GnuPG.
27833
27834 2000-09-18  Jim Meyering  <meyering@lucent.com>
27835
27836         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
27837         LIBS. Otherwise, everyone ends up linking with -lelf for some
27838         configurations.
27839         Reported by Mike Stone.
27840
27841 2000-09-15  Jim Meyering  <meyering@lucent.com>
27842
27843         * lib/regex.c: Update from libc.
27844
27845 2000-09-10  Jim Meyering  <meyering@lucent.com>
27846
27847         * lib/getopt.c (_getopt_internal): Update from glibc.
27848
27849 2000-09-09  Jim Meyering  <meyering@lucent.com>
27850
27851         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
27852         think it should be used as a general replacement for isascii.
27853         * lib/fnmatch.c: Likewise.
27854         * lib/mbswidth.c: Likewise
27855         * lib/regex.c: Likewise.
27856
27857         Don't use atoi.
27858         * lib/userspec.c: Include sys/param.h and limits.h.
27859         Include xstrtol.h.
27860         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
27861         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
27862         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
27863         UID, GID.  Check range.
27864
27865 2000-09-06  Jim Meyering  <meyering@lucent.com>
27866
27867         * lib/getopt.c (_getopt_internal): Update from glibc.
27868
27869 2000-08-30  Jim Meyering  <meyering@lucent.com>
27870
27871         * lib/strftime.c: Merge in changes from GNU libc.
27872
27873 2000-08-26  Jim Meyering  <meyering@lucent.com>
27874
27875         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
27876         * m4/fpending.m4: New file.
27877
27878 2000-08-26  Jim Meyering  <meyering@lucent.com>
27879
27880         * lib/closeout.c: Include "__fpending.h".
27881         (close_stdout_status): Return right away if there's nothing to flush.
27882
27883         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
27884         * lib/__fpending.c: New file.
27885         * lib/__fpending.h: New file.
27886
27887 2000-08-20  Jim Meyering  <meyering@lucent.com>
27888
27889         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
27890         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
27891         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
27892
27893 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
27894
27895         Improve fileutils installation on systems where running
27896         programs (like install) can't be unlinked.
27897         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
27898         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
27899
27900 2000-08-07  Paul Eggert  <eggert@twinsun.com>
27901
27902         Standardize on "memory exhausted" instead of "Memory exhausted"
27903         or "virtual memory exhausted".
27904         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
27905         "virtual memory exhausted".
27906         * lib/same.c (same_name): Invoke xalloc_die instead of printing
27907         our own message.
27908         * lib/userspec.c (parse_user_spec): Likewise.
27909         * lib/bumpalloc.h: comment fix
27910         * lib/same.c, userspec.c: Include xalloc.h.
27911
27912         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
27913         not char *const and pointing to a constant array.
27914         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
27915         (xrealloc): Comment fix.
27916
27917         * lib/userspec.c (parse_user_spec):
27918         Don't translate a message until just before returning,
27919         to avoid unnecessary translation.
27920
27921 2000-08-07  Jim Meyering  <meyering@lucent.com>
27922
27923         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
27924         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
27925         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
27926         getgroups.c, gethostname.c, getopt.h, group-member.c,
27927         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
27928         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
27929         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
27930         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
27931         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
27932         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
27933         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
27934         yesno.c: Back out Copyright date changes for each file with no change
27935         this year.  This eases coordination with other programs using the same
27936         source code modules.  From Paul Eggert.
27937
27938 2000-08-06  Paul Eggert  <eggert@twinsun.com>
27939
27940         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
27941         not char, for compatibility with glibc 2.1.3 strftime.c.
27942
27943 2000-08-03  Greg McGary  <greg@mcgary.org>
27944
27945         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
27946         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
27947         (EXTEND_BUFFER): Use them.
27948
27949 2000-08-01  Jim Meyering  <meyering@lucent.com>
27950
27951         * lib/dirname.c (ISSLASH): Define.
27952         (BACKSLASH_IS_PATH_SEPARATOR): Define.
27953         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
27954         both `\' and `/' may be use as path separators.
27955         Based on a patch from Prashant TR.
27956
27957 2000-07-31  Paul Eggert  <eggert@twinsun.com>
27958
27959         * lib/quotearg.c (quotearg_n_options): Don't make the initial
27960         slot vector a constant, since it might get modified.
27961
27962 2000-07-31  Jim Meyering  <meyering@lucent.com>
27963
27964         * lib/xmalloc.c: Use `virtual memory exhausted', not
27965         `Memory exhausted'.
27966         * lib/obstack.c (print_and_abort): Likewise.
27967
27968 2000-07-30  Paul Eggert  <eggert@twinsun.com>
27969
27970         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
27971         buffer, so that the caller can always quote one small
27972         component of a "memory exhausted" message in slot 0.
27973         From a suggestion by Jim Meyering.
27974
27975 2000-07-30  Jim Meyering  <meyering@lucent.com>
27976
27977         * lib/makepath.c (make_path): Quote the other instance, too.
27978
27979         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
27980         (STATIC_BUF_SIZE): Define.
27981         (quotearg_n_options): Use only statically allocated storage when
27982         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
27983         than STATIC_BUF_SIZE.
27984
27985 2000-07-29  Jim Meyering  <meyering@lucent.com>
27986
27987         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
27988         * lib/dirname.c (dir_name): Likewise.
27989
27990         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
27991         `/'.
27992
27993         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
27994         (dir_name): Assert that there are no trailing slashes.
27995
27996 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
27997
27998         * lib/mbswidth.h (mbswidth): Add a flags argument.
27999         (mbswidth): New declaration.
28000         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
28001         * lib/mbswidth.c (mbswidth): Add a flags argument.
28002         (mbsnwidth): New function.
28003
28004 2000-07-24  Jim Meyering  <meyering@lucent.com>
28005
28006         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
28007
28008 2000-07-23  Paul Eggert  <eggert@twinsun.com>
28009
28010         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
28011
28012 2000-07-23  Paul Eggert  <eggert@twinsun.com>
28013
28014         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
28015         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
28016         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
28017         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
28018         invoke multibyte primitives.
28019
28020 2000-07-23  Paul Eggert  <eggert@twinsun.com>
28021
28022         * lib/quotearg.c:
28023         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
28024         so that mbstate_t is always defined.
28025
28026         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
28027         be 1 in at least one GCC installation, and this configuration
28028         error is likely to be common.  Ignoring MB_LEN_MAX hurts
28029         performance on hosts that have mbrtowc but have only unibyte
28030         locales, but I assume these hosts are rare.
28031
28032 2000-07-23  Paul Eggert  <eggert@twinsun.com>
28033
28034         * lib/mbswidth.c (_XOPEN_SOURCE):
28035         Don't define; this causes problems on Solaris 7.
28036         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
28037
28038 2000-07-23  Jim Meyering  <meyering@lucent.com>
28039
28040         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
28041         too: getgrgid, getpwuid, getuid.
28042
28043 2000-07-23  Jim Meyering  <meyering@lucent.com>
28044
28045         * lib/basename.c (base_name): Add an assertion.
28046
28047 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
28048
28049         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
28050         shadow its mbsinit function.
28051
28052 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
28053
28054         * lib/mbswidth.h: New file.
28055         * lib/mbswidth.c: New file.
28056         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
28057         (noinst_HEADERS): Add mbswidth.h.
28058
28059 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
28060
28061         * lib/config.charset: Add support for FreeBSD. Improve support for
28062         HP-UX and IRIX 6.
28063
28064 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
28065
28066         * m4/mbswidth.m4: New file.
28067         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
28068
28069 2000-07-15  Jim Meyering  <meyering@lucent.com>
28070
28071         * lib/makepath.c: Include quote.h.
28072         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
28073         corresponding argument in a `quote (...)' call.
28074         Give better diagnostics.
28075
28076         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
28077         (noinst_HEADERS): Add quote.h.
28078
28079         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
28080         from tar's src/misc.c.
28081         * lib/quote.h: New file.  Prototypes for same.
28082
28083 2000-07-14  Paul Eggert  <eggert@twinsun.com>
28084
28085         From a suggestion by Bruno Haible.
28086         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
28087         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
28088         to decide whether to define the BeOS workaround macro;
28089         this adjusts to the change to AC_MBSTATE_T.
28090
28091 2000-07-14  Jim Meyering  <meyering@lucent.com>
28092
28093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
28094         jm_AC_TYPE_UINTMAX_T.
28095
28096 2000-07-13  Paul Eggert  <eggert@twinsun.com>
28097
28098         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
28099
28100         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
28101         quotearg_buffer_restyled): Add support for
28102         clocale_quoting_style.  Undo previous change to
28103         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
28104         and "{RIGHT QUOTATION MARK}" msgids.
28105
28106 2000-07-10  Paul Eggert  <eggert@twinsun.com>
28107
28108         From a suggestion by Bruno Haible.
28109         * m4/mbstate_t.m4 (AC_MBSTATE_T):
28110         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
28111         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
28112         and mbstate_t, to a single-part test that simply defines mbstate_t.
28113         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
28114         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
28115
28116 2000-07-10  Jim Meyering  <meyering@lucent.com>
28117
28118         * m4/strerror_r.m4: Mirror the correction made in autoconf.
28119
28120         * m4/gnu-source.m4: Output to confdefs.h directly.
28121         Suggestion from Akim Demaille.
28122
28123 2000-07-09  Paul Eggert  <eggert@twinsun.com>
28124
28125         The old behavior of quoting `like this' doesn't look good with
28126         newer, ISO-style fonts.  See:
28127         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
28128
28129         Instead, quote "like this" by default.  Let the translator
28130         tailor the locale-specific quoting behavior by providing
28131         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
28132
28133         * lib/quotearg.c (N_): New macro.
28134         (gettext_default): New function.
28135         (quotearg_buffer_restyled): Use
28136         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
28137         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
28138
28139 2000-07-09  Jim Meyering  <meyering@lucent.com>
28140
28141         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
28142         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
28143
28144         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
28145         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
28146
28147 2000-07-09  Jim Meyering  <meyering@lucent.com>
28148
28149         * lib/Most files: Update copyright dates to include 2000.
28150
28151 2000-07-08  Jim Meyering  <meyering@lucent.com>
28152
28153         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
28154         if not defined.
28155         (xgethostname): Remove now-unnecessary #ifdef.
28156         Move declaration of `err' into loop where it's used.
28157
28158 2000-07-05  Paul Eggert  <eggert@twinsun.com>
28159         and Bruno Haible  <haible@clisp.cons.org>
28160
28161         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
28162         only if the test for an object-type mbstate_t fails.  This
28163         prevents us from mistakenly reporting that mbstate_t is a
28164         system object type after we "#define mbstate_t int" to work
28165         around its lack.
28166
28167 2000-07-05  Paul Eggert  <eggert@twinsun.com>
28168         and Bruno Haible  <haible@clisp.cons.org>
28169
28170         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
28171
28172 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
28173
28174         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
28175         to strerror_r.
28176         Include <ctype.h> for use of isalpha.
28177
28178 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
28179
28180         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
28181         by allocating a larger buffer. Test the gethostname return value for
28182         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
28183         returns an error and ENAMETOOLONG isn't defined.
28184
28185 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
28186
28187         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
28188         dimension.
28189
28190 2000-07-04  Jim Meyering  <meyering@lucent.com>
28191
28192         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
28193         of the deprecated AC_CHECKING.
28194
28195 2000-07-04  Jim Meyering  <meyering@lucent.com>
28196
28197         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
28198         Reported by Bruno Haible.
28199
28200 2000-07-04  Jim Meyering  <meyering@lucent.com>
28201
28202         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
28203         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
28204         lacks mbrtowc.
28205
28206 2000-07-03  Paul Eggert  <eggert@twinsun.com>
28207
28208         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
28209         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
28210
28211 2000-07-03  Paul Eggert  <eggert@twinsun.com>
28212         and Bruno Haible  <haible@clisp.cons.org>
28213
28214         * lib/quotearg.c (mbrtowc):
28215         Assign to *pwc, and return 1 only if result is nonzero.
28216         (iswprint): Use ISPRINT when substituting our own mbrtowc.
28217
28218 2000-07-03  Jim Meyering  <meyering@lucent.com>
28219
28220         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
28221
28222 2000-07-03  Jim Meyering  <meyering@lucent.com>
28223
28224         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
28225         This is necessary to get a definition of e.g., UTMP_FILE on
28226         HP-UX 10.20.
28227         From Bob Proulx.
28228
28229 2000-07-02  Jim Meyering  <meyering@lucent.com>
28230
28231         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
28232
28233         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
28234         AC_LIBOBJ(function_name).
28235         * m4/chown.m4: Likewise.
28236         * m4/fnmatch.m4: Likewise.
28237         * m4/ftruncate.m4: Likewise.
28238         * m4/getgroups.m4: Likewise.
28239         * m4/getline.m4: Likewise.
28240         * m4/group-member.m4: Likewise.
28241         * m4/jm-macros.m4: Likewise.
28242         * m4/lstat.m4: Likewise.
28243         * m4/malloc.m4: Likewise.
28244         * m4/memcmp.m4: Likewise.
28245         * m4/nanosleep.m4: Likewise.
28246         * m4/putenv.m4: Likewise.
28247         * m4/realloc.m4: Likewise.
28248         * m4/regex.m4: Likewise.
28249         * m4/stat.m4: Likewise.
28250         * m4/strftime.m4: Likewise.
28251
28252 2000-07-02  Jim Meyering  <meyering@lucent.com>
28253
28254         * lib/quotearg.c (mbstate_t): Don't define here.
28255
28256 2000-07-02  Jim Meyering  <meyering@lucent.com>
28257
28258         * lib/nanosleep.c (SIGCONT): Define if not already defined.
28259
28260 2000-07-01  Jim Meyering  <meyering@lucent.com>
28261
28262         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
28263
28264 2000-07-01  Jim Meyering  <meyering@lucent.com>
28265
28266         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
28267         problem.
28268
28269 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
28270
28271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
28272         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
28273
28274 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
28275
28276         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
28277         per change in ../m4/ls-mntd-fs.m4.
28278         (read_filesystem_list): Ignore symbolic links.
28279
28280 2000-06-29  Jim Meyering  <meyering@lucent.com>
28281
28282         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
28283         for declaration of strcmp.
28284
28285         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
28286
28287         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
28288         Avoid warning by casting result to `char *' to remove `const'.
28289
28290 2000-06-28  Jim Meyering  <meyering@lucent.com>
28291
28292         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
28293         included by quotearg.c, for which we perform this test.  From
28294         Bruno Haible.
28295
28296 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
28297
28298         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
28299         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
28300         <utmpx.h> exists, put readutmp.o into LIBOBJS.
28301
28302 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
28303
28304         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
28305
28306 2000-06-26  Paul Eggert  <eggert@twinsun.com>
28307
28308         savedir now sets errno on failure and invokes xmalloc to get memory.
28309         Fix a couple of other minor bugs while we're at it.
28310
28311         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
28312         (NAMLEN): Remove macro.
28313         (malloc, realloc): Remove decls.
28314         (stpcpy): Likewise.
28315         ("xalloc.h"): Include.
28316         (NAME_SIZE_DEFAULT): New macro.
28317         (savedir): Use xmalloc / xrealloc to allocate memory.
28318         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
28319         Skip "" directory entries.
28320         Use strlen to calculate directory entry length, since the old method
28321         is rarely used these days and isn't worth supporting.
28322         Don't use a pointer after freeing it.
28323         Check for integer overflow when calculating allocation size.
28324         Use memcpy to copy entries, instead of stpcpy.
28325         Set errno properly when returning NULL.
28326         Check for readdir error.
28327
28328 2000-06-26  Jim Meyering  <meyering@lucent.com>
28329
28330         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
28331
28332 2000-06-25  Jim Meyering  <meyering@lucent.com>
28333
28334         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
28335         Linux header bug when _XOPEN_SOURCE is defined to 500.
28336
28337 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
28338
28339         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
28340         deficiency.
28341
28342 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
28343
28344         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
28345         Include xalloc.h.
28346         Don't include <stdlib.h>.  Don't declare malloc, realloc.
28347
28348 2000-06-24  Jim Meyering  <meyering@lucent.com>
28349
28350         * m4/strerror_r.m4: Revive this file -- to try out an experimental
28351         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
28352         for which strerror does return char*, but which lacks a conveniently
28353         accessible declaration of the function.  If the compile-test says
28354         strerror_r doesn't work, then resort to a `run'-test that works on
28355         BeOS and segfaults on DEC Unix.
28356
28357 2000-06-24  Jim Meyering  <meyering@lucent.com>
28358
28359         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
28360
28361 2000-06-23  Paul Eggert  <eggert@twinsun.com>
28362
28363         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
28364         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
28365
28366 2000-06-23  Paul Eggert  <eggert@twinsun.com>
28367
28368         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
28369         (mbrtowc, mbstate_t): Define substitutes if
28370         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
28371         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
28372         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
28373
28374 2000-06-23  Jim Meyering  <meyering@lucent.com>
28375
28376         * m4/afs.m4: Add missing AC_MSG_RESULT.
28377         Reported by Bruno Haible.
28378
28379         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
28380         Suggestion from Bruno Haible.
28381
28382 2000-06-23  Jim Meyering  <meyering@lucent.com>
28383
28384         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
28385
28386 2000-06-21  Jim Meyering  <meyering@lucent.com>
28387
28388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
28389
28390 2000-06-21  Jim Meyering  <meyering@lucent.com>
28391
28392         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
28393         (noinst_HEADERS): Add getstr.h.
28394
28395         * lib/getline.c (getstr): Move into a separate file.
28396         * lib/getstr.c (getstr): New file, extracted from getline.c, with
28397         the following changes: new parameter, delim2; both delim[12]
28398         parameters have type `int', not `char'.  The latter would lose
28399         with 8-bit delimiters.
28400         * lib/getstr.h: New file.
28401
28402 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
28403
28404         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
28405         than 1024, return a memory chunk of least possible size, instead
28406         of size PATH_MAX + 2. In the loop, increment the size proportionally.
28407         Use free/xmalloc instead of xrealloc to avoid copying for very long
28408         paths.
28409
28410 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
28411
28412         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
28413         the empty string.
28414
28415 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
28416
28417         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
28418         address, not strdup.  Include <stdlib.h> and don't declare free().
28419
28420 2000-06-19  Jim Meyering  <meyering@lucent.com>
28421
28422         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
28423
28424 2000-06-18  Jim Meyering  <meyering@lucent.com>
28425
28426         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
28427
28428         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
28429         `checking whether...' message to be consistent with that of the
28430         lstat test.
28431
28432 2000-06-18  Jim Meyering  <meyering@lucent.com>
28433
28434         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
28435         Besides, these days every porting target provides a mkdir function.
28436
28437         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
28438         needed. (this snippet comes from src/system.h).
28439
28440 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
28441
28442         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
28443
28444 2000-06-15  Paul Eggert  <eggert@twinsun.com>
28445
28446         * lib/human.c (adjust_value): New function.
28447         (human_readable_inexact): Apply rounding style even when
28448         printing approximate values.
28449
28450 2000-06-14  Paul Eggert  <eggert@twinsun.com>
28451
28452         * lib/human.c (human_readable_inexact): Allow an input block
28453         size that is not a multiple of the output block size, and vice versa.
28454         Reported by Piergiorgio Sartor.
28455
28456 2000-06-14  Paul Eggert  <eggert@twinsun.com>
28457
28458         * lib/getdate.y (get_date): Apply relative times after time
28459         zone indicator, not before.  Reported by Todd A. Jacobs.
28460
28461 2000-06-13  Jim Meyering  <meyering@lucent.com>
28462
28463         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
28464
28465         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
28466
28467 2000-06-12  Paul Eggert  <eggert@twinsun.com>
28468
28469         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
28470
28471 2000-06-12  Jim Meyering  <meyering@lucent.com>
28472
28473         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
28474         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
28475         optional argument.
28476         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
28477         the optional argument, `lib'.
28478
28479 2000-06-08  Jim Meyering  <meyering@lucent.com>
28480
28481         * m4/largefile.m4: Remove file (now that it's part of autoconf).
28482
28483 2000-06-04  Paul Eggert  <eggert@twinsun.com>
28484
28485         Rewrite largefile configuration so that we don't need to run
28486         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
28487         AC_CANONICAL_HOST in configure.in -- jmm]
28488
28489         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
28490         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
28491         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
28492         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
28493         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
28494         All uses changed.
28495         Instead of inspecting the output of getconf, try to compile the
28496         test program without and with the macro definition.
28497         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
28498         for getconf.  Instead, check for the needed flags by compiling
28499         test programs.
28500
28501 2000-06-04  Paul Eggert  <eggert@twinsun.com>
28502
28503         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
28504
28505 2000-06-04  Jim Meyering  <meyering@lucent.com>
28506
28507         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
28508         SunOS 4.1.4 for which gid_t is an unsigned type.
28509
28510 2000-06-03  Jim Meyering  <meyering@lucent.com>
28511
28512         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
28513         now that autoconf requires that.
28514
28515         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
28516         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
28517         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
28518
28519 2000-06-03  Jim Meyering  <meyering@lucent.com>
28520
28521         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
28522
28523 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
28524
28525         * m4/glibc21.m4: New file.
28526         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
28527
28528 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
28529
28530         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
28531         newer, don't install charset.alias.
28532         * lib/config.charset: Change the Linux/glibc rules so they become empty
28533         on glibc-2.1 or newer.
28534
28535 2000-06-02  Jim Meyering  <meyering@lucent.com>
28536
28537         * lib/mountlist.c: Back out last change.  Instead, do this...
28538         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
28539         me_dummy member using the same `ignore'-testing code.
28540         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
28541         fs_type strings.
28542         From Mark D. Roth.
28543
28544 2000-05-29  Jim Meyering  <meyering@lucent.com>
28545
28546         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
28547         mounts with the `ignore' attribute.  Based on a patch from
28548         Mark D. Roth.
28549
28550 2000-05-28  Jim Meyering  <meyering@lucent.com>
28551
28552         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
28553         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28554         * m4/stat.m4: Likewise.
28555         * m4/lstat.m4: Likewise.
28556         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
28557
28558         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
28559         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
28560
28561 2000-05-26  Jim Meyering  <meyering@lucent.com>
28562
28563         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
28564
28565 2000-05-24  Jim Meyering  <meyering@lucent.com>
28566
28567         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
28568         autoconf requires that.
28569         * m4/lib-check.m4: Likewise.
28570         * m4/jm-macros.m4: Likewise.
28571         * m4/strftime.m4: Likewise.
28572
28573         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
28574         AC_CHECK_DECLS, now that autoconf requires that.
28575
28576 2000-05-22  Jim Meyering  <meyering@lucent.com>
28577
28578         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28579         * m4/lstat.m4: Likewise.
28580
28581 2000-05-22  Jim Meyering  <meyering@lucent.com>
28582
28583         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
28584
28585 2000-05-20  Jim Meyering  <meyering@lucent.com>
28586
28587         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
28588         (jm_PREREQ): Use it.
28589
28590 2000-05-18  Jim Meyering  <meyering@lucent.com>
28591
28592         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
28593         back, too, since it may have been modified by allocate_entry.
28594         (hash_delete): Rewrite to use neither the assignment operator
28595         nor the comma operator in an if-expression.
28596
28597 2000-05-15  Paul Eggert  <eggert@twinsun.com>
28598
28599         * lib/closeout.c:
28600         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
28601         Remove; no longer needed.
28602         "quotearg.h": Add include.
28603         (file_name): Do not bother to explicitly initialize to NULL; it's less
28604         efficient on some hosts.
28605         (close_stdout_status): Remove test as to whether stdout was already
28606         closed; it breaks for the case "echo x | sort >&-".
28607         Quote file name colons.
28608         Do not assume that _("write error") lacks format strings.
28609
28610 2000-05-15  Jim Meyering  <meyering@lucent.com>
28611
28612         * lib/version-etc.c (version_etc_copyright): Update the copyright
28613         string used in all --version output.
28614
28615 2000-05-14  Jim Meyering  <meyering@lucent.com>
28616
28617         * lib/closeout.c (close_stdout_set_file_name): New function.
28618         (close_stdout_status): Use new file-scoped global.
28619         Return right away if fstat says the stdout file descriptor is invalid.
28620         * lib/closeout.h (close_stdout_set_file_name): Declare.
28621
28622 2000-05-10  Jim Meyering  <meyering@lucent.com>
28623
28624         * lib/closeout.c [default_exit_status]: New file-scoped variable.
28625         (close_stdout_set_status): New function.
28626         * lib/closeout.h (close_stdout_set_status): Declare.
28627
28628 2000-05-09  Jim Meyering  <meyering@lucent.com>
28629
28630         * m4/gettext.m4: Rename this...
28631         * m4/libintl.m4: ...to this.
28632
28633 2000-05-08  Jim Meyering  <meyering@lucent.com>
28634
28635         * lib/long-options.c: Don't include closeout.h.
28636         (parse_long_options): Don't call close_stdout for --version.
28637
28638 2000-05-06  Paul Eggert  <eggert@twinsun.com>
28639
28640         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
28641         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
28642         2.1.3 bug.  This avoids a clash when files like regex.c define
28643         _GNU_SOURCE.
28644
28645 2000-05-06  Jim Meyering  <meyering@lucent.com>
28646
28647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
28648         (AC_REPLACE_FUNCS): Add strnlen.
28649
28650         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
28651         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
28652
28653         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
28654         AC_SEARCH_LIBS call for nanosleep.
28655         (LIB_NANOSLEEP): Set and AC_SUBST.
28656
28657 2000-05-06  Jim Meyering  <meyering@lucent.com>
28658
28659         * lib/strnlen.c: Undefine __strnlen and strnlen.
28660         [!weak_alias]: Define __strnlen to strnlen.
28661
28662         * lib/atexit.c: New file, from libiberty.
28663
28664 2000-05-06  Jim Meyering  <meyering@lucent.com>
28665
28666         * lib/closeout.c (close_stdout_status): Also check for errors on the
28667         stderr stream.
28668
28669 2000-05-05  Jim Meyering  <meyering@lucent.com>
28670
28671         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
28672         AC_SEARCH_LIBS call for clock_gettime.
28673         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
28674
28675         * m4/search-libs.m4: Update from autoconf.
28676
28677         su doesn't work on Solaris 2.6.
28678         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
28679         <shadow.h>.  Reported by Dragos Harabor.
28680
28681 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
28682
28683         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
28684         memcpy instead of xmalloc, xrealloc, path_concat.
28685         (locale_charset): Treat empty environment variables as absent.
28686         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
28687
28688 2000-05-04  Jim Meyering  <meyering@lucent.com>
28689
28690         * lib/getopt.c: Update from glibc.
28691         * lib/obstack.c: Likewise.
28692         * lib/obstack.h: Likewise.
28693         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
28694         file
28695
28696         * lib/regex.h: Likewise.
28697         * lib/strndup.c: Likewise.
28698         * lib/strnlen.c: New file, from glibc.
28699
28700 2000-05-03  Jim Meyering  <meyering@lucent.com>
28701
28702         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
28703
28704 2000-05-02  Paul Eggert  <eggert@twinsun.com>
28705
28706         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
28707         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
28708         compile-time test, rather than inspecting host and OS, to
28709         decide whether to define _LARGEFILE_SOURCE.
28710
28711 2000-05-01  Jim Meyering  <meyering@lucent.com>
28712
28713         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
28714
28715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
28716         Based on a patch from Bruno Haible.
28717
28718 2000-05-01  Jim Meyering  <meyering@lucent.com>
28719
28720         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
28721
28722 2000-04-29  Jim Meyering  <meyering@lucent.com>
28723
28724         * lib/path-concat.c: Declare strdup only if it's not defined.
28725         * lib/canon-host.c: Likewise.
28726
28727 2000-04-28  Jim Meyering  <meyering@lucent.com>
28728
28729         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
28730         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
28731         is included first, then limits.h is included by locale.h by libintl.h.
28732         From John David Anglin.
28733
28734 2000-04-25  Jim Meyering  <meyering@lucent.com>
28735
28736         * lib/makepath.c (S_IRWXUGO): Define.
28737         (make_path): Always perform explicit chmod if MODE specifies any
28738         of the `special' permission bits.  Prompted by a bug report against
28739         install from Mate Wierdl and Joost van Baal.
28740
28741 2000-04-18  Jim Meyering  <meyering@lucent.com>
28742
28743         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
28744         (jm_PREREQ): Use it.
28745
28746 2000-04-18  Jim Meyering  <meyering@lucent.com>
28747
28748         * lib/README: New file.
28749
28750         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
28751         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
28752
28753 2000-04-17  Jim Meyering  <meyering@lucent.com>
28754
28755         Get it right :-)
28756         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
28757         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
28758         Suggestion from Akim Demaille.
28759
28760 2000-04-17  Jim Meyering  <meyering@lucent.com>
28761
28762         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
28763         the definition of it to rpl_strftime also defined-away the system's
28764         declaration.
28765
28766 2000-04-15  Jim Meyering  <meyering@lucent.com>
28767
28768         Use `C' to denote so-called `contiguous' files, the same way
28769         that tar does.
28770         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
28771         (ftypelet): Use S_ISCTG.
28772         From Michael Deutschmann.
28773
28774 2000-04-14  Jim Meyering  <meyering@lucent.com>
28775
28776         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
28777         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
28778         clobbered.
28779
28780 2000-04-14  Jim Meyering  <meyering@lucent.com>
28781
28782         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
28783
28784 2000-04-13  Jim Meyering  <meyering@lucent.com>
28785
28786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
28787         AH_VERBATIM to insert required #ifndef into config.h.in.
28788         Suggestion from Akim Demaille.
28789
28790 2000-04-12  Jim Meyering  <meyering@lucent.com>
28791
28792         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
28793         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
28794         Christian Krackowizer.
28795
28796         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
28797         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
28798         (AC_SYS_LARGEFILE): Require.
28799         (AM_C_PROTOTYPES): Require.
28800
28801 2000-04-08  Jim Meyering  <meyering@lucent.com>
28802
28803         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
28804         names don't conflict.  Reported by Eli Zaretskii.
28805
28806 2000-04-07  Jim Meyering  <meyering@lucent.com>
28807
28808         * lib/putenv.c: Move inclusion of errno.h so it follows that of
28809         sys/types.h, to work around system header problems on AIX 3.2.5.
28810         From Bruno Haible.
28811
28812 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
28813
28814         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
28815         bug.  Deal with the different error behavior of Irix iconv.
28816
28817 2000-04-05  Paul Eggert  <eggert@twinsun.com>
28818
28819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
28820         IRIX if the installer said otherwise.
28821
28822 2000-04-05  Jim Meyering  <meyering@lucent.com>
28823
28824         Portability tweaks required for ultrix4.3.
28825         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
28826         (jm_CHECK_DECLS): Add getutent to the list of functions.
28827         (_jm_DECL_HEADERS): Add utmpx.h.
28828         From John David Anglin.
28829
28830         * m4/strftime.m4: Back out the 2000-04-02 change.
28831         Instead of that change, simply undefine putenv in the test program.
28832
28833 2000-04-05  Jim Meyering  <meyering@lucent.com>
28834
28835         Portability tweaks required for ultrix4.3.
28836         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
28837         getutent.
28838         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
28839         * lib/canon-host.c: Declare strdup.
28840         * lib/path-concat.c: Likewise.
28841         From John David Anglin.
28842
28843 2000-04-04  Jim Meyering  <meyering@lucent.com>
28844
28845         Be more DOS 8.3-friendly.
28846         * lib/ref-add.sin: Renamed from ref-add.sed.in.
28847         * lib/ref-del.sin: Renamed from ref-del.sed.in.
28848         * lib/Makefile.am: Reflect renaming.
28849         Reported by Eli Zaretskii.
28850
28851         Use a temporary file name that won't clash with `charset.alias'
28852         in the DOS 8.3 name space.
28853         * lib/Makefile.am (charset_tmp): Define.
28854         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
28855         (uninstall-local): Likewise.
28856         Reported by Eli Zaretskii.
28857
28858 2000-04-03  Jim Meyering  <meyering@lucent.com>
28859
28860         * m4/gettext.m4: Fix typo in comment.
28861
28862         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
28863         textutils/configure.in).  Suggestion from Paul Eggert.
28864         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
28865
28866 2000-04-02  Paul Eggert  <eggert@twinsun.com>
28867
28868         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
28869         variable in the shell rather than using putenv, which isn't
28870         portable.  This avoids the configure-time inter-test dependency
28871         on the potentially-renamed putenv function.
28872
28873 2000-03-30  Paul Eggert  <eggert@twinsun.com>
28874
28875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
28876         before checking struct stat.st_blksize, so that
28877         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
28878
28879 2000-03-29  Paul Eggert  <eggert@twinsun.com>
28880
28881         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
28882         since strftime.c uses HAVE_STRFTIME to decide whether to use
28883         the underlying strftime.
28884
28885 2000-03-29  Paul Eggert  <eggert@twinsun.com>
28886
28887         * lib/time/strftime.c (my_strftime): Make sure we call the system
28888         strftime, not ourselves, when invoking the underlying strftime.
28889
28890 2000-03-24  Jim Meyering  <meyering@lucent.com>
28891
28892         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
28893         (charset_alias): Define.
28894         (install-exec-local): Factor out common code.
28895         (uninstall-local): Split lines longer than 80.
28896         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
28897         (SUFFIXES): Define.
28898         (.sed.in.sed): New rule.  Don't redirect directly to $@.
28899         (CLEANFILES): Add ref-add.sed and ref-del.sed.
28900
28901 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
28902
28903         * lib/config.charset: Output a line containing "Packages using this
28904         file".
28905         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
28906         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
28907         ref-del.sed): New rules.
28908
28909 2000-03-17  Jim Meyering  <meyering@lucent.com>
28910
28911         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
28912         Otherwise, include <strings.h>
28913
28914 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
28915
28916         * lib/unicodeio.c (utf8_wctomb): New function.
28917         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
28918         format instead of in UCS-4 with platform dependent endianness.
28919
28920 2000-03-10  Jim Meyering  <meyering@lucent.com>
28921
28922         * m4/lib-check.m4: Look for getspnam in -lgen, too.
28923         From Marco Franzen.
28924
28925 2000-03-07  Paul Eggert  <eggert@twinsun.com>
28926
28927         * lib/savedir.c (savedir): Work even if directory size is
28928         negative; this can happen with some screwy NFS configurations.
28929
28930 2000-03-06  Jim Meyering  <meyering@lucent.com>
28931
28932         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
28933         if it's NULL (because we ran out of memory).  From Bruno Haible.
28934
28935 2000-03-05  Jim Meyering  <meyering@lucent.com>
28936
28937         * lib/localcharset.c ("path-concat.h"): Include.
28938         (get_charset_aliases): Use path_concat instead of ANSI string
28939         concatenation.
28940
28941         * lib/unicodeio.h (PARAMS): Define.
28942         Use it to guard prototype.
28943
28944 2000-03-04  Jim Meyering  <meyering@lucent.com>
28945
28946         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
28947         for lib/localcharset.c.
28948
28949 2000-03-04  Jim Meyering  <meyering@lucent.com>
28950
28951         * lib/Makefile.am (install-exec-local): Create $(libdir) before
28952         installing into it.
28953         (uninstall-local): Uncomment this rule so `make distcheck' works
28954         once again.
28955
28956         * lib/unicodeio.c (<errno.h>): Include it.
28957         (errno): Declare if not defined.
28958
28959         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
28960
28961         * lib/config.charset: New version, incorporating remarks from a linux
28962         i18n mailing list.  From Bruno Haible.
28963
28964 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
28965
28966         * m4/codeset.m4: New file.
28967         * m4/iconv.m4: New file.
28968         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
28969
28970 2000-03-03  Jim Meyering  <meyering@lucent.com>
28971
28972         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
28973
28974 2000-03-02  Jim Meyering  <meyering@lucent.com>
28975
28976         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
28977         the messages come out on separate lines.
28978
28979         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
28980         rather than jm_CHECK_DECLARATIONS.
28981         * m4/decl.m4: Remove now-unused file.
28982
28983         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
28984         geteuid.
28985
28986 2000-03-02  Jim Meyering  <meyering@lucent.com>
28987
28988         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
28989
28990 2000-03-01  Jim Meyering  <meyering@lucent.com>
28991
28992         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
28993         * lib/unicodeio.c: Likewise.
28994
28995 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
28996
28997         * lib/config.charset: New file.
28998         * lib/localcharset.c: New file.
28999         * lib/unicodeio.h, lib/unicodeio.c: New files.
29000         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
29001         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
29002         (noinst_HEADERS): Add unicodeio.h.
29003         (all-local, install-exec-local, charset.alias): New targets.
29004
29005 2000-02-28  Paul Eggert  <eggert@twinsun.com>
29006
29007         * lib/quotearg.c (ALERT_CHAR): New macro.
29008         (quotearg_buffer_restyled): Use it.
29009
29010 2000-02-27  Jim Meyering  <meyering@lucent.com>
29011
29012         * m4/check-decl.m4: Add getenv to the list.
29013
29014 2000-02-27  Jim Meyering  <meyering@lucent.com>
29015
29016         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
29017         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
29018
29019         * lib/backupfile.c: Guard inclusion of stdlib.h with
29020         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
29021         Declare malloc if needed.
29022
29023         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
29024         `#ifndef HAVE_DECL..'
29025         now that autoconf always defines the HAVE_DECL_ symbols.
29026         * lib/human.c: Likewise.
29027         * lib/same.c: Likewise.
29028         * lib/strtoumax.c: Likewise.
29029
29030         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
29031         declaration check was not run.
29032         * lib/hash.c: Likewise.
29033         * lib/human.c: Likewise.
29034         * lib/same.c: Likewise.
29035         * lib/strtoumax.c: Likewise.
29036
29037         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
29038         `.', then first look up the entire `.'-containing string as a login
29039         name.
29040
29041 2000-02-23  Jim Meyering  <meyering@lucent.com>
29042
29043         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
29044         in place of my hack.
29045
29046 2000-02-18  Paul Eggert  <eggert@twinsun.com>
29047
29048         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
29049         (textint): New typedef.
29050         (parser_control): Member year changed from int to textint.
29051         All uses changed.
29052         (YYSTYPE): Removed; replaced by %union with int and textint members.
29053         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
29054         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
29055         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
29056         (tSNUMBER, tUNUMBER): Now of type <textintval>.
29057         (date, number, to_year): Use width of number in digits, not its value,
29058         to determine whether it's a 2-digit year, or a 2-digit time.
29059         (yylex): Store number of digits of numeric tokens.
29060         Reported by John Kendall.
29061
29062         (parser_control): Changed from struct parser_control to typedef (for
29063         consistency).  All uses changed.
29064
29065         (tID): Removed; not used.
29066         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
29067
29068 2000-02-14  Paul Eggert  <eggert@twinsun.com>
29069
29070         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
29071         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
29072
29073 2000-02-12  Jim Meyering  <meyering@lucent.com>
29074
29075         * lib/userspec.c (ISDIGIT): Define it.
29076         (isdigit): Remove definition.
29077         (is_number): Use ISDIGIT, not isdigit.
29078         <libintl.h>: Include.
29079         (_ and N_): Define.
29080         (parse_user_spec): Mark translatable strings.
29081
29082 2000-02-10  Jim Meyering  <meyering@lucent.com>
29083
29084         With these changes, nanosleep.[ch] are finally enough like the other
29085         lib/* replacement files to compile on a few more losing systems.
29086
29087         * lib/nanosleep.h: Don't include config.h.
29088         Remove prototype from declaration of nanosleep.
29089         (PARAMS): Remove now-unneeded definition.
29090         * lib/nanosleep.c: #undef nanosleep.
29091         (rpl_nanosleep): Rename from nanosleep.
29092
29093 2000-02-10  Jim Meyering  <meyering@lucent.com>
29094
29095         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
29096         gnu_nanosleep to rpl_nanosleep.
29097
29098 2000-02-09  Jim Meyering  <meyering@lucent.com>
29099
29100         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
29101         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
29102
29103 2000-02-08  Akim Demaille  <akim@epita.fr>
29104
29105         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
29106         `[' and `]' and remove uses of `changequote'.
29107         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
29108         (AC_SYS_LARGEFILE): Likewise.
29109         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29110         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
29111         of changequote.
29112         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
29113         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
29114         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
29115         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
29116
29117 2000-02-05  Jim Meyering  <meyering@lucent.com>
29118
29119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
29120         Remove explicit use of AC_HEADER_TIME.  It is required by
29121         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
29122         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
29123         in autoconf whereby the expansion of the latter ended up preceding
29124         the expansion of its prerequisite, AC_HEADER_TIME.
29125         Reported by Volker Borchert.
29126
29127 2000-02-03  Jim Meyering  <meyering@lucent.com>
29128
29129         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
29130
29131 2000-02-03  Jim Meyering  <meyering@lucent.com>
29132
29133         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
29134         rather than with `#if HAVE_UTMPNAME'.
29135
29136 2000-02-02  Jim Meyering  <meyering@lucent.com>
29137
29138         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
29139         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
29140         Reported by Eli Zaretskii.
29141
29142 2000-02-01  Jim Meyering  <meyering@lucent.com>
29143
29144         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
29145
29146 2000-01-31  Jim Meyering  <meyering@lucent.com>
29147
29148         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
29149         functions.  Add the time.h and sys/time.h headers along with the
29150         AC_REQUIRE'ment of AC_HEADER_TIME.
29151
29152 2000-01-31  Jim Meyering  <meyering@lucent.com>
29153
29154         * lib/nanosleep.h (nanosleep): Guard declaration with
29155         `#if ! HAVE_DECL_NANOSLEEP'.
29156         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
29157         the declaration in that vendor's sys/timers.h.
29158         Reported by Christian Krackowizer.
29159
29160         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
29161         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
29162         (ISPRINT): Likewise.
29163         Reported by Tom Tromey.
29164
29165 2000-01-30  Jim Meyering  <meyering@lucent.com>
29166
29167         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
29168
29169         * m4/prereq.m4 (utmp_includes): Define.
29170         Check for ut_user and ut_name members in both struct utmpx
29171         and struct utmp.
29172
29173 2000-01-30  Jim Meyering  <meyering@lucent.com>
29174
29175         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
29176         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
29177         header files where only utmpx.ut_user is declared.
29178
29179         * lib/readutmp.h (UT_USER): Define.
29180
29181 2000-01-29  Jim Meyering  <meyering@lucent.com>
29182
29183         * m4/lib-check.m4: New file containing library-related checks from
29184         fileutils and sh-utils (textutils had none).
29185
29186 2000-01-28  Jim Meyering  <meyering@lucent.com>
29187
29188         * m4/perl.m4: Change format of warning message to look more like that
29189         from the missing script.  Suggestion from François Pinard.
29190
29191 2000-01-25  Jim Meyering  <meyering@lucent.com>
29192
29193         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
29194         well as time.h in the compile check.
29195         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
29196         Fix typo in cross-compiling case: s/yes/no/.
29197
29198 2000-01-23  Jim Meyering  <meyering@lucent.com>
29199
29200         * m4/jm-macros.m4: Move df-related tests here from
29201         fileutils/configure.in
29202
29203         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
29204         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
29205
29206         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
29207         s/space/ac_fsusage_space/.
29208         (jm_FILE_SYSTEM_USAGE): Take two parameters.
29209
29210         * m4/ftruncate.m4: New file (derived from part of
29211         fileutils/configure.in).
29212         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
29213         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
29214
29215         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
29216         AC_SUBST these here, rather than just in sh-util/configure.in, so
29217         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
29218         all the same.
29219         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
29220         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
29221         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
29222         (AC_SUBST(POW_LIBM)): Likewise.
29223         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
29224
29225 2000-01-23  Jim Meyering  <meyering@lucent.com>
29226
29227         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
29228         obstack.c.
29229
29230 2000-01-22  Jim Meyering  <meyering@lucent.com>
29231
29232         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
29233
29234         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
29235
29236         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
29237         configure.in
29238         (AC_CHECK_HEADERS): Likewise for sh-utils.
29239         (AC_CHECK_HEADERS): Likewise for textutils.
29240         Merge the three lists of headers.
29241
29242         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
29243         from fileutils' configure.in.
29244
29245         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
29246         code. Moved tests into their own function (_jm_DECL_HEADERS) in
29247         check-decl.m4.
29248
29249         * m4/check-decl.m4: Use #if rather than #ifdef.
29250         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
29251         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
29252         (_jm_DECL_HEADERS): Define new function.
29253         (jm_CHECK_DECLARATIONS): Require it.
29254
29255 2000-01-22  Jim Meyering  <meyering@lucent.com>
29256
29257         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
29258         [! HAVE_DECL_STRTOULL]: Declare strtoull.
29259         Required for some AIX systems.  Reported by Christian Krackowizer.
29260         [TESTING] (main): New function.
29261
29262         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
29263         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
29264         letters.
29265
29266         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
29267         iswprint.
29268
29269         * lib/strverscmp.c (ISDIGIT): Define.
29270         (strverscmp): Use ISDIGIT, not isdigit.
29271
29272 2000-01-19  Jim Meyering  <meyering@lucent.com>
29273
29274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
29275         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
29276         defines `struct timespec' in <sys/time.h>
29277
29278         * m4/c-bs-a.m4: Remove uses of changequote altogether.
29279         Thanks to Akim for explaining.
29280
29281 2000-01-17  Paul Eggert  <eggert@twinsun.com>
29282
29283         * lib/nanosleep.c (nanosleep):
29284         Don't use SA_INTERRUPT to decide whether to call sigaction, as
29285         POSIX.1 doesn't require SA_INTERRUPT and some systems
29286         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
29287         it's been part of POSIX.1 since day 1 (in 1988).
29288
29289 2000-01-17  Jim Meyering  <meyering@lucent.com>
29290
29291         * lib/interlock: Remove unused file.  Reported by François Pinard.
29292
29293 2000-01-16  Paul Eggert  <eggert@twinsun.com>
29294
29295         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
29296         alert, backslash, formfeed, and vertical tab unnecessarily in
29297         shell quoting style.
29298
29299 2000-01-16  Jim Meyering  <meyering@lucent.com>
29300
29301         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
29302         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
29303         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
29304         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
29305
29306 2000-01-16  Jim Meyering  <meyering@lucent.com>
29307
29308         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
29309         because the latter didn't work.
29310
29311 2000-01-15  Jim Meyering  <meyering@lucent.com>
29312
29313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
29314         (AC_REPLACE_FUNCS): Add memcpy and memset.
29315         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
29316         Add strpbrk.
29317         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
29318
29319 2000-01-12  Jim Meyering  <meyering@lucent.com>
29320
29321         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
29322         (jm_PREREQ): Use it.
29323         (jm_PREREQ_READUTMP): New macro.
29324         (jm_PREREQ): Use it.
29325
29326 2000-01-11  Paul Eggert  <eggert@twinsun.com>
29327
29328         Quote multibyte characters correctly.
29329         * m4/c-bs-a.m4: New file.
29330         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
29331         (jm_PREREQ): Use it.
29332
29333 2000-01-11  Paul Eggert  <eggert@twinsun.com>
29334
29335         * m4/uintmax_t.m4: Port to autoconf 2.13.
29336
29337 2000-01-08  Jim Meyering  <meyering@ascend.com>
29338
29339         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
29340         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
29341
29342 2000-01-04  Jim Meyering  <meyering@ascend.com>
29343
29344         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
29345         jm_STRUCT_DIRENT_D_TYPE.
29346         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
29347         jm_STRUCT_DIRENT_D_INO.
29348         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
29349         jm_STRUCT_UTIMBUF.
29350         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
29351         renamings.
29352         * m4/utime.m4: Likewise.
29353
29354         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
29355         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
29356
29357 2000-01-03  Paul Eggert  <eggert@twinsun.com>
29358
29359         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
29360         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
29361
29362 2000-01-02  Jim Meyering  <meyering@ascend.com>
29363
29364         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
29365         remember if this is necessary.
29366
29367 1999-12-26  Jim Meyering  <meyering@ascend.com>
29368
29369         * m4/jm-macros.m4: Use it here.
29370         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
29371
29372 1999-12-23  Jim Meyering  <meyering@ascend.com>
29373
29374         * m4/jm-macros.m4: Check for clock_gettime (moved from
29375         fileutils/configure.in)
29376         Check for gettimeofday.
29377
29378 1999-12-20  Jim Meyering  <meyering@ascend.com>
29379
29380         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
29381         autoconf-2.14a-1999-12-20.
29382
29383 1999-12-19  Jim Meyering  <meyering@ascend.com>
29384
29385         * m4/lstat-slash.m4: New file.
29386         * m4/jm-macros.m4: Use the new macro:
29387         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29388
29389 1999-12-07  Jim Meyering  <meyering@ascend.com>
29390
29391         * m4/perl.m4: Require that File::Compare be available, too.
29392         Too many systems seem to lack it.
29393
29394         * m4/strftime.m4: Add checks for most of the cpp macros tested in
29395         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
29396
29397 1999-11-18  Paul Eggert  <eggert@twinsun.com>
29398
29399         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
29400         problem with the QNX 4.25 shell, which doesn't propagate exit
29401         status of failed commands inside shell assignments.
29402
29403 1999-11-17  Jim Meyering  <meyering@ascend.com>
29404
29405         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
29406
29407 1999-11-07  Jim Meyering  <meyering@ascend.com>
29408
29409         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
29410
29411 1999-11-06  Jim Meyering  <meyering@ascend.com>
29412
29413         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
29414         * m4/jm-macros.m4 (jm_MACROS): Use it here.
29415
29416 1999-11-05  Jim Meyering  <meyering@ascend.com>
29417
29418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
29419         configure.in of textutils, fileutils, and sh-utils into this one
29420         (shared between those packages) file.
29421         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
29422         AC_STRUCT_ST_BLKSIZE.
29423
29424 1999-11-03  Jim Meyering  <meyering@ascend.com>
29425
29426         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
29427         of AC_CHECK_TYPE checks includes unistd.h.
29428         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
29429         Suggestion from Akim Demaille.
29430
29431 1999-10-30  Jim Meyering  <meyering@ascend.com>
29432
29433         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
29434         m4-quoted string.
29435         * m4/ls-mntd-fs.m4: Likewise.
29436         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
29437         * m4/jm-winsz1.m4: Likewise.
29438
29439         * m4/const.m4: Remove file, since the fix made it into the experimental
29440         version of autoconf.
29441         * m4/mktime.m4: Likewise.
29442
29443         * m4/check-type.m4: Remove file, now that the latest version of
29444         AC_CHECK_TYPE takes a third arg to specify additional #includes.
29445
29446         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
29447         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
29448         AC_CHECK_TYPE.
29449
29450 1999-10-04  Jim Meyering  <meyering@ascend.com>
29451
29452         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
29453
29454 1999-09-22  Paul Eggert  <eggert@twinsun.com>
29455
29456         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
29457         2.95.1 bug with HP-UX 10.20.
29458
29459 1999-09-17  Jim Meyering  <meyering@ascend.com>
29460
29461         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
29462         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
29463         due to missing strdup (against sh-utils-2.0).
29464
29465 1999-08-29  Jim Meyering  <meyering@ascend.com>
29466
29467         * m4/jm-macros.m4: Require jm_BISON.
29468         * m4/bison.m4: New file.
29469
29470 1999-08-17  Paul Eggert  <eggert@twinsun.com>
29471
29472         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
29473         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
29474
29475 1999-08-05  Jim Meyering  <meyering@ascend.com>
29476
29477         * m4/getline.m4: Rename test file from conftestdata to conftest.data
29478         to avoid conflicts with `conftest' on 8+3 filesystems.
29479         Suggestion from Eli Zaretskii.
29480
29481 1999-08-04  Jim Meyering  <meyering@ascend.com>
29482
29483         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
29484         fileutils and sh-utils (textutils's getline test was inadequate).
29485         (AM_FUNC_GETLINE): Run this test.
29486         (AC_CHECK_FUNCS): Check for getdelim.
29487         Reported by Bob Proulx.
29488
29489 1999-08-02  Jim Meyering  <meyering@ascend.com>
29490
29491         * m4/jm-macros.m4: Add a comment.
29492
29493 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29494
29495         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
29496         <inttypes.h> defines strtoumax as a macro (and not as a
29497         function).
29498
29499 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29500
29501         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
29502         that we can shift, multiply and divide unsigned long long
29503         values; Ultrix cc can't do it.
29504
29505 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29506
29507         * m4/mktime.m4: New file, which is a preview of what should appear
29508         in the next public autoconf release.
29509
29510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29511
29512         * m4/lfs.m4: Remove this file.
29513         * m4/largefile.m4: New file.  It contains the old contents of
29514         lfs.m4, except that all names with prefix AC_LFS have been
29515         changed to use the prefix AC_SYS_LARGEFILE instead, to be
29516         compatible with future autoconf versions.  Also, some minor m4
29517         quoting problems have been fixed.
29518
29519 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29520
29521         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
29522         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
29523         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
29524         and simplify the shell code.
29525
29526 1999-08-01  Jim Meyering  <meyering@ascend.com>
29527
29528         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
29529         m4.
29530
29531 1999-07-20  Jim Meyering  <meyering@ascend.com>
29532
29533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
29534
29535 1999-07-15  Jim Meyering  <meyering@ascend.com>
29536
29537         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
29538
29539 1999-05-22  Jim Meyering  <meyering@ascend.com>
29540
29541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
29542
29543 1999-05-20  Jim Meyering  <meyering@ascend.com>
29544
29545         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
29546         Add a colon after each `then' in case $4 is empty.
29547
29548 1999-05-16  Jim Meyering  <meyering@ascend.com>
29549
29550         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
29551
29552 1999-05-10  Jim Meyering  <meyering@ascend.com>
29553
29554         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
29555
29556         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
29557         AC_FUNC_MKTIME.
29558
29559 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
29560
29561         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
29562
29563 1999-05-04  Paul Eggert  <eggert@twinsun.com>
29564
29565         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
29566         not CPPFLAGS, so that linking works correctly in IRIX.
29567
29568 1999-04-30  Paul Eggert  <eggert@twinsun.com>
29569
29570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
29571
29572 1999-04-20  Paul Eggert  <eggert@twinsun.com>
29573
29574         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
29575         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
29576         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
29577         jm_AC_TYPE_UNSIGNED_LONG_LONG.
29578         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
29579
29580         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
29581
29582 1999-04-20  Jim Meyering  <meyering@ascend.com>
29583
29584         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
29585         AC_REPLACE xstroull if necessary.  From Paul Eggert.
29586         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
29587
29588 1999-04-18  Jim Meyering  <meyering@ascend.com>
29589
29590         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
29591         * m4/jm-macros.m4: Use it.
29592
29593 1999-04-06  Jim Meyering  <meyering@ascend.com>
29594
29595         * m4/strftime.m4: Remove test for %f.
29596
29597 1999-03-29  Jim Meyering  <meyering@ascend.com>
29598
29599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
29600         superset of the AC_TYPE_* checks in the textutils, fileutils,
29601         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
29602         AC_TYPE_PID_T.
29603
29604 1999-03-28  Jim Meyering  <meyering@ascend.com>
29605
29606         * m4/jm-macros.m4: Define GNU_PACKAGE here.
29607         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
29608         replaced e.g., in the *.sh files of the sh-utils.
29609
29610 1999-03-20  Jim Meyering  <meyering@ascend.com>
29611
29612         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
29613         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
29614         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
29615
29616 1999-03-19  Jim Meyering  <meyering@ascend.com>
29617
29618         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
29619
29620 1999-03-12  Jim Meyering  <meyering@ascend.com>
29621
29622         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
29623
29624 1999-03-07  Jim Meyering  <meyering@ascend.com>
29625
29626         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
29627         declared.
29628
29629 1999-02-17  Jim Meyering  <meyering@ascend.com>
29630
29631         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
29632         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
29633
29634 1999-02-07  Jim Meyering  <meyering@ascend.com>
29635
29636         * m4/group-member.m4: New file -- extracted from sh-utils'
29637         configure.in.
29638
29639         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
29640         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
29641
29642 1999-02-06  Jim Meyering  <meyering@ascend.com>
29643
29644         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
29645         * m4/fnmatch.m4: Likewise.
29646         * m4/getgroups.m4: Likewise.
29647         * m4/lstat.m4: Likewise.
29648         * m4/malloc.m4: Likewise.
29649         * m4/putenv.m4: Likewise.
29650         * m4/realloc.m4: Likewise.
29651         * m4/regex.m4: Likewise.
29652         * m4/stat.m4: Likewise.
29653         * m4/strftime.m4: Likewise.
29654         Suggestion from Alain Magloire.
29655
29656         * m4/chown.m4: Use `.$ac_objext', not `.o'.
29657         * m4/fnmatch.m4: Likewise.
29658         * m4/getgroups.m4: Likewise.
29659         * m4/getline.m4: Likewise.
29660         * m4/lstat.m4: Likewise.
29661         * m4/malloc.m4: Likewise.
29662         * m4/memcmp.m4: Likewise.
29663         * m4/putenv.m4: Likewise.
29664         * m4/realloc.m4: Likewise.
29665         * m4/regex.m4: Likewise.
29666         * m4/stat.m4: Likewise.
29667         * m4/strftime.m4: Likewise.
29668         Suggestion from Alain Magloire.
29669
29670         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
29671         an argument.
29672
29673         * m4/regex.m4: Add a run-time Test for proper operation of
29674         re_compile_pattern.
29675
29676 1999-01-31  Jim Meyering  <meyering@ascend.com>
29677
29678         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
29679
29680 1999-01-30  Jim Meyering  <meyering@ascend.com>
29681
29682         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
29683
29684         * m4/jm-mktime.m4: Make this a wrapper around the official
29685         AM_FUNC_MKTIME rather than my private copy, now that the official one
29686         is up to date.
29687         * m4/mktime.m4: Remove file.
29688
29689         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
29690         * m4/uptime.m4: Likewise.
29691         * m4/uintmax_t.m4: Likewise.
29692
29693 1999-01-28  Jim Meyering  <meyering@ascend.com>
29694
29695         * m4/jm-macros.m4: Use jm_AFS.
29696         * m4/afs.m4: New file (from fileutils' configure.in).
29697
29698         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
29699         * m4/chown.m4: Likewise.
29700         * m4/d-ino.m4: Likewise.
29701         * m4/d-type.m4: Likewise.
29702         * m4/fnmatch.m4: Likewise.
29703         * m4/getgroups.m4: Likewise.
29704         * m4/gettext.m4: Likewise.
29705         * m4/jm-mktime.m4: Likewise.
29706         * m4/jm-winsz2.m4: Likewise.
29707         * m4/lcmessage.m4: Likewise.
29708         * m4/ls-mntd-fs.m4: Likewise.
29709         * m4/malloc.m4: Likewise.
29710         * m4/memcmp.m4: Likewise.
29711         * m4/putenv.m4: Likewise.
29712         * m4/realloc.m4: Likewise.
29713         * m4/st_mtim.m4: Likewise.
29714         * m4/strftime.m4: Likewise.
29715
29716 1999-01-16  Jim Meyering  <meyering@ascend.com>
29717
29718         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
29719         (ARGMATCH_DIE_DECL): Define.
29720
29721 1999-01-12  Jim Meyering  <meyering@ascend.com>
29722
29723         * m4/Makefile.am.in: Rewrite to avoid using fmt.
29724         Reported by Lars Hecking.
29725
29726 1999-01-10  Jim Meyering  <meyering@ascend.com>
29727
29728         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
29729         gross kludge.
29730         * m4/inttypes_h.m4: Likewise.
29731         * m4/lstat.m4: Likewise.
29732         * m4/malloc.m4: Likewise.
29733         * m4/readdir.m4: Likewise.
29734         * m4/realloc.m4: Likewise.
29735         * m4/st_dm_mode.m4: Likewise.
29736         * m4/stat.m4: Likewise.
29737         * m4/utimbuf.m4: Likewise.
29738         * m4/utimes.m4: Likewise.
29739
29740         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
29741         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
29742         comments in config.h.in are meaningful.
29743
29744         * m4/jm-macros.m4: Require autoconf-2.13 here.
29745
29746         * m4/regex.m4: By default, don't use the included regex.c on systems
29747         with glibc 2.  Suggestion from Uli Drepper.
29748
29749 1999-01-02  Jim Meyering  <meyering@ascend.com>
29750
29751         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
29752
29753 1998-12-18  Jim Meyering  <meyering@ascend.com>
29754
29755         * m4/Makefile.am.in (Makefile.am): Simplify rule.
29756         Based on a suggestion from Lars Hecking.
29757
29758 1998-11-16  Paul Eggert  <eggert@twinsun.com>
29759
29760         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
29761
29762 1998-11-16  Jim Meyering  <meyering@ascend.com>
29763
29764         * m4/lfs.m4: Double-quote the `uname...` expression.
29765
29766 1998-11-14  Jim Meyering  <meyering@ascend.com>
29767
29768         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
29769         * m4/stat.m4: Likewise.
29770
29771 1998-11-03  Jim Meyering  <meyering@ascend.com>
29772
29773         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
29774         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
29775
29776 1998-10-18  Jim Meyering  <meyering@ascend.com>
29777
29778         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
29779
29780 1998-10-17  Jim Meyering  <meyering@ascend.com>
29781
29782         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
29783         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
29784         calls for those previously hard-coded headers.  Instead, take a new
29785         parameter.
29786         (jm_CHECK_DECLARATIONS): Reflect interface change.
29787         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
29788         (jm_CHECK_DECL_LOCALTIME_R): New macro.
29789
29790         * m4/mktime.m4: Test for spring-forward gap before long-running test.
29791
29792 1998-10-14  Jim Meyering  <meyering@ascend.com>
29793
29794         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
29795         instead of "TZ=America/Vancouver".  From Paul Eggert.
29796
29797 1998-10-11  Jim Meyering  <meyering@ascend.com>
29798
29799         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
29800         This adds a test for a recently added compatibility fix for mktime.c.
29801         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
29802
29803 1998-09-27  Jim Meyering  <meyering@ascend.com>
29804
29805         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
29806
29807         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
29808         ../configure.in, including a change from Gordon Matzigkeit to allow
29809         cross-compiling for the Hurd.
29810
29811         * m4/glibc.m4: New file/macro to test for the GNU C Library
29812         versions 1 and 2.  From Gordon Matzigkeit.
29813         Indent.
29814
29815 1998-09-21  Jim Meyering  <meyering@ascend.com>
29816
29817         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
29818
29819 1998-08-18  Paul Eggert  <eggert@twinsun.com>
29820
29821         Port nanosecond-resolution times to UnixWare 2.1.2 and
29822         pedantic Solaris 2.6.
29823
29824         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
29825         AC_STRUCT_ST_MTIM.
29826         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
29827         Generate name of ns member, instead of just 1 or undef.
29828         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
29829
29830 1998-08-15  Jim Meyering  <meyering@ascend.com>
29831
29832         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
29833         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
29834         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
29835         instead of jm_TYPE_SSIZE_T.
29836
29837 1998-08-12  Jim Meyering  <meyering@ascend.com>
29838
29839         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
29840
29841 1998-08-02  Jim Meyering  <meyering@ascend.com>
29842
29843         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
29844         in acconfig.h manually.
29845
29846 1998-07-31  Paul Eggert  <eggert@twinsun.com>
29847
29848         * m4/st_mtim.m4: New file.
29849
29850 1998-07-28  Jim Meyering  <meyering@ascend.com>
29851
29852         * m4/utimes.m4: Undef stat.
29853
29854 1998-07-25  Jim Meyering  <meyering@ascend.com>
29855
29856         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
29857         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
29858
29859 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
29860
29861         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
29862         uid and gid actually remain unchanged.
29863
29864 1998-07-07  Jim Meyering  <meyering@ascend.com>
29865
29866         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
29867
29868 1998-07-04  Jim Meyering  <meyering@ascend.com>
29869
29870         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
29871         to prove that this macro can be used in packages without regex.c.
29872
29873 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
29874
29875         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
29876         is to be used.
29877
29878 1998-07-03  Jim Meyering  <meyering@ascend.com>
29879
29880         * m4/gettext.m4: Add -lintl if it's found to be necessary.
29881
29882         * m4/gettext.m4: New file -- from gettext-0.10.35.
29883         * m4/lcmessage.m4: Likewise.
29884         * m4/progtest.m4: Likewise.
29885
29886         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
29887         * m4/jm-macros.m4: Require the new macro.
29888
29889 1998-06-29  Jim Meyering  <meyering@ascend.com>
29890
29891         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
29892         for the definition of NGROUPS (used in a system header included
29893         by sys/mount.h).
29894
29895 1998-06-28  Jim Meyering  <meyering@ascend.com>
29896
29897         * m4/ls-mntd-fs.m4: New file.
29898         * m4/fstypename.m4: New file.
29899
29900         * m4/jm-macros.m4: Require the new macro.
29901         * m4/jm-glibc-io.m4: New file.
29902
29903 1998-05-19  Jim Meyering  <meyering@ascend.com>
29904
29905         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
29906         * m4/lchown.m4: New file.
29907
29908         * m4/Makefile.am.in: New file.
29909         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
29910
29911 1998-05-14  Jim Meyering  <meyering@ascend.com>
29912
29913         * m4/Makefile.am (EXTRA_DIST): Add them.
29914         * m4/jm-macros.m4: New file.
29915         * m4/utimbuf.m4: New file.
29916
29917 1998-05-12  Jim Meyering  <meyering@ascend.com>
29918
29919         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
29920
29921 1998-05-11  Jim Meyering  <meyering@ascend.com>
29922
29923         * m4/isc-posix.m4: New file.
29924
29925 1998-05-10  Jim Meyering  <meyering@ascend.com>