03eaefa9f01359a7d8a8ec46c85aa09d34922ca4
[gnulib.git] / ChangeLog
1 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
2
3         * build-aux/bootstrap: Remove stray dot.
4         Make sure build_aux settings are honored when linking
5         gnulib_extra_files.
6
7 2007-06-19  Eric Blake  <ebb9@byu.net>
8
9         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
10         Allow compilation on cygwin.
11
12 2007-06-19  Jim Meyering  <jim@meyering.net>
13
14         xreadlink-with-size: Remove module.  No longer used.
15         Ex-callers now use xreadlink or mreadlink-with-size.
16         * modules/xreadlink-with-size: Remove module.
17         * lib/xreadlink-with-size.c: Remove file.
18         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
19         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
20         just before the function definition *is* accurate.
21
22         Eliminate one way canonicalize_filename_mode could exit.
23         * lib/canonicalize.c (canonicalize_filename_mode):
24         Use mreadlink_with_size, not xreadlink_with_size.
25
26 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
27
28         Detect porting problems to FreeBSD/arm, which has time_t wider than
29         long int.  Original problem reported for GNU diff by Xin Li in
30         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31         * modules/getdate (Depends-on): Add intprops, verify.
32         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33         is an integer type no wider than long int.
34
35 2007-06-18  Jim Meyering  <jim@meyering.net>
36
37         New module: mreadlink-with-size.
38         * MODULES.html.sh: Add mreadlink-with-size.
39         * modules/mreadlink-with-size: New module
40         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41         not xreadlink-with-size.
42         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43
44 2007-06-16  Bruno Haible  <bruno@clisp.org>
45
46         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48         Reported by Gary V. Vaughan <gary@gnu.org>.
49
50 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51
52         Revamp lchown so that it lives in unistd.h where it belongs.
53         * lib/lchown.h: Remove.
54         * lib/dirchownmod.c: Don't include lib/lchown.h.
55         * lib/fchownat.c: Likewise.
56         * lib/openat.c: Likewise.
57         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58         does not follow symlinks.
59         (EOPNOTSUPP): Define if not defined.
60         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61         is defined to 0.
62         (lchown): New decl.
63         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64         Do not check for lchown decl.
65         Set REPLACE_LCHOWN.
66         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67         REPLACE_LCHOWN.
68         * modules/chown: Make it clear it follows symlinks.
69         * modules/lchown: Make it clear it doesn't follow symlinks.
70         (Files): Remove lib/lchown.h
71         (Depends-on): Add unistd.
72         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
73         (Include): Include <unistd.h>, not "lchown.h".
74         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
75         REPLACE_LCHOWN.
76
77 2007-06-15  Jim Meyering  <jim@meyering.net>
78
79         Change license (GPL to LGPL) of fsusage and dependents.
80         * modules/fsusage (License): Change to LGPL.
81         * modules/full-read (License): Likewise.
82         * modules/full-write (License): Likewise.
83         * modules/safe-read (License): Likewise.
84         * modules/safe-write (License): Likewise.
85
86 2007-06-14  Ben Pfaff  <blp@gnu.org>
87
88         Missing part of allocsa -> malloca transition.
89         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
90         gl_MALLOCA.
91
92 2007-06-12  Bruno Haible  <bruno@clisp.org>
93
94         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
95         to ia64, x86_64, i386.
96         Reported by Eric Blake.
97
98 2007-06-12  Bruno Haible  <bruno@clisp.org>
99
100         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
101         cross-compiling to x86_64.
102
103 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
104
105         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
106         glitch reported by Ralf Wildenhues in
107         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
108
109         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
110         Vin Shelton.
111
112 2007-06-11  Bruno Haible  <bruno@clisp.org>
113
114         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
115         replacement string.
116         Reported by Eric Blake.
117
118 2007-06-10  Bruno Haible  <bruno@clisp.org>
119
120         Prepare vasnprintf code for use with Unicode strings.
121         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
122         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
123         TYPE_U32_STRING.
124         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
125         a_u32_string variants.
126         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
127         * lib/printf-args.c: Don't include config.h and the specification
128         header if PRINTF_FETCHARGS is already defined.
129         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
130         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
131         TYPE_U16_STRING, TYPE_U32_STRING.
132         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
133         u16_directive, u16_directives, u32_directive, u32_directives): New
134         types.
135         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
136         New declarations.
137         * lib/printf-parse.c: Don't include config.h and the specification
138         header if PRINTF_PARSE is already defined. Eliminate the set of
139         parameters for WIDE_CHAR_VERSION; the user of this file must provide
140         them now. Include c-ctype.h.
141         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
142         directive and CHAR_T_ONLY_ASCII.
143         * lib/vasnprintf.c: Don't include config.h and the specification header
144         if VASNPRINTF is already defined.
145         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
146         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
147         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
148         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
149         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
150         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
151         code accordingly.
152         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
153         pad_ourselves also in this case, with the 'c' and 's' directives, and
154         with a different notion of "width".
155         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
156
157 2007-06-10  Bruno Haible  <bruno@clisp.org>
158
159         * modules/unistr/u32-mbsnlen: New file.
160         * lib/unistr/u32-mbsnlen.c: New file.
161
162         * modules/unistr/u16-mbsnlen: New file.
163         * lib/unistr/u16-mbsnlen.c: New file.
164
165         * modules/unistr/u8-mbsnlen: New file.
166         * lib/unistr/u8-mbsnlen.c: New file.
167
168         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
169         declarations.
170
171 2007-06-10  Bruno Haible  <bruno@clisp.org>
172
173         * lib/string_.h (mbsnlen): New declaration.
174         * lib/mbsnlen.c: New file.
175         * m4/mbsnlen.m4: New file.
176         * modules/mbsnlen: New file.
177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
178         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
179         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
180
181 2007-06-10  Bruno Haible  <bruno@clisp.org>
182
183         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
184
185 2007-06-10  Bruno Haible  <bruno@clisp.org>
186
187         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
188         * lib/mbuiter.h: Likewise.
189
190 2007-06-10  Bruno Haible  <bruno@clisp.org>
191
192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
193         declaration.
194
195 2007-06-10  Karl Berry  <karl@gnu.org>
196
197         * config/srclist.txt: remove gettext entries, Bruno prefers
198         to update individually.
199
200 2007-06-10  Bruno Haible  <bruno@clisp.org>
201
202         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
203         'maxlen'. Ensure only length + width bytes are allocated, not
204         length + 1 + width.
205
206 2007-06-09  Bruno Haible  <bruno@clisp.org>
207
208         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
209         (CHAR_T): Remove macro.
210         (VASNPRINTF): Update.
211
212 2007-06-09  Bruno Haible  <bruno@clisp.org>
213
214         * MODULES.html.sh (Unicode string functions): Add the new modules.
215
216         * modules/uniconv/u32-conv-to-enc: New file.
217         * lib/uniconv/u32-conv-to-enc.c: New file.
218         * modules/uniconv/u32-conv-to-enc-tests: New file.
219         * tests/uniconv/test-u32-conv-to-enc.c: New file.
220
221         * modules/uniconv/u16-conv-to-enc: New file.
222         * lib/uniconv/u16-conv-to-enc.c: New file.
223         * lib/uniconv/u-conv-to-enc.h: New file.
224         * modules/uniconv/u16-conv-to-enc-tests: New file.
225         * tests/uniconv/test-u16-conv-to-enc.c: New file.
226
227         * modules/uniconv/u8-conv-to-enc: New file.
228         * lib/uniconv/u8-conv-to-enc.c: New file.
229         * modules/uniconv/u8-conv-to-enc-tests: New file.
230         * tests/uniconv/test-u8-conv-to-enc.c: New file.
231
232         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
233         u32_conv_to_encoding): New declarations.
234
235 2007-06-09  Bruno Haible  <bruno@clisp.org>
236
237         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
238
239 2007-06-09  Bruno Haible  <bruno@clisp.org>
240
241         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
242         * modules/malloca: Renamed from modules/allocsa, updated.
243         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
244         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
245         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
246         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
247         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
248         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
249         * modules/xmalloca: Renamed from modules/xallocsa, updated.
250         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
251         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
252         * modules/c-strcasestr (Depends-on): Update.
253         * lib/c-strcasestr.c: Update.
254         * modules/c-strstr (Depends-on): Update.
255         * lib/c-strstr.c: Update.
256         * modules/canonicalize-lgpl (Depends-on): Update.
257         * lib/canonicalize-lgpl.c: Update.
258         * modules/clean-temp (Depends-on): Update.
259         * lib/clean-temp.c: Update.
260         * modules/csharpcomp (Depends-on): Update.
261         * lib/csharpcomp.c: Update.
262         * modules/csharpexec (Depends-on): Update.
263         * lib/csharpexec.c: Update.
264         * modules/javacomp (Depends-on): Update.
265         * lib/javacomp.c: Update.
266         * modules/javaexec (Depends-on): Update.
267         * lib/javaexec.c: Update.
268         * modules/mbscasestr (Depends-on): Update.
269         * lib/mbscasestr.c: Update.
270         * modules/mbsstr (Depends-on): Update.
271         * lib/mbsstr.c: Update.
272         * modules/setenv (Depends-on): Update.
273         * lib/setenv.c: Update.
274         * modules/strcasestr (Depends-on): Update.
275         * lib/strcasestr.c: Update.
276         * modules/striconveha (Depends-on): Update.
277         * lib/striconveha.c: Update.
278         * modules/relocatable-prog-wrapper (Files): Update.
279         * lib/relocwrapper.c: Update.
280         * build-aux/install-reloc: Update.
281         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
282
283 2007-06-08  Bruno Haible  <bruno@clisp.org>
284
285         Port to uClibc.
286         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
287         * lib/fpurge.c (fpurge): Likewise.
288         * lib/freading.c (freading): Likewise.
289         * lib/fseeko.c (rpl_fseeko): Likewise.
290         * lib/fseterr.c (fseterr): Likewise.
291         * lib/fwriting.c (fwriting): Likewise.
292         * tests/test-fflush.c (main): Avoid a failure on uClibc.
293
294 2007-06-08  Bruno Haible  <bruno@clisp.org>
295
296         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
297         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
298         * modules/gettext (Files): Add m4/intlmacosx.m4.
299
300 2007-06-07  Bruno Haible  <bruno@clisp.org>
301
302         * modules/localename-tests: New file.
303         * tests/test-localename.c: New file.
304
305         New module 'localename'.
306         * lib/localename.h: New file.
307         * lib/localename.c: New file, from GNU gettext.
308         * m4/localename.m4: New file.
309         * modules/localename: New file.
310
311 2007-06-07  Bruno Haible  <bruno@clisp.org>
312
313         Work around the lack of <wchar.h> on some builds of uClibc.
314         * doc/headers/wchar.texi: Update.
315         * lib/wchar_.h: Include <wchar.h> only if it exists.
316         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
317         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
318         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
319         doesn't exist.
320         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
321         * modules/mbfile (Depends-on): Add wchar.
322         * modules/mbiter (Depends-on): Likewise.
323         * modules/mbuiter (Depends-on): Likewise.
324         Reported by Simon Josefsson.
325
326 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
327
328         Work around problem reported by Steven M. Schweda in
329         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
330         Tru64 5.1B with the Compaq compiler environment installed declares
331         an 'isblank' function but does not define it in the C library.
332         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
333         * lib/regex_internal.h (isblank): Likewise.
334         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
335         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
336
337 2007-06-05  Bruno Haible  <bruno@clisp.org>
338
339         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
340         ia64.
341         * modules/printf-safe: New file.
342         * modules/fprintf-posix (Depends-on): Add printf-safe.
343         * modules/printf-posix (Depends-on): Likewise.
344         * modules/snprintf-posix (Depends-on): Likewise.
345         * modules/sprintf-posix (Depends-on): Likewise.
346         * modules/vasnprintf-posix (Depends-on): Likewise.
347         * modules/vasprintf-posix (Depends-on): Likewise.
348         * modules/vfprintf-posix (Depends-on): Likewise.
349         * modules/vprintf-posix (Depends-on): Likewise.
350         * modules/vsnprintf-posix (Depends-on): Likewise.
351         * modules/vsprintf-posix (Depends-on): Likewise.
352         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
353         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
354         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
355         "no" on i386, x86_64, ia64.
356         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
357         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
358         on i386, x86_64, ia64.
359         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
360         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
361         on i386, x86_64, ia64.
362         * tests/test-vasnprintf-posix.c: Include float.h.
363         (LDBL80_WORDS): New macro.
364         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
365         on i386, x86_64, ia64.
366         * tests/test-vasprintf-posix.c: Include float.h.
367         (LDBL80_WORDS): New macro.
368         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
369         on i386, x86_64, ia64.
370         * tests/test-snprintf-posix.c: Include float.h.
371         * tests/test-sprintf-posix.c: Likewise.
372         * tests/test-vsnprintf-posix.c: Likewise.
373         * tests/test-vsprintf-posix.c: Likewise.
374
375 2007-06-05  Bruno Haible  <bruno@clisp.org>
376
377         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
378         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
379         non-IEEE numbers on i386, x86_64, ia64.
380         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
381         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
382         * tests/test-isnanl.h: Include float.h.
383         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
384
385 2007-06-05  Bruno Haible  <bruno@clisp.org>
386
387         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
388         also the %a / %A. Handle the %a / %A code before this extra handling.
389
390 2007-06-05  Bruno Haible  <bruno@clisp.org>
391
392         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
393         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
394
395 2007-06-05  Bruno Haible  <bruno@clisp.org>
396
397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
398         typo in variable name.
399
400 2007-06-05  Eric Blake  <ebb9@byu.net>
401
402         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
403         Reported by Simon Josefsson.
404
405 2007-06-04  Bruno Haible  <bruno@clisp.org>
406
407         Avoid test failures on some PowerPC platforms.
408         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
409         Define differently for PowerPC.
410         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
411         Reported by Gary V. Vaughan <gary@gnu.org>.
412
413 2007-06-02  Bruno Haible  <bruno@clisp.org>
414
415         Fix test-stdint failure on FreeBSD/ia64.
416         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
417         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
418         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
419         * doc/headers/stdint.texi: Update.
420
421 2007-06-01  Bruno Haible  <bruno@clisp.org>
422
423         * tests/test-binary-io.c (main): Pass a third argument to open().
424         Reported by Gary V. Vaughan <gary@gnu.org>.
425
426 2007-06-01  Bruno Haible  <bruno@clisp.org>
427
428         * doc/functions/frexpl.texi: Update for mingw.
429
430 2007-06-01  Bruno Haible  <bruno@clisp.org>
431
432         * tests/test-lseek.c (main): Disable test of errno for invalid third
433         argument.
434         * doc/functions/lseek.texi: Update.
435         Reported by Gary V. Vaughan <gary@gnu.org>.
436
437 2007-05-28  Bruno Haible  <bruno@clisp.org>
438
439         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
440
441 2007-05-31  Eric Blake  <ebb9@byu.net>
442
443         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
444         cross compiling.
445
446 2007-05-30  Eric Blake  <ebb9@byu.net>
447         and Bruno Haible  <bruno@clisp.org>
448
449         Work around mingw test failures exposed by m4-1.4.9b.
450         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
451         * tests/test-unistd.c: Disable uid_t and git_t tests for the
452         moment.
453
454 2007-05-30  Bruno Haible  <bruno@clisp.org>
455
456         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
457         assuming that they are closed. Needed on HP-UX 11.
458
459 2007-05-29  Bruno Haible  <bruno@clisp.org>
460
461         Fix a problem with #include_next.
462         * lib/dirent_.h: Split the double-inclusion guard.
463         * lib/fcntl_.h: Likewise.
464         * lib/float_.h: Likewise.
465         * lib/iconv_.h: Likewise.
466         * lib/inttypes_.h: Likewise.
467         * lib/locale_.h: Likewise.
468         * lib/math_.h: Likewise.
469         * lib/netinet_in_.h: Likewise.
470         * lib/search_.h: Likewise.
471         * lib/signal_.h: Likewise.
472         * lib/stdint_.h: Likewise.
473         * lib/stdio_.h: Likewise.
474         * lib/stdlib_.h: Likewise.
475         * lib/string_.h: Likewise.
476         * lib/sys_select_.h: Likewise.
477         * lib/sys_socket_.h: Likewise.
478         * lib/sys_stat_.h: Likewise.
479         * lib/sys_time_.h: Likewise.
480         * lib/sysexits_.h: Likewise.
481         * lib/time_.h: Likewise.
482         * lib/unistd_.h: Likewise.
483         * lib/wchar_.h: Likewise.
484         * lib/wctype_.h: Likewise.
485
486 2007-05-29  Bruno Haible  <bruno@clisp.org>
487
488         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
489         for the moment.
490
491 2007-05-29  Bruno Haible  <bruno@clisp.org>
492
493         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
494         invocation.
495         Reported by Eric Blake.
496
497 2007-05-29  Bruno Haible  <bruno@clisp.org>
498
499         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
500         compiling case.
501
502 2007-05-29  Eric Blake  <ebb9@byu.net>
503             Bruno Haible  <bruno@clisp.org>
504
505         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
506         cross compiles.
507
508 2007-05-28  Eric Blake  <ebb9@byu.net>
509
510         * modules/closein-tests (test_closein_LDADD): Support test on
511         cygwin with libtool.
512
513 2007-05-28  Bruno Haible  <bruno@clisp.org>
514
515         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
516         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
517         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
518         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
519         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
520         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
521         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
522         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
523         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
524
525 2007-05-28  Eric Blake  <ebb9@byu.net>
526
527         Unconditionally include <config.h> in unit tests.
528         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
529         * tests/test-allocsa.c, tests/test-arcfour.c,
530         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
531         tests/test-array_list.c, tests/test-array_oset.c,
532         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
533         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
534         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
535         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
536         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
537         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
538         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
539         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
540         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
541         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
542         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
543         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
544         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
545         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
546         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
547         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
548         test-md5.c, test-memmem.c, test-printf-posix.c,
549         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
550         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
551         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
552         test-strcasestr.c, test-striconv.c, test-striconveh.c,
553         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
554         test-vasnprintf-posix2.c, test-vasnprintf.c,
555         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
556         test-vfprintf-posix.c, test-vprintf-posix.c,
557         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
558         test-xvasprintf.c: Likewise.
559
560 2007-05-28  Bruno Haible  <bruno@clisp.org>
561
562         * gnulib-tool (func_import): Remember the --with-tests command-line
563         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
564         Reported by Eric Blake.
565
566 2007-05-28  Bruno Haible  <bruno@clisp.org>
567
568         * modules/ftell-tests: New file.
569         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
570         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
571
572         * lib/ftell.c: New file.
573         * modules/ftell: New file.
574         * m4/ftell.m4: New file.
575         * doc/functions/ftell.texi: Update.
576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
577         REPLACE_FTELL.
578         * lib/stdio_.h (rpl_ftell): New declaration.
579         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
580         REPLACE_FTELL.
581
582 2007-05-28  Eric Blake  <ebb9@byu.net>
583
584         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
585
586 2007-05-28  Bruno Haible  <bruno@clisp.org>
587
588         * modules/fseek-tests: New file.
589         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
590         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
591
592         * lib/fseek.c: New file.
593         * modules/fseek: New file.
594         * m4/fseek.m4: New file.
595         * doc/functions/fseek.texi: Update.
596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
597         REPLACE_FSEEK.
598         * lib/stdio_.h (rpl_fseek): New declaration.
599         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
600         REPLACE_FSEEK.
601
602 2007-05-28  Bruno Haible  <bruno@clisp.org>
603
604         * lib/stdio_.h (fflush): More comments.
605
606 2007-05-28  Bruno Haible  <bruno@clisp.org>
607
608         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
609         runtime test.
610
611 2007-05-28  Eric Blake  <ebb9@byu.net>
612
613         Improve lseek module.
614         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
615         * lib/unistd_.h (lseek): Scale back link warning message.
616         * tests/test-lseek.c: Beef up test.
617         * tests/test-lseek.sh: Exercise more facets of lseek.
618         Reported by Bruno Haible.
619
620 2007-05-28  Bruno Haible  <bruno@clisp.org>
621
622         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
623         to define.
624
625 2007-05-27  Bruno Haible  <bruno@clisp.org>
626
627         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
628
629 2007-05-27  Bruno Haible  <bruno@clisp.org>
630
631         * modules/openmp: New file.
632         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
633         Noah Misch.
634
635 2007-05-26  Bruno Haible  <bruno@clisp.org>
636
637         * modules/chdir-long (Depends-on): Add fchdir.
638         * modules/chdir-safer (Depends-on): Likewise.
639         * modules/fts (Depends-on): Likewise.
640         * modules/fts-lgpl (Depends-on): Likewise.
641         * modules/openat (Depends-on): Likewise.
642         * modules/savewd (Depends-on): Likewise.
643
644 2007-05-24  Eric Blake  <ebb9@byu.net>
645
646         Fix lseek on mingw.
647         * modules/lseek: New module.
648         * m4/lseek.m4: New file.
649         * lib/lseek.c: New file.
650         * modules/lseek-tests: New file.
651         * tests/test-lseek.c: New file.
652         * tests/test-lseek.sh: New file.
653         * MODULES.html.sh: Document lseek module.
654         * modules/fflush (Depends-on): Add lseek, fseeko.
655         * modules/fseeko (Depends-on): Likewise.
656         * modules/ftello (Depends-on): Likewise.
657         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
658         broken.
659         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
660         broken.
661         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
662         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
663         * lib/ftello.c (rpl_ftello): Likewise.
664         * tests/test-fseeko.c (main): Test this.
665         * tests/test-fseeko.sh: Likewise.
666         * tests/test-ftello.c (main): Likewise.
667         * tests/test-ftello.sh: Likewise.
668         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
669         implies replacing fseek.
670         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
671         HAVE_FTELLO.
672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
673         * modules/unistd (Makefile.am): Likewise.
674         * lib/unistd_.h (lseek): Declare a replacement.
675         * doc/functions/lseek.texi (lseek): Document this fix.
676         * doc/functions/fseek.texi (fseek): Likewise.
677         * doc/functions/ftell.texi (ftell): Likewise.
678
679 2007-05-24  Bruno Haible  <bruno@clisp.org>
680
681         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
682         in the printed representation of a NaN.
683         * tests/test-vasprintf-posix.c (test_function): Likewise.
684         * tests/test-snprintf-posix.h (test_function): Likewise.
685         * tests/test-sprintf-posix.h (test_function): Likewise.
686         Reported by Eric Blake.
687
688 2007-05-23  Eric Blake  <ebb9@byu.net>
689
690         Fix fseeko/ftello on cygwin 1.5.24.
691         * doc/functions/fseeko.texi (fseeko): Document the fix.
692         * doc/functions/ftello.texi (ftello): Document the fix.
693         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
694         * doc/functions/stdout.text (stdout): New file.
695         * doc/functions/stderr.text (stderr): New file.
696         * doc/gnulib.texi (Function Substitutes): Use new files.
697         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
698         prior to 1.7.0.
699         * tests/test-ftello.c (main): Likewise for ftello.
700         * tests/test-fseeko.sh: New file.
701         * tests/test-ftello.sh: New file.
702         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
703         with seekable stdin.
704         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
705         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
706         (gl_REPLACE_FSEEKO): New macro.
707         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
708         * modules/fseeko (Files): Distribute fseeko.c.
709         * modules/ftello (Files): Distribute ftello.c.
710         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
711         mode.
712         * lib/ftello.c (rpl_ftello): New file.
713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
714         fseeko, ftello.
715         (gl_STDIN_LARGE_OFFSET): New macro.
716         * modules/stdio (Makefile.am): Perform the replacement.
717         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
718
719 2007-05-23  Bruno Haible  <bruno@clisp.org>
720
721         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
722         GNULIB_POSIXCHECK is defined.
723
724 2007-05-21  Bruno Haible  <bruno@clisp.org>
725
726         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
727         Check also the output for NaN arguments. When cross-compiling, guess
728         no on IRIX.
729         * lib/vasnprintf.c: Update comments.
730         * tests/test-vasnprintf-posix.c (strisnan): New function.
731         (test_function): Use it.
732         * tests/test-vasprintf-posix.c (strisnan): New function.
733         (test_function): Use it.
734         * tests/test-snprintf-posix.h (strisnan): New function.
735         (test_function): Use it.
736         * tests/test-sprintf-posix.h (strisnan): New function.
737         (test_function): Use it.
738         Reported by Eric Blake.
739
740 2007-05-20  Bruno Haible  <bruno@clisp.org>
741
742         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
743         numbers that fails on BeOS.
744         * doc/functions/frexpl.texi: Update.
745
746 2007-05-20  Jim Meyering  <jim@meyering.net>
747
748         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
749         forced upon us by glibc-2.6.
750
751 2007-05-20  Bruno Haible  <bruno@clisp.org>
752
753         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
754         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
755         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
756         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
757         NEED_PRINTF_INFINITE.
758         (is_infinitel): New function.
759         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
761         gl_PREREQ_VASNPRINTF_INFINITE.
762         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
764         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
765         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
766         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
767         gl_PREREQ_VASNPRINTF_INFINITE.
768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
769         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
772         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
774         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
775         * doc/functions/fprintf.texi: Update.
776         * doc/functions/printf.texi: Update.
777         * doc/functions/snprintf.texi: Update.
778         * doc/functions/sprintf.texi: Update.
779         * doc/functions/vfprintf.texi: Update.
780         * doc/functions/vprintf.texi: Update.
781         * doc/functions/vsnprintf.texi: Update.
782         * doc/functions/vsprintf.texi: Update.
783
784 2007-05-20  Bruno Haible  <bruno@clisp.org>
785
786         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
787         was not found in libc.
788         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
789
790 2007-05-20  Bruno Haible  <bruno@clisp.org>
791
792         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
793         printed as "-nan" instead of "nan".
794         * tests/test-vasprintf-posix.c (test_function): Likewise.
795         * tests/test-snprintf-posix.h (test_function): Likewise.
796         * tests/test-sprintf-posix.h (test_function): Likewise.
797         Needed for HP-UX 11.
798
799 2007-05-20  Jim Meyering  <jim@meyering.net>
800
801         Fix buggy test for the fchownat-deref bug.
802         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
803         symlink required for the run-test.  Without it, this test would
804         always declare that fchownat doesn't work, and client code would
805         unnecessarily use the replacement function with fixed libc.
806         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
807         Reported by Greg Schafer.
808
809 2007-05-19  Bruno Haible  <bruno@clisp.org>
810
811         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
812         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
813         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
814         Needed for IRIX 6.5 and Solaris 2.5.1.
815
816 2007-05-19  Bruno Haible  <bruno@clisp.org>
817
818         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
819         (test_function): Skip tests involving -0.0 on platforms where
820         -0.0 = 0.0.
821         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
822         (test_function): Skip tests involving -0.0 on platforms where
823         -0.0 = 0.0.
824         * tests/test-snprintf-posix.h (have_minus_zero): New function.
825         (test_function): Skip tests involving -0.0 on platforms where
826         -0.0 = 0.0.
827         * tests/test-sprintf-posix.h (have_minus_zero): New function.
828         (test_function): Skip tests involving -0.0 on platforms where
829         -0.0 = 0.0.
830         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
831         tests.
832         * tests/test-printf-posix.h (test_function): Likewise.
833         * tests/test-printf-posix.output: Remove all -0.0 related results.
834         Needed for IRIX 6.5.
835
836 2007-05-19  Bruno Haible  <bruno@clisp.org>
837
838         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
839         printed as "nan0x7fffffff" instead of "nan".
840         * tests/test-vasprintf-posix.c (test_function): Likewise.
841         * tests/test-snprintf-posix.h (test_function): Likewise.
842         * tests/test-sprintf-posix.h (test_function): Likewise.
843         * tests/test-fprintf-posix.h (NaN): Remove macro.
844         (test_function): Remove all NaN related tests.
845         * tests/test-printf-posix.h (NaN): Remove macro.
846         (test_function): Remove all NaN related tests.
847         * tests/test-printf-posix.output: Remove all NaN related results.
848         Needed for IRIX 6.5.
849
850 2007-05-19  Bruno Haible  <bruno@clisp.org>
851
852         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
853         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
854
855 2007-05-19  Bruno Haible  <bruno@clisp.org>
856
857         * lib/float_.h: New file.
858         * m4/float_h.m4: New file.
859         * modules/float: New file.
860         * modules/isnanl (Dependencies): Add float.
861         * modules/isnanl-nolibm (Dependencies): Likewise.
862         * modules/mathl (Dependencies): Likewise.
863         * modules/printf-frexpl (Dependencies): Likewise.
864         * modules/signbit (Dependencies): Likewise.
865         * modules/vasnprintf (Dependencies): Likewise.
866         * doc/headers/float.texi: Update.
867
868 2007-05-19  Jim Meyering  <jim@meyering.net>
869
870         * lib/utimens.c (gl_futimens): Rename from futimens,
871         now that glibc-2.6 declares futimens.
872         * lib/utimens.h: Likewise.
873
874 2007-05-19  Bruno Haible  <bruno@clisp.org>
875
876         Avoid test failures on mingw.
877         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
878         * tests/test-printf-posix.sh: Likewise.
879         * tests/test-vfprintf-posix.sh: Likewise.
880         * tests/test-vprintf-posix.sh: Likewise.
881
882 2007-05-19  Bruno Haible  <bruno@clisp.org>
883
884         Fix *printf result for NaN, Inf, -0.0 on mingw.
885         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
886         * lib/vasnprintf.c: Include math.h and isnan.h.
887         (is_infinite_or_zero): New function.
888         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
889         values in the %f, %F, %e, %E, %g, %G directives.
890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
891         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
892         gl_PRINTF_INFINITE and test its result. Invoke
893         gl_PREREQ_VASNPRINTF_INFINITE.
894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
895         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
898         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
901         * doc/functions/fprintf.texi: Update.
902         * doc/functions/printf.texi: Update.
903         * doc/functions/snprintf.texi: Update.
904         * doc/functions/sprintf.texi: Update.
905         * doc/functions/vfprintf.texi: Update.
906         * doc/functions/vprintf.texi: Update.
907         * doc/functions/vsnprintf.texi: Update.
908         * doc/functions/vsprintf.texi: Update.
909
910 2007-05-19  Bruno Haible  <bruno@clisp.org>
911
912         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
913         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
914         Instead of multiplying with 10^k, set extra_zeroes to k.
915         (scale10_round_long_double): Remove function.
916
917 2007-05-18  Bruno Haible  <bruno@clisp.org>
918
919         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
920         introduced on 2007-05-06.
921
922 2007-05-18  Bruno Haible  <bruno@clisp.org>
923
924         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
925         %g directives.
926         * tests/test-vasprintf-posix.c (test_function): Likewise.
927         * tests/test-snprintf-posix.h (test_function): Likewise.
928         * tests/test-sprintf-posix.h (test_function): Likewise.
929
930 2007-05-18  Bruno Haible  <bruno@clisp.org>
931
932         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
933         (strmatch): New function.
934         (test_function): Test the %f directive on numbers of various exponents.
935         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
936         (strmatch): New function.
937         (test_function): Test the %f directive on numbers of various exponents.
938         * tests/test-snprintf-posix.h (strmatch): New function.
939         (test_function): Test the %f directive on numbers of various exponents.
940         * tests/test-sprintf-posix.h (strmatch): New function.
941         (test_function): Test the %f directive on numbers of various exponents.
942         * tests/test-snprintf-posix.c (SIZEOF): New macro.
943         * tests/test-sprintf-posix.c (SIZEOF): New macro.
944         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
945         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
946
947 2007-05-18  Bruno Haible  <bruno@clisp.org>
948
949         Add support for 'long double' number output.
950         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
951         * lib/vasnprintf.c: Include math.h and float+.h.
952         (mp_limb_t): New type.
953         (GMP_LIMB_BITS): New macro.
954         (mp_twolimb_t): New type.
955         (GMP_TWOLIMB_BITS): New macro.
956         (mpn_t): New type.
957         (multiply, divide, convert_to_decimal, decode_long_double,
958         scale10_round_long_double, scale10_round_decimal_long_double,
959         floorlog10l): New functions.
960         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
961         for the %f, %F, %e, %E, %g, %G directives.
962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
963         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
964         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
965         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
967         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
968         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
970         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
972         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
973         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
974         * modules/snprintf-posix (Depends-on): Likewise.
975         * modules/sprintf-posix (Depends-on): Likewise.
976         * modules/vasnprintf-posix (Depends-on): Likewise.
977         * modules/vasprintf-posix (Depends-on): Likewise.
978         * modules/vfprintf-posix (Depends-on): Likewise.
979         * modules/vsnprintf-posix (Depends-on): Likewise.
980         * modules/vsprintf-posix (Depends-on): Likewise.
981         * modules/vasnprintf (Files): Add lib/float+.h.
982         * doc/functions/fprintf.texi: Update.
983         * doc/functions/printf.texi: Update.
984         * doc/functions/snprintf.texi: Update.
985         * doc/functions/sprintf.texi: Update.
986         * doc/functions/vfprintf.texi: Update.
987         * doc/functions/vprintf.texi: Update.
988         * doc/functions/vsnprintf.texi: Update.
989         * doc/functions/vsprintf.texi: Update.
990
991 2007-05-18  Bruno Haible  <bruno@clisp.org>
992
993         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
994
995 2007-05-18  Bruno Haible  <bruno@clisp.org>
996
997         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
998         for printing 64-bit integers. Needed for mingw.
999
1000 2007-05-18  Bruno Haible  <bruno@clisp.org>
1001
1002         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
1003         gl_FUNC_FREXPL_WORKS.
1004         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
1005
1006 2007-05-18  Bruno Haible  <bruno@clisp.org>
1007
1008         * modules/frexpl-nolibm-tests: New file.
1009
1010         * modules/frexpl-nolibm: New file.
1011         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
1012
1013 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1014
1015         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
1016         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
1017         GCC 4.2, which otherwise issues a lot of warnings.
1018         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
1019         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
1020         Likewise.
1021         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
1022         * modules/iconv_open (iconv.h): Likewise.
1023         * modules/locale (locale.h): Likewise.
1024         * modules/netinet_in (netinet/in.h): Likewise.
1025         * modules/sys_select (sys_select.h): Likewise.
1026         * modules/sys_socket (sys/socket.h): Likewise.
1027         * modules/sys_stat (sys/stat.h): Likewise.
1028         * modules/sysexits (sysexits.h): Likewise.
1029         * modules/unistd (unistd.h): Likewise.
1030
1031 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1032
1033         * modules/closein-tests (Makefile.am): Distribute
1034         `test-closein.sh'.
1035
1036 2007-05-17  Bruno Haible  <bruno@clisp.org>
1037
1038         * tests/test-printf-posix.output: Renamed from
1039         tests/test-fprintf-posix.out.
1040         * modules/fprintf-posix-tests: Update.
1041         * modules/printf-posix-tests: Update.
1042         * modules/vfprintf-posix-tests: Update.
1043         * modules/vprintf-posix-tests: Update.
1044         * tests/test-fprintf-posix.sh: Update.
1045         * tests/test-printf-posix.sh: Update.
1046         * tests/test-vfprintf-posix.sh: Update.
1047         * tests/test-vprintf-posix.sh: Update.
1048         Reported by Ralf Wildenhues.
1049
1050 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1051
1052         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
1053         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
1054         GCC 4.2, which otherwise issues a lot of warnings.
1055         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
1056         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
1057         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
1058         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
1059         it should no longer be needed.
1060         * lib/string_.h: Likewise.
1061         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
1062         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
1063         * modules/inttypes (inttypes.h): Likewise.
1064         * modules/math (math.h): Likewise.
1065         * modules/search (search.h): Likewise.
1066         * modules/signal (signal.h): Likewise.
1067         * modules/stdint (stdint.h): Likewise.
1068         * modules/stdio (stdio.h): Likewise.
1069         * modules/stdlib (stdlib.h): Likewise.
1070         * modules/string (string.h): Likewise.
1071         * modules/sys_time (sys/time.h): Likewise.
1072         * modules/time (time.h): Likewise.
1073         * modules/wchar (wchar.h): Likewise.
1074         * modules/wctype (wtype.h): Likewise.
1075
1076 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1077
1078         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
1079
1080 2007-05-13  Bruno Haible  <bruno@clisp.org>
1081
1082         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
1083         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1084         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
1085         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1086         (gl_PREREQ_STRTOK_R): Don't require it here.
1087
1088 2007-05-13  Bruno Haible  <bruno@clisp.org>
1089
1090         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
1091         when used in C++ mode.
1092
1093 2007-05-12  Bruno Haible  <bruno@clisp.org>
1094
1095         * lib/linebuffer.h: Tweak doc.
1096         * lib/linebuffer.c: Likewise.
1097
1098 2007-05-12  James Youngman  <jay@gnu.org>
1099
1100         * lib/linebuffer.c (readlinebuffer_delim): New function,
1101         like readlinebuffer, but use a caller-specified delimiter.
1102         (readlinebuffer): Just call readlinebuffer_delim with '\n'
1103         as the delimiter.
1104         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
1105
1106 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1107
1108         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
1109         * modules/openat (Files): Remove openat-die.c.
1110         (Depends-on): Add openat-die.
1111         * modules/openat-die: New module.
1112
1113 2007-05-06  Bruno Haible  <bruno@clisp.org>
1114
1115         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
1116         Update with info about Cygwin.
1117         * doc/functions/fprintf.texi: Update.
1118         * doc/functions/printf.texi: Update.
1119         * doc/functions/snprintf.texi: Update.
1120         * doc/functions/sprintf.texi: Update.
1121         * doc/functions/vfprintf.texi: Update.
1122         * doc/functions/vprintf.texi: Update.
1123         * doc/functions/vsnprintf.texi: Update.
1124         * doc/functions/vsprintf.texi: Update.
1125         Reported by Eric Blake.
1126
1127 2007-05-06  Bruno Haible  <bruno@clisp.org>
1128
1129         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
1130         padding ourselves for the floating-point directives.
1131         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
1132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
1133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1134         gl_PRINTF_FLAG_ZERO and test its result. Invoke
1135         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
1136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1138         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1139         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1140         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1143         * tests/test-snprintf-posix.h (test_function): Also check the width
1144         and some flags in the %f directive.
1145         * tests/test-sprintf-posix.h (test_function): Likewise.
1146         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1147         * tests/test-vasprintf-posix.c (test_function): Likewise.
1148         * doc/functions/fprintf.texi: Update.
1149         * doc/functions/printf.texi: Update.
1150         * doc/functions/snprintf.texi: Update.
1151         * doc/functions/sprintf.texi: Update.
1152         * doc/functions/vfprintf.texi: Update.
1153         * doc/functions/vprintf.texi: Update.
1154         * doc/functions/vsnprintf.texi: Update.
1155         * doc/functions/vsprintf.texi: Update.
1156
1157 2007-05-06  Bruno Haible  <bruno@clisp.org>
1158
1159         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
1160         pass the ' flag character to sprintf or snprintf.
1161         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
1162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
1163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1164         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
1165         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
1166         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1168         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1170         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1172         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1173         * tests/test-snprintf-posix.h (test_function): Also check the grouping
1174         flag.
1175         * tests/test-sprintf-posix.h (test_function): Likewise.
1176         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1177         * tests/test-vasprintf-posix.c (test_function): Likewise.
1178         * doc/functions/fprintf.texi: Update.
1179         * doc/functions/printf.texi: Update.
1180         * doc/functions/snprintf.texi: Update.
1181         * doc/functions/sprintf.texi: Update.
1182         * doc/functions/vfprintf.texi: Update.
1183         * doc/functions/vprintf.texi: Update.
1184         * doc/functions/vsnprintf.texi: Update.
1185         * doc/functions/vsprintf.texi: Update.
1186
1187 2007-05-01  Bruno Haible  <bruno@clisp.org>
1188
1189         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
1190
1191 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1192
1193         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
1194         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
1195
1196 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1197
1198         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
1199         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
1200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
1201
1202 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
1203
1204         * lib/argp-help.c (struct hol_entry): New member `ord'.
1205         (HOL_ENTRY_PTRCMP): Use ord for comparison
1206         (hol_sort): Initialize ord.
1207
1208 2007-05-01  Bruno Haible  <bruno@clisp.org>
1209
1210         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
1211         Reported by Eric Blake.
1212         * doc/gnulib.texi (Function Substitutes): Update.
1213
1214 2007-05-01  Bruno Haible  <bruno@clisp.org>
1215
1216         * doc/functions.texi: Remove file, now redundant through
1217         doc/functions/*.texi.
1218
1219 2007-05-01  Bruno Haible  <bruno@clisp.org>
1220
1221         * modules/argp (Depends-on): Add sleep.
1222
1223 2007-05-01  Bruno Haible  <bruno@clisp.org>
1224
1225         * modules/sleep-tests: New file.
1226         * tests/test-sleep.c: New file.
1227
1228         * modules/sleep: New file.
1229         * lib/sleep.c: New file.
1230         * m4/sleep.m4: New file.
1231         * lib/unistd_.h (sleep): New declaration.
1232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
1233         HAVE_SLEEP.
1234         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
1235         * doc/functions/sleep.texi: Document the sleep module.
1236
1237 2007-05-01  Bruno Haible  <bruno@clisp.org>
1238
1239         * lib/sigprocmask.h: Remove file.
1240         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
1241         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
1242         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
1243         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
1244         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1245         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
1246         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
1247         HAVE_SIGSET_T as a shell variable.
1248         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
1249         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
1250         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
1251         (Depends-on): Add signal. Remove verify.
1252         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
1253         (Include): Mention <signal.h> instead of sigprocmask.h.
1254         * NEWS: Mention the change.
1255         * lib/fatal-signal.c: Don't include sigprocmask.h.
1256
1257 2007-05-01  Bruno Haible  <bruno@clisp.org>
1258
1259         * modules/signal: New file.
1260         * lib/signal_.h: New file.
1261         * m4/signal_h.m4: New file.
1262
1263 2007-05-01  Bruno Haible  <bruno@clisp.org>
1264
1265         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
1266         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
1267         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
1268         HAVE_WCTYPE_CTMP_BUG into wctype.h.
1269
1270 2007-05-01  Bruno Haible  <bruno@clisp.org>
1271
1272         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
1273         configure time.
1274         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
1275         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
1276         * modules/sys_stat (Makefile.am): Substitute their values into
1277         sys/stat.h.
1278
1279 2007-05-01  Bruno Haible  <bruno@clisp.org>
1280
1281         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
1282         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
1283         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
1284
1285 2007-05-01  Bruno Haible  <bruno@clisp.org>
1286
1287         * doc/header/assert.texi: Undo last change: don't mention the gnulib
1288         'assert' module here.
1289
1290 2007-05-01  Bruno Haible  <bruno@clisp.org>
1291
1292         * doc/functions/*.texi: New files.
1293         * doc/functions/google-ranking.txt: New file.
1294         * doc/gnulib.texi (Function Substitutes): New chapter.
1295         (ctime, inet_ntoa): Remove sections.
1296         * doc/ctime.texi: Remove file.
1297         * doc/inet_ntoa.texi: Remove file.
1298         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
1299         dependencies.
1300         (%.info): New rule, specifying a --reference-limit.
1301
1302 2007-05-01  Bruno Haible  <bruno@clisp.org>
1303
1304         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
1305
1306 2007-05-01  Bruno Haible  <bruno@clisp.org>
1307
1308         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
1309         the portability of 'mkdir' to mingw systems.
1310
1311 2007-05-01  Bruno Haible  <bruno@clisp.org>
1312
1313         * doc/headers/google-ranking.txt: New file.
1314
1315 2007-04-30  Eric Blake  <ebb9@byu.net>
1316
1317         Prefer fseeko to fseek.
1318         * modules/getpass (Depends-on): Add fseeko.
1319         * lib/getpass.c (getpass): Use fseeko, not fseek.
1320
1321 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
1322
1323         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
1324         assumes the sorting is stable, while most qsort implementations
1325         are not.  Use argument addresses to ensure they never compare as
1326         equal.
1327
1328         * tests/test-argp-2.sh (usage-indent test): Fix output
1329         (func_compare): Restore diff options
1330         * tests/test-argp.c: Restore #include "progname.h"
1331
1332 2007-04-29  Bruno Haible  <bruno@clisp.org>
1333
1334         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
1335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1336         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
1337         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1338         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
1339         (configure.ac): Define CHECK_SNPRINTF_POSIX.
1340         (TESTS, check_PROGRAMS): Add test-snprintf.
1341         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
1342         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
1343         (TESTS, check_PROGRAMS): Add test-vsnprintf.
1344         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
1345         assertions that fail on HP-UX, OSF/1, or IRIX.
1346         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
1347
1348 2007-04-29  Bruno Haible  <bruno@clisp.org>
1349
1350         * MODULES.html.sh (posix_functions): Remove 'contents'.
1351
1352 2007-04-29  Karl Berry  <karl@gnu.org>
1353
1354         * config/srclist.txt (gendocs_template_min): new entry.
1355
1356 2007-04-29  Bruno Haible  <bruno@clisp.org>
1357
1358         Work around fpurge bug on BSD systems.
1359         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
1360         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
1361         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
1362         fpurge to rpl_fpurge if the system already has this function.
1363         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
1364         the case where the system already has this function. Correct invariants
1365         on BSD systems.
1366         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
1367         BSD systems.
1368
1369 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
1370
1371         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
1372         proposed by Sven Verdoolaege.
1373
1374         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
1375         options.
1376         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
1377         (usage and help tests): Update
1378
1379 2007-04-29  Bruno Haible  <bruno@clisp.org>
1380
1381         * tests/test-fflush.c (main): Use a file of size 17, not 10.
1382         Print more information in case of failure. Disable a test on BeOS.
1383
1384 2007-04-29  Bruno Haible  <bruno@clisp.org>
1385
1386         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
1387         This helps debugging on systems on which no gdb is available.
1388
1389 2007-04-29  Bruno Haible  <bruno@clisp.org>
1390
1391         * lib/freading.h: Improve comments.
1392         * lib/fwriting.h: Likewise.
1393         * tests/test-freading.c (main): Don't check freading immediately after
1394         repositioning. Needed for glibc.
1395
1396 2007-04-29  Bruno Haible  <bruno@clisp.org>
1397
1398         * lib/freading.c (freading): Trivial simplification.
1399
1400 2007-04-28  Bruno Haible  <bruno@clisp.org>
1401
1402         * tests/test-fwriting.c (main): Also test the interaction between
1403         fflush and fwriting.
1404         * modules/fwriting-tests (Depends-on): Add fflush.
1405
1406         * tests/test-freading.c (main): Also test the interaction between
1407         fflush and freading.
1408         * modules/freading-tests (Depends-on): Add fflush.
1409
1410 2007-04-28  Bruno Haible  <bruno@clisp.org>
1411
1412         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
1413         fseeko and ftello.
1414         Suggested by Eric Blake.
1415
1416 2007-04-28  Jim Meyering  <jim@meyering.net>
1417
1418         Avoid false-negative in gl_STDINT_H's C99 conformance test.
1419         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
1420         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
1421
1422 2007-04-27  Eric Blake  <ebb9@byu.net>
1423
1424         * doc/headers/assert.texi (assert.h): Document assert module use.
1425
1426 2007-04-27  Bruno Haible  <bruno@clisp.org>
1427
1428         * doc/headers/*.texi: New files.
1429         * doc/gnulib.texi (Header File Substitutes): New chapter.
1430         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
1431         dependencies.
1432         (standards.info ,standards.html, standards.dvi): Update dependencies.
1433         (mostlyclean, clean): New targets.
1434
1435 2007-04-27  Bruno Haible  <bruno@clisp.org>
1436
1437         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
1438         * modules/sysexits (Files, Makefile.am): Update.
1439
1440         * lib/sys_socket_.h: Renamed from lib/socket_.h.
1441         * modules/sys_socket (Files, Makefile.am): Update.
1442
1443         * lib/sys_stat_.h: Renamed from lib/stat_.h.
1444         * modules/sys_stat (Files, Makefile.am): Update.
1445
1446 2007-04-27  Eric Blake  <ebb9@byu.net>
1447
1448         * lib/freading.h: Improve comments.
1449         * lib/fwriting.h: Likewise.
1450         * lib/fflush.c: Likewise.
1451
1452         Fix closein for mingw.
1453         * modules/closein-tests: Add tests for closein.
1454         * tests/test-closein.c: New file.
1455         * tests/test-closein.sh: Likewise.
1456         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
1457         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
1458
1459 2007-04-27  Bruno Haible  <bruno@clisp.org>
1460
1461         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
1462         version is < 6.
1463         * lib/math_.h [__DECC]: Likewise.
1464         * lib/stdio_.h [__DECC]: Likewise.
1465         * lib/stdlib_.h [__DECC]: Likewise.
1466         * lib/string_.h [__DECC]: Likewise.
1467         * lib/time_.h [__DECC]: Likewise.
1468         * lib/wchar_.h [__DECC]: Likewise.
1469         * lib/wctype_.h [__DECC]: Likewise.
1470
1471 2007-04-27  Bruno Haible  <bruno@clisp.org>
1472
1473         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
1474
1475 2007-04-27  Bruno Haible  <bruno@clisp.org>
1476
1477         * lib/fflush.c: Add comments.
1478         * modules/fpurge-tests (Depends-on): Add fflush.
1479         * modules/freadable-tests (Depends-on): Likewise.
1480         * modules/fwritable-tests (Depends-on): Likewise.
1481
1482 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
1483
1484         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
1485         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
1486         Report by Bruno Haible <bruno@clisp.org>.
1487
1488 2007-04-26  Eric Blake  <ebb9@byu.net>
1489
1490         Fix fflush on mingw.
1491         * modules/fflush (Depends-on): Add freading.
1492         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
1493         but unread data.
1494
1495 2007-04-26  Eric Blake  <ebb9@byu.net>
1496         and Bruno Haible  <bruno@clisp.org>
1497
1498         Implement freading and fwriting.
1499         * lib/freading.c: New file.
1500         * lib/freading.h: Likewise.
1501         * m4/freading.m4: Likewise.
1502         * modules/freading: Likewise.
1503         * modules/freading-tests: Likewise.
1504         * tests/test-freading.c: Likewise.
1505         * lib/fwriting.c: New file.
1506         * lib/fwriting.h: Likewise.
1507         * m4/fwriting.m4: Likewise.
1508         * modules/fwriting: Likewise.
1509         * modules/fwriting-tests: Likewise.
1510         * tests/test-fwriting.c: Likewise.
1511         * MODULES.html.sh (File stream based Input/Output): Mention them.
1512
1513 2007-04-26  Bruno Haible  <bruno@clisp.org>
1514
1515         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
1516         'long' when we assume it.
1517         Suggested by Eric Blake.
1518
1519 2007-04-26  Bruno Haible  <bruno@clisp.org>
1520
1521         Ensure fseeko, ftello are declared on glibc systems.
1522         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
1523         * modules/fseeko (configure.ac-early): Likewise.
1524         * modules/ftello (configure.ac-early): Likewise.
1525         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
1526         AC_FUNC_FSEEKO for this.
1527         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
1528         (gl_CHECK_FSEEKO): Remove macro.
1529
1530 2007-04-26  Bruno Haible  <bruno@clisp.org>
1531
1532         * tests/test-fflush.c (main): Also check the ftell result after
1533         fflush and fseek/fseeko.
1534         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
1535         file descriptor position cache in the stream.
1536         * lib/fseeko.c (rpl_fseeko): Likewise.
1537
1538 2007-04-26  Bruno Haible  <bruno@clisp.org>
1539
1540         * modules/fflush-tests (Depends-on): Add fseeko.
1541
1542 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
1543             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1544
1545         * lib/argz_.h: ensure error_t definition is obtained in same
1546         mechanism system argz.h would have.
1547         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
1548         argz facilities are known bad.  Err on the side of caution if
1549         cross-compiling.
1550
1551 2007-04-25  Eric Blake  <ebb9@byu.net>
1552
1553         * lib/fpurge.c (includes): Use stdlib.h for free.
1554         * tests/test-fflush.c (main): Also test fflush-fseeko.
1555
1556 2007-04-25  Bruno Haible  <bruno@clisp.org>
1557
1558         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
1559         * lib/fseeko.c: New file.
1560         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
1561         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
1562         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
1563         gl_FUNC_FSEEKO.
1564         (gl_FUNC_FSEEKO): Invoke it.
1565         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
1566         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
1567         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
1568
1569 2007-04-25  Bruno Haible  <bruno@clisp.org>
1570
1571         * modules/fflush (Depends-on): Add ftello.
1572
1573 2007-04-25  Bruno Haible  <bruno@clisp.org>
1574
1575         * modules/ftello-tests: New file.
1576         * tests/test-ftello.c: New file.
1577
1578         * modules/ftello: New file.
1579         * m4/ftello.m4: New file.
1580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
1581         HAVE_FTELLO.
1582         * lib/stdio_.h (ftello): New declaration.
1583         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
1584         HAVE_FTELLO.
1585
1586 2007-04-25  Bruno Haible  <bruno@clisp.org>
1587
1588         * modules/fseeko-tests: New file.
1589         * tests/test-fseeko.c: New file.
1590
1591         * modules/fseeko: New file.
1592         * m4/fseeko.m4: New file.
1593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
1594         HAVE_FSEEKO.
1595         * lib/stdio_.h (fseeko): New declaration.
1596         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
1597         HAVE_FSEEKO.
1598
1599 2007-04-25  Bruno Haible  <bruno@clisp.org>
1600
1601         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
1602
1603 2007-04-25  Bruno Haible  <bruno@clisp.org>
1604
1605         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
1606         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
1607         * tests/test-unistd.c: Likewise.
1608         * tests/test-fcntl.c: Likewise.
1609
1610 2007-04-23  Eric Blake  <ebb9@byu.net>
1611
1612         * lib/fflush.c: Fix missing include.
1613         Reported by Bruno Haible.
1614
1615 2007-04-23  Bruno Haible  <bruno@clisp.org>
1616
1617         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
1618         Reported by Eric Blake.
1619
1620 2007-04-23  Bruno Haible  <bruno@clisp.org>
1621
1622         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
1623
1624 2007-04-23  Bruno Haible  <bruno@clisp.org>
1625
1626         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
1627
1628 2007-04-23  Bruno Haible  <bruno@clisp.org>
1629
1630         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
1631         Needed on HP-UX 11.
1632
1633 2007-04-16  Eric Blake  <ebb9@byu.net>
1634
1635         Make fflush rely on fpurge.
1636         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
1637         open coding all variants.
1638         * modules/fflush (Depends-on): Add fpurge and unistd.
1639         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
1640         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
1641
1642         Fix --with-tests compilation on cygwin.
1643         * modules/argmatch-tests (Makefile.am): List gnulib library first
1644         in LDADD.
1645         * modules/argp-tests (Makefile.am): Likewise.
1646         * modules/array-list-tests (Makefile.am): Likewise.
1647         * modules/array-oset-tests (Makefile.am): Likewise.
1648         * modules/avltree-list-tests (Makefile.am): Likewise.
1649         * modules/avltree-oset-tests (Makefile.am): Likewise.
1650         * modules/avltreehash-list-tests (Makefile.am): Likewise.
1651         * modules/carray-list-tests (Makefile.am): Likewise.
1652         * modules/dirname-tests (Makefile.am): Likewise.
1653         * modules/frexp-tests (Makefile.am): Likewise.
1654         * modules/isnanl-tests (Makefile.am): Likewise.
1655         * modules/linked-list-tests (Makefile.am): Likewise.
1656         * modules/linkedhash-list-tests (Makefile.am): Likewise.
1657         * modules/lock-tests (Makefile.am): Likewise.
1658         * modules/rbtree-list-tests (Makefile.am): Likewise.
1659         * modules/rbtree-oset-tests (Makefile.am): Likewise.
1660         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
1661         * modules/tls-tests (Makefile.am): Likewise.
1662         * modules/tsearch-tests (Makefile.am): Likewise.
1663         * modules/xvasprintf-tests (Makefile.am): Likewise.
1664
1665         Fix fpurge for cygwin.
1666         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
1667         value.
1668         * modules/fpurge-tests (Depends-on): Clean up trash.
1669
1670 2007-04-16  Simon Josefsson  <simon@josefsson.org>
1671
1672         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
1673
1674         * m4/autobuild.m4: Re-indent.
1675
1676 2007-04-13  Bruno Haible  <bruno@clisp.org>
1677
1678         * modules/fpurge-tests: New file.
1679         * tests/test-fpurge.c: New file.
1680
1681         * modules/fpurge: New file.
1682         * lib/fpurge.h: New file.
1683         * lib/fpurge.c: New file.
1684         * m4/fpurge.m4: New file.
1685
1686 2007-04-13  Bruno Haible  <bruno@clisp.org>
1687
1688         * modules/fbufmode-tests: New file.
1689         * tests/test-fbufmode.c: New file.
1690
1691         * modules/fbufmode: New file.
1692         * lib/fbufmode.h: New file.
1693         * lib/fbufmode.c: New file.
1694         * m4/fbufmode.m4: New file.
1695
1696 2007-04-13  Bruno Haible  <bruno@clisp.org>
1697
1698         * modules/fwritable-tests: New file.
1699         * tests/test-fwritable.c: New file.
1700
1701         * modules/fwritable: New file.
1702         * lib/fwritable.h: New file.
1703         * lib/fwritable.c: New file.
1704         * m4/fwritable.m4: New file.
1705
1706 2007-04-13  Bruno Haible  <bruno@clisp.org>
1707
1708         * modules/freadable-tests: New file.
1709         * tests/test-freadable.c: New file.
1710
1711         * modules/freadable: New file.
1712         * lib/freadable.h: New file.
1713         * lib/freadable.c: New file.
1714         * m4/freadable.m4: New file.
1715
1716 2007-04-13  Bruno Haible  <bruno@clisp.org>
1717
1718         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
1719         MOSTLYCLEANFILES.
1720
1721 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
1722
1723         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
1724         gzip bootstrap.conf to avoid dragging in i18n machinery.
1725         (gnulib_tool_option): Use it.
1726
1727 2007-04-13  Bruno Haible  <bruno@clisp.org>
1728
1729         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
1730         %F directives.
1731         * tests/test-vasprintf-posix.c (test_function): Likewise.
1732         * tests/test-snprintf-posix.h (test_function): Likewise.
1733         * tests/test-sprintf-posix.h (test_function): Likewise.
1734         * tests/test-fprintf-posix.h (test_function): Likewise.
1735         * tests/test-printf-posix.h (test_function): Likewise.
1736         * tests/test-fprintf-posix.out: Likewise.
1737
1738 2007-04-13  Bruno Haible  <bruno@clisp.org>
1739
1740         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
1741         * modules/tls-tests (configure.ac): Likewise.
1742         Reported by Arto C. Nirkko <anirkko@insel.ch>.
1743
1744 2007-04-13  Bruno Haible  <bruno@clisp.org>
1745
1746         * lib/tls.c (glthread_tls_get): Fix return type.
1747         Patch by Arto C. Nirkko <anirkko@insel.ch>.
1748
1749 2007-04-12  Eric Blake  <ebb9@byu.net>
1750
1751         * modules/gettime (Depends-on): Remove gettime.
1752         Reported by Dmitry V. Levin.
1753
1754 2007-04-12  Bruno Haible  <bruno@clisp.org>
1755
1756         * modules/fflush (Include): Mention <stdio.h>.
1757         * modules/strtoimax (Include): Mention <inttypes.h>.
1758         * modules/strtoumax (Include): Likewise.
1759
1760 2007-04-12  Eric Blake  <ebb9@byu.net>
1761
1762         * .cvsignore: New file.
1763         * .gitignore: Likewise.
1764
1765 2007-04-12  Bruno Haible  <bruno@clisp.org>
1766
1767         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
1768         not before, since $(LDADD) often contains libgnu.a.
1769         * modules/striconv-tests (test_striconv_LDADD): Likewise.
1770         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
1771         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
1772         Needed on Cygwin.
1773
1774 2007-04-12  Eric Blake  <ebb9@byu.net>
1775
1776         Work around glibc's failure to flush stdin on fclose.
1777         * lib/closein.c (close_stdin): Flush stdin before closing.
1778
1779         Work around glibc's failure to reset seekable stdin on exit.
1780         * modules/closein: New module.
1781         * lib/closein.c: New file.
1782         * lib/closein.h: Likewise.
1783         * m4/closein.m4: Likewise.
1784         * MODULES.html.sh (File stream based Input/Output): Document it.
1785
1786 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1787
1788         * gnulib-tool: Rename generated 'autobuild' script to
1789         'do-autobuild' in --create-megatestdir output.
1790
1791         * doc/gnulib.texi (Build robot for gnulib): Fix.
1792
1793 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1794
1795         * modules/sysexits (Depends-on): Add absolute-header.
1796
1797 2007-04-12  Eric Blake  <ebb9@byu.net>
1798
1799         No need to preserve errno on success.
1800         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
1801         Reported by Bruno Haible.
1802
1803 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1804
1805         * MODULES.html.sh (Support for maintaining and releasing
1806         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
1807
1808 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1809
1810         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
1811
1812 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1813
1814         * modules/autobuild: New module.
1815
1816         * m4/autobuild.m4: New file.
1817
1818 2007-04-11  Bruno Haible  <bruno@clisp.org>
1819
1820         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
1821         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
1822         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
1823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
1824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1825         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1826         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1828         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1829         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1830         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
1831         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1832         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1833         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
1834         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1835         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1836         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
1837         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1838         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1839         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
1840         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1841         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
1843         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1844         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1845         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
1846         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1847         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1848         Reported by Eric Blake.
1849
1850 2007-04-11  Bruno Haible  <bruno@clisp.org>
1851
1852         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
1853
1854 2007-04-10  Bruno Haible  <bruno@clisp.org>
1855
1856         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
1857         for NaN and Infinity. Needed on FreeBSD 6.1.
1858         * tests/test-vasnprintf-posix.c (test_function): Undo last change
1859         regarding results for "%010a" of Infinity and NaN.
1860         * tests/test-vasprintf-posix.c (test_function): Likewise.
1861         * tests/test-snprintf-posix.h (test_function): Likewise.
1862         * tests/test-sprintf-posix.h (test_function): Likewise.
1863         * tests/test-fprintf-posix.h (test_function): Likewise.
1864         * tests/test-printf-posix.h (test_function): Likewise.
1865         * tests/test-fprintf-posix.out: Likewise.
1866
1867 2007-04-10  Bruno Haible  <bruno@clisp.org>
1868
1869         * modules/locale-tests: New file.
1870         * tests/test-locale.c: New file.
1871
1872         * modules/locale: New file.
1873         * lib/locale_.h: New file.
1874         * m4/locale_h.m4: New file.
1875
1876 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1877             Bruno Haible  <bruno@clisp.org>
1878
1879         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
1880         be determined, test for availability of the copysignf, copysign,
1881         copysignl functions.
1882         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
1883         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
1884         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
1885
1886 2007-04-09  Eric Blake  <ebb9@byu.net>
1887
1888         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
1889         * modules/stdio (Makefile.am): Support fflush.
1890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1891         * modules/fflush: New file.
1892         * lib/fflush.c: Likewise.
1893         * m4/fflush.m4: Likewise.
1894         * modules/fflush-tests: New test.
1895         * tests/test-fflush.c: Likewise.
1896         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
1897
1898 2007-04-06  Bruno Haible  <bruno@clisp.org>
1899
1900         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
1901         (VASNPRINTF): Use signbit for faster determination whether to print a
1902         minus sign.
1903         * modules/vasnprintf (Files): Remove lib/float+.h.
1904         * modules/fprintf-posix (Depends-on): Add signbit.
1905         * modules/snprintf-posix (Depends-on): Likewise.
1906         * modules/sprintf-posix (Depends-on): Likewise.
1907         * modules/vasnprintf-posix (Depends-on): Likewise.
1908         * modules/vasprintf-posix (Depends-on): Likewise.
1909         * modules/vfprintf-posix (Depends-on): Likewise.
1910         * modules/vsnprintf-posix (Depends-on): Likewise.
1911         * modules/vsprintf-posix (Depends-on): Likewise.
1912
1913 2007-04-06  Bruno Haible  <bruno@clisp.org>
1914
1915         * tests/test-frexp.c (main): Test also the sign bit of zero results.
1916         * tests/test-frexpl.c (main): Likewise.
1917         * tests/test-ldexpl.c (main): Likewise.
1918         * modules/frexp-tests (Depends-on): Add signbit.
1919         * modules/frexpl-tests (Depdends-on): Likewise.
1920         * modules/ldexpl-tests (Depdends-on): Likewise.
1921
1922 2007-04-06  Bruno Haible  <bruno@clisp.org>
1923
1924         * modules/signbit-tests: New file.
1925         * tests/test-signbit.c: New file.
1926
1927         * modules/signbit: New file.
1928         * lib/signbitf.c: New file.
1929         * lib/signbitd.c: New file.
1930         * lib/signbitl.c: New file.
1931         * m4/signbit.m4: New file.
1932         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
1933         (signbit): New macro.
1934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
1935         REPLACE_SIGNBIT.
1936         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
1937         REPLACE_FREXPL into math.h.
1938
1939 2007-04-06  Bruno Haible  <bruno@clisp.org>
1940
1941         * modules/isnanf-nolibm-tests: New file.
1942         * tests/test-isnanf.c: New file.
1943
1944         * modules/isnanf-nolibm: New file.
1945         * lib/isnanf.h: New file.
1946         * lib/isnanf.c: New file.
1947         * lib/isnan.c: Consider the USE_FLOAT macro.
1948         * m4/isnanf.m4: New file.
1949
1950 2007-04-06  Bruno Haible  <bruno@clisp.org>
1951
1952         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
1953         (Link): New section.
1954
1955         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
1956
1957 2007-04-06  Bruno Haible  <bruno@clisp.org>
1958
1959         Assume the 'long double' type.
1960         * m4/longdouble.m4: Remove file.
1961         * config/srclist.txt: Don't mention longdouble.m4.
1962         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
1963         * lib/float+.h: Likewise.
1964         * lib/frexp.c: Likewise.
1965         * lib/printf-args.h: Likewise.
1966         * lib/printf-args.c: Likewise.
1967         * lib/printf-frexp.c: Likewise.
1968         * lib/printf-parse.c: Likewise.
1969         * lib/vasnprintf.c: Likewise.
1970         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
1971         * m4/intl.m4: Likewise.
1972         * m4/isnanl.m4: Likewise.
1973         * m4/printf.m4: Likewise.
1974         * m4/printf-frexpl.m4: Likewise.
1975         * m4/vasnprintf.m4: Likewise.
1976         * modules/allocsa (Files): Remove m4/longdouble.m4.
1977         * modules/gettext (Files): Likewise.
1978         * modules/relocatable-prog-wrapper (Files): Likewise.
1979         * modules/vasnprintf (Files): Likewise.
1980         * modules/isnanl (Files): Likewise.
1981         (Include): Simplify.
1982         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
1983         (Include): Simplify.
1984         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
1985         (Include): Simplify.
1986         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
1987         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1988         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
1989         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1990         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
1991         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1992         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
1993         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1994         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
1995         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1996         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
1997         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1998         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
1999         * tests/test-isnanl.c: Likewise.
2000         * tests/test-snprintf-posix.h: Likewise.
2001         * tests/test-sprintf-posix.h: Likewise.
2002         * tests/test-vasnprintf-posix.c: Likewise.
2003         * tests/test-vasnprintf-posix2.c: Likewise.
2004         * tests/test-vasprintf-posix.c: Likewise.
2005
2006 2007-04-06  Bruno Haible  <bruno@clisp.org>
2007
2008         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
2009         * lib/math_.h [__DECC]: Include the overridden include file through
2010         #include_next, outside the double-inclusion guard.
2011         * lib/stdio_.h [__DECC]: Likewise.
2012         * lib/stdlib_.h [__DECC]: Likewise.
2013         * lib/string_.h [__DECC]: Likewise.
2014         * lib/time_.h [__DECC]: Likewise.
2015         * lib/wchar_.h [__DECC]: Likewise.
2016         * lib/wctype_.h [__DECC]: Likewise.
2017         * lib/inttypes_.h [__DECC]: Likewise.
2018         Reported by Albert Chin <china@thewrittenword.com> in
2019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
2020
2021 2007-04-04  Eric Blake  <ebb9@byu.net>
2022
2023         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
2024         1.5.x.
2025
2026 2007-04-04  Bruno Haible  <bruno@clisp.org>
2027
2028         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
2029         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
2030
2031 2007-04-04  Bruno Haible  <bruno@clisp.org>
2032
2033         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
2034         results for "%010a" of Infinity and NaN.
2035         * tests/test-vasprintf-posix.c (test_function): Likewise.
2036         * tests/test-snprintf-posix.h (test_function): Likewise.
2037         * tests/test-sprintf-posix.h (test_function): Likewise.
2038         * tests/test-fprintf-posix.h (test_function): Remove these tests.
2039         * tests/test-printf-posix.h (test_function): Likewise.
2040         * tests/test-fprintf-posix.out: Update.
2041         Needed for FreeBSD 6.1.
2042
2043 2007-04-04  Bruno Haible  <bruno@clisp.org>
2044
2045         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
2046         directly used by the gnulib modules nor by gnulib-tool.
2047
2048 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2049
2050         * DEPENDENCIES: Give overall description of version dependency
2051         desirability.  Use more-typical names for apps.
2052         Add shell, coreutils, diffutils, grep, tar, gzip.
2053
2054 2007-04-04  Simon Josefsson  <simon@josefsson.org>
2055
2056         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
2057
2058 2007-04-04  Karl Berry  <karl@gnu.org>
2059
2060         * MODULES.html.sh (func_module): missing '.
2061
2062 2007-04-03  Bruno Haible  <bruno@clisp.org>
2063
2064         * modules/argmatch-tests (Makefile.am): New variable
2065         test_argmatch_LDADD.
2066         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
2067         * modules/array-list-tests (Makefile.am): New variable
2068         test_array_list_LDADD.
2069         * modules/array-oset-tests (Makefile.am): New variable
2070         test_array_oset_LDADD.
2071         * modules/avltree-list-tests (Makefile.am): New variable
2072         test_avltree_list_LDADD.
2073         * modules/avltree-oset-tests (Makefile.am): New variable
2074         test_avltree_oset_LDADD.
2075         * modules/avltreehash-list-tests (Makefile.am): New variable
2076         test_avltreehash_list_LDADD.
2077         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
2078         test_canonicalize_lgpl_LDADD.
2079         * modules/carray-list-tests (Makefile.am): New variable
2080         test_carray_list_LDADD.
2081         * modules/dirname-tests (Makefile.am): New variable
2082         test_dirname_LDADD.
2083         * modules/linked-list-tests (Makefile.am): New variable
2084         test_linked_list_LDADD.
2085         * modules/linkedhash-list-tests (Makefile.am): New variable
2086         test_linkedhash_list_LDADD.
2087         * modules/rbtree-list-tests (Makefile.am): New variable
2088         test_rbtree_list_LDADD.
2089         * modules/rbtree-oset-tests (Makefile.am): New variable
2090         test_rbtree_oset_LDADD.
2091         * modules/rbtreehash-list-tests (Makefile.am): New variable
2092         test_rbtreehash_list_LDADD.
2093         * modules/xvasprintf-tests (Makefile.am): New variable
2094         test_xvasprintf_LDADD.
2095         Reported by Eric Blake.
2096
2097 2007-04-03  Eric Blake  <ebb9@byu.net>
2098
2099         * DEPENDENCIES: Weaken m4 requirements.
2100
2101 2007-04-03  Bruno Haible  <bruno@clisp.org>
2102
2103         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
2104         * modules/isnanl-tests (configure.ac): Likewise.
2105
2106 2007-04-03  Ben Pfaff  <blp@gnu.org>
2107
2108         * modules/iconv_open: Add $(srcdir)/ to source directory
2109         references in Makefile fragments that call gperf, to fix VPATH
2110         builds.
2111
2112 2007-04-03  Bruno Haible  <bruno@clisp.org>
2113
2114         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
2115         * lib/ldexpl.c: Undo last change.
2116
2117 2007-04-03  Bruno Haible  <bruno@clisp.org>
2118
2119         * modules/printf-frexpl (Depends-on): Undo last change.
2120         (Files): Add m4/ldexpl.m4.
2121
2122 2007-04-03  Bruno Haible  <bruno@clisp.org>
2123
2124         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
2125         * modules/isnanl (Link): New section.
2126
2127         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
2128         * modules/frexp (Link): New section.
2129
2130         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
2131         * modules/frexpl (Link): New section.
2132
2133         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
2134         * modules/ldexpl (Link): New section.
2135
2136 2007-04-03  Bruno Haible  <bruno@clisp.org>
2137
2138         * modules/TEMPLATE-EXTENDED: New file.
2139         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
2140
2141 2007-04-03  Bruno Haible  <bruno@clisp.org>
2142
2143         * DEPENDENCIES: New file.
2144         Suggested by Simon Josefsson.
2145
2146 2007-04-03  Bruno Haible  <bruno@clisp.org>
2147
2148         * doc/gnulib.texi: Escape @.
2149
2150 2007-04-03  James Youngman  <jay@gnu.org>
2151         and Paul Eggert  <eggert@cs.ucla.edu>
2152
2153         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
2154         birthtime on all systems that have birthtime, not just those which
2155         use st_birthtimensec rather than st_birthtim.  Putting zero in
2156         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
2157         that the birth time is not available for files on an NFS mount.
2158
2159 2007-04-03  Simon Josefsson  <simon@josefsson.org>
2160
2161         * modules/memxor: Move back from crypto/, suggested by Bruno.
2162         * modules/crypto/hmac-sha1: Fix memxor dependency.
2163
2164         * modules/crypto/gc: Moved from ../.
2165
2166 2007-04-02  Eric Blake  <ebb9@byu.net>
2167
2168         * lib/ldexpl.c (includes): Avoid libm.
2169
2170         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
2171
2172 2007-04-02  Bruno Haible  <bruno@clisp.org>
2173
2174         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
2175         on IRIX.
2176
2177 2007-04-02  Bruno Haible  <bruno@clisp.org>
2178
2179         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
2180         x86 or x86_64 platforms running MacOS X.
2181         Reported by Ryan Schmidt <@ryandesign.com>.
2182
2183 2007-04-02  Bruno Haible  <bruno@clisp.org>
2184
2185         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
2186         i386.
2187
2188 2007-04-01  Simon Josefsson  <simon@josefsson.org>
2189
2190         * modules/crypto/arcfour: Moved from ../.
2191         * modules/crypto/arcfour-tests: Moved from ../.
2192         * modules/crypto/arctwo: Moved from ../.
2193         * modules/crypto/arctwo-tests: Moved from ../.
2194         * modules/crypto/des: Moved from ../.
2195         * modules/crypto/des-tests: Moved from ../.
2196         * modules/crypto/gc-arcfour: Moved from ../.
2197         * modules/crypto/gc-arcfour-tests: Moved from ../.
2198         * modules/crypto/gc-arctwo: Moved from ../.
2199         * modules/crypto/gc-arctwo-tests: Moved from ../.
2200         * modules/crypto/gc-des: Moved from ../.
2201         * modules/crypto/gc-des-tests: Moved from ../.
2202         * modules/crypto/gc-hmac-md5: Moved from ../.
2203         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
2204         * modules/crypto/gc-hmac-sha1: Moved from ../.
2205         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
2206         * modules/crypto/gc-md2: Moved from ../.
2207         * modules/crypto/gc-md2-tests: Moved from ../.
2208         * modules/crypto/gc-md4: Moved from ../.
2209         * modules/crypto/gc-md4-tests: Moved from ../.
2210         * modules/crypto/gc-md5: Moved from ../.
2211         * modules/crypto/gc-md5-tests: Moved from ../.
2212         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
2213         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
2214         * modules/crypto/gc-random: Moved from ../.
2215         * modules/crypto/gc-rijndael: Moved from ../.
2216         * modules/crypto/gc-rijndael-tests: Moved from ../.
2217         * modules/crypto/gc-sha1: Moved from ../.
2218         * modules/crypto/gc-sha1-tests: Moved from ../.
2219         * modules/crypto/gc-tests: Moved from ../.
2220         * modules/crypto/hmac-md5: Moved from ../.
2221         * modules/crypto/hmac-md5-tests: Moved from ../.
2222         * modules/crypto/hmac-sha1: Moved from ../.
2223         * modules/crypto/hmac-sha1-tests: Moved from ../.
2224         * modules/crypto/md2: Moved from ../.
2225         * modules/crypto/md2-tests: Moved from ../.
2226         * modules/crypto/md4: Moved from ../.
2227         * modules/crypto/md4-tests: Moved from ../.
2228         * modules/crypto/md5: Moved from ../.
2229         * modules/crypto/md5-tests: Moved from ../.
2230         * modules/crypto/memxor: Moved from ../.
2231         * modules/crypto/rijndael: Moved from ../.
2232         * modules/crypto/rijndael-tests: Moved from ../.
2233         * modules/crypto/sha1: Moved from ../.
2234
2235 2007-03-30  James Youngman  <jay@gnu.org>
2236
2237         * tests/test-stat-time.c (prepare_test): use chmod() rather than
2238         rename() to change the ctime of a file (because ctime is unaffected
2239         by rename on jfs2 on AIX 5.1).
2240         (main): Start by doing cleanup, in case a previous run failed leaving
2241         test files behind.
2242
2243 2007-03-31  Bruno Haible  <bruno@clisp.org>
2244
2245         Support old proprietary implementations of iconv.
2246         * modules/iconv_open: New file.
2247         * lib/iconv_.h: New file.
2248         * m4/iconv_h.m4: New file.
2249         * lib/iconv_open.c: New file.
2250         * lib/iconv_open-aix.gperf: New file.
2251         * lib/iconv_open-hpux.gperf: New file.
2252         * lib/iconv_open-irix.gperf: New file.
2253         * lib/iconv_open-osf.gperf: New file.
2254         * m4/iconv_open.m4: New file.
2255         * modules/linebreak (Depends-on): Add iconv_open.
2256         * modules/striconv (Depends-on): Likewise.
2257         * modules/striconveh (Depends-on): Likewise.
2258         * modules/unicodeio (Depends-on): Likewise.
2259         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
2260         (iconv_t)(-1).
2261         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
2262         conversion if cd is (iconv_t)(-1).
2263         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
2264         is not possible.
2265
2266 2007-03-31  Bruno Haible  <bruno@clisp.org>
2267
2268         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2269         work on Solaris either. Protect also second use of "autodetect_jp".
2270
2271 2007-03-31  Bruno Haible  <bruno@clisp.org>
2272
2273         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
2274         the function is not present.
2275
2276 2007-03-31  Bruno Haible  <bruno@clisp.org>
2277
2278         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
2279         the function is not present.
2280
2281 2007-03-31  Bruno Haible  <bruno@clisp.org>
2282
2283         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
2284         a bug in HP-UX iconv_open().
2285
2286 2007-03-31  Bruno Haible  <bruno@clisp.org>
2287
2288         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
2289         (Mathematics <math.h>): New section, add fpieee.
2290         (Input/output <stdio.h>): Add fseterr.
2291         (Mathematics <math.h>): New section, add printf-frexp.
2292         (Container data structures): Add sublist.
2293         (Core language properties): Add fpucw, inline.
2294         (Functions for greatest-width integer types <inttypes.h>): Add
2295         imaxabs, imaxdiv, inttypes.
2296         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
2297         isnanl-nolibm, ldexp.
2298         (Mathematics <math.h>): New section, add printf-frexpl.
2299         (Support for systems lacking POSIX:2001): Add fprintf-posix,
2300         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
2301         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
2302         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
2303         (Unicode string functions): Add unistr/u*-mbtoucr.
2304         (Java): Add javacomp-script, javaexec-script.
2305         (C#): Add csharpcomp-script, csharpexec-script.
2306         (Support for building libraries and executables): Add havelib,
2307         relocatable-*.
2308         (Support for maintaining and releasing projects): Renamed from
2309         'Support for maintaining and release projects'. Add announce-gen.
2310
2311 2007-03-31  Bruno Haible  <bruno@clisp.org>
2312
2313         * README: Talk primarily about git.
2314         (git and CVS): Renamed from CVS.
2315         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
2316         gnulib is available through git.
2317         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
2318
2319 2007-03-30  Bruno Haible  <bruno@clisp.org>
2320
2321         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
2322         * lib/poll_.h: Likewise.
2323         * lib/stat_.h: Likewise.
2324         * lib/sys_time_.h: Likewise.
2325         * lib/sysexit_.h: Likewise.
2326         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
2327         * lib/stdbool_.h: Likewise.
2328         * lib/byteswap_.h: Add double-inclusion guard.
2329
2330 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
2331
2332         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
2333
2334 2007-03-30  Karl Berry  <karl@gnu.org>
2335
2336         * config/srclist-update: double space after USA in the license
2337         substitution, since that's how it's usually (?) written.
2338
2339 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2340
2341         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
2342         reported by Bruno Haible.
2343
2344 2007-03-29  Bruno Haible  <bruno@clisp.org>
2345
2346         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
2347         a bug in AIX iconv().
2348
2349 2007-03-29  Bruno Haible  <bruno@clisp.org>
2350
2351         * modules/ldexpl-tests: New file.
2352         * tests/test-ldexpl.c: New file.
2353
2354 2007-03-29  Bruno Haible  <bruno@clisp.org>
2355
2356         * lib/ldexpl.c: Include fpucw.h.
2357         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
2358         multiplication.
2359         * modules/ldexpl (Depends-on): Add fpucw.
2360
2361 2007-03-29  Bruno Haible  <bruno@clisp.org>
2362
2363         * modules/ldexpl: New file.
2364         * m4/ldexpl.m4: New file.
2365         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
2366         set.
2367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
2368         REPLACE_LDEXPL.
2369         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
2370         REPLACE_LDEXPL.
2371         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2372         gl_FUNC_LDEXPL_WORKS.
2373         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
2374         * modules/mathl (Files): Remove lib/ldexpl.c.
2375         (Depends-on): Add ldexpl.
2376
2377 2007-03-29  Bruno Haible  <bruno@clisp.org>
2378
2379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
2380
2381 2007-03-29  Bruno Haible  <bruno@clisp.org>
2382
2383         * tests/test-striconveh.c (main): Don't assume that a direct conversion
2384         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
2385         and possibly also HP-UX.
2386         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2387         work on AIX, IRIX, HP-UX, OSF/1.
2388         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2389         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2390         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2391         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2392         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
2393         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2394
2395 2007-03-29  Bruno Haible  <bruno@clisp.org>
2396
2397         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
2398
2399 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2400
2401         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
2402         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
2403
2404 2007-03-29  Eric Blake  <ebb9@byu.net>
2405
2406         * lib/acl-internal.h: Remove redundant include.
2407         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
2408         Cygwin when a file is locked.
2409
2410 2007-03-29  Bruno Haible  <bruno@clisp.org>
2411
2412         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
2413         file.
2414         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
2415
2416 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2417
2418         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
2419         try to remove a parent directory if the child couldn't be removed
2420         (except for the first rmdir, which could fail because the child
2421         doesn't exist).  Problem reported by Jeff Blaine in
2422         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
2423
2424 2007-03-28  Bruno Haible  <bruno@clisp.org>
2425
2426         * lib/striconveh.c (utf8conv_carefully): New function.
2427         (mem_cd_iconveh_internal): Invoke it.
2428
2429 2007-03-28  Bruno Haible  <bruno@clisp.org>
2430
2431         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
2432         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
2433         input.
2434         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
2435         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
2436         unistr/u8-uctomb.
2437
2438 2007-03-28  Bruno Haible  <bruno@clisp.org>
2439
2440         * modules/unistr/u8-mbtoucr: New file.
2441         * lib/unistr/u8-mbtoucr.c: New file.
2442         * modules/unistr/u16-mbtoucr: New file.
2443         * lib/unistr/u16-mbtoucr.c: New file.
2444         * modules/unistr/u16-mbtoucr: New file.
2445         * lib/unistr/u16-mbtoucr.c: New file.
2446         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
2447
2448 2007-03-27  Simon Josefsson  <simon@josefsson.org>
2449             Bruno Haible  <bruno@clisp.org>
2450
2451         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
2452         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
2453         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
2454
2455         * m4/stdio_h.m4: Add stubs for vasprintf too.
2456
2457         * modules/stdio: Support vasprintf in sed command.
2458
2459         * modules/vasprintf: Depend on stdio for prototypes.  Remove
2460         vasprintf.h.  Add stdio module indicator.
2461
2462         * lib/stdio_.h: Declare asprintf and vasprintf, based on
2463         vasprintf.h.
2464
2465         * lib/vasprintf.h: File removed.
2466
2467         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
2468         * lib/vasprintf.c: Ditto.
2469         * lib/xvasprintf.c: Ditto.
2470         * tests/test-vasprintf-posix.c: Ditto.
2471         * tests/test-vasprintf.c: Ditto.
2472
2473 2007-03-27  Bruno Haible  <bruno@clisp.org>
2474
2475         Make vasnprintf multithread-safe.
2476         * lib/vasnprintf.c (decimal_point_char): New function.
2477         (VASNPRINTF): Use it.
2478         Suggested by Simon Josefsson.
2479
2480 2007-03-27  Eric Blake  <ebb9@byu.net>
2481
2482         Support sub-second birthtime on cygwin.
2483         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
2484         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
2485         (get_stat_birthtime): Also work with st_birthtim.
2486
2487 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
2488
2489         * lib/stat-time.h (USE_BIRTHTIME): Remove.
2490         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
2491         (get_stat_birthtime_ns): Do not try to use "spare" fields.
2492         (get_stat_birthtime_ns): Simplify compile-time tests.
2493         (get_stat_birthtime): Change the API to look like
2494         get_stat_mtime etc., except return a negative tv_nsec on error.
2495         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2496         Don't check for "spare" fields.
2497         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
2498         or for struct stat.st_birthtime, as these tests aren't used.
2499         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
2500
2501 2007-03-27  Bruno Haible  <bruno@clisp.org>
2502
2503         * lib/stat-time.h: Include <sys/stat.h>.
2504
2505 2007-03-27  James Youngman  <jay@gnu.org>
2506
2507         * lib/stat-time.h (get_stat_birthtime): New function for
2508           retrieving st_birthtime as provided by UFS2 (hence *BSD).
2509         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
2510           and its variants.
2511         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
2512         * modules/stat-time-test: New file.
2513         * tests/test-stat-time.c: New test, devised by Bruno Haible.
2514
2515 2007-03-26  Bruno Haible  <bruno@clisp.org>
2516
2517         Better support of signalling NaNs.
2518         * lib/atanl.c: Include isnanl.h.
2519         (atanl): Perform test for NaN at the beginning of the function and
2520         through a call to isnanl.
2521         * lib/cosl.c: Include isnanl.h.
2522         (cosl): Perform test for NaN at the beginning of the function and
2523         through a call to isnanl.
2524         * lib/ldexpl.c: Include isnanl.h.
2525         (ldexpl): Perform test for NaN through a call to isnanl.
2526         * lib/logl.c: Include isnanl.h.
2527         (logl): Perform test for NaN at the beginning of the function and
2528         through a call to isnanl.
2529         * lib/sinl.c: Include isnanl.h.
2530         (sinl): Perform test for NaN at the beginning of the function and
2531         through a call to isnanl.
2532         * lib/sqrtl.c: Include isnanl.h.
2533         (sqrtl): Perform test for NaN at the beginning of the function and
2534         through a call to isnanl.
2535         * lib/tanl.c: Include isnanl.h.
2536         (tanl): Perform test for NaN at the beginning of the function and
2537         through a call to isnanl.
2538         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
2539         * modules/mathl (Depends-on): Add isnanl.
2540
2541 2007-03-26  Eric Blake  <ebb9@byu.net>
2542
2543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
2544         regression in logic sense of previous patch.
2545
2546 2007-03-26  Bruno Haible  <bruno@clisp.org>
2547
2548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
2549         unportable shell command "if ! ...".
2550         Reported by Ralf Wildenhues.
2551
2552 2007-03-25  Bruno Haible  <bruno@clisp.org>
2553
2554         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
2555         <sysexits.h> file, and only add EX_CONFIG.
2556         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
2557         absolute file name and whether it is sufficient. Substitute also
2558         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
2559         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
2560         ABSOLUTE_SYSEXITS_H into sysexits.h.
2561
2562 2007-03-25  Bruno Haible  <bruno@clisp.org>
2563
2564         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
2565         hints is NULL.
2566
2567 2007-03-25  Bruno Haible  <bruno@clisp.org>
2568
2569         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
2570         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
2571
2572 2007-03-25  Bruno Haible  <bruno@clisp.org>
2573
2574         * lib/vasnprintf.c: Include langinfo.h.
2575         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
2576         multithread-safe.
2577         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
2578         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
2579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
2585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2586         Reported by Simon Josefsson.
2587
2588 2007-03-25  Bruno Haible  <bruno@clisp.org>
2589
2590         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
2591         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
2592         * modules/vasnprintf (Depends-on): Add stdint.
2593
2594 2007-03-25  Bruno Haible  <bruno@clisp.org>
2595
2596         * modules/fpieee: New file.
2597         * m4/fpieee.m4: New file.
2598         * modules/isnan-nolibm (Depends-on): Add fpieee.
2599         * modules/isnanl-nolibm (Depends-on): Add fpieee.
2600         * modules/isnanl (Depends-on): Add fpieee.
2601
2602 2007-03-25  Bruno Haible  <bruno@clisp.org>
2603
2604         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
2605
2606 2007-03-25  Bruno Haible  <bruno@clisp.org>
2607
2608         Avoid test failures on IRIX 6.5.
2609         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
2610         (main): Use it.
2611         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
2612         macros.
2613         (main): Use them.
2614
2615 2007-03-25  Bruno Haible  <bruno@clisp.org>
2616
2617         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
2618         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
2619         exists but doesn't work.
2620         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
2621         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
2622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
2623         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
2624
2625 2007-03-25  Bruno Haible  <bruno@clisp.org>
2626
2627         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
2628         returns inf. Needed on IRIX 6.5.
2629
2630 2007-03-25  Bruno Haible  <bruno@clisp.org>
2631
2632         * tests/test-frexpl.c: Include isnanl-nolibm.h.
2633         (main): Use isnanl instead of x != x idiom.
2634         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
2635
2636         * tests/test-frexp.c: Include isnan.h.
2637         (main): Use isnan instead of x != x idiom.
2638         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
2639
2640 2007-03-25  Bruno Haible  <bruno@clisp.org>
2641
2642         * tests/test-frexp.c (NaN): New function/macro.
2643         (main): Use it instead of 0.0 / 0.0.
2644         * tests/test-isnan.c (NaN): New function/macro.
2645         (main): Use it instead of 0.0 / 0.0.
2646         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
2647         (test_function): Use it instead of 0.0 / 0.0.
2648         * tests/test-vasprintf-posix.c (NaN): New function/macro.
2649         (test_function): Use it instead of 0.0 / 0.0.
2650         * tests/test-snprintf-posix.h (NaN): New function/macro.
2651         (test_function): Use it instead of 0.0 / 0.0.
2652         * tests/test-sprintf-posix.h (NaN): New function/macro.
2653         (test_function): Use it instead of 0.0 / 0.0.
2654         * tests/test-fprintf-posix.h (NaN): New function/macro.
2655         (test_function): Use it instead of 0.0 / 0.0.
2656         * tests/test-printf-posix.h (NaN): New function/macro.
2657         (test_function): Use it instead of 0.0 / 0.0.
2658
2659         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
2660
2661 2007-03-25  Bruno Haible  <bruno@clisp.org>
2662
2663         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
2664
2665 2007-03-25  Bruno Haible  <bruno@clisp.org>
2666
2667         * lib/regexec.c (merge_state_with_log): Make static.
2668
2669 2007-03-25  Bruno Haible  <bruno@clisp.org>
2670
2671         * lib/trigl.c (kernel_rem_pio2): Make static.
2672
2673 2007-03-25  Bruno Haible  <bruno@clisp.org>
2674
2675         * lib/sincosl.c (sincosl_table): Make static.
2676
2677 2007-03-25  Bruno Haible  <bruno@clisp.org>
2678
2679         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
2680         if the compiler does not support C99.
2681
2682 2007-03-25  Bruno Haible  <bruno@clisp.org>
2683
2684         * modules/time (Makefile.am): Ensure all rule action lines start with a
2685         tab.
2686
2687 2007-03-24  Bruno Haible  <bruno@clisp.org>
2688
2689         * modules/tsearch-tests: New file.
2690         * tests/test-tsearch.sh: New file.
2691         * tests/test-tsearch.c: New file, mostly copied from glibc.
2692
2693         * modules/search-tests: New file.
2694         * tests/test-search.c: New file.
2695
2696         * modules/search: New file.
2697         * lib/search_.h: New file, incorporating lib/tsearch.h.
2698         * m4/search_h.m4: New file.
2699         * lib/tsearch.h: Remove file.
2700         * lib/tsearch.c: Include search.h instead of tsearch.h.
2701         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
2702         HAVE_TSEARCH.
2703         * modules/tsearch (Files): Remove lib/tsearch.h.
2704         (Depends-on): Add search.
2705         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
2706         (Include): Change tsearch.h into search.h.
2707
2708 2007-03-24  Bruno Haible  <bruno@clisp.org>
2709
2710         * modules/fpucw: New file.
2711         * lib/fpucw.h: New file.
2712         * lib/frexp.c: Include fpucw.h.
2713         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
2714         (FUNC): Use them.
2715         * lib/printf-frexp.c: Include fpucw.h.
2716         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
2717         (FUNC): Use them.
2718         * lib/vasnprintf.c: Include fpucw.h.
2719         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
2720         'long double' calculations.
2721         * tests/test-frexpl.c: Include fpucw.h.
2722         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
2723         * tests/test-printf-frexpl.c: Include fpucw.h.
2724         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
2725         * modules/frexpl (Depends-on): Add fpucw.
2726         * modules/printf-frexpl (Depends-on): Likewise.
2727         * modules/fprintf-posix (Depends-on): Likewise.
2728         * modules/snprintf-posix (Depends-on): Likewise.
2729         * modules/sprintf-posix (Depends-on): Likewise.
2730         * modules/vasnprintf-posix (Depends-on): Likewise.
2731         * modules/vasprintf-posix (Depends-on): Likewise.
2732         * modules/vfprintf-posix (Depends-on): Likewise.
2733         * modules/vsnprintf-posix (Depends-on): Likewise.
2734         * modules/vsprintf-posix (Depends-on): Likewise.
2735         * modules/frexpl-tests (Depends-on): Likewise.
2736         * modules/printf-frexpl-tests (Depends-on): Likewise.
2737
2738 2007-03-24  Bruno Haible  <bruno@clisp.org>
2739
2740         * lib/float+.h: New file.
2741         * lib/isnan.c: Include float+.h.
2742         (SIZE): New macro.
2743         (FUNC): Compare only SIZE bytes of the value.
2744         * lib/vasnprintf.c: Include float+.h.
2745         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
2746         SIZEOF_LDBL or SIZEOF_DBL bytes.
2747         * modules/isnan-nolibm (Files): Add lib/float+.h.
2748         * modules/isnanl-nolibm (Files): Add lib/float+.h.
2749         * modules/isnanl (Files): Add lib/float+.h.
2750         * modules/vasnprintf (Files): Add lib/float+.h.
2751
2752 2007-03-24  Bruno Haible  <bruno@clisp.org>
2753
2754         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
2755         include isnanl-nolibm.h.
2756
2757 2007-03-24  Bruno Haible  <bruno@clisp.org>
2758
2759         * tests/test-read-file.c (main): Don't produce spurious output for
2760         expected situations. Make the test fail if it encountered unexpected
2761         results.
2762
2763 2007-03-24  Bruno Haible  <bruno@clisp.org>
2764
2765         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
2766         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
2767
2768 2007-03-24  Bruno Haible  <bruno@clisp.org>
2769
2770         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
2771
2772 2007-03-24  Bruno Haible  <bruno@clisp.org>
2773
2774         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
2775         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
2776
2777         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
2778         * modules/utf8-ucs4: Turn into a symbolic link to module
2779         unistr/u8-mbtouc.
2780
2781         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
2782         utf8-ucs4-unsafe.
2783         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
2784         unistr/u8-mbtouc-unsafe.
2785
2786         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
2787         * modules/utf16-ucs4: Turn into a symbolic link to module
2788         unistr/u16-mbtouc.
2789
2790         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
2791         utf16-ucs4-unsafe.
2792         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
2793         unistr/u16-mbtouc-unsafe.
2794
2795         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
2796         * modules/ucs4-utf8: Turn into a symbolic link to module
2797         unistr/u8-ubtomb.
2798
2799         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
2800         * modules/ucs4-utf16: Turn into a symbolic link to module
2801         unistr/u16-ubtomb.
2802
2803 2007-03-24  Bruno Haible  <bruno@clisp.org>
2804
2805         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
2806         Enable the function only if HAVE_INLINE.
2807         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
2808         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
2809         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
2810         Enable the function only if HAVE_INLINE.
2811         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
2812         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
2813         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
2814         Enable the function only if HAVE_INLINE.
2815         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
2816         Enable the function only if HAVE_INLINE.
2817         * modules/utf8-ucs4: Update.
2818         * modules/utf8-ucs4-unsafe: Update.
2819         * modules/utf16-ucs4: Update.
2820         * modules/utf16-ucs4-unsafe: Update.
2821         * modules/ucs4-utf8: Update.
2822         * modules/ucs4-utf16: Update.
2823
2824 2007-03-24  Bruno Haible  <bruno@clisp.org>
2825
2826         * lib/utf8-ucs4.h: Remove file.
2827         * lib/utf8-ucs4-unsafe.h: Remove file.
2828         * lib/utf16-ucs4.h: Remove file.
2829         * lib/utf16-ucs4-unsafe.h: Remove file.
2830         * lib/ucs4-utf8.h: Remove file.
2831         * lib/ucs4-utf16.h: Remove file.
2832         * lib/unistr.h: Include their previous contents.
2833         * m4/utf-ucs4.m4: Remove file.
2834         * m4/ucs4-utf.m4: Remove file.
2835         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
2836         (Depends-on): Add unistr/base.
2837         (configure.ac): Remove gl_UTF_UCS4.
2838         (Makefile.am): Update.
2839         (Include): Change to unistr.h.
2840         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
2841         (Depends-on): Add unistr/base.
2842         (configure.ac): Remove gl_UTF_UCS4.
2843         (Makefile.am): Update.
2844         (Include): Change to unistr.h.
2845         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
2846         (Depends-on): Add unistr/base.
2847         (configure.ac): Remove gl_UTF_UCS4.
2848         (Makefile.am): Update.
2849         (Include): Change to unistr.h.
2850         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
2851         (Depends-on): Add unistr/base.
2852         (configure.ac): Remove gl_UTF_UCS4.
2853         (Makefile.am): Update.
2854         (Include): Change to unistr.h.
2855         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
2856         (Depends-on): Add unistr/base.
2857         (configure.ac): Remove gl_UCS4_UTF.
2858         (Makefile.am): Update.
2859         (Include): Change to unistr.h.
2860         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
2861         (Depends-on): Add unistr/base.
2862         (configure.ac): Remove gl_UCS4_UTF.
2863         (Makefile.am): Update.
2864         (Include): Change to unistr.h.
2865         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
2866         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
2867         utf8-ucs4-unsafe.h.
2868         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
2869         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
2870         utf16-ucs4-unsafe.h.
2871         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
2872         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
2873         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
2874         * lib/unistr/u8-strchr.c: Likewise.
2875         * lib/unistr/u8-strrchr.c: Likewise.
2876         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
2877         * lib/unistr/u16-strchr.c: Likewise.
2878         * lib/unistr/u16-strrchr.c: Likewise.
2879         * lib/striconveh.c: Update.
2880         * lib/linebreak.c: Update.
2881
2882 2007-03-24  Bruno Haible  <bruno@clisp.org>
2883
2884         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
2885         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
2886
2887 2007-03-22  Bruno Haible  <bruno@clisp.org>
2888
2889         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
2890
2891 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
2892
2893         * MODULES.html.sh (File system functions): New module write-any-file.
2894         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
2895         * m4/write-any-file.m4: New files.
2896
2897 2007-03-23  Eric Blake  <ebb9@byu.net>
2898
2899         * gnulib-tool: Rearrange space-tab sequences, since some editors
2900         like to eat them.
2901
2902 2007-03-23  Eric Blake  <ebb9@byu.net>
2903
2904         * lib/version-etc.c (version_etc_va): Update license wording to
2905         be more concise.  Recommended by Richard Stallman.
2906
2907 2007-03-22  Bruno Haible  <bruno@clisp.org>
2908
2909         * lib/poll.c (MSG_PEEK): New fallback definition.
2910
2911 2007-03-22  Bruno Haible  <bruno@clisp.org>
2912
2913         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
2914         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
2915         (main): Update.
2916         Fixes a compilation error on BeOS.
2917
2918 2007-03-22  Bruno Haible  <bruno@clisp.org>
2919
2920         * modules/frexpl-tests: New file.
2921         * tests/test-frexpl.c: New file.
2922
2923         * modules/frexpl: New file.
2924         * m4/frexpl.m4: New file.
2925         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
2926         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
2927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
2928         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
2929         (Depends-on): Add frexpl. Remove isnanl-nolibm.
2930         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
2931
2932 2007-03-22  Bruno Haible  <bruno@clisp.org>
2933
2934         * lib/frexpl.c: Share code with lib/frexp.c.
2935         * modules/mathl (Files): Add lib/frexp.c.
2936         (Depends-on): Add isnanl-nolibm.
2937
2938 2007-03-22  Bruno Haible  <bruno@clisp.org>
2939
2940         * modules/printf-frexp (Files): Add m4/frexp.m4.
2941         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
2942         only if the found frexp function actually works.
2943
2944 2007-03-22  Bruno Haible  <bruno@clisp.org>
2945
2946         * lib/frexp.c: Remove older implementation that uses divisions.
2947
2948 2007-03-21  Bruno Haible  <bruno@clisp.org>
2949
2950         * modules/frexp-tests: New file.
2951         * tests/test-frexp.c: New file.
2952
2953         * modules/frexp: New file.
2954         * lib/frexp.c: New file.
2955         * m4/frexp.m4: New file.
2956         * lib/math_.h (frexp): New declaration.
2957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
2958         REPLACE_FREXP.
2959         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
2960
2961 2007-03-21  Bruno Haible  <bruno@clisp.org>
2962
2963         * modules/isnanl-tests: New file.
2964         * tests/test-isnanl.c: New file.
2965
2966         * modules/isnanl: New file.
2967         * lib/isnanl.h: New file.
2968         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
2969         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
2970         gl_FUNC_ISNANL_WORKS.
2971         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
2972         New macros.
2973
2974 2007-03-21  Bruno Haible  <bruno@clisp.org>
2975
2976         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
2977         lib/isnanl.h.
2978         (Include): Update.
2979         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
2980         * lib/vasnprintf.c: Update.
2981         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
2982         tests/test-isnanl.h, remove tests/test-isnanl.c.
2983         (Makefile.am): Update.
2984         * tests/test-isnanl-nolibm.c: New file.
2985         * tests/test-isnanl.h: New file.
2986         * tests/test-isnanl.c: Remove file.
2987
2988 2007-03-21  Jim Meyering  <jim@meyering.net>
2989
2990         When trying to open ".", treat ESTALE like EACCES.
2991         * lib/savewd.c (savewd_save): Resort to forking not just upon
2992         failure with EACCES, but also when errno is ESTALE.
2993
2994 2007-03-20  Bruno Haible  <bruno@clisp.org>
2995
2996         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
2997         Needed on AIX 5.1. Reported by Matthew Woehlke.
2998
2999 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3000
3001         Suggestions by Bruno Haible:
3002         * lib/acl-internal.h: Include "gettext.h" rather than rolling
3003         our own.
3004         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
3005         * modules/acl (Depends-on): Add gettext.
3006
3007 2007-03-19  Bruno Haible  <bruno@clisp.org>
3008
3009         * modules/iconvme: Remove file.
3010         * lib/iconvme.h: Remove file.
3011         * lib/iconvme.c: Remove file.
3012         * m4/iconvme.m4: Remove file.
3013
3014 2007-03-19  Bruno Haible  <bruno@clisp.org>
3015
3016         * doc/relocatable-maint.texi: Break long shell script line.
3017         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3018
3019 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3020
3021         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
3022         handle file_has_acl.
3023         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
3024         * lib/acl.c: Move header inclusions and related macro defns into
3025         lib/acl-internal.h.
3026         (S_ISLNK): Remove defn, since that's now done for us.
3027         (file_has_acl): Move to lib/file-has-acl.c.
3028         Call acl_trivial if available.  This is the crucial part of the fix.
3029         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
3030         shared within the library.  Rewrite a bit, partly to make it compatible
3031         with the GNU coding style.
3032         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
3033         Remove unnecessary double-quotes.
3034         Don't test for acl_to_text; the build will catch that.
3035         Replace acl_entries if it doesn't exist and it is needed.
3036         Check for -lsec and acl_trivial (as used on Solaris 10).
3037         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
3038         lib/file-has-acl.c.
3039         (Depends-on): Add sys_stat, for S_ISLNK.
3040
3041 2007-03-19  Ben Pfaff  <blp@gnu.org>
3042
3043         * doc/gnulib.texi: Fix typos.
3044         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3045
3046 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3047
3048         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
3049         If size is zero here, buf must be zero.
3050
3051 2007-03-19  Simon Josefsson  <simon@josefsson.org>
3052
3053         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
3054         <bruno@clisp.org>.
3055
3056 2007-03-18  Bruno Haible  <bruno@clisp.org>
3057
3058         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
3059         Suggested by Eric Blake.
3060
3061 2007-03-18  Ben Pfaff  <blp@gnu.org>
3062
3063         * doc/relocatable.texi: Recommend using as prefix a directory
3064         that does not exist and will never be created.  Based on
3065         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
3066         and others.
3067
3068 2007-03-17  Bruno Haible  <bruno@clisp.org>
3069
3070         * lib/fchownat.c: Include lchown.h.
3071
3072 2007-03-17  Bruno Haible  <bruno@clisp.org>
3073
3074         Fix endless loop when the given allocated size was > INT_MAX.
3075         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
3076         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
3077         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
3078         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
3079         * lib/sprintf.c (sprintf): Likewise.
3080
3081 2007-03-17  Bruno Haible  <bruno@clisp.org>
3082
3083         * tests/test-argp-2.sh (func_compare): Output a context diff.
3084
3085 2007-03-17  Bruno Haible  <bruno@clisp.org>
3086
3087         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
3088         locale's decimal-point character.
3089
3090 2007-03-17  Bruno Haible  <bruno@clisp.org>
3091
3092         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
3093         before comparing it. Needed because on some platforms (e.g. x86) a
3094         'long double' occupies less bytes than sizeof (long double).
3095
3096 2007-03-17  Bruno Haible  <bruno@clisp.org>
3097
3098         * tests/test-crc.c (main): Make printf statements 64-bit clean.
3099         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
3100         * tests/test-getaddrinfo.c (simple): Likewise.
3101         * tests/test-read-file.c (main): Likewise.
3102
3103 2007-03-17  Bruno Haible  <bruno@clisp.org>
3104
3105         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
3106
3107 2007-03-17  Bruno Haible  <bruno@clisp.org>
3108
3109         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
3110         unused variable.
3111
3112 2007-03-17  Bruno Haible  <bruno@clisp.org>
3113
3114         * tests/test-c-strcasecmp.c: Include c-strcase.h.
3115         * tests/test-c-strncasecmp.c: Likewise.
3116
3117 2007-03-17  Bruno Haible  <bruno@clisp.org>
3118
3119         * modules/stdlib (Depends-on): Add unistd.
3120         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
3121         Needed for MacOS X 10.3.
3122
3123 2007-03-17  Bruno Haible  <bruno@clisp.org>
3124
3125         * lib/unistr/u-strdup.h: Include <stdlib.h>.
3126
3127 2007-03-17  Bruno Haible  <bruno@clisp.org>
3128
3129         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
3130
3131 2007-03-17  Bruno Haible  <bruno@clisp.org>
3132
3133         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
3134         to reflect files copied from gnulib (with or without modifications).
3135         Suggested by Jim Meyering.
3136
3137 2007-03-17  Eric Blake  <ebb9@byu.net>
3138
3139         * NEWS: Document stdlib change from 2007-02-18.
3140
3141 2007-03-17  Jim Meyering  <jim@meyering.net>
3142
3143         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
3144         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
3145         someone uses a name containing shell meta-characters.
3146         Reported by Alfred M. Szmidt.
3147
3148         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
3149
3150 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
3151
3152         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
3153         and copy gettext configuration files only if configure.ac contains
3154         a use of AM_GNU_GETTEXT_VERSION.
3155
3156 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
3157
3158         * build-aux/bootstrap (gnulib_name): New variable.
3159         (gnulib_tool_options): Use it.
3160
3161 2007-03-13  Simon Josefsson  <simon@josefsson.org>
3162
3163         * tests/test-des.c: Use new namespace.
3164
3165 2007-03-15  Bruno Haible  <bruno@clisp.org>
3166
3167         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
3168         Reported by James Youngman <jay@gnu.org>.
3169
3170 2007-03-15  Bruno Haible  <bruno@clisp.org>
3171
3172         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
3173         declared prototype. Needed with cc on OSF/1 5.1.
3174
3175 2007-03-15  Bruno Haible  <bruno@clisp.org>
3176
3177         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
3178         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
3179         (struct gl_list_implementation): Add dispose_fn argument to the
3180         'create_empty', 'create' methods.
3181         (struct gl_list_impl_base): Add field 'dispose_fn'.
3182         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
3183         argument.
3184         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
3185         dispose_fn argument.
3186         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
3187         dispose_fn on the dropped values.
3188         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
3189         dispose_fn argument.
3190         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
3191         dropped values.
3192         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
3193         (gl_tree_remove_node): Call dispose_fn on the dropped value.
3194         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
3195         (gl_tree_remove_node): Call dispose_fn on the dropped value.
3196         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
3197         argument.
3198         (gl_tree_list_free): Call dispose_fn on the dropped values.
3199         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
3200         the dropped values.
3201         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3202         Add dispose_fn argument.
3203         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
3204         Call dispose_fn on the dropped values.
3205         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
3206         Add dispose_fn argument.
3207         (gl_sublist_create): Initialize the 'dispose_fn' field.
3208         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
3209         * tests/test-array_list.c (main): Update.
3210         * tests/test-carray_list.c (main): Update.
3211         * tests/test-avltree_list.c (main): Update.
3212         * tests/test-rbtree_list.c (main): Update.
3213         * tests/test-avltreehash_list.c (main): Update.
3214         * tests/test-rbtreehash_list.c (main): Update.
3215         * tests/test-linked_list.c (main): Update.
3216         * tests/test-linkedhash_list.c (main): Update.
3217         * tests/test-array_oset.c (main): Update.
3218
3219 2007-03-15  Bruno Haible  <bruno@clisp.org>
3220
3221         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
3222         (gl_oset_create_empty): Add dispose_fn argument.
3223         (struct gl_oset_implementation): Add dispose_fn argument to
3224         'create_empty' method.
3225         (struct gl_oset_impl_base): Add dispose_fn field.
3226         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
3227         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
3228         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
3229         values.
3230         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
3231         (gl_tree_oset_free): Call dispose_fn on the dropped values.
3232         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3233         dropped value.
3234         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3235         dropped value.
3236         * tests/test-array_oset.c (main): Update.
3237         * tests/test-avltree_oset.c (main): Update.
3238         * tests/test-rbtree_oset.c (main): Update.
3239         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
3240
3241 2007-03-13  Bruno Haible  <bruno@clisp.org>
3242
3243         * tests/test-stdbool.c (i): Update after last patch.
3244
3245 2007-03-12  Bruno Haible  <bruno@clisp.org>
3246
3247         * lib/quotearg.c: Include <wctype.h> early, before the definition of
3248         the iswprint macro. Needed on Solaris 2.5.1.
3249
3250 2007-03-12  Bruno Haible  <bruno@clisp.org>
3251
3252         * tests/test-printf-frexp.c (main): Declare x as volatile.
3253
3254 2007-03-12  Simon Josefsson  <simon@josefsson.org>
3255
3256         * doc/gnulib.texi (Build robot for gnulib): New section.
3257
3258 2007-03-12  Jim Meyering  <jim@meyering.net>
3259
3260         * build-aux/bootstrap: New file.
3261         * build-aux/bootstrap.conf: New file, from coreutils.
3262
3263 2007-03-11  Bruno Haible  <bruno@clisp.org>
3264
3265         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
3266
3267 2007-03-12  Simon Josefsson  <simon@josefsson.org>
3268
3269         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
3270         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
3271         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
3272
3273 2007-03-11  Bruno Haible  <bruno@clisp.org>
3274
3275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
3276         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
3277
3278 2007-03-11  Bruno Haible  <bruno@clisp.org>
3279
3280         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
3281         formula. Needed for SunPRO C 5.0.
3282
3283 2007-03-11  Bruno Haible  <bruno@clisp.org>
3284
3285         * modules/long-options (Depends-on): Add getopt.
3286
3287 2007-03-11  Bruno Haible  <bruno@clisp.org>
3288
3289         * modules/modechange (Depends-on): Add stdbool.
3290
3291 2007-03-11  Bruno Haible  <bruno@clisp.org>
3292
3293         * modules/i-ring (Depends-on): Add stdbool.
3294
3295 2007-03-11  Bruno Haible  <bruno@clisp.org>
3296
3297         * modules/gc-des (Depends-on): Add stdbool.
3298
3299 2007-03-11  Bruno Haible  <bruno@clisp.org>
3300
3301         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
3302
3303 2007-03-11  Bruno Haible  <bruno@clisp.org>
3304
3305         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
3306
3307 2007-03-11  Bruno Haible  <bruno@clisp.org>
3308
3309         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
3310
3311 2007-03-11  Bruno Haible  <bruno@clisp.org>
3312
3313         * lib/vasnprintf.c (sprintf): Undefine.
3314
3315 2007-03-11  Bruno Haible  <bruno@clisp.org>
3316
3317         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
3318         initializers in SunPRO C and Compaq C compilers.
3319
3320 2007-03-11  Bruno Haible  <bruno@clisp.org>
3321
3322         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
3323         decrementing code ANSI C compliant.
3324
3325 2007-03-11  Bruno Haible  <bruno@clisp.org>
3326
3327         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
3328         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
3329
3330 2007-03-11  Bruno Haible  <bruno@clisp.org>
3331
3332         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
3333         <stdbool.h> substitute doesn't pass.
3334
3335 2007-03-11  Bruno Haible  <bruno@clisp.org>
3336
3337         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
3338
3339 2007-03-11  Bruno Haible  <bruno@clisp.org>
3340
3341         * gnulib-tool (func_create_megatestdir): Create also an autobuild
3342         script, for submission to autobuild.josefsson.org.
3343
3344 2007-03-10  Bruno Haible  <bruno@clisp.org>
3345
3346         * modules/canonicalize-lgpl-tests: New file.
3347         * tests/test-canonicalize-lgpl.sh: New file.
3348         * tests/test-canonicalize-lgpl.c: New file.
3349
3350         * modules/c-strcase-tests: New file.
3351         * tests/test-c-strcase.sh: New file.
3352         * tests/test-c-strcasecmp.c: New file.
3353         * tests/test-c-strncasecmp.c: New file.
3354
3355         * modules/atexit-tests: New file.
3356         * tests/test-atexit.sh: New file.
3357         * tests/test-atexit.c: New file.
3358
3359 2007-03-10  Bruno Haible  <bruno@clisp.org>
3360
3361         * tests/test-binary-io.sh: Use temporary filenames that are not so
3362         likely to clash with those of other tests (in a parallel make).
3363         * tests/test-binary-io.c: Likewise.
3364
3365 2007-03-10  Bruno Haible  <bruno@clisp.org>
3366
3367         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
3368         fallback; use #error instead.
3369         Suggested by Simon Josefsson.
3370
3371 2007-03-10  Bruno Haible  <bruno@clisp.org>
3372
3373         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
3374         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
3375         first and the last.
3376
3377 2007-03-10  Bruno Haible  <bruno@clisp.org>
3378
3379         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
3380
3381 2007-03-10  Bruno Haible  <bruno@clisp.org>
3382
3383         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
3384         "make distcheck".
3385         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
3386         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
3387         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
3388
3389 2007-03-10  Bruno Haible  <bruno@clisp.org>
3390
3391         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
3392         variable.
3393         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
3394         variable.
3395
3396 2007-03-09  Eric Blake  <ebb9@byu.net>
3397         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
3398
3399         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
3400         types are not being provided by gnulib.
3401         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
3402         types are supported.
3403
3404 2007-03-10  Bruno Haible  <bruno@clisp.org>
3405
3406         * lib/stdio_.h (__attribute__): New macro.
3407         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
3408         vsprintf): Specify __attribute__ __format__ for GCC.
3409         Suggested by Eric Blake.
3410
3411 2007-03-09  Bruno Haible  <bruno@clisp.org>
3412
3413         * modules/printf-posix-tests: New file.
3414         * tests/test-printf-posix.sh: New file.
3415         * tests/test-printf-posix.c: New file.
3416
3417         * modules/printf-posix: New file.
3418         * lib/printf.c: New file.
3419         * m4/printf-posix-rpl.m4: New file.
3420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
3421         REPLACE_PRINTF.
3422         * lib/stdio_.h (printf): New declaration.
3423         (format, __format__, ____printf____, ____scanf____, ____strftime____,
3424         ____strfmon____): New macros.
3425         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
3426         REPLACE_PRINTF.
3427
3428 2007-03-09  Bruno Haible  <bruno@clisp.org>
3429
3430         * tests/test-vasnprintf-posix2.sh: New file.
3431         * tests/test-vasnprintf-posix2.c: New file.
3432         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
3433         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
3434         (Makefile.am): Activate test-vasnprintf-posix2.sh.
3435
3436         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
3437         a locale dependent decimal point, rather than always '.'.
3438
3439 2007-03-09  Eric Blake  <ebb9@byu.net>
3440
3441         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
3442         spite of platforms like Tandem/NSK that define it to -1.
3443
3444 2007-03-08  Bruno Haible  <bruno@clisp.org>
3445
3446         * modules/vprintf-posix-tests: New file.
3447         * tests/test-vprintf-posix.sh: New file.
3448         * tests/test-vprintf-posix.c: New file.
3449         * tests/test-printf-posix.h: New file.
3450
3451         * modules/vprintf-posix: New file.
3452         * lib/vprintf.c: New file.
3453         * m4/vprintf-posix.m4: New file.
3454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
3455         REPLACE_VPRINTF.
3456         * lib/stdio_.h (vprintf): New declaration.
3457         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
3458         REPLACE_VPRINTF.
3459
3460 2007-03-08  Bruno Haible  <bruno@clisp.org>
3461
3462         * modules/fprintf-posix-tests: New file.
3463         * tests/test-fprintf-posix.sh: New file.
3464         * tests/test-fprintf-posix.c: New file.
3465
3466         * modules/fprintf-posix: New file.
3467         * lib/fprintf.c: New file.
3468         * m4/fprintf-posix.m4: New file.
3469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
3470         REPLACE_FPRINTF.
3471         * lib/stdio_.h (fprintf): New declaration.
3472         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
3473         REPLACE_FPRINTF.
3474
3475 2007-03-08  Bruno Haible  <bruno@clisp.org>
3476
3477         * modules/vfprintf-posix-tests: New file.
3478         * tests/test-vfprintf-posix.sh: New file.
3479         * tests/test-vfprintf-posix.c: New file.
3480         * tests/test-fprintf-posix.h: New file.
3481         * tests/test-fprintf-posix.out: New file.
3482
3483         * modules/vfprintf-posix: New file.
3484         * lib/vfprintf.c: New file.
3485         * m4/vfprintf-posix.m4: New file.
3486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
3487         REPLACE_VFPRINTF.
3488         * lib/stdio_.h (vfprintf): New declaration.
3489         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
3490         REPLACE_VFPRINTF.
3491
3492 2007-03-08  Bruno Haible  <bruno@clisp.org>
3493
3494         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
3495
3496 2007-03-08  Bruno Haible  <bruno@clisp.org>
3497
3498         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
3499         instead of 'expr' invocations.
3500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3503         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3504         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3505         Suggested by Paul Eggert.
3506
3507 2007-03-08  Bruno Haible  <bruno@clisp.org>
3508
3509         * modules/fseterr-tests: New file.
3510         * tests/test-fseterr.c: New file.
3511
3512         * modules/fseterr: New file.
3513         * lib/fseterr.h: New file.
3514         * lib/fseterr.c: New file.
3515
3516 2007-03-08  Bruno Haible  <bruno@clisp.org>
3517
3518         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
3519         * lib/getopt_.h: Likewise.
3520         * lib/mbswidth.h: Likewise.
3521         * lib/setenv.h: Likewise.
3522         * lib/vasnprintf.h: Likewise.
3523         * lib/vasprintf.h: Likewise.
3524         * lib/verror.h: Likewise.
3525         * lib/xsetenv.h: Likewise.
3526         * lib/xvasprintf.h: Likewise.
3527
3528 2007-03-08  Jim Meyering  <jim@meyering.net>
3529
3530         * users.txt: Add parted.
3531
3532         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
3533
3534 2007-03-07  Bruno Haible  <bruno@clisp.org>
3535
3536         * m4/printf.m4: Make the shell script snippets copy&pastable.
3537
3538 2007-03-02  Bruno Haible  <bruno@clisp.org>
3539
3540         * lib/netinet_in_.h: New file.
3541         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
3542         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
3543         * modules/netinet_in (Files): Add lib/netinet_in_.h.
3544         (Depends-on): Add absolute-header.
3545         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
3546         into netinet/in.h.
3547
3548 2007-03-03  Bruno Haible  <bruno@clisp.org>
3549
3550         * lib/sys_select_.h: New file.
3551         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
3552         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
3553         * modules/sys_select (Files): Add lib/sys_select_.h.
3554         (Depends-on): Add absolute-header.
3555         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
3556         into sys/select.h.
3557
3558 2007-03-02  Bruno Haible  <bruno@clisp.org>
3559
3560         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
3561         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
3562         values.
3563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
3564         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
3565         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
3566         * modules/sys_socket (Depends-on): Add absolute-header.
3567         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
3568         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
3569         (Include): Remove requirement of inclusion of <sys/types.h>.
3570
3571 2007-03-02  Bruno Haible  <bruno@clisp.org>
3572
3573         * lib/byteswap_.h (bswap_32): Fix formula.
3574
3575 2007-03-06  Bruno Haible  <bruno@clisp.org>
3576
3577         * modules/sprintf-posix-tests: New file.
3578         * tests/test-sprintf-posix.c: New file.
3579
3580         * modules/sprintf-posix: New file.
3581         * lib/sprintf.c: New file.
3582         * m4/sprintf-posix.m4: New file.
3583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
3584         REPLACE_SPRINTF.
3585         * lib/stdio_.h (sprintf): New declaration.
3586         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
3587         REPLACE_SPRINTF.
3588
3589 2007-03-06  Bruno Haible  <bruno@clisp.org>
3590
3591         * modules/vsprintf-posix-tests: New file.
3592         * tests/test-vsprintf-posix.c: New file.
3593         * tests/test-sprintf-posix.h: New file.
3594
3595         * modules/vsprintf-posix: New file.
3596         * lib/vsprintf.c: New file.
3597         * m4/vsprintf-posix.m4: New file.
3598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
3599         REPLACE_VSPRINTF.
3600         * lib/stdio_.h (vsprintf): New declaration.
3601         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
3602         REPLACE_VSPRINTF.
3603
3604 2007-03-06  Bruno Haible  <bruno@clisp.org>
3605
3606         * modules/vsnprintf (Depend-on): Remove minmax.
3607
3608 2007-03-06  Bruno Haible  <bruno@clisp.org>
3609
3610         * modules/snprintf-posix-tests: New file.
3611         * tests/test-snprintf-posix.c: New file.
3612
3613         * modules/snprintf-posix: New file.
3614         * m4/snprintf-posix.m4: New file.
3615         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
3616         gl_FUNC_SNPRINTF.
3617         (gl_FUNC_SNPRINTF): Invoke it.
3618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
3619         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
3620         is set.
3621         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
3622
3623 2007-03-06  Bruno Haible  <bruno@clisp.org>
3624
3625         * modules/vsnprintf-posix-tests: New file.
3626         * tests/test-vsnprintf-posix.c: New file.
3627         * tests/test-snprintf-posix.h: New file.
3628
3629         * modules/vsnprintf-posix: New file.
3630         * m4/vsnprintf-posix.m4: New file.
3631         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
3632         gl_FUNC_VSNPRINTF.
3633         (gl_FUNC_VSNPRINTF): Invoke it.
3634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
3635         * lib/stdio_.h (vsnprintf): Define as a replacement if
3636         REPLACE_VSNPRINTF is set.
3637         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
3638
3639 2007-03-06  Bruno Haible  <bruno@clisp.org>
3640
3641         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
3642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
3643
3644 2007-03-06  Bruno Haible  <bruno@clisp.org>
3645
3646         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
3647         (asinl): Declare also if HAVE_DECL_ASINL is set.
3648         (atanl): Declare also if HAVE_DECL_ATANL is set.
3649         (ceill): Declare also if HAVE_DECL_CEILL is set.
3650         (cosl): Declare also if HAVE_DECL_COSL is set.
3651         (expl): Declare also if HAVE_DECL_EXPL is set.
3652         (floorl): Declare also if HAVE_DECL_FLOORL is set.
3653         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
3654         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
3655         (logl): Declare also if HAVE_DECL_LOGL is set.
3656         (sinl): Declare also if HAVE_DECL_SINL is set.
3657         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
3658         (tanl): Declare also if HAVE_DECL_TANL is set.
3659         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
3660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
3661         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
3662         declaration of frexpl, ldexpl.
3663         * modules/printf-frexpl (Depends-on): Add math.
3664         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
3665
3666 2007-03-05  Bruno Haible  <bruno@clisp.org>
3667
3668         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
3669         frexpl and ldexpl are declared.
3670         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
3671
3672 2007-03-05  Bruno Haible  <bruno@clisp.org>
3673
3674         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
3675         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
3676
3677 2007-03-05  Bruno Haible  <bruno@clisp.org>
3678
3679         * lib/stdio_.h: Include <stddef.h>.
3680
3681 2007-03-05  Bruno Haible  <bruno@clisp.org>
3682
3683         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
3684
3685 2007-03-05  Bruno Haible  <bruno@clisp.org>
3686
3687         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
3688         NetBSD 4, from Ralf Wildenhues.
3689
3690 2007-03-04  Bruno Haible  <bruno@clisp.org>
3691
3692         * lib/vasprintf.h: Update #if logic for the case when the functions
3693         exist but are overridden.
3694
3695 2007-03-04  Bruno Haible  <bruno@clisp.org>
3696
3697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
3698         implementations: glibc-2.4 and MacOS X 10.3.
3699         * tests/test-vasnprintf-posix.c (test_function): Test also the case
3700         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
3701         * tests/test-vasprintf-posix.c (test_function): Likewise.
3702
3703 2007-03-04  Bruno Haible  <bruno@clisp.org>
3704
3705         * modules/vasprintf-posix-tests: New file.
3706         * tests/test-vasprintf-posix.c: New file.
3707
3708         * modules/vasprintf-posix: New file.
3709         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
3710         defined.
3711         * m4/vasprintf-posix.m4: New file.
3712         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
3713         gl_FUNC_VASPRINTF.
3714         (gl_FUNC_VASPRINTF): Invoke it.
3715         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
3716         here.
3717         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
3718
3719 2007-03-04  Bruno Haible  <bruno@clisp.org>
3720
3721         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
3722         REPLACE_GETTIMEOFDAY.
3723         * modules/sys_time (Makefile.am): Likewise.
3724         * m4/sys_time_h.m4: Likewise.
3725         * m4/gettimeofday.m4: Likewise.
3726
3727 2007-03-04  Bruno Haible  <bruno@clisp.org>
3728
3729         * modules/vasnprintf-posix-tests: New file.
3730         * tests/test-vasnprintf-posix.c: New file.
3731
3732         * modules/vasnprintf-posix: New file.
3733         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
3734         printf-frexpl.h.
3735         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
3736         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
3737         REPLACE_VASNPRINTF is defined.
3738         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
3739         gl_FUNC_VASNPRINTF.
3740         (gl_FUNC_VASNPRINTF): Invoke it.
3741         * m4/vasnprintf-posix.m4: New file.
3742         * m4/printf.m4: New file.
3743
3744 2007-03-04  Bruno Haible  <bruno@clisp.org>
3745
3746         Compile progreloc.c only if --enable-relocatable is specified.
3747         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
3748         if --enable-relocatable was specified.
3749         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
3750         lib_SOURCES.
3751
3752 2007-03-04  Jim Meyering  <jim@meyering.net>
3753
3754         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
3755         Use it consistently, rather than enumerating errno constants.
3756
3757 2007-03-04  Bruno Haible  <bruno@clisp.org>
3758
3759         * modules/xvasprintf-tests: New file.
3760         * tests/test-xvasprintf.c: New file.
3761
3762         * modules/vasprintf-tests: New file.
3763         * tests/test-vasprintf.c: New file.
3764
3765         * modules/vasnprintf-tests: New file.
3766         * tests/test-vasnprintf.c: New file.
3767
3768         * modules/vsnprintf-tests: New file.
3769         * tests/test-vsnprintf.c: New file.
3770
3771         * modules/snprintf-tests: New file.
3772         * tests/test-snprintf.c: New file.
3773
3774 2007-03-04  Bruno Haible  <bruno@clisp.org>
3775
3776         Compile relocatable.c only if --enable-relocatable is specified.
3777         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
3778         gl_RELOCATABLE_LIBRARY.
3779         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
3780         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
3781         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
3782         gl_RELOCATABLE_LIBRARY.
3783         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
3784         (Makefile.am): Remove lib_SOURCES.
3785         * modules/relocatable-lib-lgpl (configure.ac): Invoke
3786         gl_RELOCATABLE_LIBRARY.
3787         (Makefile.am): Remove lib_SOURCES.
3788         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
3789         always.
3790         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3791         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
3792
3793 2007-03-04  Bruno Haible  <bruno@clisp.org>
3794
3795         * modules/argmatch-tests: New file.
3796         * tests/test-argmatch.c: New file.
3797
3798         * tests/test-allocsa.c (main): Halve the number of loop runs.
3799
3800         * modules/alloca-opt-tests: New file.
3801         * tests/test-alloca-opt.c: New file.
3802
3803 2007-03-04  Jim Meyering  <jim@meyering.net>
3804
3805         Work around difference between Linux ACLs and Solaris 10 ZFS.
3806         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
3807         for EINVAL.
3808
3809 2007-03-03  Bruno Haible  <bruno@clisp.org>
3810
3811         * modules/relocatable-prog (Depends-on): Add back progreloc's
3812         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
3813
3814 2007-03-03  Bruno Haible  <bruno@clisp.org>
3815
3816         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
3817         * modules/relocatable-lib: New file.
3818
3819 2007-03-03  Bruno Haible  <bruno@clisp.org>
3820
3821         * modules/relocatable-prog: Renamed from modules/relocatable.
3822         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
3823
3824 2007-03-03  Bruno Haible  <bruno@clisp.org>
3825
3826         * modules/relocatable-script (Files): Add doc/relocatable.texi,
3827         m4/relocatable-lib.m4.
3828         (Depends-on): Remove 'relocatable'.
3829         (configure.ac): Add gl_RELOCATABLE_NOP.
3830
3831 2007-03-03  Bruno Haible  <bruno@clisp.org>
3832
3833         * modules/relocatable-prog-wrapper: New file.
3834         * modules/relocatable (Depends-on): Add it. Remove all other
3835         dependencies except progname.
3836         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
3837
3838         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
3839         (gl_FUNC_STRERROR): Nop.
3840         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
3841
3842         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
3843         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
3844
3845         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
3846         (gl_FUNC_READLINK): Update.
3847
3848         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
3849
3850 2007-03-03  Bruno Haible  <bruno@clisp.org>
3851
3852         * lib/xreadlink.c: Include <unistd.h> unconditionally.
3853         * modules/xreadlink (Depends-on): Add unistd.
3854         * modules/xreadlink-with-size (Depends-on): Likewise.
3855
3856 2007-03-03  Bruno Haible  <bruno@clisp.org>
3857
3858         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
3859         extracted from gt_FUNC_SETENV.
3860         (gt_FUNC_SETENV): Remove macro.
3861         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
3862         remove gt_FUNC_SETENV.
3863
3864 2007-03-03  Bruno Haible  <bruno@clisp.org>
3865
3866         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
3867         ENABLE_RELOCATABLE here.
3868         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
3869
3870 2007-03-03  Bruno Haible  <bruno@clisp.org>
3871
3872         * modules/rbtreehash-list-tests (Depends-on): Add progname.
3873         * tests/test-rbtreehash_list.c: Include progname.h.
3874         (main): Call set_program_name.
3875
3876         * modules/rbtree-oset-tests (Depends-on): Add progname.
3877         * tests/test-rbtree_oset.c: Include progname.h.
3878         (main): Call set_program_name.
3879
3880         * modules/rbtree-list-tests (Depends-on): Add progname.
3881         * tests/test-rbtree_list.c: Include progname.h.
3882         (main): Call set_program_name.
3883
3884         * modules/linked-list-tests (Depends-on): Add progname.
3885         * tests/test-linked_list.c: Include progname.h.
3886         (main): Call set_program_name.
3887
3888 2007-03-03  Bruno Haible  <bruno@clisp.org>
3889
3890         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
3891         All uses of __restrict changed to _Restrict_.
3892         * lib/glob_.h (__restrict): Remove macro.
3893
3894 2007-03-02  Bruno Haible  <bruno@clisp.org>
3895
3896         * modules/gettext (configure.ac): Require gettext infrastructure
3897         from version 0.16.1.
3898
3899 2007-03-02  Bruno Haible  <bruno@clisp.org>
3900
3901         * modules/linkedhash-list-tests (Depends-on): Add progname.
3902         * tests/test-linkedhash_list.c: Include progname.h.
3903         (main): Call set_program_name.
3904
3905         * modules/carray-list-tests (Depends-on): Add progname.
3906         * tests/test-carray_list.c: Include progname.h.
3907         (main): Call set_program_name.
3908
3909         * modules/avltreehash-list-tests (Depends-on): Add progname.
3910         * tests/test-avltreehash_list.c: Include progname.h.
3911         (main): Call set_program_name.
3912
3913         * modules/avltree-oset-tests (Depends-on): Add progname.
3914         * tests/test-avltree_oset.c: Include progname.h.
3915         (main): Call set_program_name.
3916
3917         * modules/avltree-list-tests (Depends-on): Add progname.
3918         * tests/test-avltree_list.c: Include progname.h.
3919         (main): Call set_program_name.
3920
3921         * modules/array-oset-tests (Depends-on): Add progname.
3922         * tests/test-array_oset.c: Include progname.h.
3923         (main): Call set_program_name.
3924
3925         * modules/array-list-tests (Depends-on): Add progname.
3926         * tests/test-array_list.c: Include progname.h.
3927         (main): Call set_program_name.
3928
3929         * modules/argp-tests (Depends-on): Add progname.
3930         * tests/test-argp.c: Include argp.h first. Include progname.h.
3931         (main): Call set_program_name.
3932
3933 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
3934
3935         * doc/gnulib-tool.texi (Initial import): Reword description of
3936         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
3937         limited effect even if defined after the first system include.
3938
3939 2007-03-01  Bruno Haible  <bruno@clisp.org>
3940
3941         * build-aux/config.libpath: Update to libtool-1.5.22.
3942         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3943
3944 2007-03-01  Bruno Haible  <bruno@clisp.org>
3945
3946         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
3947         foo_CFLAGS.
3948         Reported by Ralf Wildenhues.
3949
3950 2007-03-01  Bruno Haible  <bruno@clisp.org>
3951
3952         * build-aux/install-reloc: Remove object files left over by some
3953         compilers.
3954         Reported by Ralf Wildenhues.
3955
3956 2007-03-01  Bruno Haible  <bruno@clisp.org>
3957
3958         * build-aux/install-reloc: Break long lines.
3959
3960 2007-03-01  Bruno Haible  <bruno@clisp.org>
3961
3962         * doc/relocatable.texi: Document that it may not work on OpenBSD.
3963         Reported by Ralf Wildenhues.
3964
3965 2007-03-01  Bruno Haible  <bruno@clisp.org>
3966
3967         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
3968         include ordering constraints.
3969
3970 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
3971
3972         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
3973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
3974         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
3975         as another example.
3976         * lib/time_.h: Fix misspelling.
3977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
3978         Require gl_HEADER_TIME_H_DEFAULTS.
3979         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
3980         * m4/time_r.m4 (gl_TIME_R): Likewise.
3981         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
3982
3983 2007-03-01  Bruno Haible  <bruno@clisp.org>
3984
3985         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
3986         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3987
3988 2007-03-01  Jim Meyering  <jim@meyering.net>
3989
3990         * modules/xreadlink (Maintainer): Add my name.
3991         * modules/xreadlink-with-size (Depends-on): Alphabetize.
3992
3993 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
3994             Bruno Haible  <bruno@clisp.org>
3995
3996         * build-aux/install-reloc: Compile also c-ctype.c.
3997         * build-aux/relocatable.sh.in: New file.
3998         * doc/relocatable.texi: New file.
3999         * doc/relocatable-maint.texi: New file.
4000         * doc/gnulib.texi: Include relocatable-maint.texi.
4001         * lib/progreloc.c: Include unistd.h unconditionally.
4002         * lib/relocwrapper.c: Include unistd.h unconditionally.
4003         Include c-ctype.h.
4004         (add_dotbin): Use c_tolower.
4005         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
4006         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
4007         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
4008         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
4009         to m4/relocatable-lib.m4.
4010         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
4011         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
4012         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
4013         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
4014         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
4015         * modules/relocatable: New file.
4016         * modules/relocatable-lib: New file.
4017         * modules/relocatable-script: New file.
4018
4019 2007-02-28  Bruno Haible  <bruno@clisp.org>
4020
4021         Import --enable-relocatable infrastructure.
4022         * build-aux/config.libpath: New file, from GNU gettext.
4023         * build-aux/install-reloc: New file, from GNU gettext.
4024         * build-aux/reloc-ldflags: New file, from GNU gettext.
4025         * lib/relocatable.h: New file, from GNU gettext.
4026         * lib/relocatable.c: New file, from GNU gettext.
4027         * lib/relocwrapper.c: New file, from GNU gettext.
4028         * m4/relocatable.m4: New file, from GNU gettext.
4029
4030 2007-02-28  Bruno Haible  <bruno@clisp.org>
4031
4032         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
4033
4034         * modules/xreadlink: New file, from GNU gettext with modifications.
4035         * lib/xreadlink.c: New file, from GNU gettext.
4036         * lib/xreadlink.h: Add comments.
4037         (xreadlink): New declaration.
4038
4039         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
4040         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
4041         lib/xreadlink-with-size.c.
4042         (configure.ac): Remove gl_XREADLINK invocation.
4043         (Makefile.am): Augment lib_SOURCES.
4044         * m4/xreadlink.m4: Remove file.
4045         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
4046         (xreadlink_with_size): Renamed from xreadink.
4047         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
4048         * modules/canonicalize (Depends-on): Replace xreadlink with
4049         xreadlink-with-size.
4050         * lib/canonicalize.c (canonicalize_filename_mode): Update.
4051
4052 2007-02-25  Jim Meyering  <jim@meyering.net>
4053
4054         * build-aux/announce-gen: When complaining about excess arguments,
4055         list them.
4056
4057 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4058
4059         * README: Document signed integer overflow situation more
4060         accurately.
4061
4062 2007-02-25  Bruno Haible  <bruno@clisp.org>
4063
4064         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
4065         'a' or 'A' conversion.
4066
4067 2007-02-25  Bruno Haible  <bruno@clisp.org>
4068
4069         * modules/filename: Renamed from modules/pathname.
4070         (Files): Replace lib/pathname.h with lib/filename.h. Replace
4071         lib/concatpath.c with lib/concat-filename.c.
4072         (Makefile.am): Update.
4073         (Include): Replace pathname.h with filename.h.
4074         * lib/filename.h: Renamed from lib/pathname.h.
4075         (concatenated_filename): Renamed from concatenated_pathname.
4076         * lib/concat-filename.c: Renamed from lib/concatpath.c.
4077         (concatenated_filename): Renamed from concatenated_pathname.
4078         * lib/findprog.c: Include filename.h instead of pathname.h.
4079         (find_in_path): Update.
4080         * lib/javacomp.c: Include filename.h instead of pathname.h.
4081         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
4082         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
4083         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
4084         is_oldgcj_14_13_usable, is_javac_usable): Update.
4085         * lib/javaexec.c: Include filename.h instead of pathname.h.
4086         (execute_java_class): Update.
4087         * modules/findprog: Update.
4088         * modules/javacomp: Update.
4089         * modules/javaexec: Update.
4090         * MODULES.html.sh (File system functions): Add 'filename', remove
4091         'pathname'.
4092
4093 2007-02-25  Bruno Haible  <bruno@clisp.org>
4094
4095         * modules/printf-frexpl-tests: New file.
4096         * tests/test-printf-frexpl.c: New file.
4097
4098         * modules/printf-frexpl: New file.
4099         * lib/printf-frexpl.h: New file.
4100         * lib/printf-frexpl.c: New file.
4101         * m4/printf-frexpl.m4: New file.
4102
4103 2007-02-25  Bruno Haible  <bruno@clisp.org>
4104
4105         * modules/printf-frexp-tests: New file.
4106         * tests/test-printf-frexp.c: New file.
4107
4108         * modules/printf-frexp: New file.
4109         * lib/printf-frexp.h: New file.
4110         * lib/printf-frexp.c: New file.
4111         * m4/printf-frexp.m4: New file.
4112
4113 2007-02-25  Bruno Haible  <bruno@clisp.org>
4114
4115         Assume automake >= 1.10 for the tests.
4116         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
4117         * modules/arctwo-tests: Likewise.
4118         * modules/argp-tests: Likewise.
4119         * modules/avltree-list-tests: Likewise.
4120         * modules/avltree-oset-tests: Likewise.
4121         * modules/avltreehash-list-tests: Likewise.
4122         * modules/carray-list-tests: Likewise.
4123         * modules/crc-tests: Likewise.
4124         * modules/des-tests: Likewise.
4125         * modules/gc-arcfour-tests: Likewise.
4126         * modules/gc-arctwo-tests: Likewise.
4127         * modules/gc-des-tests: Likewise.
4128         * modules/gc-hmac-md5-tests: Likewise.
4129         * modules/gc-hmac-sha1-tests: Likewise.
4130         * modules/gc-md2-tests: Likewise.
4131         * modules/gc-md4-tests: Likewise.
4132         * modules/gc-md5-tests: Likewise.
4133         * modules/gc-pbkdf2-sha1-tests: Likewise.
4134         * modules/gc-rijndael-tests: Likewise.
4135         * modules/gc-sha1-tests: Likewise.
4136         * modules/gc-tests: Likewise.
4137         * modules/getaddrinfo-tests: Likewise.
4138         * modules/hmac-md5-tests: Likewise.
4139         * modules/hmac-sha1-tests: Likewise.
4140         * modules/linked-list-tests: Likewise.
4141         * modules/linkedhash-list-tests: Likewise.
4142         * modules/lock-tests: Likewise.
4143         * modules/md2-tests: Likewise.
4144         * modules/md4-tests: Likewise.
4145         * modules/md5-tests: Likewise.
4146         * modules/rbtree-list-tests: Likewise.
4147         * modules/rbtree-oset-tests: Likewise.
4148         * modules/rbtreehash-list-tests: Likewise.
4149         * modules/read-file-tests: Likewise.
4150         * modules/rijndael-tests: Likewise.
4151         * modules/stdint-tests: Likewise.
4152         * modules/tls-tests: Likewise.
4153
4154 2007-02-24  Bruno Haible  <bruno@clisp.org>
4155
4156         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
4157         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
4158         function; instead check whether isnan with a double argument links.
4159         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
4160         function; instead check whether isnan with a 'long double' argument
4161         links.
4162         Reported by Eric Blake <ebb9@byu.net>.
4163
4164 2007-02-24  Bruno Haible  <bruno@clisp.org>
4165
4166         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
4167         defined.
4168         * lib/isnanl.c: Remove all code. Just include isnan.c.
4169         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
4170
4171 2007-02-25  Jim Meyering  <jim@meyering.net>
4172
4173         Avoid conflicting types for 'unsetenv' on FreeBSD.
4174         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
4175         conflicting with FreeBSD's (5.0 and 6.1) function declaration
4176         in stdlib.h.
4177
4178 2007-02-24  Bruno Haible  <bruno@clisp.org>
4179
4180         * modules/isnanl-nolibm-tests: New file.
4181         * tests/test-isnanl.c: New file.
4182
4183         * modules/isnanl-nolibm: New file.
4184         * lib/isnanl.h: New file.
4185         * lib/isnanl.c: New file.
4186         * m4/isnanl.m4: New file.
4187
4188 2007-02-24  Bruno Haible  <bruno@clisp.org>
4189
4190         * modules/isnan-nolibm-tests: New file.
4191         * tests/test-isnan.c: New file.
4192
4193         * modules/isnan-nolibm: New file.
4194         * lib/isnan.h: New file.
4195         * lib/isnan.c: New file.
4196         * m4/isnan.m4: New file.
4197
4198 2007-02-24  Bruno Haible  <bruno@clisp.org>
4199
4200         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
4201         assume that an exponent fits in 20 bits.
4202
4203 2007-02-24  Jim Meyering  <jim@meyering.net>
4204
4205         * m4/regex.m4: Update the description of the configure-time option,
4206         --without-included-regex, to state accurately what the defaults are,
4207         and perhaps to give people an idea why using this option is risky.
4208
4209 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4210
4211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
4212         loops on small arguments.  This attempts to avoid the problem
4213         Bruno Haible reported for AIX 4.3.2 in
4214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
4215
4216 2007-02-23  Bruno Haible  <bruno@clisp.org>
4217
4218         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
4219         Needed for help2man.
4220
4221 2007-02-23  Karl Berry  <karl@gnu.org>
4222
4223         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
4224         exists, foo.h should be cvs-ignored, not committed.
4225
4226 2007-02-23  Eric Blake  <ebb9@byu.net>
4227
4228         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
4229         * lib/stat-time.h (includes): Likewise.
4230         * lib/utimecmp.c (includes): Likewise.
4231         * lib/utimens.h (includes): Likewise.
4232         * lib/getdate.y (includes): Also include "timespec.h" for use
4233         internal to the module.
4234         * modules/utimens (Depends-on): Revert yesterday's patch.
4235         * modules/nanosleep (Depends-on): Add missing dependency.
4236
4237 2007-02-22  Bruno Haible  <bruno@clisp.org>
4238
4239         * lib/glob.c: Don't include getlogin_r.h.
4240
4241 2007-02-22  Jim Meyering  <jim@meyering.net>
4242
4243         * modules/utimens (Depends-on): Add timespec, required for
4244         utimens.h's inclusion of timespec.h.
4245
4246 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4247
4248         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
4249         long unreadable paths in GNU/Linux.  Problem reported by Andreas
4250         Schwab in
4251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
4252         I'll try to think of a better way to fix the Solaris problem.
4253
4254         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
4255         like glibc; on Solaris 10, it fails with errno == EINVAL.
4256         POSIX says the behavior is unspecified if the first argument is NULL,
4257         so play it safe and never pass NULL to the system getcwd.
4258
4259 2007-02-21  Jim Meyering  <jim@meyering.net>
4260
4261         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
4262         of gettimeofday.  It would conflict with the one now always
4263         provided via sys_time_.h.  Reported by Matthew Woehlke, as
4264         an IRIX 6.5 build failure.
4265
4266 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4267
4268         Minor fixups to port to Solaris 10 with Sun C 5.8.
4269         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
4270         * modules/getcwd (Depends-on): Add dirfd.
4271         * lib/putenv.c (putenv): #undef it.
4272         (rpl_putenv): New decl.
4273         (malloc, free): Include <stdlib.h> rather than prototyping separately.
4274
4275 2007-02-20  Bruno Haible  <bruno@clisp.org>
4276
4277         * modules/stdio-tests: New file.
4278         * tests/test-stdio.c: New file.
4279
4280         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
4281         (Depends-on): Add stdio.
4282         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4283         (Include): Use <stdio.h> instead of vsnprintf.h.
4284         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4285         HAVE_DECL_VSNPRINTF.
4286         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
4287
4288         * modules/snprintf (Files): Remove lib/snprintf.h.
4289         (Depends-on): Add stdio.
4290         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4291         (Include): Use <stdio.h> instead of snprintf.h.
4292         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4293         HAVE_DECL_SNPRINTF.
4294         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
4295         * lib/getaddrinfo.c: Likewise.
4296
4297         * modules/stdio: New file.
4298         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
4299         * lib/snprintf.h: Remove file.
4300         * lib/vsnprintf.h: Remove file.
4301         * lib/.cppi-disable: Remove snprintf.h.
4302         * m4/stdio_h.m4: New file.
4303         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
4304
4305 2007-02-20  Jim Meyering  <jim@meyering.net>
4306
4307         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
4308         used by e.g., mingw.  From Bruno Haible.
4309
4310 2007-02-19  Bruno Haible  <bruno@clisp.org>
4311
4312         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
4313         warnings.
4314         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4315
4316 2007-02-19  Bruno Haible  <bruno@clisp.org>
4317
4318         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
4319         from mingw users.
4320
4321 2007-02-19  Bruno Haible  <bruno@clisp.org>
4322
4323         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
4324         warnings.
4325         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
4326
4327 2007-02-19  Jim Meyering  <jim@meyering.net>
4328
4329         Don't use FD after a successful "fdopendir (fd)".
4330         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
4331         Reset it by calling dirfd on the just-obtained DIR*.
4332
4333         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
4334         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
4335
4336 2007-02-18  Bruno Haible  <bruno@clisp.org>
4337
4338         * lib/readlink.c: Include <unistd.h>.
4339         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
4340         HAVE_READLINK.
4341         * modules/readlink (Depends-on): Add unistd.
4342         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4343         (Include): Add <unistd.h>.
4344
4345         * lib/getlogin_r.h: Remove file.
4346         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
4347         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
4348         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
4349         HAVE_DECL_GETLOGIN_R.
4350         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
4351         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4352         (Include): Use <unistd.h> instead of getlogin_r.h.
4353
4354         * lib/getcwd.h: Remove file.
4355         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
4356         * lib/xgetcwd.c: Likewise.
4357         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
4358         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
4359         * modules/getcwd (Files): Remove lib/getcwd.h.
4360         (Depends-on): Add unistd.
4361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4362         (Include): Use <unistd.h> instad of getcwd.h.
4363
4364         * lib/ftruncate.c: Include <unistd.h> first.
4365         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
4366         Set HAVE_FTRUNCATE.
4367         * modules/ftruncate (Depends-on): Add unistd.
4368         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4369
4370         * lib/fchdir.c: Include <unistd.h> first.
4371         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
4372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
4373         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
4374         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4375         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
4376
4377         * lib/dup2.c: Include <unistd.h> first.
4378         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
4379         HAVE_DUP2.
4380         * modules/dup2 (Depends-on): Add unistd.
4381         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4382
4383         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
4384         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
4385         REPLACE_CHOWN. Don't define chown as a macro here.
4386         * modules/chown (Depends-on): Add unistd.
4387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4388
4389         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
4390         Add definition for GL_LINK_WARNING.
4391         (chown, dup2): New declarations.
4392         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
4393         link warning.
4394         (ftruncate): New declaration.
4395         (getcwd): New declaration, taken from old getcwd.h.
4396         (getlogin_r): New declaration, taken from old getlogin_r.h.
4397         (readlink): New declaration.
4398         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
4399         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
4400         (gl_PREREQ_UNISTD): Remove macro.
4401         (gl_UNISTD_MODULE_INDICATOR): New macro.
4402         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
4403         many new variables. Don't set UNISTD_H.
4404         * modules/unistd (Description): Change.
4405         (Depends-on): Add link-warning.
4406         (configure.ac): Update.
4407         (Makefile.am): Create unistd.h always. Substitute many new variables
4408         into it.
4409
4410 2007-02-18  Bruno Haible  <bruno@clisp.org>
4411
4412         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
4413         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
4414         HAVE_GETSUBOPT.
4415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
4416         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
4417         * lib/getsubopt.h: Remove file.
4418         * modules/getsubopt (Files): Remove lib/getsubopt.h.
4419         (Depends-on): Add stdlib.
4420         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4421         (Includes): Use <stdlib.h> instead of getsubopt.h.
4422         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
4423         Set HAVE_GETSUBOPT.
4424         * lib/getsubopt.c: Don't include getsubopt.h.
4425
4426 2007-02-18  Bruno Haible  <bruno@clisp.org>
4427
4428         * modules/fchdir (Depends-on): Add dup2.
4429
4430 2007-02-18  Bruno Haible  <bruno@clisp.org>
4431
4432         * lib/stdlib_.h: Handle glibc's special invocation convention
4433         specially.
4434
4435 2007-02-18  Bruno Haible  <bruno@clisp.org>
4436
4437         * modules/stdlib-tests: New file.
4438         * tests/test-stdlib.c: New file.
4439
4440         * modules/mkstemp (Files): Remove lib/mkstemp.h.
4441         (Depends-on): Add stdlib.
4442         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4443         (Includes): Use <stdlib.h> instead of mkstemp.h.
4444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4445         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
4446         * lib/mkstemp.c: Don't include mkstemp.h.
4447         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
4448         * lib/stdlib--.h: Don't include mkstemp.h.
4449
4450         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
4451         (Depends-on): Add stdlib.
4452         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4453         (Includes): Use <stdlib.h> instead of mkdtemp.h.
4454         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4455         HAVE_MKDTEMP.
4456         * lib/mkdtemp.c: Don't include mkdtemp.h.
4457         * lib/clean-temp.c: Don't include mkdtemp.h.
4458
4459         * modules/exit (Files): Remove lib/exit.h.
4460         (Depends-on): Add stdlib.
4461         (Makefile.am): Remove lib_SOURCES.
4462         (Include): Use <stdlib.h> instead of exit.h.
4463         * lib/argmatch.c: Don't include exit.h.
4464         * lib/execute.c: Likewise.
4465         * lib/pagealign_alloc.c: Likewise.
4466         * lib/pipe.c: Likewise.
4467         * lib/wait-process.c: Likewise.
4468         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
4469         * lib/exitfail.c: Likewise.
4470         * lib/savewd.c: Likewise.
4471         * lib/xsetenv.c: Likewise.
4472
4473         * modules/stdlib: New file.
4474         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
4475         and extra comments about mkstemp().
4476         * lib/exit.h: Remove file.
4477         * lib/mkdtemp.h: Remove file.
4478         * lib/mkstemp.h: Remove file.
4479         * m4/stdlib_h.m4: New file.
4480         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
4481
4482 2007-02-18  Bruno Haible  <bruno@clisp.org>
4483
4484         * modules/math-tests: New file.
4485         * tests/test-math.c: New file.
4486
4487         * modules/math: New file.
4488         * modules/mathl (Files): Remove lib/mathl.h.
4489         (Depends-on): Add math.
4490         (Makefile.am): Don't mention mathl.h.
4491         (Include): Use <math.h> instead of mathl.h.
4492         * lib/math_.h: New file.
4493         * lib/mathl.h: Remove file.
4494         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
4495         mathl.h.
4496         * lib/asinl.c: Likewise.
4497         * lib/atanl.c: Likewise.
4498         * lib/ceill.c: Likewise.
4499         * lib/cosl.c: Likewise.
4500         * lib/expl.c: Likewise.
4501         * lib/floorl.c: Likewise.
4502         * lib/frexpl.c: Likewise.
4503         * lib/ldexpl.c: Likewise.
4504         * lib/logl.c: Likewise.
4505         * lib/sincosl.c: Likewise.
4506         * lib/sinl.c: Likewise.
4507         * lib/sqrtl.c: Likewise.
4508         * lib/tanl.c: Likewise.
4509         * lib/trigl.c: Likewise.
4510         * m4/math_h.m4: New file.
4511         * MODULES.html.sh (Mathematics): Add math.
4512
4513 2007-02-17  Bruno Haible  <bruno@clisp.org>
4514
4515         * modules/wctype-tests: New file.
4516         * tests/test-wctype.c: New file.
4517
4518         * modules/wchar-tests: New file.
4519         * tests/test-wchar.c: New file.
4520
4521         * modules/unistd-tests: New file.
4522         * tests/test-unistd.c: New file.
4523
4524         * modules/time-tests: New file.
4525         * tests/test-time.c: New file.
4526
4527         * modules/sysexits-tests: New file.
4528         * tests/test-sysexits.c: New file.
4529
4530         * modules/sys_time-tests: New file.
4531         * tests/test-sys_time.c: New file.
4532
4533         * modules/sys_stat-tests: New file.
4534         * tests/test-sys_stat.c: New file.
4535
4536         * modules/sys_socket-tests: New file.
4537         * tests/test-sys_socket.c: New file.
4538
4539         * modules/sys_select-tests: New file.
4540         * tests/test-sys_select.c: New file.
4541
4542         * modules/string-tests: New file.
4543         * tests/test-string.c: New file.
4544
4545         * modules/stdbool-tests: New file.
4546         * tests/test-stdbool.c: New file.
4547
4548         * modules/netinet_in-tests: New file.
4549         * tests/test-netinet_in.c: New file.
4550
4551         * modules/inttypes-tests: New file.
4552         * tests/test-inttypes.c: New file.
4553
4554         * modules/fcntl-tests: New file.
4555         * tests/test-fcntl.c: New file.
4556
4557         * modules/byteswap-tests: New file.
4558         * tests/test-byteswap.c: New file.
4559
4560         * modules/arpa_inet-tests: New file.
4561         * tests/test-arpa_inet.c: New file.
4562
4563 2007-02-17  Bruno Haible  <bruno@clisp.org>
4564
4565         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
4566         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
4567         if the corresponding module is not enabled. Emit link warnings if
4568         the function is used nevertheless.
4569         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
4570         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
4571         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
4572         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
4573         * modules/inttypes (Depends-on): Add link-warning.
4574         (Makefile.am): Copy the contents of build-aux/link-warning.h into
4575         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
4576         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
4577         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
4578         * modules/imaxdiv (configure.ac): Likewise.
4579         * modules/strtoimax (configure.ac): Likewise.
4580         * modules/strtoumax (configure.ac): Likewise.
4581
4582 2007-02-17  Bruno Haible  <bruno@clisp.org>
4583
4584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
4585         gl_STRING_MODULE_INDICATOR_DEFAULTS.
4586         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
4587         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
4588
4589 2007-02-17  Bruno Haible  <bruno@clisp.org>
4590
4591         * modules/link-warning: New file.
4592         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
4593         * lib/string_.h (GL_LINK_WARNING): Remove definition.
4594         * modules/string (Depends-on): Add link-warning.
4595         (Makefile.am): Copy the contents of build-aux/link-warning.h into
4596         string.h.
4597         * MODULES.html.sh (Support for building libraries and executables): Add
4598         link-warning.
4599
4600 2007-02-17  Bruno Haible  <bruno@clisp.org>
4601
4602         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
4603         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
4604         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
4605         long lines.
4606
4607 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
4608             Bruno Haible  <bruno@clisp.org>
4609
4610         * modules/tmpfile: New file.
4611         * lib/tmpfile.c: New file.
4612         * m4/tmpfile.m4: New file.
4613         * MODULES.html.sh (func_all_modules): New section "Input/output".
4614
4615 2007-02-15  Bruno Haible  <bruno@clisp.org>
4616
4617         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
4618         (supports_delete_on_close): New function.
4619         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
4620
4621 2007-02-14  Bruno Haible  <bruno@clisp.org>
4622
4623         * modules/mbspcasecmp-tests: New file.
4624         * tests/test-mbspcasecmp.sh: New file.
4625         * tests/test-mbspcasecmp.c: New file.
4626
4627         New module mbspcasecmp.
4628         * modules/mbspcasecmp: New file.
4629         * lib/mbspcasecmp.c: New file.
4630         * lib/string_.h (strncasecmp): Change warning message.
4631         (mbspcasecmp): New declaration.
4632         * m4/mbspcasecmp.m4: New file.
4633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4634         GNULIB_MBSPCASECMP.
4635         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
4636         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
4637
4638 2007-02-14  Bruno Haible  <bruno@clisp.org>
4639
4640         * modules/mbsncasecmp-tests: New file.
4641         * tests/test-mbsncasecmp.sh: New file.
4642         * tests/test-mbsncasecmp.c: New file.
4643
4644         New module mbsncasecmp.
4645         * modules/mbsncasecmp: New file.
4646         * lib/mbsncasecmp.c: New file.
4647         * lib/string_.h (mbsncasecmp): New declaration.
4648         * m4/mbsncasecmp.m4: New file.
4649         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4650         GNULIB_MBSNCASECMP.
4651         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
4652         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
4653
4654 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
4655
4656         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
4657         Verify that it doesn't overlap with our flags.
4658         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
4659         do not have the desired effect in multibyte locales; instead, use
4660         mbscasecmp.
4661         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
4662         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
4663         we don't require GNU fnmatch ourselves (if our users require it, they
4664         should do so explicitly).
4665
4666         Fix regex code so it doesn't rely on strcasecmp.
4667         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
4668         Otherwise, include gnulib's langinfo.h.
4669         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
4670         undesirable behavior in non-C locales.  Instead, rely on localecharset.
4671         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
4672         * modules/regex (FILES): Remove m4/codeset.m4.
4673         (Depends-on): Add localcharset.  Remove strcase.
4674
4675 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4676
4677         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
4678         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4679
4680 2007-02-13  Bruno Haible  <bruno@clisp.org>
4681
4682         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
4683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4684
4685 2007-02-12  Bruno Haible  <bruno@clisp.org>
4686
4687         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
4688         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
4689         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
4690         time warning rather than a link error.
4691
4692 2007-02-12  Bruno Haible  <bruno@clisp.org>
4693
4694         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
4695         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4696         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4697
4698 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4699
4700         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
4701         args, not 2.
4702
4703 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4704
4705         New module 'time', so that apps can include <time.h> as per
4706         POSIX and GNU instead of separate include files like time_r.h
4707         and timegm.h.  This implementation tries out a simpler approach
4708         for replacing decls in standard include files (as compared to
4709         the string module), somewhat as an experiment.
4710
4711         * config/srclist.txt: Comment out mktime.c for now.
4712         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
4713         since it doesn't apply any more.  Use generic wording instead.
4714         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
4715         'time'.
4716         * lib/time_.h, m4/time_h.m4, modules/time: New files.
4717         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
4718         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
4719         Don't include <sys/types.h>; no longer needed since we assume C89.
4720         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
4721         * lib/strftime.c: Likewise.
4722         * lib/time_r.c: Likewise.
4723         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
4724         * lib/nanosleep.c: Include <time.h> first, to check interface.
4725         * lib/strptime.c: Likewise.
4726         * lib/time_r.c: Likewise.
4727         * lib/timegm.c: Likewise.
4728         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
4729         needed.
4730         * lib/timegm.c: Don't include timegm.h; no longer needed.
4731         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
4732         time.h now handles any problems in that area.
4733         (struct timespec, nanosleep): Remove; time.h now arranges for these.
4734         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
4735         that time.h defines struct timespec.
4736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
4737         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
4738         handles that.
4739         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
4740         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
4741         needed.  Set REPLACE_LOCALTIME.
4742         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
4743         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
4744         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
4745         nanosleep; time_h.m4 now does that.  Don't require
4746         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
4747         module handles this now.
4748         * modules/getdate (Depends-on): Remove timespec.  Add time.
4749         * modules/nanosleep (Depends-on): Likewise.
4750         * modules/stat-time (Depends-on): Likewise.
4751         * modules/nanosleep (Include): Include time.h, not timespec.h.
4752         * modules/strptime (Files): Remove lib/strptime.h.
4753         (Depends-on): Add extensions, time.
4754         (Include): Include time.h, not strptime.h.
4755         * modules/time_r (Files): Remove lib/time_r.h.
4756         (Depends-on): Add time.
4757         (Include): Include time.h, not time_r.h.
4758         * modules/timegm: Likewise.
4759         * modules/timespec (Description): Now does timespec-related decls
4760         of our own, instead of struct timespec itself.
4761         (Depends-on): Add time; remove extensions.
4762         (Maintainer): Add self.
4763         * modules/utimecmp (Depends-on): Add time; remove timespec.
4764         * modules/utimens (Depends-on): Likewise.
4765         * modules/xnanosleep (Depends-on): Likewise.
4766
4767 2007-02-11  Bruno Haible  <bruno@clisp.org>
4768
4769         * lib/c-strstr.c: Include allocsa.h.
4770         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4771         * lib/c-strcasestr.c: Include allocsa.h.
4772         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4773         * lib/strcasestr.c: Include allocsa.h.
4774         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4775         * lib/mbsstr.c: Include allocsa.h.
4776         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
4777         allocsa/freesa instead of malloc/free.
4778         * lib/mbscasestr.c: Include allocsa.h.
4779         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
4780         allocsa/freesa instead of malloc/free.
4781         * modules/c-strstr (Depends-on): Add allocsa.
4782         * modules/c-strcasestr (Depends-on): Likewise.
4783         * modules/strcasestr (Depends-on): Likewise.
4784         * modules/mbsstr (Depends-on): Likewise.
4785         * modules/mbscasestr (Depends-on): Likewise.
4786
4787 2007-02-11  Bruno Haible  <bruno@clisp.org>
4788
4789         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
4790
4791         * modules/mbsspn-tests: New file.
4792         * tests/test-mbsspn.sh: New file.
4793         * tests/test-mbsspn.c: New file.
4794
4795 2007-02-11  Bruno Haible  <bruno@clisp.org>
4796
4797         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
4798
4799         * modules/mbspbrk-tests: New file.
4800         * tests/test-mbspbrk.sh: New file.
4801         * tests/test-mbspbrk.c: New file.
4802
4803 2007-02-11  Bruno Haible  <bruno@clisp.org>
4804
4805         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
4806         unneeded cast.
4807
4808         * modules/mbscspn-tests: New file.
4809         * tests/test-mbscspn.sh: New file.
4810         * tests/test-mbscspn.c: New file.
4811
4812 2007-02-11  Bruno Haible  <bruno@clisp.org>
4813
4814         * modules/mbscasecmp-tests: New file.
4815         * tests/test-mbscasecmp.sh: New file.
4816         * tests/test-mbscasecmp.c: New file.
4817
4818 2007-02-11  Bruno Haible  <bruno@clisp.org>
4819
4820         Ensure O(n) worst-case complexity of mbscasestr.
4821         * lib/mbscasestr.c: Include stdbool.h.
4822         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
4823         functions.
4824         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
4825         the bookkeeping indicates that it's worth it.
4826         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
4827
4828         * modules/mbscasestr-tests: New file.
4829         * tests/test-mbscasestr1.c: New file.
4830         * tests/test-mbscasestr2.sh: New file.
4831         * tests/test-mbscasestr2.c: New file.
4832         * tests/test-mbscasestr3.sh: New file.
4833         * tests/test-mbscasestr3.c: New file.
4834         * tests/test-mbscasestr4.sh: New file.
4835         * tests/test-mbscasestr4.c: New file.
4836         * m4/locale-tr.m4: New file.
4837
4838 2007-02-11  Bruno Haible  <bruno@clisp.org>
4839
4840         Ensure O(n) worst-case complexity of mbsstr.
4841         * lib/mbsstr.c: Include stdbool.h.
4842         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
4843         functions.
4844         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
4845         bookkeeping indicates that it's worth it.
4846         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
4847
4848         * modules/mbsstr-tests: New file.
4849         * tests/test-mbsstr1.c: New file.
4850         * tests/test-mbsstr2.sh: New file.
4851         * tests/test-mbsstr2.c: New file.
4852         * tests/test-mbsstr3.sh: New file.
4853         * tests/test-mbsstr3.c: New file.
4854         * m4/locale-fr.m4: New file.
4855
4856 2007-02-11  Bruno Haible  <bruno@clisp.org>
4857
4858         * lib/mbsrchr.c (mbsrchr): Fix bug.
4859
4860         * modules/mbsrchr-tests: New file.
4861         * tests/test-mbsrchr.sh: New file.
4862         * tests/test-mbsrchr.c: New file.
4863
4864 2007-02-11  Bruno Haible  <bruno@clisp.org>
4865
4866         * lib/mbschr.c (mbschr): Fix bug.
4867
4868         * modules/mbschr-tests: New file.
4869         * tests/test-mbschr.sh: New file.
4870         * tests/test-mbschr.c: New file.
4871         * m4/locale-zh.m4: New file.
4872
4873 2007-02-11  Bruno Haible  <bruno@clisp.org>
4874
4875         Support for copying multibyte string iterators.
4876         * lib/mbiter.h: Include <string.h>.
4877         (mbiter_multi_copy): New function.
4878         (mbi_copy): New macro.
4879         * lib/mbuiter.h: Include <string.h>.
4880         (mbuiter_multi_copy): New function.
4881         (mbui_copy): New macro.
4882
4883 2007-02-11  Bruno Haible  <bruno@clisp.org>
4884
4885         New module mbslen.
4886         * modules/mbslen: New file.
4887         * lib/mbslen.c: New file.
4888         * lib/string_.h (mbslen): New declaration.
4889         * m4/mbslen.m4: New file.
4890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4891         GNULIB_MBSLEN.
4892         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
4893         * MODULES.html.sh (Internationalization functions): Add mbslen.
4894
4895 2007-02-11  Bruno Haible  <bruno@clisp.org>
4896
4897         Ensure O(n) worst-case complexity of strcasestr substitute.
4898         * lib/strcasestr.c: Include stdbool.h.
4899         (knuth_morris_pratt): New function.
4900         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
4901         bookkeeping indicates that it's worth it.
4902         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
4903
4904         * modules/strcasestr-tests: New file.
4905         * tests/test-strcasestr.c: New file.
4906
4907 2007-02-11  Bruno Haible  <bruno@clisp.org>
4908
4909         Ensure O(n) worst-case complexity of c_strcasestr.
4910         * lib/c-strcasestr.c: Include stdbool.h, string.h.
4911         (knuth_morris_pratt): New function.
4912         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
4913         the bookkeeping indicates that it's worth it.
4914         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
4915
4916         * modules/c-strcasestr-tests: New file.
4917         * tests/test-c-strcasestr.c: New file.
4918
4919 2007-02-11  Bruno Haible  <bruno@clisp.org>
4920
4921         Ensure O(n) worst-case complexity of c_strstr.
4922         * lib/c-strstr.c: Include stdbool.h, string.h.
4923         (knuth_morris_pratt): New function.
4924         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
4925         bookkeeping indicates that it's worth it.
4926         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
4927
4928         * lib/c-strstr.c: Complete rewrite for maintainability.
4929
4930         * modules/c-strstr-tests: New file.
4931         * tests/test-c-strstr.c: New file.
4932
4933 2007-02-11  Bruno Haible  <bruno@clisp.org>
4934
4935         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
4936         5.2.1 and earlier, whereby \055 was treated just like the range
4937         delimiter '-'.
4938         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
4939
4940 2007-02-08  Bruno Haible  <bruno@clisp.org>
4941
4942         * modules/regex (Depends-on): Add stdbool.
4943         Reported by Dalibor Topic <robilad@kaffe.org>.
4944
4945 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
4946
4947         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
4948         Prefer returning from main to exiting from it.
4949         Remove unnecessary parens after sizeof.
4950
4951 2007-02-05  Bruno Haible  <bruno@clisp.org>
4952
4953         New module mbssep.
4954         * modules/mbssep: New file.
4955         * lib/mbssep.c: New file.
4956         * lib/string_.h (strsep): Add a conditional link warning.
4957         (mbssep): New declaration.
4958         * m4/mbssep.m4: New file.
4959         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4960         GNULIB_MBSSEP.
4961         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
4962         * MODULES.html.sh (Internationalization functions): Add mbssep.
4963
4964 2007-02-05  Bruno Haible  <bruno@clisp.org>
4965
4966         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
4967         Optimize search in case of 1 delimiter.
4968
4969 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
4970
4971         * lib/acl.h: Include sys/types.h before sys/acl.h.
4972
4973 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
4974
4975         Merge upstream fix for glibc bugzilla #3957:
4976
4977         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
4978
4979         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
4980         bit for RE_HAT_LISTS_NOT_NEWLINE.
4981         (build_charclass_op): Remove bogus comment.
4982
4983 2007-02-05  Simon Josefsson  <simon@josefsson.org>
4984
4985         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
4986
4987 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4988
4989         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
4990         * lib/memmem.c [!defined _LIBC]: Include config.h.
4991
4992 2007-02-04  Bruno Haible  <bruno@clisp.org>
4993
4994         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
4995         warning message.
4996
4997 2007-02-04  Bruno Haible  <bruno@clisp.org>
4998
4999         New module mbstok_r.
5000         * modules/mbstok_r: New file.
5001         * lib/mbstok_r.c: New file.
5002         * lib/string_.h (strtok_r): Change argument names to match the
5003         comments. Add a conditional link warning.
5004         (mbstok_r): New declaration.
5005         * m4/mbstok_r.m4: New file.
5006         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5007         GNULIB_MBSTOK_R.
5008         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
5009         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
5010
5011 2007-02-04  Bruno Haible  <bruno@clisp.org>
5012
5013         New module mbsspn.
5014         * modules/mbsspn: New file.
5015         * lib/mbsspn.c: New file.
5016         * lib/string_.h (strspn): Add a conditional link warning.
5017         (mbsspn): New declaration.
5018         * m4/mbsspn.m4: New file.
5019         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5020         GNULIB_MBSSPN.
5021         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
5022         * MODULES.html.sh (Internationalization functions): Add mbsspn.
5023
5024 2007-02-04  Bruno Haible  <bruno@clisp.org>
5025
5026         New module mbspbrk.
5027         * modules/mbspbrk: New file.
5028         * lib/mbspbrk.c: New file.
5029         * lib/string_.h (strpbrk): Add a conditional link warning.
5030         (mbspbrk): New declaration.
5031         * m4/mbspbrk.m4: New file.
5032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5033         GNULIB_MBSPBRK.
5034         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
5035         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
5036
5037 2007-02-04  Bruno Haible  <bruno@clisp.org>
5038
5039         New module mbscspn.
5040         * modules/mbscspn: New file.
5041         * lib/mbscspn.c: New file.
5042         * lib/string_.h (strcspn): Add a conditional link warning.
5043         (mbscspn): New declaration.
5044         * m4/mbscspn.m4: New file.
5045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5046         GNULIB_MBSCSPN.
5047         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
5048         * MODULES.html.sh (Internationalization functions): Add mbscspn.
5049
5050 2007-02-04  Bruno Haible  <bruno@clisp.org>
5051
5052         New module mbscasestr, reduced goal of strcasestr.
5053         * modules/mbscasestr: New file.
5054         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
5055         (mbscasestr): Renamed from strcasestr.
5056         * lib/strcasestr.c: Don't include mbuiter.h.
5057         (strcasestr): Remove support for multibyte locales.
5058         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
5059         Change the conditional link warning.
5060         (mbscasestr): New declaration.
5061         * m4/mbscasestr.m4: New file.
5062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
5063         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
5064         REPLACE_STRCASESTR.
5065         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
5066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5067         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5068         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
5069         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
5070         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5071         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
5072         (Depends-on): Remove mbuiter.
5073         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
5074
5075 2007-02-04  Bruno Haible  <bruno@clisp.org>
5076
5077         Simplify handling of strncasecmp.
5078         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
5079         the conditional link warning.
5080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5081         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
5082         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
5083         * modules/strcase (configure.ac): Don't invoke
5084         gl_STRING_MODULE_INDICATOR.
5085         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
5086
5087 2007-02-04  Bruno Haible  <bruno@clisp.org>
5088
5089         New module mbscasecmp, reduced goal of strcasecmp.
5090         * modules/mbscasecmp: New file.
5091         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
5092         (mbscasecmp): Renamed from strcasecmp.
5093         * lib/strcasecmp.c: Don't include mbuiter.h.
5094         (strcasecmp): Remove support for multibyte locales.
5095         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
5096         Change the conditional link warning.
5097         (mbscasecmp): New declaration.
5098         * m4/mbscasecmp.m4: New file.
5099         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
5100         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
5101         REPLACE_STRCASECMP.
5102         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
5103         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5104         GNULIB_MBSCASECMP.
5105         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
5106         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
5107         * modules/strcase (Files): Remove m4/mbrtowc.m4.
5108         (Depends-on): Remove mbuiter.
5109         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
5110
5111 2007-02-04  Bruno Haible  <bruno@clisp.org>
5112
5113         New module mbsstr. Remove module strstr.
5114         * modules/mbsstr: New file.
5115         * modules/strstr: Remove file.
5116         * lib/mbsstr.c: Renamed from lib/strstr.c.
5117         (mbsstr): Renamed from strstr.
5118         * lib/string_.h (strstr): Remove declaration. Change the conditional
5119         link warning.
5120         (mbsstr): New declaration.
5121         * m4/mbsstr.m4: New file.
5122         * m4/strstr.m4: Remove file.
5123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5124         REPLACE_STRSTR.
5125         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
5126         Don't initialize GNULIB_STRSTR.
5127         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
5128         substitute GNULIB_STRSTR and REPLACE_STRSTR.
5129         * MODULES.html.sh (Internationalization functions): Add mbsstr.
5130         (Support for systems lacking ANSI C 89): Remove strstr.
5131
5132 2007-02-04  Bruno Haible  <bruno@clisp.org>
5133
5134         New module mbsrchr.
5135         * modules/mbsrchr: New file.
5136         * lib/mbsrchr.c: New file.
5137         * lib/string_.h (strrchr): Add a conditional link warning.
5138         (mbsrchr): New declaration.
5139         * m4/mbsrchr.m4: New file.
5140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5141         GNULIB_MBSRCHR.
5142         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
5143         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
5144
5145 2007-02-04  Bruno Haible  <bruno@clisp.org>
5146
5147         New module mbschr.
5148         * modules/mbschr: New file.
5149         * lib/mbschr.c: New file.
5150         * lib/string_.h (strchr): Add a conditional link warning.
5151         (mbschr): New declaration.
5152         * m4/mbschr.m4: New file.
5153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5154         GNULIB_MBSCHR.
5155         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
5156         * MODULES.html.sh (Internationalization functions): Add mbschr.
5157
5158 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5159
5160         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
5161
5162         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
5163
5164 2007-02-04  Bruno Haible  <bruno@clisp.org>
5165
5166         New module description section 'configure.ac-early'.
5167         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
5168         (func_get_autoconf_early_snippet): New function.
5169         (func_import, func_create_testdir): Use it. Remove special cases for
5170         modules 'extensions' and 'lock'.
5171         * modules/extensions (configure.ac-early): Require
5172         gl_USE_SYSTEM_EXTENSIONS.
5173         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
5174
5175 2007-02-04  Bruno Haible  <bruno@clisp.org>
5176
5177         Make use of gcj-4.3's -fsource and -ftarget option.
5178         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
5179         and if so try the options -fsource and -ftarget.
5180         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
5181         source_version, ftarget_option, target_version arguments.
5182         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
5183         (is_envjavac_oldgcj_14_14_usable): Renamed from
5184         is_envjavac_gcj_14_14_usable.
5185         (is_envjavac_oldgcj_14_13_usable): Renamed from
5186         is_envjavac_gcj_14_13_usable.
5187         (is_gcj_present): Update.
5188         (is_gcj_43, is_gcj43_usable): New functions.
5189         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
5190         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
5191         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
5192         try the options -fsource and -ftarget.
5193
5194 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5195
5196         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
5197         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
5198         larger value.
5199
5200 2007-02-03  Jim Meyering  <jim@meyering.net>
5201
5202         Give tools a better chance to allocate space for very large buffers.
5203         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
5204
5205         Make pwd and readlink work also when run with an unreadable parent dir
5206         on systems with openat support.
5207         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
5208         provided getcwd function, even when we have openat support.
5209         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
5210
5211 2007-02-02  Bruno Haible  <bruno@clisp.org>
5212
5213         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5214         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
5215         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
5216         portability problems if one of these functions is only used on specific
5217         platforms.
5218         Reported by Paul Eggert.
5219
5220 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5221
5222         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
5223         is causing more trouble than it's curing.
5224         * lib/regex_internal.h (__mempcpy): Remove.
5225         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
5226         (and make the code a tad smaller to boot).
5227         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
5228
5229 2007-02-02  Jim Meyering  <jim@meyering.net>
5230
5231         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
5232         section, not in the Makefile.am: one.
5233
5234 2007-02-02  Eric Blake  <ebb9@byu.net>
5235
5236         * lib/strchrnul.c: Always include config.h first.
5237
5238         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
5239         gnulib strstr is not necessary here.
5240
5241 2007-02-02  Simon Josefsson  <simon@josefsson.org>
5242
5243         * m4/socklen.m4: Fix typo.
5244
5245 2007-02-02  Eric Blake  <ebb9@byu.net>
5246
5247         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
5248         * modules/netinet_in (Makefile.am): Likewise.
5249
5250 2007-02-01  Bruno Haible  <bruno@clisp.org>
5251
5252         * lib/string_.h (GL_LINK_WARNING): New macro.
5253         (strcasecmp, strstr, strcasestr): If provided by the system,
5254         conditionally define as a macro that leads to a warning instead of to
5255         an error.
5256         (strncasecmp): Conditionally define as a macro that leads to a warning.
5257
5258 2007-02-01  Karl Berry  <karl@gnu.org>
5259
5260         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
5261
5262 2007-02-01  Bruno Haible  <bruno@clisp.org>
5263
5264         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
5265         renamings.
5266
5267 2007-02-01  Eric Blake  <ebb9@byu.net>
5268
5269         * modules/regex (Depends-on): Revert dependence on mempcpy.
5270         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
5271         module's definition of mempcpy.
5272         Reported by Paul Eggert.
5273
5274 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
5275
5276         * lib/string_.h: If the gnulib module XYZ is not present, undefine
5277         the symbol XYZ before redefining it.  This fixes a problem with
5278         programs that don't use XYZ, when compiled on systems that define
5279         XYZ to something else.
5280
5281 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
5282
5283         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
5284         occurs when "mkdir -m foo" creates a setgid directory that is (1)
5285         writeable to group or other and (2) is intended to have a special
5286         mode bit that is set or cleared.  In such a case, the directory
5287         should be neither group- nor other-writeable until the special
5288         mode bits are right.
5289
5290 2007-01-31  Eric Blake  <ebb9@byu.net>
5291
5292         * modules/mountlist (Depends-on): Add strstr.
5293
5294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
5295         bug.
5296         * modules/string (Makefile.am): Remove redundant replacement.
5297         * modules/regex (Depends-on): Add mempcpy.
5298
5299 2007-01-31  Bruno Haible  <bruno@clisp.org>
5300
5301         New module description field 'Link'.
5302         * gnulib-tool (func_usage): Document --extract-link-directive.
5303         (sed_extract_prog): Recognize 'Link' directive.
5304         (func_get_link_directive): New function.
5305         (func_import): Show summary of link directives.
5306         Handle --extract-link-directive option.
5307         * modules/acl (Link): New section.
5308         * modules/clock-time (Link): New section.
5309         * modules/euidaccess (Link): New section.
5310         * modules/gettext (Link): New section.
5311         * modules/iconv (Link): New section.
5312         * modules/lock (Link): New section.
5313         * modules/nanosleep (Link): New section.
5314         * modules/readline (Link): New section.
5315
5316 2007-01-27  Bruno Haible  <bruno@clisp.org>
5317
5318         Enforce the use of gnulib modules for unportable <string.h> functions.
5319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
5320         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
5321         (gl_HEADER_STRING_H_BODY): Require it.
5322         * lib/string_.h: If the gnulib module XYZ is not present, redefine
5323         the symbol XYZ to one that gives a link error.
5324         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
5325         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
5326         * modules/mempcpy (configure.ac): Likewise.
5327         * modules/memrchr (configure.ac): Likewise.
5328         * modules/stpcpy (configure.ac): Likewise.
5329         * modules/stpncpy (configure.ac): Likewise.
5330         * modules/strcase (configure.ac): Likewise.
5331         * modules/strcasestr (configure.ac): Likewise.
5332         * modules/strchrnul (configure.ac): Likewise.
5333         * modules/strdup (configure.ac): Likewise.
5334         * modules/strndup (configure.ac): Likewise.
5335         * modules/strnlen (configure.ac): Likewise.
5336         * modules/strpbrk (configure.ac): Likewise.
5337         * modules/strsep (configure.ac): Likewise.
5338         * modules/strstr (configure.ac): Likewise.
5339         * modules/strtok_r (configure.ac): Likewise.
5340
5341 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
5342
5343         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
5344
5345 2007-01-30  Jim Meyering  <jim@meyering.net>
5346
5347         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
5348
5349 2007-01-29  Bruno Haible  <bruno@clisp.org>
5350
5351         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
5352         * lib/execute.c: Likewise.
5353         * lib/pipe.c: Likewise.
5354         * lib/printf-args.h: Likewise.
5355         * lib/printf-args.c: Likewise.
5356         * lib/printf-parse.c: Likewise.
5357         * lib/vasnprintf.c: Likewise.
5358
5359 2007-01-29  Eric Blake  <ebb9@byu.net>
5360
5361         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
5362         declaration.
5363
5364 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5365
5366         * lib/strptime.h (strptime): Use 'restrict' for args where
5367         POSIX requires this.
5368         * lib/strptime.c (strptime): Likewise.
5369         Change license notice from LGPL to GPL, since gnulib-tool will
5370         change this as needed.
5371         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
5372         defined.
5373         Include "strptime.h" first, to check interface.
5374         Do not #undef _LIBC and _NL_CURRENT.
5375         Do not include <stdlib.h>; no longer needed.
5376         Include "time_r.h" and declare ptime_locale_status
5377         only if _LIBC is not defined.
5378         (__P): Remove unused macro.
5379         (match_string): Bring back glibc version, but use it only if _LIBC
5380         is defined.
5381         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
5382         Remove unnecessary assertion and abort() call.
5383         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
5384         * m4/strptime.m4: Fix serial number comment.
5385         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
5386         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
5387         (Depends-on): Add time_r.
5388
5389 2007-01-29  Bruno Haible  <bruno@clisp.org>
5390
5391         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5392         strptime.
5393         * modules/strptime (Depends-on): Add stdbool.
5394         * lib/strptime.h: Include <time.h> always. Add comments.
5395
5396 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5397
5398         * modules/strptime: New file.
5399         * lib/strptime.h: New file.
5400         * lib/strptime.c: New file.
5401         * m4/strptime.m4: New file.
5402
5403 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5404
5405         * MODULES.html.sh: New module mpsort.
5406         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
5407
5408         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
5409         a circularity problem with HP-UX ia64 reported by Bob Proulx in
5410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
5411         All uses changed.
5412         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
5413         All uses changed.
5414         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
5415         to _Restrict_.
5416         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
5417         the parameter matches the prototype.
5418
5419 2007-01-28  Jim Meyering  <jim@meyering.net>
5420
5421         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
5422         sys/time.h here, reverting that part of the previous patch:
5423         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
5424
5425 2007-01-28  Bruno Haible  <bruno@clisp.org>
5426
5427         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
5428         value of $(SYS_TIME_H).
5429         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
5430         remove it conditionally, too. [added by Jim Meyering]
5431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
5432         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
5433         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
5434         GETTIMEOFDAY_REPLACEMENT to 1.
5435
5436 2007-01-28  Bruno Haible  <bruno@clisp.org>
5437
5438         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
5439         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
5440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
5441         Set UNISTD_H instead of UNISTD_H2.
5442         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
5443
5444 2007-01-28  Bruno Haible  <bruno@clisp.org>
5445
5446         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
5447         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
5448
5449 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5450
5451         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
5452         (func_create_testdir): Ensure C locale for `grep' and `tr'
5453         character ranges.
5454         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
5455         ACLOCAL_AMFLAGS parsing state machine.
5456
5457 2007-01-27  Bruno Haible  <bruno@clisp.org>
5458
5459         * modules/unistr/base: Update.
5460
5461 2007-01-27  Bruno Haible  <bruno@clisp.org>
5462
5463         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
5464         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
5465         * modules/unistr/u32-mbtouc-unsafe: Renamed from
5466         modules/unistr/u32-mbtouc.
5467         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
5468         * lib/unistr.h: Update.
5469         * lib/linebreak.c: Update.
5470         * modules/unistr/u32-mbtouc: Renamed from
5471         modules/unistr/u32-mbtouc-safe.
5472         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
5473         * lib/unistr.h: Update.
5474         * lib/unistr/u32-to-u8.c: Update.
5475         * lib/unistr/u32-to-u16.c: Update.
5476
5477 2007-01-27  Bruno Haible  <bruno@clisp.org>
5478
5479         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
5480         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
5481         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
5482         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
5483         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
5484         * modules/unistr/u16-mbtouc-unsafe: Renamed from
5485         modules/unistr/u16-mbtouc.
5486         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
5487         * lib/unistr.h: Update.
5488         * lib/linebreak.c: Update.
5489         * modules/linebreak: Update.
5490         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
5491         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
5492         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
5493         * modules/unistr/u16-mbtouc: Renamed from
5494         modules/unistr/u16-mbtouc-safe.
5495         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
5496         * lib/unistr.h: Update.
5497         * lib/unistr/u16-to-u8.c: Update.
5498         * modules/unistr/u16-to-u8: Update.
5499         * lib/unistr/u16-to-u32.c: Update.
5500         * modules/unistr/u16-to-u32: Update.
5501
5502 2007-01-27  Bruno Haible  <bruno@clisp.org>
5503
5504         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
5505         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
5506         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
5507         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
5508         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
5509         * modules/unistr/u8-mbtouc-unsafe: Renamed from
5510         modules/unistr/u8-mbtouc.
5511         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
5512         * lib/unistr.h: Update.
5513         * lib/striconveh.c: Update.
5514         * modules/striconveh: Update.
5515         * lib/linebreak.c: Update.
5516         * modules/linebreak: Update.
5517         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
5518         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
5519         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
5520         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
5521         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
5522         * lib/unistr.h: Update.
5523         * lib/striconveh.c: Update.
5524         * modules/striconveh: Update.
5525         * lib/unistr/u8-to-u16.c: Update.
5526         * modules/unistr/u8-to-u16: Update.
5527         * lib/unistr/u8-to-u32.c: Update.
5528         * modules/unistr/u8-to-u32: Update.
5529
5530 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5531
5532         Sync from Libtool.
5533         * lib/argz.c: Do not include strings.h nor memory.h, include
5534         string.h unconditionally.  Patch by Simon Josefsson.
5535
5536 2007-01-27  Bruno Haible  <bruno@clisp.org>
5537
5538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
5539         from gl_HEADER_STRING_H_BODY.
5540         (gl_HEADER_STRING_H_BODY): Require it.
5541         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
5542         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
5543         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
5544         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
5545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5546         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
5547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5548         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
5549         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
5550         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5551         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
5552         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
5553         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
5554         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5555         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5556
5557 2007-01-27  Bruno Haible  <bruno@clisp.org>
5558
5559         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
5560         check_PROGRAMS into noinst_PROGRAMS.
5561         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
5562         check_PROGRAMS in this case.
5563         (func_import): Set for_test to false.
5564         (func_create_testdir): Set for_test to true.
5565
5566 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5567             Bruno Haible  <bruno@clisp.org>
5568
5569         * modules/strcasestr (Files): Remove lib/strcasestr.h.
5570         (Depends-on): Add string.
5571         (Includes): Use <string.h> instead of strcasestr.h.
5572         * modules/string (Makefile.am): Also substitute the value of
5573         REPLACE_STRCASESTR.
5574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
5575         assume strcasestr is declared in <string.h> not <strings.h>. Also
5576         set REPLACE_STRCASESTR.
5577         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
5578         REPLACE_STRCASESTR.
5579         * lib/strcasestr.h: Remove file.
5580         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
5581         * lib/string_.h (strcasestr): New declaration.
5582
5583 2007-01-27  Bruno Haible  <bruno@clisp.org>
5584
5585         * lib/string_.h: Use 'extern'.
5586
5587 2007-01-27  Jim Meyering  <jim@meyering.net>
5588
5589         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
5590         of set-but-not-used local, "q".
5591
5592         * lib/mempcpy.c: Include <config.h> before <string.h>.
5593         This fixes a compilation error on HP-UX, due to the system's
5594         "restrict"-using mempcpy prototype.
5595
5596 2007-01-26  Bruno Haible  <bruno@clisp.org>
5597
5598         Small optimization.
5599         * lib/javacomp.c: Include c-strstr.h.
5600          (is_envjavac_gcj): Use c_strstr instead of strstr.
5601         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
5602
5603 2007-01-26  Bruno Haible  <bruno@clisp.org>
5604
5605         * MODULES.html.sh (Unicode string functions): Add the new modules.
5606
5607         * modules/uniconv/u32-strconv-to-locale: New file.
5608         * lib/uniconv/u32-strconv-to-locale.c: New file.
5609
5610         * modules/uniconv/u16-strconv-to-locale: New file.
5611         * lib/uniconv/u16-strconv-to-locale.c: New file.
5612
5613         * modules/uniconv/u8-strconv-to-locale: New file.
5614         * lib/uniconv/u8-strconv-to-locale.c: New file.
5615
5616         * modules/uniconv/u32-strconv-from-locale: New file.
5617         * lib/uniconv/u32-strconv-from-locale.c: New file.
5618
5619         * modules/uniconv/u16-strconv-from-locale: New file.
5620         * lib/uniconv/u16-strconv-from-locale.c: New file.
5621
5622         * modules/uniconv/u8-strconv-from-locale: New file.
5623         * lib/uniconv/u8-strconv-from-locale.c: New file.
5624
5625         * modules/uniconv/u32-strconv-to-enc: New file.
5626         * lib/uniconv/u32-strconv-to-enc.c: New file.
5627         * modules/uniconv/u32-strconv-to-enc-tests: New file.
5628         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
5629
5630         * modules/uniconv/u16-strconv-to-enc: New file.
5631         * lib/uniconv/u16-strconv-to-enc.c: New file.
5632         * lib/uniconv/u-strconv-to-enc.h: New file.
5633         * modules/uniconv/u16-strconv-to-enc-tests: New file.
5634         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
5635
5636         * modules/uniconv/u8-strconv-to-enc: New file.
5637         * lib/uniconv/u8-strconv-to-enc.c: New file.
5638         * modules/uniconv/u8-strconv-to-enc-tests: New file.
5639         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
5640
5641         * modules/uniconv/u32-strconv-from-enc: New file.
5642         * lib/uniconv/u32-strconv-from-enc.c: New file.
5643         * modules/uniconv/u32-strconv-from-enc-tests: New file.
5644         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
5645
5646         * modules/uniconv/u16-strconv-from-enc: New file.
5647         * lib/uniconv/u16-strconv-from-enc.c: New file.
5648         * modules/uniconv/u16-strconv-from-enc-tests: New file.
5649         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
5650
5651         * modules/uniconv/u8-strconv-from-enc: New file.
5652         * lib/uniconv/u8-strconv-from-enc.c: New file.
5653         * lib/uniconv/u-strconv-from-enc.h: New file.
5654         * modules/uniconv/u8-strconv-from-enc-tests: New file.
5655         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
5656
5657         * modules/uniconv/u32-conv-from-enc: New file.
5658         * lib/uniconv/u32-conv-from-enc.c: New file.
5659         * modules/uniconv/u32-conv-from-enc-tests: New file.
5660         * tests/uniconv/test-u32-conv-from-enc.c: New file.
5661
5662         * modules/uniconv/u16-conv-from-enc: New file.
5663         * lib/uniconv/u16-conv-from-enc.c: New file.
5664         * lib/uniconv/u-conv-from-enc.h: New file.
5665         * modules/uniconv/u16-conv-from-enc-tests: New file.
5666         * tests/uniconv/test-u16-conv-from-enc.c: New file.
5667
5668         * modules/uniconv/u8-conv-from-enc: New file.
5669         * lib/uniconv/u8-conv-from-enc.c: New file.
5670         * modules/uniconv/u8-conv-from-enc-tests: New file.
5671         * tests/uniconv/test-u8-conv-from-enc.c: New file.
5672
5673         * modules/uniconv/base: New file.
5674         * lib/uniconv.h: New file.
5675
5676 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
5677
5678         * doc/gnulib-tool.texi (Initial import): Update to match current
5679         behavior with strdup module.
5680         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
5681         * lib/memmem.h: Remove; all uses removed.  This is now done
5682         by <string.h>.
5683         * lib/mempcpy.h: Likewise.
5684         * lib/memrchr.h: Likewise.
5685         * lib/stpcpy.h: Likewise.
5686         * lib/stpncpy.h: Likewise.
5687         * lib/strcase.h: Likewise.
5688         * lib/strchrnul.h: Likewise.
5689         * lib/strdup.h: Likewise.
5690         * lib/strndup.h: Likewise.
5691         * lib/strnlen.h: Likewise.
5692         * lib/strpbrk.h: Likewise.
5693         * lib/strsep.h: Likewise.
5694         * lib/strstr.h: Likewise.
5695         * lib/strtok_r.h: Likewise.
5696         * lib/string_.h: New file.
5697         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
5698         Rely on <string.h> instead.
5699         * lib/canon-host.c: Likewise.
5700         * lib/chdir-long.c: Likewise.
5701         * lib/concatpath.c: Likewise.
5702         * lib/exclude.c: Likewise.
5703         * lib/fchdir.c: Likewise.
5704         * lib/getaddrinfo.c: Likewise.
5705         * lib/getcwd.c: Likewise.
5706         * lib/getsubopt.c: Likewise.
5707         * lib/glob.c: Likewise.
5708         * lib/hard-locale.c: Likewise.
5709         * lib/iconvme.c: Likewise.
5710         * lib/javacomp.c: Likewise.
5711         * lib/mempcpy.c: Likewise.
5712         * lib/memrchr.c: Likewise.
5713         * lib/regex_internal.h: Likewise.
5714         * lib/stpncpy.c: Likewise.
5715         * lib/strcasecmp.c: Likewise.
5716         * lib/strchrnul.c: Likewise.
5717         * lib/strdup.c: Likewise.
5718         * lib/striconv.c: Likewise.
5719         * lib/striconveh.c: Likewise.
5720         * lib/striconveha.c: Likewise.
5721         * lib/strncasecmp.c: Likewise.
5722         * lib/strndup.c: Likewise.
5723         * lib/strnlen.c: Likewise.
5724         * lib/strsep.c: Likewise.
5725         * lib/strstr.c: Likewise.
5726         * lib/strtok_r.c: Likewise.
5727         * lib/userspec.c: Likewise.
5728         * lib/w32spawn.h: Likewise.
5729         * lib/xstrndup.c: Likewise.
5730         * lib/mountlist.c (strstr): Remove decl.
5731         * m4/string_h.m4: New file.
5732         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
5733         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
5734         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
5735         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
5736         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
5737         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
5738         Set REPLACE_STRCASECMP if necessary.
5739         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
5740         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
5741         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
5742         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
5743         HAVE_DECL_STRDUP if necessary.
5744         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
5745         since gl_FUNC_STRNDUP does that now.
5746         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
5747         Check for decl here...
5748         (gl_PREREQ_STRNLEN): ... not here.
5749         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
5750         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
5751         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
5752         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
5753         necessary.
5754         * modules/string: New file.
5755         * modules/memmem (Files): Remove special-purpose include file.
5756         (Depends-on): Add string.
5757         (Include): Include <string.h>, not the removed file.
5758         * modules/mempcpy: Likewise.
5759         * modules/memrchr: Likewise.
5760         * modules/stpcpy: Likewise.
5761         * modules/stpncpy: Likewise.
5762         * modules/strcase: Likewise.
5763         * modules/strchrnul: Likewise.
5764         * modules/strdup: Likewise.
5765         * modules/strndup: Likewise.
5766         * modules/strnlen: Likewise.
5767         * modules/strpbrk: Likewise.
5768         * modules/strsep: Likewise.
5769         * modules/strstr: Likewise.
5770         * modules/strtok_r: Likewise.
5771         * tests/test-dirname.c: Don't include "strdup.h", since
5772         <string.h> now suffices.
5773         * tests/test-memmem.c: Don't include "memmem.h", since
5774         <string.h> now suffices.
5775
5776 2007-01-25  Bruno Haible  <bruno@clisp.org>
5777
5778         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
5779         *resultp is 0.
5780
5781         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
5782         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
5783         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
5784         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
5785
5786         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
5787         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
5788         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
5789         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
5790         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
5791         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
5792
5793 2007-01-24  Bruno Haible  <bruno@clisp.org>
5794
5795         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
5796         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
5797         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
5798         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
5799         gl_FUNC_FTS_CORE.
5800         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
5801         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
5802         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5803         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
5804         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
5805         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
5806         gl_FUNC_FCHOWNAT.
5807         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
5808         gl_FUNC_STRFTIME.
5809         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
5810         Reported by Ralf Wildenhues.
5811
5812 2007-01-24  Bruno Haible  <bruno@clisp.org>
5813
5814         Drop AC_REQUIRE calls that are redundant with the module dependencies.
5815         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
5816         gl_GETADDRINFO.
5817         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
5818         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
5819         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
5820
5821 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5822
5823         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
5824         Don't use 'exit'; just return from 'main'.
5825         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
5826
5827         * lib/fnmatch_.h: Readjust white space and comments to match
5828         glibc, to avoid spurious diffs.
5829
5830 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5831
5832         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
5833         2004-12-01 change by Jakub Jelinek, since this code won't compile
5834         if !LIBC.  Problem reported by Bob Proulx.
5835
5836 2007-01-23  Bruno Haible  <bruno@clisp.org>
5837
5838         * lib/striconveh.c: Include c-strcaseeq.h.
5839         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
5840         * modules/striconveh (Depends-on): Add c-strcaseeq.
5841
5842 2007-01-23  Bruno Haible  <bruno@clisp.org>
5843
5844         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
5845
5846         * modules/c-strcaseeq: New file.
5847         * lib/c-strcaseeq.h: New file.
5848
5849         * modules/streq: New file.
5850         * lib/streq.h: New file.
5851
5852 2007-01-23  Bruno Haible  <bruno@clisp.org>
5853
5854         * modules/striconveha-tests: New file.
5855         * tests/test-striconveha.c: New file.
5856
5857         * lib/striconveha.h: Include <stdbool.h>.
5858         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
5859         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
5860         (mem_iconveha_notranslit): Renamed from mem_iconveha.
5861         (mem_iconveha): New function.
5862         (str_iconveha_notranslit): Renamed from str_iconveha.
5863         (str_iconveha): New function.
5864         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
5865         c-strcase.
5866
5867 2007-01-23  Bruno Haible  <bruno@clisp.org>
5868
5869         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
5870         encodings without forgiving before trying any encoding with handler.
5871         (str_iconveha): Try all encodings without forgiving before trying any
5872         encoding with handler.
5873
5874 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5875
5876         Import the following changes from libc.
5877
5878         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
5879
5880         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
5881
5882         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
5883
5884         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
5885         normal_bracket label.
5886
5887         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
5888
5889         [BZ #361]
5890         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
5891         to normal_bracket after fetching the next character.
5892
5893 2007-01-22  Bruno Haible  <bruno@clisp.org>
5894
5895         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
5896         argument.
5897         * lib/striconveh.c (iconv_carefully_1): New function.
5898         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
5899         argument.
5900         (str_cd_iconveh): Update.
5901         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
5902         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
5903         * tests/test-striconveh.c (MAGIC): New macro.
5904         (new_offsets): New function.
5905         (main): Test call with and without offsets.
5906
5907 2007-01-22  Bruno Haible  <bruno@clisp.org>
5908
5909         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
5910         * modules/sys_select (Makefile.am): Likewise.
5911         * modules/sys_socket (Makefile.am): Likewise.
5912         * modules/sys_time (Makefile.am): Likewise.
5913
5914 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
5915
5916         * modules/gettimeofday (License): Change from GPL to LGPL, since
5917         gettimeofday is a library function.
5918
5919 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5920
5921         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
5922
5923 2007-01-21  Bruno Haible  <bruno@clisp.org>
5924
5925         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
5926
5927 2007-01-21  Bruno Haible  <bruno@clisp.org>
5928
5929         * modules/striconveha: New file.
5930         * lib/striconveha.h: New file.
5931         * lib/striconveha.c: New file.
5932         * MODULES.html.sh (Internationalization functions): Add striconveha.
5933         * lib/striconv.c (str_iconv): Optimize the case of an empty input
5934         string.
5935         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
5936
5937 2007-01-21  Bruno Haible  <bruno@clisp.org>
5938
5939         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
5940         * lib/striconveh.c (str_iconveh): Likewise.
5941
5942 2007-01-21  Bruno Haible  <bruno@clisp.org>
5943
5944         * lib/striconveh.h (mem_iconveh): New declaration.
5945         * lib/striconveh.c (mem_iconveh): New function.
5946         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
5947
5948 2007-01-21  Bruno Haible  <bruno@clisp.org>
5949
5950         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
5951
5952         * lib/striconveh.h (mem_cd_iconveh): Change specification.
5953         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
5954         original result buffer.
5955         (str_cd_iconveh): Update.
5956         * tests/test-striconveh.c (main): Update.
5957
5958         * lib/striconv.h (mem_cd_iconv): Change specification.
5959         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
5960         result buffer.
5961         (str_cd_iconv): Update.
5962         * tests/test-striconv.c (main): Update.
5963
5964 2007-01-21  Bruno Haible  <bruno@clisp.org>
5965
5966         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
5967
5968 2007-01-20  Jim Meyering  <jim@meyering.net>
5969
5970         * lib/userspec.c (parse_with_separator): If a user or group string
5971         starts with "+", skip the corresponding name-to-ID look-up, since
5972         such a look-up must fail: user and group names may not include "+".
5973
5974 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5975
5976         * lib/poll.c: Include sys/time.h and time.h unconditionally,
5977         since we now assume the sys_time module.
5978         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
5979         check for sys/time.h; no longer needed.
5980         * modules/poll (Depends-on): Depend on sys_time.
5981
5982 2007-01-18  Bruno Haible  <bruno@clisp.org>
5983
5984         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
5985         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
5986
5987         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
5988         gettimeofday.
5989
5990         * tests/test-gettimeofday.c: Include <time.h>.
5991         (dummy): Remove variable.
5992
5993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
5994         gl_HEADER_SYS_TIME_H.
5995         (gl_HEADER_SYS_TIME_H): New macro.
5996
5997         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
5998         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5999         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6000         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
6001         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6002         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
6003         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
6004         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6005         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
6006         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
6007         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6008
6009         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
6010         last change; it caused a compilation error when cross-compiling to
6011         Cygwin.
6012
6013 2007-01-18  Jim Meyering  <jim@meyering.net>
6014
6015         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
6016         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
6017         than the race-prone "test -d sys || mkdir sys".
6018         (configure.ac): Use AC_PROG_MKDIR_P.
6019         * modules/sys_select: Likewise.
6020         * modules/sys_socket: Likewise.
6021         * modules/sys_time: Likewise.
6022
6023 2007-01-18  Eric Blake  <ebb9@byu.net>
6024
6025         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
6026         replace gettimeofday.
6027         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
6028         name, to avoid infinite recursion.
6029
6030 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
6031
6032         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
6033         module sys_time.
6034         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
6035         assume timespec.h defines struct timeval.
6036         * lib/settime.c: Likewise.
6037         * lib/utimens.c: Likewise.
6038         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
6039         since we now assume the gettimeofday module.
6040         * lib/tempname.c (__gen_tempname): Likewise.
6041         * lib/gettimeofday.h: Remove.
6042         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
6043         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
6044         Include <time.h>, for 'time()'.
6045         (localtime_buffer_addr): Also use this workaround if
6046         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
6047         to simplify the uses.  All uses changed.
6048         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
6049         that #undef is inside {}, and 'const' follows type name consistently.
6050         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
6051         (gettimeofday): Do not use the maximum possible value for
6052         tv->tv_usec, since that might break usages other than ls.c.
6053         Instead, we'll leave ls.c alone.  This undoes today's patch
6054         by Bruno.  Add a compile-time warning for 1s-clock resolution;
6055         we've never observed the problem but might as well keep the
6056         canary.
6057         * lib/nanosleep.c: Include timespec.h first, for interface check.
6058         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
6059         now assume the sys_time module.
6060         * lib/tempname.c: Likewise.
6061         * lib/timespec.h: Likewise.
6062         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
6063         needed.
6064         * lib/strftime.c: Likewise.
6065         * lib/timespec.h: Likewise.
6066         * lib/posixtm.c: Include posixtm.h first, for interface check.
6067         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
6068         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
6069         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
6070         * lib/sys_time_.h: New file.
6071         * lib/timespec.h (struct timespec): Use long int, not long.
6072         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6073         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
6074         Remove obsolescent call to AC_HEADER_TIME.
6075         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6077         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6078         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
6079         Likewise.
6080         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6081         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
6082         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
6083         into the sys_time module.  Check for gettimeofday just once.
6084         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
6085         for gettimeofday signature to just check the signature.  Merely
6086         compile it, since linking doesn't test signature.  Improve test for
6087         whether gettimeofday.o is actually needed.
6088         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
6089         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
6090         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
6091         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6092         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
6093         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
6094         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
6095         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
6096         than worrying about sys/time.h.
6097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6098         Don't bother worrying about TIME_WITH_SYS_TIME.
6099         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
6100         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
6101         * m4/sys_time_h.m4: New file.
6102         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
6103         Don't include sys/time.h.  Return from main rather than exiting.
6104         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
6105         all uses changed.
6106         * modules/gethrxtime (Depends-on): Add sys_time.
6107         * modules/gettime (Depends-on): Likewise.
6108         * modules/gettimeofday (Depends-on): Likewise.
6109         * modules/nanosleep (Depends-on): Likewise.
6110         * modules/settime (Depends-on): Likewise.
6111         * modules/tempname (Depends-on): Likewise.
6112         * modules/utimens (Depends-on): Likewise.
6113         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
6114         (Include:) Change back to <sys/time.h>.
6115         (Maintainer:) Add self.
6116         * modules/sys_time: New file.
6117         * modules/tempname (Depends-on): Add gettimeofday.
6118         * tests/test-gettimeofday.c: Include <sys/time.h>
6119         rather than gettimeofday.h.
6120
6121 2007-01-17  Bruno Haible  <bruno@clisp.org>
6122
6123         * gnulib-tool (func_get_license): Revert last patch. Instead, let
6124         the license default to GPL.
6125         (func_create_testdir): Don't complain if a module is LGPL and its
6126         tests module depends on GPLed modules.
6127
6128 2007-01-17  Bruno Haible  <bruno@clisp.org>
6129
6130         * lib/gettimeofday.c (gettimeofday): Add code for the case
6131         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
6132         maximum possible value for tv->tv_usec, rather than the minimum one.
6133
6134 2005-10-08  Martin Lambers  <marlam@marlam.de>
6135 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6136 2007-01-16  Bruno Haible  <bruno@clisp.org>
6137
6138         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
6139         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
6140         gl_FUNC_GETTIMEOFDAY.
6141         (Include): Add gettimeofday.h.
6142         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
6143         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
6144         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
6145         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
6146         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
6147         * lib/gettimeofday.h: New file.
6148         * lib/gettimeofday.c: Include <sys/timeb.h>.
6149         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
6150         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6151         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
6152         fall back on time().
6153
6154         * tests/test-gettimeofday.c: New file.
6155         * modules/gettimeofday-tests: New file.
6156
6157 2007-01-16  Eric Blake  <ebb9@byu.net>
6158
6159         * modules/fnmatch (Depends-on): Depend on wchar.
6160         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
6161         * m4/fnmatch.m4: Likewise.
6162         * modules/mbchar (Makefile.am): Assume <wchar.h>.
6163         * m4/mbchar.m4: Likewise.
6164         * modules/mbswidth (Depends-on): Depend on wchar.
6165         * lib/mbswidth.c: Assume <wchar.h>.
6166         * m4/mbswidth.m4: Likewise.
6167         * modules/quotearg (Depends-on): Depend on wchar.
6168         * lib/quotearg.c: Assume <wchar.h>.
6169         * m4/quotearg.m4: Likewise.
6170         * modules/regex (Depends-on): Depend on wchar.
6171         * lib/regex_internal.h: Assume <wchar.h>.
6172         * m4/regex.m4: Likewise.
6173         * modules/stdint (Depends-on): Depend on wchar.
6174         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
6175         * m4/stdint.m4: Likewise.
6176         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
6177         * modules/strftime (Depends-on): Depend on wchar.
6178         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
6179         * modules/strtol (Depends-on): Depend on wchar.
6180         * lib/strtol.c: Assume <wchar.h>.
6181         * modules/wcwidth (Depends-on): Depend on wchar.
6182         * lib/wcwidth.h: Assume <wchar.h>.
6183         * m4/wcwidth.m4: Likewise.
6184
6185 2007-01-16  Bruno Haible  <bruno@clisp.org>
6186
6187         * modules/csharpexec-script: New, created from...
6188         * modules/csharpexec: ... this.
6189
6190 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6191
6192         * modules/javaexec-script: New, created from...
6193         * modules/javaexec: ... this.
6194
6195 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6196
6197         * modules/poll (Dependencies): Add sys_select.
6198
6199 2007-01-15  Jim Meyering  <jim@meyering.net>
6200
6201         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
6202         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
6203         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
6204         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
6205
6206 2007-01-15  Bruno Haible  <bruno@clisp.org>
6207
6208         * modules/striconveh: New file.
6209         * lib/striconveh.h: New file.
6210         * lib/striconveh.c: New file.
6211         * MODULES.html.sh (Internationalization functions): Add striconveh.
6212
6213         * modules/striconveh-tests: New file.
6214         * tests/test-striconveh.c: New file.
6215
6216 2007-01-15  Bruno Haible  <bruno@clisp.org>
6217
6218         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
6219         not from GNU libiconv or GNU libc.
6220
6221 2007-01-15  Bruno Haible  <bruno@clisp.org>
6222
6223         * doc/gnulib-intro.texi (Copyright): Explain the different license
6224         terms for module descriptions, autoconf macros, tests, documentation.
6225
6226 2007-01-14  Bruno Haible  <bruno@clisp.org>
6227
6228         * modules/striconv-tests: New file.
6229         * tests/test-striconv.c: New file.
6230
6231 2007-01-14  Bruno Haible  <bruno@clisp.org>
6232
6233         * modules/iconv-tests: New file.
6234         * tests/test-iconv.c: New file.
6235
6236 2007-01-14  Bruno Haible  <bruno@clisp.org>
6237
6238         * gnulib-tool (func_get_license): For test modules, use the license of
6239         the main module.
6240
6241 2007-01-14  Bruno Haible  <bruno@clisp.org>
6242
6243         * modules/iconv (Include): Clarify that <iconv.h> can only be included
6244         if iconv is found to exist.
6245
6246 2007-01-14  Bruno Haible  <bruno@clisp.org>
6247
6248         * modules/c-ctype-tests: New file.
6249         * tests/test-c-ctype.c: New file.
6250
6251 2007-01-14  Bruno Haible  <bruno@clisp.org>
6252
6253         * modules/binary-io-tests: New file.
6254         * tests/test-binary-io.sh: New file.
6255         * tests/test-binary-io.c: New file.
6256
6257 2007-01-14  Bruno Haible  <bruno@clisp.org>
6258
6259         * modules/array-oset-tests: New file.
6260         * tests/test-array_oset.c: New file.
6261
6262 2007-01-14  Bruno Haible  <bruno@clisp.org>
6263
6264         * modules/array-list-tests: New file.
6265         * tests/test-array_list.c: New file.
6266
6267 2007-01-14  Bruno Haible  <bruno@clisp.org>
6268
6269         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
6270         and make.
6271         Reported by Simon Josefsson in
6272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
6273
6274 2007-01-14  Bruno Haible  <bruno@clisp.org>
6275
6276         * modules/allocsa-tests: New file.
6277         * tests/test-allocsa.c: New file.
6278
6279 2007-01-14  Bruno Haible  <bruno@clisp.org>
6280
6281         * modules/fchdir (Depends-on): Add absolute-header.
6282         * modules/unistd (Depends-on): Likewise.
6283
6284 2006-12-30  Bruno Haible  <bruno@clisp.org>
6285
6286         * modules/fchdir: New file.
6287         * modules/unistd (Files): Add lib/unistd_.h.
6288         (Makefile.am): Generate unistd.h from unistd_.h.
6289         * lib/fchdir.c: New file.
6290         * lib/dirent_.h: New file.
6291         * lib/unistd_.h: New file.
6292         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
6293         * m4/fchdir.m4: New file.
6294         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
6295         (gl_HEADER_UNISTD): Invoke it.
6296         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
6297         function.
6298         * lib/backupfile.c (opendir, closedir): Undefine.
6299         * lib/chown.c (open, close): Undefine.
6300         * lib/clean-temp.c (open, close): Undefine.
6301         * lib/copy-file.c (open, close): Undefine.
6302         * lib/execute.c (open, close): Undefine.
6303         * lib/fsusage.c (open, close): Undefine.
6304         * lib/gc-gnulib.c (open, close): Undefine.
6305         * lib/getcwd.c (opendir, closedir): Undefine.
6306         * lib/glob.c (opendir, closedir): Undefine.
6307         * lib/javacomp.c (open, close): Undefine.
6308         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
6309         * lib/openat-proc.c (open, close): Undefine.
6310         * lib/pagealign_alloc.c (open, close): Undefine.
6311         * lib/pipe.c (open, close): Undefine.
6312         * lib/progreloc.c (open, close): Undefine.
6313         * lib/savedir.c (opendir, closedir): Undefine.
6314         * lib/utime.c (open, close): Undefine.
6315         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
6316
6317 2007-01-10  Bruno Haible  <bruno@clisp.org>
6318
6319         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
6320
6321 2007-01-12  Eric Blake  <ebb9@byu.net>
6322
6323         Provide a robust <wchar.h>.  Further simplifications are now
6324         possible in other modules, but not included here.
6325         * modules/wchar: New module.
6326         * m4/wchar.m4: New file.
6327         * lib/wchar_.h: Likewise.
6328         * modules/mbchar (Depends-on): Depend on wchar, as the first use
6329         of the new module.
6330         * MODULES.html.sh (Extended multibyte and wide character utilities):
6331         New section.
6332
6333 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
6334
6335         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
6336         to a reasonable default for memory allocation.
6337         (xreadlink): Don't allocate a huge buffer, to work around a buggy
6338         file system that reports garbage st_size values for symlinks.
6339         Problem reported by Liyang Hu.
6340
6341 2007-01-11  Simon Josefsson  <simon@josefsson.org>
6342
6343         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
6344         Emacs .#* auto-save files).
6345
6346 2007-01-11  Bruno Haible  <bruno@clisp.org>
6347
6348         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
6349         directory.
6350
6351 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6352
6353         Use @...@ consistently in lib/wctype_.h.
6354         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
6355         on it being set to 1 or 0.
6356         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
6357         go back to AC_SUBSTing it.
6358         * modules/wctype (Makefile.am): Undo previous change.
6359
6360 2007-01-10  Eric Blake  <ebb9@byu.net>
6361
6362         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
6363         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
6364         * modules/wctype (Makefile.am): Likewise.
6365         Reported by Chris McGuire.
6366
6367 2007-01-10  Jim Meyering  <jim@meyering.net>
6368
6369         fts.c: a small readability/maintainability improvement
6370         * lib/fts.c (fts_read): Make this code slightly more readable and
6371         maintainable by hoisting the "sp->fts_cur = p" assignments to
6372         immediately follow the statements that set P.  Derived from
6373         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
6374
6375 2007-01-10  Eric Blake  <ebb9@byu.net>
6376
6377         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
6378         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
6379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6380         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6381         Reported by Chris McGuire.
6382
6383 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6384
6385         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
6386         in sed script.
6387
6388 2007-01-09  Bruno Haible  <bruno@clisp.org>
6389
6390         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
6391         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
6392         variables.
6393         (func_module): Use them.
6394
6395 2007-01-09  Bruno Haible  <bruno@clisp.org>
6396
6397         * modules/unistr/base: New file.
6398         * lib/unistr.h: New file.
6399
6400         * modules/unistr/u8-to-u16: New file.
6401         * lib/unistr/u8-to-u16.c: New file.
6402
6403         * modules/unistr/u8-to-u32: New file.
6404         * lib/unistr/u8-to-u32.c: New file.
6405
6406         * modules/unistr/u16-to-u8: New file.
6407         * lib/unistr/u16-to-u8.c: New file.
6408
6409         * modules/unistr/u16-to-u32: New file.
6410         * lib/unistr/u16-to-u32.c: New file.
6411
6412         * modules/unistr/u32-to-u8: New file.
6413         * lib/unistr/u32-to-u8.c: New file.
6414
6415         * modules/unistr/u32-to-u16: New file.
6416         * lib/unistr/u32-to-u16.c: New file.
6417
6418         * modules/unistr/u8-check: New file.
6419         * modules/unistr/u16-check: New file.
6420         * modules/unistr/u32-check: New file.
6421         * lib/unistr/u8-check.c: New file.
6422         * lib/unistr/u16-check.c: New file.
6423         * lib/unistr/u32-check.c: New file.
6424
6425         * modules/unistr/u8-chr: New file.
6426         * modules/unistr/u16-chr: New file.
6427         * modules/unistr/u32-chr: New file.
6428         * lib/unistr/u8-chr.c: New file.
6429         * lib/unistr/u16-chr.c: New file.
6430         * lib/unistr/u32-chr.c: New file.
6431
6432         * modules/unistr/u8-cmp: New file.
6433         * modules/unistr/u16-cmp: New file.
6434         * modules/unistr/u32-cmp: New file.
6435         * lib/unistr/u8-cmp.c: New file.
6436         * lib/unistr/u16-cmp.c: New file.
6437         * lib/unistr/u32-cmp.c: New file.
6438
6439         * modules/unistr/u8-cpy: New file.
6440         * modules/unistr/u16-cpy: New file.
6441         * modules/unistr/u32-cpy: New file.
6442         * lib/unistr/u8-cpy.c: New file.
6443         * lib/unistr/u16-cpy.c: New file.
6444         * lib/unistr/u32-cpy.c: New file.
6445         * lib/unistr/u-cpy.h: New file.
6446
6447         * modules/unistr/u8-cpy-alloc: New file.
6448         * modules/unistr/u16-cpy-alloc: New file.
6449         * modules/unistr/u32-cpy-alloc: New file.
6450         * lib/unistr/u8-cpy-alloc.c: New file.
6451         * lib/unistr/u16-cpy-alloc.c: New file.
6452         * lib/unistr/u32-cpy-alloc.c: New file.
6453         * lib/unistr/u-cpy-alloc.h: New file.
6454
6455         * modules/unistr/u8-endswith: New file.
6456         * modules/unistr/u16-endswith: New file.
6457         * modules/unistr/u32-endswith: New file.
6458         * lib/unistr/u8-endswith.c: New file.
6459         * lib/unistr/u16-endswith.c: New file.
6460         * lib/unistr/u32-endswith.c: New file.
6461         * lib/unistr/u-endswith.h: New file.
6462
6463         * modules/unistr/u8-mblen: New file.
6464         * modules/unistr/u16-mblen: New file.
6465         * modules/unistr/u32-mblen: New file.
6466         * lib/unistr/u8-mblen.c: New file.
6467         * lib/unistr/u16-mblen.c: New file.
6468         * lib/unistr/u32-mblen.c: New file.
6469
6470         * modules/unistr/u8-mbtouc: New file.
6471         * modules/unistr/u16-mbtouc: New file.
6472         * modules/unistr/u32-mbtouc: New file.
6473         * lib/unistr/u8-mbtouc.c: New file.
6474         * lib/unistr/u16-mbtouc.c: New file.
6475         * lib/unistr/u32-mbtouc.c: New file.
6476
6477         * modules/unistr/u8-mbtouc-safe: New file.
6478         * modules/unistr/u16-mbtouc-safe: New file.
6479         * modules/unistr/u32-mbtouc-safe: New file.
6480         * lib/unistr/u8-mbtouc-safe.c: New file.
6481         * lib/unistr/u16-mbtouc-safe.c: New file.
6482         * lib/unistr/u32-mbtouc-safe.c: New file.
6483
6484         * modules/unistr/u8-move: New file.
6485         * modules/unistr/u16-move: New file.
6486         * modules/unistr/u32-move: New file.
6487         * lib/unistr/u8-move.c: New file.
6488         * lib/unistr/u16-move.c: New file.
6489         * lib/unistr/u32-move.c: New file.
6490         * lib/unistr/u-move.h: New file.
6491
6492         * modules/unistr/u8-next: New file.
6493         * modules/unistr/u16-next: New file.
6494         * modules/unistr/u32-next: New file.
6495         * lib/unistr/u8-next.c: New file.
6496         * lib/unistr/u16-next.c: New file.
6497         * lib/unistr/u32-next.c: New file.
6498
6499         * modules/unistr/u8-prev: New file.
6500         * modules/unistr/u16-prev: New file.
6501         * modules/unistr/u32-prev: New file.
6502         * lib/unistr/u8-prev.c: New file.
6503         * lib/unistr/u16-prev.c: New file.
6504         * lib/unistr/u32-prev.c: New file.
6505
6506         * modules/unistr/u8-set: New file.
6507         * modules/unistr/u16-set: New file.
6508         * modules/unistr/u32-set: New file.
6509         * lib/unistr/u8-set.c: New file.
6510         * lib/unistr/u16-set.c: New file.
6511         * lib/unistr/u32-set.c: New file.
6512         * lib/unistr/u-set.h: New file.
6513
6514         * modules/unistr/u8-startswith: New file.
6515         * modules/unistr/u16-startswith: New file.
6516         * modules/unistr/u32-startswith: New file.
6517         * lib/unistr/u8-startswith.c: New file.
6518         * lib/unistr/u16-startswith.c: New file.
6519         * lib/unistr/u32-startswith.c: New file.
6520         * lib/unistr/u-startswith.h: New file.
6521
6522         * modules/unistr/u8-stpcpy: New file.
6523         * modules/unistr/u16-stpcpy: New file.
6524         * modules/unistr/u32-stpcpy: New file.
6525         * lib/unistr/u8-stpcpy.c: New file.
6526         * lib/unistr/u16-stpcpy.c: New file.
6527         * lib/unistr/u32-stpcpy.c: New file.
6528         * lib/unistr/u-stpcpy.h: New file.
6529
6530         * modules/unistr/u8-stpncpy: New file.
6531         * modules/unistr/u16-stpncpy: New file.
6532         * modules/unistr/u32-stpncpy: New file.
6533         * lib/unistr/u8-stpncpy.c: New file.
6534         * lib/unistr/u16-stpncpy.c: New file.
6535         * lib/unistr/u32-stpncpy.c: New file.
6536         * lib/unistr/u-stpncpy.h: New file.
6537
6538         * modules/unistr/u8-strcat: New file.
6539         * modules/unistr/u16-strcat: New file.
6540         * modules/unistr/u32-strcat: New file.
6541         * lib/unistr/u8-strcat.c: New file.
6542         * lib/unistr/u16-strcat.c: New file.
6543         * lib/unistr/u32-strcat.c: New file.
6544         * lib/unistr/u-strcat.h: New file.
6545
6546         * modules/unistr/u8-strchr: New file.
6547         * modules/unistr/u16-strchr: New file.
6548         * modules/unistr/u32-strchr: New file.
6549         * lib/unistr/u8-strchr.c: New file.
6550         * lib/unistr/u16-strchr.c: New file.
6551         * lib/unistr/u32-strchr.c: New file.
6552
6553         * modules/unistr/u8-strcmp: New file.
6554         * modules/unistr/u16-strcmp: New file.
6555         * modules/unistr/u32-strcmp: New file.
6556         * lib/unistr/u8-strcmp.c: New file.
6557         * lib/unistr/u16-strcmp.c: New file.
6558         * lib/unistr/u32-strcmp.c: New file.
6559
6560         * modules/unistr/u8-strcpy: New file.
6561         * modules/unistr/u16-strcpy: New file.
6562         * modules/unistr/u32-strcpy: New file.
6563         * lib/unistr/u8-strcpy.c: New file.
6564         * lib/unistr/u16-strcpy.c: New file.
6565         * lib/unistr/u32-strcpy.c: New file.
6566         * lib/unistr/u-strcpy.h: New file.
6567
6568         * modules/unistr/u8-strcspn: New file.
6569         * modules/unistr/u16-strcspn: New file.
6570         * modules/unistr/u32-strcspn: New file.
6571         * lib/unistr/u8-strcspn.c: New file.
6572         * lib/unistr/u16-strcspn.c: New file.
6573         * lib/unistr/u32-strcspn.c: New file.
6574         * lib/unistr/u-strcspn.h: New file.
6575
6576         * modules/unistr/u8-strdup: New file.
6577         * modules/unistr/u16-strdup: New file.
6578         * modules/unistr/u32-strdup: New file.
6579         * lib/unistr/u8-strdup.c: New file.
6580         * lib/unistr/u16-strdup.c: New file.
6581         * lib/unistr/u32-strdup.c: New file.
6582         * lib/unistr/u-strdup.h: New file.
6583
6584         * modules/unistr/u8-strlen: New file.
6585         * modules/unistr/u16-strlen: New file.
6586         * modules/unistr/u32-strlen: New file.
6587         * lib/unistr/u8-strlen.c: New file.
6588         * lib/unistr/u16-strlen.c: New file.
6589         * lib/unistr/u32-strlen.c: New file.
6590         * lib/unistr/u-strlen.h: New file.
6591
6592         * modules/unistr/u8-strmblen: New file.
6593         * modules/unistr/u16-strmblen: New file.
6594         * modules/unistr/u32-strmblen: New file.
6595         * lib/unistr/u8-strmblen.c: New file.
6596         * lib/unistr/u16-strmblen.c: New file.
6597         * lib/unistr/u32-strmblen.c: New file.
6598
6599         * modules/unistr/u8-strmbtouc: New file.
6600         * modules/unistr/u16-strmbtouc: New file.
6601         * modules/unistr/u32-strmbtouc: New file.
6602         * lib/unistr/u8-strmbtouc.c: New file.
6603         * lib/unistr/u16-strmbtouc.c: New file.
6604         * lib/unistr/u32-strmbtouc.c: New file.
6605
6606         * modules/unistr/u8-strncat: New file.
6607         * modules/unistr/u16-strncat: New file.
6608         * modules/unistr/u32-strncat: New file.
6609         * lib/unistr/u8-strncat.c: New file.
6610         * lib/unistr/u16-strncat.c: New file.
6611         * lib/unistr/u32-strncat.c: New file.
6612         * lib/unistr/u-strncat.h: New file.
6613
6614         * modules/unistr/u8-strncmp: New file.
6615         * modules/unistr/u16-strncmp: New file.
6616         * modules/unistr/u32-strncmp: New file.
6617         * lib/unistr/u8-strncmp.c: New file.
6618         * lib/unistr/u16-strncmp.c: New file.
6619         * lib/unistr/u32-strncmp.c: New file.
6620
6621         * modules/unistr/u8-strncpy: New file.
6622         * modules/unistr/u16-strncpy: New file.
6623         * modules/unistr/u32-strncpy: New file.
6624         * lib/unistr/u8-strncpy.c: New file.
6625         * lib/unistr/u16-strncpy.c: New file.
6626         * lib/unistr/u32-strncpy.c: New file.
6627         * lib/unistr/u-strncpy.h: New file.
6628
6629         * modules/unistr/u8-strnlen: New file.
6630         * modules/unistr/u16-strnlen: New file.
6631         * modules/unistr/u32-strnlen: New file.
6632         * lib/unistr/u8-strnlen.c: New file.
6633         * lib/unistr/u16-strnlen.c: New file.
6634         * lib/unistr/u32-strnlen.c: New file.
6635         * lib/unistr/u-strnlen.h: New file.
6636
6637         * modules/unistr/u8-strpbrk: New file.
6638         * modules/unistr/u16-strpbrk: New file.
6639         * modules/unistr/u32-strpbrk: New file.
6640         * lib/unistr/u8-strpbrk.c: New file.
6641         * lib/unistr/u16-strpbrk.c: New file.
6642         * lib/unistr/u32-strpbrk.c: New file.
6643         * lib/unistr/u-strpbrk.h: New file.
6644
6645         * modules/unistr/u8-strrchr: New file.
6646         * modules/unistr/u16-strrchr: New file.
6647         * modules/unistr/u32-strrchr: New file.
6648         * lib/unistr/u8-strrchr.c: New file.
6649         * lib/unistr/u16-strrchr.c: New file.
6650         * lib/unistr/u32-strrchr.c: New file.
6651
6652         * modules/unistr/u8-strspn: New file.
6653         * modules/unistr/u16-strspn: New file.
6654         * modules/unistr/u32-strspn: New file.
6655         * lib/unistr/u8-strspn.c: New file.
6656         * lib/unistr/u16-strspn.c: New file.
6657         * lib/unistr/u32-strspn.c: New file.
6658         * lib/unistr/u-strspn.h: New file.
6659
6660         * modules/unistr/u8-strstr: New file.
6661         * modules/unistr/u16-strstr: New file.
6662         * modules/unistr/u32-strstr: New file.
6663         * lib/unistr/u8-strstr.c: New file.
6664         * lib/unistr/u16-strstr.c: New file.
6665         * lib/unistr/u32-strstr.c: New file.
6666         * lib/unistr/u-strstr.h: New file.
6667
6668         * modules/unistr/u8-strtok: New file.
6669         * modules/unistr/u16-strtok: New file.
6670         * modules/unistr/u32-strtok: New file.
6671         * lib/unistr/u8-strtok.c: New file.
6672         * lib/unistr/u16-strtok.c: New file.
6673         * lib/unistr/u32-strtok.c: New file.
6674         * lib/unistr/u-strtok.h: New file.
6675
6676         * modules/unistr/u8-uctomb: New file.
6677         * modules/unistr/u16-uctomb: New file.
6678         * modules/unistr/u32-uctomb: New file.
6679         * lib/unistr/u8-uctomb.c: New file.
6680         * lib/unistr/u16-uctomb.c: New file.
6681         * lib/unistr/u32-uctomb.c: New file.
6682
6683         * MODULES.html.sh (Unicode string functions): Add the new modules.
6684
6685 2007-01-08  Bruno Haible  <bruno@clisp.org>
6686
6687         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
6688         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
6689         subdirectories.
6690
6691 2007-01-08  Karl Berry  <karl@gnu.org>
6692
6693         * doc/error.texi: mention that main() fns must set program_name
6694         when progname is used.
6695
6696 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
6697
6698         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
6699         WCTYPE_H is empty, for the benefit of builds from non-distclean
6700         directories.  Problem reported by Eric Blake in
6701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
6702
6703 2007-01-08  Bruno Haible  <bruno@clisp.org>
6704
6705         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
6706         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
6707         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
6708         PROVIDE_CANONICALIZE_FILENAME_MODE.
6709         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
6710
6711 2007-01-08  Bruno Haible  <bruno@clisp.org>
6712
6713         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
6714         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
6715         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
6716         * lib/fts.c: Likewise.
6717         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
6718
6719 2006-12-25  Bruno Haible  <bruno@clisp.org>
6720
6721         * modules/utf8-ucs4-safe: New file.
6722         * lib/utf8-ucs4-safe.h: New file.
6723         * lib/unistr/utf8-ucs4-safe.c: New file.
6724
6725         * modules/utf16-ucs4-safe: New file.
6726         * lib/utf16-ucs4-safe.h: New file.
6727         * lib/unistr/utf16-ucs4-safe.c: New file.
6728
6729         * MODULES.html.sh (Unicode string functions): Add the new modules.
6730
6731 2007-01-08  Bruno Haible  <bruno@clisp.org>
6732
6733         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
6734         (Depends-on): Add unitypes.
6735         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
6736         (u8_mbtouc_aux): Move out to separate file.
6737         (u8_mbtouc): Use ucs4_t, uint8_t types.
6738         * lib/unistr/utf8-ucs4.c: New file.
6739
6740         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
6741         (Depends-on): Add unitypes.
6742         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
6743         (u16_mbtouc_aux): Move out to separate file.
6744         (u16_mbtouc): Use ucs4_t, uint16_t types.
6745         * lib/unistr/utf16-ucs4.c: New file.
6746
6747         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
6748         (Depends-on): Add unitypes.
6749         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
6750         (u8_uctomb_aux): Move out to separate file.
6751         (u8_uctomb): Use ucs4_t, uint8_t types.
6752         * lib/unistr/ucs4-utf8.c: New file.
6753
6754         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
6755         (Depends-on): Add unitypes.
6756         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
6757         (u16_uctomb_aux): Move out to separate file.
6758         (u16_uctomb): Use ucs4_t, uint16_t types.
6759         * lib/unistr/ucs4-utf16.c: New file.
6760
6761 2006-12-25  Bruno Haible  <bruno@clisp.org>
6762
6763         * modules/unitypes: New file.
6764         * lib/unitypes.h: New file.
6765         * MODULES.html.sh (func_all_modules): New section "Unicode string
6766         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
6767         this section. Add unitypes.
6768
6769 2007-01-08  Bruno Haible  <bruno@clisp.org>
6770
6771         Avoid variable names that conflict with those from libtool.
6772         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
6773         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
6774         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
6775         library_names_spec to acl_library_names_spec, hardcode_* to
6776         acl_hardcode_*.
6777         Reported by Ralf Wildenhues.
6778
6779 2007-01-08  Bruno Haible  <bruno@clisp.org>
6780
6781         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
6782         definition.
6783         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
6784         definition.
6785         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
6786         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
6787         definition.
6788         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
6789         definition.
6790         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
6791         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
6792         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
6793         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
6794         definition.
6795         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
6796         definition.
6797         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
6798         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
6799         GC_USE_<algorithm>.
6800         * lib/gc-libgcrypt.c: Likewise.
6801         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
6802         * modules/gc-arctwo (configure.ac): Likewise.
6803         * modules/gc-des (configure.ac): Likewise.
6804         * modules/gc-hmac-md5 (configure.ac): Likewise.
6805         * modules/gc-hmac-sha1 (configure.ac): Likewise.
6806         * modules/gc-md2 (configure.ac): Likewise.
6807         * modules/gc-md4 (configure.ac): Likewise.
6808         * modules/gc-md5 (configure.ac): Likewise.
6809         * modules/gc-random (configure.ac): Likewise.
6810         * modules/gc-rijndael (configure.ac): Likewise.
6811         * modules/gc-sha1 (configure.ac): Likewise.
6812
6813 2007-01-08  Bruno Haible  <bruno@clisp.org>
6814
6815         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
6816         macro definition.
6817         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
6818         definition.
6819         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
6820         definition.
6821         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
6822         * modules/fcntl-safer (configure.ac): Likewise.
6823         * modules/fopen-safer (configure.ac): Likewise.
6824         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
6825         GNULIB_FWRITEERROR macro definition.
6826
6827 2007-01-08  Bruno Haible  <bruno@clisp.org>
6828
6829         * m4/gnulib-common.m4: New file.
6830         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
6831         (func_get_filelist): Add m4/gnulib-common.m4.
6832
6833 2007-01-08  Bruno Haible  <bruno@clisp.org>
6834
6835         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
6836         command.
6837
6838 2007-01-08  Jim Meyering  <jim@meyering.net>
6839
6840         Use a more robust test for a "can't happen" condition.
6841         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
6842         narrowed the st_size value.  Presuming the "can't happen" condition
6843         is true, that narrowing could conceivably convert an invalid st_size
6844         value into a valid one.  Instead, use a change based on Matthew
6845         Woehlke's original patch.
6846
6847         Slight readability improvement: use an assert-like macro
6848         in place of literal "abort ()" uses.
6849         * lib/fts.c (fts_assert): Define.
6850         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
6851         Use this macro instead of a bare 'abort'.
6852
6853 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6854
6855         Don't worry about using IRIX 5.3's wctype.h broken definitions;
6856         simply work around them.
6857         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
6858         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
6859         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
6860         declaring.
6861         Don't bother to define as macros, since the standard doesn't require it.
6862         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
6863         longer worry about IRIX 5.3.
6864         (HAVE_WCTYPE_CTMP_BUG): Remove.
6865
6866 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6867
6868         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
6869         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
6870         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6871         Problems reported by Georg Schwarz for IRIX 5.3.
6872
6873         * gnulib-tool (autoconf_minversion): Take the maximum version number
6874         found, not the minimum.  Problem reported by James Youngman.
6875
6876 2007-01-03  Karl Berry  <karl@gnu.org>
6877
6878         * doc/error.texi: new file, explaining interaction with progname.
6879         * doc/gnulib.texi: include it.  Update copyright.
6880
6881 2007-01-03  Simon Josefsson  <simon@josefsson.org>
6882
6883         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
6884         AC_CANONICAL_HOST, to improve autobuild outputs.
6885
6886 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
6887             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6888
6889         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
6890         sockets, server sockets, and other file descriptors.  Count errors
6891         to compute the return value.  Reorder the code a bit to be easier
6892         to follow.  Don't set event bits that were not requested (except
6893         POLLERR and POLLHUP).
6894
6895 2007-01-01  Bruno Haible  <bruno@clisp.org>
6896
6897         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
6898
6899 2007-01-03  Jim Meyering  <jim@meyering.net>
6900
6901         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
6902
6903 2007-01-02  Bruno Haible  <bruno@clisp.org>
6904
6905         * modules/settime (Include): Require timespec.h.
6906         * modules/nanosleep (Include): Likewise.
6907
6908 2007-01-01  Bruno Haible  <bruno@clisp.org>
6909
6910         * gnulib-tool (func_emit_copyright_notice): Bump year.
6911         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
6912
6913 2007-01-01  Bruno Haible  <bruno@clisp.org>
6914
6915         Improve support for OpenBSD.
6916         * build-aux/config.rpath (libname_spec): Export.
6917         (library_names_spec): New variable. Export.
6918         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
6919         library_names_spec from the config.rpath output. Locate shared library
6920         through the name pattern in library_names_spec.
6921
6922 2007-01-01  Eric Blake  <ebb9@byu.net>
6923
6924         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
6925
6926 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6927
6928         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
6929         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
6930         assume the C locale, and avoid an "eval" that could cause trouble.
6931         Problem with SORT reported by Bob Proulx.
6932
6933         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
6934         Define.  Trivial patch from Henning Nielsen Lund, originally
6935         sent to bug-grep@gnu.org today.
6936
6937 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6938
6939         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
6940         struct stat.  Problem reported by Henning Nielsen Lund.
6941         * lib/acl.c: Include acl.h first, to check interface.  Don't
6942         bother to include sys/types.h and sys/stat.h again.
6943
6944 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6945
6946         Import the following change from libc; problem reported by
6947         Sven Verdoolaege.
6948
6949         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
6950
6951         [BZ #1373]
6952         * lib/argp.h: Remove __NTH for __argp_usage inline function.
6953
6954 2006-12-28  Jim Meyering  <jim@meyering.net>
6955
6956         * build-aux/announce-gen: Do not assume that the package
6957         builds any of tar.gz, tar.bz2, and .xdelta files.
6958         Suggestion from Simon Josefsson.
6959
6960 2006-12-28  Simon Josefsson  <simon@josefsson.org>
6961
6962         * modules/announce-gen: New file.
6963
6964 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6965
6966         * lib/mbchar.h: Just include <wctype.h>; the wctype module
6967         handles its gotchas now.
6968         * lib/mbswidth.c: Likewise.
6969         * lib/wcwidth.h: Likewise.
6970         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
6971         and iswcntrl; the wctype module does this stuff now.
6972         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6974         * modules/mbchar (Depends-on): Add wctype.
6975         * modules/mbswidth (Depends-on): Likewise.
6976         * modules/wcwidth (Depends-on): Likewise.
6977
6978 2006-12-27  Eric Blake  <ebb9@byu.net>
6979
6980         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
6981         module uses more than what <wctype.h> is required to provide.
6982
6983 2006-12-26  Eric Blake  <ebb9@byu.net>
6984
6985         * gnulib-tool (sed_extract_prog): Avoid space-tab.
6986
6987 2006-12-26  Eric Blake  <ebb9@byu.net>
6988
6989         * modules/absolute-header: New module.
6990         * modules/fcntl (Depends-on): Depend on it.
6991         * modules/inttypes (Depends-on): Likewise.
6992         * modules/stdint (Depends-on): Likewise.
6993         * modules/sys_stat (Depends-on): Likewise.
6994         * modules/wctype (Depends-on): Likewise.
6995         * MODULES.html.sh (Support for building libraries and
6996         executables): Document it.
6997
6998 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6999
7000         * gnulib-tool (SED): Remove, undoing previous change.
7001         The problem was that it broke coreutils on Solaris, because
7002         "sed --posix" leaked into a makefile.
7003         (sed): New alias, if 'alias' and GNU sed.
7004
7005 2006-12-24  Jim Meyering  <jim@meyering.net>
7006
7007         Work around an fchownat bug in glibc-2.4:
7008         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
7009         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
7010         in spite of the -P option.
7011         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
7012         New macros.
7013         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
7014         * modules/openat (Files): Add lib/fchownat.c.
7015         * lib/openat.c (fchownat): Don't define here.  Move to...
7016         * lib/fchownat.c: ...this new file.
7017
7018 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7019
7020         Fix bug reported by Bruno Haible in
7021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
7022         where quotearg.c didn't compile on Mac OS X 10.2 because it
7023         lacks <wchar.h> and wint_t.
7024         * lib/wctype_.h (__wctype_wint_t): New type.
7025         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
7026         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
7027         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
7028         Arg is now of type __wctype_wint_t, not wint_t.
7029         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
7030         substitute HAVE_WINT_T.
7031         * modules/wctype (Files): Add m4/wint_t.m4.
7032         (wctype.h): Substitute HAVE_WINT_T.
7033
7034 2006-12-23  Bruno Haible  <bruno@clisp.org>
7035
7036         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
7037
7038 2006-12-23  Bruno Haible  <bruno@clisp.org>
7039
7040         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
7041         S_ISLNK.
7042         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
7043         mingw.
7044
7045 2006-12-22  Bruno Haible  <bruno@clisp.org>
7046
7047         * lib/copy-file.c: Include acl.h.
7048         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
7049         Close the file descriptors only after being done with copy_acl.
7050         * modules/copy-file (Depends-on): Add acl.
7051
7052 2006-12-22  Bruno Haible  <bruno@clisp.org>
7053
7054         * gnulib-tool (SED): New variable.
7055         Use $SED instead of sed everywhere.
7056
7057 2006-12-22  Bruno Haible  <bruno@clisp.org>
7058
7059         * modules/no-c++: New file.
7060         * m4/no-c++.m4: New file.
7061         * MODULES.html.sh (Support for building libraries and executables):
7062         Add no-c++.
7063
7064 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7065
7066         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
7067         Include <limits.h>, and use its INT_MAX to rewrite the
7068         j loop so that it does not overflow 'int'.  Problem reported by
7069         Ralf Wildenhues in
7070         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
7071         Play it safe by shifting left by 1 rather than multiplying by 2,
7072         as GCC is less likely to optimize this away when the value
7073         is signed (when it assumes overflow leads to undefined behavior).
7074         Also, don't assume time_t uses two's complement.
7075
7076 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7077
7078         * MODULES.html.sh: New module wctype.
7079         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
7080         * lib/fnmatch.c: Don't bother to include <wchar.h> before
7081         <wctype.h>, since the new wctype module should fix this.
7082         * lib/quotearg.c: Include <wctype.h> unconditionally, since
7083         the wctype module should arrange for it.
7084         * lib/regex_internal.h: Likewise.
7085         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
7086         since the wctype module should handle this now.
7087         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
7088         * modules/fnmatch (Depends-on): Add wctype.
7089         * modules/quotearg (Depends-on): Likewise.
7090         * modules/regex (Depends-on): Likewise.
7091
7092 2006-12-19  Bruno Haible  <bruno@clisp.org>
7093
7094         * lib/strdup.h [C++]: Wrap definitions in extern "C".
7095         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
7096
7097 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7098
7099         * modules/savewd (Depends-on): Fix dependency on fcntl.
7100
7101 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7102
7103         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
7104         conforms to C99, rather than relying on the user's environment
7105         setting of STDINT_H.
7106
7107 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7108         and Eric Blake  <ebb9@byu.net>
7109
7110         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
7111         This is more consistent with the other defines here.
7112         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
7113         Port to z/OS.  Problem reported by Paul Gilmartin.
7114         Change local vars to use gl_ prefix rather than ac_.
7115         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
7116         with other defines.
7117         * modules/double-slash-root: New module.
7118         * modules/dirname (Files): Remove m4/double-slash-root.m4.
7119         (Depends-on): Add double-slash-root.
7120         * MODULES.html.sh (File system functions): Mention new module.
7121
7122 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7123
7124         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
7125         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
7126         This is for the benefit of gzip, which doesn't do i18n.
7127
7128 2006-12-12  Jim Meyering  <jim@meyering.net>
7129
7130         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
7131         Reported by Andreas Schwab <schwab@suse.de>.
7132
7133 2006-12-12  Bruno Haible  <bruno@clisp.org>
7134
7135         Merge these changes.
7136         2006-09-05  Bruno Haible  <bruno@clisp.org>
7137         * lib/iconvme.c (iconv_string): No need to save and restore errno when
7138         iconv_alloc succeeded.
7139         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
7140         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
7141         test for " && dest " at the end - dest is always != NULL there. Call
7142         iconv with 4xNULL arguments initially, to reset the state. Call iconv
7143         with 2xNULL arguments, also to flush the state storage. Handle the
7144         IRIX iconv behaviour. Realloc the final result, to throw away unused
7145         memory.
7146
7147 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7148
7149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
7150         and fchmodat unconditionally, since glibc 2.4 has them.
7151         Problem reported by Arkadiusz Miskiewicz.
7152
7153 2006-12-10  Bruno Haible  <bruno@clisp.org>
7154
7155         * gnulib-tool (func_import): Show the include files only for those
7156         modules that are copied and specified.
7157         Reported by Karl Berry.
7158
7159 2006-12-08  Jim Meyering  <jim@meyering.net>
7160
7161         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
7162         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
7163
7164         * build-aux/announce-gen: Add two new options, both optional:
7165         --bootstrap-tools=TOOL_LIST
7166               a comma-separated list of tools, e.g.,
7167               autoconf,automake,bison,gnulib
7168         --gnulib-snapshot-date=DATE
7169               if gnulib is in the bootstrap tool list,
7170               then report this as the snapshot date.
7171               If not specified, use the current date/time.
7172               If you specify a date here, be sure it's UTC.
7173
7174 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7175
7176         * tests/test-argp-2.sh: Fix test to match actual output.
7177         (func_compare): Fix sed script to be portable.
7178
7179 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
7180
7181         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
7182         workaround for this case.  It is not autoconfigured now; offhand
7183         it's hard to see how to autoconfigure it.
7184
7185 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7186
7187         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
7188         a directory that is about to be chowned.  Such a directory's
7189         initial file permissions should permit the owner only and this
7190         should not be changed until after the chown, since the group and
7191         other bits would be incorrect if they granted permission before
7192         the chown.
7193
7194         Fix porting problem for iswctype reported by Georg Schwarz in:
7195         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
7196         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
7197         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
7198         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
7199         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7200
7201 2006-12-03  Jim Meyering  <jim@meyering.net>
7202
7203         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
7204         p->fts_statp may not yet be defined.
7205         (fts_read): Instead, set it in the caller, once p->fts_statp is
7206         sure to be defined, and corresponds to a top-level directory.
7207         This bug made du -x fail.  Here's the coreutils test case:
7208         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
7209         Reported by Mike Frysinger.
7210
7211 2006-12-01  Jim Meyering  <jim@meyering.net>
7212
7213         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
7214         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
7215         Reported by Simon Josefsson.
7216
7217 2006-11-30  Jim Meyering  <jim@meyering.net>
7218
7219         * m4/warning.m4: Use the all-permissive copyright notice
7220         recommended by RMS (rather than LGPL).
7221         * m4/vararrays.m4: Likewise.
7222         * m4/flexmember.m4: Likewise.
7223
7224 2006-11-29  Bruno Haible  <bruno@clisp.org>
7225
7226         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7227         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
7228         using +=.
7229         Reported by Simon Josefsson <simon@josefsson.org>.
7230
7231 2006-11-28  James Youngman <jay@gnu.org>
7232
7233         * README: Advise users that they might find the bug-gnulib@gnu.org
7234         and autotools-announce@gnu.org mailing lists useful.
7235
7236 2006-11-28  Bruno Haible  <bruno@clisp.org>
7237
7238         * m4/ptrdiff_max.m4: Remove file.
7239
7240 2006-11-21  Bruno Haible  <bruno@clisp.org>
7241
7242         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
7243         _AC_COMPUTE_INT.
7244         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7245         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
7246         _AC_COMPUTE_INT.
7247         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7248         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
7249         _AC_COMPUTE_INT.
7250         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7251
7252 2006-11-28  Jim Meyering  <jim@meyering.net>
7253
7254         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
7255         warning from "gcc -Wshadow" about shadowing the builtin.
7256
7257 2006-11-27  Bruno Haible  <bruno@clisp.org>
7258
7259         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
7260         _AC_COMPUTE_INT.
7261         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7262
7263 2006-11-27  Bruno Haible  <bruno@clisp.org>
7264             Paul Eggert  <eggert@cs.ucla.edu>
7265
7266         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
7267
7268 2006-11-26  Bruno Haible  <bruno@clisp.org>
7269
7270         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7271         noinst_LTLIBRARIES.
7272
7273 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
7274             Bruno Haible  <bruno@clisp.org>
7275
7276         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
7277         if compiling with "gcc -ansi".
7278
7279 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7280
7281         Fix some incompatibilities with gcc -ansi -pedantic.
7282         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
7283         if compiling pedantically with GCC, unless it's C99 or later.
7284         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
7285         it mishandles gcc -ansi -pedantic as well.
7286         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
7287         if gcc -pedantic.
7288         * lib/regexec.c (check_node_accept_bytes): Don't use auto
7289         initializers for struct if -pedantic, unless it's C99 or later.
7290
7291 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
7292
7293         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
7294         Don't close an fd more than once. Identical atimes indicate
7295         success, not failure.
7296
7297 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
7298
7299         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
7300
7301 2006-11-23  Jim Meyering  <jim@meyering.net>
7302
7303         * build-aux/announce-gen: New file.  From coreutils.
7304
7305 2006-11-22  Jim Meyering  <jim@meyering.net>
7306
7307         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
7308         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
7309         (fts_read): Use a temporary to narrow the overused st_size member
7310         before using it in a switch statement.  Reported by Matthew Woehlke.
7311
7312         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
7313         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7314
7315 2006-11-20  Bruno Haible  <bruno@clisp.org>
7316
7317         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
7318         changequote instead of pairs of brackets.
7319         Reported by Andreas Schwab <schwab@suse.de>.
7320
7321 2006-11-21  Jim Meyering  <jim@meyering.net>
7322
7323         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
7324         so as to remain compatible with older compilers.
7325         Patch from Michael Deutschmann.
7326
7327 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7328
7329         * MODULES.html.sh (File system functions): Add openat.
7330
7331         * lib/openat.h (rpl_fstatat): New macro, if
7332         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
7333         (fstatat): Define to rpl_fstatat under the same conditions,
7334         unless COMPILING_FSTATAT.
7335         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
7336         seems to have the bug.
7337         * lib/fstatat.c: New file.
7338         * modules/openat (Files): Add it.
7339
7340 2006-11-20  Bruno Haible  <bruno@clisp.org>
7341
7342         * Makefile: New file.
7343
7344 2006-11-20  Jim Meyering  <jim@meyering.net>
7345
7346         The beginnings of syntax-related checks for gnulib.
7347         * lib/Makefile: New file.
7348         * lib/t-idcache: New script.  Ensure that the two halves of
7349         idcache.c stay in sync.
7350
7351         * lib/idcache.c: Adjust comments in user- and group- portions to
7352         be more accurate, and to be consistent with one another.
7353
7354 2006-11-20  Jim Meyering  <jim@meyering.net>
7355
7356         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
7357         continue using the flexible array member (thus, this module performs
7358         half as many malloc calls), with the addition that...
7359         (getgroup, getuser): Consistently record a non-match via an empty
7360         "name" string, and map an empty string match to a NULL return value.
7361         * modules/idcache (Depends-on): Re-add flexmember.
7362
7363         * lib/idcache.c (getuser): Remove all uses of the register keyword.
7364         (getuidbyname, getgroup, getgidbyname): Likewise.
7365
7366         Use cleaner syntax: NULL rather than 0.
7367         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
7368
7369 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7370
7371         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
7372         It mishandled the case where the group was missing.
7373         Problem reported by Greg Schafer.
7374         * modules/idcache: Likewise.
7375
7376 2006-11-18  Jim Meyering  <jim@meyering.net>
7377
7378         * check-module (%exempt_header): Add exception for some
7379         conditionally-included headers.
7380
7381         * modules/i-ring (Depends-on): Add verify.
7382         (License): Change to LGPL.
7383
7384 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7385
7386         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
7387         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
7388         and inttostr.h.  Use snprintf rather than uinttostr, so that
7389         LGPLed code doesn't depend on GPLed.
7390
7391 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7392
7393         * modules/inline (License): Change from GPL to LGPL.
7394
7395 2006-11-17  Jim Meyering  <jim@meyering.net>
7396
7397         * modules/d-type (License): Switch to LGPL.
7398
7399 2006-11-15  Bruno Haible  <bruno@clisp.org>
7400
7401         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
7402
7403 2006-11-15  Eric Blake  <ebb9@byu.net>
7404
7405         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
7406         the module dependency.
7407
7408 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7409             Bruno Haible  <bruno@clisp.org>
7410
7411         * gnulib-tool (func_create_testdir): Add license consistency check.
7412
7413 2006-11-15  Eric Blake  <ebb9@byu.net>
7414
7415         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
7416         random "(cached)" in configure output.
7417
7418 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7419
7420         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
7421         test for conforming inttypes.h is both announced and cached.
7422
7423         * MODULES.html.sh (seen_modules, seen_files): New variables.
7424         (func_module): Rewrite to use a few less gnulib-tool and sed
7425         invocations.  Avoid a couple of quadratic algorithms for ...
7426         (missed_modules, missed_files): ... these, with ...
7427         (func_append, func_tmpdir): ... these new functions, from
7428         gnulib-tool.  Analogously, install traps for cleanup.
7429
7430         * tests/test-gc.c (main): Remove unused variables.
7431         * tests/test-read-file.c: Include stdlib.h, for 'free'.
7432
7433 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
7434
7435         * modules/inttostr (License): Change to LGPL.
7436
7437 2006-11-14  Eric Blake  <ebb9@byu.net>
7438
7439         * modules/tempname (License): Change to LGPL.
7440
7441 2006-11-14  Eric Blake  <ebb9@byu.net>
7442
7443         * doc/functions.texi (Function Portability): *printf functions on
7444         Cygwin now understand all POSIX size specifiers.
7445
7446 2006-11-14  Bruno Haible  <bruno@clisp.org>
7447
7448         * modules/c-ctype (License): Change to LGPL.
7449
7450 2006-11-12  Bruno Haible  <bruno@clisp.org>
7451
7452         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7453         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
7454         for GNOME libraries, for which the include files are installed in
7455         subdirectories of $prefix/include.
7456
7457 2006-11-12  Bruno Haible  <bruno@clisp.org>
7458
7459         * m4/lib-link.m4: Require at least autoconf-2.54.
7460         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
7461         name to underscores for the --with option.
7462
7463 2006-11-13  Bruno Haible  <bruno@clisp.org>
7464
7465         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
7466         the tests directory.
7467         Reported by Ralf Wildenhues.
7468
7469 2006-11-13  Bruno Haible  <bruno@clisp.org>
7470
7471         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
7472         (func_emit_initmacro_end): Undo the override here.
7473         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
7474         Works around the famous automake error in coreutils.
7475
7476 2006-11-13  Eric Blake  <ebb9@byu.net>
7477
7478         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
7479         element, not its node.
7480
7481 2006-11-12  Bruno Haible  <bruno@clisp.org>
7482
7483         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
7484         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
7485
7486 2006-11-12  Bruno Haible  <bruno@clisp.org>
7487
7488         * gnulib-tool: New option --local-symlink.
7489         (func_usage): Document it.
7490         (lsymbolic): New variable.
7491         (func_import, func_create_testdir): If --symlink was not specified,
7492         test whether --local-symlink was specified and the file comes from
7493         the local_gnulib_dir.
7494
7495 2006-11-12  Bruno Haible  <bruno@clisp.org>
7496
7497         * gnulib-tool (func_ln): New function.
7498         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
7499
7500 2006-11-12  Bruno Haible  <bruno@clisp.org>
7501
7502         Finish support for source files in subdirectories.
7503         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
7504         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
7505         AUTOMAKE_OPTIONS.
7506         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
7507
7508 2006-11-12  Bruno Haible  <bruno@clisp.org>
7509
7510         * gnulib-tool (func_get_automake_snippet): Synthesize also an
7511         EXTRA_lib_SOURCES augmentation.
7512         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
7513
7514 2006-11-12  Jim Meyering  <jim@meyering.net>
7515
7516         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
7517         file descriptors.  This also averts a failure on systems with
7518         native openat support when a traversed directory lacks "x" access.
7519         * lib/fts_.h: Include "i-ring.h"
7520         (struct FTS) [fts_fd_ring]: New member.
7521         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
7522         (FCHDIR): Add parentheses.
7523         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
7524         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
7525         When descending, rather than simply closing the previous
7526         fts_cwd_fd value, push that file descriptor onto the ring.
7527         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
7528         (fts_open): Initialize the new fd_ring member.
7529         (fts_close): Clear the ring.
7530         (fts_safe_changedir): When possible, use our new fd_ring to skip
7531         the diropen and fstat and dev/ino comparison that would normally
7532         accompany a virtual `chdir ("..")'.
7533
7534         * modules/fts (Depends-on): Add i-ring.
7535         * modules/i-ring: New module.
7536         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
7537         * m4/i-ring.m4: New file.
7538
7539 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7540
7541         * gnulib-tool (func_create_testdir): Fix replacement of
7542         `build-aux' in configure.ac.  Run autotools in gltests
7543         subdirectory.
7544         (func_create_testdir, func_create_megatestdir, test): There is
7545         no need for '--force' in most autotool invocations in a new
7546         tree.  Actually fail the whole test if any of the tools, or the
7547         configure or make stages fail.
7548
7549         Sync from Automake.
7550         * build-aux/gnupload: Revert last change.  Add pointer to upload
7551         instructions of the GNU Maintenance Instructions.
7552         Suggestion by Karl Berry.
7553
7554 2006-11-10  Jim Meyering  <jim@meyering.net>
7555
7556         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
7557
7558 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7559
7560         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
7561         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
7562         (bind_textdomain_codeset) [! ENABLE_NLS]:
7563         Evaluate all the arguments.  That way, callers get compatible behavior
7564         if the arguments have side effects.  Also, it avoids some GCC
7565         diagnostics in some cases; Joel E. Denny reported problems when Bison
7566         was configured with --enable-gcc-warnigs.
7567
7568 2006-11-10  Jim Meyering  <jim@meyering.net>
7569
7570         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
7571         relevant options in CFLAGS (like -O, -fno-inline) are taken into
7572         account.
7573
7574 2006-11-10  Jim Meyering  <jim@meyering.net>
7575
7576         * modules/inline: New file/module.
7577         * modules/xalloc (Files): Remove m4/inline.m4.
7578         (Depends-on): Add inline, instead.
7579         * modules/oset: Likewise.
7580         * modules/list: Likewise.
7581
7582 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7583
7584         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
7585         Problem reported by Matthew Woehlke.
7586
7587 2006-11-09  Bruno Haible  <bruno@clisp.org>
7588
7589         * lib/tempname.c (gen_tempname): Remove variant that invokes
7590         __gen_tempname.
7591         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
7592         __gen_tempname.
7593
7594 2006-11-08  Bruno Haible  <bruno@clisp.org>
7595
7596         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
7597         to 'yes' instead of 'cross-compiling'.
7598
7599 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
7600
7601         * lib/quotearg.h (quotearg_free): New decl.
7602         * lib/quotearg.c (quotearg_free): New function.
7603         (slot0, nslots, slotvec0, slotvec):
7604         Now file-scope so that quotearg_free can get at them.
7605
7606 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7607
7608         Sync from Automake.
7609         * build-aux/gnupload: Add missing 'gnu' to example URL.
7610         Report by Karl Berry.
7611
7612 2006-11-08  Bruno Haible  <bruno@clisp.org>
7613
7614         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
7615         Suggested by Paul Eggert.
7616
7617 2006-11-08  Jim Meyering  <jim@meyering.net>
7618
7619         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
7620         It's already included if !_LIBC.
7621         (fts_safe_changedir): Add a comment.
7622
7623 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7624
7625         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
7626         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
7627         Matthew Woehlke.
7628
7629         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
7630         definitions up, to avoid colliding with change below.
7631         (static_inline) [HAVE_INLINE]: New macro.
7632         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
7633         Provide extern decls when !HAVE_INLINE.  Do not define unless
7634         static_inline is defined, either by us or by xmalloc.c.  Use
7635         static_inline rather than static inline.
7636         (XCALLOC): Optimize sizeof(T) = 1 case.
7637         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
7638
7639 2006-11-07  Bruno Haible  <bruno@clisp.org>
7640
7641         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
7642         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
7643         AC_C_INLINE.
7644         * modules/xalloc (Files): Add m4/inline.m4.
7645
7646 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7647
7648         * README: Fix typo.
7649         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
7650         (Miscellanous Notes): ...from this.
7651
7652 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7653
7654         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7655         Mention that offsetof should be used instead of sizeof.
7656         From Bruno Haible.
7657
7658 2006-11-07  Bruno Haible  <bruno@clisp.org>
7659
7660         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
7661
7662 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7663
7664         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
7665         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
7666         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
7667         (gl_tree_add_before, gl_tree_add_after):
7668         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
7669         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
7670         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
7671         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
7672         (gl_linked_add_after, gl_linked_add_at): Likewise.
7673         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
7674         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
7675         (gl_tree_add_before, gl_tree_add_after): Likewise.
7676         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
7677         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
7678         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7679
7680 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7681
7682         * lib/gl_oset.h: Use C comment style, not C++ comment style.
7683
7684 2006-11-06  Bruno Haible  <bruno@clisp.org>
7685
7686         * m4/inline.m4: New file.
7687         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
7688         * modules/list (Files): Add m4/inline.m4.
7689         * modules/oset (Files): Likewise.
7690
7691 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7692
7693         * lib/idcache.c: Include <stddef.h>, for offsetof.
7694         (struct userid.name): Change from char * to a flexible array member.
7695         All uses changed.
7696         * modules/idcache (Depends-on): Add flexmember.
7697
7698         * MODULES.html.sh (Core language properties): New module flexmember.
7699         * modules/flexmember, m4/flexmember.m4: New files.
7700
7701         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
7702         inline functions that are identical with the old xnmalloc_inline,
7703         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
7704         that we can avoid some unnecessary integer multiplications and
7705         divisions in the common case where the element size is known at
7706         compile time.
7707         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
7708         needed.
7709         (xnboundedmalloc): Remove.
7710         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
7711         arguments, for consistency with rest of this header.
7712         (xcharalloc): Rewrite using XNMALLOC.
7713         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
7714         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
7715         versions have been moved to lib/xalloc.h and renamed to be the
7716         non-*_inline versions.
7717         (xmalloc, xrealloc): Implement without reference to the xnmalloc
7718         and xnrealloc functions, since those functions are now inline and
7719         now call us.
7720         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
7721         renaming described above.
7722         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
7723         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
7724         captures the dependency in AC_C_INLINE.
7725
7726         New module canonicalize-lgpl, proposed by Charles Wilson in
7727         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
7728         with a few small changes afterwards.
7729         * MODULES.html.sh (File system functions): New module
7730         canonicalize-lgpl.
7731         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
7732         and canonicalize_file_name.
7733         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
7734         * modules/canonicalize-lgpl: New files.
7735
7736 2006-11-05  Bruno Haible  <bruno@clisp.org>
7737
7738         * gnulib-tool (func_import, func_create_testdir): Create directories
7739         also for files in subdirectories of lib/.
7740
7741 2006-11-05  Bruno Haible  <bruno@clisp.org>
7742
7743         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
7744         ANSI C compliant.
7745
7746 2006-11-03  Bruno Haible  <bruno@clisp.org>
7747
7748         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
7749         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
7750         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
7751         (xnboundedmalloc): New inline function.
7752         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
7753         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
7754         xmalloc.
7755         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
7756         xmalloc.
7757         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
7758         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
7759         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
7760         xmalloc.
7761         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
7762         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
7763         xmalloc.
7764         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
7765         gl_tree_add_after): Use XMALLOC instead of xmalloc.
7766         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
7767         xmalloc.
7768         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
7769         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
7770         gl_tree_add_after): Use XMALLOC instead of xmalloc.
7771         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
7772         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
7773         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
7774         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
7775
7776 2006-11-03  Bruno Haible  <bruno@clisp.org>
7777
7778         * lib/c-ctype.h [C++]: Define functions without name mangling.
7779         * lib/fwriteerror.h [C++]: Likewise.
7780         * lib/gcd.h [C++]: Likewise.
7781         * lib/linebreak.h [C++]: Likewise.
7782
7783 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
7784
7785         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
7786         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
7787         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
7788         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
7789         Check for functions and headers just once.
7790         Check for declaration of canonicalize_file_name.
7791         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
7792
7793 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
7794
7795         * gnulib-tool (func_import): Fix typo in actioncmd.
7796
7797 2006-11-02  Bruno Haible  <bruno@clisp.org>
7798
7799         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
7800         newline sequence in the Makefile.am snippet as a space, like "make"
7801         does.
7802         Reported by Roger Persson <perrog@gmail.com>.
7803
7804 2006-11-01  Bruno Haible  <bruno@clisp.org>
7805
7806         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
7807         already declared in <string.h>.
7808         * lib/strcase.h (strncasecmp): Don't declare it if yes.
7809
7810 2006-11-01  Bruno Haible  <bruno@clisp.org>
7811
7812         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
7813         * lib/strcase.h: Include <string.h>.
7814         (strcasecmp): Define to rpl_strcasecmp here.
7815
7816 2006-11-01  Bruno Haible  <bruno@clisp.org>
7817
7818         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
7819
7820 2006-11-01  Eric Blake  <ebb9@byu.net>
7821
7822         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
7823
7824         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
7825
7826 2006-10-29  Bruno Haible  <bruno@clisp.org>
7827
7828         Make it compile in C++ mode.
7829         * lib/full-write.c (full_rw): Add a cast.
7830
7831 2006-11-01  Bruno Haible  <bruno@clisp.org>
7832
7833         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
7834         be POSIX compliant.
7835         Reported by Roger Persson <perrog@gmail.com>.
7836
7837 2006-11-01  Eric Blake  <ebb9@byu.net>
7838
7839         * lib/getopt_.h: Fix comments.
7840
7841 2006-10-31  Eric Blake  <ebb9@byu.net>
7842
7843         * modules/tmpdir (Depends-on): Add sys_stat.
7844         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
7845         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
7846         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
7847         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
7848         tempname.
7849
7850 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7851
7852         Avoid some C++ diagnostics reported by Bruno Haible.
7853         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
7854         xmalloc.
7855         (quotearg_alloc): Use xcharalloc rather than xmalloc.
7856         (struct slotvec): Move to top level.
7857         (quotearg_n_options): Rewrite to avoid xmalloc.
7858         * lib/xalloc.h (xcharalloc): New function.
7859         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
7860         [defined __cplusplus]: Add function template that provides result
7861         type propagation.  This part of the change is from Bruno Haible.
7862
7863 2006-10-29  Bruno Haible  <bruno@clisp.org>
7864
7865         Make it compile in C++ mode.
7866         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
7867         * lib/strnlen1.c (strnlen1): Cast memchr result.
7868         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
7869         * lib/clean-temp.c (string_equals, string_hash): Add casts.
7870         (create_temp_dir): Rename local variable 'template'.
7871         (compile_csharp_using_sscli): Add cast.
7872         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
7873         * lib/findprog.c (find_in_path): Likewise.
7874         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
7875         * lib/wait-process.c (register_slave_subprocess): Likewise.
7876
7877 2006-10-22  Bruno Haible  <bruno@clisp.org>
7878
7879         * modules/tsearch: New file.
7880         * lib/tsearch.h: New file.
7881         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
7882         * m4/tsearch.m4: New file.
7883         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
7884
7885 2006-10-29  Eric Blake  <ebb9@byu.net>
7886
7887         * lib/arcfour.c: Assume config.h.
7888         * lib/arctwo.c: Likewise.
7889         * lib/base64.c: Likewise.
7890         * lib/check-version.c: Likewise.
7891         * lib/crc.c: Likewise.
7892         * lib/des.c: Likewise.
7893         * lib/gc-gnulib.c: Likewise.
7894         * lib/gc-libgcrypt.c: Likewise.
7895         * lib/gc-pbkdf2-sha1.c: Likewise.
7896         * lib/getaddrinfo.c: Likewise.
7897         * lib/getdelim.c: Likewise.
7898         * lib/getline.c: Likewise.
7899         * lib/hmac-md5.c: Likewise.
7900         * lib/hmac-sha1.c: Likewise.
7901         * lib/iconvme.c: Likewise.
7902         * lib/md2.c: Likewise.
7903         * lib/md4.c: Likewise.
7904         * lib/memxor.c: Likewise.
7905         * lib/read-file.c: Likewise.
7906         * lib/readline.c: Likewise.
7907         * lib/rijndael-alg-fst.c: Likewise.
7908         * lib/rijndael-api-fst.c: Likewise.
7909         * lib/xgetdomainname.c: Likewise.
7910
7911 2006-10-28  Eric Blake  <ebb9@byu.net>
7912
7913         * lib/xstrndup.c: Assume config.h.
7914
7915 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7916
7917         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
7918         stat-macros.h is now for our own macros, whereas stat_h is for
7919         macros in the <sys/stat.h> name space.
7920         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
7921         (STAT_MACROS_H): Remove.
7922         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
7923         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
7924         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
7925         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
7926         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
7927         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
7928         Move these macros to ...
7929         * lib/stat_.h: here.  Don't include stat-macros.h.
7930         * lib/canonicalize.c: Don't include stat-macros.h.
7931         * lib/chown.c: Likewise.
7932         * lib/euidaccess.c: Likewise.
7933         * lib/file-type.c: Likewise.
7934         * lib/filemode.c: Likewise.
7935         * lib/glob.c: Likewise.
7936         * lib/isapipe.c: Likewise.
7937         * lib/lchown.c: Likewise.
7938         * lib/lstat.c: Likewise.
7939         * lib/mkdir-p.c: Likewise.
7940         * lib/rmdir.c: Likewise.
7941         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
7942         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
7943         unless mkdir isn't declared, to speed up 'configure'.
7944         Always create sys/stat.h, since it's unlikely any real sys/stat.h
7945         would define all the S_* symbols.
7946         * modules/canonicalize (Depends-on):
7947         Depend on sys_stat, not stat-macros.
7948         * modules/chown: Likewise.
7949         * modules/euidaccess: Likewise.
7950         * modules/filemode: Likewise.
7951         * modules/file-type: Likewise.
7952         * modules/glob: Likewise.
7953         * modules/isapipe: Likewise.
7954         * modules/lchown: Likewise.
7955         * modules/lstat: Likewise.
7956         * modules/mkancesdirs: Likewise.
7957         * modules/rmdir: Likewise.
7958         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
7959         * modules/modechange: Likewise.
7960         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
7961         (configure.ac): Remove gl_STAT_MACROS.
7962         * modules/sys_stat (Depends-on): Remove stat-macros.
7963
7964 2006-10-27  Bruno Haible  <bruno@clisp.org>
7965
7966         * m4/signed.m4: Remove file.
7967         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
7968         invocation.
7969         * modules/vasnprintf (Files): Remove m4/signed.m4.
7970
7971 2006-10-27  Bruno Haible  <bruno@clisp.org>
7972
7973         Update to GNU gettext 0.16.
7974         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
7975         m4/inttypes-h.m4, m4/signed.m4.
7976         * m4/gettext.m4: Update to GNU gettext 0.16.
7977         * m4/intl.m4: New file, from GNU gettext.
7978         * m4/intldir.m4: New file, from GNU gettext.
7979         * config/srclist.txt: Update
7980
7981 2006-10-27  Eric Blake  <ebb9@byu.net>
7982
7983         * MODULES.html.sh: Document tempname.
7984         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
7985         dependencies.
7986         (Files): Move lib/tempname.c...
7987         * modules/tempname: ...to this new module.
7988         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
7989         (gl_PREREQ_TEMPNAME): Move...
7990         * m4/tempname.m4: ...to this new file.
7991         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
7992         * modules/sys_stat (Depends-on): Add stat-macros.
7993         * lib/stat_.h (includes): Pick up stat macros.
7994         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
7995         if stat macros are broken.
7996         * lib/tempname.c (includes): No need to include "stat-macros.h".
7997         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
7998         (direxists, __path_search) [!_LIBC]: Don't compile these in
7999         gnulib; the tmpdir module covers that.
8000         * lib/tempname.h: New file.
8001
8002 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8003
8004         * COPYING: Explain how gnulib-tool converts licence headers.
8005         Almost all wording by Eric Blake.
8006
8007 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8008
8009         * lib/mbchar.h (is_basic_table): Make read-only.
8010         * lib/mbchar.c (is_basic_table): Likewise.
8011         Reported by John Darrington.
8012
8013 2006-10-25  Bruno Haible  <bruno@clisp.org>
8014
8015         * lib/progname.h (set_program_name): Undefine before defining.
8016
8017 2006-10-25  Bruno Haible  <bruno@clisp.org>
8018
8019         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
8020         false for non-gcc C++ compilers.
8021         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8022
8023 2006-10-24  Bruno Haible  <bruno@clisp.org>
8024
8025         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
8026         iconv implementations like Irix iconv.
8027
8028 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8029
8030         * modules/vararrays: New file.
8031         * m4/vararrays.m4: New file, taken from diffutils.
8032         * MODULES.html.sh: New module vararrays.
8033
8034 2006-10-24  Karl Berry  <karl@gnu.org>
8035
8036         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
8037         Don't call GNU Unix.
8038
8039 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8040
8041         * users.txt: Add Libtool.
8042
8043         Sync from Libtool:
8044
8045         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8046
8047         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
8048         to gnulib's policy of including config.h unconditionally.
8049
8050 2006-10-24  Bruno Haible  <bruno@clisp.org>
8051
8052         * modules/wcwidth (Files): Add m4/wint_t.m4.
8053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
8054         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
8055
8056 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8057
8058         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
8059         to pacify GCC with some -W flags enabled.  Problem reported by
8060         Bruno Haible.
8061
8062 2006-10-24  Jim Meyering  <jim@meyering.net>
8063
8064         * MODULES.html.sh: Remove uinttostr.  It's not a module.
8065         Reported by Karl Berry.
8066
8067 2006-10-23  Bruno Haible  <bruno@clisp.org>
8068
8069         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
8070
8071 2006-10-24  Bruno Haible  <bruno@clisp.org>
8072
8073         * lib/gl_list.h: Use C comment style, not C++ comment style.
8074
8075 2006-10-23  Eric Blake  <ebb9@byu.net>
8076
8077         * lib/getaddrinfo.c (includes): Add missing include.
8078
8079 2006-10-23  Bruno Haible  <bruno@clisp.org>
8080             Paul Eggert  <eggert@cs.ucla.edu>
8081
8082         Ability to rename obstack_free.
8083         * lib/obstack.h (__obstack_free): New macro. Declare instead of
8084         obstack_free.
8085         (obstack_free): Invoke the __obstack_free macro.
8086         * lib/obstack.c (obstack_free): Use __obstack_free macro.
8087
8088 2006-10-23  Bruno Haible  <bruno@clisp.org>
8089             Paul Eggert  <eggert@cs.ucla.edu>
8090
8091         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
8092         __argc, __argv from the declaration. (They are defined as macros on
8093         mingw.)
8094
8095 2006-10-22  Bruno Haible  <bruno@clisp.org>
8096
8097         * doc/gnulib-intro.texi: New file.
8098         * doc/gnulib.texi: Include it.
8099
8100 2006-10-21  Bruno Haible  <bruno@clisp.org>
8101
8102         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
8103         "Introduction", "Miscellanous Notes", "Particular Modules".
8104
8105 2006-10-21  Bruno Haible  <bruno@clisp.org>
8106
8107         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8108         Change mostlyclean-local rule to avoid sh syntax error from bash
8109         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
8110
8111 2006-10-23  Jim Meyering  <jim@meyering.net>
8112
8113         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
8114         in place of snprintf.
8115
8116         * modules/inttostr (Files): Add lib/uinttostr.c.
8117         * lib/uinttostr.c (inttostr): New file/function.
8118         * lib/inttostr.h (uinttostr): Declare.
8119         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
8120         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8121         Add uinttostr.
8122         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
8123
8124 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
8125
8126         * lib/canonicalize.c (ELOOP): Define if not already defined.
8127         Problem reported by Bruno Haible in
8128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
8129
8130 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
8131
8132         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
8133         Problem reported by Perry Smith and Ville Laurikari.
8134
8135         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
8136         uses.
8137
8138 2006-10-19  Bruno Haible  <bruno@clisp.org>
8139
8140         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
8141         for mingw.
8142
8143 2006-10-19  Bruno Haible  <bruno@clisp.org>
8144
8145         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
8146         Needed for mingw.
8147
8148 2006-10-19  Bruno Haible  <bruno@clisp.org>
8149
8150         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
8151
8152 2006-10-19  Bruno Haible  <bruno@clisp.org>
8153
8154         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
8155         it.
8156
8157 2006-10-19  Bruno Haible  <bruno@clisp.org>
8158
8159         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
8160         invocation.
8161
8162 2006-10-19  Bruno Haible  <bruno@clisp.org>
8163
8164         * gnulib-tool (func_create_testdir): Don't include ftruncate and
8165         mountlist by default.
8166
8167 2006-10-16  Bruno Haible  <bruno@clisp.org>
8168
8169         * lib/c-strstr.c: Include c-strstr.h.
8170
8171 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
8172
8173         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
8174         in a slash.
8175
8176 2006-10-18  Bruno Haible  <bruno@clisp.org>
8177
8178         * lib/lock.h [C++]: Wrap definitions in extern "C".
8179
8180 2006-10-18  Bruno Haible  <bruno@clisp.org>
8181
8182         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
8183         gl_LIBOBJS list.
8184
8185 2006-10-18  Bruno Haible  <bruno@clisp.org>
8186
8187         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
8188
8189 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8190
8191         * lib/xstrtol.h: Include gettext.h.
8192         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
8193         Problem reported by Eric Blake.
8194         * modules/xstrtol (Depends-on): Add gettext-h.
8195
8196 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
8197
8198         * lib/strftime.c (advance): New macro.
8199         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
8200         incomplete type, so you can't add 0 to it.  Problem and patch
8201         reported by Eelco Dolstra for dietlibc.
8202
8203 2006-10-18  Jim Meyering  <jim@meyering.net>
8204
8205         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
8206         type for a local, and rename it: s/up/user_proc/.
8207
8208 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8209
8210         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
8211         READ_UTMP_USER_PROCESS.
8212         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
8213
8214 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8215
8216         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
8217         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
8218
8219 2006-10-17  Eric Blake  <ebb9@byu.net>
8220
8221         * lib/sigprocmask.c (sigprocmask): Fix typo.
8222
8223         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
8224
8225         * modules/clean-temp (Makefile.am): Don't add to make output...
8226         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
8227         config.h.
8228
8229 2006-10-17  Bruno Haible  <bruno@clisp.org>
8230
8231         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
8232         differently if DEFAULT_TEXT_DOMAIN is set.
8233
8234 2006-10-16  Bruno Haible  <bruno@clisp.org>
8235
8236         * lib/clean-temp.c: Include fwriteerror.h.
8237
8238 2006-10-16  Bruno Haible  <bruno@clisp.org>
8239
8240         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
8241
8242 2006-10-16  Bruno Haible  <bruno@clisp.org>
8243
8244         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
8245         * lib/sigprocmask.h: Include <sys/types.h>.
8246         (sigset_t): Use the system's definition if present.
8247
8248 2006-10-17  Eric Blake  <ebb9@byu.net>
8249
8250         * lib/xvasprintf.c (includes): Assume config.h.
8251         * lib/xasprintf.c (includes): Likewise.
8252
8253 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8254
8255         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
8256         at least as wide as intmax_t.
8257
8258 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
8259
8260         (Imported from Automake.)
8261         * build-aux/gnupload: Update to version 1.1 of directive file.
8262
8263 2006-10-16  Eric Blake  <ebb9@byu.net>
8264
8265         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
8266         match Automake 1.10a.
8267
8268 2006-10-14  Bruno Haible  <bruno@clisp.org>
8269
8270         * modules/sigprocmask: New file.
8271         * lib/sigprocmask.h: New file.
8272         * lib/sigprocmask.c: New file.
8273         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
8274         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
8275         request sigprocmask.o.
8276         (gl_PREREQ_SIGPROCMASK): New macro.
8277         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
8278         (Depends-on): Add sigprocmask.
8279         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
8280         gt_SIGNALBLOCKING. Test for 'raise' only once.
8281         * lib/fatal-signal.c: Include sigprocmask.h.
8282         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
8283         unblock_fatal_signals): Define always.
8284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8285         sigprocmask.
8286
8287 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8288
8289         Sync from Automake.
8290         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
8291         which incorrectly sets the mode of an existing destination
8292         directory.  In some cases the unpatched install-sh could do the
8293         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
8294         system.  We hope this is rare in practice, but it's clearly worth
8295         fixing.  Problem reported by Alex Unleashed in
8296         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
8297         Also, don't bother to check for -m bugs unless we're using -m;
8298         suggested by Stepan Kasal.
8299
8300 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8301
8302         Sync from Automake.
8303         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
8304         `-c' flag, so they appear at the same position as in %FASTDEP%
8305         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
8306         which ignores unknown options only after the first non-option.
8307         Bug report against M4 by Nelson H. F. Beebe.
8308
8309 2006-10-13  Jim Meyering  <jim@meyering.net>
8310
8311         Fix a bug in yesterday's change.
8312         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
8313         p->fts_statp->st_dev would be used uninitialized.
8314         Ensures that we always call fts_stat on the very first entry.
8315         Miklos Szeredi reported that find -xdev stopped working.
8316
8317 2006-10-12  Bruno Haible  <bruno@clisp.org>
8318
8319         * gnulib-tool (func_get_automake_snippet): Append an automatically
8320         computed EXTRA_DIST augmentation.
8321         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
8322         * modules/alloca-opt (Makefile.am): Likewise.
8323         * modules/allocsa (Makefile.am): Likewise.
8324         * modules/arcfour (Makefile.am): Likewise.
8325         * modules/arctwo (Makefile.am): Likewise.
8326         * modules/argmatch (Makefile.am): Likewise.
8327         * modules/argz (Makefile.am): Likewise.
8328         * modules/atexit (Makefile.am): Likewise.
8329         * modules/backupfile (Makefile.am): Likewise.
8330         * modules/byteswap (Makefile.am): Likewise.
8331         * modules/c-strtod (Makefile.am): Likewise.
8332         * modules/c-strtold (Makefile.am): Likewise.
8333         * modules/calloc (Makefile.am): Likewise.
8334         * modules/canon-host (Makefile.am): Likewise.
8335         * modules/canonicalize (Makefile.am): Likewise.
8336         * modules/chdir-long (Makefile.am): Likewise.
8337         * modules/chdir-safer (Makefile.am): Likewise.
8338         * modules/check-version (Makefile.am): Likewise.
8339         * modules/chown (Makefile.am): Likewise.
8340         * modules/cloexec (Makefile.am): Likewise.
8341         * modules/close-stream (Makefile.am): Likewise.
8342         * modules/closeout (Makefile.am): Likewise.
8343         * modules/crc (Makefile.am): Likewise.
8344         * modules/csharpexec (Makefile.am): Likewise.
8345         * modules/cycle-check (Makefile.am): Likewise.
8346         * modules/des (Makefile.am): Likewise.
8347         * modules/dev-ino (Makefile.am): Likewise.
8348         * modules/dirfd (Makefile.am): Likewise.
8349         * modules/dirname (Makefile.am): Likewise.
8350         * modules/dup2 (Makefile.am): Likewise.
8351         * modules/eealloc (Makefile.am): Likewise.
8352         * modules/error (Makefile.am): Likewise.
8353         * modules/euidaccess (Makefile.am): Likewise.
8354         * modules/exclude (Makefile.am): Likewise.
8355         * modules/exitfail (Makefile.am): Likewise.
8356         * modules/fcntl-safer (Makefile.am): Likewise.
8357         * modules/fcntl (Makefile.am): Likewise.
8358         * modules/file-type (Makefile.am): Likewise.
8359         * modules/fileblocks (Makefile.am): Likewise.
8360         * modules/filemode (Makefile.am): Likewise.
8361         * modules/filenamecat (Makefile.am): Likewise.
8362         * modules/fnmatch (Makefile.am): Likewise.
8363         * modules/fopen-safer (Makefile.am): Likewise.
8364         * modules/fpending (Makefile.am): Likewise.
8365         * modules/fprintftime (Makefile.am): Likewise.
8366         * modules/free (Makefile.am): Likewise.
8367         * modules/fsusage (Makefile.am): Likewise.
8368         * modules/ftruncate (Makefile.am): Likewise.
8369         * modules/fts (Makefile.am): Likewise.
8370         * modules/gc-arcfour (Makefile.am): Likewise.
8371         * modules/gc-des (Makefile.am): Likewise.
8372         * modules/gc-hmac-md5 (Makefile.am): Likewise.
8373         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
8374         * modules/gc-md4 (Makefile.am): Likewise.
8375         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
8376         * modules/gc-sha1 (Makefile.am): Likewise.
8377         * modules/gc (Makefile.am): Likewise.
8378         * modules/getaddrinfo (Makefile.am): Likewise.
8379         * modules/getcwd (Makefile.am): Likewise.
8380         * modules/getdelim (Makefile.am): Likewise.
8381         * modules/getdomainname (Makefile.am): Likewise.
8382         * modules/getgroups (Makefile.am): Likewise.
8383         * modules/gethostname (Makefile.am): Likewise.
8384         * modules/gethrxtime (Makefile.am): Likewise.
8385         * modules/getline (Makefile.am): Likewise.
8386         * modules/getloadavg (Makefile.am): Likewise.
8387         * modules/getlogin_r (Makefile.am): Likewise.
8388         * modules/getndelim2 (Makefile.am): Likewise.
8389         * modules/getopt (Makefile.am): Likewise.
8390         * modules/getpagesize (Makefile.am): Likewise.
8391         * modules/getpass-gnu (Makefile.am): Likewise.
8392         * modules/getpass (Makefile.am): Likewise.
8393         * modules/getsubopt (Makefile.am): Likewise.
8394         * modules/gettime (Makefile.am): Likewise.
8395         * modules/gettimeofday (Makefile.am): Likewise.
8396         * modules/getugroups (Makefile.am): Likewise.
8397         * modules/getusershell (Makefile.am): Likewise.
8398         * modules/glob (Makefile.am): Likewise.
8399         * modules/group-member (Makefile.am): Likewise.
8400         * modules/hard-locale (Makefile.am): Likewise.
8401         * modules/hash (Makefile.am): Likewise.
8402         * modules/hmac-md5 (Makefile.am): Likewise.
8403         * modules/hmac-sha1 (Makefile.am): Likewise.
8404         * modules/human (Makefile.am): Likewise.
8405         * modules/idcache (Makefile.am): Likewise.
8406         * modules/imaxabs (Makefile.am): Likewise.
8407         * modules/imaxdiv (Makefile.am): Likewise.
8408         * modules/inet_ntop (Makefile.am): Likewise.
8409         * modules/inet_pton (Makefile.am): Likewise.
8410         * modules/intprops (Makefile.am): Likewise.
8411         * modules/inttostr (Makefile.am): Likewise.
8412         * modules/inttypes (Makefile.am): Likewise.
8413         * modules/isapipe (Makefile.am): Likewise.
8414         * modules/javaversion (Makefile.am): Likewise.
8415         * modules/lchmod (Makefile.am): Likewise.
8416         * modules/lchown (Makefile.am): Likewise.
8417         * modules/localcharset (Makefile.am): Likewise.
8418         * modules/long-options (Makefile.am): Likewise.
8419         * modules/lstat (Makefile.am): Likewise.
8420         * modules/malloc (Makefile.am): Likewise.
8421         * modules/mathl (Makefile.am): Likewise.
8422         * modules/mbchar (Makefile.am): Likewise.
8423         * modules/md2 (Makefile.am): Likewise.
8424         * modules/md4 (Makefile.am): Likewise.
8425         * modules/md5 (Makefile.am): Likewise.
8426         * modules/memcasecmp (Makefile.am): Likewise.
8427         * modules/memchr (Makefile.am): Likewise.
8428         * modules/memcmp (Makefile.am): Likewise.
8429         * modules/memcoll (Makefile.am): Likewise.
8430         * modules/memcpy (Makefile.am): Likewise.
8431         * modules/memmem (Makefile.am): Likewise.
8432         * modules/memmove (Makefile.am): Likewise.
8433         * modules/mempcpy (Makefile.am): Likewise.
8434         * modules/memrchr (Makefile.am): Likewise.
8435         * modules/memset (Makefile.am): Likewise.
8436         * modules/memxor (Makefile.am): Likewise.
8437         * modules/mkancesdirs (Makefile.am): Likewise.
8438         * modules/mkdir-p (Makefile.am): Likewise.
8439         * modules/mkdir (Makefile.am): Likewise.
8440         * modules/mkdtemp (Makefile.am): Likewise.
8441         * modules/mkstemp (Makefile.am): Likewise.
8442         * modules/mktime (Makefile.am): Likewise.
8443         * modules/modechange (Makefile.am): Likewise.
8444         * modules/mountlist (Makefile.am): Likewise.
8445         * modules/nanosleep (Makefile.am): Likewise.
8446         * modules/obstack (Makefile.am): Likewise.
8447         * modules/openat (Makefile.am): Likewise.
8448         * modules/pagealign_alloc (Makefile.am): Likewise.
8449         * modules/pathmax (Makefile.am): Likewise.
8450         * modules/physmem (Makefile.am): Likewise.
8451         * modules/poll (Makefile.am): Likewise.
8452         * modules/posixtm (Makefile.am): Likewise.
8453         * modules/posixver (Makefile.am): Likewise.
8454         * modules/putenv (Makefile.am): Likewise.
8455         * modules/quote (Makefile.am): Likewise.
8456         * modules/quotearg (Makefile.am): Likewise.
8457         * modules/raise (Makefile.am): Likewise.
8458         * modules/read-file (Makefile.am): Likewise.
8459         * modules/readline (Makefile.am): Likewise.
8460         * modules/readlink (Makefile.am): Likewise.
8461         * modules/readtokens (Makefile.am): Likewise.
8462         * modules/readutmp (Makefile.am): Likewise.
8463         * modules/realloc (Makefile.am): Likewise.
8464         * modules/regex (Makefile.am): Likewise.
8465         * modules/rename-dest-slash (Makefile.am): Likewise.
8466         * modules/rename (Makefile.am): Likewise.
8467         * modules/rijndael (Makefile.am): Likewise.
8468         * modules/rmdir (Makefile.am): Likewise.
8469         * modules/rpmatch (Makefile.am): Likewise.
8470         * modules/safe-read (Makefile.am): Likewise.
8471         * modules/safe-write (Makefile.am): Likewise.
8472         * modules/same-inode (Makefile.am): Likewise.
8473         * modules/same (Makefile.am): Likewise.
8474         * modules/save-cwd (Makefile.am): Likewise.
8475         * modules/savedir (Makefile.am): Likewise.
8476         * modules/setenv (Makefile.am): Likewise.
8477         * modules/settime (Makefile.am): Likewise.
8478         * modules/sha1 (Makefile.am): Likewise.
8479         * modules/sig2str (Makefile.am): Likewise.
8480         * modules/snprintf (Makefile.am): Likewise.
8481         * modules/stat-macros (Makefile.am): Likewise.
8482         * modules/stat-time (Makefile.am): Likewise.
8483         * modules/stdbool (Makefile.am): Likewise.
8484         * modules/stdint (Makefile.am): Likewise.
8485         * modules/stdlib-safer (Makefile.am): Likewise.
8486         * modules/stpcpy (Makefile.am): Likewise.
8487         * modules/stpncpy (Makefile.am): Likewise.
8488         * modules/strcase (Makefile.am): Likewise.
8489         * modules/strcasestr (Makefile.am): Likewise.
8490         * modules/strchrnul (Makefile.am): Likewise.
8491         * modules/strcspn (Makefile.am): Likewise.
8492         * modules/strdup (Makefile.am): Likewise.
8493         * modules/strerror (Makefile.am): Likewise.
8494         * modules/strftime (Makefile.am): Likewise.
8495         * modules/strndup (Makefile.am): Likewise.
8496         * modules/strnlen (Makefile.am): Likewise.
8497         * modules/strpbrk (Makefile.am): Likewise.
8498         * modules/strsep (Makefile.am): Likewise.
8499         * modules/strstr (Makefile.am): Likewise.
8500         * modules/strtod (Makefile.am): Likewise.
8501         * modules/strtoimax (Makefile.am): Likewise.
8502         * modules/strtok_r (Makefile.am): Likewise.
8503         * modules/strtol (Makefile.am): Likewise.
8504         * modules/strtoll (Makefile.am): Likewise.
8505         * modules/strtoul (Makefile.am): Likewise.
8506         * modules/strtoull (Makefile.am): Likewise.
8507         * modules/strtoumax (Makefile.am): Likewise.
8508         * modules/strverscmp (Makefile.am): Likewise.
8509         * modules/sys_socket (Makefile.am): Likewise.
8510         * modules/sys_stat (Makefile.am): Likewise.
8511         * modules/sysexits (Makefile.am): Likewise.
8512         * modules/time_r (Makefile.am): Likewise.
8513         * modules/timegm (Makefile.am): Likewise.
8514         * modules/timespec (Makefile.am): Likewise.
8515         * modules/tmpfile-safer (Makefile.am): Likewise.
8516         * modules/trim (Makefile.am): Likewise.
8517         * modules/unistd-safer (Makefile.am): Likewise.
8518         * modules/unlinkdir (Makefile.am): Likewise.
8519         * modules/unlocked-io (Makefile.am): Likewise.
8520         * modules/userspec (Makefile.am): Likewise.
8521         * modules/utime (Makefile.am): Likewise.
8522         * modules/utimecmp (Makefile.am): Likewise.
8523         * modules/utimens (Makefile.am): Likewise.
8524         * modules/vasnprintf (Makefile.am): Likewise.
8525         * modules/vasprintf (Makefile.am): Likewise.
8526         * modules/vsnprintf (Makefile.am): Likewise.
8527         * modules/xalloc (Makefile.am): Likewise.
8528         * modules/xgetcwd (Makefile.am): Likewise.
8529         * modules/xnanosleep (Makefile.am): Likewise.
8530         * modules/xreadlink (Makefile.am): Likewise.
8531         * modules/xstrtod (Makefile.am): Likewise.
8532         * modules/xstrtol (Makefile.am): Likewise.
8533         * modules/xstrtold (Makefile.am): Likewise.
8534         * modules/yesno (Makefile.am): Likewise.
8535         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
8536
8537 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8538
8539         * modules/error (Makefile.am): Distribute files through
8540         EXTRA_DIST, not lib_SOURCES.
8541
8542 2006-10-12  Eric Blake  <ebb9@byu.net>
8543
8544         * modules/error (Makefile.am): Distribute files in /lib.
8545         * modules/obstack (Makefile.am): Likewise.
8546
8547 2006-10-12  Bruno Haible  <bruno@clisp.org>
8548
8549         * modules/acl (Makefile.am): Distribute all files in lib/ through
8550         EXTRA_DIST.
8551         * modules/arcfour (Makefile.am): Likewise.
8552         * modules/arctwo (Makefile.am): Likewise.
8553         * modules/argmatch (Makefile.am): Likewise.
8554         * modules/argz (Makefile.am): Likewise.
8555         * modules/atexit (Makefile.am): Likewise.
8556         * modules/backupfile (Makefile.am): Likewise.
8557         * modules/c-strtod (Makefile.am): Likewise.
8558         * modules/c-strtold (Makefile.am): Likewise.
8559         * modules/calloc (Makefile.am): Likewise.
8560         * modules/canon-host (Makefile.am): Likewise.
8561         * modules/canonicalize (Makefile.am): Likewise.
8562         * modules/chdir-long (Makefile.am): Likewise.
8563         * modules/chdir-safer (Makefile.am): Likewise.
8564         * modules/check-version (Makefile.am): Likewise.
8565         * modules/chown (Makefile.am): Likewise.
8566         * modules/cloexec (Makefile.am): Likewise.
8567         * modules/close-stream (Makefile.am): Likewise.
8568         * modules/closeout (Makefile.am): Likewise.
8569         * modules/crc (Makefile.am): Likewise.
8570         * modules/cycle-check (Makefile.am): Likewise.
8571         * modules/des (Makefile.am): Likewise.
8572         * modules/dirfd (Makefile.am): Likewise.
8573         * modules/dirname (Makefile.am): Likewise.
8574         * modules/dup2 (Makefile.am): Likewise.
8575         * modules/euidaccess (Makefile.am): Likewise.
8576         * modules/exclude (Makefile.am): Likewise.
8577         * modules/exitfail (Makefile.am): Likewise.
8578         * modules/fcntl-safer (Makefile.am): Likewise.
8579         * modules/file-type (Makefile.am): Likewise.
8580         * modules/fileblocks (Makefile.am): Likewise.
8581         * modules/filemode (Makefile.am): Likewise.
8582         * modules/filenamecat (Makefile.am): Likewise.
8583         * modules/fnmatch (Makefile.am): Likewise.
8584         * modules/fopen-safer (Makefile.am): Likewise.
8585         * modules/fpending (Makefile.am): Likewise.
8586         * modules/fprintftime (Makefile.am): Likewise.
8587         * modules/free (Makefile.am): Likewise.
8588         * modules/fsusage (Makefile.am): Likewise.
8589         * modules/ftruncate (Makefile.am): Likewise.
8590         * modules/fts (Makefile.am): Likewise.
8591         * modules/gc (Makefile.am): Likewise.
8592         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
8593         * modules/getaddrinfo (Makefile.am): Likewise.
8594         * modules/getcwd (Makefile.am): Likewise.
8595         * modules/getdelim (Makefile.am): Likewise.
8596         * modules/getdomainname (Makefile.am): Likewise.
8597         * modules/getgroups (Makefile.am): Likewise.
8598         * modules/gethostname (Makefile.am): Likewise.
8599         * modules/gethrxtime (Makefile.am): Likewise.
8600         * modules/getline (Makefile.am): Likewise.
8601         * modules/getloadavg (Makefile.am): Likewise.
8602         * modules/getlogin_r (Makefile.am): Likewise.
8603         * modules/getopt (Makefile.am): Likewise.
8604         * modules/getpass (Makefile.am): Likewise.
8605         * modules/getpass-gnu (Makefile.am): Likewise.
8606         * modules/getsubopt (Makefile.am): Likewise.
8607         * modules/gettime (Makefile.am): Likewise.
8608         * modules/gettimeofday (Makefile.am): Likewise.
8609         * modules/getugroups (Makefile.am): Likewise.
8610         * modules/getusershell (Makefile.am): Likewise.
8611         * modules/glob (Makefile.am): Likewise.
8612         * modules/group-member (Makefile.am): Likewise.
8613         * modules/hard-locale (Makefile.am): Likewise.
8614         * modules/hash (Makefile.am): Likewise.
8615         * modules/hmac-md5 (Makefile.am): Likewise.
8616         * modules/hmac-sha1 (Makefile.am): Likewise.
8617         * modules/human (Makefile.am): Likewise.
8618         * modules/idcache (Makefile.am): Likewise.
8619         * modules/imaxabs (Makefile.am): Likewise.
8620         * modules/imaxdiv (Makefile.am): Likewise.
8621         * modules/inet_ntop (Makefile.am): Likewise.
8622         * modules/inet_pton (Makefile.am): Likewise.
8623         * modules/inttostr (Makefile.am): Likewise.
8624         * modules/isapipe (Makefile.am): Likewise.
8625         * modules/lchown (Makefile.am): Likewise.
8626         * modules/long-options (Makefile.am): Likewise.
8627         * modules/lstat (Makefile.am): Likewise.
8628         * modules/malloc (Makefile.am): Likewise.
8629         * modules/mathl (Makefile.am): Likewise.
8630         * modules/mbchar (Makefile.am): Likewise.
8631         * modules/md2 (Makefile.am): Likewise.
8632         * modules/md4 (Makefile.am): Likewise.
8633         * modules/md5 (Makefile.am): Likewise.
8634         * modules/memcasecmp (Makefile.am): Likewise.
8635         * modules/memchr (Makefile.am): Likewise.
8636         * modules/memcmp (Makefile.am): Likewise.
8637         * modules/memcoll (Makefile.am): Likewise.
8638         * modules/memcpy (Makefile.am): Likewise.
8639         * modules/memmem (Makefile.am): Likewise.
8640         * modules/memmove (Makefile.am): Likewise.
8641         * modules/mempcpy (Makefile.am): Likewise.
8642         * modules/memrchr (Makefile.am): Likewise.
8643         * modules/memset (Makefile.am): Likewise.
8644         * modules/memxor (Makefile.am): Likewise.
8645         * modules/mkancesdirs (Makefile.am): Likewise.
8646         * modules/mkdir (Makefile.am): Likewise.
8647         * modules/mkdir-p (Makefile.am): Likewise.
8648         * modules/mkdtemp (Makefile.am): Likewise.
8649         * modules/mkstemp (Makefile.am): Likewise.
8650         * modules/mktime (Makefile.am): Likewise.
8651         * modules/modechange (Makefile.am): Likewise.
8652         * modules/mountlist (Makefile.am): Likewise.
8653         * modules/nanosleep (Makefile.am): Likewise.
8654         * modules/openat (Makefile.am): Likewise.
8655         * modules/pagealign_alloc (Makefile.am): Likewise.
8656         * modules/physmem (Makefile.am): Likewise.
8657         * modules/poll (Makefile.am): Likewise.
8658         * modules/posixtm (Makefile.am): Likewise.
8659         * modules/posixver (Makefile.am): Likewise.
8660         * modules/putenv (Makefile.am): Likewise.
8661         * modules/quote (Makefile.am): Likewise.
8662         * modules/quotearg (Makefile.am): Likewise.
8663         * modules/raise (Makefile.am): Likewise.
8664         * modules/read-file (Makefile.am): Likewise.
8665         * modules/readline (Makefile.am): Likewise.
8666         * modules/readlink (Makefile.am): Likewise.
8667         * modules/readtokens (Makefile.am): Likewise.
8668         * modules/readutmp (Makefile.am): Likewise.
8669         * modules/realloc (Makefile.am): Likewise.
8670         * modules/regex (Makefile.am): Likewise.
8671         * modules/rename (Makefile.am): Likewise.
8672         * modules/rename-dest-slash (Makefile.am): Likewise.
8673         * modules/rijndael (Makefile.am): Likewise.
8674         * modules/rmdir (Makefile.am): Likewise.
8675         * modules/rpmatch (Makefile.am): Likewise.
8676         * modules/safe-read (Makefile.am): Likewise.
8677         * modules/safe-write (Makefile.am): Likewise.
8678         * modules/same (Makefile.am): Likewise.
8679         * modules/save-cwd (Makefile.am): Likewise.
8680         * modules/savedir (Makefile.am): Likewise.
8681         * modules/setenv (Makefile.am): Likewise.
8682         * modules/settime (Makefile.am): Likewise.
8683         * modules/sha1 (Makefile.am): Likewise.
8684         * modules/sig2str (Makefile.am): Likewise.
8685         * modules/snprintf (Makefile.am): Likewise.
8686         * modules/stdlib-safer (Makefile.am): Likewise.
8687         * modules/stpcpy (Makefile.am): Likewise.
8688         * modules/stpncpy (Makefile.am): Likewise.
8689         * modules/strcase (Makefile.am): Likewise.
8690         * modules/strcasestr (Makefile.am): Likewise.
8691         * modules/strchrnul (Makefile.am): Likewise.
8692         * modules/strcspn (Makefile.am): Likewise.
8693         * modules/strdup (Makefile.am): Likewise.
8694         * modules/strerror (Makefile.am): Likewise.
8695         * modules/strftime (Makefile.am): Likewise.
8696         * modules/strndup (Makefile.am): Likewise.
8697         * modules/strnlen (Makefile.am): Likewise.
8698         * modules/strpbrk (Makefile.am): Likewise.
8699         * modules/strsep (Makefile.am): Likewise.
8700         * modules/strstr (Makefile.am): Likewise.
8701         * modules/strtod (Makefile.am): Likewise.
8702         * modules/strtoimax (Makefile.am): Likewise.
8703         * modules/strtok_r (Makefile.am): Likewise.
8704         * modules/strtol (Makefile.am): Likewise.
8705         * modules/strtoll (Makefile.am): Likewise.
8706         * modules/strtoul (Makefile.am): Likewise.
8707         * modules/strtoull (Makefile.am): Likewise.
8708         * modules/strtoumax (Makefile.am): Likewise.
8709         * modules/strverscmp (Makefile.am): Likewise.
8710         * modules/time_r (Makefile.am): Likewise.
8711         * modules/timegm (Makefile.am): Likewise.
8712         * modules/tmpfile-safer (Makefile.am): Likewise.
8713         * modules/unistd-safer (Makefile.am): Likewise.
8714         * modules/unlinkdir (Makefile.am): Likewise.
8715         * modules/userspec (Makefile.am): Likewise.
8716         * modules/utime (Makefile.am): Likewise.
8717         * modules/utimecmp (Makefile.am): Likewise.
8718         * modules/utimens (Makefile.am): Likewise.
8719         * modules/vasnprintf (Makefile.am): Likewise.
8720         * modules/vasprintf (Makefile.am): Likewise.
8721         * modules/vsnprintf (Makefile.am): Likewise.
8722         * modules/xalloc (Makefile.am): Likewise.
8723         * modules/xgetcwd (Makefile.am): Likewise.
8724         * modules/xnanosleep (Makefile.am): Likewise.
8725         * modules/xreadlink (Makefile.am): Likewise.
8726         * modules/xstrtod (Makefile.am): Likewise.
8727         * modules/xstrtol (Makefile.am): Likewise.
8728         * modules/xstrtold (Makefile.am): Likewise.
8729         * modules/yesno (Makefile.am): Likewise.
8730
8731 2006-10-12  Jim Meyering  <jim@meyering.net>
8732
8733         * m4/getloadavg.m4: Revert the change below.
8734
8735         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
8736         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
8737         fail with a symlink, which is what coreutils' ./bootstrap now
8738         creates by default.
8739
8740 2006-10-12  Bruno Haible  <bruno@clisp.org>
8741
8742         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
8743         mingw.
8744         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
8745         MSVC and mingw explicitly.
8746
8747 2006-10-11  Simon Josefsson  <jas@extundo.com>
8748             Bruno Haible  <bruno@clisp.org>
8749
8750         Add support for multiple gnulib-tool invocations in the scope of a
8751         single configure.ac file.
8752         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
8753         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
8754         with the same contents as the _LIBADD variable.
8755         (func_emit_initmacro_start, func_emit_initmacro_end,
8756         func_emit_initmacro_done): New functions.
8757         (func_import, func_create_testdir): Invoke them. Allow the identifiers
8758         gl_LIBOBJS and gl_LTLIBOBJS.
8759
8760 2006-10-11  Bruno Haible  <bruno@clisp.org>
8761
8762         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
8763         (func_create_testdir): Don't create po/Makefile.am, don't invoke
8764         autoreconf. Instead, invoke autopoint explicitly but move back the
8765         *.m4 files from gnulib.
8766
8767 2006-10-11  Bruno Haible  <bruno@clisp.org>
8768
8769         * gnulib-tool (func_usage): Make module names after --create-testdir
8770         optional.
8771         (func_create_testdir): If no module was specified, use nearly all
8772         modules.
8773
8774 2006-10-12  Jim Meyering  <jim@meyering.net>
8775
8776         Big performance improvement for fts-based tools that use FTS_NOSTAT.
8777         Avoid spurious inode-mismatch problems on non-POSIX file systems.
8778         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
8779         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
8780         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
8781         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
8782         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
8783         (fts_set_stat_required): New function.
8784         (fts_open): Defer the calls to fts_stat, if possible or requested.
8785         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
8786         into fts_stat itself.
8787         (fts_read): Perform any required (deferred) fts_stat call.
8788         (fts_build): Likewise, for the directory we're about to open and read.
8789         In the readdir loop, carefully decide whether each entry will require
8790         an eventual call to fts_stat, using dirent.d_type info if available.
8791         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
8792         a command line argument into this function.  Update all callers.
8793         Map a return value of FTS_DOT to FTS_D for a command line argument.
8794         * modules/fts (Depends-on): Add d-type.  Alphabetize.
8795         Thanks to Miklos Szeredi for his tenacity and for the initial
8796         bug report about "find" failing on a FUSE-based file system.
8797
8798         * lib/fts.c (fts_open): Use consistent indentation.
8799
8800 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8801
8802         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
8803         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
8804         reported by Jim Meyering.  All uses of cache variables renamed
8805         to match Autoconf's.
8806         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
8807         the other one.
8808
8809         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
8810         Fix misspelling in diagnostic.
8811
8812 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8813
8814         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
8815         defined.  Problem reported by Matthew Woehlke.
8816
8817         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
8818         Add support for Tandem NonStop R series.
8819         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
8820         Use new macro.
8821
8822         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
8823         (has_trailing_slash): Omit size arg; all callers changed.
8824         Omit 'inline', since it doesn't help performance and we'd
8825         need to configure it.
8826         Don't count //, ///, etc. as having a trailing slash.
8827         As a side effect, this removes a C99ism reported by Matthew Woehlke.
8828         (rpl_rename_dest_slash): On failure, use rename's errno rather
8829         than (in some cases) an incorrect or junk errno.
8830         Simplify code by removing need to compute length; this does
8831         cause it to make two passes instead of one over the file name,
8832         but it's worth it.
8833
8834         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
8835         change, since Autoconf's version may no longer be appropriate now
8836         that we are using CVS Autoconf's version.  Add support for Tandem.
8837
8838 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8839             Bruno Haible  <bruno@clisp.org>
8840
8841         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
8842         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
8843         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
8844         gl_AC_TYPE_LONG_LONG.
8845
8846         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
8847         instead of HAVE_LONG_LONG.
8848         * lib/printf-args.c (printf_fetchargs): Likewise.
8849         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8850         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8851         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
8852         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
8853         gl_AC_TYPE_LONG_LONG.
8854
8855 2006-10-11  Bruno Haible  <bruno@clisp.org>
8856
8857         * m4/longlong.m4: Add comments.
8858         * m4/ulonglong.m4: Likewise.
8859
8860 2006-10-10  Bruno Haible  <bruno@clisp.org>
8861
8862         Make it possible to #define stpcpy, strdup to aliases.
8863         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
8864         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
8865
8866 2006-10-10  Bruno Haible  <bruno@clisp.org>
8867
8868         Make it possible to #define gcd to an alias.
8869         * lib/gcd.c: Include config.h.
8870
8871 2006-10-10  Bruno Haible  <bruno@clisp.org>
8872
8873         Make it possible to #define c_isascii to an alias.
8874         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
8875         defined. Undefine the macros before defining them, to avoid gcc
8876         warnings.
8877         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
8878         define NO_C_CTYPE_MACROS early.
8879
8880 2006-10-10  Bruno Haible  <bruno@clisp.org>
8881
8882         Make it possible to #define set_program_name to an alias.
8883         * lib/progname.c: Don't undefine set_program_name; instead, undefine
8884         ENABLE_RELOCATABLE early.
8885
8886 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8887
8888         Port to Tandem NSK OSS, which has 64-bit signed int but at most
8889         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
8890         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
8891         More generally, don't assume that 64-bit signed int is available
8892         if unsigned int is, and vice versa.
8893         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
8894         unsigned symbols, not on their signed counterparts.
8895         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
8896         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
8897         (UINT64_C, UINTMAX_C):
8898         Likewise.
8899         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
8900         unsigned counterparts.
8901         (Have_long_long, Unsigned): New macros.
8902         (Int): Renamed from INT.
8903         (strtoimax): Use the new macros.
8904         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
8905         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
8906         * modules/inttypes (inttypes.h): Substitute
8907         HAVE_UNSIGNED_LONG_LONG_INT.
8908         * modules/stdint (stdint.h): Likewise.
8909         (Files): Add m4/ulonglong.m4.
8910
8911 2006-10-10  Bruno Haible  <bruno@clisp.org>
8912
8913         Fix a gcc -Wshadow warning.
8914         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
8915         to 'bucket'.
8916         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
8917         gl_linked_indexof_from_to): Likewise.
8918         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
8919         Likewise.
8920         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
8921         Likewise.
8922         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
8923         Reported by Eric Blake.
8924
8925 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
8926
8927         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
8928         for NetBSD.  Problem reported by Bruno Haible.
8929
8930 2006-10-09  Jim Meyering  <jim@meyering.net>
8931
8932         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
8933         Patch from Bruno Haible.
8934
8935 2006-10-09  Jim Meyering  <jim@meyering.net>
8936
8937         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
8938         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
8939         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
8940
8941 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8942
8943         Don't include <config.h> twice; this doesn't work in some cases,
8944         e.g., when config.h has "#define intmax_t long long int" and
8945         we include <config.h>, <inttypes.h>, <config.h> in that order.
8946         Problem reported by Matthew Woehlke in:
8947         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
8948         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
8949         * lib/fts-cycle.c: Don't include config.h.
8950         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
8951         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
8952         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
8953         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
8954         inttypes.h.
8955         * lib/xstrtoumax.c: Likewise.
8956         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
8957         __strtol and the like, so that this module is more like its siblings.
8958         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
8959         Remove; no longer needed now that we assume gnulib inttypes.h.
8960
8961 2006-10-08  Bruno Haible  <bruno@clisp.org>
8962
8963         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
8964         option.
8965
8966 2006-10-07  Jim Meyering  <jim@meyering.net>
8967
8968         * modules/inttypes (inttypes.h): Revert what seems to have been
8969         an inadvertent part of today's change: use "|", not "/" in the
8970         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
8971
8972 2006-10-07  Bruno Haible  <bruno@clisp.org>
8973
8974         * modules/sublist: New file.
8975
8976 2006-10-07  Bruno Haible  <bruno@clisp.org>
8977
8978         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
8979         * modules/argz (argz.h): Likewise.
8980         * modules/arpa_inet (arpa/inet.h): Likewise.
8981         * modules/byteswap (byteswap.h): Likewise.
8982         * modules/configmake (configmake.h): Likewise.
8983         * modules/fcntl (fcntl.h): Likewise.
8984         * modules/fnmatch (fnmatch.h): Likewise.
8985         * modules/getopt (getopt.h): Likewise.
8986         * modules/glob (glob.h): Likewise.
8987         * modules/inttypes (inttypes.h): Likewise.
8988         * modules/netinet_in (netinet/in.h): Likewise.
8989         * modules/poll (poll.h): Likewise.
8990         * modules/stdbool (stdbool.h): Likewise.
8991         * modules/stdint (stdint.h): Likewise.
8992         * modules/sys_select (sys/select.h): Likewise.
8993         * modules/sys_socket (sys/socket.h): Likewise.
8994         * modules/sys_stat (sys/stat.h): Likewise.
8995         * modules/sysexits (sysexits.h): Likewise.
8996         * modules/unistd (unistd.h): Likewise.
8997         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8998         Add a "DO NOT EDIT" comment to the generated file.
8999         (func_import): Likewise for gnulib-comp.m4.
9000
9001 2006-10-07  Bruno Haible  <bruno@clisp.org>
9002
9003         * lib/gl_sublist.h: New file.
9004         * lib/gl_sublist.c: New file.
9005
9006 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9007
9008         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
9009         name (relative to the original working directory) and the file
9010         name component (relative to the temporary working directory).  All
9011         callers changed.
9012         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
9013         * lib/mkdir-p.c (make_dir_parents): Likewise.
9014         * lib/mkdir-p.h (make_dir_parents): Likewise.
9015
9016 2006-10-06  Eric Blake  <ebb9@byu.net>
9017
9018         Define several macros for use by the clean-temp module.
9019         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
9020         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
9021         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
9022
9023         * lib/clean-temp.h (close_stream_temp): New declaration.
9024         * lib/clean-temp.c (includes): Pull in headers according to what
9025         other modules are in use.
9026         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
9027
9028 2006-10-06  Bruno Haible  <bruno@clisp.org>
9029
9030         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
9031         instead of fopen, fwriteerror.
9032
9033 2006-10-06  Bruno Haible  <bruno@clisp.org>
9034
9035         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
9036         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
9037         int.
9038         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
9039         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
9040         Return an error indicator.
9041         Suggested by Eric Blake.
9042
9043 2006-10-06  Bruno Haible  <bruno@clisp.org>
9044
9045         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
9046         Reported by Eric Blake.
9047
9048 2006-10-06  Bruno Haible  <bruno@clisp.org>
9049
9050         * modules/closeout (Description): Mention stderr too.
9051
9052 2006-10-06  Bruno Haible  <bruno@clisp.org>
9053         and Paul Eggert  <eggert@cs.ucla.edu>
9054
9055         * lib/closeout.c (close_stdout): Also close stderr.
9056         * lib/closeout.h: Update comment.
9057
9058 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9059
9060         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
9061         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
9062         * lib/dirchownmod.c: Include lchown.h.
9063         * lib/lchown.c: Don't include files that lchown.h now includes.
9064         Don't declare chown, since lchown.h now does that.
9065         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
9066         (lchown): Define to rpl_chown if lchown is declared but
9067         does not exist.  Declare using a prototype if lchown is not
9068         declared.  Add a copyright notice.
9069         * lib/mkstemp.h: Include <unistd.h>.
9070         * lib/openat.c: Include lchown.h.
9071
9072         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
9073         we now test for that separately.
9074         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
9075         rather than O_NOFOLLOW, when testing whether it's possible to
9076         avoid a race condition reliably.
9077         * lib/savewd.c (savewd_chdir): Likewise.
9078
9079         Remove macros that are no longer needed now that stdint.h is
9080         reliable.
9081         * lib/fsusage.c (UINTMAX_MAX): Remove.
9082         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
9083         * lib/utimecmp.c (SIZE_MAX): Remove.
9084
9085         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
9086
9087         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
9088         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
9089         O_NOATIME works.
9090
9091 2006-10-05  Bruno Haible  <bruno@clisp.org>
9092
9093         * lib/gl_list.h (gl_sortedlist_search_from_to,
9094         gl_sortedlist_indexof_from_to): New declarations.
9095         (gl_list_implementation): New fields sortedlist_search_from_to,
9096         sortedlist_indexof_from_to.
9097         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
9098         inline functions.
9099         * lib/gl_list.c (gl_sortedlist_search_from_to,
9100         gl_sortedlist_indexof_from_to): New functions.
9101         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
9102         function.
9103         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
9104         (gl_array_sortedlist_search_from_to): New function.
9105         (gl_array_list_implementation): Update.
9106         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
9107         function.
9108         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
9109         (gl_carray_sortedlist_search_from_to): New function.
9110         (gl_carray_list_implementation): Update.
9111         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
9112         gl_linked_sortedlist_indexof_from_to): New functions.
9113         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9114         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9115         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
9116         gl_tree_sortedlist_indexof_from_to): New functions.
9117         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9118         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9119         Update.
9120         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9121         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
9122         Update.
9123
9124 2006-10-05  Bruno Haible  <bruno@clisp.org>
9125
9126         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
9127         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
9128         (struct gl_list_implementation): Add fields search_from_to,
9129         indexof_from_to. Remove fields search, indexof.
9130         (gl_list_search): Use the search_from_to method.
9131         (gl_list_search_from, gl_list_search_from_to): New functions.
9132         (gl_list_indexof): Use the indexof_from_to method.
9133         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9134         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
9135         (gl_list_search_from, gl_list_search_from_to): New functions.
9136         (gl_list_indexof): Use the indexof_from_to method.
9137         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9138         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
9139         gl_array_indexof. Add start_index, end_index arguments.
9140         (gl_array_search_from_to): Renamed from gl_array_search. Add
9141         start_index, end_index arguments.
9142         (gl_array_remove, gl_array_list_implementation): Update.
9143         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
9144         gl_carray_indexof. Add start_index, end_index arguments.
9145         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
9146         start_index, end_index arguments.
9147         (gl_carray_remove, gl_carray_list_implementation): Update.
9148         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
9149         gl_linked_search. Add start_index, end_index arguments.
9150         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
9151         start_index, end_index arguments.
9152         (gl_linked_remove): Update.
9153         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9154         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9155         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
9156         field to 'size_t'.
9157         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
9158         gl_tree_search. Add start_index, end_index arguments.
9159         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9160         start_index, end_index arguments.
9161         (gl_tree_remove): Update.
9162         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9163         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9164         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
9165         function.
9166         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
9167         gl_tree_search. Add start_index, end_index arguments.
9168         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9169         start_index, end_index arguments.
9170         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9171         Update.
9172         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
9173
9174 2006-10-05  Bruno Haible  <bruno@clisp.org>
9175
9176         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
9177
9178         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
9179         fwriteerror_temp): New declarations.
9180         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
9181         (descriptors): New variable.
9182         (cleanup): First, close the descriptors.
9183         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
9184         fclose_temp, fwriteerror_temp): New functions.
9185
9186 2006-10-04  Jim Meyering  <jim@meyering.net>
9187
9188         * lib/fts.c (fts_open): Tiny comment change.
9189
9190 2006-10-04  Bruno Haible  <bruno@clisp.org>
9191
9192         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
9193         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
9194         gl_LOCK_BODY.
9195         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
9196         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
9197         gl_LOCK_EARLY_BODY.
9198         (gl_LOCK): Require gl_LOCK_BODY.
9199
9200 2006-10-04  Bruno Haible  <bruno@clisp.org>
9201
9202         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
9203         (gl_oset_search_atleast): New declaration.
9204         (struct gl_oset_implementation): Add field 'search_atleast'.
9205         (gl_oset_search_atleast): New inline function.
9206         * lib/gl_oset.c (gl_oset_search_atleast): New function.
9207         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
9208         (gl_array_oset_implementation): Update.
9209         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
9210         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
9211         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
9212
9213 2006-10-04  Bruno Haible  <bruno@clisp.org>
9214
9215         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
9216
9217 2006-10-03  Bruno Haible  <bruno@clisp.org>
9218
9219         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
9220         from gl_avltreehash_list_implementation.
9221
9222 2006-10-03  Bruno Haible  <bruno@clisp.org>
9223
9224         * lib/gl_oset.c (gl_oset_add): Fix return type.
9225
9226 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
9227
9228         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
9229
9230 2006-10-02  Eric Blake  <ebb9@byu.net>
9231
9232         * modules/strnlen (Depends-on): Add extensions.
9233
9234 2006-10-02  Eric Blake  <ebb9@byu.net>
9235
9236         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
9237         definition in 2.60+.
9238
9239 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9240
9241         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
9242         checks.
9243
9244 2006-10-02  Bruno Haible  <bruno@clisp.org>
9245
9246         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
9247         to the AUTOMAKE_OPTIONS.
9248         Reported by Jim Meyering.
9249
9250 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
9251
9252         Work around bug in Solaris 10 /proc file system:
9253         /proc/self/fd/NNN/.. isn't the parent directory of
9254         the directory whose file descriptor is NNN.  This needs to
9255         be worked around at run time, not compile time, since a
9256         program might be built on Solaris 8, where things work, and
9257         run on Solaris 10.
9258         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
9259         to use the following interface instead:
9260         (OPENAT_BUFFER_SIZE): New macro.
9261         (openat_proc_name): New function.
9262         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
9263         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
9264         Likewise.
9265         * lib/openat-proc.c: New file.
9266         * modules/openat (Files): Add lib/openat-proc.c.
9267         (Depends-on): Add same-inode, stdbool.
9268         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
9269
9270 2006-09-29  Bruno Haible  <bruno@clisp.org>
9271
9272         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
9273         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
9274         argument. Set stdout_closed before testing for ferror, not after.
9275         (fwriteerror, fwriteerror_no_ebadf): New functions.
9276
9277 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9278
9279         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
9280
9281 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
9282
9283         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
9284         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
9285
9286 2006-09-28  Jim Meyering  <jim@meyering.net>
9287
9288         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
9289         Include <unistd.h>.
9290
9291 2006-09-28  Bruno Haible  <bruno@clisp.org>
9292
9293         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
9294         * modules/linkedhash-list (Depends-on): Likewise.
9295         * modules/rbtreehash-list (Depends-on): Likewise.
9296
9297 2006-09-28  Bruno Haible  <bruno@clisp.org>
9298
9299         * lib/strndup.h: Simplify the redefinition of strndup.
9300         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
9301         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
9302
9303 2006-09-28  Bruno Haible  <bruno@clisp.org>
9304
9305         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
9306         * lib/gl_linkedhash_list.c: Likewise.
9307         * lib/gl_rbtreehash_list.c: Likewise.
9308
9309 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
9310
9311         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
9312         getaddrinfo.
9313
9314         * lib/__fpending.h: Don't include <stdio_ext.h> unless
9315         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
9316         it causes <stdio_ext.h> to cause a compile-time error.
9317         Problem reported by Nelson H. F. Beebe.
9318         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
9319         of HAVE_DECL___PENDING.
9320
9321         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
9322         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
9323         declaration.
9324
9325 2006-09-27  Jim Meyering  <jim@meyering.net>
9326
9327         This file could end up with a definition for a function
9328         named __strndup, rather than rpl_strndup on a system with
9329         incomplete weak_alias support.
9330         * lib/strndup.c (strndup): Rename from __strndup.
9331         Remove #defines that used to map __strndup to strndup.
9332         Don't use K&R prototypes.
9333         Remove LIBC-related code, since this file is not sync'd with glibc.
9334         * lib/strndup.h: Revamp, accordingly.
9335         * m4/strndup.m4: Modernize.
9336
9337 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9338
9339         * modules/savewd (Depends-on): Add 'raise'.
9340         * lib/savewd.c: Include <signal.h>, for 'raise'.
9341
9342 2006-09-26  Jim Meyering  <jim@meyering.net>
9343
9344         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
9345         when we detect Darwin 8.7.0's acl_get_file bug.
9346         Rearrange to perform the new (below) run-test while $LIBS
9347         contains any acl-related library.  Set USE_ACL at the end.
9348         (gl_ACL_GET_FILE): New function.
9349
9350 2006-09-26  Eric Blake  <ebb9@byu.net>
9351
9352         * lib/verror.c: Include <config.h> unconditionally.
9353
9354 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9355
9356         * modules/clock-time (Maintainer): Add self.
9357         * modules/getlogin_r (Depends-on): Add extensions.
9358
9359 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9360
9361         * modules/clock-time: New module.
9362         * modules/nanosleep (Depends-on): Add clock-time.
9363         * modules/gethrxtime (Depends-on): Likewise.
9364         * modules/gettime (Depends-on): Likewise.
9365         * modules/settime (Depends-on): Likewise.
9366
9367         * modules/fts-lgpl: Depend on openat.
9368         * modules/mkancesdirs: Depend on savewd.
9369         * modules/mkdir-p: Likewise.
9370
9371 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9372
9373         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
9374
9375         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
9376         `gl_have_arbitrary_file_name_length_limit' to
9377         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
9378         actually works between configure runs.
9379
9380 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9381             Bruno Haible  <bruno@clisp.org>
9382
9383         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
9384
9385 2006-09-25  Jim Meyering  <jim@meyering.net>
9386
9387         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
9388         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
9389
9390 2006-09-25  Eric Blake  <ebb9@byu.net>
9391
9392         * gnulib-tool (func_import, func_create_testdir): Fix typos in
9393         exec's in 2006-09-18 patch when shuffling fds.
9394
9395 2006-09-25  Bruno Haible  <bruno@clisp.org>
9396
9397         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
9398         Reported by Jim Meyering.
9399
9400 2006-09-24  Jim Meyering  <jim@meyering.net>
9401
9402         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
9403         compare a pointer against a literal "0".  That caused failures with
9404         at least HP-UX's hpcc.
9405
9406 2006-09-22  Simon Josefsson  <jas@extundo.com>
9407
9408         * modules/gc-sha1:
9409         * modules/gc-md4:
9410         * modules/gc-hmac-sha1:
9411         * modules/gc-hmac-md5:
9412         * modules/gc-des:
9413         * modules/gc-arcfour: Distribute more files.
9414
9415 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9416
9417         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
9418         (gl_linked_iterator_from_to): Initialize struct completely.
9419         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
9420         (gl_tree_iterator_from_to): Likewise
9421         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
9422         * lib/gl_array_list.c [lint] (gl_array_iterator)
9423         (gl_array_iterator_from_to): Likewise.
9424         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
9425         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
9426         (gl_carray_iterator_from_to): Likewise.
9427
9428         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
9429         * lib/md4.c (md4_process_block): Remove unused variable.
9430         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
9431         parentheses for clarity.
9432
9433 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9434
9435         * modules/bison-i18n (Depends-on): Add gettext.
9436
9437 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9438
9439         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
9440         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9441         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
9442         also add missing comma that caused broken test.
9443         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
9444         stdlib.h, for `abort'.
9445         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
9446         variables.
9447         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
9448         include unistd.h if present, for `rmdir'.
9449         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
9450         variables.
9451         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
9452         in the process include standard headers for prototypes.
9453         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
9454         gets declared on GNU/Linux.
9455         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
9456         unistd.h, for `rmdir'.
9457         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
9458
9459         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
9460         always true.
9461         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
9462
9463         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
9464
9465 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9466
9467         * gnulib-tool (func_version): Create output all at once.  This
9468         may help avoid triggering unnecessary SIGPIPEs, and at any
9469         rate it doesn't hurt.
9470
9471 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9472             Bruno Haible  <bruno@clisp.org>
9473
9474         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
9475         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9476         * m4/signed.m4 (bh_C_SIGNED): Likewise.
9477
9478         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
9479         (gl_FUNC_VASPRINTF): Invoke it.
9480
9481 2006-09-22  Bruno Haible  <bruno@clisp.org>
9482
9483         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
9484         getloadavg.c as first argument.
9485
9486 2006-09-22  Bruno Haible  <bruno@clisp.org>
9487
9488         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
9489         at the beginning of the gl_INIT macro.
9490         * modules/getloadavg (configure.ac): Pass $gl_source_base to
9491         gl_GETLOADAVG.
9492
9493 2006-09-22  Bruno Haible  <bruno@clisp.org>
9494
9495         * gnulib-tool (func_create_megatestdir): Don't include the config-h
9496         module.
9497         Suggested by Ralf Wildenhues.
9498
9499 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9500
9501         Import this patch from libc:
9502
9503         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9504
9505         * lib/regex_internal.c (re_string_reconstruct): Handle
9506         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9507         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9508         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9509         re_string_context_at.
9510
9511         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
9512         now requires it.
9513         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
9514         gl_REGEX now does it for us.
9515         (gl_REGEX): Add test taken from
9516         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
9517
9518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
9519         Check that large offsets work.  Modernize Autoconf usages.
9520         Prefer "yes" to mean a good thing rather than a bad.
9521         Don't put "#define mkstemp" in config.h, as this might interfere
9522         with standard system headers that "#define mkstemp mkstemp64".
9523
9524         * modules/mkstemp (Depends-on): Add extensions, so that
9525         mkstemp is visible on some platforms.
9526         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
9527         (Include): Change to "mkstemp.h" from <stdlib.h>.
9528         (Files): Add mkstemp.h.
9529
9530         * lib/mkstemp.h: New file, since some standard headers
9531         #define mkstemp.
9532         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
9533         Include "mkstemp.h".
9534         Make the _LIBC code resemble glibc original more,
9535         e.g., use K&R style.
9536         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
9537         (mkstemp): Remove, since mkstemp.h does this for us.
9538         * lib/stdlib--.h: Include mkstemp.h.
9539
9540         Import this patch from libc:
9541
9542         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
9543
9544         * lib/tempname.c (__gen_tempname): Change attempts_min
9545         into a macro.  Use preprocessor to decide how to initialize
9546         attempts [Coverity CID 67].
9547
9548 2006-09-20  Bruno Haible  <bruno@clisp.org>
9549
9550         * lib/mkdtemp.c: Import from libc.
9551         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
9552                 * sysdeps/posix/tempname.c (__gen_tempname): Change
9553                 attempts_min into a macro.  Use preprocessor to decide how to
9554                 initialize attempts [Coverity CID 67].
9555         2001-11-27  Paul Eggert  <eggert@twinsun.com>
9556                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
9557                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
9558
9559 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9560
9561         * gnulib-tool (func_exit): New function, to allow to pass the
9562         exit status portably through the trap.  Use everywhere.
9563         (--help, --version): Signal a write error.
9564         (trap): catch SIGPIPE, for write errors.
9565         Exit at the end of the trap, with the correct exit status.
9566
9567 2006-09-19  Karl Berry  <karl@gnu.org>
9568
9569         * doc/gnulib.texi: note about the license texinfo files.
9570
9571 2006-09-19  Eric Blake  <ebb9@byu.net>
9572
9573         * gnulib-tool: Avoid space-tab.
9574
9575 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9576
9577         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
9578         that prevented coreutils 6.1 from building.  Problem reported
9579         by Petter Reinholdtsen.
9580
9581 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9582
9583         * gnulib-tool (avoidlist): Fix typo that broke options like
9584         --avoid=lock that are used by coreutils bootstrap.
9585
9586 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
9587
9588         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
9589         more systematically.
9590
9591 2006-09-18  Jim Meyering  <jim@meyering.net>
9592
9593         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
9594
9595 2006-09-18  Bruno Haible  <bruno@clisp.org>
9596
9597         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
9598
9599 2006-09-18  Bruno Haible  <bruno@clisp.org>
9600
9601         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
9602         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
9603         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
9604         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
9605         * m4/gettext.m4: Require autoconf >= 2.52.
9606         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
9607         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
9608         of gl_cv_header_inttypes_h.
9609
9610 2006-09-18  Bruno Haible  <bruno@clisp.org>
9611
9612         * lib/javaversion.c: Include configmake.h.
9613
9614 2006-09-18  Bruno Haible  <bruno@clisp.org>
9615
9616         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
9617         avoid that the while loops be executed in a subshell.
9618
9619 2006-09-18  Bruno Haible  <bruno@clisp.org>
9620
9621         * MODULES.html.sh (func_module): Break long lines.
9622         Suggested by Bruce Korb <bkorb@gnu.org>.
9623
9624 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9625
9626         Speed up by a factor of 1.12.
9627         * gnulib-tool (nl): New variable.
9628         (func_import): Rewrite include directive extraction to only read each
9629         directive once.
9630
9631 2006-09-17  Bruno Haible  <bruno@clisp.org>
9632
9633         * modules/javaversion (Makefile.am): Remove DEFS setting.
9634         (Depends-on): Add configmake, for PKGDATADIR definition.
9635
9636 2006-09-17  Bruno Haible  <bruno@clisp.org>
9637
9638         * gnulib-tool (func_create_testdir): Rewrite all files at once.
9639
9640 2006-09-17  Bruno Haible  <bruno@clisp.org>
9641
9642         * gnulib-tool (func_append): New function, stolen from libtool.m4.
9643         (func_modules_transitive_closure, func_modules_add_dummy,
9644         func_modules_to_filelist, func_import, func_create_testdir,
9645         func_create_megatestdir, ...): Use it wherever possible.
9646         Suggested by Ralf Wildenhues.
9647
9648 2006-09-16  Karl Berry  <karl@gnu.org>
9649
9650         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
9651         to avoid sectioning errors.
9652         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
9653         [ifinfo]: blank line after @center-ed titles.
9654         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
9655         Spell FSF address consistently with others.
9656         (These changes approved by rms.)
9657
9658 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9659
9660         Speed up by a factor of 1.61.
9661         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
9662         already checked module names again.
9663
9664 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9665
9666         Speed up by a factor of 1.13.
9667         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
9668         for new_files, and the input to func_add_or_update.
9669
9670 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9671
9672         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
9673         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
9674
9675 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9676
9677         * modules/mkancesdirs (Depends-on): Add fcntl.
9678         * modules/savewd: New file.
9679         * MODULES.html.sh (File system functions): Add savewd.
9680
9681         * modules/configmake (Makefile.am): Add support for the
9682         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
9683
9684 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9685
9686         * m4/savewd.m4: New file.
9687
9688 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9689
9690         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
9691         (dirchownmod): New arg FD.  All callers changed.
9692         Use FD rather than opening the directory ourself, as opening is
9693         now the caller's responsibility.
9694         * lib/dirchownmod.h: Likewise.
9695         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
9696         hosts that require <sys/types.h> before <sys/stat.h>.  Include
9697         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
9698         (test_dir): Remove.
9699         (mkancesdirs): Return length of prefix of FILE that has already
9700         been made, or -2 if there is a child doing the work.  Redo
9701         algorithm so that it is O(N) rather than O(N**2).  Optimize away
9702         ".", and treat ".." specially since it might stray back into
9703         already-created areas.  Use a subprocess if necessary.  New arg
9704         WD; all users changed.  MAKE_DIR function should now return 1
9705         if it creates a directory that is not readable.  Return -2 if
9706         a child process is spun off.
9707         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
9708         Adjust signature to match code.
9709         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
9710         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
9711         all users changed.
9712         * lib/savewd.c, lib/savewd.h: New files.
9713
9714 2006-09-15  Jim Meyering  <jim@meyering.net>
9715
9716         * modules/rename-dest-slash: New module.
9717         * MODULES.html.sh (posix_compat): Add it here.
9718
9719         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
9720
9721 2006-09-15  Jim Meyering  <jim@meyering.net>
9722
9723         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
9724         file.
9725
9726         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
9727
9728 2006-09-15  Jim Meyering  <jim@meyering.net>
9729
9730         * lib/rename-dest-slash.c (has_trailing_slash): Use
9731         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
9732         (rpl_rename_dest_slash): Perform the cheaper trailing slash
9733         test before testing whether SRC is a directory.
9734         Suggestions from Bruno Haible.
9735
9736         Avoid a warning about an unused variable.
9737         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
9738         into the #ifdef block where it's used.
9739
9740         * lib/rename-dest-slash.c: New file.
9741
9742 2006-09-14  Bruno Haible  <bruno@clisp.org>
9743
9744         * lib/allocsa.c: Include <config.h> unconditionally.
9745         * lib/asnprintf.c: Likewise.
9746         * lib/asprintf.c: Likewise.
9747         * lib/c-strcasecmp.c: Likewise.
9748         * lib/c-strcasestr.c: Likewise.
9749         * lib/c-strncasecmp.c: Likewise.
9750         * lib/c-strstr.c: Likewise.
9751         * lib/classpath.c: Likewise.
9752         * lib/clean-temp.c: Likewise.
9753         * lib/concatpath.c: Likewise.
9754         * lib/copy-file.c: Likewise.
9755         * lib/csharpcomp.c: Likewise.
9756         * lib/csharpexec.c: Likewise.
9757         * lib/execute.c: Likewise.
9758         * lib/fatal-signal.c: Likewise.
9759         * lib/findprog.c: Likewise.
9760         * lib/fwriteerror.c: Likewise.
9761         * lib/gl_array_list.c: Likewise.
9762         * lib/gl_array_oset.c: Likewise.
9763         * lib/gl_avltree_list.c: Likewise.
9764         * lib/gl_avltree_oset.c: Likewise.
9765         * lib/gl_avltreehash_list.c: Likewise.
9766         * lib/gl_carray_list.c: Likewise.
9767         * lib/gl_linked_list.c: Likewise.
9768         * lib/gl_linkedhash_list.c: Likewise.
9769         * lib/gl_list.c: Likewise.
9770         * lib/gl_oset.c: Likewise.
9771         * lib/gl_rbtree_list.c: Likewise.
9772         * lib/gl_rbtree_oset.c: Likewise.
9773         * lib/gl_rbtreehash_list.c: Likewise.
9774         * lib/imaxabs.c: Likewise.
9775         * lib/imaxdiv.c: Likewise.
9776         * lib/javacomp.c: Likewise.
9777         * lib/javaexec.c: Likewise.
9778         * lib/javaversion.c: Likewise.
9779         * lib/linebreak.c: Likewise.
9780         * lib/localcharset.c: Likewise.
9781         * lib/lock.c: Likewise.
9782         * lib/mbchar.c: Likewise.
9783         * lib/mbswidth.c: Likewise.
9784         * lib/mkdtemp.c: Likewise.
9785         * lib/pipe.c: Likewise.
9786         * lib/printf-args.c: Likewise.
9787         * lib/printf-parse.c: Likewise.
9788         * lib/progname.c: Likewise.
9789         * lib/progreloc.c: Likewise.
9790         * lib/readlink.c: Likewise.
9791         * lib/sh-quote.c: Likewise.
9792         * lib/stpcpy.c: Likewise.
9793         * lib/stpncpy.c: Likewise.
9794         * lib/strcasecmp.c: Likewise.
9795         * lib/strcasestr.c: Likewise.
9796         * lib/strcspn.c: Likewise.
9797         * lib/striconv.c: Likewise.
9798         * lib/strncasecmp.c: Likewise.
9799         * lib/strnlen1.c: Likewise.
9800         * lib/strstr.c: Likewise.
9801         * lib/strtok_r.c: Likewise.
9802         * lib/tls.c: Likewise.
9803         * lib/tmpdir.c: Likewise.
9804         * lib/unicodeio.c: Likewise.
9805         * lib/unsetenv.c: Likewise.
9806         * lib/vasnprintf.c: Likewise.
9807         * lib/vasprintf.c: Likewise.
9808         * lib/wait-process.c: Likewise.
9809         * lib/xallocsa.c: Likewise.
9810         * lib/xsetenv.c: Likewise.
9811         * lib/xstriconv.c: Likewise.
9812
9813 2006-09-13  Simon Josefsson  <jas@extundo.com>
9814
9815         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
9816         that internally, suggested by Ralf Wildenhues
9817         <Ralf.Wildenhues@gmx.de>.
9818
9819 2006-09-13  Simon Josefsson  <jas@extundo.com>
9820
9821         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
9822         @LIBOBJS@.
9823         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9824
9825 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9826
9827         * lib/_fpending.c: Include <config.h> unconditionally, since we no
9828         longer worry about uses that don't define HAVE_CONFIG_H.
9829         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
9830         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
9831         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
9832         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
9833         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
9834         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
9835         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
9836         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
9837         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
9838         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
9839         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
9840         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
9841         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
9842         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
9843         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
9844         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
9845         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
9846         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
9847         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
9848         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
9849         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
9850         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
9851         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
9852         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
9853         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
9854         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
9855         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
9856         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
9857         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
9858         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
9859         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
9860         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
9861         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
9862         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
9863         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
9864         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
9865         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
9866         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
9867         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
9868         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
9869         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
9870         Likewise.
9871
9872 2006-09-13  Eric Blake  <ebb9@byu.net>
9873
9874         * lib/getopt.c: Fix typo in last commit.
9875
9876 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9877
9878         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
9879         dgettext.
9880
9881 2006-09-12  Jim Meyering  <jim@meyering.net>
9882
9883         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
9884         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
9885         Reported by Nelson H. F. Beebe.
9886
9887 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9888
9889         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
9890         program_invocation_name and program_invocation_short_name are
9891         initialized.
9892         * lib/argp-namefrob.h: Move declarations of program_invocation_name
9893         and program_invocation_short_name to argp.h, so they are visible
9894         to user programs.
9895         * lib/argp.h: Likewise
9896
9897 2006-09-10  Bruno Haible  <bruno@clisp.org>
9898
9899         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
9900         m4/inttypes_h.m4, m4/uintmax_t.m4.
9901
9902 2006-09-10  Bruno Haible  <bruno@clisp.org>
9903
9904         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
9905         gl_AC_TYPE_UINTMAX_T.
9906
9907 2006-09-10  Bruno Haible  <bruno@clisp.org>
9908
9909         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
9910
9911 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9912
9913         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
9914         convention.  Text proposed by Bruno Haible.
9915         (struct argp_option): Document the use of N_() wrappers.
9916
9917         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
9918         '\v', and translate the two parts separately, instead of feeding
9919         the whole string to gettext.  This allows to exclude
9920         '\v' from the strings visible to the translator by writing doc
9921         strings as N_("..") "\v" N_("..").
9922
9923 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
9924
9925         * config/srclist.txt: Undo latest change; the bug was fixed.
9926
9927 2006-09-09  Bruno Haible  <bruno@clisp.org>
9928
9929         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
9930         assignments if building a library without libtool.
9931         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
9932         in func_emit_lib_Makefile_am.
9933         (func_import): When building a static library libfoo.a, arrange to
9934         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
9935         (func_create_testdir): Likewise.
9936         * modules/gc (configure.ac, Makefile.am): If building statically,
9937         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
9938         * modules/iconvme (configure.ac, Makefile.am): Likewise.
9939         * modules/striconv (configure.ac, Makefile.am): Likewise.
9940         Based on a suggestion by Ralf Wildenhues.
9941
9942 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9943
9944         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
9945         Check for unistd.h too, since Autoconf doesn't assume POSIX.
9946         Also:
9947
9948         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9949         Add year_2050_test to catch glibc bug 2821
9950         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
9951
9952         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9953         Prefer #ifdef to #if.
9954
9955         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
9956         Return from 'main' instead of calling 'exit'.
9957
9958 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9959
9960         * lib/mktime.c (guess_time_tm): Fix bug where mktime
9961         returned the maximum time_t value rather than (time_t) -1.
9962         Problem originally reported by William Bardwell
9963         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
9964
9965         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
9966         Moved to here ...
9967         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
9968         ... from here.
9969
9970 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9971
9972         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
9973         2821 is fixed.
9974
9975 2006-09-08  Jim Meyering  <jim@meyering.net>
9976
9977         Don't make generated files read-only.  That would bother too many
9978         people.  However, do retain the ability to work when targets are
9979         read-only: remove the destination and temporary files before writing
9980         them (when generated via sed or echo), or by using the -f option for
9981         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
9982         * modules/alloca-opt, modules/argz, modules/arpa_inet:
9983         * modules/byteswap, modules/configmake, modules/fcntl:
9984         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
9985         * modules/localcharset, modules/netinet_in, modules/poll:
9986         * modules/stdbool, modules/stdint, modules/sys_select:
9987         * modules/sys_socket, modules/sys_stat, modules/sysexits:
9988
9989 2006-09-08  Jim Meyering  <jim@meyering.net>
9990
9991         Avoid new build failure on FreeBSD 6.0.
9992         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
9993         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
9994         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
9995
9996 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9997
9998         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
9999
10000 2006-09-07  Jim Meyering  <jim@meyering.net>
10001
10002         Fix global typo in last change: use chmod u-w, not chmod u-x.
10003         Spotted by Paul Eggert and Bruce Korb.
10004         * modules/alloca-opt, modules/argz, modules/arpa_inet:
10005         * modules/byteswap, modules/configmake, modules/fcntl:
10006         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10007         * modules/localcharset, modules/netinet_in, modules/poll:
10008         * modules/stdbool, modules/stdint, modules/sys_select:
10009         * modules/sys_socket, modules/sys_stat, modules/sysexits:
10010
10011 2006-09-06  Jim Meyering  <jim@meyering.net>
10012
10013         Make generated files be read-only.
10014         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
10015         Ensure that each generated file is now read-only.
10016         * modules/argz: Likewise.
10017         * modules/arpa_inet: Likewise.
10018         * modules/byteswap: Likewise.
10019         * modules/configmake: Likewise.
10020         * modules/fcntl: Likewise.
10021         * modules/fnmatch: Likewise.
10022         * modules/getopt: Likewise.
10023         * modules/glob: Likewise.
10024         * modules/inttypes: Likewise.
10025         * modules/netinet_in: Likewise.
10026         * modules/poll: Likewise.
10027         * modules/stdbool: Likewise.
10028         * modules/stdint: Likewise.
10029         * modules/sys_select: Likewise.
10030         * modules/sys_socket: Likewise.
10031         * modules/sys_stat: Likewise.
10032         * modules/sysexits: Likewise.
10033         * modules/localcharset: Same as above, but continue using temporary
10034         file named "t-$@" (why different?) rather than the "$@-t" used
10035         everywhere else.
10036
10037         * modules/sysexits (Makefile.am): Replace literal occurrences
10038         of "sysexit.h" more readable, and more consistent, "$@".
10039
10040 2006-09-06  Bruno Haible  <bruno@clisp.org>
10041
10042         * modules/striconv: New file.
10043         * modules/xstriconv: New file.
10044         * MODULES.html.sh (Internationalization functions): Add striconv,
10045         xstriconv.
10046
10047 2006-09-06  Bruno Haible  <bruno@clisp.org>
10048
10049         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
10050         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
10051         not using libtool correctly.
10052
10053 2006-09-06  Bruno Haible  <bruno@clisp.org>
10054
10055         * lib/striconv.h: New file.
10056         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
10057         iconvstring.c.
10058         * lib/xstriconv.h: New file.
10059         * lib/xstriconv.c: New file.
10060
10061 2006-09-06  Bruno Haible  <bruno@clisp.org>
10062
10063         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10064         lib_..._LDFLAGS.
10065
10066 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10067
10068         * lib/argz_.h: Sync from Libtool.
10069
10070         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
10071                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10072
10073         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
10074
10075 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
10076
10077         * modules/trim: New file.
10078
10079 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
10080
10081         * lib/trim.h: New file.
10082         * lib/trim.c: New file.
10083
10084 2006-09-05  Bruno Haible  <bruno@clisp.org>
10085
10086         * MODULES.html.sh (String handling): Add trim.
10087
10088 2006-09-04  Karl Berry  <karl@gnu.org>
10089
10090         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
10091         until next release.
10092
10093 2006-09-03  Bruno Haible  <bruno@clisp.org>
10094
10095         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
10096         correctly.
10097
10098 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10099
10100         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
10101         not gl_GETLOADAVG.  Omit unneeded semicolons.
10102         Problems reported by Ralf Wildenhues in
10103         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10104         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
10105         at the end, which is the usual gnulib style.
10106
10107         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
10108         of doing all the work ourselves.
10109         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
10110         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
10111
10112 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10113
10114         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
10115         Problem reported by Ralf Wildenhues in
10116         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10117
10118         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
10119         HAVE_STRUCT_STATFS_F_FSTYPENAME.
10120
10121 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10122
10123         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
10124         yesterday's patch by changing test -n to test -z.
10125
10126 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10127
10128         * modules/getloadavg (Files): Add m4/getloadavg.m4.
10129         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
10130         the former is now obsolescent.
10131
10132         * modules/chdir-long (Depends-on): Add fcntl.
10133
10134 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10135
10136         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
10137         obsolescent, and programs should use gnulib instead.
10138         * m4/getloadavg.m4: New file, with contents taken from Autoconf
10139         but with prefixes changed.
10140
10141 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10142
10143         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
10144         or stdbool.h, because they might not exist while configuring.
10145
10146         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
10147         Don't include unistd.h or limits.h; not needed, since chdir-long.h
10148         does that for us.
10149         (O_DIRECTORY): Remove.
10150
10151 2006-08-31  Eric Blake  <ebb9@byu.net>
10152
10153         * gnulib-tool: Don't let emacs change spaces to TAB.
10154
10155 2006-08-31  Bruno Haible  <bruno@clisp.org>
10156
10157         * gnulib-tool: When calling func_import more than once, do it in a
10158         subshell.
10159         Reported by Eric Blake <ebb9@byu.net>.
10160
10161 2006-08-31  Bruno Haible  <bruno@clisp.org>
10162
10163         * gnulib-tool (nl): Remove variable.
10164         (sed_transform_lib_file): Use more robust test for config-h module.
10165         (func_import): Fix typo in 2006-08-25 patch.
10166
10167 2006-08-31  Bruno Haible  <bruno@clisp.org>
10168
10169         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
10170         specified, augment Makefile.am variables instead of assigning them.
10171
10172 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10173
10174         Work around a bug in both the Linux and SunOS 64-bit kernels:
10175         nanosleep mishandles sleeps for longer than 2**31 seconds.
10176         Problem reported by Frank v Waveren in
10177         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
10179         Check for nanosleep bug.
10180         (LIB_NANOSLEEP): Append clock_gettime library if needed.
10181
10182 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10183
10184         Work around a bug in both the Linux and SunOS 64-bit kernels:
10185         nanosleep mishandles sleeps for longer than 2**31 seconds.
10186         Problem reported by Frank v Waveren in
10187         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10188         * lib/nanosleep.c (BILLION): New constant.
10189         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
10190         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
10191         implementation.
10192
10193 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10194
10195         * modules/nanosleep (Depends-on): Add gettime.
10196
10197 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10198         and Simon Josefsson  <jas@extundo.com>
10199         and Oskar Liljeblad  <oskar@osk.mine.nu>
10200
10201         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
10202         * gnulib-tool (func_import): New license type 'unmodifiable license
10203         text'.
10204         * modules/fdl: Use it.  Longer description.
10205         * module/gpl, module/lgpl: New files.
10206
10207 2006-08-30  Jim Meyering  <jim@meyering.net>
10208
10209         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
10210         shadowing the parameter.
10211
10212 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10213
10214         Sync from Libtool:
10215
10216         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10217
10218         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
10219         sharing with gnulib.  Report by Eric Blake.
10220
10221 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10222
10223         * modules/isapipe: New file.
10224         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
10225
10226 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10227
10228         * modules/configmake (Makefile.am): Add a comment, and omit
10229         the CONFIGMAKE_ prefix from generated macro names.  Suggested
10230         by Bruno Haible.
10231
10232 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10233
10234         * m4/isapipe.m4: New file.
10235
10236 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10237
10238         * lib/isapipe.c, lib/isapipe.h: New files.
10239
10240 2006-08-29  Jim Meyering  <jim@meyering.net>
10241
10242         * modules/configmake (Makefile.am): Make configmake.h depend on
10243         Makefile.  Otherwise, a stale configmake.h could hang around.
10244
10245 2006-08-29  Eric Blake  <ebb9@byu.net>
10246
10247         * lib/error.c (error_at_line, print_errno_message): Match libc, after
10248         resolution of upstream bug 3044.
10249
10250 2006-08-29  Bruno Haible  <bruno@clisp.org>
10251
10252         * modules/localcharset (Depends-on): Add configmake.
10253         (Makefile.am): Remove setting of LIBDIR through DEFS.
10254
10255 2006-08-29  Bruno Haible  <bruno@clisp.org>
10256
10257         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
10258         defined.
10259
10260 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10261
10262         * modules/fcntl: New file.
10263         * modules/chdir-safer (Depends-on): Add fcntl.
10264         * modules/fts: Likewise.
10265         * modules/mkdir-p: Likewise.
10266
10267         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
10268         This undoes the most recent change, since we're now addressing the
10269         problem in a different way.
10270
10271         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
10272         into output, since the output might be called Makefile.am even
10273         if $makefile_name is something different.
10274         (func_import): Use $makefile_am rather than
10275         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
10276         empty.
10277
10278         * modules/inttypes (Files): Add m4/inttypes-h.m4.
10279
10280 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10281
10282         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
10283         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
10284         recent change to stdint.m4, since we're now addressing the problem in a
10285         different way.
10286
10287 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10288
10289         * m4/fcntl_h.m4: New file.
10290
10291 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10292
10293         * lib/fcntl_.h: New file.
10294         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
10295         the fcntl module.
10296         * lib/dirchownmod.c: Likewise.
10297         * lib/fts.c: Likewise.
10298
10299         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
10300         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
10301         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
10302         just before including <inttypes.h>, to avoid circular inclusion.
10303
10304 2006-08-28  Jim Meyering  <jim@meyering.net>
10305
10306         * doc/visibility.texi: Actually read and correct the grammar of the
10307         sentence affected by yesterday's change.
10308
10309 2006-08-28  Eric Blake  <ebb9@byu.net>
10310
10311         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
10312         needs wrapper.
10313
10314 2006-08-28  Eric Blake  <ebb9@byu.net>
10315
10316         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
10317
10318 2006-08-28  Eric Blake  <ebb9@byu.net>
10319
10320         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
10321
10322 2006-08-28  Bruno Haible  <bruno@clisp.org>
10323
10324         * modules/c-strstr: New file, from GNU gettext.
10325         * MODULES.html.sh (String handling): Add c-strstr.
10326
10327 2006-08-28  Bruno Haible  <bruno@clisp.org>
10328
10329         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
10330         macros.
10331         Reported by Eric Blake.
10332
10333 2006-08-28  Bruno Haible  <bruno@clisp.org>
10334
10335         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
10336         (VASNPRINTF): Return a string of length > INT_MAX without failing.
10337         * lib/vasprintf.c: Include errno.h, limits.h.
10338         (EOVERFLOW): New fallback definition.
10339         (vasprintf): Test here whether the string length is > INT_MAX.
10340         * lib/vsnprintf.c: Include errno.h, limits.h.
10341         (EOVERFLOW): New fallback definition.
10342         (vsnprintf): Fix bug when generated string was too long for the buffer.
10343         Test here whether the string length is > INT_MAX.
10344
10345 2006-08-28  Bruno Haible  <bruno@clisp.org>
10346
10347         * lib/inttypes_.h (SCNX*): Remove definitions.
10348         Reported by Eric Blake.
10349
10350 2006-08-28  Bruno Haible  <bruno@clisp.org>
10351
10352         * lib/c-strstr.h: New file, from GNU gettext.
10353         * lib/c-strstr.c: New file, from GNU gettext.
10354
10355 2006-08-28  Bruno Haible  <bruno@clisp.org>
10356
10357         * gnulib-tool: Reorder some statements.
10358
10359 2006-08-28  Bruno Haible  <bruno@clisp.org>
10360
10361         * gnulib-tool: New option --makefile-name.
10362         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
10363         $makefile_name.
10364         (func_import): Write $makefile_name to the cache file, and read it from
10365         there unless explicitly specified. Use $makefile_name as file name
10366         instead of Makefile.am. Adjust the recommendations accordingly.
10367
10368 2006-08-28  Bruno Haible  <bruno@clisp.org>
10369
10370         * gnulib-tool (func_verify_module): Check against misapplying patch.
10371
10372 2006-08-28  Bruno Haible  <bruno@clisp.org>
10373
10374         * gnulib-tool (func_relativize, func_relconcat): New functions.
10375         Give an error if --local-dir is given with --update.
10376         Remove trailing slashes from $local_gnulib_dir.
10377         (func_import): Store the relativized $local_gnulib_dir in
10378         gnulib-cache.m4, and read it from there if not specified explicitly.
10379
10380 2006-08-28  Bruno Haible  <bruno@clisp.org>
10381
10382         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
10383         is the current directory. Respect also $local_gnulib_dir.
10384
10385 2006-08-28  Bruno Haible  <bruno@clisp.org>
10386             Simon Josefsson  <jas@extundo.com>
10387
10388         BeOS portability.
10389         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
10390
10391 2006-08-27  Jim Meyering  <jim@meyering.net>
10392
10393         * doc/visibility.texi: Remove duplicate word: "pointer".
10394
10395 2006-08-26  Bruno Haible  <bruno@clisp.org>
10396
10397         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
10398         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
10399         (Makefile.am): Create inttypes.h from inttypes_.h.
10400         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
10401
10402         * modules/imaxabs: New file.
10403
10404         * modules/imaxdiv: New file.
10405
10406 2006-08-26  Bruno Haible  <bruno@clisp.org>
10407
10408         * m4/inttypes.m4: New file.
10409         * m4/_inttypes_h.m4: Remove file.
10410         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
10411         PRI_MACROS_BROKEN.
10412         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
10413
10414         * m4/imaxabs.m4: New file.
10415
10416         * m4/imaxdiv.m4: New file.
10417
10418 2006-08-26  Bruno Haible  <bruno@clisp.org>
10419
10420         * lib/inttypes_.h: New file.
10421         * lib/inttypes.h: Remove file.
10422         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
10423
10424         * lib/imaxabs.c: New file.
10425
10426         * lib/imaxdiv.c: New file.
10427
10428 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10429
10430         New config-h module, so that "make" output needn't be cluttered
10431         by -DHAVE_CONFIG_H.
10432         * MODULES.html.sh (Support for building libraries and executables):
10433         Add config-h.
10434         * modules/config-h: New file.
10435         * gnulib-tool (nl, sed_transform_lib_file): New vars.
10436         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
10437         the config-h module is used.
10438
10439         New configmake module, so that "make" output needn't be cluttered
10440         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
10441         * MODULES.html.sh (Support for building libraries and executables):
10442         Add configmake.
10443         * modules/configmake: New file.
10444
10445 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10446
10447         * m4/config-h.m4: New file.
10448
10449 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10450
10451         * config/srclist.txt: Add elisp-comp.
10452
10453 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10454
10455         * MODULES.html.sh (Support for building libraries and executables):
10456         Add elisp-comp.
10457         * build-aux/elisp-comp: New file.
10458         * modules/elisp-comp: New file.
10459
10460 2006-08-24  Bruno Haible  <bruno@clisp.org>
10461
10462         * gnulib-tool (func_create_testdir): Use non-default values of
10463         sourcebase and m4base.
10464
10465 2006-08-24  Bruno Haible  <bruno@clisp.org>
10466
10467         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
10468         HTML structure.
10469
10470 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10471
10472         * modules/openat (Depends-on): Add lchown.
10473
10474 2006-08-23  Bruno Haible  <bruno@clisp.org>
10475
10476         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
10477         of gl_LOCK_EARLY instead of gl_LOCK.
10478
10479 2006-08-23  Bruno Haible  <bruno@clisp.org>
10480
10481         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
10482         on OSF/1 to no.
10483         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
10484
10485 2006-08-23  Bruno Haible  <bruno@clisp.org>
10486
10487         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
10488         as unusable.
10489
10490         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
10491         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
10492         (gl_LOCK): New macro.
10493
10494 2006-08-22  Simon Josefsson  <jas@extundo.com>
10495
10496         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
10497         to md5 module.
10498
10499 2006-08-22  Simon Josefsson  <jas@extundo.com>
10500
10501         * MODULES.html.sh: Add "Support for maintaining and release
10502         projects".
10503
10504         * build-aux/gnupload: New file, from coreutils.
10505
10506 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10507
10508         Avoid the need for AC_LIBSOURCES in m4 macros.
10509         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
10510         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
10511         * modules/check-version (EXTRA_DIST): Add check-version.h.
10512         * modules/crc (EXTRA_DIST): Add crc.h.
10513         * modules/des (EXTRA_DIST): Add des.h.
10514         * modules/gc (EXTRA_DIST): Add gc.h.
10515         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
10516         * modules/getline (EXTRA_DIST): Add getline.h.
10517         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
10518         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
10519         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
10520         * modules/md2 (EXTRA_DIST): Add md2.h.
10521         * modules/md4 (EXTRA_DIST): Add md4.h.
10522         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
10523         * modules/read-file (EXTRA_DIST): Add read-file.h.
10524         * modules/readline (EXTRA_DIST): Add readline.h.
10525         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
10526         rijndael-api-fst.h.
10527
10528 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10529
10530         * m4/rijndael.m4 (gl_ARCFOUR):
10531         * m4/arctwo.m4 (gl_ARCTWO):
10532         * m4/check-version.m4 (gl_CHECK_VERSION):
10533         * m4/crc.m4 (gl_CRC):
10534         * m4/des.m4 (gl_DES):
10535         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
10536         * m4/gc.m4 (gl_GC):
10537         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10538         * m4/getline.m4 (gl_FUNC_GETLINE):
10539         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
10540         * m4/hmac-md5.m4 (gl_HMAC_MD5):
10541         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
10542         * m4/md2.m4 (gl_MD2):
10543         * m4/md4.m4 (gl_MD4):
10544         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
10545         * m4/read-file.m4 (gl_FUNC_READ_FILE):
10546         * m4/readline.m4 (gl_FUNC_READLINE):
10547         * m4/rijndael.m4 (gl_RIJNDAEL):
10548         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
10549         to get the necessary .h files and whatnot.
10550
10551 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10552
10553         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
10554         gnulib rather than the other way around.
10555         * config/srclistvars.sh (COREUTILS): Remove.
10556
10557 2006-08-22  Jim Meyering  <jim@meyering.net>
10558
10559         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
10560
10561         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
10562
10563 2006-08-22  Eric Blake  <ebb9@byu.net>
10564
10565         * modules/regexprops-generic: New file.
10566         * MODULES.html.sh (Support for building documentation): List it.
10567
10568 2006-08-22  Eric Blake  <ebb9@byu.net>
10569
10570         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
10571         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10572         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
10573         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10574
10575 2006-08-22  Bruno Haible  <bruno@clisp.org>
10576
10577         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
10578         and lib_LTLIBRARIES like the other lib_* variables.
10579
10580 2006-08-22  Bruno Haible  <bruno@clisp.org>
10581
10582         * build-aux/x-to-1.in: New file, from GNU gettext.
10583
10584 2006-08-22  Bruno Haible  <bruno@clisp.org>
10585
10586         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
10587         <utmpx.h> exists.
10588
10589 2006-08-22  Bruno Haible  <bruno@clisp.org>
10590
10591         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
10592         <utmpx.h> exists.
10593
10594 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10595
10596         BeOS portability.
10597         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
10598         exist.
10599         Problem reported by Bruno Haible.
10600
10601 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10602
10603         Avoid the need for AC_LIBSOURCES in m4 macros.
10604         * modules/acl (EXTRA_DIST): Add acl.h.
10605         * modules/argmatch (Files): Add m4/argmatch.m4.
10606         (configure.ac): Add gl_ARGMATCH.
10607         (EXTRA_DIST): Renamed from lib_SOURCES, for
10608         consistency with the other modules.  Remove argmatch.c.
10609         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
10610         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
10611         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
10612         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
10613         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
10614         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
10615         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
10616         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
10617         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
10618         * modules/closeout (EXTRA_DIST): Add closeout.h.
10619         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
10620         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
10621         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
10622         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
10623         dirname.h; remove basename.c and stripslash.c.
10624         * modules/exclude (EXTRA_DIST): Add exclude.h.
10625         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
10626         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
10627         * modules/file-type (EXTRA_DIST): Add file-type.h.
10628         * modules/filemode (EXTRA_DIST): Add filemode.h.
10629         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
10630         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
10631         * modules/fpending (EXTRA_DIST): Add __fpending.h.
10632         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
10633         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
10634         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
10635         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
10636         * modules/getdate (EXTRA_DIST): Add getdate.c.
10637         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
10638         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
10639         * modules/getpass (EXTRA_DIST): Add getpass.h.
10640         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
10641         * modules/group-member (EXTRA_DIST): Add group-member.h.
10642         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
10643         * modules/hash (EXTRA_DIST): Add hash.h.
10644         * modules/human (EXTRA_DIST): Add human.h.
10645         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
10646         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
10647         * modules/lchown (EXTRA_DIST): Add lchown.h.
10648         * modules/long-options (EXTRA_DIST): Add long-options.h.
10649         * modules/lstat (EXTRA_DIST): Add lstat.h.
10650         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
10651         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
10652         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
10653         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
10654         * modules/memxor (EXTRA_DIST): Add memxor.h.
10655         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
10656         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
10657         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
10658         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
10659         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
10660         * modules/physmem (EXTRA_DIST): Add physmem.h.
10661         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
10662         * modules/posixver (EXTRA_DIST): Add posixver.h.
10663         * modules/quote (EXTRA_DIST): Add quote.h.
10664         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
10665         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
10666         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
10667         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
10668         regex_internal.h regexec.c.
10669         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
10670         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
10671         * modules/same (EXTRA_DIST): Add same.h.
10672         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
10673         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
10674         * modules/savedir (EXTRA_DIST): Add savedir.h.
10675         * modules/sha1 (EXTRA_DIST): Add sha1.h.
10676         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
10677         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
10678         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
10679         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
10680         * modules/strdup (EXTRA_DIST): Add strdup.h.
10681         * modules/strftime (EXTRA_DIST): Add strftime.h.
10682         * modules/strndup (EXTRA_DIST): Add strndup.h.
10683         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
10684         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
10685         * modules/time_r (EXTRA_DIST): Add time_r.h.
10686         * modules/timespec (EXTRA_DIST): Add timespec.h.
10687         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
10688         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
10689         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
10690         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
10691         * modules/userspec (EXTRA_DIST): Add userspec.h.
10692         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
10693         * modules/utimens (EXTRA_DIST): Add utimens.h.
10694         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
10695         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
10696         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
10697         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
10698         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
10699         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
10700         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
10701         * modules/yesno (EXTRA_DIST): Add yesno.h.
10702
10703 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10704
10705         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
10706
10707         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
10708         * m4/dev-ino.m4, same-inode.m4: Remove.
10709
10710         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
10711         * m4/acl.m4 (AC_FUNC_ACL):
10712         * m4/backupfile.m4 (gl_BACKUPFILE):
10713         * m4/c-strtod.m4 (gl_C99_STRTOLD):
10714         * m4/canon-host.m4 (gl_CANON_HOST):
10715         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
10716         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
10717         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
10718         * m4/cloexec.m4 (gl_CLOEXEC):
10719         * m4/close-stream.m4 (gl_CLOSE_STREAM):
10720         * m4/closeout.m4 (gl_CLOSEOUT):
10721         * m4/dirfd.m4 (gl_FUNC_DIRFD):
10722         * m4/dirname.m4 (gl_DIRNAME):
10723         * m4/exclude.m4 (gl_EXCLUDE):
10724         * m4/exitfail.m4 (gl_EXITFAIL):
10725         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
10726         * m4/file-type.m4 (gl_FILE_TYPE):
10727         * m4/filemode.m4 (gl_FILEMODE):
10728         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
10729         * m4/fpending.m4 (gl_FUNC_FPENDING):
10730         * m4/fprintftime.m4 (gl_FPRINTFTIME):
10731         * m4/fts.m4 (gl_FUNC_FTS):
10732         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
10733         * m4/getdate.m4 (gl_GETDATE):
10734         * m4/gethrxtime.m4 (gl_GETHRXTIME):
10735         * m4/getpagesize.m4 (gl_GETPAGESIZE):
10736         * m4/getpass.m4 (gl_FUNC_GETPASS):
10737         * m4/gettime.m4 (gl_GETTIME):
10738         * m4/getugroups.m4 (gl_GETUGROUPS):
10739         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
10740         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
10741         * m4/hard-locale.m4 (gl_HARD_LOCALE):
10742         * m4/hash.m4 (gl_HASH):
10743         * m4/idcache.m4 (gl_IDCACHE):
10744         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
10745         * m4/lchown.m4 (gl_FUNC_LCHOWN):
10746         * m4/long-options.m4 (gl_LONG_OPTIONS):
10747         * m4/lstat.m4 (gl_FUNC_LSTAT):
10748         * m4/md5.m4 (gl_MD5):
10749         * m4/memcasecmp.m4 (gl_MEMCASECMP):
10750         * m4/memcoll.m4 (gl_MEMCOLL):
10751         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
10752         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
10753         * m4/memxor.m4 (gl_MEMXOR):
10754         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
10755         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
10756         * m4/modechange.m4 (gl_MODECHANGE):
10757         * m4/mountlist.m4 (gl_MOUNTLIST):
10758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
10759         * m4/openat.m4 (gl_FUNC_OPENAT):
10760         * m4/pathmax.m4 (gl_PATHMAX):
10761         * m4/physmem.m4 (gl_PHYSMEM):
10762         * m4/posixtm.m4 (gl_POSIXTM):
10763         * m4/posixver.m4 (gl_POSIXVER):
10764         * m4/quote.m4 (gl_QUOTE):
10765         * m4/quotearg.m4 (gl_QUOTEARG):
10766         * m4/readtokens.m4 (gl_READTOKENS):
10767         * m4/readutmp.m4 (gl_READUTMP):
10768         * m4/regex.m4 (gl_REGEX):
10769         * m4/safe-read.m4 (gl_SAFE_READ):
10770         * m4/safe-write.m4 (gl_SAFE_WRITE):
10771         * m4/same.m4 (gl_SAME):
10772         * m4/save-cwd.m4 (gl_SAVE_CWD):
10773         * m4/savedir.m4 (gl_SAVEDIR):
10774         * m4/settime.m4 (gl_SETTIME):
10775         * m4/sha1.m4 (gl_SHA1):
10776         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
10777         * m4/stat-macros.m4 (gl_STAT_MACROS):
10778         * m4/stat-time.m4 (gl_STAT_TIME):
10779         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
10780         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
10781         * m4/strdup.m4 (gl_FUNC_STRDUP):
10782         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
10783         * m4/strndup.m4 (gl_FUNC_STRNDUP):
10784         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
10785         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
10786         * m4/time_r.m4 (gl_TIME_R):
10787         * m4/timespec.m4 (gl_TIMESPEC):
10788         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
10789         * m4/unlinkdir.m4 (gl_UNLINKDIR):
10790         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
10791         * m4/userspec.m4 (gl_USERSPEC):
10792         * m4/utimecmp.m4 (gl_UTIMECMP):
10793         * m4/utimens.m4 (gl_UTIMENS):
10794         * m4/xalloc.m4 (gl_XALLOC):
10795         * m4/xgetcwd.m4 (gl_XGETCWD):
10796         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
10797         * m4/xreadlink.m4 (gl_XREADLINK):
10798         * m4/xstrtod.m4 (gl_XSTRTOD):
10799         * m4/yesno.m4 (gl_YESNO):
10800         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
10801         to get the necessary .h files and whatnot.
10802
10803 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
10804             Bruno Haible  <bruno@clisp.org>
10805
10806         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
10807         /bin/sh understanding of '!' conditional negation.
10808
10809 2006-08-21  Jim Meyering  <jim@meyering.net>
10810
10811         * modules/openat (Depends-on): Really alphabetize.
10812
10813         * modules/acl (Depends-on): Add error and quote.
10814
10815         * check-module (find_included_lib_files): Add at-func.c to the
10816         ok-to-include-more-than-once white list.
10817
10818         * modules/openat (Depends-on): Add lstat.  Alphabetize.
10819
10820 2006-08-21  Bruno Haible  <bruno@clisp.org>
10821
10822         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10823         Emit a pkgdata_DATA variable only if some snippets add contents to it.
10824         Reported by Martin Lambers <marlam@marlam.de>.
10825
10826 2006-08-21  Bruno Haible  <bruno@clisp.org>
10827
10828         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
10829         specify an installation location, don't emit a noinst_LIBRARIES or
10830         noinst_LTLIBRARIES assignment.
10831
10832 2006-08-21  Bruno Haible  <bruno@clisp.org>
10833
10834         BeOS portability.
10835         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
10836         BeOS has mbrtowc() but no <wctype.h>.
10837
10838 2006-08-21  Bruno Haible  <bruno@clisp.org>
10839
10840         BeOS portability.
10841         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
10842         exist.
10843
10844 2006-08-21  Bruno Haible  <bruno@clisp.org>
10845
10846         BeOS portability.
10847         * lib/mbchar.h: Include <wctype.h> only if it exists.
10848
10849 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10850
10851         Remove files that are no longer needed by their respective modules.
10852         * m4/obstack.m4: Remove.
10853         * m4/strerror_r.m4: Remove.
10854         * m4/uint32_t.m4: Remove.
10855         * m4/uintptr_t.m4: Remove.
10856         * m4/ullong_max.m4: Remove.
10857         * m4/xstrtoimax.m4: Remove.
10858         * m4/xstrtoumax.m4: Remove.
10859
10860         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
10861         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
10862         dependencies now capture this.
10863
10864         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
10865         Do not use AC_LIBSOURCES, since gnulib modules now do this.
10866         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
10867         * m4/human.m4 (gl_HUMAN): Likewise.
10868         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
10869         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
10870
10871         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
10872
10873         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
10874         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
10875         stdint.
10876         * m4/human.m4 (gl_HUMAN): Likewise.
10877         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
10878         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
10879         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
10880         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
10881         * m4/xstrtol (gl_XSTRTOL): Likewise.
10882
10883         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
10884         AC_TYPE_LONG_LONG_INT.
10885         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
10886         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
10887         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
10888         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
10889
10890         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
10891         on stdbool.
10892
10893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
10894         (gl_PREREQ_XSTRTOUL): Remove.
10895
10896         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
10897
10898         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
10899         mode.
10900
10901 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10902
10903         Add and change modules to make it easier for coreutils to use
10904         gnulib-tool.
10905         * modules/backupfile (Files): Remove m4/d-ino.m4.
10906         (Depends-on): Add d-ino.
10907         * modules/cycle-check (Depends-on): Add stdint.
10908         (lib_SOURCES): Add cycle-check.h.
10909         * modules/d-ino: New module.
10910         * modules/d-type: New module.
10911         * modules/error (Files): Remove m4/strerror_r.m4.
10912         * modules/filemode (Files): Add m4/st_dm_mode.m4.
10913         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
10914         m4/inttypes_h.m4, m4/uintmax_t.m4.
10915         (Depends-on): Add stdint.
10916         (lib_SOURCES): Add fsusage.h.
10917         * modules/getcwd (Files): Remove d-ino.m4.
10918         (Depends-on): Add d-ino.
10919         * modules/getndelim2 (Depends-on): Add stdint.
10920         * modules/glob (Files): Remove m4/d-type.m4.
10921         (Depends-on): Add d-type.
10922         * modules/host-os: New module.
10923         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
10924         m4/inttypes_h.m4, m4/uintmax_t.m4.
10925         * Depends-on: Add stdint.
10926         (lib_SOURCES): Add human.h.
10927         * modules/inttostr (Files): Remove m4/intmax_t.m4,
10928         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
10929         m4/uintmax_t.m4, m4/ulonglong.m4.
10930         (Depends-on): Add stdint.
10931         (EXTRA_DIST): Add inttostr.h.
10932         * modules/lchmod: New module.
10933         * modules/link-follow: New module.
10934         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
10935         (Depends-on): Add lchmod.
10936         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
10937         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
10938         (Depends-on): Add stdint.
10939         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
10940         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
10941         (Depends-on): Add stdint.
10942         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
10943         * modules/perl: New module.
10944         * modules/regex (Depends-on): Add stdint.
10945         * modules/rmdir-errno: New module.
10946         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
10947         m4/intmax_t.m4.
10948         (Depends-on): Add stdint.
10949         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
10950         m4/uintmax_t.m4.
10951         (Depends-on): Add stdint.
10952         * modules/unlink-busy: New module.
10953         * modules/utimecmp (Depends-on): Add stdint.
10954         * modules/uptime: New module.
10955         * modules/winsz-ioctl: New module.
10956         * modules/winsz-termios: New module.
10957         * modules/xnanosleep (Depends-on): Add nanosleep.
10958         * modules/ullong_max: Remove.
10959         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
10960         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
10961         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
10962         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
10963         (Depends-on): Add inttypes.
10964         (lib_SOURCES): Add xstrtol.h.
10965         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
10966         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
10967         * MODULES.html.sh: Move 'assert' into the assert section.
10968         Move 'dummy' into the linking section.
10969         Remove ullong_max.
10970         Add section for compatibility checks for POSIX:2001 functions,
10971         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
10972         winsz-ioctl, and winsz-termios into it.
10973         Add lchmod.
10974         Add top-level Misc section and put host-os, perl, and uptime
10975         into it.
10976
10977 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10978
10979         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
10980         now assume the stdint module.  Do not include inttypes.h.
10981         * lib/fsusage.h: Likewise.
10982         * lib/getndelim2.c: Likewise.
10983         * lib/human.h: Likewise.
10984         * lib/inttostr.h: Likewise.
10985         * lib/obstack.c: Likewise.
10986         * lib/regex_internal.h: Likewise.
10987         * lib/tempname.c: Likewise.
10988         * lib/utimecmp.c: Likewise.
10989         * lib/xstrtol.h: Likewise.
10990
10991         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
10992
10993         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
10994         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
10995         * lib/xtime.h: Likewise.
10996
10997 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10998
10999         * modules/openat (Files): Add lib/fchmodat.c.
11000         Fixes problem reported by Jay Youngman.
11001
11002 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11003
11004         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
11005         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
11006
11007 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11008             Bruno Haible  <bruno@clisp.org>
11009
11010         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
11011         and is a script that invokes bison. Tighten the code. Add comments.
11012
11013 2006-08-18  Jim Meyering  <jim@meyering.net>
11014
11015         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
11016         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
11017         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
11018         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
11019
11020 2006-08-18  Bruno Haible  <bruno@clisp.org>
11021
11022         * modules/bison-i18n: New file.
11023         * MODULES.html.sh (Internationalization functions): Add it.
11024
11025 2006-08-18  Bruno Haible  <bruno@clisp.org>
11026
11027         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
11028         sys/statvfs.h. When getmntinfo was found, check its declaration and
11029         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
11030
11031 2006-08-18  Bruno Haible  <bruno@clisp.org>
11032
11033         * m4/bison-i18n.m4: New file, from bison.
11034
11035 2006-08-18  Bruno Haible  <bruno@clisp.org>
11036
11037         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
11038         (ME_DUMMY): Treat "kernfs" as a dummy.
11039         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
11040
11041 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11042
11043         Update from coreutils.
11044
11045         2006-08-15  Jim Meyering  <jim@meyering.net>
11046
11047         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
11048
11049         2006-01-17  Jim Meyering  <jim@meyering.net>
11050
11051         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
11052
11053         2006-01-11  Jim Meyering  <jim@meyering.net>
11054
11055         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
11056         Check for the lchmod function.
11057
11058 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11059
11060         Update from coreutils.
11061
11062         * lib/__fpending.h: Add copyright notice.
11063         * lib/fprintftime.h: Likewise.
11064         * lib/savedir.c: Use (C) in copyright notice.
11065         * lib/savedir.h: Likewise.
11066
11067         2006-08-15  Jim Meyering  <jim@meyering.net>
11068
11069         * lib/at-func.c: New file, with the logic of all emulated at-functions.
11070         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
11071         in support of the EXPECTED_ERRNO macro.
11072         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
11073         definitions.  Instead, define the appropriate symbols and include
11074         "at-func.c".
11075         * lib/mkdirat.c (mkdirat): Likewise.
11076         * lib/fchmodat.c (fchmodat): Likewise.
11077         (ENOSYS): Remove definition.
11078         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
11079         it.  Don't include "unistd--.h" -- it wasn't ever used.
11080
11081         2006-01-17  Jim Meyering  <jim@meyering.net>
11082
11083         Rewrite fts.c not to change the current working directory,
11084         by using openat, fstatat, fdopendir, etc..
11085
11086         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
11087         (HAVE_OPENAT_SUPPORT): Define.
11088         [_LIBC] (fchdir): Don't undef or define; no longer used.
11089         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
11090         Now, this `function' always succeeds, and consumes its file descriptor
11091         parameter -- so callers must not close such FDs.  Update callers.
11092         (diropen_fd, opendirat, cwd_advance_fd): New functions.
11093         (diropen): Add parameter, SP.  Adjust all callers.
11094         Implement using diropen_fd, rather than open.
11095         (fts_open): Initialize new member, fts_cwd_fd.
11096         Remove fts_rft-setting code.
11097         (fts_close): Close fts_cwd_fd, if necessary.
11098         (__opendir2): Define in terms of opendir or opendirat,
11099         depending on whether the FST_NOCHDIR flag is set.
11100         (fts_build): Since fts_safe_changedir consumes its FD, and since
11101         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
11102         and close the dup'd file descriptor upon failure.
11103         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
11104         (fts_safe_changedir): Tweak semantics to reflect that this function
11105         now calls cwd_advance_fd and hence consumes its FD argument.
11106         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
11107         [struct FTS] (fts_rft): Remove now-unused member.
11108         [struct FTS] (fts_cycle.state): Improve comment.
11109
11110         * lib/openat.c (openat_needs_fchdir): New function.
11111         * lib/openat.h (openat_needs_fchdir): Declare it.
11112
11113 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11114
11115         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
11116         Problem and fix reported by Pádraig Brady in
11117         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
11118
11119 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11120
11121         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
11122
11123 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11124
11125         * lib/memcoll.c (memcoll): Optimize for the common case where the
11126         arguments are bytewise equal.
11127
11128 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11129
11130         * doc/regexprops-generic.texi: Add a copyright notice.
11131
11132 2006-08-15  Bruno Haible  <bruno@clisp.org>
11133
11134         * modules/tmpdir (License): Change to LGPL.
11135
11136 2006-08-15  Bruno Haible  <bruno@clisp.org>
11137
11138         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
11139         module.
11140
11141 2006-08-14  Simon Josefsson  <jas@extundo.com>
11142
11143         * config/srclist.txt: Add gnupload.
11144
11145 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11146
11147         Change copyright notice from LGPL 2 to GPL 2, since that's the
11148         standard form used in the gnulib repository.
11149         * tests/test-lock.c: Likewise.
11150         * tests/test-stdint.c: Likewise.
11151         * tests/test-tls.c: Likewise.
11152
11153         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
11154         prelude-manager.  User shorter URLs for GNU projects, without '?'.
11155         Add copyright notice.
11156
11157         * check-module: Add copyright notice.  Output a copyright
11158         notice if "--version" is specified.
11159         * modules/COPYING: New file.
11160         * tests/test-getaddrinfo.c: Add copyright notice.
11161         * tests/test-verify.c: Likewise.
11162
11163 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11164
11165         Change copyright notice from LGPL 2 to GPL 2, since that's the
11166         standard form used in the gnulib repository.
11167         * lib/lock.c: LGPL -> GPL.
11168         * lib/lock.h: Likewise.
11169         * lib/strnlen1.c: Likewise.
11170         * lib/strnlen1.h: Likewise.
11171         * lib/tls.c: Likewise.
11172         * lib/tls.h: Likewise.
11173         * lib/tmpdir.c: Likewise.
11174
11175         * lib/TODO: Remove; this belongs only in coreutils.
11176
11177 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11178
11179         Add copyright notices to long-enough files that lack them, since
11180         otherwise the files aren't clearly free.  Use the same notice that
11181         getdate.texi already uses.
11182         * doc/alloca-opt.texi: Add copyright notice.
11183         * doc/alloca.texi: Likewise.
11184         * doc/ctime.texi: Likewise.
11185         * doc/functions.texi: Likewise.
11186         * doc/gcd.texi: Likewise.
11187         * doc/gnulib-tool.texi: Likewise.
11188         * doc/inet_ntoa.texi: Likewise.
11189         * doc/visibility.texi: Likewise.
11190
11191         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
11192         * doc/quote.texi: Add copyright notice.
11193
11194         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
11195         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
11196         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
11197         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
11198         is now obsolete, and give a pointer to the Sun list.
11199         Add copyright notice.
11200
11201 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11202
11203         * config/srclistvars.sh: Add copyright notice.
11204
11205 2006-08-14  Eric Blake  <ebb9@byu.net>
11206
11207         Import the following change from libc:
11208
11209         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11210
11211         Upstream bug 2997.
11212         * lib/misc/error.c: Add space between program name and message if file
11213         name is missing.
11214
11215 2006-08-12  Karl Berry  <karl@gnu.org>
11216
11217         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
11218         remove, these originate in gnulib now.
11219
11220 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11221
11222         * doc/Makefile (standards.info standards.html standards.dvi):
11223         Also depend on make-stds.texi.
11224
11225 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11226
11227         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
11228         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
11229
11230         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
11231         in wchar_t.  Problem reported by Eric Blake.
11232
11233         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
11234         LEN is smaller than SIZE.  Suggested by Bruno Haible.
11235         Also, help the compiler to keep LEN in a register.
11236
11237 2006-08-11  Eric Blake  <ebb9@byu.net>
11238
11239         * users.txt: Sort.  Add tar.
11240
11241 2006-08-11  Bruno Haible  <bruno@clisp.org>
11242
11243         * users.txt: New file.
11244
11245 2006-08-11  Bruno Haible  <bruno@clisp.org>
11246
11247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
11248         before <wchar.h>. Needed for OSF/1 and BSD/OS.
11249
11250 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11251
11252         * modules/snprintf (Depends-on): Remove minmax.
11253         (Maintainer): Add self and Bruno.
11254
11255 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11256
11257         * lib/.cppi-disable: Add snprintf.h, socket_.h.
11258         * lib/snprintf.c: Include <errno.h> and <limits.h>.
11259         (EOVERFLOW): Define if the system does not.
11260         Do not include "minmax.h"; it wasn't used.
11261         (snprintf): Don't assume size_t promotes to an unsigned type.
11262         Fix bug when generated string was too long for the buffer: the
11263         buffer's contents are supposed to be the initial prefix of the
11264         output.  Don't assume vasnprintf returns EOVERFLOW if the size
11265         exceeds INT_MAX; do the check ourselves.
11266
11267         Import the following changes from libc:
11268
11269         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11270
11271         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
11272         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
11273         set wc to the byte which couldn't be converted.
11274         (re_string_reconstruct): Don't clear valid_raw_len before calling
11275         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11276         tip_context using re_string_context_at.
11277
11278         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
11279
11280         * lib/posix/regex.h: g++ still cannot handled [restrict].
11281
11282         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
11283
11284         * lib/posix/regex.h: Remove special handling for VMS.
11285
11286 2006-08-10  Jim Meyering  <jim@meyering.net>
11287
11288         * modules/same-inode: New module.
11289         * modules/dev-ino: New module.
11290         * modules/cycle-check: Depend on these modules, rather than simply
11291         including their .h files.
11292         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
11293         required via m4/cycle-check.m4.
11294         * modules/same: Depend on new same-inode module, rather than
11295         including same-inode.h.
11296         * modules/chdir-safer: New file.
11297
11298         * modules/chown (Depends-on): Add stat-macros.
11299
11300 2006-08-10  Jim Meyering  <jim@meyering.net>
11301
11302         * m4/cycle-check.m4: New file.
11303         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
11304         * m4/dev-ino.m4, m4/same-inode.m4: New files.
11305
11306 2006-08-10  Eric Blake  <ebb9@byu.net>
11307
11308         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
11309         in from original proposal.
11310
11311 2006-08-10  Eric Blake  <ebb9@byu.net>
11312         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11313
11314         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
11315         namespace.
11316
11317 2006-08-10  Bruno Haible  <bruno@clisp.org>
11318
11319         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
11320         as well.
11321
11322 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11323
11324         Sync from coreutils.
11325
11326         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
11327
11328         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
11329         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
11330
11331 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11332
11333         * modules/restrict: Remove; no longer needed now that we assume
11334         Autoconf 2.59 or later.
11335         * MODULES.html.sh: Remove 'restrict'.
11336         * modules/argp (Depends-on): Remove 'restrict'.
11337         * modules/base64 (Depends-on): Likewise.
11338         * modules/gc (Depends-on): Likewise.
11339         * modules/getaddrinfo (Depends-on): Likewise.
11340         * modules/glob (Depends-on): Likewise.
11341         * modules/inet_ntop (Depends-on): Likewise.
11342         * modules/inet_pton (Depends-on): Likewise.
11343         * modules/memxor (Depends-on): Likewise.
11344         * modules/regex (Depends-on): Likewise.
11345         * modules/strtok_r (Depends-on): Likewise.
11346         * modules/time_r (Depends-on): Likewise.
11347
11348 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11349
11350         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
11351         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
11352         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11353         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
11354         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11355         * m4/memxor.m4 (gl_MEMXOR): Likewise.
11356         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
11357         gl_C_RESTRICT replaced by AC_C_RESTRICT.
11358
11359         Merge from coreutils.
11360         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
11361         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
11362         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11363         * m4/time_r.m4 (gl_TIME_R): Likewise.
11364
11365 2006-08-09  Karl Berry  <karl@gnu.org>
11366
11367         * config/srclist.txt: no more gettext-tools, per Bruno.
11368
11369 2006-08-08  Eric Blake  <ebb9@byu.net>
11370
11371         * modules/verror: New module.
11372         * MODULES.html.sh: Document it.
11373
11374 2006-08-08  Eric Blake  <ebb9@byu.net>
11375
11376         * lib/verror.h, lib/verror.c: New files.
11377
11378 2006-08-08  Eric Blake  <ebb9@byu.net>
11379
11380         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
11381         verror_at_line output complies with GNU Coding Standards even when
11382         file is NULL.
11383
11384 2006-08-07  Bruno Haible  <bruno@clisp.org>
11385
11386         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
11387         versions of AIX.
11388         Reported by Ralf Wildenhues.
11389
11390 2006-08-07  Bruno Haible  <bruno@clisp.org>
11391
11392         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
11393         in an AC_DEFUN. Needed so that the autoconf snippets can use
11394         AC_REQUIRE.
11395
11396 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11397
11398         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11399         Initialize pkgdata_DATA.
11400         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
11401         overriding it.
11402
11403 2006-08-06  Eric Blake  <ebb9@byu.net>
11404
11405         * lib/error.h: Fold in some upstream changes from glibc.
11406         * lib/error.c: Likewise.
11407
11408 2006-08-04  Bruno Haible  <bruno@clisp.org>
11409
11410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11411         Make the mostlyclean-local rule depend on mostlyclean-generic.
11412         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
11413
11414 2006-07-31  Bruno Haible  <bruno@clisp.org>
11415
11416         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
11417         <stdlib.h>, <string.h>.
11418
11419 2006-07-30  Bruno Haible  <bruno@clisp.org>
11420
11421         * modules/readlink (License): Change to LGPL.
11422
11423 2006-07-30  Bruno Haible  <bruno@clisp.org>
11424
11425         * modules/javaversion (Makefile.am): Distribute javaversion.java and
11426         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
11427         set PKGDATADIR to point to it.
11428
11429 2006-07-30  Bruno Haible  <bruno@clisp.org>
11430
11431         * modules/csharpexec (configure.ac): Comment out macro invocation.
11432         * modules/javaexec (configure.ac): Likewise.
11433         * modules/javacomp-script (configure.ac): Likewise.
11434
11435         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
11436
11437 2006-07-30  Bruno Haible  <bruno@clisp.org>
11438
11439         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
11440         linked-list.
11441
11442 2006-07-30  Bruno Haible  <bruno@clisp.org>
11443
11444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
11445
11446 2006-07-30  Bruno Haible  <bruno@clisp.org>
11447
11448         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11449         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
11450         get removed.
11451
11452 2006-07-29  Bruno Haible  <bruno@clisp.org>
11453
11454         Make it possible for gnulib-tool to work with locally modified or
11455         augmented gnulib repositories.
11456         * gnulib-tool (func_usage): Document --local-dir option.
11457         (local_gnulib_dir): New variable.
11458         Handle --local-dir option.
11459         (func_lookup_file): New function.
11460         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
11461         (func_get_description, func_get_filelist, func_get_description,
11462         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
11463         func_get_automake_snippet, func_get_include_directive,
11464         func_get_license, func_get_maintainer): Use func_lookup_file.
11465         (func_import, func_create_testdir): Use func_lookup_file.
11466
11467 2006-07-29  Bruno Haible  <bruno@clisp.org>
11468
11469         * modules/setenv (Depends-on): Add unistd.
11470
11471 2006-07-29  Bruno Haible  <bruno@clisp.org>
11472
11473         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
11474
11475 2006-07-29  Bruno Haible  <bruno@clisp.org>
11476
11477         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
11478
11479 2006-07-29  Bruno Haible  <bruno@clisp.org>
11480
11481         * gnulib-tool (import, update): If there is no Makefile.am, look at
11482         aclocal.m4, instead of bailing out.
11483
11484 2006-07-29  Bruno Haible  <bruno@clisp.org>
11485
11486         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
11487         Categorize the options by when they are useful.
11488
11489 2006-07-29  Bruno Haible  <bruno@clisp.org>
11490
11491         * gnulib-tool (func_usage): Document option --no-libtool.
11492         Handle option --no-libtool.
11493         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
11494         for changed semantics of $libtool variable.
11495         (func_import): Likewise. If libtool is not used, show this through
11496         an option --no-libtool.
11497         (func_create_testdir): Update.
11498
11499 2006-07-29  Bruno Haible  <bruno@clisp.org>
11500
11501         * gnulib-tool (func_import): Extend error message about missing
11502         --doc-base.
11503
11504 2006-07-29  Bruno Haible  <bruno@clisp.org>
11505
11506         * gnulib-tool (func_import): Don't create the $docbase directory if
11507         there is no file to store there.
11508
11509 2006-07-29  Bruno Haible  <bruno@clisp.org>
11510
11511         * gnulib-tool (autoconf_minversion): If a --dir option is given and
11512         relevant, look for configure.ac there, not in the current directory.
11513         Also use a simple search for AC_PREREQ, not "autoconf --trace".
11514
11515 2006-07-29  Bruno Haible  <bruno@clisp.org>
11516
11517         * gnulib-tool (SORT): New variable.
11518         (func_usage): Undocument --assume-autoconf option.
11519         Remove --assume-autoconf option handling.
11520         (autoconf_minversion): Determine from the contents of configure.ac.
11521         (func_import): Remove autoconf_minversion handling.
11522         Suggested by Eric Blake.
11523
11524 2006-07-29  Bruno Haible  <bruno@clisp.org>
11525
11526         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
11527
11528 2006-07-29  Bruno Haible  <bruno@clisp.org>
11529
11530         * config/srclist.txt (*setenv.[ch]): Remove rules.
11531
11532 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11533
11534         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
11535
11536 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11537
11538         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
11539         arpa/inet.h.
11540
11541 2006-07-28  Simon Josefsson  <jas@extundo.com>
11542
11543         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
11544         * modules/inet_pton (Depends-on): Likewise.
11545
11546 2006-07-28  Simon Josefsson  <jas@extundo.com>
11547
11548         * m4/netinet_in_h.m4: New file.
11549
11550 2006-07-28  Simon Josefsson  <jas@extundo.com>
11551
11552         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
11553         #include's.
11554
11555 2006-07-28  Simon Josefsson  <jas@extundo.com>
11556
11557         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
11558         #include's.
11559
11560 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
11561
11562         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
11563         setgid on directories only if they set these bits.
11564         * lib/modechange.h: Remove obsolete comment about masks.
11565
11566 2006-07-28  Eric Blake  <ebb9@byu.net>
11567
11568         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
11569         macro expansion.
11570
11571 2006-07-28  Bruno Haible  <bruno@clisp.org>
11572
11573         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
11574
11575 2006-07-28  Bruno Haible  <bruno@clisp.org>
11576
11577         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
11578
11579 2006-07-28  Bruno Haible  <bruno@clisp.org>
11580
11581         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11582         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
11583         Define fallbacks.
11584         Avoids link error on FreeBSD 4.x.
11585         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11586
11587         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
11588         encoding.
11589         * lib/mbswidth.c (iswcntrl): Likewise.
11590
11591 2006-07-27  Bruno Haible  <bruno@clisp.org>
11592
11593         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
11594         test.
11595
11596 2006-07-27  Bruno Haible  <bruno@clisp.org>
11597
11598         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
11599         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
11600         defined.
11601
11602 2006-07-26  Eric Blake  <ebb9@byu.net>
11603
11604         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
11605
11606 2006-07-26  Eric Blake  <ebb9@byu.net>
11607
11608         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
11609         like mingw that lack mkstemp.
11610         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
11611         avoid compilation warning on mingw.
11612
11613 2006-07-26  Bruno Haible  <bruno@clisp.org>
11614
11615         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
11616         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
11617         INT_FAST*_MIN, INTPTR_MIN.
11618
11619 2006-07-25  Bruno Haible  <bruno@clisp.org>
11620
11621         * modules/version-etc (Depends-on): Add stdarg.
11622
11623 2006-07-25  Bruno Haible  <bruno@clisp.org>
11624
11625         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
11626         complex commands.
11627
11628 2006-07-25  Bruno Haible  <bruno@clisp.org>
11629
11630         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
11631         defined in <stdarg.h> or config.h.
11632
11633 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11634
11635         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
11636         (gl_STDIO_SAFER): Remove.
11637
11638 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11639
11640         * MODULES.html.sh (File stream based Input/Output):
11641         Add fopen-safer, tmpfile-safer; remove stdio-safer.
11642         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
11643         * modules/fopen-safer, modules/tmpfile-safer: New files.
11644         * modules/stdio-safer: Remove.
11645
11646 2006-07-24  Bruno Haible  <bruno@clisp.org>
11647
11648         * modules/tmpdir: New file.
11649         * MODULES.html.sh (File system functions): Add it.
11650
11651 2006-07-24  Bruno Haible  <bruno@clisp.org>
11652
11653         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
11654         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
11655
11656 2006-07-24  Bruno Haible  <bruno@clisp.org>
11657
11658         * modules/clean-temp: New file.
11659
11660 2006-07-24  Bruno Haible  <bruno@clisp.org>
11661
11662         * m4/tmpdir.m4: New file, from GNU gettext.
11663
11664 2006-07-24  Bruno Haible  <bruno@clisp.org>
11665
11666         * lib/tmpdir.h: New file, from GNU gettext.
11667         * lib/tmpdir.c: New file, from GNU gettext.
11668
11669 2006-07-24  Bruno Haible  <bruno@clisp.org>
11670
11671         * lib/clean-temp.h: New file, from GNU gettext.
11672         * lib/clean-temp.c: New file, from GNU gettext.
11673
11674 2006-07-23  Eric Blake  <ebb9@byu.net>
11675
11676         * modules/stdio-safer (Files): Add tmpfile-safer.c.
11677         (Depends-on): Add binary-io.
11678
11679 2006-07-23  Eric Blake  <ebb9@byu.net>
11680
11681         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
11682
11683 2006-07-23  Eric Blake  <ebb9@byu.net>
11684
11685         * lib/tmpfile-safer.c: New file.
11686         * lib/stdio-safer.h (fopen_safer): Add prototype.
11687         * lib/stdio--.h (tmpfile): Make safer.
11688
11689 2006-07-23  Bruno Haible  <bruno@clisp.org>
11690
11691         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
11692         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
11693         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
11694         gl_linked_remove_at): Use it.
11695
11696 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11697         and Simon Josefsson <jas@extundo.com>
11698
11699         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
11700
11701         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
11702
11703 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11704
11705         * modules/close-stream: New file.
11706         * modules/closeout (Description): Make it clear that it exits
11707         with a diagnostic on error.
11708         (Depends-on): Add close-stream.  Remove fpending, stdbool.
11709         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
11710
11711 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11712
11713         * m4/close-stream.m4: New file.
11714
11715 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11716
11717         * lib/close-stream.c, lib/close-stream.h: New files.
11718
11719 2006-07-22  Bruno Haible  <bruno@clisp.org>
11720
11721         Merge from GNU gettext 0.15.
11722
11723         2006-05-01  Bruno Haible  <bruno@clisp.org>
11724
11725                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
11726
11727         2006-07-22  Bruno Haible  <bruno@clisp.org>
11728
11729                 * modules/javaversion: New file.
11730                 * MODULES.html.sh (Java): Add javaversion.
11731
11732         2006-03-12  Bruno Haible  <bruno@clisp.org>
11733
11734                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
11735
11736         2005-12-04  Bruno Haible  <bruno@clisp.org>
11737
11738                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
11739                 (untested).
11740
11741         2006-06-21  Bruno Haible  <bruno@clisp.org>
11742
11743                 Avoid warnings from recent versions of mcs.
11744                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
11745                 -o, -L, -r any more. Use options documented since mcs-1.0
11746                 instead. Similarly for -g.
11747
11748         2005-12-04  Bruno Haible  <bruno@clisp.org>
11749
11750                 * build-aux/csharpcomp.sh.in: Suffix for resources is
11751                 .resources, not .resource.
11752
11753         2005-07-09  Bruno Haible  <bruno@clisp.org>
11754
11755                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
11756                 add a .dll suffix.
11757                 Reported by Mark Junker <mjscod@gmx.de>.
11758
11759         2006-07-22  Bruno Haible  <bruno@clisp.org>
11760
11761                 * modules/gettext: Upgrade to gettext-0.15.
11762                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
11763                 m4/visibility.m4.
11764                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
11765
11766 2006-07-22  Bruno Haible  <bruno@clisp.org>
11767
11768         Merge from GNU gettext 0.15.
11769
11770         2006-03-25  Bruno Haible  <bruno@clisp.org>
11771
11772                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
11773
11774         2006-07-21  Bruno Haible  <bruno@clisp.org>
11775
11776                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
11777                 "1.1".
11778
11779         2006-05-09  Bruno Haible  <bruno@clisp.org>
11780
11781                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
11782                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
11783                 for the conftestver execution.
11784
11785         2006-05-01  Bruno Haible  <bruno@clisp.org>
11786
11787                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
11788                 optional target-version argument. Verify that the compiler
11789                 groks source of the specified source-version, or add -source
11790                 option as necessary. Verify that the compiler produces
11791                 bytecode in the specified target-version, or add -target and
11792                 -source options as necessary. Make the result of the test
11793                 available as variable CONF_JAVAC. Also log error output in
11794                 config.log.
11795
11796         2006-03-11  Bruno Haible  <bruno@clisp.org>
11797
11798                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
11799
11800         2006-05-09  Bruno Haible  <bruno@clisp.org>
11801
11802                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
11803                 CLASSPATH_SEPARATOR to a semicolon.
11804
11805         2006-03-12  Bruno Haible  <bruno@clisp.org>
11806
11807                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
11808                 available as variable CONF_JAVA, for subsequent autoconf
11809                 tests. Also log error output in config.log.
11810
11811         2006-07-19  Bruno Haible  <bruno@clisp.org>
11812
11813                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
11814                 that getline works on glibc2 systems. Needed to avoid trouble
11815                 in relocatable.c.
11816                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
11817
11818         2005-12-04  Bruno Haible  <bruno@clisp.org>
11819
11820                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
11821                 launcher (untested).
11822
11823         2005-12-04  Bruno Haible  <bruno@clisp.org>
11824
11825                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
11826
11827         2006-07-22  Bruno Haible  <bruno@clisp.org>
11828
11829                 * gettext.m4: Update from GNU gettext-0.15.
11830                 * nls.m4: Likewise.
11831                 * po.m4: Likewise.
11832                 * inttypes-pri.m4: Likewise.
11833                 * inttypes-h.m4: Renamed from inttypes.m4.
11834                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
11835
11836 2006-07-22  Bruno Haible  <bruno@clisp.org>
11837
11838         Merge from GNU gettext 0.15.
11839
11840         2005-07-05  Bruno Haible  <bruno@clisp.org>
11841
11842                 * printf-args.c (printf_fetchargs): Work around broken
11843                 definition of wint_t on mingw.
11844
11845         2005-02-12  Bruno Haible  <bruno@clisp.org>
11846
11847                 * xallocsa.h: Add extern "C" for C++.
11848
11849         2006-05-17  Bruno Haible  <bruno@clisp.org>
11850
11851                 Cygwin portability.
11852                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
11853
11854         2006-04-30  Bruno Haible  <bruno@clisp.org>
11855
11856                 * progreloc.c: Include <mach-o/dyld.h> if available.
11857                 (find_executable): Use _NSGetExecutablePath when possible.
11858
11859         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
11860
11861                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
11862                 function.
11863
11864         2005-12-29  Bruno Haible  <bruno@clisp.org>
11865
11866                 * progreloc.c (set_program_name_and_installdir): Fix
11867                 compilation error.
11868
11869         2005-12-04  Bruno Haible  <bruno@clisp.org>
11870
11871                 Cygwin portability.
11872                 * progreloc.c: Include <windows.h> also on Cygwin.
11873                 (find_executable): Add support for Cygwin.
11874                 (set_program_name_and_installdir): Handle also platforms with
11875                 nonempty EXEEXT.
11876
11877         2006-07-11  Bruno Haible  <bruno@clisp.org>
11878
11879                 * javacomp.c: Fix a comment.
11880                 Reported by Jim Meyering.
11881
11882         2006-04-30  Bruno Haible  <bruno@clisp.org>
11883
11884                 * javacomp.h (compile_java_class): Add source_version,
11885                 target_version arguments.
11886                 * javacomp.c: Rewritten to choose only a compiler that
11887                 respects the specified source_version and target_version.
11888
11889         2006-06-27  Bruno Haible  <bruno@clisp.org>
11890
11891                 Assume correct S_ISDIR macro.
11892                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
11893
11894         2006-07-22  Bruno Haible  <bruno@clisp.org>
11895
11896                 * javaversion.h: New file, from GNU gettext.
11897                 * javaversion.c: New file, from GNU gettext.
11898                 * javaversion.java: New file, from GNU gettext.
11899                 * javaversion.class: New file, from GNU gettext.
11900
11901         2006-05-17  Bruno Haible  <bruno@clisp.org>
11902
11903                 Cygwin portability.
11904                 * javaexec.c (execute_java_class): Test for jview program
11905                 also on Cygwin.
11906
11907         2006-04-09  Bruno Haible  <bruno@clisp.org>
11908
11909                 * fatal-signal.c: Don't include string.h.
11910                 (at_fatal_signal): Use a copying loop instead of memcpy.
11911
11912         2005-12-04  Bruno Haible  <bruno@clisp.org>
11913
11914                 * csharpexec.c: Add support for 'clix' launcher (untested).
11915                 (execute_csharp_using_sscli): New function.
11916                 (execute_csharp_program): Call it.
11917
11918         2006-06-21  Bruno Haible  <bruno@clisp.org>
11919
11920                 Avoid warnings from recent versions of mcs.
11921                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
11922                 -o, -L, -r any more. Use options documented since mcs-1.0
11923                 instead. Similarly for -g.
11924
11925         2005-07-09  Bruno Haible  <bruno@clisp.org>
11926
11927                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
11928                 add a .dll suffix.
11929                 Reported by Mark Junker <mjscod@gmx.de>.
11930
11931         2006-06-17  Bruno Haible  <bruno@clisp.org>
11932
11933                 * config.charset: Update for NetBSD 3.0.
11934
11935         2006-05-17  Bruno Haible  <bruno@clisp.org>
11936
11937                 Cygwin portability.
11938                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
11939
11940         2006-05-16  Bruno Haible  <bruno@clisp.org>
11941
11942                 * localcharset.c [CYGWIN]: Include <windows.h>.
11943                 (get_charset_aliases): For Cygwin, return the same CPxxx
11944                 aliases list as under WIN32.
11945                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
11946                 the environment variables. Fall back to GetACP().
11947
11948         2006-04-05  Bruno Haible  <bruno@clisp.org>
11949
11950                 * config.charset: Update Juan Manuel Guerrero's address.
11951
11952         2005-02-12  Bruno Haible  <bruno@clisp.org>
11953
11954                 * allocsa.h: Add extern "C" for C++.
11955
11956         2005-02-10  Bruno Haible  <bruno@clisp.org>
11957
11958                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
11959                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
11960
11961         2006-07-22  Bruno Haible  <bruno@clisp.org>
11962
11963                 * gettext.h: Update to GNU gettext-0.15.
11964
11965 2006-07-22  Bruno Haible  <bruno@clisp.org>
11966
11967         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
11968         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
11969         lib-prefix.m4, longdouble.m4, ssize_t.m4.
11970
11971 2006-07-21  Eric Blake  <ebb9@byu.net>
11972
11973         * modules/stdlib-safer: New file.
11974         * MODULES.html.sh (File stream based Input/Output): Add
11975         stdlib-safer.
11976
11977 2006-07-21  Eric Blake  <ebb9@byu.net>
11978
11979         * lib/stdlib-safer.h: New file from coreutils, required by
11980         stdlib--.h.
11981
11982 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
11983
11984         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
11985
11986 2006-07-20  Bruno Haible  <bruno@clisp.org>
11987
11988         * gnulib-tool: Recognize new option --assume-autoconf.
11989         (autoconf_minversion): New variable.
11990         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
11991
11992 2006-07-20  Bruno Haible  <bruno@clisp.org>
11993
11994         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
11995
11996 2006-07-19  Derek R. Price  <derek@ximbiot.com>
11997
11998         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
11999         Reindent and repaginate.
12000
12001 2006-07-19  Derek Price  <derek@ximbiot.com>
12002
12003         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
12004         Correct grammar.
12005
12006 2006-07-17  Bruno Haible  <bruno@clisp.org>
12007
12008         * modules/list: New file.
12009         * modules/array-list: New file.
12010         * modules/carray-list, modules/carray-list-tests: New files.
12011         * modules/linked-list, modules/linked-list-tests: New files.
12012         * modules/avltree-list, modules/avltree-list-tests: New files.
12013         * modules/rbtree-list, modules/rbtree-list-tests: New files.
12014         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
12015         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
12016         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
12017         * modules/oset: New file.
12018         * modules/array-oset: New file.
12019         * modules/avltree-oset, modules/avltree-oset-tests: New files.
12020         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
12021         * tests/test-carray_list.c: New file.
12022         * tests/test-linked_list.c: New file.
12023         * tests/test-avltree_list.c: New file.
12024         * tests/test-rbtree_list.c: New file.
12025         * tests/test-linkedhash_list.c: New file.
12026         * tests/test-avltreehash_list.c: New file.
12027         * tests/test-rbtreehash_list.c: New file.
12028         * tests/test-avltree_oset.c: New file.
12029         * tests/test-rbtree_oset.c: New file.
12030         * MODULES.html.sh (Container data structures): New section.
12031
12032 2006-07-17  Bruno Haible  <bruno@clisp.org>
12033
12034         * m4/gl_list.m4: New file.
12035
12036 2006-07-17  Bruno Haible  <bruno@clisp.org>
12037
12038         * lib/gl_list.h: New file.
12039         * lib/gl_list.c: New file.
12040         * lib/gl_array_list.h: New file.
12041         * lib/gl_array_list.c: New file.
12042         * lib/gl_carray_list.h: New file.
12043         * lib/gl_carray_list.c: New file.
12044         * lib/gl_linked_list.h: New file.
12045         * lib/gl_linked_list.c: New file.
12046         * lib/gl_anylinked_list1.h: New file.
12047         * lib/gl_anylinked_list2.h: New file.
12048         * lib/gl_avltree_list.h: New file.
12049         * lib/gl_avltree_list.c: New file.
12050         * lib/gl_anyavltree_list1.h: New file.
12051         * lib/gl_anyavltree_list2.h: New file.
12052         * lib/gl_rbtree_list.h: New file.
12053         * lib/gl_rbtree_list.c: New file.
12054         * lib/gl_anyrbtree_list1.h: New file.
12055         * lib/gl_anyrbtree_list2.h: New file.
12056         * lib/gl_anytree_list1.h: New file.
12057         * lib/gl_anytree_list2.h: New file.
12058         * lib/gl_linkedhash_list.h: New file.
12059         * lib/gl_linkedhash_list.c: New file.
12060         * lib/gl_anyhash_list1.h: New file.
12061         * lib/gl_anyhash_list2.h: New file.
12062         * lib/gl_avltreehash_list.h: New file.
12063         * lib/gl_avltreehash_list.c: New file.
12064         * lib/gl_rbtreehash_list.h: New file.
12065         * lib/gl_rbtreehash_list.c: New file.
12066         * lib/gl_anytreehash_list1.h: New file.
12067         * lib/gl_anytreehash_list2.h: New file.
12068
12069         * lib/gl_oset.h: New file.
12070         * lib/gl_oset.c: New file.
12071         * lib/gl_array_oset.h: New file.
12072         * lib/gl_array_oset.c: New file.
12073         * lib/gl_avltree_oset.h: New file.
12074         * lib/gl_avltree_oset.c: New file.
12075         * lib/gl_rbtree_oset.h: New file.
12076         * lib/gl_rbtree_oset.c: New file.
12077         * lib/gl_anytree_oset.h: New file.
12078
12079 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12080
12081         * m4/mkancesdirs.m4: New file.
12082         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
12083         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
12084         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
12085         it.
12086
12087 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12088
12089         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
12090         * lib/mkancesdirs.h: New files.
12091         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
12092         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
12093         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
12094         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
12095         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
12096         callers changed.  Revamp internals significantly, by not
12097         attempting to create directories that are temporarily more
12098         permissive than the final results.  Do not attempt to use
12099         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
12100         This removes some race conditions, fixes some bugs, and simplifies
12101         things.  Use new dirchownmod function to do owner and mode changes.
12102         * lib/mkdir-p.h: Likewise.
12103         * lib/modechange.c (octal_to_mode): New function.
12104         (struct mode_change): New member mentioned.
12105         (make_node_op_equals): New arg mentioned.  All callers changed.
12106         (mode_compile): Keep track of which mode bits the user has explicitly
12107         mentioned.
12108         (mode_adjust): New arg DIR, so that we implement the X op correctly.
12109         New arg PMODE_BITS, to keep track of which mode bits the user
12110         mentioned; it treats S_ISUID and S_ISGID speciall.
12111         All callers changed.
12112         * lib/modechange.h: Likewise.
12113
12114 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12115
12116         * MODULES.html.sh: Add mkancestors.
12117         * modules/mkancesdirs: New module.
12118         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
12119         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
12120         The chdir-safer and afs files are now orphans; I'll remove them
12121         unless someone speaks up.
12122         Add lib/dirchownmod.c, lib/dirchownmod.h.
12123         (Depends-on): Remove alloca, chown, save-cwd, dirname.
12124         Add lchown, mkancesdirs.
12125         (Maintainer): Add self.
12126
12127 2006-07-15  Karl Berry  <karl@gnu.org>
12128
12129         * gnulib-tool: help message wording/arrangement.
12130
12131 2006-07-14  Simon Josefsson  <jas@extundo.com>
12132
12133         * doc/gnulib.texi (Libtool and Windows): New section.
12134
12135 2006-07-12  Simon Josefsson  <jas@extundo.com>
12136
12137         * modules/gendocs (License): Fix license, approved by Karl.
12138
12139 2006-07-12  Eric Blake  <ebb9@byu.net>
12140
12141         * MODULES.html.sh: Add gendocs.
12142
12143 2006-07-11  Eric Blake  <ebb9@byu.net>
12144
12145         * modules/fdl: New module, to install doc/fdl.texi.
12146         * MODULES.html.sh: Add new section for documentation modules.
12147         * gnulib-tool: Avoid space-tab.
12148         (--doc-base): New option, to manage files from doc.
12149
12150 2006-07-11  Eric Blake  <ebb9@byu.net>
12151
12152         * m4/absolute-header.m4: Fix comments to match recent change.
12153
12154 2006-07-11  Eric Blake  <ebb9@byu.net>
12155
12156         * gnulib-tool: List --doc-base before --tests-base.
12157
12158 2006-07-11  Derek R. Price  <derek@ximbiot.com>
12159
12160         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
12161
12162 2006-07-11  Bruno Haible  <bruno@clisp.org>
12163
12164         * README: Mention where to put documentation.
12165
12166 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12167
12168         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
12169
12170 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12171
12172         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
12173         to stdint.m4.
12174
12175 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12176
12177         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
12178         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
12179         "no/such/file/stdint.h" when there is no such file, so that
12180         the resulting C code can be parsed by dodgy compilers.
12181         Problems reported by Bob Proulx.
12182
12183 2006-07-10  Derek R. Price  <derek@ximbiot.com>
12184
12185         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
12186         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
12187         macros into the GNU _D_EXACT_NAMLEN.
12188         * lib/savedir.c:  Likewise.
12189         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
12190
12191 2006-07-10  Derek R. Price  <derek@ximbiot.com>
12192         and Paul Eggert  <eggert@cs.ucla.edu>
12193
12194         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
12195         * m4/savedir.m4:
12196         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
12197         macros into the GNU _D_EXACT_NAMLEN.
12198
12199 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12200
12201         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
12202         around the absolute name, to work around a problem with the HP-UX
12203         11.23 native C compiler, reported by Bob Proulx.
12204
12205 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12206
12207         * doc/maintain.texi, make-stds.texi: Sync from
12208         <http://savannah.gnu.org/projects/gnustandards>.
12209
12210 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12211
12212         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
12213
12214 2006-07-09  Jim Meyering  <jim@meyering.net>
12215
12216         * m4/glob.m4: Remove a doubled word in a comment.
12217
12218 2006-07-09  Jim Meyering  <jim@meyering.net>
12219
12220         * lib/argp-pv.c: Remove a doubled word in a comment.
12221         * lib/check-version.c (check_version): Likewise.
12222         * lib/javacomp.c (compile_java_class): Likewise.
12223
12224 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12225
12226         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
12227         for the benefit of people using Autoconf 2.60.  If you want to
12228         support older Autoconf versions you can copy m4/onceonly_2_57.m4
12229         (or m4/onceonly.m4, if pre-2.57) manually.
12230
12231 2006-07-08  Jim Meyering  <jim@meyering.net>
12232
12233         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
12234         comment.
12235         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
12236         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
12237         comment.
12238
12239 2006-07-08  Jim Meyering  <jim@meyering.net>
12240
12241         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
12242
12243 2006-07-07  Simon Josefsson  <jas@extundo.com>
12244
12245         * tests/test-crc.c: Change expected crc value, the test vector
12246         were probably computed using the old broken crc.c?
12247
12248 2006-07-06  Simon Josefsson  <jas@extundo.com>
12249
12250         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
12251         now the canonical place for the M4 file).
12252
12253         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
12254         from the sys_socket dependency now.
12255
12256         * modules/inet_pton (Files): Ditto.
12257
12258         * modules/inet_ntop (Files): Ditto.
12259
12260 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12261
12262         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
12263         not gl_PREREQ_GETUSERSHELL.
12264
12265 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12266
12267         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
12268         with only one argument, for Autoconf 2.60.
12269         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
12270         expand to nothing, so add a shell command to avoid syntax error.
12271         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12272
12273 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12274
12275         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
12276
12277 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
12280         no longer needed.  Check for isblank decl.
12281         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
12282         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
12283         of existence.
12284
12285 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12286
12287         * lib/getloadavg.c: Use __VMS, not VMS.
12288         * lib/getopt.c: Likewise.
12289         * lib/getpagesize.h: Likewise.
12290         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
12291         and probably does not work.
12292
12293 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12294
12295         * lib/.cppi-disable: Add wcwidth.
12296         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
12297         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
12298         (ISGRAPH): Remove.  All uses changed to isgraph.
12299         (FOLD) [!defined _LIBC]: Remove special case.
12300         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
12301         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
12302         HAVE_ISBLANK.
12303         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
12304         case.
12305
12306 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
12307
12308         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
12309         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
12310         brackets.  Other minor changes to suppress some compiler
12311         warnings.
12312
12313 2006-07-06  Derek R. Price  <derek@ximbiot.com>
12314         and Paul Eggert  <eggert@cs.ucla.edu>
12315
12316         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
12317         of invoking obsolescent AC_HEADER_DIRENT macro.
12318         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12319         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
12320         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12321         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12322         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
12323         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12324         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
12325         * m4/readdir.m4: Remove; no longer needed.
12326
12327 2006-07-06  Derek R. Price  <derek@ximbiot.com>
12328         and Paul Eggert  <eggert@cs.ucla.edu>
12329
12330         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
12331         Don't worry about this obsolete case any more.
12332         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
12333         directories.
12334         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
12335         worry about this obsolete case any more.
12336         * lib/fts.c: Likewise.
12337         * lib/getcwd.c: Likewise.
12338         * lib/glob.h: Likewise.
12339         * lib/savedir.c: Likewise.
12340
12341 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12342
12343         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
12344         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
12345         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
12346         needed.
12347         All uses removed.
12348         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12349         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12350         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
12351         needed.
12352         * m4/getdate.m4 (gl_GETDATE): Likewise.
12353         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12354         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12355         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12356         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12357         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12358         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12359         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
12360         needed.
12361
12362 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12363
12364         * lib/memcasecmp.c: Include <limits.h>.
12365         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
12366         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
12367         Don't assume isdigit succeeds only on '0' through '9'.
12368
12369 2006-07-05  Eric Blake  <ebb9@byu.net>
12370
12371         * modules/getaddrinfo (Depends-on): Add snprintf.
12372
12373 2006-07-05  Eric Blake  <ebb9@byu.net>
12374
12375         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
12376         to avoid 'header present but could not be compiled' on cygwin.
12377
12378 2006-07-05  Eric Blake  <ebb9@byu.net>
12379
12380         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
12381         missing from netdb.h.
12382         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
12383
12384 2006-07-05  Derek R. Price  <derek@ximbiot.com>
12385
12386         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
12387         no longer needed.
12388         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
12389         * m4/getdate.m4 (gl_GETDATE): Likewise.
12390         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12391         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12392         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12393         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12394         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12395
12396 2006-07-05  Derek R. Price  <derek@ximbiot.com>
12397
12398         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
12399         All uses of is_space replaced by isspace.
12400         * lib/exit.h: Don't talk about STDC_HEADERS.
12401         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
12402         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
12403         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
12404         replaced by isprint etc.
12405         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
12406         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12407         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
12408         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
12409         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
12410         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12411
12412 2006-07-05  Bruno Haible  <bruno@clisp.org>
12413
12414         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
12415         the function exists, before testing against AIX.
12416         Reported by Martin Lambers <marlam@marlam.de>.
12417
12418 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12419
12420         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
12421         From Mark D. Baushke.
12422
12423 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12424
12425         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
12426         to the absolute name, not just one, to bypass Sun C 5.8's
12427         "warning: #include of /usr/include/... may be non-portable".
12428
12429 2006-07-04  Eric Blake  <ebb9@byu.net>
12430
12431         * modules/dirname-tests: New test module.
12432         * tests/test-dirname.c: New file, replacing dirname.c
12433         TEST_DIRNAME section that was recently deleted.
12434
12435 2006-07-04  Bruno Haible  <bruno@clisp.org>
12436
12437         Assume ANSI C header files and <ctype.h> functions.
12438         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
12439         (mbsnwidth): Use isprint, iscntrl instead.
12440
12441 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12442
12443         Merge from coreutils.
12444         * MODULES.html.sh: Add xstrtold.
12445         * modules/xstrtold: New file.
12446         * modules/cycle-check (Files): Add lib/same-inode.h.
12447         * modules/dirname (Files): Add m4/double-slash-root.m4.
12448         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
12449         * modules/mkdir-p (Files): Add lib/same-inode.h.
12450         * modules/same (Files): Add lib/same-inode.h.
12451
12452 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12453
12454         * m4/absolute-header.m4: Renamed from full-header-path.m4.
12455         This is to keep the terminology clean; POSIX talks about
12456         "absolute pathnames", not "full pathnames", but the GNU
12457         Coding Standards say to use "path" for something else;
12458         so use "absolute" to keep both sides happy.
12459         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
12460         Set gl_absolute_header, not gl_full_header_path.
12461         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
12462         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
12463         All uses changed.
12464
12465         Merge from coreutils.
12466
12467         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12468
12469         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
12470         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
12471         want to require the building of c-strtod.o.
12472         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
12473         needs -lm directly.
12474         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
12475
12476         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
12477
12478         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
12479         --as-needed option if available.  Problem reported by Albert Chin in
12480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
12481         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
12482         cc merely issues a bunch of annoying warnings for --as-needed
12483         (this problem was reported by Bob Proulx).  Also, try linking with
12484         -lm to detect a bug in binutils 2.16 (this problem was reported
12485         by Ralf Wildenhues).
12486
12487         2006-06-18  Jim Meyering  <jim@meyering.net>
12488
12489         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
12490         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
12491         macro.
12492         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
12493         also check for glibc-2.4's abort-inducing bug.
12494
12495         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
12496         Low-probability clean-up should be to use rmdir to get rid of
12497         the just-created directory, not unlink.
12498
12499         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
12500         configure fail, and request a bug report to inform us about it.
12501         Add a comment that, barring reports to the contrary, in 2007 we'll
12502         assume ftruncate is universally available.
12503
12504         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
12505
12506         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
12507
12508         2006-03-12  Jim Meyering  <jim@meyering.net>
12509
12510         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
12511         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
12512         * m4/same.m4 (gl_SAME): Likewise.
12513         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
12514
12515         2006-03-11  Eric Blake  <ebb9@byu.net>
12516
12517         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
12518         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
12519         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
12520         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
12521
12522 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12523
12524         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
12525         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
12526         reported by Mark D. Baushke, one in
12527         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
12528
12529         Merge from coreutils.
12530
12531         * lib/.cppi-disable: Add stdint_.h.
12532         * lib/.cvsignore: Add stdint.h.
12533
12534         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12535
12536         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
12537         both double and long double versions.
12538         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
12539         * lib/xstrtold.c: New file.
12540         * lib/xstrtod.h (xstrtold): New decl.
12541
12542         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12543
12544         * lib/filemode.c (setst): Remove.
12545         (strmode): Rewrite to avoid setst.  This makes the code shorter,
12546         (arguably) clearer, and the generated code is a bit smaller on my
12547         Debian GNU/Linux stable x86 host.
12548
12549         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
12550
12551         * lib/filemode.c: Include "filemode.h" first, to test the interface.
12552         Assume that filemode.h includes sys/types.h and sys/stat.h.
12553         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
12554         (ftypelet): Reorder to put common cases first, for efficiency.
12555         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
12556         to do 'M'.
12557         (strmode): Renamed from mode_string, and now stores 12 bytes instead
12558         of 10, for compatibility with FreeBSD.  All callers changed.
12559         (filemodestring): Now stores 12 bytes instead of 10, and sets file
12560         types that can't be deduced solely from st_mode.  First arg is now a
12561         const pointer.
12562         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
12563         (strmode): Renamed from mode_string.
12564         (filemodestring): New decl.
12565         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
12566         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
12567         needed.
12568         (S_ISPORT, S_ISWHT): New macros, if not already defined.
12569
12570         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
12571
12572         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
12573         fsusage.h now does that.  Include fsusage.h first, to test interface.
12574         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
12575         at most one method (the old code could have generated decls that
12576         didn't conform to C89, not that this was ever exercised).
12577         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
12578
12579         2006-03-19  Jim Meyering  <jim@meyering.net>
12580
12581         Work even in a chroot where d_ino values for entries in "/"
12582         don't match the stat.st_ino values for the same names.
12583         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
12584         number, iterate through all entries again, using lstat instead.
12585         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
12586         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
12587
12588         * lib/getcwd.c (__getcwd): Clarify a comment.
12589         Use memcpy in place of a call to strcpy.
12590
12591         2006-03-12  Jim Meyering  <jim@meyering.net>
12592
12593         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
12594         matches that of the current directory (which we're about to chdir ".."
12595         out of), then save the dev-ino of the parent, instead.
12596
12597         * lib/same-inode.h (SAME_INODE): New file/macro.
12598         * lib/chdir-safer.c (SAME_INODE): Remove definition.
12599         Include "same-inode.h", instead.
12600         * lib/same.c: Likewise.
12601         * lib/cycle-check.h: Include "same-inode.h".
12602         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
12603         * lib/cycle-check.c (SAME_INODE): Remove definition.
12604         * lib/root-dev-ino.h: Include "same-inode.h".
12605
12606         2006-03-11  Eric Blake  <ebb9@byu.net>
12607
12608         * lib/same.c (same_name): s/base_name/last_component/
12609         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
12610         * lib/filenamecat.c (file_name_concat): Likewise.
12611
12612         2006-03-11  Eric Blake  <ebb9@byu.net>,
12613                     Paul Eggert  <eggert@cs.ucla.edu>
12614
12615         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
12616         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
12617         drive prefix.
12618         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
12619         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
12620         (last_component): New method.
12621         * lib/dirname.c (dir_len): Determine when drive letters need a
12622         subsequent slash.  Preserve // when it is special.
12623         (dir_name): Don't append dot when drive letter is absolute.
12624         [TEST_DIRNAME]: Move into a full-blown gnulib test.
12625         * lib/basename.c (base_name): New semantics - malloc the result.
12626         Preserve // when it is special.  Preserve relative files that look
12627         like drive letters.
12628         (base_len): Preserve // when it is special.
12629         (last_component): New method, similar to old base_name semantics.
12630         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
12631         base_name.  Strip redundant slashes from ///.
12632
12633 2006-07-03  Jim Meyering  <jim@meyering.net>
12634
12635         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
12636         macro is used before the first cycle_check call.
12637
12638 2006-07-03  Eric Blake  <ebb9@byu.net>
12639
12640         * modules/dirname (Depends-on): Add xstrndup.
12641
12642 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12643
12644         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
12645         test cases, so that config.log is a bit easier to follow.
12646
12647 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12648
12649         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
12650         both are 64 bits, since this seems to be the tradition, and this
12651         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
12652         we ever run into a host that prefers long long to long in this
12653         case, we'll need another configure-time test.  Problem reported by
12654         Jim Meyering.
12655
12656 2006-07-02  Eric Blake  <ebb9@byu.net>
12657
12658         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
12659
12660 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12661
12662         * modules/inttypes (Depends-on): No longer depends on stdint.
12663         * modules/stdint (Description): Say more about assumptions.
12664         Say that the fast types might differ.  Say macros are used.
12665         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
12666         (Makefile.am): Revise list of substituted symbols to match
12667         new stdint.m4.
12668         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
12669         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
12670         * tests/test-stdint.c (verify_same_types)
12671         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
12672         the code conforms to C99/C89.
12673         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
12674         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
12675
12676 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12677
12678         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
12679         but fix a bug, by requiring at least 64 bits.
12680         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
12681         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
12682         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
12683         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
12684
12685         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
12686         changes.  Make 2.59 a prerequisite.  Check and substitute for
12687         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
12688         inttypes.h.  Do not use special include files; just use the
12689         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
12690         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
12691         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
12692         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
12693         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
12694         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
12695         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
12696         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
12697         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
12698         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
12699         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
12700         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
12701         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
12702         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
12703         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
12704         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
12705         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
12706         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
12707         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
12708         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
12709         WINT_MAX.  Check for C99 conformance more strictly, by detecting
12710         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
12711         not check for things that C99 does not require, e.g., int8_t.  If
12712         a test isn't needed unless <stdint.h> isn't working, and is
12713         unlikely to be needed for any other reason, then don't do it
12714         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
12715         size_t, since we assume C89 freestanding at least.  Do not check
12716         for sig_atomic_t, wchar_t, or wint_t, since the code now does
12717         the right thing even if the types are not defined.  Instead use:
12718         (gl_STDINT_TYPE_PROPERTIES): New macro.
12719         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
12720         testing whether <sys/types.h> clashes, as Autoconf does this for
12721         us now.  All uses removed.
12722         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
12723         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
12724         (gl_CHECK_TYPE_SAME):
12725         Remove; no longer needed.
12726         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
12727         exists, since we'll return 0 anyway in that case.
12728         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
12729
12730 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12731
12732         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
12733         possible collision with system files.
12734         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
12735         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
12736         WCHAR_MIN and WCHAR_MAX in this case.
12737         (<stddef.h>): Do not include; no longer needed.
12738         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
12739         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
12740         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
12741         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
12742         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
12743         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
12744         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
12745         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
12746         !defined(__c99))]: Include in this case too, since it's harmless
12747         now.
12748         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
12749         dangerous to do so.
12750         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
12751         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
12752         (_STDINT_MIN, _STDINT_MAX): New macros.
12753         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
12754         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
12755         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
12756         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
12757         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
12758         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
12759         macros, not typedefs; this simplifies things quite a bit.
12760         Use long int for all types narrower than int64_t.
12761         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
12762         Define in terms of long long int or int64_t or long int,
12763         not int64_t or int32_t.  This saves some compile-time testing.
12764         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
12765         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
12766         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
12767         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
12768         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
12769         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
12770         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
12771         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
12772         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
12773         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
12774         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
12775         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
12776         undef any previous version and define our own version, for
12777         simplicity and consistency with the new macros for types.
12778         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
12779         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
12780         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
12781         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
12782         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
12783         @WINT_T_SUFFIX@ to keep things simple here.
12784         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
12785         Simplify by assuming typical 8/16/32/64 host, since we're
12786         already doing that elsewhere anyway.
12787         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
12788         and assume long long int is 64 bits if available.  This
12789         speeds up 'configure'.
12790
12791 2006-07-01  Eric Blake  <ebb9@byu.net>
12792
12793         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
12794         Reported by Andreas Buening.
12795
12796 2006-07-01  Eric Blake  <ebb9@byu.net>
12797
12798         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
12799
12800 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
12801
12802         * lib/getaddrinfo.c: fixed typo
12803
12804 2006-06-29  Jim Meyering  <jim@meyering.net>
12805
12806         * modules/strftime (Maintainer): Add my name, since with the
12807         FPRINTFTIME changes strftime.c has forked from glibc.
12808
12809 2006-06-29  Eric Blake  <ebb9@byu.net>
12810
12811         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
12812
12813 2006-06-29  Eric Blake  <ebb9@byu.net>
12814
12815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
12816
12817 2006-06-29  Eric Blake  <ebb9@byu.net>
12818
12819         * lib/stat_.h: New file.
12820
12821 2006-06-29  Eric Blake  <ebb9@byu.net>
12822
12823         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
12824         unused static function.
12825
12826 2006-06-29  Eric Blake  <ebb9@byu.net>
12827
12828         * doc/functions.texi (Function Portability): Document missing lstat
12829         on mingw.
12830
12831 2006-06-29  Eric Blake  <ebb9@byu.net>
12832
12833         * MODULES.html.sh: Add sys_stat.
12834         * modules/sys_stat: New module.
12835         * modules/mkstemp (Depends-on): Add sys_stat.
12836
12837 2006-06-29  Derek R. Price  <derek@ximbiot.com>
12838
12839         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
12840
12841 2006-06-29  Derek R. Price  <derek@ximbiot.com>
12842
12843         * m4/c-bs-a.m4: Removed.
12844
12845 2006-06-29  Derek R. Price  <derek@ximbiot.com>
12846
12847         * lib/strftime.c: Assume strftime() exists.
12848
12849 2006-06-29  Derek Price  <derek@ximbiot.com>
12850
12851         * modules/c-bs-a: Removed - \a is C89.
12852         * MODULES.html.sh: Remove c-bs-a.
12853
12854 2006-06-29  Bruno Haible  <bruno@clisp.org>
12855
12856         * modules/wcwidth (License): Change to LGPL.
12857
12858 2006-06-28  Simon Josefsson  <jas@extundo.com>
12859
12860         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
12861         on _WIN32.
12862
12863         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
12864         getnameinfo.
12865
12866 2006-06-28  Simon Josefsson  <jas@extundo.com>
12867
12868         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
12869
12870 2006-06-28  Simon Josefsson  <jas@extundo.com>
12871
12872         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
12873         functions there.  It will succeed on Windows XP, but on Windows
12874         2000 and (presumably) earlier, it will fail, and use the internal
12875         re-implementation.
12876         (use_win32_p): New function.
12877         (getaddrinfo): Use strtoul on servname, to support numeric ports.
12878         Support AI_NUMERICSERV to disable getservbyname.
12879         (getnameinfo): New function, only supports
12880         NI_NUMERICHOST|NI_NUMERICSERV for now.
12881
12882         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
12883         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
12884         getnameinfo.
12885
12886 2006-06-28  Eric Blake  <ebb9@byu.net>
12887
12888         * modules/wcwidth: New file.
12889         * modules/mbchar (Depends-on): Add wcwidth.
12890         * modules/mbswidth (Depends-on): Add wcwidth.
12891         * MODULES.html.sh: Add wcwidth.
12892
12893 2006-06-28  Eric Blake  <ebb9@byu.net>
12894
12895         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
12896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
12897
12898 2006-06-28  Eric Blake  <ebb9@byu.net>
12899
12900         * lib/xvasprintf.h: Fix comments.
12901
12902 2006-06-28  Eric Blake  <ebb9@byu.net>
12903
12904         * lib/mbchar.h (wcwidth): Include wcwidth.h.
12905         * lib/mbswidth.c (wcwidth): Move from here...
12906         * lib/wcwidth.h: ...to this new file.
12907
12908 2006-06-28  Derek R. Price  <derek@ximbiot.com>
12909
12910         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
12911
12912         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
12913         it's obsolete.
12914         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
12915
12916 2006-06-28  Derek R. Price  <derek@ximbiot.com>
12917
12918         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
12919         Autoconf 2.60 says this stuff was obsolete.
12920
12921 2006-06-28  Bruno Haible  <bruno@clisp.org>
12922
12923         * modules/wcwidth (Files): Add m4/wchar_t.m4.
12924
12925 2006-06-28  Bruno Haible  <bruno@clisp.org>
12926
12927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
12928         gt_TYPE_WCHAR_T.
12929
12930 2006-06-28  Bruno Haible  <bruno@clisp.org>
12931
12932         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
12933         declaration for wcwidth.
12934         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
12935
12936 2006-06-28  Bruno Haible  <bruno@clisp.org>
12937
12938         * lib/mkdtemp.c [MINGW]: Include <io.h>.
12939         (mkdir): Define using _mkdir.
12940
12941 2006-06-28  Bruno Haible  <bruno@clisp.org>
12942
12943         * lib/getaddrinfo.h: Fix POSIX URL.
12944         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
12945         _WIN32.
12946         (use_win32_p): Make static.
12947         (getaddrinfo): Reject service name if it is empty or does not consist
12948         solely of decimal digits, or if its value is > 65535.
12949         (getnameinfo): Remove useless casts.
12950
12951 2006-06-27  Simon Josefsson  <jas@extundo.com>
12952
12953         * modules/sys_select: New file, suggested by Bruno Haible, Paul
12954         Eggert and Martin Lambers.
12955
12956 2006-06-27  Simon Josefsson  <jas@extundo.com>
12957
12958         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
12959         Eggert and Martin Lambers.
12960
12961 2006-06-27  Bruno Haible  <bruno@clisp.org>
12962
12963         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
12964         result to 0, not to empty.
12965         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
12966
12967 2006-06-27  Bruno Haible  <bruno@clisp.org>
12968
12969         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
12970
12971 2006-06-26  Simon Josefsson  <jas@extundo.com>
12972
12973         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
12974         present.
12975
12976 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12977
12978         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
12979         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
12980         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
12981
12982 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
12983
12984         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
12985
12986 2006-06-26  Bruno Haible  <bruno@clisp.org>
12987
12988         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
12989
12990 2006-06-26  Bruno Haible  <bruno@clisp.org>
12991
12992         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
12993
12994 2006-06-26  Bruno Haible  <bruno@clisp.org>
12995
12996         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
12997         SGI C compiler in pre-C99 mode.
12998         Suggested by Mark D. Baushke and Larry Jones.
12999
13000 2006-06-26  Bruno Haible  <bruno@clisp.org>
13001
13002         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
13003         WCHAR_MAX.
13004         Reported by Mark D. Baushke and Larry Jones.
13005
13006 2006-06-26  Bruno Haible  <bruno@clisp.org>
13007
13008         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
13009         in pre-C99 mode.
13010         Suggested by Mark D. Baushke and Larry Jones.
13011
13012 2006-06-23  Simon Josefsson  <jas@extundo.com>
13013             Bruno Haible  <bruno@clisp.org>
13014
13015         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
13016         Emit mostlyclean-local rule.
13017         (func_emit_tests_Makefile_am): Likewise.
13018         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
13019
13020 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
13021
13022         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
13023
13024 2006-06-23  Bruno Haible  <bruno@clisp.org>
13025
13026         * tests/test-stdint.c: Update to match ISO C 99 Technical
13027         Corrigendum 1.
13028
13029 2006-06-23  Bruno Haible  <bruno@clisp.org>
13030
13031         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
13032
13033 2006-06-23  Bruno Haible  <bruno@clisp.org>
13034
13035         * lib/stdint_.h: Treat IRIX like OpenBSD.
13036
13037 2006-06-23  Bruno Haible  <bruno@clisp.org>
13038
13039         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
13040         ISO C 99 Technical Corrigendum 1.
13041
13042 2006-06-22  Simon Josefsson  <jas@extundo.com>
13043
13044         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
13045         MinGW.
13046
13047 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13048
13049         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
13050         needed.  Some compiler complained about some of them.  Problem reported
13051         by Larry Jones in
13052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
13053
13054 2006-06-21  Simon Josefsson  <jas@extundo.com>
13055
13056         * tests/test-getaddrinfo.c: New file.
13057
13058         * modules/getaddrinfo-tests: New file.
13059
13060         * MODULES.html.sh: Add inet_pton.
13061
13062         * modules/inet_pton: New file.
13063
13064 2006-06-21  Simon Josefsson  <jas@extundo.com>
13065
13066         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
13067         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
13068         of using the (limited) gnulib implementation on Windows XP.
13069
13070         * m4/inet_pton.m4: New file.
13071
13072 2006-06-21  Simon Josefsson  <jas@extundo.com>
13073
13074         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
13075         variable.
13076
13077         * lib/socket_.h: Don't define WINVER.
13078
13079         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
13080         slightly modified to work in gnulib.
13081
13082 2006-06-21  Simon Josefsson  <jas@extundo.com>
13083
13084         * doc/gnulib.texi (Windows sockets): Add.
13085
13086 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13087
13088         * lib/read-file.c (fread_file): Start with buffer allocation of
13089         0 bytes rather than 1 byte; this simplifies the code.
13090         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
13091         code to free buffer and save/restore errno.
13092         (internal_read_file): Remove unused local.
13093
13094 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13095
13096         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
13097         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
13098         Problem reported by Denis Excoffier in
13099         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
13100
13101 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13102
13103         * modules/sys_socket, modules/socklen: Include sys/types since
13104         FreeBSD 4.x's sys/socket.h needs it.
13105
13106 2006-06-19  Simon Josefsson  <jas@extundo.com>
13107
13108         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
13109
13110 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
13111
13112         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
13113
13114 2006-06-19  Bruno Haible  <bruno@clisp.org>
13115
13116         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
13117         and FULL_PATH_INTTYPES_H in angle brackets.
13118         Reported by Mark D. Baushke <mdb@gnu.org>.
13119
13120 2006-06-17  Eric Blake  <ebb9@byu.net>
13121
13122         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
13123         errno.
13124
13125 2006-06-17  Bruno Haible  <bruno@clisp.org>
13126
13127         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
13128         <sys/inttypes.h>.
13129
13130 2006-06-17  Bruno Haible  <bruno@clisp.org>
13131
13132         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
13133         whether errno is declared. Assume <errno.h> declares errno.
13134
13135 2006-06-17  Bruno Haible  <bruno@clisp.org>
13136
13137         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
13138
13139 2006-06-17  Bruno Haible  <bruno@clisp.org>
13140
13141         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
13142         problem on Solaris 2.5.1.
13143
13144 2006-06-16  Eric Blake  <ebb9@byu.net>
13145
13146         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
13147         * lib/unicodeio.c [!defined errno]: Likewise.
13148         * lib/strtol.c [!defined errno]: Likewise.
13149         * lib/strtod.c [!defined errno]: Likewise.
13150
13151 2006-06-15  Eric Blake  <ebb9@byu.net>
13152
13153         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
13154
13155 2006-06-15  Eric Blake  <ebb9@byu.net>
13156
13157         * config/srclist.txt (ssize_t.m4): Lose sync.
13158
13159 2006-06-15  Bruno Haible  <bruno@clisp.org>
13160
13161         * modules/stdint (Files): Include m4/full-header-path.m4,
13162         m4/size_max.m4, m4/wchar_t.m4.
13163         (Makefile.am): Many more substitutions.
13164         * modules/stdint-tests: New file.
13165         * tests/test-stdint.c: New file.
13166
13167 2006-06-15  Bruno Haible  <bruno@clisp.org>
13168
13169         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
13170         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
13171         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
13172         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
13173         gl_CHECK_TYPE_SAME): New macros.
13174
13175 2006-06-15  Bruno Haible  <bruno@clisp.org>
13176
13177         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
13178
13179 2006-06-15  Bruno Haible  <bruno@clisp.org>
13180
13181         * lib/stdint_.h: Rewritten to be fully auto-configured.
13182         Fixes bug on HP-UX/IA64.
13183
13184 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
13185
13186         * lib/getdate.y (__attribute__): Don't define if already defined.
13187         Problem reported by Larry Jones.
13188         * lib/utimens.c (__attribute__): Likewise.
13189
13190 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13191
13192         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
13193         reported by Andreas Schwab.
13194
13195 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13196             Bruno Haible  <bruno@clisp.org>
13197
13198         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
13199         check for the declaration of strnlen and a run test that exposes the
13200         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
13201         rpl_strndup.
13202
13203 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13204             Bruno Haible  <bruno@clisp.org>
13205
13206         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
13207
13208 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13209
13210         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
13211         compile test, for Tru64 4.0D.
13212
13213 2006-05-28  Karl Berry  <karl@gnu.org>
13214
13215         * config/srclist.txt (printf-args.c): lose sync.
13216
13217 2006-05-26  Martin Lambers  <marlam@marlam.de>
13218
13219         * lib/getpass.c: Updates the test for the native W32 API, and adds
13220         missing includes, thus fixing compilation warnings.
13221
13222 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13223
13224         * lib/exclude.c (exclude_fnmatch): New function.
13225         (excluded_file_name): Call exclude_fnmatch.
13226         * lib/exclude.h (excluded_file_name): New prototype
13227
13228 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
13229
13230         * lib/tempname.c (small_open, large_open): New macros.
13231         (__open, __open64) [!_LIBC]: Remove.
13232         (__gen_tempname): Use small_open and large_open instead of __open
13233         and __open64.  This fixes a portability bug on HP-UX 11.11i
13234         reported by Simon Wing-Tang in
13235         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
13236
13237 2006-05-24  Bruno Haible  <bruno@clisp.org>
13238
13239         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
13240         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
13241         Reported by Thorsten Maerz <torte@netztorte.de> via
13242         Aaron Stone <aaron@serendipity.cx>.
13243
13244 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13245
13246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
13247         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
13248         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
13249         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
13250         not really conditional on the cache.
13251         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
13252
13253 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13254
13255         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
13256         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
13257         (my_usleep): Don't mishandle maximum value.
13258
13259 2006-05-19  Jim Meyering  <jim@meyering.net>
13260
13261         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
13262
13263 2006-05-17  Bruno Haible  <bruno@clisp.org>
13264
13265         Cygwin portability.
13266         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
13267
13268 2006-05-17  Bruno Haible  <bruno@clisp.org>
13269
13270         * lib/stdint_.h: Fix recognition of Cygwin.
13271
13272 2006-05-15  Bruno Haible  <bruno@clisp.org>
13273
13274         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
13275         on libtool patch by Ralf Wildenhues.
13276
13277 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13278
13279         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
13280         test for C99 conformance; (bool) 0.5 is an integer constant
13281         expression, but (bool) -0.5 is not.  Problem reported by Fedor
13282         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
13283
13284 2006-05-11  Simon Josefsson  <jas@extundo.com>
13285
13286         * m4/xvasprintf.m4: Fix obvious typo.
13287
13288 2006-05-11  Jim Meyering  <jim@meyering.net>
13289
13290         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
13291         James Lemley.
13292
13293 2006-05-10  Simon Josefsson  <jas@extundo.com>
13294
13295         * lib/md4.c: Typo fix, update copyright years.
13296         (K1, K2): Don't use L because it turn computations into 64-bit on
13297         64-bit platforms.
13298
13299 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13300
13301         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
13302         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
13303         unwanted sign propagation, e.g., on hosts with 64-bit int.
13304         There still are some problems with reeelly weird theoretical hosts
13305         (e.g., 33-bit int) but it's not worth worrying about now.
13306         * lib/sha1.c (rol): Likewise.
13307         (K1, K2, K3, K4): Remove unnecessary L suffix.
13308
13309 2006-05-10  Bruno Haible  <bruno@clisp.org>
13310
13311         * lib/des.c: Cast to avoid warnings.
13312
13313 2006-05-09  Bruno Haible  <bruno@clisp.org>
13314
13315         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
13316         (Depends-on): Depend also on xsize, stdarg.
13317         (configure.ac): Add gl_XVASPRINTF.
13318
13319 2006-05-09  Bruno Haible  <bruno@clisp.org>
13320
13321         * m4/xvasprintf.m4: New file.
13322
13323 2006-05-09  Bruno Haible  <bruno@clisp.org>
13324
13325         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
13326         (EOVERFLOW): Define fallback value.
13327         (xstrcat): New function.
13328         (xvasprintf): Recognize the special case of a string concatenation.
13329
13330 2006-05-08  Eric Blake  <ebb9@byu.net>
13331
13332         * gnulib-tool (func_version): Base copyright year on CVS date.
13333         (func_emit_copyright_notice): New function.
13334         (func_emit_lib_Makefile_am): Use it.
13335         (func_emit_tests_Makefile_am): Likewise.
13336         (func_import): Likewise.
13337
13338 2006-05-08  Bruno Haible  <bruno@clisp.org>
13339
13340         * modules/stdarg: New file.
13341         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
13342
13343 2006-05-08  Bruno Haible  <bruno@clisp.org>
13344
13345         * m4/stdarg.m4: New file, from GNU gettext.
13346
13347 2006-05-08  Bruno Haible  <bruno@clisp.org>
13348
13349         * config/srclist.txt (build-aux/config.rpath): different from latest
13350         release.
13351
13352 2006-05-08  Bruno Haible  <bruno@clisp.org>
13353
13354         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
13355
13356 2006-05-05  Jim Meyering  <jim@meyering.net>
13357
13358         * m4/warning.m4: New file, derived from bison's file by the same name.
13359
13360 2006-05-03  Bruno Haible  <bruno@clisp.org>
13361
13362         * lib/stdint_.h: Shorter URL.
13363         * lib/inttypes.h: Likewise.
13364
13365 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13366
13367         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
13368
13369 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13370
13371         * lib/verify.h: Document the internals better.  Most of this change
13372         was written by Bruno Haible.
13373
13374 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13375
13376         * doc/verify.texi: New file, partly based on a proposal by
13377         Bruno Haible.
13378
13379 2006-05-02  Bruno Haible  <bruno@clisp.org>
13380
13381         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
13382         test from here...
13383         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
13384
13385 2006-04-29  Bruno Haible  <bruno@clisp.org>
13386
13387         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
13388         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
13389
13390 2006-04-29  Bruno Haible  <bruno@clisp.org>
13391
13392         * gnulib-tool: Make --update option actually work.
13393
13394 2006-04-29  Bruno Haible  <bruno@clisp.org>
13395
13396         * doc/gcd.texi: New file.
13397         * doc/gnulib.texi: Include it.
13398
13399 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13400
13401         * lib/getdate.y (get_date): When adding relative date, start with the
13402         initial time, not with the result of the first mktime call.
13403
13404 2006-04-25  Bruno Haible  <bruno@clisp.org>
13405
13406         * gnulib-tool (func_import): Output the include directives in three
13407         blocks, sorted separately.
13408         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13409
13410 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13411
13412         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
13413         to define main with arguments, for C++.  Reported by Eric Blake.
13414         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13415         Prefer 'int main ()' to 'int main (void)', for C++.
13416         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
13418         for 'main', for C99 and C++.
13419
13420 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13421
13422         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
13423         Don't assume that exit status -1 is valid.
13424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13425         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13426         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
13427         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
13428         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
13429         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
13430         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
13431         functions can be used without declaring them, or that you can
13432         exit with status -1.
13433         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
13434
13435 2006-04-24  Karl Berry  <karl@gnu.org>
13436
13437         * config/srclist.txt (longdouble.m4): sync lost.
13438
13439 2006-04-24  Eric Blake  <ebb9@byu.net>
13440
13441         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
13442
13443 2006-04-24  Bruno Haible  <bruno@clisp.org>
13444
13445         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
13446         poll() implementation in AIX.
13447         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13448
13449 2006-04-24  Bruno Haible  <bruno@clisp.org>
13450
13451         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
13452         assigned exactly once.
13453
13454 2006-04-23  Claudio Fontana  <claudio@gnu.org>
13455             Bruno Haible  <bruno@clisp.org>
13456
13457         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
13458         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
13459         for AM_CPPFLAGS.
13460
13461 2006-04-23  Bruno Haible  <bruno@clisp.org>
13462
13463         * modules/copy-file: Depend on unistd.
13464         * modules/execute: Likewise.
13465         * modules/fatal-signal: Likewise.
13466         * modules/findprog: Likewise.
13467         * modules/mkdtemp : Likewise.
13468         * modules/pipe: Likewise.
13469         * modules/wait-process: Likewise.
13470
13471 2006-04-23  Bruno Haible  <bruno@clisp.org>
13472
13473         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
13474         condition was already detected.
13475         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13476
13477 2006-04-23  Bruno Haible  <bruno@clisp.org>
13478
13479         * lib/copy-file.c: Include <unistd.h> unconditionally.
13480         * lib/execute.c: Likewise.
13481         * lib/fatal-signal.c: Likewise.
13482         * lib/findprog.c: Likewise.
13483         * lib/mkdtemp.c: Likewise.
13484         * lib/pipe.h: Likewise.
13485         * lib/pipe.c: Likewise.
13486         * lib/wait-process.h: Likewise.
13487
13488 2006-04-23  Bruno Haible  <bruno@clisp.org>
13489
13490         * gnulib-tool (func_usage): Fix --import description. Document
13491         --update.
13492         (func_import): Create temporary file in a temporary directory, if
13493         --dry-run is specified. Silence errors from 'grep' when there are no
13494         m4 files in $m4dir.
13495         (func_create_testdir): Silence errors from 'grep' when there are no
13496         m4 files in $m4dir.
13497         Reported by Karl Berry <karl@freefriends.org>.
13498
13499 2006-04-20  Bruno Haible  <bruno@clisp.org>
13500
13501         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
13502         one argument, so that the code will be portable to Autoconf 2.60.
13503         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
13504         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13505         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
13506
13507 2006-04-19  Derek Price  <derek@ximbiot.com>
13508             Eric Blake  <ebb9@byu.net>
13509
13510         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
13511         rather than "/full/path.h".  Update comment to match.  Shorten &
13512         generalize m4_translit call via AS_TR_CPP.
13513
13514 2006-04-19  Derek Price  <derek@ximbiot.com>
13515             Eric Blake  <ebb9@byu.net>
13516
13517         * lib/inttypes.h: Correct grammar in comment.
13518
13519 2006-04-18  Derek Price  <derek@ximbiot.com>
13520             Paul Eggert  <eggert@cs.ucla.edu>
13521
13522         * modules/inttypes: New file.
13523         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
13524
13525 2006-04-18  Derek Price  <derek@ximbiot.com>
13526             Paul Eggert  <eggert@cs.ucla.edu>
13527
13528         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
13529         New files.
13530
13531 2006-04-18  Derek Price  <derek@ximbiot.com>
13532             Paul Eggert  <eggert@cs.ucla.edu>
13533
13534         * lib/inttypes.h: New file.
13535         * lib/strtoimax.c: Assume <inttypes.h>.
13536
13537 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
13538
13539         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
13540         isn't mounted.  Problem reported by Kir Kolyshkin.
13541
13542 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13543
13544         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
13545         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
13546         Derek R. Price.
13547         * lib/regex.h (RE_DUP_MAX): Update comment to match current
13548         implementation.
13549
13550 2006-04-12  Eric Blake  <ebb9@byu.net>
13551
13552         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
13553         is now done automatically by the corresponding Autoconf macro.
13554
13555 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
13556
13557         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
13558         time_r.h.
13559
13560 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13561
13562         Merge regex changes from libc, removing some of our
13563         POSIX-conformance changes that were rejected and redoing them in a
13564         less-intrusive way.
13565
13566         * lib/regcomp.c (re_compile_internal, init_dfa):
13567         Length arg is now size_t, not Idx.  All uses changed.
13568         (peek_token): Forward decl now says internal_function.
13569         (__re_error_msgid, __re_error_msgid_idx):
13570         Now static rather than extern with attribute_hidden.
13571         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
13572         For some reason libc prefers K&R style defns for external functions.
13573         (regerror) [!defined _LIBC]: Likewise.
13574         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
13575         (seek_collating_symbol_entry, lookup_collation_sequence_value):
13576         (build_range_exp, build_collating_symbol):
13577         Use K&R-style defn.
13578         (re_compile_fastmap): Use '\0' to memset, not 0.
13579         (utf8_sb_map): Make the calculations more obvious.
13580         (init_dfa, parse_bracket_exp, build_charclass_op):
13581         Call calloc and cast result, as glibc does.
13582         (init_word_char, fetch_token, peek_token, peek_token_bracket):
13583         (build_range_exp, build_collating_symbol):
13584         Now internal functions.
13585
13586         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
13587
13588         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
13589         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
13590         Don't depend on VMS; depend on __VMS instead, for POSIX
13591         namespace cleanness.
13592         (regoff_t): Define to ssize_t, not long int.
13593
13594         Remove the REG_ macros named below.  Instead, make the old names
13595         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
13596         __USE_GNU_REGEX.
13597         (REG_BACKSLASH_ESCAPE_IN_LISTS):
13598         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
13599         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
13600         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
13601         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
13602         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
13603         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
13604         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
13605         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
13606         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
13607         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
13608         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
13609         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
13610         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
13611         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
13612         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
13613         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
13614         (REG_NREGS):
13615         Remove.  All uses replaced by the old RE_* names.
13616         (RE_BACKSLASH_ESCAPE_IN_LISTS):
13617         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
13618         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
13619         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
13620         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
13621         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
13622         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
13623         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
13624         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
13625         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
13626         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
13627         Don't bother having these macros be independent of each others'
13628         values, since they no longer exist in the POSIX name space.
13629
13630         Rename the following member names back to their old names,
13631         unless !__USE_GNU_REGEX.  All uses changed back.
13632         (buffer): Renamed from re_buffer.
13633         (allocated): Renamed from re_allocated.
13634         (used): Renamed from re_used.
13635         (syntax): Renamed from re_syntax.
13636         (fastmap): Renamed from re_fastmap.
13637         (translate): Renamed from re_translate.
13638         (can_be_null): Renamed from re_can_be_null.
13639         (regs_allocated): Renamed from re_regs_allocated.
13640         (fastmap_accurate): Renamed from re_fastmap_accurate.
13641         (no_sub): Renamed from re_no_sub.
13642         (not_bol): Renamed from re_not_bol.
13643         (not_eol): Renamed from re_not_eol.
13644         (newline_anchor): Renamed from re_newline_anchor.
13645         (num_regs): Renamed from rm_num_regs.
13646         (start): Renamed from rm_start.
13647         (end): Renamed from rm_end.
13648
13649         (free_state): Move up a bit.
13650
13651         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
13652         #define to be empty.
13653         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
13654         when that is what is intended.
13655         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
13656         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
13657         (MAX): New macro.
13658         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
13659         All uses changed back to re_malloc, etc.  It's now the caller's
13660         responsibility to check for overflow; all callers changed.
13661         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
13662         (re_x2nrealloc): Remove.
13663         (free_state): Remove decl.
13664
13665         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
13666         (re_set_registers, re_exec):
13667         Use K&R-style defn.
13668
13669         2006-01-31  Roland McGrath  <roland@redhat.com>
13670
13671         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
13672         Reported by Mike Frysinger <vapier@gentoo.org>.
13673
13674         2006-01-15  Andreas Jaeger  <aj@suse.de>
13675
13676         [BZ #1950]
13677         * lib/regex_internal.c (re_string_reconstruct): Adjust for
13678         build_wcs_upper_buffer change.
13679         (build_wcs_upper_buffer): Change return type.
13680
13681         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
13682
13683         * lib/regex_internal.h: Include <stdint.h> if available.
13684
13685         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
13686
13687         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
13688
13689         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
13690
13691         * lib/regcomp.c: Adjust for changed secondary hash function.
13692
13693         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
13694
13695         * lib/regex.h: Pretty printing.
13696         Clean up namespace a bit.
13697
13698         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
13699
13700         * lib/regexec.c (update_cur_sifted_state, check_arrival,
13701         check_arrival_add_next_nodes): Avoid using uninitialized variable.
13702
13703         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
13704                     Ulrich Drepper  <drepper@redhat.com>
13705
13706         [BZ #1302]
13707         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
13708         changed.
13709         (bitset_word_t): Renamed from bitset_word.  All uses changed.
13710
13711         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
13712
13713         [BZ #281]
13714         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
13715         * lib/regcomp.c: Remove unnecessary uses of
13716         unsigned RE_TRANSLATE_TYPE.
13717         * lib/regex_internal.h: Likewise.
13718         * lib/regex_internal.c: Likewise.
13719         * lib/regexec.c: Likewise.
13720         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
13721
13722         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
13723
13724         * lib/regexec.c (find_recover_state): Remove unnecessary
13725         initialization.
13726         (transit_state_bkref): Make DFA a const pointer.
13727         (get_subexp): Likewise.
13728         (check_arrival): Likewise.
13729         (update_cur_sifted_state): Likewise.
13730         (re_search_internal): Likewise.
13731         (prune_impossible_nodes): Likewise.
13732         (acquire_init_state_context): Likewise.
13733         (proceed_next_node): Likewise.
13734         (set_regs): Likewise.
13735         (free_fail_stack_return): Likewise.
13736         (check_arrival_expand_ecl): Mark DFA parameter as const.
13737         (check_arrival_expand_ecl_sub): Likewise.
13738         (check_subexp_limits): Likewise.
13739         (sub_epsilon_src_nodes):  Likewise.
13740         (add_epsilon_src_nodes):  Likewise.
13741         (merge_state_array): Likewise.
13742         (update_regs): Likewise.
13743         (build_trtable): Likewise.
13744         (sift_states_backward): Mark MCTX parameter as const.
13745         (build_sifted_states): Likewise.
13746         (update_cur_sifted_state): Likewise.
13747         (sift_states_mkref): Likewise.
13748         (check_arrival_expand_ecl): Mark eclosure as const.
13749         (check_dst_limits_calc_pos_1): Likewise.
13750         * lib/regex_internal.h (re_match_context_t): Make dfa a const
13751         pointer.
13752
13753         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
13754
13755         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
13756         (transit_state_sb): Likewise.
13757         (transit_state_mb): Likewise.
13758         (sift_states_iter_mb): Likewise.
13759         (check_arrival_add_next_nodes): Likewise.
13760         (check_node_accept_bytes): Change first parameter to pointer-to-const.
13761         [_LIBC] (re_search_2_stub): Use mempcpy.
13762
13763         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
13764         mbrtowc for very simple UTF-8 case.
13765
13766         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
13767         a pointer-to-const.
13768         (re_acquire_state_context): Likewise.
13769         * lib/regex_internal.h: Adjust prototypes.
13770
13771         * lib/regex.c: Prevent using C++ compilers.
13772
13773         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
13774         (re_acquire_state_context): Likewise.
13775
13776 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13777
13778         * modules/regex (Depends-on): Add ssize_t.
13779
13780 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13781
13782         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
13783         translation table.
13784
13785 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13786
13787         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
13788
13789 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
13790             Bruno Haible  <bruno@clisp.org>
13791
13792         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
13793         <sys/types.h> and <inttypes.h>.
13794
13795 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13796
13797         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
13798         `__error_t_defined', so argp.h will not typedef the former.
13799
13800 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13801
13802         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
13803         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
13804         glibc names.  Even if glibc is changed to conform to POSIX, the
13805         traditional names will be available anyway, since regex depends on
13806         the extensions module.  Also, fix a longstanding typo in the
13807         implementation of Spencer ERE test #75 from grep 2.3.  Problems
13808         reported by Emanuele Giaquinta.  Also, change sense of cached
13809         variable, so that the message makes sense.
13810
13811 2006-03-24  Simon Josefsson  <jas@extundo.com>
13812
13813         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
13814         including some doc fixes.
13815         (base64_encode_alloc): Fix +1 bug on allocation failures.
13816
13817 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13818
13819         * lib/base64.c (base64_encode): Do not read past end of array with
13820         unsanitized input on systems with CHAR_BIT > 8.
13821
13822 2006-03-24  Eric Blake  <ebb9@byu.net>
13823
13824         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
13825
13826 2006-03-22  Karl Berry  <karl@gnu.org>
13827
13828         * config/srclist.txt (*setenv.[ch]): get from coreutils.
13829         * config/srclistvars.sh (COREUTILS): new var.
13830
13831 2006-03-17  Jim Meyering  <jim@meyering.net>
13832
13833         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
13834         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
13835
13836 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
13837
13838         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
13839         no longer needs it.  Instead, check that regoff_t is as least
13840         as wide as ptrdiff_t.
13841
13842         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
13843         so that our regex.h stays compatible with the installed regex.
13844         This is helpful for installers who configure --without-included-regex.
13845         Problem reported by Emanuele Giaquinta.
13846
13847 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
13848
13849         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
13850         Typedef to long int, not to off_, as POSIX will likely change
13851         in that direction.
13852
13853 2006-03-15  Eric Blake  <ebb9@byu.net>
13854
13855         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
13856
13857 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
13858
13859         * lib/argp-help.c (validate_uparams): Fix typo
13860         * lib/argp-parse.c (argp_default_options): Consistently begin help
13861         messages with a lowercase letter.
13862
13863 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
13864
13865         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
13866         overrun buffers and shouldn't be used (much as gets shouldn't be
13867         used).
13868         * lib/time_r.c (asctime_r, ctime_r): Likewise.
13869
13870 2006-03-08  Simon Josefsson  <jas@extundo.com>
13871
13872         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
13873         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13874
13875 2006-03-08  Simon Josefsson  <jas@extundo.com>
13876
13877         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
13878         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13879
13880 2006-03-08  Simon Josefsson  <jas@extundo.com>
13881
13882         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
13883         signal that configure disabled the device.
13884
13885 2006-03-08  Simon Josefsson  <jas@extundo.com>
13886
13887         * build-aux/maint.mk: Fix refresh-po, to handle no translated
13888         languages.
13889
13890 2006-03-07  Simon Josefsson  <jas@extundo.com>
13891
13892         * modules/getopt (Depends-on): Add unistd.
13893
13894         * modules/unistd: New file.
13895
13896 2006-03-07  Simon Josefsson  <jas@extundo.com>
13897
13898         * modules/gc-random: New file.
13899
13900 2006-03-07  Simon Josefsson  <jas@extundo.com>
13901
13902         * m4/unistd_h.m4: New file.
13903
13904 2006-03-07  Simon Josefsson  <jas@extundo.com>
13905
13906         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
13907         test to be side-effect free by storing the result in the cache
13908         variable gl_cv_lib_readline, and moving the assignment of
13909         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
13910         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13911
13912 2006-03-07  Simon Josefsson  <jas@extundo.com>
13913
13914         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
13915         error on missing devices (the functions will return an error).
13916
13917         * m4/gc.m4: Move random stuff to gc-random.m4
13918
13919 2006-03-07  Simon Josefsson  <jas@extundo.com>
13920
13921         * lib/unistd_.h: New file.
13922
13923 2006-03-07  Simon Josefsson  <jas@extundo.com>
13924
13925         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
13926
13927 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
13928
13929         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
13930         Problem reported by Juan Manuel Guerrero.
13931
13932 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
13935         the unistd module.
13936         * lib/getlogin_r.c: Likewise.
13937         * lib/getlogin_r.h: Likewise.
13938         * lib/glob.c: Likewise.
13939         * lib/pagealign_alloc.c: Likewise.
13940         * lib/unistd_.h: Remove; no longer needed.
13941
13942 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
13943
13944         * MODULES.html.sh (Support for systems lacking POSIX:2001):
13945         Add unistd.
13946         * modules/c-stack (Depends-on): Add unistd.
13947         * modules/getlogin_r: Likewise.
13948         * modules/glob: Likewise.
13949         * modules/pagealign_alloc: Likewise.
13950         * modules/unistd (Files): Remove lib/unistd_.h.
13951         (EXTRA_DIST): Remove.
13952         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
13953         need unistd_.h.
13954         (MOSTLYCLEANFILES): Remove unistd.h-t.
13955
13956 2006-03-03  Simon Josefsson  <jas@extundo.com>
13957
13958         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
13959
13960 2006-03-03  Simon Josefsson  <jas@extundo.com>
13961
13962         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
13963         libidn and bison.
13964
13965 2006-03-03  Simon Josefsson  <jas@extundo.com>
13966
13967         * build-aux/maint.mk: Add indent target.
13968
13969 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
13970
13971         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
13972         our replacement poll.h in any case, to avoid a differing
13973         declaration from a system header.  Seen on AIX.
13974
13975 2006-03-01  Simon Josefsson  <jas@extundo.com>
13976
13977         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
13978         <kasal@ucw.cz>.
13979
13980 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13981
13982         * modules/gettime (Depends-on): Add extensions module.
13983         * modules/nanosleep (Depends-on): Likewise.
13984         * modules/settime (Depends-on): Likewise.
13985
13986 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13987
13988         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
13989         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
13990         pedantically.
13991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13992         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
13993
13994         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
13995         not "==".  Reported by Ralf Wildenhues.
13996
13997 2006-03-01  Karl Berry  <karl@gnu.org>
13998
13999         * doc/Copyright/request-*: new files, synced from gnuorg.
14000
14001 2006-03-01  Karl Berry  <karl@gnu.org>
14002
14003         * config/srclist.txt (Copyright/*): new entries.
14004
14005 2006-02-28  Simon Josefsson  <jas@extundo.com>
14006
14007         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
14008
14009 2006-02-27  Simon Josefsson  <jas@extundo.com>
14010
14011         * lib/base64.h: Indent #define's.  From Jim Meyering
14012         <jim@meyering.net>.
14013
14014 2006-02-27  Jim Meyering  <jim@meyering.net>
14015
14016         Revert the change of 2006-02-24, so these files can continue
14017         to be sync'd from gettext.
14018         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
14019         of `config.h'.
14020
14021 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14022
14023         * modules/intprops: New file.
14024         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14025         Add intprops.
14026         * modules/getloadavg (Files): Remove lib/intprops.h.
14027         (Depends-on): Add intprops.
14028         * modules/human: Likewise.
14029         * modules/inttostr: Likewise.
14030         * modules/openat: Likewise.
14031         * modules/sig2str: Likewise.
14032         * modules/userspec: Likewise.
14033         * modules/utimecmp: Likewise.
14034         * modules/xnanosleep: Likewise.
14035         * modules/xstrtol: Likewise.
14036
14037 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
14038
14039         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
14040         * modules/lock-tests (TESTS): Use $(EXEEXT).
14041         * modules/tls-tests: Likewise.
14042         * modules/argp-tests: Likewise.
14043         (check_PROGRAMS): New var, replacing...
14044         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
14045
14046 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14047
14048         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
14049         `config.h'.
14050
14051 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14052
14053         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
14054
14055 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14056
14057         Sync from coreutils.
14058         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
14059         gl_CHDIR_SAFER.
14060
14061 2006-02-22  Jim Meyering  <jim@meyering.net>
14062
14063         Sync from coreutils.
14064         * m4/chdir-safer.m4: New file.
14065
14066 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14067
14068         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
14069         AT_FDCWD exceeds INT_MAX.
14070         * lib/openat.h (AT_FDCWD): Likewise.
14071
14072 2006-02-17  Eric Blake  <address@hidden>
14073
14074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
14075
14076 2006-02-16  Simon Josefsson  <jas@extundo.com>
14077
14078         * modules/getaddrinfo (Depends-on): Add sys_socket.
14079
14080 2006-02-15  Simon Josefsson  <jas@extundo.com>
14081
14082         * build-aux/maint.mk: Add dsyntax-check rule.
14083
14084 2006-02-15  Eric Blake  <ebb9@byu.net>
14085
14086         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
14087         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
14088         'present but cannot compile' warnings on cygwin.
14089         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
14090         use ws2tcpip.h if sys/socket.h works.
14091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
14092         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
14093
14094 2006-02-14  Simon Josefsson  <jas@extundo.com>
14095
14096         * modules/maintainer-makefile (Files): Rename.
14097
14098         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
14099         and (the local) Makefile.cfg to maint-cfg.mk.
14100
14101         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
14102         to the latter.
14103
14104         * modules/maintainer-makefile: New module.
14105
14106         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
14107         severaly stripped to make it possible to build it up from scratch
14108         with reliable tests.
14109
14110         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
14111         fixes to permit overriding the default actions when configure and
14112         makefile are not available.
14113
14114 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14115
14116         Sync from coreutils.
14117         * modules/lstat (Depends-on): Don't depend on xalloc.
14118         (License): Change from GPL to LGPL, since this is now simply a
14119         replacement for a libc function.
14120
14121 2006-02-14  Jim Meyering  <jim@meyering.net>
14122
14123         Sync from coreutils.
14124
14125         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
14126         failure on deficient systems, and simplify gnulib lgpl dependencies.
14127         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
14128         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
14129
14130         * lib/xalloc-die.c: Remove unused definition of N_.
14131
14132 2006-02-14  Jim Meyering  <jim@meyering.net>
14133
14134         Sync from coreutils.
14135         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
14136         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
14137         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
14138         double-quote uses of that variable, to accommodate the rare case in
14139         which getmntent is available in none of the libraries checked.  This
14140         happens at least on FreeBSD 5.0.
14141
14142 2006-02-13  Simon Josefsson  <jas@extundo.com>
14143
14144         * gnulib-tool (Usage): Fix --import, from
14145         karl@freefriends.org (Karl Berry).
14146
14147 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
14148
14149         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
14150
14151 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
14152
14153         * lib/argp-namefrob.h: Restore changes accidentally lost during the
14154         "autoupdate" on 2005-12-12.
14155
14156 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14157
14158         * modules/closeout (Depends-on): Remove atexit.
14159
14160 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14161
14162         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
14163         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
14164
14165 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14166
14167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
14168         __EXTENSIONS__ if this causes compilation to fail.  Problem
14169         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
14170         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
14171
14172 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
14173
14174         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
14175         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
14176         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
14177         All uses changed.
14178
14179 2006-01-26  Simon Josefsson  <jas@extundo.com>
14180
14181         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
14182         prototype is visible on mingw32.
14183
14184         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
14185         for mingw32.
14186
14187         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
14188         mingw32).
14189
14190 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
14191
14192         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
14193         attempt to open for write; this always fails, at least on POSIX
14194         hosts.  This reinstates the 2006-01-09 change, which was
14195         inadvertently removed.
14196
14197 2006-01-26  Bruno Haible  <bruno@clisp.org>
14198
14199         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
14200         Reported by Paul Eggert.
14201
14202 2006-01-26  Bruno Haible  <bruno@clisp.org>
14203             Paul Eggert  <eggert@cs.ucla.edu>
14204
14205         * lib/stdbool_.h (_Bool)
14206         [(! (defined __cplusplus || defined __BEOS__)
14207           && !defined __GNUC__
14208           && !(defined __HP_cc || defined __xlc__
14209                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
14210                || defined __sgi))]:
14211         #define to signed char in these cases too; this simplifies
14212         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
14213         etc., separately) and makes it more conservative.
14214
14215 2006-01-25  Simon Josefsson  <jas@extundo.com>
14216
14217         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
14218         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
14219         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
14220
14221 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14222
14223         * lib/argp-namefrob.h: Bugfix. Remove stray #
14224
14225 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
14228         so that we test the test.
14229         Check for yet another HP-UX cc bug involving *bool |= bool.
14230
14231 2006-01-25  Karl Berry  <karl@gnu.org>
14232
14233         * config/srclist.txt (vasnprintf.c): sync lost.
14234
14235 2006-01-25  Jim Meyering  <jim@meyering.net>
14236
14237         Sync from the stable (b5) branch of coreutils:
14238
14239         * lib/fts.c (fts_children): Don't let close() clobber errno from
14240         failed fchdir().
14241
14242         * lib/fts.c (fts_stat): When following a symlink-to-directory,
14243         don't necessarily interpret stat-fails+lstat-succeeds as indicating
14244         a dangling symlink.  That can also happen at least for ELOOP.
14245         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
14246         FYI, this bug predates the inclusion of fts.c in coreutils.
14247
14248         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
14249         in their own block, so pre-c99 compilers don't object.
14250
14251         Avoid the double-free (first in fts_read, second in fts_close) that
14252         would occur when an `active' directory is made inaccessible (e.g.,
14253         via chmod a-x) during a traversal.
14254         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14255         before returning.  Reproduce this failure by
14256         mkdir -p a/b; cd a; chmod a-x . b
14257         Reported by Stavros Passas.
14258
14259 2006-01-25  Jim Meyering  <jim@meyering.net>
14260
14261         * lib/fileblocks.c: Remove more useless parentheses.
14262         * lib/readutmp.h: Likewise.
14263
14264 2006-01-25  Bruno Haible  <bruno@clisp.org>
14265
14266         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
14267         warnings.
14268         Reported by Paul Eggert.
14269
14270 2006-01-25  Bruno Haible  <bruno@clisp.org>
14271
14272         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
14273         rid of a trap command. For Solaris sh.
14274         Reported by Mark D. Baushke <mdb@gnu.org>.
14275
14276 2006-01-24  Simon Josefsson  <jas@extundo.com>
14277
14278         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
14279         Bruno.
14280
14281 2006-01-24  Karl Berry  <karl@gnu.org>
14282
14283         * config/srclist.txt (argp-namefrob.h): sync lost.
14284
14285 2006-01-24  Jim Meyering  <jim@meyering.net>
14286
14287         * modules/openat (Files): Add lib/intprops.h.
14288         From Mark D. Baushke.
14289
14290 2006-01-24  Jim Meyering  <jim@meyering.net>
14291
14292         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
14293         Reported by Mark D. Baushke.
14294
14295 2006-01-24  Jim Meyering  <jim@meyering.net>
14296
14297         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
14298
14299 2006-01-24  Bruno Haible  <bruno@clisp.org>
14300
14301         * modules/strnlen (Maintainer): Change from glibc to all.
14302
14303 2006-01-24  Bruno Haible  <bruno@clisp.org>
14304
14305         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
14306         Patch by Paul Eggert.
14307
14308 2006-01-24  Bruno Haible  <bruno@clisp.org>
14309
14310         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
14311         already has it.
14312         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
14313         2005-11-26.
14314
14315         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
14316         'signed char' to avoid problems with the built-in _Bool type.
14317         Reported by Paul Eggert on 2005-11-26.
14318
14319 2006-01-24  Bruno Haible  <bruno@clisp.org>
14320
14321         * gnulib-tool (func_import): Avoid constructing complicated sed
14322         expressions inside backquote.
14323         Report and solution by Mark D. Baushke <mdb@gnu.org>.
14324
14325 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
14326
14327         These changes imported from libc.
14328         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
14329         test and two separate function calls.
14330         * lib/strndup.c (__strndup): Add libc_hidden_def.
14331
14332 2006-01-23  Simon Josefsson  <jas@extundo.com>
14333
14334         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
14335         Remove the test_*_SOURCES variable: automake infers it by default.
14336         * modules/tls-tests: Likewise.
14337
14338 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14339
14340         Work around porting bugs reported by Dieter in
14341         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
14342         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
14343         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
14344         Include "getopt.h" first, to check interface.
14345         (getenv): Declare only if defined HAVE_DECL_GETENV &&
14346         !HAVE_DECL_GETENV.
14347         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
14348         (__strndup): Revert to K&R-style function dfns, the glibc style.
14349         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
14350         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
14351         Include strnlen.h first, to get prototype properly.
14352         (strnlen): Renamed from __strnlen.
14353         Remove weak alias.
14354
14355 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14356
14357         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
14358
14359 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14360
14361         * config/srclist.txt: Adjust to reflect glibc reorganization.
14362         This affects only comments.
14363
14364 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
14365
14366          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
14367          Reported by Bruce Korb <bkorb@gnu.org>.
14368
14369 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14370
14371         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
14372         to pacify gcc -Wswitch-default.
14373
14374 2006-01-22  Bruno Haible  <bruno@clisp.org>
14375
14376         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
14377         temporary buffer for sprintf, take into account the precision also
14378         for 'd', 'i', 'u', 'o', 'x', 'X'.
14379
14380 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14381
14382         * modules/argp-tests: New module
14383         * tests/test-argp.c: New file
14384         * tests/test-argp-2.sh: New file
14385
14386 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14387
14388         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
14389         (__argp_base_name): Removed
14390         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
14391         typo.
14392         (__argp_base_name): Provide macro definition or extern declaration
14393         depending on the configuration
14394
14395 2006-01-20  Simon Josefsson  <jas@extundo.com>
14396
14397         * modules/inet_ntop (Depends-on): Depend on sys_socket.
14398
14399 2006-01-20  Simon Josefsson  <jas@extundo.com>
14400
14401         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
14402
14403 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14404
14405         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
14406         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
14407         Suggested by Bruno Haible.
14408
14409 2006-01-20  Karl Berry  <karl@gnu.org>
14410
14411         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
14412         until changes propagate, I guess.
14413
14414 2006-01-19  Simon Josefsson  <jas@extundo.com>
14415
14416         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
14417
14418 2006-01-19  Simon Josefsson  <jas@extundo.com>
14419
14420         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
14421
14422 2006-01-19  Simon Josefsson  <jas@extundo.com>
14423
14424         * gnulib-tool: Set check_PROGRAMS.
14425
14426         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14427         modules/des-tests, modules/gc-arcfour-tests,
14428         modules/gc-arctwo-tests, modules/gc-des-tests,
14429         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14430         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14431         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14432         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14433         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14434         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
14435         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
14436         test_*_SOURCES.
14437
14438 2006-01-18  Simon Josefsson  <jas@extundo.com>
14439
14440         * modules/socklen (Depends-on): Depend on sys_socket.
14441
14442 2006-01-18  Simon Josefsson  <jas@extundo.com>
14443
14444         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14445         modules/des-tests, modules/gc-arcfour-tests,
14446         modules/gc-arctwo-tests, modules/gc-des-tests,
14447         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14448         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14449         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14450         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14451         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14452         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
14453         $(EXEEXT) to automake TESTS variable, for mingw32.
14454
14455 2006-01-17  Simon Josefsson  <jas@extundo.com>
14456
14457         * modules/socklen (Include): Need sys/socket.h.
14458
14459 2006-01-17  Bruno Haible  <bruno@clisp.org>
14460
14461         * modules/ssize_t (Include): Add <sys/types.h>.
14462
14463 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14464
14465         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
14466         it's not portable and it doesn't work with cross-compiles.
14467         Problem reported by Bruno Haible.  Fix missing-$ typo in
14468         'test "gl_cv_ignore_unused_libraries" ...' that prevented
14469         -zignore from being used with Sun's C compiler.
14470
14471 2006-01-12  Simon Josefsson  <jas@extundo.com>
14472
14473         * lib/base64.c: Fix warning, reported by Bruno Haible
14474         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
14475
14476 2006-01-12  Bruno Haible  <bruno@clisp.org>
14477
14478         * modules/ldd: New file.
14479         * build-aux/ldd.sh.in: New file.
14480         * MODULES.html.sh (Support for building libraries and executables): Add
14481         ldd.
14482
14483 2006-01-12  Bruno Haible  <bruno@clisp.org>
14484
14485         * m4/ldd.m4: New file.
14486
14487 2006-01-12  Bruno Haible  <bruno@clisp.org>
14488
14489         * gnulib-tool (func_import, func_create_testdir): Don't go into an
14490         endless loop while replacing $auxdir with build-aux.
14491
14492 2006-01-11  Simon Josefsson  <jas@extundo.com>
14493
14494         * lib/stdint_.h (SIZE_MAX): Add missing (.
14495
14496 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14497
14498         Sync from coreutils.
14499         * lib/md5.c: Fix commentary typos.
14500         (alignof, UNALIGNED_P): No need for a GCC-specific version.
14501         * lib/md5.h (__attribute__): Remove; unused.
14502         * lib/sha1.c: Fix commentary to match md5 better.
14503         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
14504         so that we don't need to worry about alignment.  All uses changed.
14505         This merges the 2005-10-28 md5 change into sha1.
14506
14507 2006-01-11  Jim Meyering  <jim@meyering.net>
14508
14509         Sync from coreutils.
14510         * lib/md5.c (OP): Fix spacing.
14511
14512 2006-01-11  Bruno Haible  <bruno@clisp.org>
14513
14514         Ensure automatic ordering between gl_LOCK and gl_ARGP.
14515         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
14516         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
14517
14518 2006-01-11  Bruno Haible  <bruno@clisp.org>
14519
14520         Ensure automatic ordering between gl_LOCK and gl_ARGP.
14521         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
14522         the "early" section as well.
14523
14524 2006-01-11  Bruno Haible  <bruno@clisp.org>
14525
14526         Avoid "ar: no archive members specified" error on MacOS X.
14527         * gnulib-tool (func_modules_add_dummy): New function.
14528         (func_import, func_create_testdir): Invoke it.
14529
14530 2006-01-11  Bruno Haible  <bruno@clisp.org>
14531
14532         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
14533         with $auxdir in AC_CONFIG_FILES statements.
14534
14535 2006-01-11  Bruno Haible  <bruno@clisp.org>
14536
14537         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14538         Initialize also noinst_HEADERS to empty.
14539
14540 2006-01-11  Bruno Haible  <bruno@clisp.org>
14541
14542         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
14543         variables.
14544         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
14545         autoreconf.
14546
14547 2006-01-11  Bruno Haible  <bruno@clisp.org>
14548
14549         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
14550         overridable by the user.
14551         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14552
14553 2006-01-10  Simon Josefsson  <jas@extundo.com>
14554
14555         * modules/sys_socket: New file.
14556
14557 2006-01-10  Simon Josefsson  <jas@extundo.com>
14558
14559         * m4/sys_socket_h.m4: New file.
14560
14561 2006-01-10  Simon Josefsson  <jas@extundo.com>
14562
14563         * lib/socket_.h: New file.
14564
14565 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14566
14567         * modules/readutmp (Maintainer): Add myself.
14568
14569 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14570
14571         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
14572         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
14573         People who are still concerned with buggy memcmp implementations
14574         can invoke gl_FUNC_MEMCMP themselves.
14575
14576 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14577
14578         * lib/regex_internal.h (BITSET_WORD_BITS):
14579         Work around a bug in 64-bit PGC (before version 6.1-2), where the
14580         preprocessor mishandles large unsigned values as if they were signed.
14581         Problem reported by Claudio Fontana in
14582         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
14583
14584 2006-01-10  Jim Meyering  <jim@meyering.net>
14585
14586         Avoid the double-free (first in fts_read, second in fts_close) that
14587         would occur when an `active' directory is made inaccessible (e.g.,
14588         via chmod a-x) during a traversal.
14589         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14590         before returning.  Reproduce this failure by
14591         mkdir -p a/b; cd a; chmod a-x . b
14592         Reported by Stavros Passas.
14593
14594         Sync from coreutils.
14595         * lib/sha1.c: Tweak grammar in a comment.
14596
14597 2006-01-10  Jim Meyering  <jim@meyering.net>
14598
14599         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
14600         Patch by Joerg Sonnenberger.
14601
14602 2006-01-10  Bruno Haible  <bruno@clisp.org>
14603
14604         * modules/readutmp: Depend on module free.
14605         * modules/strtok_r: Depend on module restrict.
14606
14607 2006-01-10  Bruno Haible  <bruno@clisp.org>
14608
14609         * modules/gettext (configure.ac): Add an invocation of
14610         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
14611
14612 2006-01-10  Bruno Haible  <bruno@clisp.org>
14613
14614         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
14615         Reported by Werner Lemberg <wl@gnu.org>.
14616
14617 2006-01-10  Bruno Haible  <bruno@clisp.org>
14618
14619         * lib/localcharset.c: Update from GNU gettext.
14620
14621 2006-01-10  Bruno Haible  <bruno@clisp.org>
14622
14623         * lib/argp.h (__const): Remove macro. Use const instead.
14624         * lib/argp-fmtstream.h (__const): Likewise.
14625         * lib/glob_.h (__const): Remove macro.
14626         * lib/glob-libc.h: Use const instead of __const.
14627
14628 2006-01-10  Bruno Haible  <bruno@clisp.org>
14629
14630         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
14631         variable.
14632         Needed to avoid an automake error regarding the 'gettext' module.
14633
14634 2006-01-09  Simon Josefsson  <jas@extundo.com>
14635
14636         * modules/inet_ntop (Depends-on): Add restrict.
14637
14638 2006-01-09  Simon Josefsson  <jas@extundo.com>
14639
14640         * modules/gc-rijndael-tests (License): Put under LGPL.
14641
14642         * modules/gc-des-tests (License): Likewise.
14643
14644         * modules/gc-arcfour-tests (License): Likewise.
14645
14646         * modules/gc-arctwo-tests (License): Likewise.
14647
14648         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
14649
14650         * modules/gc-hmac-sha1-tests (Files): Likewise.
14651
14652         * modules/gc-hmac-md5-tests (License): Likewise.
14653
14654         * modules/gc-sha1-tests (License): Likewise.
14655
14656         * modules/gc-md5-tests (License): Likewise.
14657
14658         * modules/gc-md4-tests (License): Likewise.
14659
14660         * modules/gc-md2-tests (License): Likewise.
14661
14662         * modules/gc-tests (License): Likewise.
14663
14664         * modules/des-tests (License): Likewise.
14665
14666         * modules/md4-tests (License): Likewise.
14667
14668         * modules/md2-tests (License): Likewise.
14669
14670 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14671
14672         Sync from coreutils:
14673
14674         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
14675         * modules/lib-ignore: New file.
14676         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
14677         chdir-safer.m4, lchmod.m4.
14678         * modules/openat: Add mkdirat.c, openat-priv.h.
14679
14680 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14681
14682         Sync from coreutils.
14683         * m4/lib-ignore.m4: New file.
14684         * m4/lchmod.m4: New file.
14685
14686 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14687
14688         Sync from coreutils.
14689         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
14690         for write access: POSIX says that must fail.
14691         * lib/fts.c (diropen): Likewise.
14692         * lib/save-cwd.c (save_cwd): Likewise.
14693         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
14694         well, for minor improvements on hosts that lack O_DIRECTORY.
14695         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
14696         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
14697         Fall back on chown if open failed with EACCES.
14698
14699         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
14700         Report an error at compile-time if only a 1-second nominal clock
14701         resolution is found.
14702
14703         * lib/lchmod.h: New file.
14704         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
14705         (make_dir_parents): Use lchown rather than chown, and
14706         lchmod rather than chmod.
14707
14708         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
14709         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
14710         "proc" reported by n0dalus.
14711
14712         * lib/mountlist.c: Include <limits.h>.
14713         (dev_from_mount_options)
14714         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
14715         New function.  It no longer assumes "dev=" has the System V meaning
14716         on Linux (since it doesn't).  It also parses "dev=" more carefully.
14717         (read_file_system_list)
14718         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
14719         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
14720         dev= in that case.
14721
14722         * lib/posixtm.h (PDS_PRE_2000): New macro.
14723         * lib/posixtm.c (year): Arg is now syntax_bits rather than
14724         allow_century.  All usages changed.  Reject dates outside the range
14725         1969-1999 if PDS_PRE_2000 is used.
14726
14727 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14728
14729         Sync from coreutils.
14730         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
14731         (Time of day items): Mention the possibility of leap seconds.
14732         Problem reported by Dr. David Alan Gilbert.
14733
14734 2006-01-09  Jim Meyering  <jim@meyering.net>
14735
14736         Sync from coreutils.
14737
14738         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
14739
14740         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
14741
14742         * lib/modechange.c (mode_compile): Reject an invalid mode string
14743         that starts with an octal digit.  From Andreas Gruenbacher.
14744
14745         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
14746         and dup to open_safer and dup_safer, respectively.
14747         (openat_permissive): Fix typo in comment.
14748
14749         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
14750         "gettext.h"; either no longer needed or are guaranteed by openat.h.
14751         (_): Remove; no longer needed.
14752         (openat): Renamed from rpl_openat; no need for rpl_openat
14753         since openat.h renames openat for us.
14754         Replace most of the body with a call to openat_permissive,
14755         to avoid duplicate code.
14756         Port to (probably hypothetical) environments were mode_t is
14757         wider than int.
14758         (openat_permissive): Require mode arg, so that we can check
14759         types better.  Put it just after flags.  Change cwd failure
14760         indicator from pointer-to-bool to pointer-to-errno-value.
14761         All callers changed.
14762         Invoke openat_save_fail and/or openat_restore_fail if
14763         cwd_errno is null, so that openat can call us.
14764         (openat_permissive, fdopendir, fstatat, unlinkat):
14765         Simplify errno handling to avoid some duplicate code,
14766         as it's OK to set errno on success.
14767         * lib/openat.h: Revamp code so that function macros depend on
14768         __OPENAT_PREFIX only, not also on AT_FDCWD.
14769         (openat_ro): Remove.  Caller changed to use openat_permissive.
14770         (openat_permissive): Now a macro, if not a function.
14771         (openat_restore_fail, openat_save_fail): Now always functions,
14772         since mkdirat needs them even if __OPENAT_PREFIX is defined.
14773
14774         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
14775         and openat.c.
14776         * lib/mkdirat.c: Include openat-priv.h.
14777         Remove definitions of macros defined therein.
14778         * lib/openat.c: Likewise.
14779
14780         * lib/mkdirat.c (mkdirat): New file and function.
14781         * lib/openat.h (mkdirat): Declare.
14782
14783         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
14784
14785         * lib/openat.h (openat_permissive): Declare.
14786         (openat_ro): Define.
14787
14788         * lib/openat.c (EXPECTED_ERRNO): New macro.
14789         (openat_permissive): New function -- used in remove.c rewrite.
14790         (all functions): Set errno just before returning, only if there
14791         was an actual failure.
14792         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
14793
14794         Emulate openat-family functions using Linux's procfs, if possible.
14795         Idea and some code based on Ulrich Drepper's glibc changes.
14796
14797         * lib/openat.c: (BUILD_PROC_NAME): New macro.
14798         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
14799         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
14800         before falling back on save_cwd and restore_cwd.
14801         (fdopendir, fstatat, unlinkat): Likewise.
14802
14803         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
14804         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
14805
14806         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
14807         as second argument to va_arg.  Otherwise, some versions of gcc
14808         warn that `if this code is reached, the program will abort'.
14809
14810 2006-01-09  Jim Meyering  <jim@meyering.net>
14811
14812         Sync from coreutils.
14813         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
14814         Require openat-priv.h.
14815
14816 2006-01-09  Bruno Haible  <bruno@clisp.org>
14817
14818         * modules/strnlen (Include): Use strnlen.h.
14819
14820 2006-01-09  Bruno Haible  <bruno@clisp.org>
14821
14822         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
14823
14824 2006-01-09  Bruno Haible  <bruno@clisp.org>
14825
14826         * lib/sysexit_.h (EX_OK): New macro.
14827         Suggested by Martin Lambers <marlam@marlam.de>.
14828
14829 2006-01-09  Bruno Haible  <bruno@clisp.org>
14830
14831         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
14832         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
14833
14834 2006-01-09  Bruno Haible  <bruno@clisp.org>
14835
14836         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
14837         numbers.
14838
14839 2006-01-09  Bruno Haible  <bruno@clisp.org>
14840
14841         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
14842         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
14843         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
14844         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
14845
14846 2006-01-09  Bruno Haible  <bruno@clisp.org>
14847
14848         * build-aux/javacomp.sh.in: New file, moved from lib/.
14849         * modules/javacomp-script (Files): Update.
14850         (configure.ac): Add AC_CONFIG_FILES invocation.
14851         (EXTRA_DIST): Remove variable.
14852
14853         * build-aux/javaexec.sh.in: New file, moved from lib/.
14854         * modules/javaexec (Files): Update.
14855         (configure.ac): Add AC_CONFIG_FILES invocation.
14856         (EXTRA_DIST): Remove javaexec.sh.in.
14857
14858         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
14859         * modules/csharpcomp-script (Files): Update.
14860         (configure.ac): Add AC_CONFIG_FILES invocation.
14861         (EXTRA_DIST): Remove variable.
14862
14863         * build-aux/csharpexec.sh.in: New file, moved from lib/.
14864         * modules/csharpexec (Files): Update.
14865         (configure.ac): Add AC_CONFIG_FILES invocation.
14866         (EXTRA_DIST): Remove csharpexec.sh.in.
14867
14868 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
14869
14870         Sync from coreutils.
14871
14872         Add POSIX ACL support
14873         * lib/acl.h (copy_acl, set_acl): Add declarations.
14874         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
14875         systems other than Linux.
14876         (chmod_or_fchmod): New function: use fchmod when possible,
14877         and chmod otherwise.
14878         (file_has_acl): Add a POSIX ACL implementation, with a
14879         Linux-specific subcase.
14880         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
14881         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
14882         acls are unsupported.
14883         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
14884         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
14885         are unsupported.
14886
14887 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
14888
14889         Sync from coreutils.
14890         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
14891
14892 2006-01-07  Bruno Haible  <bruno@clisp.org>
14893
14894         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
14895         gl_EARLY.
14896
14897 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14898
14899         * lib/strftime.c (tzname): Don't declare if it is already #defined.
14900         Problem reported for Mingw by Mark Junker.
14901
14902 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14903
14904         * README: Gnulib normally doesn't generate a tarball.
14905
14906 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14907
14908         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
14909         long int, not int, for nanosecond counts, so that people who are
14910         used to POSIX struct timespec won't be surprised.  Reported by Jim
14911         Meyering.
14912
14913 2005-12-28  Bruno Haible  <bruno@clisp.org>
14914
14915         * build-aux/config.rpath: Update from GNU gettext.
14916
14917 2005-12-16  Jim Meyering  <jim@meyering.net>
14918
14919         * modules/fprintftime: New module.
14920         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
14921
14922 2005-12-16  Jim Meyering  <jim@meyering.net>
14923
14924         * m4/fprintftime.m4: New file.
14925
14926 2005-12-16  Jim Meyering  <jim@meyering.net>
14927
14928         * lib/fprintftime.c, lib/fprintftime.h: New files.
14929
14930 2005-12-15  Simon Josefsson  <jas@extundo.com>
14931
14932         * modules/socklen (configure.ac): Fix M4 macro name, to align with
14933         new m4/socklen.m4.
14934
14935 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
14936
14937         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
14938         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
14939
14940 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
14941
14942         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
14943         * lib/argp-help.c (fill_in_uparams): Check if the constructed
14944         struct uparams is valid. Fall back to the default values if it is
14945         not.
14946
14947 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
14948
14949         * modules/argp (Files): Add argp-pin.c
14950         (Depends-on): dirname
14951         (lib_SOURCES): Add argp-pin.c
14952
14953 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
14954
14955         * m4/argp.m4:  Check if program_invocation_name and
14956         program_invocation_short_name are declared and define appropriate
14957         macros if they are not.
14958
14959 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
14960
14961         * lib/argp-help.c (__argp_base_name): New function
14962         (__argp_short_program_name): Rewrite using __argp_base_name
14963         * lib/argp-namefrob.h: Define program_invocation_name and
14964         program_invocation_short_name if requested
14965         (__argp_base_name): Add prototype
14966         * lib/argp-parse.c (argp_def): Use gettext wrappers
14967         (argp_default_parser): Use __argp_base_name
14968         * lib/argp-pin.c: New file. Defines program_invocation_name and
14969         program_invocation_short_name on systems that lack them.
14970
14971 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14972
14973         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
14974         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
14975         porting problem reported by Georg Schwarz in
14976         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
14977
14978 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14979
14980         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
14981         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
14982         porting problem reported by Georg Schwarz in
14983         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
14984
14985 2005-12-05  Bruno Haible  <bruno@clisp.org>
14986
14987         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
14988         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
14989         Reported by Mark Junker <mjscod@gmx.de>.
14990
14991 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
14992
14993         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
14994         Use implementation from Albert Chin, with some
14995         comments/corrections by Stepan Kasal and myself.
14996
14997 2005-12-02  Bruno Haible  <bruno@clisp.org>
14998
14999         * gnulib-tool (func_import): Accept GPLed build tool modules when
15000         --lgpl is given.
15001         * modules/csharpcomp-script: New file.
15002         * modules/csharpcomp: Depend on it.
15003         * modules/javacomp-script: New file.
15004         * modules/javacomp: Depend on it.
15005         Suggested by Simon Josefsson.
15006
15007 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
15010         statement, to work around an HP-UX 10.20 compiler bug reported by
15011         Peter O'Gorman.
15012
15013 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15014
15015         * modules/savedir (Depends-on): Add openat.
15016
15017 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15018
15019         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
15020         (uintmax_t) [defined uintmax_t]: Do not declare.
15021         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
15022         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
15023         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
15024         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
15025         sake of portability to weird hosts that C allows (though we don't
15026         know of any practical examples).
15027
15028         * lib/savedir.h (fdsavedir): New decl.
15029         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
15030         contains most of the former guts of savedir.
15031         (savedir): Use savedirstream.
15032         Include "openat.h".
15033
15034 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15035
15036         * modules/obstack (Files): Add m4/ulonglong.m4.
15037         Problem reported by Davide Angelocola.
15038
15039 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15040
15041         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
15042         coreutils no longer futzes with rounding modes.
15043
15044 2005-11-14  Jim Meyering  <jim@meyering.net>
15045
15046         * lib/mkstemp-safer.c: Include <config.h>, required for possible
15047         replacement of mkstemp.
15048
15049 2005-11-10  Simon Josefsson  <jas@extundo.com>
15050
15051         * lib/readline.c: Remove EOL.
15052
15053 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15054
15055         * modules/gethrxtime (Depends-on): Add gettime.
15056
15057 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15058
15059         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
15060         or gettimeofday; no longer needed.
15061
15062 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15063
15064         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
15065         time business.
15066         (gethrxtime) [! (HAVE_NANOUPTIME
15067         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
15068         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
15069         our own approximation.
15070
15071 2005-11-08  Eric Blake  <ebb9@byu.net>
15072
15073         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15074
15075 2005-11-08  Eric Blake  <ebb9@byu.net>
15076
15077         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15078
15079 2005-11-04  Bruno Haible  <bruno@clisp.org>
15080
15081         * gnulib-tool: Implement --update mode.
15082
15083 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15084
15085         Fix porting problem reported by Theodoros V. Kalamatianos.
15086         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
15087         Don't assume that futimes failing means we must fail.
15088
15089 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15090
15091         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
15092         variables to suggest the intended function of the PATH_MAX check.
15093
15094 2005-10-30  Kean Johnston  <jkj@sco.com>
15095
15096         Trivial changes to support SCO systems.
15097         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
15098         as PATH_MAX.
15099         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
15100         where __ptr is null when no I/O is pending.
15101
15102 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15103
15104         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
15105         leave errno alone.  Problem reported by Dmitry V. Levin.
15106
15107 2005-10-28  Simon Josefsson  <jas@extundo.com>
15108
15109         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
15110         Test more.
15111
15112         * tests/test-gc-md2.c, tests/test-md2.c: New files.
15113
15114         * modules/md2, modules/md2-tests: New files.
15115
15116 2005-10-28  Simon Josefsson  <jas@extundo.com>
15117
15118         * m4/inet_ntop.m4: More tests.
15119
15120         * m4/gc-md2.m4, md2.m4: New file.
15121
15122 2005-10-28  Simon Josefsson  <jas@extundo.com>
15123
15124         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
15125         "restrict" keywords, as per POSIX.  Protect the function
15126         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
15127         Don't use K&R prototypes.  Check the sprintf return values.
15128         Re-define EAFNOSUPPORT if not present.  Indent.
15129
15130         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
15131         suggested by Bruno Haible <bruno@clisp.org>.
15132
15133         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
15134
15135         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
15136
15137         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
15138         libgcrypt).
15139
15140         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
15141
15142         * lib/md2.h, lib/md2.c: New files.
15143
15144 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15145
15146         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
15147         errno alone.  Problem reported by Frederic Jolliton.
15148
15149 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
15150
15151         * modules/verify (License): Change from GPL to LGPL.  This is a
15152         tiny module and there are apparently near-equivalents that are
15153         under the BSD license.
15154
15155 2005-10-24  Simon Josefsson  <jas@extundo.com>
15156
15157         * modules/sha1: Relicense to LGPL.
15158
15159 2005-10-24  Simon Josefsson  <jas@extundo.com>
15160
15161         * lib/md4.h: Shrink buffer size, now that we changed the type.
15162
15163 2005-10-23  Simon Josefsson  <jas@extundo.com>
15164
15165         * gnulib-tool (func_import): Fix --tests-base.
15166
15167 2005-10-22  Simon Josefsson  <jas@extundo.com>
15168
15169         * modules/arcfour (Depends-on): Need stdint.
15170
15171 2005-10-22  Simon Josefsson  <jas@extundo.com>
15172
15173         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
15174         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
15175
15176 2005-10-22  Simon Josefsson  <jas@extundo.com>
15177
15178         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
15179         suggested by Bruno Haible <bruno@clisp.org>.
15180
15181 2005-10-22  Simon Josefsson  <jas@extundo.com>
15182
15183         * lib/crc.h: Include stddef.h, for size_t.
15184
15185 2005-10-22  Simon Josefsson  <jas@extundo.com>
15186
15187         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
15188         arcfour_context struct (simplify test vector testing in GNU
15189         Shishi).
15190
15191 2005-10-21  Simon Josefsson  <jas@extundo.com>
15192
15193         * modules/des, modules/des-tests: New files.
15194
15195         * modules/gc-des, modules/gc-des-tests: New files.
15196
15197         * tests/test-des.c, tests/test-gc-des.c: New file.
15198
15199 2005-10-21  Simon Josefsson  <jas@extundo.com>
15200
15201         * modules/arctwo, modules/arctwo-tests: New files.
15202
15203         * tests/test-arctwo.c: New file.
15204
15205         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
15206
15207         * tests/test-gc-arctwo.c: New file.
15208
15209 2005-10-21  Simon Josefsson  <jas@extundo.com>
15210
15211         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
15212         Bruno Haible <bruno@clisp.org>.
15213
15214         * m4/gc-des.m4: New file.
15215
15216 2005-10-21  Simon Josefsson  <jas@extundo.com>
15217
15218         * m4/arctwo.m4: New file.
15219
15220         * m4/gc-arctwo.m4: New file.
15221
15222 2005-10-21  Simon Josefsson  <jas@extundo.com>
15223
15224         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
15225         block.
15226
15227 2005-10-21  Simon Josefsson  <jas@extundo.com>
15228
15229         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
15230         <bruno@clisp.org>.
15231
15232         * lib/hmac-sha1.c (hmac_sha1): Likewise.
15233
15234         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
15235         Bruno Haible <bruno@clisp.org>.
15236
15237         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
15238         <bruno@clisp.org>.
15239
15240 2005-10-21  Simon Josefsson  <jas@extundo.com>
15241
15242         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
15243
15244 2005-10-21  Simon Josefsson  <jas@extundo.com>
15245
15246         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
15247
15248 2005-10-21  Simon Josefsson  <jas@extundo.com>
15249
15250         * lib/des.h, lib/des.c: New files.
15251
15252         * lib/gc-gnulib.c: Support DES.c
15253
15254 2005-10-21  Simon Josefsson  <jas@extundo.com>
15255
15256         * lib/arctwo.h, lib/arctwo.c: New files.
15257
15258         * lib/gc-gnulib.c: Support ARCTWO.
15259
15260 2005-10-21  Simon Josefsson  <jas@extundo.com>
15261
15262         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
15263         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15264
15265 2005-10-21  Simon Josefsson  <jas@extundo.com>
15266
15267         * gnulib-tool (func_import, func_create_testdir): Define automake
15268         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
15269         Makefile.am snippet),
15270         suggested by Bruno Haible <bruno@clisp.org>.
15271
15272         * modules/gc (Makefile.am): Use it.
15273
15274 2005-10-21  Bruno Haible  <bruno@clisp.org>
15275
15276         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
15277         patch.
15278
15279 2005-10-19  Simon Josefsson  <jas@extundo.com>
15280
15281         * tests/test-gc-rijndael.c: New file.
15282
15283         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
15284
15285 2005-10-19  Simon Josefsson  <jas@extundo.com>
15286
15287         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
15288         interface too.
15289
15290 2005-10-19  Simon Josefsson  <jas@extundo.com>
15291
15292         * tests/test-gc-arcfour.c: New file.
15293
15294         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
15295
15296 2005-10-19  Simon Josefsson  <jas@extundo.com>
15297
15298         * modules/gc-md4, modules/gc-md4-tests: New file.
15299
15300         * tests/test-gc-md4.c: New file.
15301
15302 2005-10-19  Simon Josefsson  <jas@extundo.com>
15303
15304         * m4/gc-md4.m4: New file.
15305
15306 2005-10-19  Simon Josefsson  <jas@extundo.com>
15307
15308         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
15309         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
15310         <kasal@ucw.cz>.
15311
15312 2005-10-19  Simon Josefsson  <jas@extundo.com>
15313
15314         * m4/gc-arcfour.m4: New file.
15315
15316         * m4/gc-rijndael.m4: New file.
15317
15318 2005-10-19  Simon Josefsson  <jas@extundo.com>
15319
15320         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
15321
15322 2005-10-19  Simon Josefsson  <jas@extundo.com>
15323
15324         * lib/gc-gnulib.c: Support ARCFOUR.
15325
15326 2005-10-19  Simon Josefsson  <jas@extundo.com>
15327
15328         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
15329         support.
15330
15331         * lib/gc.h: Add ECB enum type.
15332
15333         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
15334
15335 2005-10-18  Simon Josefsson  <jas@extundo.com>
15336
15337         * tests/test-md5.c: New file.
15338
15339         * modules/md5-tests: New file.
15340
15341 2005-10-18  Simon Josefsson  <jas@extundo.com>
15342
15343         * tests/test-md4.c: New file.
15344
15345         * modules/md4, modules/md4-tests: New files.
15346
15347 2005-10-18  Simon Josefsson  <jas@extundo.com>
15348
15349         * m4/md4.m4: New file.
15350
15351 2005-10-18  Simon Josefsson  <jas@extundo.com>
15352
15353         * lib/md4.h, lib/md4.c: New files, based on md5.?.
15354
15355 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
15356
15357         * gnulib-tool (func_create_testdir): Omit the second check whether
15358         BUILT_SOURCES in nonempty.
15359
15360 2005-10-17  Simon Josefsson  <jas@extundo.com>
15361
15362         * tests/test-rijndael.c: New file.
15363
15364 2005-10-17  Simon Josefsson  <jas@extundo.com>
15365
15366         * modules/sha1: Depend on stdint instead of md5.
15367
15368         * modules/md5: Depend on stdint, remove uint32_t.
15369
15370 2005-10-17  Simon Josefsson  <jas@extundo.com>
15371
15372         * modules/gc-sha1-tests: New file.
15373
15374         * tests/test-gc-sha1.c: New file.
15375
15376 2005-10-17  Simon Josefsson  <jas@extundo.com>
15377
15378         * m4/md5.m4: Remove call to uint32_t.m4.
15379
15380 2005-10-17  Simon Josefsson  <jas@extundo.com>
15381
15382         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
15383
15384         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
15385         md5.h.
15386
15387         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
15388
15389         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
15390
15391 2005-10-17  Simon Josefsson  <jas@extundo.com>
15392
15393         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
15394
15395 2005-10-17  Simon Josefsson  <jas@extundo.com>
15396
15397         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
15398
15399 2005-10-17  Simon Josefsson  <jas@extundo.com>
15400
15401         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
15402
15403         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
15404
15405 2005-10-17  Bruno Haible  <bruno@clisp.org>
15406
15407         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
15408         that it can also be used in a test.
15409
15410 2005-10-16  Bruno Haible  <bruno@clisp.org>
15411
15412         * gnulib-tool (func_emit_tests_Makefile_am): Also define
15413         TESTS_ENVIRONMENT, so that individual tests can augment it.
15414
15415         * gnulib-tool (func_create_testdir): Use an intermediate target for
15416         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
15417         macros, like $(ALLOCA_H), which cannot be passed through the command
15418         line.
15419
15420 2005-10-15  Simon Josefsson  <jas@extundo.com>
15421
15422         * modules/rijndael-tests: New file.
15423
15424         * modules/rijndael: New file.
15425
15426 2005-10-15  Simon Josefsson  <jas@extundo.com>
15427
15428         * m4/rijndael.m4: New file.
15429
15430 2005-10-15  Simon Josefsson  <jas@extundo.com>
15431
15432         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
15433
15434         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
15435
15436 2005-10-14  Simon Josefsson  <jas@extundo.com>
15437
15438         * tests/test-arcfour.c: New file.
15439
15440         * modules/arcfour, modules/arcfour-tests: New files.
15441
15442 2005-10-14  Simon Josefsson  <jas@extundo.com>
15443
15444         * m4/arcfour.m4: New file.
15445
15446 2005-10-14  Simon Josefsson  <jas@extundo.com>
15447
15448         * lib/arcfour.h, lib/arcfour.c: New files.
15449
15450 2005-10-14  Roland McGrath  <roland@redhat.com>
15451
15452         Import from libc.  [BZ #1331]
15453         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
15454         macro argument.
15455         Reported by Matej Vela <vela@debian.org>.
15456
15457 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15458
15459         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
15460         include <wchar.h>; no longer needed.
15461
15462 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15463
15464         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
15465
15466 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
15467         and  Ulrich Drepper  <drepper@redhat.com>
15468
15469         Import from libc.
15470         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
15471         instead of inline stream orientation test and two separate
15472         function calls.  Pay no attention to USE_IN_LIBIO.
15473
15474 2005-10-13  Simon Josefsson  <jas@extundo.com>
15475
15476         * modules/gc-hmac-md5-tests: New file.
15477
15478         * tests/test-gc-hmac-sha1.c: New file.
15479
15480         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
15481
15482         * modules/gc-hmac-md5-tests: New file.
15483
15484         * tests/test-gc-md5.c: New file.
15485
15486         * modules/gc-md5-tests: New file.
15487
15488 2005-10-13  Simon Josefsson  <jas@extundo.com>
15489
15490         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
15491         Move memory allocation outside of loop.
15492
15493 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15494
15495         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
15496         intermediate directory is in a read-only file system.  Problem
15497         reported by Eric Blake.
15498
15499 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
15500
15501         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
15502
15503 2005-10-12  Simon Josefsson  <jas@extundo.com>
15504
15505         * tests/test-hmac-sha1.c: New file.
15506
15507         * modules/hmac-sha1-tests: New file.
15508
15509         * modules/hmac-sha1: New file.
15510
15511 2005-10-12  Simon Josefsson  <jas@extundo.com>
15512
15513         * modules/gc-sha1: New file.
15514
15515 2005-10-12  Simon Josefsson  <jas@extundo.com>
15516
15517         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
15518
15519         * tests/test-gc-pbkdf2-sha1.c: New file.
15520
15521 2005-10-12  Simon Josefsson  <jas@extundo.com>
15522
15523         * modules/gc-md5, modules/gc-hmac-md5: New files.
15524
15525         * modules/gc (Files): Remove md5, memxor and hmac files.
15526
15527 2005-10-12  Simon Josefsson  <jas@extundo.com>
15528
15529         * m4/gc-pbkdf2-sha1.m4: New file.
15530
15531         * m4/gc-hmac-sha1.m4: New file.
15532
15533         * m4/gc-sha1: New file.
15534
15535         * m4/hmac-sha1.m4: New file.
15536
15537 2005-10-12  Simon Josefsson  <jas@extundo.com>
15538
15539         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
15540
15541         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
15542
15543 2005-10-12  Simon Josefsson  <jas@extundo.com>
15544
15545         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
15546         suggested by Bruno Haible <bruno@clisp.org>.
15547
15548 2005-10-12  Simon Josefsson  <jas@extundo.com>
15549
15550         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
15551
15552 2005-10-12  Simon Josefsson  <jas@extundo.com>
15553
15554         * lib/gc-pbkdf2-sha1.c: New file.
15555
15556         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
15557
15558 2005-10-12  Simon Josefsson  <jas@extundo.com>
15559
15560         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
15561
15562         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
15563
15564 2005-10-12  Simon Josefsson  <jas@extundo.com>
15565
15566         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
15567         GC_USE_HMAC_MD5, respectively.
15568
15569         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
15570         (gc_md5): Fix typo.
15571
15572         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
15573
15574         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
15575
15576         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
15577
15578 2005-10-12  Bruno Haible  <bruno@clisp.org>
15579
15580         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
15581         Reported by Stepan Kasal <kasal@ucw.cz>.
15582
15583 2005-10-11  Simon Josefsson  <jas@extundo.com>
15584
15585         * tests/test-crc.c: New file.
15586
15587         * modules/crc, modules/crc-tests: New files.
15588
15589 2005-10-11  Simon Josefsson  <jas@extundo.com>
15590
15591         * m4/crc.m4: New file.
15592
15593 2005-10-11  Simon Josefsson  <jas@extundo.com>
15594
15595         * lib/gc.h: Add gc_hash and gc_hash_buffer.
15596
15597         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
15598
15599         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
15600
15601 2005-10-11  Simon Josefsson  <jas@extundo.com>
15602
15603         * lib/crc.h, lib/crc.c: New files.
15604
15605         * lib/gc.h (gc_hash_buffer): Add doc.
15606
15607 2005-10-11  Bruno Haible  <bruno@clisp.org>
15608
15609         * modules/c-strcasestr: New file.
15610         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
15611
15612 2005-10-11  Bruno Haible  <bruno@clisp.org>
15613
15614         * modules/c-strcase: New file.
15615         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
15616
15617 2005-10-11  Bruno Haible  <bruno@clisp.org>
15618
15619         * lib/strcasecmp.c: Include limits.h.
15620         (strcasecmp): Avoid integer overflow on exotic platforms.
15621         * lib/strncasecmp.c: Include limits.h.
15622         (strncasecmp): Avoid integer overflow on exotic platforms.
15623         Reported by Paul Eggert.
15624
15625 2005-10-11  Bruno Haible  <bruno@clisp.org>
15626
15627         * lib/c-strcasestr.h: New file, from GNU gettext.
15628         * lib/c-strcasestr.c: New file, from GNU gettext.
15629
15630 2005-10-11  Bruno Haible  <bruno@clisp.org>
15631
15632         * lib/c-strcase.h: New file, from GNU gettext.
15633         * lib/c-strcasecmp.c: New file, from GNU gettext.
15634         * lib/c-strncasecmp.c: New file, from GNU gettext.
15635
15636 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15637
15638         * modules/mempcpy (License): GPL -> LGPL.
15639         * modules/strchrnul (License): Likewise.
15640         * modules/sysexits (License): Likewise.
15641
15642 2005-10-08  Simon Josefsson  <jas@extundo.com>
15643
15644         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
15645
15646 2005-10-07  Simon Josefsson  <jas@extundo.com>
15647
15648         * m4/memxor.m4: Remove gl_C_RESTRICT call.
15649
15650 2005-10-06  Simon Josefsson  <jas@extundo.com>
15651
15652         * tests/test-hmac-md5.c: New file.
15653
15654         * modules/hmac-md5-tests: New file.
15655
15656         * modules/hmac-md5: New file.
15657
15658 2005-10-06  Simon Josefsson  <jas@extundo.com>
15659
15660         * m4/hmac-md5.m4: New file.
15661
15662         * m4/memxor.m4: Require gl_C_RESTRICT.
15663
15664 2005-10-06  Simon Josefsson  <jas@extundo.com>
15665
15666         * lib/memxor.c (memxor): Avoid casts and warnings.
15667
15668 2005-10-06  Simon Josefsson  <jas@extundo.com>
15669
15670         * lib/hmac-md5.c: New file.
15671
15672         * lib/hmac.h: New file.
15673
15674 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15675
15676         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
15677         promotes to int, not unsigned int, to catch the AIX 5.3
15678         compiler bug.
15679
15680 2005-10-05  Simon Josefsson  <jas@extundo.com>
15681
15682         * modules/memxor: New file.
15683
15684         * modules/iconv (Files): Move config.rpath to havelib, it is used
15685         there.
15686
15687         * modules/havelib (Files): Add config.rpath.
15688
15689 2005-10-05  Simon Josefsson  <jas@extundo.com>
15690
15691         * m4/memxor.m4: New file.
15692
15693 2005-10-05  Simon Josefsson  <jas@extundo.com>
15694
15695         * lib/memxor.c (memxor): Fix compiler error.
15696
15697         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
15698         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
15699
15700         * lib/memxor.h, lib/memxor.c: New files.
15701
15702         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
15703         we assume all systems have it, suggested by Jim Meyering
15704         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
15705         any systems lack sys/socket.h; mingw32 is known to lack it, but we
15706         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
15707         same reasons.
15708
15709 2005-10-05  Simon Josefsson  <jas@extundo.com>
15710
15711         * config/srclist.txt: Add glibc bug 1423 for md5.h.
15712
15713 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15714
15715         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
15716         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
15717         needed, since the source code now assumes these .h files.
15718
15719 2005-10-05  Derek Price  <derek@ximbiot.com>
15720
15721         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
15722
15723 2005-10-05  Bruno Haible  <bruno@clisp.org>
15724
15725         * modules/stdint (License): Change to LGPL.
15726
15727 2005-10-04  Simon Josefsson  <jas@extundo.com>
15728
15729         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
15730         D. Baushke" <mdb@gnu.org>.
15731
15732 2005-10-04  Bruno Haible  <bruno@clisp.org>
15733
15734         * lib/verify.h (verify_true): Provide alternative definition for C++.
15735
15736 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15737
15738         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
15739         (SSIZE_MAX): New macro, if not already defined.
15740         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
15741         than 2 GiB.
15742
15743 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15744
15745         Sync from coreutils.
15746         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
15747         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
15748         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
15749         ULLONG_MAX doesn't work with 2.7.2.1.
15750
15751 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15752
15753         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
15754         From Ben Pfaff.
15755
15756         * modules/exclude (Depends-on): Depend on verify.
15757         * modules/strtoimax (Depends-on): Likewise.
15758         * modules/utimecmp (Depends-on): Likewise.
15759
15760 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15761
15762         * lib/exclude.c: Include verify.h.
15763         (verify): Remove.  All callers changed to use verify.h's version.
15764         * lib/strtoimax.c: Likewise.
15765         * lib/utimecmp.c: Likewis.e
15766
15767         Sync from coreutils.
15768         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
15769         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
15770         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
15771         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
15772         bother returning ENOSYS if settimeofday or stime fails; just let
15773         them return whatever errno they want to return.
15774         * lib/utimens.c: Include unistd.h, for dup2.
15775         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
15776         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
15777
15778 2005-10-02  Jim Meyering  <jim@meyering.net>
15779
15780         Sync from coreutils.
15781         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
15782         from glibc-2.2.5 that fails for read-only files.
15783
15784 2005-10-02  Jim Meyering  <jim@meyering.net>
15785
15786         Sync from coreutils.
15787         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
15788         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
15789         `#if HAVE_CONFIG_H'.
15790         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
15791         Remove AT_FDCWD test.
15792         Do not consume the fd unless successful.
15793         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
15794         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
15795         block, so that we don't even try to compile it if settimeofday is
15796         available.  This works around a compilation failure on OSF1 V5.1,
15797         due to stime requiring a `long int*' while tv_sec is `int'.
15798
15799 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
15800
15801         Sync from coreutils.
15802         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
15803         against `yes', rather than just testing for nonempty.
15804
15805 2005-10-01  Simon Josefsson  <jas@extundo.com>
15806
15807         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
15808         and Darwin.
15809
15810         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
15811         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
15812         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
15813         freeaddrinfo and gai_strerror are declared by the POSIX headers.
15814         Check if struct addrinfo is declared.
15815
15816 2005-10-01  Simon Josefsson  <jas@extundo.com>
15817
15818         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
15819         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
15820         AI_* and EAI_* definitions.  Protect function declarations.
15821
15822 2005-10-01  Jim Meyering  <jim@meyering.net>
15823
15824         Sync from coreutils.
15825
15826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
15827         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
15828         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
15829         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
15830         in the inet and nsl libraries.  Required on Solaris 5.7.
15831
15832 2005-10-01  Jim Meyering  <jim@meyering.net>
15833
15834         Sync from coreutils.
15835         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
15836         in the inet and nsl libraries.  Required on Solaris 5.7.
15837
15838 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
15839
15840         * lib/getdelim.c (getdelim): Remove unused variables.
15841
15842 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
15843
15844         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
15845         so that the code works even with ancient cpp.  Portability problem
15846         with GCC 2.7.2.1 reported by Thomas M.Ott.
15847
15848 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
15849
15850         * modules/regex (Depends-on): Add strcase.
15851
15852         * modules/gethostname (Licence): Change from GPL to LGPL, since
15853         gethostname.c is a trivial implementation of a standard library
15854         function.
15855         * modules/poll (License): Change from GPL to LGPL, since it's
15856         derived from LGPL code.
15857
15858 2005-09-27  Jim Meyering  <jim@meyering.net>
15859
15860         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
15861         HAVE_CONFIG_H.
15862
15863         * lib/intprops.h (signed_type_or_expr__): Define.
15864         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
15865         for unsigned types.
15866
15867 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15868
15869         * lib/verify.h (verify_expr): Remove, replacing with:
15870         (verify_true): New macro that returns true instead of void.
15871         (verify_type__): Remove.
15872         (verify): Use verify_true rather than verify_type__.
15873
15874 2005-09-26  Bruno Haible  <bruno@clisp.org>
15875
15876         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
15877         is necessary.
15878         (lib_SOURCES): Remove mbchar.c.
15879         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
15880         (Files): Add m4/mbrtowc.m4.
15881         * modules/mbiter: Likewise.
15882         * modules/mbuiter: Likewise.
15883
15884 2005-09-26  Bruno Haible  <bruno@clisp.org>
15885
15886         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
15887         compile mbchar.c if they are not both present.
15888         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
15889         * m4/mbiter.m4 (gl_MBITER): Likewise.
15890         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
15891         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
15892         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
15893
15894 2005-09-25  Jim Meyering  <jim@meyering.net>
15895
15896         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
15897         also uses socklen_t.
15898
15899 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
15900
15901         * lib/utimens.c (ENOSYS): Define if not already defined.
15902         (futimens): Support having a null PATH if the file descriptor
15903         is nonnegative.
15904
15905         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
15906         Remove.
15907         (__attribute): Define to empty unless GCC 3.1 or later.
15908         This works around a core dump on OpenBSD 3.4, which has GCC
15909         2.95.3, which dumps core when given __attribute__(()).  It also
15910         simplifies other tests, since we really don't want to bother with
15911         worrying about which ancient version of GCC supported what.
15912         Original problem reported by Yoann Vandoorselaere, with part of
15913         the fix suggested by Derek Price.
15914
15915 2005-09-24  Jim Meyering  <jim@meyering.net>
15916
15917         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
15918         so we can once again use a positive bitfield width of 1 -- now we
15919         don't have to explain why we were using a bitfield width of 2.
15920
15921 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
15922
15923         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
15924         and similarly for the other external symbols.  Problem reported
15925         by James Gallager.
15926
15927         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
15928         bug reported by Jim Meyering.
15929
15930         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
15931         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
15932         not needed, since socklen is a prerequisite module.
15933
15934 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
15935
15936         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
15937         Problem reported by Eric Blake.
15938         (getaddrinfo): Initialize se so that it's not garbage.
15939         Redo internal storage allocation so that it doesn't make unportable
15940         assumptions about alignment.
15941         Fix a memory leak.
15942
15943         * lib/utimens.c (futimens): Use futimesat if available.
15944         Prefer it to futimes since it doesn't have the futimes bug.
15945
15946         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
15947         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
15948         Instead, declare a function that returns a pointer to an array,
15949         and use verify_type__ to declare the size of the array.
15950         Problem and germ of a solution reported by Bruno Haible.
15951         (verify_type__): Use 2, not 1, for bitfield size, to avoid
15952         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
15953
15954 2005-09-23  Jim Meyering  <jim@meyering.net>
15955
15956         Sync from coreutils.
15957         Correct build failure (socklen_t not defined) on at least
15958         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
15959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
15960
15961 2005-09-23  Jim Meyering  <jim@meyering.net>
15962
15963         * modules/getaddrinfo (Depends-on): Add socklen.
15964
15965 2005-09-23  Bruno Haible  <bruno@clisp.org>
15966
15967         * tests/test-verify.c: New file.
15968
15969 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15970
15971         Sync from coreutils.
15972
15973         * modules/argmatch (Depends-on): Add verify.
15974         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
15975         unistd-safer.
15976         * modules/save-cwd (Depends-on): Likewise.
15977
15978         * modules/openat (Files): Add lib/openat-die.c.
15979         (Depends-on): Remove error, exitfail.
15980         Add dirname.
15981
15982         * modules/verify: New file.
15983         * MODULES.html.sh (Diagnostics <assert.h>): New section,
15984         with "verify" module.
15985
15986 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15987
15988         Sync from coreutils.
15989
15990         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
15991         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
15992         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
15993         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
15994         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
15995         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
15996         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
15997         Don't bother checking for string.h, stdlib.h, unistd.h.
15998         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
15999         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
16000         module's job.
16001         * m4/jm-macros.m4 (gl_MACROS): Likewise.
16002         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
16003
16004         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
16005         (gl_GETDATE): Use it.
16006
16007         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
16008
16009 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16010
16011         Sync from coreutils.
16012
16013         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
16014         stat-time.h.
16015         * lib/argmatch.h: Include verify.h
16016         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
16017         (ARGMATCH_ASSERT): Remove; unused.
16018         * lib/canonicalize.c: Assume STDC_HEADERS.
16019         * lib/exclude.c: Include "strcase.h".
16020         * lib/regex_internal.h [!defined _LIBC]: Likewise.
16021         * lib/getusershell.c: Include stdio--.h rather than stdio.h
16022         and stdio-safer.h.
16023         (getusershell): Call fopen, not fopen_safer.
16024         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
16025         Do not include unistd-safer.h.
16026         (save_cwd): Don't call fd_safer; no longer needed
16027         now that we include fcntl--.h.
16028
16029         * lib/getdate.y (relative_time): New type.
16030         (RELATIVE_TIME_0): New constant.
16031         (parser_control): Use relative_time instead of doing it ourselves.
16032         (%union): Add new relative_time rel member.
16033         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
16034         Now typeless.
16035         (relunit, relunit_snumber): Now of type rel.
16036         (zone, rel, relunit, get_date): Adjust to above changes.
16037
16038         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
16039         Do not include unistd-safer.h.
16040         (getloadavg): Don't call fd_safer; no longer needed
16041         now that we include fcntl--.h.
16042
16043         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
16044         (make_dir_parents): Treat ENOSYS like EEXIST.
16045
16046         Improve quality of diagnostics on restore_cwd failure.
16047         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
16048         (make_dir_parents): Last arg is now int * (for errno), not bool *.
16049         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
16050         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
16051         each time through the loop.  Do not diagnose restore_cwd failure;
16052         that is the caller's job (and perhaps the caller does not care).
16053
16054         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
16055         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
16056         If the file already exists but is not a directory, don't bother
16057         to try to make its parents.
16058         Close potential file descriptor leak if we can't chdir("/") (!).
16059         Don't always return true if chdir($PWD) fails; return true only
16060         if the requested action was done successfully (except for the
16061         chdir($PWD)).
16062         Don't log final directory unless we actually made it.
16063         Refactor to avoid duplicate code to fix up permissions.
16064         Don't attempt to fix up parent permissions if chdir($PWD) fails.
16065
16066         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
16067         to make it a bit faster and (I hope) clearer.
16068         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
16069         Fix bug in formats like %2N.
16070
16071         * lib/verify.h: New file.
16072
16073 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16074
16075         Sync from coreutils.
16076         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
16077
16078 2005-09-22  Jim Meyering  <jim@meyering.net>
16079
16080         Sync from coreutils.
16081
16082         * m4/lstat.m4 (gl_FUNC_LSTAT):
16083         Use AC_LIBSOURCES to require lstat.c and lstat.h.
16084         Remove obsolete comment.
16085         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
16086         * m4/xstrtod.m4: Likewise.
16087
16088         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
16089
16090 2005-09-22  Jim Meyering  <jim@meyering.net>
16091
16092         Sync from coreutils.
16093
16094         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
16095
16096         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
16097         the .tm_year member, since otherwise gcc-4.0 would now warn about
16098         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
16099
16100         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
16101         order to avoid an unsuppressible warning from gcc on 64-bit systems.
16102
16103         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
16104         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
16105         when run in a time zone for which daylight savings time is in effect
16106         for the starting date.
16107
16108         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
16109         stop us from restricting permissions of just-created absolute-named
16110         directories.
16111         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
16112         to restore initial working directory.
16113         * lib/mkdir-p.c (make_dir_parents): New parameter:
16114         different_working_dir, to tell caller if/when we change the working
16115         directory and are unable to return to the initial one.
16116         * lib/mkdir-p.h (make_dir_parents): Update prototype.
16117         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
16118         `return false'.  This fixes a bug introduced on 2004-07-30.
16119
16120         * lib/openat.c (fdopendir): Be sure to close the supplied
16121         file descriptor before returning.  This makes our replacement
16122         implementation a little closer to Solaris's, where fdopendir
16123         ties the file descriptor to the returned DIR* pointer.
16124         * lib/openat.c (unlinkat): New function.
16125         * lib/openat.h (unlinkat): Add prototype.
16126         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
16127         (openat_restore_fail): Rename from openat_restore_die.
16128         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
16129
16130         Provide an alternative to exiting immediately upon save_cwd or
16131         restore_cwd failure.  Now, an application can arrange e.g.,
16132         to perform a longjump in that case.
16133         * lib/openat.c: Include dirname.h.
16134         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
16135         (rpl_openat, fdopendir, fstatat): Call openat_save_die
16136         and openat_restore_die rather than calling error directly.
16137         Don't include "error.h" or "exitfail.h"; they're no longer needed.
16138
16139         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
16140         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
16141         define.
16142
16143         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
16144         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
16145                             int utc, int nanoseconds);
16146         Background:
16147         date should not have to allocate a megabyte of virtual memory to
16148         handle a format argument like +%1048575T.  When implemented with
16149         strftime, it must allocate such a buffer, use strftime to fill it
16150         in, print it, then free it.
16151         With fprintftime, it simply prints everything and exits.
16152         With no need for memory allocation, that's one fewer way to fail.
16153         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
16154         optional field width, not before, so we accept %9:z, not %:9z.
16155         (my_strftime): Be sure to use L_('x') for literals.
16156
16157         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
16158         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
16159         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
16160         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
16161         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
16162         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
16163         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
16164         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
16165         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
16166         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
16167         * lib/xgethostname.c, lib/xreadlink.c:
16168         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
16169
16170         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
16171         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
16172         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
16173         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
16174         and don't include <sys/file.h>).
16175
16176 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
16177
16178         Sync from coreutils.
16179
16180         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
16181         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
16182         [!LDAV_DONE]: Avoid unused variable warning.
16183
16184 2005-09-21  Bruno Haible  <bruno@clisp.org>
16185
16186         * lib/unicodeio.h (unicode_to_mb): New declaration.
16187
16188 2005-09-20  Derek Price  <derek@ximbiot.com>
16189
16190         * lib/getaddrinfo.c: Don't include <netdb.h> included from
16191         getaddrinfo.h.
16192
16193 2005-09-20  Bruno Haible  <bruno@clisp.org>
16194
16195         * gnulib-tool: Remove trailing slashes from the values specified for
16196         --source-base, --m4-base, --tests-base, --aux-dir.
16197         Suggested by Simon Josefsson <jas@extundo.com>.
16198
16199 2005-09-20  Bruno Haible  <bruno@clisp.org>
16200
16201         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
16202         func_modules_to_filelist, func_import, func_create_testdir): Make all
16203         sorting results locale-independent, so that gnulib-cache.m4 doesn't
16204         change when gnulib-tool is invoked in a different locale.
16205
16206 2005-09-19  Simon Josefsson  <jas@extundo.com>
16207
16208         * m4/socklen.m4: Fix typo.
16209
16210 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16211
16212         Use a consistent style for including <config.h>.
16213         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
16214         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
16215         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
16216         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
16217         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
16218         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
16219         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
16220         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
16221         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
16222         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
16223         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
16224         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
16225         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
16226         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
16227         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
16228         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
16229         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
16230         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
16231         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
16232         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
16233         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
16234         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
16235         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
16236         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
16237         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
16238         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
16239         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
16240         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
16241         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
16242         lib/xstrtoumax.c, lib/yesno.c:
16243         Standardize inclusion of config.h.
16244         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
16245         lib/inttostr.h:  Removed inclusion of config.h from header files.
16246         * lib/inttostr.c:  Adjusted in-tree users.
16247         * lib/timespec.h: Remove superfluous warning to include config.h.
16248         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
16249         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
16250         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
16251         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
16252         config.h with HAVE_CONFIG_H.
16253
16254 2005-09-19  Jim Meyering  <jim@meyering.net>
16255
16256         * modules/pathmax (License): Change to LGPL.
16257
16258 2005-09-19  Derek Price  <derek@ximbiot.com>
16259
16260         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
16261
16262 2005-09-19  Bruno Haible  <bruno@clisp.org>
16263
16264         * gnulib-tool (import): Provide default for --tests-base.
16265
16266 2005-09-19  Bruno Haible  <bruno@clisp.org>
16267
16268         * doc/quote.texi: New file, extracted from gnulib.texi.
16269         * doc/ctime.texi: New file, extracted from gnulib.texi.
16270         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
16271         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
16272         * doc/gnulib.texi: Include them.
16273
16274 2005-09-18  Bruno Haible  <bruno@clisp.org>
16275
16276         Portability fix.
16277         * gnulib-tool (func_readlink): New function.
16278         (func_ln_if_changed): Use it.
16279
16280 2005-09-18  Bruno Haible  <bruno@clisp.org>
16281
16282         * gnulib-tool: Support --with-tests also with --import.
16283         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
16284         (func_import): Use variables $testsbase and $inctests. Emit a
16285         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
16286         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
16287         SUBDIRS += $testsdir.
16288         (func_create_testdir): Update.
16289
16290 2005-09-18  Bruno Haible  <bruno@clisp.org>
16291
16292         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
16293         instead of $dry_run.
16294         (func_cp_if_changed, func_mv_if_changed): Remove functions.
16295         (func_ln_if_changed): Don't handle dry-run here.
16296         (func_import): In dry-run mode, detect more precisely which actions
16297         would be performed, and don't use "...ing" verbs.
16298
16299 2005-09-18  Bruno Haible  <bruno@clisp.org>
16300
16301         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
16302         (func_import): Use join on two temporary files instead of three nested
16303         loops, in order to determine which files are new or old.
16304
16305 2005-09-18  Bruno Haible  <bruno@clisp.org>
16306
16307         * gnulib-tool (func_import): Comment out code that spits out the
16308         new files with --dry-run.
16309
16310 2005-09-18  Bruno Haible  <bruno@clisp.org>
16311
16312         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
16313
16314 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16315
16316         * lib/stat-time.h: New file.
16317         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
16318         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
16319         in a different way.
16320         (timespec_cmp): New function.
16321         * lib/utimecmp.c: Include stat-time.h.
16322         (SYSCALL_RESOLUTION): Depend on whether various struct stat
16323         members exist, not on the obsolescent ST_MTIM_NSEC.
16324         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
16325
16326 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16327
16328         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
16329
16330 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16331
16332         * MODULES.html.sh (File system functions): Add stat-time.
16333         * modules/stat-time: New file.
16334         * modules/timespec (Files): Remove m4/st_mtim.m4; this
16335         is now done in a different way, by the stat-time module.
16336         * modules/utimecmp (Depends-on): Add stat-time.
16337
16338 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16339
16340         * m4/st_mtim.m4: Remove.  Superseded by...
16341         * m4/stat-time.m4: New file.
16342         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
16343         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
16344
16345 2005-09-15  Derek Price  <derek@ximbiot.com>
16346
16347         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
16348
16349 2005-09-15  Derek Price  <derek@ximbiot.com>
16350
16351         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
16352         * lib/regex_internal.c: Ditto, using this...
16353         (__GNUC_PREREQ): ...new macro.
16354         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
16355         using...
16356         (__GNUC_PREREQ): ...this new macro.
16357
16358         * lib/strstr.h: Include string.h. Define strstr as a macro here.
16359
16360 2005-09-15  Derek Price  <derek@ximbiot.com>
16361             Paul Eggert  <eggert@cs.ucla.edu>
16362
16363         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
16364         changes, consolidating in...
16365         * lib/regex_internal.h: ...this file.
16366
16367 2005-09-13  Jim Meyering  <jim@meyering.net>
16368
16369         * lib/canon-host.c: Filter through gnu indent and reword comments
16370         slightly.
16371         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
16372
16373 2005-09-13  Derek Price  <derek@ximbiot.com>
16374
16375         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
16376         failure.
16377         Reported by Jim Meyering  <jim@meyering.net>.
16378
16379 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16380
16381         * lib/base64.c: Typo.
16382         (base64_encode): Put b64str in initialized data section.
16383
16384 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16385
16386         Merge glibc and coreutils changes into gnulib, plus a few
16387         extra fixes.
16388         * lib/md5.c: Use #error rather than a string.
16389         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
16390         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
16391         (__attribute__): Define to empty for non recent-GCC.
16392         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
16393         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
16394         Renamed from their non-__ counterparts, with new macros replacing
16395         them if not _LIBC.  Add __THROW attribute.
16396         (rol): Remove.
16397         (struct md5_ctx): Align buffer if using GCC.
16398         * lib/sha1.h (struct sha1_ctx): Likewise.
16399         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
16400         The old name was backwards.
16401         (NOTSWAP): Remove; not used.
16402         (rol): New macro, moved here from md5.h.
16403         (sha1_process_block): Remove a FIXME that doesn't make sense.
16404
16405 2005-09-12  Derek Price  <derek@ximbiot.com>
16406
16407         Return usable errors from canon-host.
16408         * lib/canon-host.h: New file.
16409         * lib/canon-host.c (canon_host): Wrap...
16410         (canon_host_r): ...this new function, which now relies exclusively on
16411         getaddrinfo.
16412         (ch_strerror): New function.
16413         (last_cherror): New global.
16414         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
16415         interface.
16416         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
16417         void *.
16418         (freeaddrinfo): Free ai->ai_canonname when set.
16419
16420 2005-09-12  Derek Price  <derek@ximbiot.com>
16421
16422         Make canon-host require getaddrinfo.
16423         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
16424         AC_LIBSOURCE canon-host.h.  Call...
16425         (gl_PREREQ_CANON_HOST): ...this new function, which requires
16426         gl_GETADDRINFO.
16427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
16428
16429 2005-09-12  Derek Price  <derek@ximbiot.com>
16430
16431         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
16432         LGPL.
16433         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
16434
16435 2005-09-12  Derek Price  <derek@ximbiot.com>
16436
16437         * lib/gai_strerror.c: Include config.h when available.  Include
16438         getaddrinfo.h before other headers to test interface.
16439         Reported by Larry Jones <lawrence.jones@ugs.com>.
16440
16441 2005-09-12  Derek Price  <derek@ximbiot.com>
16442             Paul Eggert  <eggert@cs.ucla.edu>
16443
16444         * modules/glob (Files): Add glob-libc.h.
16445
16446 2005-09-12  Derek Price  <derek@ximbiot.com>
16447             Paul Eggert  <eggert@cs.ucla.edu>
16448
16449         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
16450         glob_.h, glob-libc.h.
16451         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
16452
16453 2005-09-12  Derek Price  <derek@ximbiot.com>
16454             Paul Eggert  <eggert@cs.ucla.edu>
16455
16456         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
16457         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
16458         protecting things that should be done only in gnulib contexts.
16459         * lib/glob_.h: New file, containing only the glob things needed for
16460         gnulib.
16461         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
16462         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
16463         (glob, globfree, glob_pattern_p): Now defined simply in terms of
16464         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
16465         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
16466         and to respect the namespace rules better.
16467
16468 2005-09-08  Simon Josefsson  <jas@extundo.com>
16469
16470         * modules/socklen: New file.
16471
16472 2005-09-08  Simon Josefsson  <jas@extundo.com>
16473
16474         * m4/socklen.m4: New file.
16475
16476 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16477
16478         * modules/utimens (Files): Add m4/utimbuf.m4, since
16479         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
16480         Reported by Sergey Poznyakoff.
16481
16482 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16483
16484         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
16485         definitions, since that's the preferred style in glibc.
16486         Fix a minor spacing issue, and update copyright notice to match
16487         glibc's.
16488
16489 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16490
16491         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
16492
16493 2005-09-06  Simon Josefsson  <jas@extundo.com>
16494
16495         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
16496         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
16497
16498 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16499
16500         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
16501         warning.
16502
16503 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16504
16505         * config/srclist.txt: Add glibc bug 1302.
16506
16507 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
16508
16509         Change bitset word type from unsigned int to unsigned long int,
16510         as this has better performance on typical 64-bit hosts.
16511         Port bitset code to hosts with unusual word sizes.
16512         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
16513         (build_collating_symbol):
16514         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
16515         argument is a bitset.  This is merely a style issue, but it makes
16516         it clearer that an entire array is expected.
16517         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
16518         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
16519         Port to the case where bitset_word is not the same as unsigned int.
16520         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
16521         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
16522         Likewise.
16523         * lib/regexec.c (check_dst_limits_calc_pos_1,
16524         check_subexp_matching_top):
16525         (build_trtable, group_nodes_into_DFAstates):
16526         Likewise.
16527         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
16528         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
16529         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
16530         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
16531         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
16532         * lib/regcomp.c (optimize_subexps, lower_subexp):
16533         Work even if bitset_word has holes in its bitwise representation.
16534         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
16535         * lib/regexec.c (check_dst_limits_calc_pos_1,
16536         check_subexp_matching_top):
16537         Likewise.
16538         * lib/regex_internal.c (re_string_reconstruct):
16539         Don't assume UCHAR_MAX == 255.
16540         * lib/regex_internal.h (bitset_set_all): Likewise.
16541         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
16542         All uses changed.
16543         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
16544         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
16545         All uses changed.
16546         (BITSET_WORD_MAX): New macro.
16547         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
16548         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
16549         (bitset_empty, bitset_copy):
16550         Prefer sizeof (bitset) to multiplying it out ourselves.
16551         (bitset_not_merge): Remove; unused.
16552         (bitset_contain): Return bool, not unsigned int with one bit on.
16553         All callers changed.
16554         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
16555         alignment than re_node_set; do this by defining a new internal
16556         type struct dests_alloc and using it to allocate memory.
16557
16558 2005-09-05  Bruno Haible  <bruno@clisp.org>
16559
16560         * gnulib-tool (func_import): Fix comparison in handling of symbolic
16561         links.
16562
16563 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
16564
16565         * modules/size_max (Makefile.am): Add size_max.h
16566
16567 2005-09-04  Derek Price  <derek@ximbiot.com>
16568
16569         * gnulib-tool (func_import): Fix reversed $symbolic logic.
16570
16571 2005-09-03  Simon Josefsson  <jas@extundo.com>
16572
16573         * gnulib-tool: Fix typo.
16574
16575 2005-09-03  Simon Josefsson  <jas@extundo.com>
16576
16577         * config/srclist.txt: Add glibc bug 1293.
16578
16579 2005-09-03  Derek Price  <derek@ximbiot.com>
16580
16581         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
16582         From Larry Jones <lawrence.jones@ugs.com>.
16583
16584 2005-09-02  Simon Josefsson  <jas@extundo.com>
16585
16586         * modules/socklen: New file.
16587
16588 2005-09-02  Simon Josefsson  <jas@extundo.com>
16589
16590         * modules/havelib: New module.
16591
16592         * modules/gettext, modules/iconv, modules/lock, modules/readline:
16593         Use havelib.
16594
16595 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16596
16597         Check for arithmetic overflow when calculating sizes, to prevent
16598         some buffer-overflow issues.  These patches are conservative, in the
16599         sense that when I couldn't determine whether an overflow was possible,
16600         I inserted a run-time check.
16601         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
16602         macros.
16603         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
16604         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
16605         (re_xnrealloc, re_x2nrealloc): New inline functions.
16606         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
16607         parse_bracket_exp):
16608         (build_equiv_class, build_charclass): Check for arithmetic overflow
16609         in size expression calculations.
16610         * lib/regex_internal.c (re_string_realloc_buffers):
16611         (build_wcs_upper_buffer, re_node_set_add_intersect):
16612         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
16613         (re_dfa_add_node, register_state): Likewise.
16614         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
16615         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
16616         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
16617         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
16618
16619 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16620
16621         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16622         m4/ulonglong.m4.  Problem reported by Martin Lambers.
16623
16624 2005-09-02  Bruno Haible  <bruno@clisp.org>
16625
16626         Support for lib vs. lib64 distinction on biarch platforms.
16627         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
16628         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
16629         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
16630
16631 2005-09-02  Bruno Haible  <bruno@clisp.org>
16632
16633         * gnulib-tool (import): In the other first-use case, provide defaults
16634         as well.
16635
16636 2005-09-02  Bruno Haible  <bruno@clisp.org>
16637
16638         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
16639         patches not yet found in the latest gettext release.
16640
16641 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16642
16643         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
16644         to avoid a collision with bits/local_lim.h in glibc.
16645         All uses changed.  Problem reported by Dmitry V. Levin in
16646         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
16647
16648         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
16649         bugs in int versus size_t comparisons.
16650         (re_string_context_at): Fix bug where the code assumed that
16651         Idx is signed.
16652
16653         Use bool where appropriate.
16654         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
16655         All callers changed.
16656         (calc_eclosure_iter): Likewise, for ROOT arg.
16657         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
16658         (build_charclass_op): Likewise, for NON_MATCH arg.
16659         * lib/regex_internal.c (re_string_allocate, re_string_construct):
16660         (re_string_construct_common): Likewise, for ICASE arg.
16661         * lib/regexec.c (re_search_2_stub, re_search_stub):
16662         Likewise, for RET_LEN arg.
16663         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
16664         (set_regs): Likewise, for FL_BACKTRACK arg.
16665         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
16666         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
16667         (calc_eclosure_iter, parse_bracket_exp):
16668         Use bool for internal variables that are booleans.
16669         * lib/regexec.c (re_search_internal, check_matching,
16670         proceed_next_node):
16671         (set_regs, build_sifted_states, sift_states_bkref):
16672         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
16673         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
16674         (find_collation_sequence_value):
16675         Likewise.
16676         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
16677         (re_node_set_compare):
16678         Return bool, not int. All callers changed.
16679         * lib/regexec.c (check_halt_node_context, check_dst_limits):
16680         (build_trtable, check_node_accept): Likewise.
16681         * lib/regex_internal.h: Include stdbool.h.
16682
16683         Fix bugs uncovered when converting to bool.
16684         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
16685         failure instead of charging ahead blindly.
16686         * lib/regex_internal.c (register_state): Likewise.
16687         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
16688         for freeing internal storage.
16689         (group_nodes_into_DFA_states): Use unsigned int, not int, for
16690         bitset pieces used as boolean, to avoid undefined behavior
16691         on hosts that do int overflow checking.
16692
16693 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16694
16695         * config/srclist.txt: Add glibc bugs 1285-1287.
16696
16697 2005-09-01  Jim Meyering  <jim@meyering.net>
16698
16699         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
16700         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
16701         Require gl_STAT_MACROS, too.
16702
16703 2005-09-01  Bruno Haible  <bruno@clisp.org>
16704
16705         * gnulib-tool (import): In the first-use case, provide defaults.
16706
16707 2005-09-01  Bruno Haible  <bruno@clisp.org>
16708
16709         * gnulib-tool (func_import): Remove the .tmp files.
16710
16711 2005-09-01  Bruno Haible  <bruno@clisp.org>
16712
16713         * gnulib-tool (func_import): Fix handling of symbolic links.
16714
16715 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16716
16717         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
16718         old glibc regex code mishandles strings longer than 2**31 bytes.
16719         This patch fixes this when the regex code is used in gnulib
16720         (i.e., outside glibc).
16721
16722         This patch should not affect the use of the regex code inside
16723         glibc.  No doubt this problem also needs to be handled for glibc
16724         as well, but the result will be an incompatible change to the
16725         glibc ABI, and the old ABI will have to be supported too.  That
16726         can be the the subject for another patch.
16727
16728         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
16729         governing whether the rest of this patch is active.  By default,
16730         the macro is disabled and the patch has no effect.
16731         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
16732         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
16733         (struct re_pattern_buffer, re_search, re_search_2, re_match):
16734         (re_match_2, re_set_registers): Use the new types.
16735         * lib/regex_internal.h (Idx, re_hashval_t): New types.
16736         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
16737         New macros.
16738         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
16739         (re_string_context_at, bin_tree_t, re_dfastate_t):
16740         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
16741         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
16742         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
16743         (re_string_char_size_at, re_string_wchar_at):
16744         (re_string_elem_size_at):
16745         Use the new types and macros to port to 64-bit hosts.
16746         Use unsigned types for internal values, so that the code
16747         mostly works even for arrays larger than SSIZE_MAX.
16748         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
16749         (search_duplicated_node, calc_eclosure_iter, fetch_number):
16750         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
16751         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
16752         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
16753         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
16754         (calc_inveclosure, parse_dup_op, build_range_exp):
16755         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
16756         (fetch_number, create_token_tree, mark_opt_subexp):
16757         Likewise.
16758         * lib/regex_internal.c (re_string_construct_common,
16759         create_ci_newstate):
16760         (create_cd_newstate, re_string_allocate, re_string_construct):
16761         (re_string_realloc_buffers, build_wcs_upper_buffer):
16762         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
16763         (re_string_reconstruct, re_string_peek_byte_case):
16764         (re_string_fetch_byte_case, re_string_context_at):
16765         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
16766         (re_node_set_init_copy, re_node_set_add_intersect):
16767         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
16768         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
16769         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
16770         (re_acquire_state, re_acquire_state_context, register_state):
16771         Likewise.
16772         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
16773         search_cur_bkref_entry):
16774         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
16775         (re_search_internal, re_search_2_stub, re_search_stub)
16776         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
16777         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
16778         (update_cur_sifted_state, check_dst_limits):
16779         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
16780         (check_subexp_limits, sift_states_bkref, merge_state_array):
16781         (check_subexp_matching_top, get_subexp, get_subexp_sub):
16782         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
16783         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
16784         (expand_bkref_cache, check_node_accept_bytes):
16785         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
16786         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
16787         (acquire_init_state_context, check_halt_node_context):
16788         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
16789         (sift_states_backward, clean_state_log_if_needed):
16790         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
16791         (find_recover_state, transit_state_sb, transit_state_mb):
16792         (transit_state_bkref, build_trtable, match_ctx_clean):
16793         Likewise.
16794         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
16795         to work around an assumption that REG_MISSING is negative.
16796
16797         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
16798         (seek_collating_symbol_entry) [defined _LIBC]:
16799         (lookup_collation_sequence_value) [defined _LIBC]:
16800         (build_range_exp, build_collating_symbol) [defined _LIBC]:
16801         Use prototypes rather than old-style function definitions.
16802         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
16803         (transit_state_sb) [0]:
16804         (find_collation_sequence_value) [defined _LIBC]: Likewise.
16805
16806         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
16807         rm_eo.
16808
16809         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
16810         (optimize_subexps, lower_subexp):
16811         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
16812         since the signed shift might overflow.  Use 1u<<31 instead.
16813         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
16814         Likewise.
16815         * lib/regexec.c (check_dst_limits_calc_pos_1,
16816         check_subexp_matching_top): Likewise.
16817
16818         * lib/regcomp.c (optimize_subexps, lower_subexp):
16819         Use CHAR_BIT rather than 8, for clarity.
16820         * lib/regexec.c (check_dst_limits_calc_pos_1):
16821         (check_subexp_matching_top): Likewise.
16822         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
16823         have to worry about portability issues when shifting it left.
16824         Remove no-longer-needed test for table_size > 0.
16825         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
16826         in a word, as the resulting behavior is undefined.
16827         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
16828         in one case, a <= should have been an <, and in another case the
16829         whole test was missing.
16830         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
16831         the standard name CHAR_BIT.
16832         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
16833         this is not true on one's complement and signed-magnitude hosts.
16834
16835         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
16836         next_last_offset.
16837         (struct re_dfa_t): Remove unused member states_alloc.
16838         * lib/regcomp.c (init_dfa): Don't initialize unused members.
16839
16840 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16841
16842         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
16843         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
16844         and large-file glibc and in 32-bit large-file Solaris.
16845
16846 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16847
16848         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
16849         lengths fit in regoff_t; this isn't true if regoff_t is the same
16850         width as size_t.
16851         * lib/regex.c (re_search_internal): 5th arg is LAST_START
16852         (= START + RANGE) instead of RANGE.  This avoids overflow
16853         problems when regoff_t is the same width as size_t.
16854         All callers changed.
16855         (re_search_2_stub): Check for overflow when adding the
16856         sizes of the two strings.
16857         (re_search_stub): Check for overflow when adding START
16858         to RANGE; if it occurs, substitute the extreme value.
16859
16860 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16861
16862         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
16863
16864 2005-08-31  Jim Meyering  <jim@meyering.net>
16865
16866         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
16867         a pointer-to-const.
16868         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
16869         (register_state): Likewise.
16870         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
16871         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
16872         (group_nodes_into_DFAstates): Likewise.
16873
16874 2005-08-31  Jim Meyering  <jim@meyering.net>
16875
16876         * check-module: Add a FIXME comment.
16877
16878 2005-08-31  Eric Blake  <ebb9@byu.net>
16879
16880         * modules/unistd-safer (Files): Add unistd--.h.
16881         * modules/stdio-safer (Files): Add stdio--.h.
16882
16883 2005-08-31  Derek Price  <derek@ximbiot.com>
16884
16885         * lib/getdelim.c (getdelim): Return EOF on EOF.
16886         Reported by Larry Jones <lawrence.jones@ugs.com>.
16887
16888 2005-08-31  Bruno Haible  <bruno@clisp.org>
16889
16890         Avoid unnecessary diffs in the generated lib/Makefile.am.
16891         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
16892         the generated files.
16893         (func_import): Don't set cmd.
16894
16895 2005-08-31  Bruno Haible  <bruno@clisp.org>
16896
16897         * lib/strstr.c: Include <stddef.h>, for NULL.
16898         * lib/strcasestr.c: Likewise.
16899         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16900
16901 2005-08-31  Bruno Haible  <bruno@clisp.org>
16902
16903         * gnulib-tool: New option --macro-prefix.
16904         (func_import): Use macro_prefix.
16905         (import): Handle option --macro-prefix.
16906
16907 2005-08-31  Bruno Haible  <bruno@clisp.org>
16908
16909         * gnulib-tool (import): Rename most ac_* variables to cached_*.
16910         Also use new variables cached_lgpl, cached_libtool.
16911
16912 2005-08-31  Bruno Haible  <bruno@clisp.org>
16913
16914         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
16915         always instantiating them.
16916
16917 2005-08-31  Bruno Haible  <bruno@clisp.org>
16918
16919         * gnulib-tool (func_import): Read the previous cached settings
16920         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
16921         earlier added by gnulib but are now dropped. Warn when a gnulib file
16922         overwrites a non-gnulib file.
16923
16924 2005-08-31  Bruno Haible  <bruno@clisp.org>
16925
16926         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
16927         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
16928         projects that don't keep autogenerated files in CVS. Put into
16929         actioncmd only the specified modules, not the transitive closure.
16930
16931 2005-08-31  Bruno Haible  <bruno@clisp.org>
16932
16933         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
16934         Create directories that shall be filled.
16935         (import): Don't look for gl_* macros in configure.ac. Recurse across
16936         all directories containing a gnulib-cache.m4 files, if meaningful.
16937
16938 2005-08-31  Bruno Haible  <bruno@clisp.org>
16939
16940         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
16941         (import): Set seen_libtool when we see gl_LIBTOOL.
16942
16943 2005-08-31  Bruno Haible  <bruno@clisp.org>
16944
16945         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
16946         declaration macro definitions from generated gnulib.m4.
16947
16948 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
16949
16950         * lib/iconvme.h: Add prototype for iconv_alloc.
16951
16952 2005-08-29  Simon Josefsson  <jas@extundo.com>
16953
16954         * lib/iconvme.c: Fix errno.
16955
16956 2005-08-29  Bruno Haible  <bruno@clisp.org>
16957
16958         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
16959         that it works when the directory contains spaces.
16960
16961 2005-08-29  Bruno Haible  <bruno@clisp.org>
16962
16963         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
16964
16965 2005-08-29  Bruno Haible  <bruno@clisp.org>
16966
16967         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
16968         Emit more advice.
16969
16970 2005-08-29  Bruno Haible  <bruno@clisp.org>
16971         and Stepan Kasal  <kasal@ucw.cz>
16972
16973         * check-module: If more parameters are given, check each of them
16974         separately; add more exceptions, as noted by Jim Meyering.
16975         (check_module): New procedure.
16976         (%exempt_header): Now contains all exceptions.
16977
16978 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
16979
16980         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
16981
16982 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
16983
16984         * lib/iconvme.c: Split iconv_string into iconv_alloc.
16985
16986 2005-08-28  Bruno Haible  <bruno@clisp.org>
16987
16988         * m4/gnulib-tool.m4: New file.
16989
16990 2005-08-27  Jim Meyering  <jim@meyering.net>
16991
16992         * modules/unistd-safer (Files): Add pipe-safer.c.
16993         * modules/fcntl-safer (Files): Add creat-safer.c.
16994
16995 2005-08-27  Jim Meyering  <jim@meyering.net>
16996
16997         * m4/stdlib-safer.m4: New file.  From coreutils.
16998         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
16999         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
17000         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
17001         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
17002         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
17003
17004 2005-08-27  Jim Meyering  <jim@meyering.net>
17005
17006         * lib/fopen-safer.c: Merge minor changes from coreutils.
17007         * lib/dup-safer.c: Likewise.
17008         * lib/fd-safer.c: Likewise.
17009
17010         Merge from coreutils.
17011         * lib/stdio--.h: New file.
17012         * lib/stdlib--.h: New file.
17013         * lib/mkstemp-safer.c: New file.
17014
17015         GNU tar needs these.
17016         * lib/pipe-safer.c: New file.
17017         * lib/creat-safer.c: New file.
17018         * lib/fcntl--.h (creat): Define to creat_safer.
17019         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
17020         * lib/unistd--.h (pipe): Define to pipe_safer.
17021         * lib/unistd-safer.h: Declare pipe_safer.
17022
17023 2005-08-26  Simon Josefsson  <jas@extundo.com>
17024
17025         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
17026         Haible <bruno@clisp.org>.
17027
17028 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
17029
17030         * lib/regex_internal.h: Remove all references to
17031         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
17032         or better.
17033         (bitset_not, bitset_merge, bitset_not_merge):
17034         (bitset_mask, re_string_allocate, re_string_construct):
17035         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
17036         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
17037         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
17038         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
17039         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17040         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17041         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
17042         (re_acquire_state_context):
17043         Remove unnecessary forward decls.
17044         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
17045         Put __attribute at function definition,
17046         now that the function decl has been removed.
17047         * lib/regex_internal.c (re_string_peek_byte_case):
17048         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
17049         Likewise.
17050
17051 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
17052
17053         * m4/regex.m4: Add AC_PREREQ(2.50).
17054         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
17055
17056 2005-08-25  Simon Josefsson  <jas@extundo.com>
17057
17058         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
17059         __fsetlocking.
17060
17061 2005-08-25  Simon Josefsson  <jas@extundo.com>
17062
17063         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
17064         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
17065         GLIBC specific code.
17066
17067 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17068
17069         Make regex safe for g++.  This fixes one real bug (an "err"
17070         that should have been "*err").  g++ problem reported by
17071         Sam Steingold.
17072         * lib/regex_internal.h (re_calloc): New macro, consistent with
17073         re_malloc etc.  All callers of calloc changed to use re_calloc.
17074         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
17075         not int.  All callers changed.
17076         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
17077         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
17078         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
17079         (find_recover_state): Change "err" to "*err"; this fixes what
17080         appears to be a real bug.
17081         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
17082         versus int.
17083
17084 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17085
17086         * modules/regex (Depends-on): Add malloc, since the code
17087         assumes that !malloc(0) means failure.
17088
17089 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17090
17091         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
17092
17093         alloca modernization/simplification for regex.
17094         * lib/regex.c: Remove portability cruft for alloca.  This no longer
17095         needs to be at the start of the file, and can be moved into
17096         regex_internal.h and simplified.
17097         * lib/regex_internal.h: Include <alloca.h>.
17098         (__libc_use_alloca) [!defined _LIBC]: New macro.
17099         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
17100         now works outside glibc.
17101
17102 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17103
17104         * config/srclist.txt: Add glibc bugs 1241, 1245.
17105
17106 2005-08-25  Jim Meyering  <jim@meyering.net>
17107
17108         * lib/open-safer.c: Include <config.h>.
17109         Otherwise, we'd lose LARGEFILE support in any file using
17110         e.g. "fcntl--.h"
17111
17112 2005-08-25  Bruno Haible  <bruno@clisp.org>
17113
17114         * m4/minmax.m4: Require autoconf 2.52.
17115         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
17116         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
17117         alternatives of translit over the alphabet.
17118         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
17119
17120 2005-08-24  Simon Josefsson  <jas@extundo.com>
17121
17122         * tests/test-getpass.c: New file.
17123
17124 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17125
17126         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
17127         for GNU regex features.
17128
17129 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17130
17131         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
17132         * lib/regex.h (regerror): Likewise.
17133
17134         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
17135         requires this.  (The code never needed it.)
17136
17137         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
17138         All uses of recently-renamed identifiers changed to use the new,
17139         POSIX-compliant names.  The code will build and run just fine
17140         without these changes, but it's better to eat our own dog food
17141         and use the standard-conforming names.
17142
17143         * lib/regex.h: Fix a multitude of POSIX name space violations.
17144         These changes have an effect only for programs that define
17145         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
17146         do not change anything for programs compiled in the normal way.
17147         Also, there is no effect on the ABI.
17148
17149         (_REGEX_SOURCE): New macro.
17150         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
17151         defined and _GNU_SOURCE is not; this fixes a name space violation.
17152
17153         Rename the following macros to obey POSIX requirements.
17154         The old names are still visible as macros if _REGEX_SOURCE is defined.
17155         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
17156         RE_BACKSLASH_ESCAPE_IN_LISTS.
17157         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
17158         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
17159         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
17160         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
17161         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
17162         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
17163         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
17164         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
17165         (REG_INTERVALS): renamed from RE_INTERVALS.
17166         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
17167         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
17168         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
17169         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
17170         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
17171         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
17172         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
17173         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
17174         RE_UNMATCHED_RIGHT_PAREN_ORD.
17175         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
17176         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
17177         (REG_DEBUG): renamed from RE_DEBUG.
17178         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
17179         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
17180         unusual, since we can't clash with the POSIX REG_ICASE.
17181         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
17182         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
17183         (REG_NO_SUB): renamed from RE_NO_SUB.
17184         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
17185         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
17186         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
17187         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
17188         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
17189         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
17190         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
17191         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
17192         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
17193         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
17194         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
17195         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
17196         RE_SYNTAX_POSIX_MINIMAL_BASIC.
17197         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
17198         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
17199         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
17200         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
17201         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
17202         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
17203         (REG_FIXED): Renamed from REGS_FIXED.
17204         (REG_NREGS): Renamed from RE_NREGS.
17205
17206         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
17207         of other REG_* macros, since POSIX says the user is allowed to
17208         #undef these macros selectively.
17209
17210         (reg_errcode_t): Update comment stating what other tables need
17211         to be consistent.
17212
17213         Rename the following enum values to obey POSIX requirements.
17214         The old names are still visible as macros.
17215         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
17216         is not defined, since GNU is supposed to be a superset of POSIX as
17217         much as possible, and since we want reg_errcode_t to be a signed
17218         type for implementation consistency.
17219         (_REG_NOERROR): Renamed from REG_NOERROR.
17220         (_REG_NOMATCH): Renamed from REG_NOMATCH.
17221         (_REG_BADPAT): Renamed from REG_BADPAT.
17222         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
17223         (_REG_ECTYPE): Renamed from REG_ECTYPE.
17224         (_REG_EESCAPE): Renamed from REG_EESCAPE.
17225         (_REG_ESUBREG): Renamed from REG_ESUBREG.
17226         (_REG_EBRACK): Renamed from REG_EBRACK.
17227         (_REG_EPAREN): Renamed from REG_EPAREN.
17228         (_REG_EBRACE): Renamed from REG_EBRACE.
17229         (_REG_BADBR): Renamed from REG_BADBR.
17230         (_REG_ERANGE): Renamed from REG_ERANGE.
17231         (_REG_ESPACE): Renamed from REG_ESPACE.
17232         (_REG_BADRPT): Renamed from REG_BADRPT.
17233         (_REG_EEND): Renamed from REG_EEND.
17234         (_REG_ESIZE): Renamed from REG_ESIZE.
17235         (_REG_ERPAREN): Renamed from REG_ERPAREN.
17236         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
17237         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
17238         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
17239         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
17240
17241         (_REG_RE_NAME, _REG_RM_NAME): New macros.
17242         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
17243         changed.  But support the old name if the new one is not defined
17244         and if _REGEX_SOURCE.
17245
17246         Change the following member names in struct re_pattern_buffer.
17247         The old names are still supported if !_REGEX_SOURCE.
17248         The new names are always supported, regardless of _REGEX_SOURCE.
17249         (re_buffer): Renamed from buffer.
17250         (re_allocated): Renamed from allocated.
17251         (re_used): Renamed from used.
17252         (re_syntax): Renamed from syntax.
17253         (re_fastmap): Renamed from fastmap.
17254         (re_translate): Renamed from translate.
17255         (re_can_be_null): Renamed from can_be_null.
17256         (re_regs_allocated): Renamed from regs_allocated.
17257         (re_fastmap_accurate): Renamed from fastmap_accurate.
17258         (re_no_sub): Renamed from no_sub.
17259         (re_not_bol): Renamed from not_bol.
17260         (re_not_eol): Renamed from not_eol.
17261         (re_newline_anchor): Renamed from newline_anchor.
17262
17263         Change the following member names in struct re_registers.
17264         The old names are still supported if !_REGEX_SOURCE.
17265         The new names are always supported, regardless of _REGEX_SOURCE.
17266         (rm_num_regs): Renamed from num_regs.
17267         (rm_start): Renamed from start.
17268         (rm_end): Renamed from end.
17269
17270         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
17271         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
17272         Prepend __ to parameter names.
17273
17274         Undo yesterday's changes.
17275
17276 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17277
17278         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
17279         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
17280         lib/regex.c.
17281
17282 2005-08-24  Jim Meyering  <jim@meyering.net>
17283
17284         Sync from coreutils.
17285         * m4/fcntl-safer.m4: New file.
17286
17287         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
17288         and object files for this module.
17289
17290 2005-08-24  Jim Meyering  <jim@meyering.net>
17291
17292         Sync from coreutils.
17293         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
17294
17295 2005-08-24  Jim Meyering  <jim@meyering.net>
17296
17297         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
17298         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
17299
17300 2005-08-24  Jim Meyering  <jim@meyering.net>
17301
17302         * modules/fcntl-safer: New module.
17303         * modules/fts (Depends-on): Add fcntl-safer.
17304         * MODULES.html.sh (File descriptor based Input/Output):
17305         Add fcntl-safer.
17306
17307 2005-08-24  Bruno Haible  <bruno@clisp.org>
17308
17309         Support for unit test modules.
17310         * modules/README: Mention tests modules.
17311         * modules/TEMPLATE-TESTS: New file.
17312         * gnulib-tool: New options --extract-tests-module, --with-tests and
17313         --tests-base (unused for the moment).
17314         (testsbase, inctests): New variables.
17315         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
17316         (func_verify_module): Exclude TEMPLATE-TESTS.
17317         (func_verify_nontests_module, func_verify_tests_module): New functions.
17318         (func_get_dependencies): Add implicit dependency for tests modules.
17319         (func_get_tests_module): New function.
17320         (func_modules_transitive_closure): When --with-tests was specified,
17321         include the unit tests as well, unless explicitly avoided.
17322         (func_emit_lib_Makefile_am): Ignore the tests modules here.
17323         (func_emit_tests_Makefile_am): New function.
17324         (func_create_testdir): When --with-tests was specified, emit a
17325         tests/ directory.
17326         * MODULES.html.sh (Future developments): Update.
17327
17328 2005-08-24  Bruno Haible  <bruno@clisp.org>
17329
17330         * modules/tls-tests: New file.
17331         * tests/test-tls.c: New file, from GNU gettext.
17332
17333 2005-08-24  Bruno Haible  <bruno@clisp.org>
17334
17335         * modules/lock-tests: New file.
17336         * tests/test-lock.c: New file, from GNU gettext.
17337
17338 2005-08-24  Bruno Haible  <bruno@clisp.org>
17339
17340         * lib/lock.h: Add multiple inclusion guard.
17341         * lib/tls.h: Add multiple inclusion guard.
17342
17343 2005-08-24  Bruno Haible  <bruno@clisp.org>
17344
17345         * gnulib-tool: Add support for the --aux-dir option to
17346         --create-testdir, --create-megatestdir, --test, --megatest.
17347         (func_create_testdir, func_create_megatestdir): Optionally emit a
17348         AC_CONFIG_AUX_DIR directive.
17349         (create-testdir, create-megatestdir, test, megatest): Provide a
17350         default value for $auxdir.
17351
17352 2005-08-24  Bruno Haible  <bruno@clisp.org>
17353
17354         * gnulib-tool (import): Use compound statement instead of subshell
17355         where possible.
17356
17357 2005-08-24  Bruno Haible  <bruno@clisp.org>
17358
17359         * gnulib-tool (import): Change --aux-dir default to "build-aux".
17360
17361 2005-08-24  Bruno Haible  <bruno@clisp.org>
17362
17363         * gnulib-tool (func_version): Update.
17364
17365 2005-08-24  Bruno Haible  <bruno@clisp.org>
17366
17367         * gnulib-tool (func_import, func_create_testdir,
17368         func_create_megatestdir): Quote all autoconf macro arguments.
17369
17370 2005-08-24  Bruno Haible  <bruno@clisp.org>
17371
17372         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
17373         option --force, because --force causes the aclocal.m4 of each
17374         subdirectory to be newer than the corresponding config.h.in.
17375
17376 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17377
17378         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
17379         All contents moved to gl_REGEX.
17380         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
17381         assume that it does.
17382
17383 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17384
17385         * lib/regex.h (REG_NOSYS)
17386         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
17387         Define, since POSIX requires it as of 2001.
17388         (_REG_ENOSYS)
17389         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
17390         New private symbol, used to keep the enum signed in all cases.
17391         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
17392         Youngman in
17393         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
17394
17395         * lib/regex_internal.c (re_string_skip_chars, register_state):
17396         (calc_state_hash):
17397         Remove forward decls; no longer needed now that we use prototypes.
17398         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
17399         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
17400         (clean_state_log_if_needed): Likewise.
17401
17402 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17403
17404         * config/srclist.txt: Add glibc bugs 1231-1233.
17405
17406 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17407
17408         Fix problems reported by Sam Steingold in
17409         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
17410         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
17411         assumed that reg_errcode_t is a signed type, which is not
17412         necessarily true if _XOPEN_SOURCE is not defined.
17413         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
17414         since some compilers warn about it otherwise.
17415
17416 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17417
17418         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
17419         (init_word_char, create_initial_state, duplicate_node_closure):
17420         (fetch_token, peek_token_bracket, build_range_exp):
17421         (build_collating_symbol): Remove forward decls; no longer needed
17422         now that we use prototypes.
17423
17424         * lib/regcomp.c:
17425         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
17426         (re_compile_fastmap_iter, regcomp, regerror, regfree):
17427         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
17428         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
17429         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
17430         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
17431         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
17432         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
17433         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
17434         (build_range_exp, build_collating_symbol, parse_bracket_exp):
17435         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
17436         (build_charclass, build_charclass_op, fetch_number, create_tree):
17437         (create_token_tree, mark_opt_subexp, duplicate_tree):
17438         Use prototypes rather than old-style definitions.
17439
17440         * lib/regex_internal.c:
17441         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
17442         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
17443         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17444         (re_string_reconstruct, re_string_peek_byte_case):
17445         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
17446         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17447         (re_node_set_init_copy, re_node_set_add_intersect):
17448         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17449         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17450         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17451         (re_acquire_state, re_acquire_state_context, register_state):
17452         (create_ci_newstate, create_cd_newstate, free_state):
17453         Likewise.
17454         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
17455         re_search_2):
17456         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
17457         (re_search_internal, prune_impossible_nodes):
17458         (acquire_init_state_context, check_matching, static):
17459         (check_halt_node_context, check_halt_state_context, proceed_next_node):
17460         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
17461         (update_regs, sift_states_backward, build_sifted_states):
17462         (clean_state_log_if_needed, merge_state_array):
17463         (update_cur_sifted_state, add_epsilon_src_nodes):
17464         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
17465         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
17466         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
17467         (find_recover_state, check_subexp_matching_top, transit_state_mb):
17468         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
17469         (check_arrival, check_arrival_add_next_nodes):
17470         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17471         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17472         (check_node_accept_bytes, check_node_accept, extend_buffers):
17473         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
17474         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
17475         (sift_ctx_init):
17476         Likewise.
17477
17478         * lib/regex_internal.h:
17479         (re_string_allocate, re_string_construct, re_string_reconstruct):
17480         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
17481         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
17482         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
17483         (re_string_context_at, re_string_peek_byte_case):
17484         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
17485         is defined, since we now use prototypes always.
17486
17487         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
17488         C89 or better.  All uses removed.
17489
17490 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17491
17492         * config/srclist.txt: Add glibc bugs 1220-1227.
17493
17494 2005-08-20  Jim Meyering  <jim@meyering.net>
17495
17496         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
17497         of unused local, dfa.
17498
17499 2005-08-20  Bruno Haible  <bruno@clisp.org>
17500
17501         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
17502
17503 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17504
17505         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
17506         (re_node_set_insert_last, re_dfa_add_node):
17507         Rename local variables to avoid GCC shadowing warnings.
17508
17509 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17510
17511         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
17512         [defined lint]: Suppress bogus uninitialized-variable warnings.
17513
17514         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
17515         and let the caller return REG_ESPACE if out of space.  This
17516         removes an uninitialied-variable warning with GCC 4.0.1, and also
17517         avoids taking the address of a local variable.  All callers
17518         changed.
17519
17520 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17521
17522         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
17523         $LIBCSRC/posix/regexec.c.
17524         Add glibc bug 1217 for regcomp.c.
17525
17526 2005-08-19  Jim Meyering  <jim@meyering.net>
17527
17528         * lib/regexec.c (proceed_next_node): Redo local variables to
17529         avoid GCC shadowing warnings.
17530
17531 2005-08-18  Bruno Haible  <bruno@clisp.org>
17532
17533         * lib/strstr.c (strstr): Fix return value in multibyte case.
17534         * lib/strcasestr.c (strcasestr): Likewise.
17535
17536 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17537
17538         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
17539
17540 2005-08-17  Jim Meyering  <jim@meyering.net>
17541
17542         Make the %s format (seconds since the epoch) work for a negative
17543         number and when used with a zero-padded field width, e.g. %015s.
17544
17545         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
17546         label so that it precedes the code to set `digits'.  Otherwise,
17547         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
17548         print `00-22'.  Now, it prints `-0022', as it should.
17549
17550 2005-08-17  Bruno Haible  <bruno@clisp.org>
17551
17552         * modules/strstr (Files): Add m4/mbrtowc.m4.
17553         (Depends-on): Add mbuiter.
17554
17555 2005-08-17  Bruno Haible  <bruno@clisp.org>
17556
17557         * modules/strcasestr: New file.
17558         * MODULES.html.sh (String handling, based on ANSI C 89): Add
17559         strcasestr.
17560
17561 2005-08-17  Bruno Haible  <bruno@clisp.org>
17562
17563         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
17564
17565 2005-08-17  Bruno Haible  <bruno@clisp.org>
17566
17567         * modules/mbuiter: New file.
17568         * MODULES.html.sh (Extended multibyte and wide character utilities):
17569         Add mbuiter.
17570
17571 2005-08-17  Bruno Haible  <bruno@clisp.org>
17572
17573         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
17574         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
17575
17576 2005-08-17  Bruno Haible  <bruno@clisp.org>
17577
17578         * m4/strcasestr.m4: New file.
17579
17580 2005-08-17  Bruno Haible  <bruno@clisp.org>
17581
17582         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
17583         * lib/strstr.c: Completely rewritten, with multibyte locale support.
17584
17585 2005-08-17  Bruno Haible  <bruno@clisp.org>
17586
17587         * lib/strcasestr.h: New file.
17588         * lib/strcasestr.c: New file.
17589
17590 2005-08-17  Bruno Haible  <bruno@clisp.org>
17591
17592         * lib/strcasecmp.c: Use mbuiter.h.
17593
17594 2005-08-17  Bruno Haible  <bruno@clisp.org>
17595
17596         * lib/mbuiter.h: New file.
17597
17598 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17599
17600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
17601         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
17602         and gl_GETOPT are both invoked via different paths (as happens
17603         with GNU tar CVS because it uses both argp and getopt), the former
17604         wins.
17605
17606 2005-08-16  Bruno Haible  <bruno@clisp.org>
17607
17608         * modules/tls: New file.
17609         * MODULES.html.sh (Multithreading): Add tls.
17610
17611 2005-08-16  Bruno Haible  <bruno@clisp.org>
17612
17613         * modules/strnlen1: New file.
17614         * MODULES.html.sh (String handling): Add strnlen1.
17615
17616 2005-08-16  Bruno Haible  <bruno@clisp.org>
17617
17618         * modules/strcase (Files): Add m4/mbrtowc.m4.
17619         (Depends-on): Add strnlen1, mbchar.
17620
17621 2005-08-16  Bruno Haible  <bruno@clisp.org>
17622
17623         * modules/mbiter: New file.
17624         * MODULES.html.sh (Extended multibyte and wide character utilities):
17625         Add mbiter.
17626
17627 2005-08-16  Bruno Haible  <bruno@clisp.org>
17628
17629         * modules/mbfile: New file.
17630         * MODULES.html.sh (Extended multibyte and wide character utilities):
17631         Add mbfile.
17632
17633 2005-08-16  Bruno Haible  <bruno@clisp.org>
17634
17635         * modules/mbchar: New file.
17636         * MODULES.html.sh (Extended multibyte and wide character utilities):
17637         New section.
17638
17639 2005-08-16  Bruno Haible  <bruno@clisp.org>
17640
17641         * m4/tls.m4: New file, from GNU gettext.
17642
17643 2005-08-16  Bruno Haible  <bruno@clisp.org>
17644
17645         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
17646         always.
17647         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
17648
17649 2005-08-16  Bruno Haible  <bruno@clisp.org>
17650
17651         * m4/mbiter.m4: New file.
17652
17653 2005-08-16  Bruno Haible  <bruno@clisp.org>
17654
17655         * m4/mbfile.m4: New file.
17656
17657 2005-08-16  Bruno Haible  <bruno@clisp.org>
17658
17659         * m4/mbchar.m4: New file.
17660
17661 2005-08-16  Bruno Haible  <bruno@clisp.org>
17662
17663         * lib/tls.h: New file, from GNU gettext.
17664         * lib/tls.c: New file, from GNU gettext.
17665
17666 2005-08-16  Bruno Haible  <bruno@clisp.org>
17667
17668         * lib/strnlen1.h: New file.
17669         * lib/strnlen1.c: New file.
17670
17671 2005-08-16  Bruno Haible  <bruno@clisp.org>
17672
17673         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
17674         (mbi_init): Update.
17675         (mbi_avail, mbi_advance): Let the iteration end before the terminating
17676         NUL byte, not after it.
17677
17678 2005-08-16  Bruno Haible  <bruno@clisp.org>
17679
17680         * lib/strcase.h (strcasecmp): Add note in comments.
17681         * lib/strncasecmp.c: Use code from strcasecmp.c.
17682         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
17683         (strcasecmp): Work correctly in multibyte locales.
17684
17685 2005-08-16  Bruno Haible  <bruno@clisp.org>
17686
17687         * lib/mbiter.h: New file.
17688
17689 2005-08-16  Bruno Haible  <bruno@clisp.org>
17690
17691         * lib/mbfile.h: New file.
17692
17693 2005-08-16  Bruno Haible  <bruno@clisp.org>
17694
17695         * lib/mbchar.h: New file.
17696         * lib/mbchar.c: New file.
17697
17698 2005-08-16  Bruno Haible  <bruno@clisp.org>
17699
17700         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
17701         the valid ones. Makes the comparison operations transitive:
17702         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
17703         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
17704
17705 2005-08-15  Simon Josefsson  <jas@extundo.com>
17706
17707         * modules/ssize_t (License): Change to 'unlimited'.
17708
17709         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
17710
17711 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17712
17713         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
17714         Add comments for each pending glibc patch.
17715
17716 2005-08-15  Bruno Haible  <bruno@clisp.org>
17717
17718         * lib/regex.h (__restrict_arr): Don't define to __restrict if
17719         __cplusplus is defined.
17720
17721 2005-08-14  Jim Meyering  <jim@meyering.net>
17722
17723         Sync from coreutils.
17724
17725         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
17726         Use the hash-table-based cycle-detection code not just when
17727         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
17728         Reported by James Youngman in
17729         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
17730         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
17731         FTS_TIGHT_CYCLE_CHECK.
17732         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
17733         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
17734         once again.
17735         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
17736         * lib/fts.c (fd_safer): Remove decl.
17737         Include fcntl--.h rather than unistd-safer.h
17738         (fts_safe_changedir): Don't call fd_safer; no longer needed
17739         now that we include fcntl--.h.
17740
17741 2005-08-12  Simon Josefsson  <jas@extundo.com>
17742
17743         * modules/getndelim2: Use ssize_t module.
17744         * modules/getnline: Likewise.
17745         * modules/safe-read: Likewise.
17746         * modules/xreadlink: Likewise.
17747
17748         * modules/ssize_t: New file.
17749
17750 2005-08-12  Simon Josefsson  <jas@extundo.com>
17751
17752         * m4/readline.m4: Look for termcap, curses or ncurses if required.
17753
17754 2005-08-12  Simon Josefsson  <jas@extundo.com>
17755
17756         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17757         ssize_t.
17758
17759 2005-08-12  Simon Josefsson  <jas@extundo.com>
17760
17761         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
17762         readline, getdelim and check_version.
17763         (Support for systems lacking ISO C 99: Sizes of integer types):
17764         Add size_max.
17765
17766 2005-08-12  Bruno Haible  <bruno@clisp.org>
17767
17768         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
17769
17770 2005-08-11  Simon Josefsson  <jas@extundo.com>
17771
17772         * modules/readline: New file.
17773
17774         * modules/strnlen (Files): Add strnlen.h.
17775
17776 2005-08-11  Simon Josefsson  <jas@extundo.com>
17777
17778         * m4/readline.m4: New file.
17779
17780 2005-08-11  Simon Josefsson  <jas@extundo.com>
17781
17782         * lib/readline.h, readline.c: New file.
17783
17784 2005-08-11  Simon Josefsson  <jas@extundo.com>
17785
17786         * doc/gnulib.texi (Initial import, Finishing touches): Mention
17787         gl_AVOID.
17788
17789 2005-08-11  Bruno Haible  <bruno@clisp.org>
17790
17791         * lib/strnlen.h (strnlen): Change parameter name to match comment.
17792
17793 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
17794
17795         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
17796
17797 2005-08-10  Simon Josefsson  <jas@extundo.com>
17798
17799         * tests/test-iconvme.c: New file.
17800
17801 2005-08-10  Simon Josefsson  <jas@extundo.com>
17802
17803         * m4/strnlen.m4: New file.
17804
17805         * m4/strndup.m4: Don't check for strnlen declaration, done in
17806         strnlen.m4.
17807
17808 2005-08-10  Simon Josefsson  <jas@extundo.com>
17809
17810         * lib/strndup.c: Use strnlen.h.
17811
17812         * lib/strnlen.h: New file.
17813
17814 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
17815
17816         * README: Typos.
17817
17818 2005-08-02  Simon Josefsson  <jas@extundo.com>
17819
17820         * modules/readline: New file.
17821
17822 2005-08-02  Simon Josefsson  <jas@extundo.com>
17823
17824         * modules/getdelim: New file.
17825
17826         * modules/getline: Rewrite, don't use getndelim2.
17827
17828 2005-08-02  Simon Josefsson  <jas@extundo.com>
17829
17830         * m4/getline.m4: Separate out getdelim stuff into separate module.
17831
17832         * m4/getdelim.m4: New file.
17833
17834 2005-08-02  Simon Josefsson  <jas@extundo.com>
17835
17836         * lib/getline.h, getline.c: Rewrite.
17837
17838         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
17839
17840 2005-07-31  Bruno Haible  <bruno@clisp.org>
17841
17842         * lib/lock.h (gl_lock_initializer): New macro.
17843         (gl_lock_define_initialized): Use it.
17844         (gl_rwlock_initializer): New macro.
17845         (gl_rwlock_define_initialized): Use it.
17846         (gl_recursive_lock_initializer): New macro.
17847         (gl_recursive_lock_define_initialized): Use it.
17848
17849 2005-07-30  Karl Berry  <karl@gnu.org>
17850
17851         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
17852         Report from Ben Pfaff, regarding getopt.
17853
17854 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
17855
17856         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
17857         normal way.
17858         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
17859         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
17860         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
17861         (gl_GETOPT): Use the new macros.  Most of the implementation
17862         is moved to the new macros.  This is for programs like Emacs
17863         that don't want all the functionality of gl_GETOPT.
17864
17865 2005-07-26  Bruno Haible  <bruno@clisp.org>
17866
17867         * m4/lock.m4: Update from GNU gettext.
17868
17869 2005-07-26  Bruno Haible  <bruno@clisp.org>
17870
17871         * lib/lock.h: Update from GNU gettext.
17872         * lib/lock.c: Update from GNU gettext.
17873
17874 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
17875
17876         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
17877         obsolescent AC_TRY_RUN.  Include the default includes files, for
17878         'exit'.
17879
17880 2005-07-24  Bruno Haible  <bruno@clisp.org>
17881
17882         * modules/visibility: New file.
17883         * MODULES.html.sh (Misc): Add visibility.
17884
17885 2005-07-24  Bruno Haible  <bruno@clisp.org>
17886
17887         * m4/visibility.m4: New file.
17888
17889 2005-07-24  Bruno Haible  <bruno@clisp.org>
17890
17891         * doc/visibility.texi: New file.
17892
17893 2005-07-22  Bruno Haible  <bruno@clisp.org>
17894
17895         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
17896         $(ALLOCA_H), redundant through BUILT_SOURCES.
17897         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
17898         redundant through BUILT_SOURCES.
17899         * modules/byteswap (Makefile.am): Remove explicit dependency on
17900         $(BYTESWAP_H), redundant through BUILT_SOURCES.
17901         * modules/fnmatch (Makefile.am): Remove explicit dependency on
17902         $(FNMATCH_H), redundant through BUILT_SOURCES.
17903         * modules/getopt (Makefile.am): Remove explicit dependency on
17904         $(GETOPT_H), redundant through BUILT_SOURCES.
17905         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
17906         redundant through BUILT_SOURCES.
17907         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
17908         redundant through BUILT_SOURCES.
17909         * modules/stdbool (Makefile.am): Remove explicit dependency on
17910         $(STDBOOL_H), redundant through BUILT_SOURCES.
17911         * modules/stdint (Makefile.am): Remove explicit dependency on
17912         $(STDINT_H), redundant through BUILT_SOURCES.
17913         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
17914         Remove explicit dependency on $(SYSEXITS_H).
17915         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
17916
17917 2005-07-18  Simon Josefsson  <jas@extundo.com>
17918
17919         * lib/check-version.c (check_version): Accept identical versions too.
17920
17921 2005-07-18  Bruno Haible  <bruno@clisp.org>
17922
17923         * modules/lock: New file.
17924         * MODULES.html.sh (Multithreading): New section.
17925
17926 2005-07-18  Bruno Haible  <bruno@clisp.org>
17927
17928         * m4/lock.m4: New file, from GNU gettext.
17929
17930 2005-07-18  Bruno Haible  <bruno@clisp.org>
17931
17932         * lib/lock.h: New file, from GNU gettext.
17933         * lib/lock.c: New file, from GNU gettext.
17934
17935 2005-07-18  Bruno Haible  <bruno@clisp.org>
17936
17937         * lib/lock.h (gl_once_t): New type.
17938         (gl_once_define, gl_once): New macros.
17939         * lib/lock.c (fresh_once): New variable.
17940         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
17941         functions.
17942
17943 2005-07-16  Simon Josefsson  <jas@extundo.com>
17944
17945         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
17946         workaround, suggested by Bruno.
17947
17948 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17949
17950         * modules/xalloc (Depends-on): Add xalloc-die.
17951         * modules/xvasprintf (Depends-on): Add xalloc-die.
17952
17953 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17954
17955         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
17956         with a minor change.
17957
17958 2005-07-15  Bruno Haible  <bruno@clisp.org>
17959
17960         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
17961         When using lib/poll.c, define poll as rpl_poll.
17962
17963 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
17964
17965         * modules/argp (Depends-on): Remove unlocked-io.
17966
17967 2005-07-14  Derek Price  <derek@ximbiot.com>
17968
17969         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
17970         for glob symlink bug.
17971
17972 2005-07-14  Bruno Haible  <bruno@clisp.org>
17973
17974         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
17975         Instead, test for *_unlocked function declarations directly.
17976
17977 2005-07-11  Simon Josefsson  <jas@extundo.com>
17978
17979         * modules/size_max: New file.
17980
17981         * modules/xsize: Depend on size_max module for size_max.m4.
17982
17983 2005-07-11  Simon Josefsson  <jas@extundo.com>
17984
17985         * lib/size_max.h: New file.
17986
17987 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
17988
17989         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
17990         copyright symbol and the year.
17991         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
17992         (version_etc_va): Use parameterized copyright notice.
17993         Reword to conform to the current GNU coding standards.
17994
17995 2005-07-11  Karl Berry  <karl@gnu.org>
17996
17997         * doc/gnulib.texi (Quoting): new node.
17998         (Initial import): more info, from Patrice.
17999
18000 2005-07-11  Bruno Haible  <bruno@clisp.org>
18001
18002         * gnulib-tool (func_usage): Document option --avoid.
18003         (Command line options): Handle --avoid.
18004         (func_acceptable): New function.
18005         (func_modules_transitive_closure): Use it.
18006
18007 2005-07-11  Bruno Haible  <bruno@clisp.org>
18008
18009         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
18010         Reported by Jim Meyering.
18011
18012 2005-07-10  Bruno Haible  <bruno@clisp.org>
18013
18014         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
18015         Needed when size_t is smaller than 'unsigned int'.
18016         Reported by Paul Eggert.
18017
18018 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18019
18020         * modules/argp (Depends-on): Add unlocked-io
18021
18022 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18023
18024         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
18025         block of defines.
18026
18027 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18028
18029         * config/srclist.txt: Comment out regcomp.c, since we have a porting
18030         fix now.
18031
18032 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
18033         and Paul Eggert  <eggert@cs.ucla.edu>
18034
18035         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
18036         in wint_t, not wchar_t.  Remove now-unnecessary cast.
18037
18038 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18039
18040         * modules/regex (Files): Add lib/regex_internal.c,
18041         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
18042         (Depends-on): Add extensions.
18043         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
18044
18045 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18046
18047         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
18048         pathconf.
18049         * m4/same.m4 (gl_SAME): Likewise.
18050         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
18051
18052         * m4/regex.m4: Adjust to new libc regex implementation.
18053         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
18054         all the .c and .h parts of (the new) regex.
18055         Quote the m4 stuff better.
18056         Check for RE_ICASE bug of old gnulib.
18057         Check for REG_STARTEND of recent libc.
18058         Rename local variables from jm_* to gl_*.
18059         Quote operand of "test -f".
18060         Say "recent enough" version of libc, not "version 2".
18061         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
18062         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
18063         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
18064         Remove check for btowc, isascii.
18065         Require AM_LANGINFO_CODESET.
18066
18067 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18068
18069         * lib/regex.c, regex.h: Sync from libc.
18070         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
18071         * lib/regexec.c:
18072         New files, synced from libc, except that regex_internal.h
18073         currently has a small porting fix.
18074
18075 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18076
18077         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
18078         regex_internal.c, regexec.c.
18079         Add regex_internal.h too, but as a comment, since the libc version
18080         is currently broken in gnulib mode.
18081
18082 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18083
18084         Support programs like Emacs that use gnulib but not gettext.
18085         * MODULES.html.sh (Internationalization functions): Add gettext-h.
18086         * modules/gettext-h: New file.
18087         * modules/gettext (Files): Remove lib/gettext.h.
18088         (Depends-on): Add gettext-h.
18089         (Makefile.am): Remove lib_SOURCES.
18090         * modules/argmatch, modules/c-stack, modules/closeout:
18091         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
18092         * modules/execute, modules/file-type, modules/getaddrinfo:
18093         * modules/getopt, modules/human, modules/javacomp:
18094         * modules/javaexec, modules/mkdir-p, modules/obstack:
18095         * modules/openat, modules/pagealign_alloc, modules/pipe:
18096         * modules/quotearg, modules/regex, modules/rpmatch:
18097         * modules/unicodeio, modules/userspec, modules/version-etc:
18098         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
18099         * modules/xsetenv:
18100         Depend on gettext-h, not gettext.
18101
18102 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18103
18104         * gnulib-tool (func_import): Add support for 'public domain' license.
18105         * modules/alloca, modules/atexit, modules/memmove:
18106         Now public domain, not GPL.
18107         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
18108         * modules/realloc, modules/strerror, modules/strtod:
18109         Now LGPL, not GPL.
18110
18111 2005-07-05  Bruno Haible  <bruno@clisp.org>
18112
18113         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
18114         autoconf CVS. Needed for mingw.
18115
18116 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18117
18118         Remove the dependency of the strftime module on the tzset module.
18119         * modules/strftime (Depends-on): Remove dependency on tzset.
18120
18121 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18122
18123         Remove the dependency of the strftime module on the tzset module.
18124         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
18125         gl_FUNC_TZSET_CLOBBER.
18126
18127 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18128
18129         Remove the dependency of the strftime module on the tzset module.
18130         * lib/strftime.c (my_strftime)
18131         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
18132         Copy the input structure, to work around some of the bug with
18133         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
18134         Solaris releases, you should also use the tzset module, but we won't
18135         require it as a dependency any more since we don't want LGPLed code
18136         to depend on GPLed code.
18137
18138 2005-07-02  Jim Meyering  <jim@meyering.net>
18139
18140         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
18141         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
18142         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
18143         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
18144
18145 2005-07-02  Jim Meyering  <jim@meyering.net>
18146
18147         * lib/backupfile.c (backup_args): Change a `0' to NULL.
18148
18149 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18150
18151         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
18152         declares only 'struct timespec;' (!).
18153
18154 2005-07-01  Jim Meyering  <jim@meyering.net>
18155
18156         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
18157         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
18158         * lib/save-cwd.c, tempname.c:
18159         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18160         and don't include <sys/file.h>).
18161
18162 2005-06-29  Jim Meyering  <jim@meyering.net>
18163
18164         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
18165         type name.  Use the variable name instead.
18166         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
18167         Likewise.
18168
18169 2005-06-28  Simon Josefsson  <jas@extundo.com>
18170
18171         * modules/check-version (Files): Add check-version.m4.
18172
18173 2005-06-28  Simon Josefsson  <jas@extundo.com>
18174
18175         * m4/check-version.m4: New file, suggested by Jim Meyering
18176         <jim@meyering.net>.
18177
18178 2005-06-28  Simon Josefsson  <jas@extundo.com>
18179
18180         * lib/check-version.h, lib/check-version.c: New files.
18181
18182 2005-06-28  Simon Josefsson  <jas@extundo.com>
18183
18184         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
18185         collision with global variable.  Better indentation.  Don't
18186         increment buffer pointer beyond buffer end.  Based on comments
18187         from Paul Eggert <eggert@cs.ucla.edu>.
18188
18189         * lib/base64.h: Indent.
18190
18191 2005-06-28  Simon Josefsson  <jas@extundo.com>
18192
18193         * doc/gnulib.texi (Library version handling): New section.
18194
18195 2005-06-28  Jim Meyering  <jim@meyering.net>
18196
18197         * check-module (find_included_lib_files): Hard-code another
18198         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
18199         but modules/fts-lgpl (correctly) does not list those files.
18200
18201         * modules/canonicalize (Files): Add lib/pathmax.h.
18202
18203 2005-06-25  Simon Josefsson  <jas@extundo.com>
18204
18205         * modules/check-version: New file.
18206
18207 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18208
18209         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
18210         initializer of struct addrinfo, as an indication that we don't
18211         care how many members the structure has.
18212
18213 2005-06-24  Derek Price  <derek@ximbiot.com>
18214         and Bruno Haible  <bruno@clisp.org>
18215
18216         Remove stat module & update lstat.
18217         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
18218         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18219         * m4/stat.m4: Remove this file.
18220
18221 2005-06-24  Derek Price  <derek@ximbiot.com>
18222         and Bruno Haible  <bruno@clisp.org>
18223
18224         Remove stat module & update lstat.
18225         * lib/stat.c: Remove this file...
18226         (slash_aware_lstat): ...moving this content and its support...
18227         * lib/lstat.c (rpl_lstat): ...into here.
18228         * lib/lstat.h: New file.
18229
18230 2005-06-24  Derek Price  <derek@ximbiot.com>
18231         and Bruno Haible  <bruno@clisp.org>
18232
18233         Remove stat module & update lstat.
18234         * config/srclist.txt (libc sources): Remove stat.
18235
18236 2005-06-24  Derek Price  <derek@ximbiot.com>
18237         and Bruno Haible  <bruno@clisp.org>
18238
18239         Remove stat module & update lstat.
18240         * MODULES.html.sh (stat): Remove.
18241         * MODULES.html: Regenerated.
18242         * modules/lstat (Description): Correct function name.
18243         (Files): Add "lstat.h".
18244         (Depends-on): Remove stat, add xalloc, stat-macros.
18245         * modules/stat: Remove this file.
18246         (Include): Add "lstat.h", remove <sys/stat.h>.
18247
18248 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18249
18250         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
18251         (ranged_convert): Don't save conversion in a temporary struct.
18252         This causes a warning with GCC 4.0.0, and anyway in the typical
18253         case it's not worth the extra 100 bytes or so of code.
18254         (ranged_convert, __mktime_internal): When calling a function via a
18255         pointer P, use P () rather than (*P) (), as we now assume C89 or
18256         better.
18257
18258 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18259
18260         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
18261         "who -r" failed to give output.  Problem reported by Tim Waugh.
18262
18263         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
18264         (xcalloc): Use it to avoid needless tests.
18265         Problem reported by Jim Meyering.
18266
18267 2005-06-20  Derek Price  <derek@ximbiot.com>
18268
18269         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
18270         unnecessary for Autoconfs > 2.59c.
18271
18272 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18273
18274         * lib/argp.h (__option_is_short): Check upper limit of
18275         __key. Isprint() requires its argument to have the value
18276         of an unsigned char or EOF.
18277
18278 2005-06-16  Jim Meyering  <jim@meyering.net>
18279
18280         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
18281         when either N or S is zero.
18282
18283 2005-06-16  Derek Price  <derek@ximbiot.com>
18284
18285         * m4/bison.m4: Declare YACC & YFLAGS precious.
18286
18287 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
18288
18289         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
18290         multibyte string or pattern, fall back on unibyte matching.
18291         Problem reported by James Youngman.
18292
18293 2005-06-08  Bruno Haible  <bruno@clisp.org>
18294
18295         * modules/csharpcomp: New file.
18296         * MODULES.html.sh (C#): Add csharpcomp.
18297
18298 2005-06-08  Bruno Haible  <bruno@clisp.org>
18299
18300         * m4/csharpcomp.m4: New file, from GNU gettext.
18301
18302 2005-06-08  Bruno Haible  <bruno@clisp.org>
18303
18304         * lib/csharpcomp.h: New file, from GNU gettext.
18305         * lib/csharpcomp.c: New file, from GNU gettext.
18306         * lib/csharpcomp.sh.in: New file, from GNU gettext.
18307
18308 2005-06-08  Bruno Haible  <bruno@clisp.org>
18309
18310         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
18311         warning on mingw.
18312
18313 2005-06-07  Derek Price  <derek@ximbiot.com>
18314
18315         Sync from CVS.
18316         * lib/glob_.h: Indent nested #ifdef.
18317
18318 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18319
18320         Sync from coreutils.
18321         Use "file name" when talking about file names, instead of "filename"
18322         or "path", as per the GNU coding standards.
18323         * lib/mkdir-p.c: Renamed from makepath.c.
18324         (make_dir_parents): Renamed from make_path.  All callers changed.
18325         * lib/mkdir-p.h: Likewise.  All includers changed.
18326         * lib/filenamecat.c: Renamed from path-concat.c.
18327         (file_name_concat): Renamed from path_concat.  All callers changed.
18328         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
18329         * lib/filenamecat.h: Likewise.  All includers changed.
18330         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
18331         in comments or local variable names.
18332         * lib/basename.c: Likewise.
18333         * lib/canonicalize.c, canonicalize.h: Likewise.
18334         * lib/dirname.c, dirname.h: Likewise.
18335         * lib/euidaccess.c: Likewise.
18336         * lib/exclude.c: Likewise
18337         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
18338         * lib/fsusage.c, fsuage.h: Likewise.
18339         * lib/fts.c, fts_.h: Likewise.
18340         * lib/getcwd.c: Likewise.
18341         * lib/getloadavg.c: Likewise.
18342         * lib/mkstemp.c: Likewise.
18343         * lib/mountlist.c, mountlist.h: Likewise.
18344         * lib/openat.c, openat.h: Likewise.
18345         * lib/readlink-stub.c: Likewise.
18346         * lib/readutmp.c, readutmp.h: Likewise.
18347         * lib/rename.c: Likewise.
18348         * lib/rmdir.c: Likewise.
18349         * lib/same.c: Likewise.
18350         * lib/savedir.c: Likewise.
18351         * lib/stripslash.c: Likewise.
18352         * lib/tempname.c: Likewise.
18353         * lib/xreadlink.c: Likewise.
18354         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
18355         All uses changed.
18356         * lib/exclude.h: Likewise.
18357
18358         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
18359         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18360         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
18361         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18362         * lib/pathmax.h: Include <limits.h> unconditionally, since other
18363         files have been getting away with it for years (MORE/BSD 4.3
18364         is extinct now).
18365         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
18366         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18367
18368         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
18369         Define to 256, not 255, as per modern POSIX.
18370
18371 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18372
18373         Sync from coreutils.
18374         Use "file name" when talking about file names, instead of "filename"
18375         or "path", as per the GNU coding standards.
18376         * MODULES.html.sh: mkdir-p renamed from makepath.
18377         filenamecat renamed from path-concat.
18378         * modules/filenamecat: Renamed from modules/path-concat.
18379         (Files): filenamecat.h and filenamecat.c renamed from
18380         path-concat.h and path-concat.c.
18381         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
18382         (Include): filenamecat.h, not path-concat.h.
18383         * modules/mkdir-p: Renamed from modules/makepath.
18384         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
18385         makepath.c.
18386         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
18387         (Include): mkdir-p.h, not makepath.h.
18388
18389 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18390
18391         Sync from coreutils.
18392         * m4/mkdir-p.m4: Renamed from makepath.m4.
18393         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
18394         Rename files from makepath.c to mkdir-p.c, and from
18395         makepath.h to mkdir-p.h.
18396         * m4/filenamecat.m4: Renamed from path-concat.m4.
18397         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
18398         Rename files from path-concat.c to filenamecat.c,
18399         and from path-concat.h to filenamecat.h.
18400         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
18401         "file name" in local variables or comments.
18402         * m4/rename.m4: Likewise.
18403
18404 2005-06-01  Bruno Haible  <bruno@clisp.org>
18405
18406         * modules/csharpexec: New file.
18407         * MODULES.html.sh (C#): New section.
18408
18409 2005-06-01  Bruno Haible  <bruno@clisp.org>
18410
18411         * m4/csharp.m4: New file, from GNU gettext.
18412         * m4/csharpexec.m4: New file, from GNU gettext.
18413
18414 2005-06-01  Bruno Haible  <bruno@clisp.org>
18415
18416         * lib/csharpexec.h: New file, from GNU gettext.
18417         * lib/csharpexec.c: New file, from GNU gettext.
18418         * lib/csharpexec.sh.in: New file, from GNU gettext.
18419
18420 2005-05-31  Derek Price  <derek@ximbiot.com>
18421             Paul Eggert  <eggert@cs.ucla.edu>
18422
18423         Sync from cvs.
18424         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18425
18426 2005-05-31  Derek Price  <derek@ximbiot.com>
18427             Paul Eggert  <eggert@cs.ucla.edu>
18428
18429         Sync from cvs.
18430         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18431
18432 2005-05-29  Derek Price  <derek@ximbiot.com>
18433
18434         * config/srclist.txt (glob_.h, glob.c): Add these files.
18435
18436 2005-05-29  Derek Price  <derek@ximbiot.com>
18437
18438         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
18439         * modules/glob: New file.
18440         * modules/getlogin_r: Add link to POSIX spec in description.
18441
18442 2005-05-29  Derek Price  <derek@ximbiot.com>
18443             Paul Eggert  <eggert@cs.ucla.edu>
18444
18445         * m4/glob.m4: New file.
18446
18447 2005-05-29  Derek Price  <derek@ximbiot.com>
18448             Paul Eggert  <eggert@cs.ucla.edu>
18449
18450         * lib/glob_.h, lib/glob.c: New files.
18451
18452 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18453
18454         * modules/fts (Files): Remove m4/inttypes-pri.m4.
18455         * modules/fts-lgpl (Depends-on): Remove gettext.
18456
18457 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18458
18459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
18460         and don't require gt_INTTYPES_PRI.
18461
18462 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18463
18464         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
18465
18466         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
18467         the configuration hassle isn't worth it.
18468         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
18469         (LONGEST_MODIFIER, PRIuMAX): Remove.
18470
18471 2005-05-27  Bruno Haible  <bruno@clisp.org>
18472
18473         * lib/getlogin_r.h: Remove second include of <stddef.h>.
18474
18475 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
18476
18477         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
18478         _POSIX_PTHREAD_SEMANTICS for Solaris.
18479
18480 2005-05-25  Derek Price  <derek@ximbiot.com>
18481
18482         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
18483
18484 2005-05-25  Derek Price  <derek@ximbiot.com>
18485             Paul Eggert  <eggert@cs.ucla.edu>
18486
18487         * modules/getlogin_r, m4/getlogin_r.m4: New files.
18488         * lib/getlogin_r.c, getlogin_r.h: New files.
18489
18490 2005-05-25  Bruno Haible  <bruno@clisp.org>
18491             Derek Price  <derek@ximbiot.com>
18492
18493         * lib/getlogin_r.h: Simplify API documentation.
18494
18495 2005-05-23  Derek Price  <derek@ximbiot.com>
18496
18497         * modules/minmax (Files): Add m4/minmax.m4.
18498         (configure.ac): Add gl_MINMAX.
18499
18500 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18501
18502         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
18503         so that unistd-safer.h (GPL'ed code) need not be included.
18504
18505 2005-05-22  Bruno Haible  <bruno@clisp.org>
18506
18507         * m4/minmax.m4: New file.
18508         Based on a patch by Derek Price <derek@ximbiot.com>.
18509
18510 2005-05-22  Bruno Haible  <bruno@clisp.org>
18511
18512         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
18513         (INT64_MIN): Fix definition.
18514         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
18515
18516         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
18517         NEED_SIGNED_INT_TYPES.
18518
18519         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
18520         HAVE_SYSTEM_INTTYPES.
18521
18522 2005-05-22  Bruno Haible  <bruno@clisp.org>
18523
18524         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
18525         Also include <sys/param.h> if it defines MIN, MAX.
18526         Based on a patch by Derek Price <derek@ximbiot.com>.
18527
18528 2005-05-21  Jim Meyering  <jim@meyering.net>
18529
18530         * modules/fts (Files): Add m4/inttypes-pri.m4.
18531         (Depends-on): Add lstat and remove gettext.  Alphabetize.
18532
18533 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18534
18535         New fts module.
18536         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
18537         (setup_dir, free_dir): New functions.
18538         (enter_dir, leave_dir): Define trivial
18539         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
18540         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
18541         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
18542         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
18543         Move to fts-cycle.c.
18544         (fts_open): Use setup_dir.
18545         (fts_close): Use free_dir.
18546         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
18547         This adds a label and some gotos, but the alternatives were messier.
18548         Check for memory allocation failure when entering a dir.
18549         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
18550         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
18551         (FTS): New member fts_cycle, that is a union that contains the
18552         old active_dir_ht and cycle_state.  All uses changed to mention
18553         fts_cycle.ht and fts_cycle.state.
18554         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
18555         fts.c, with the following changes:
18556         (setup_dir, free_dir): New functions.
18557         (enter_dir): Now returns bool.  Return true if successful, false
18558         if memory exhausted.  All callers changed.
18559         Do not bother partly cleaning up on
18560         memory allocation failure; that is free_dir's job.
18561         However, free ad if hash_insert fails, to avoid memory leak.
18562         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
18563         fts->fts_options to see which union member to use.
18564
18565 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18566
18567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
18568         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
18569
18570 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18571
18572         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
18573
18574 2005-05-20  Jim Meyering  <jim@meyering.net>
18575
18576         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
18577         Now a macro, to pacify GCC.
18578
18579 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
18580
18581         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
18582         of -1.
18583
18584 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
18585
18586         * lib/chown.c (rpl_chown): Return -1 on failure.
18587
18588 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18589
18590         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
18591         Don't check for stddef.h.
18592         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
18593         don't use its results.
18594         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
18595         since we include them unconditionally.  Don't require
18596         AM_STDBOOL_H, since stdbool is a prerequisite.
18597         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
18598         since we assume C89 or better.
18599         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
18600         as we don't use their results.
18601         Don't check for fchdir, memmove, memset, strrchr, as we use
18602         them unconditionally.
18603         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
18604         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
18605
18606 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18607
18608         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
18609         Include <stddef.h> unconditionally, since we assume C89 now.
18610         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
18611         * lib/fts.c: Include fts_.h first, to check interface.
18612         Do not include intprops.h; no longer needed.
18613         Include cycle-check.h and hash.h, since fts_.h no longer does.
18614         Remove unnecessary casts of closedir to void.
18615         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
18616         decide whether to decrement nlinks.
18617         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
18618         (FTS): Use struct hash_table * instead of Hash_table, so that
18619         we no longer need to include hash.h here.
18620
18621 2005-05-18  Jim Meyering  <jim@meyering.net>
18622
18623         * modules/dirfd (License): Change to LGPL.  Most of the code
18624         is already in the public domain.
18625
18626 2005-05-18  Jim Meyering  <jim@meyering.net>
18627
18628         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
18629         Reported by Yoann Vandoorselaere.
18630
18631 2005-05-17  Jim Meyering  <jim@meyering.net>
18632
18633         * m4/fts.m4: New file, from coreutils.
18634
18635 2005-05-17  Jim Meyering  <jim@meyering.net>
18636
18637         * lib/fts.c, lib/fts_.h: New files, from coreutils.
18638
18639 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18640
18641         Sync from coreutils.
18642         * m4/unlinkdir.m4: New file.
18643
18644 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18645
18646         Sync from coreutils.
18647         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
18648         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
18649         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
18650         White space changes only.
18651         * lib/makepath.c (make_path): Port to hosts where leading "//" is
18652         special.
18653         * lib/yesno.c: Include getline.h, not ctype.h.
18654         (yesno): Don't remove leading white space; POSIX doesn't allow it.
18655         Use getline to remove arbitrary restriction on response length.
18656
18657 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18658
18659         * config/srclist-update: Spell out "Street" in FSF postal
18660         mail address; this is the style the FSF seems to prefer.
18661
18662         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
18663         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
18664         this updates FSF postal mail address.
18665
18666         Sync from coreutils.
18667         * modules/unlinkdir: New file.
18668         * modules/yesno (Depends-on): Add getline.
18669         * MODULES.html.sh (File system functions): Add unlinkdir.
18670
18671 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18672
18673         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
18674         lib/strsep.h:
18675         Change the initial comment to refer to GPL, not LGPL.
18676         gnulib-tool will change it to LGPL as needed.
18677
18678         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
18679         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
18680         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
18681         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
18682         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
18683         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
18684         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
18685         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
18686         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
18687         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
18688         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
18689         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
18690         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
18691         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
18692         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
18693         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
18694         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
18695         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
18696         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
18697         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
18698         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
18699         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
18700         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
18701         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
18702         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
18703         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
18704         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
18705         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
18706         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
18707         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
18708         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
18709         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
18710         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
18711         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
18712         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
18713         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
18714         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
18715         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
18716         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
18717         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
18718         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
18719         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
18720         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
18721         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
18722         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
18723         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
18724         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
18725         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
18726         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
18727         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
18728         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
18729         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
18730         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
18731         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
18732         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
18733         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
18734         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
18735         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
18736         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
18737         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
18738         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
18739         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
18740         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
18741         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
18742         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
18743         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
18744         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
18745         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
18746         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
18747         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
18748         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
18749         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
18750         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
18751         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
18752         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
18753         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
18754         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
18755         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
18756         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
18757         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
18758         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
18759         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
18760         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
18761         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
18762         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
18763         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
18764         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
18765         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
18766         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
18767         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
18768         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
18769         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
18770         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
18771         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
18772         lib/yesno.c, lib/yesno.h:
18773         Update FSF postal mail address.
18774
18775 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18776
18777         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
18778         tests/test-memmem.c, tests/test-stpncpy.c:
18779         Update FSF postal mail address.
18780
18781 2005-05-13  Bruno Haible  <bruno@clisp.org>
18782
18783         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
18784         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
18785         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
18786         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
18787         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
18788         Add support for 64-bit integers in the MSVC compiler.
18789
18790 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18791
18792         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
18793
18794 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
18795
18796         * gnulib-tool (func_import): Sort and uniquify recommended includes.
18797
18798 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18799
18800         * doc/getdate.texi (General date syntax): Don't say that date
18801         date --iso-8601=ns generates acceptable dates; it doesn't yet.
18802         Problem reported by Nic Ferrier.
18803
18804 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18805
18806         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
18807         specified in ai_socktype. Fix invalid ai_protocol
18808         check. ai_protocol is usually set to 0 or depending on
18809         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
18810         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
18811         ai_socktype / ai_protocol in the returned addrinfo structure.
18812
18813 2005-05-10  Simon Josefsson  <jas@extundo.com>
18814
18815         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
18816         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18817
18818 2005-05-10  Karl Berry  <karl@gnu.org>
18819
18820         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
18821         (from http://www.gnu.org/licenses).
18822         * doc/COPYING.LIB: also rename to COPYING.LESSER.
18823         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
18824         fdl.texi suffices.
18825
18826 2005-05-10  Karl Berry  <karl@gnu.org>
18827
18828         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
18829         (COPYING.DOC): remove.
18830
18831         * config/srclist-update: new FSF address.
18832
18833 2005-05-10  Derek Price  <derek@ximbiot.com>
18834
18835         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
18836         possible.
18837
18838 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18839             Bruno Haible  <bruno@clisp.org>
18840
18841         * modules/inet_ntop: New file.
18842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18843         inet_ntop.
18844
18845 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18846             Bruno Haible  <bruno@clisp.org>
18847
18848         * m4/inet_ntop.m4: New file.
18849
18850 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18851             Bruno Haible  <bruno@clisp.org>
18852
18853         * lib/inet_ntop.h: New file.
18854         * lib/inet_ntop.c: New file, from glibc with modifications.
18855
18856 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18857
18858         * modules/time_r (License): Change to LGPL.
18859         * modules/extensions (License): Change to LGPL.  Actually,
18860         the license is more permissive than that, but currently gnulib-tool
18861         doesn't know how to handle more-permissive licenses.
18862
18863         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
18864         Problem reported by Dave Love.
18865
18866 2005-05-08  Jim Meyering  <jim@meyering.net>
18867
18868         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
18869         blank.
18870
18871 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
18872
18873         * modules/argmatch (Depends-on): Add stdbool.
18874         * modules/backupfile (Depends-on): Likewise.
18875         * modules/chdir-long (Depends-on): Likewise.
18876         * modules/closeout (Depends-on): Likewise.
18877         * modules/cycle-check (Depends-on): Likewise.
18878         * modules/dirname (Depends-on): Likewise.
18879         * modules/fnmatch (Depends-on): Likewise.
18880         * modules/fsusage (Depends-on): Likewise.
18881         * modules/fwriteerror (Depends-on): Likewise.
18882         * modules/getcwd (Depends-on): Likewise.
18883         * modules/getloadavg (Depends-on): Likewise.
18884         * modules/hard-locale (Depends-on): Likewise.
18885         * modules/makepath (Depends-on): Likewise.
18886         * modules/mountlist (Depends-on): Likewise.
18887         * modules/nanosleep (Depends-on): Likewise.
18888         * modules/posixtm (Depends-on): Likewise.
18889         * modules/quotearg (Depends-on): Likewise.
18890         * modules/readtokens (Depends-on): Likewise.
18891         * modules/readtokens0 (Depends-on): Likewise.
18892         * modules/readutmp (Depends-on): Likewise.
18893         * modules/save-cwd (Depends-on): Likewise.
18894         * modules/strftime (Depends-on): Likewise.
18895         * modules/userspec (Depends-on): Likewise.
18896         * modules/utimecmp (Depends-on): Likewise.
18897         * modules/xgetcwd (Depends-on): Likewise.
18898         * modules/xnanosleep (Depends-on): Likewise.
18899         * modules/xstrtod (Depends-on): Likewise.
18900         * modules/yesno (Depends-on): Likewise.
18901
18902 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18903
18904         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
18905         needless checks.
18906
18907 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
18908
18909         Merge from coreutils.  Among other things,
18910         add bulletproofing for cases where stdin, stdout, or stderr are closed.
18911         * lib/fd-safer.c: New file.
18912         * lib/fcntl-safer.h, open-safer.c: Remove.
18913         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
18914         * lib/dup-safer.c: Include unistd-safer.h first.
18915         Don't include errno.h.
18916         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
18917         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
18918         * lib/file-type.c: Rely on file-type.h change.
18919         * lib/getloadavg.c: Include unistd-safer.h.
18920         (getloadavg): Use safer open.
18921         * lib/getusershell.c: Include "stdio-safer.h".
18922         (getusershell): Use safer fopen.
18923         * lib/long-options.c (long_options): Use NULL rather than 0.
18924         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
18925         'free'.
18926         * lib/modechange.c: Likewise.
18927         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
18928         (MODE_DONE): New constant.
18929         (struct mode_change): Remove 'next' member.
18930         (make_node_op_equals): New function; like the old one of the
18931         same name, except it allocates an array.
18932         (mode_compile, mode_create_from_ref): Use it.
18933         (mode_compile): Allocate result as an array, not a linked list.
18934         Parse octal string ourself, so that we catch mistakes like "+0".
18935         (mode_adjust): Arg is an array, not a linked list.
18936         * lib/modechange.c: Include stat-macros.h, xalloc.h.
18937         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
18938         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
18939         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
18940         Remove.  This is now stat-macros.h's job.
18941         (talloc): Remove.  All callers replaced by xalloc, so that
18942         our invokers don't have to worry about reporting memory failures.
18943         (make_node_op_equals): Remove.
18944         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
18945         New constants.
18946         (struct mode_change): Moved here from modechange.h.
18947         (mode_append_entry): Remove.
18948         (mode_compile): Remove MASKED_OPS arg, since it encouraged
18949         apps to have incorrect behavior.  Use simpler algorithm for head
18950         and tail.  Don't futz with umask; that's now the job of mode_adjust.
18951         Detect more invalid usages rather than having somewhat-random behavior.
18952         Don't insert an "a=" action, as that leads to incorrect behavior.
18953         (mode_compile, mode_create_from_ref): Return NULL on error instead
18954         of an enum, since now there's only one way to have an error.  All
18955         callers changed.
18956         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
18957         at the correct time.  Simplify calculation of "+u" and its ilk.
18958         Don't mishandle "+X".
18959         (mode_free): Remove "register" and localize decls.
18960         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
18961         (struct mode_change): Move to modechange.c; callers don't
18962         need to see this stuff.
18963         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
18964         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
18965         (mode_change, mode_adjust): Reflect the new signatures noted above.
18966         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
18967         that might redefine system include files.
18968         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
18969         (my_usleep): Use NULL rather than (void *) 0.
18970         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
18971         Use siginterrupt to specify that system calls should be interrupted.
18972         (rpl_nanosleep): Move initialization of suspended closer to call of
18973         my_usleep.
18974         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
18975         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
18976         (desirable_utmp_entry): New function.
18977         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
18978         using x2nrealloc, to simplify logic.
18979         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
18980         size calculation.  Do not assume utmp file is a regular file.
18981         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
18982         (READ_UTMP_CHECK_PIDS): New constant.
18983         * lib/save-cwd.c: Include unistd-safer.h.
18984         (save_cwd): Use fd_safer.
18985         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
18986         [!_LIBC] Include "stat-macros.h" instead.
18987         * lib/unistd-safer.h (fd_safer): New decl.
18988
18989 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
18990
18991         * modules/getloadavg (Depends-on): Add unistd-safer.
18992         * modules/getusershell (Depends-on): Add stdio-safer.
18993         * modules/lstat (Depends-on): Remove xalloc.
18994         * modules/mkstemp (Depends-on): Add stat-macros.
18995         * modules/modechange (Depends-on): Remove xstrtol.
18996         Add stat-macros, xalloc.
18997         * modules/save-cwd (Depends-on): Add unistd-safer.
18998         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
18999         * modules/unistd-safer (Files): Add lib/fd-safer.c
19000         (Makefile.am): Remove lib_SOURCES.
19001
19002         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
19003         Remove fcntl-safer; unistd-safer supersedes it.
19004
19005 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19006
19007         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
19008         AC_HEADER_STAT.
19009         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
19010         (gl_PREREQ_CHOWN): Remove.
19011         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
19012         it.  Don't require AC_HEADER_STAT.
19013         (gl_PREREQ_LSTAT): Remove.
19014         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
19015         Don't require AC_HEADER_STAT.
19016         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
19017         (gl_PREREQ_RMDIR): Remove.
19018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
19019         mention stat-macros.h or AC_HEADER_STAT, since we'll make
19020         the stat-macros module a prerequisite.
19021         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
19022         * m4/filemode.m4 (gl_FILEMODE): Likewise.
19023         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
19024         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
19025         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
19026         variable names.
19027         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
19028         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
19029         variable prefixes.
19030         * m4/fcntl-safer.m4: Remove.
19031         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
19032         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
19033         Invoke gl_PREREQ_FD_SAFER.
19034         (gl_PREREQ_FD_SAFER): New macro.
19035         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
19036         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
19037         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
19038         Remove duplicate call to AC_LIBOBJ(readutmp).
19039         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
19040
19041         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
19042         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
19043
19044 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19045
19046         * MODULES.html.sh (Misc): Add byteswap.
19047
19048 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19049
19050         * modules/getcwd (Depends-on): Add extensions.
19051         * modules/openat (Depends-on): Likewise.
19052
19053 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19054
19055         * modules/byteswap: New file.
19056
19057 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19058
19059         * m4/byteswap.m4: New file.
19060
19061 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19062
19063         * lib/byteswap_.h: New file.
19064
19065 2005-04-25  Karl Berry  <karl@gnu.org>
19066
19067         * m4/gettext.m4: Update from GNU gettext 0.14.4.
19068
19069 2005-04-25  Albert Chin  <china@thewrittenword.com>
19070
19071         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
19072         Toolkit C bug.
19073
19074 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
19075
19076         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
19077         (func_ln_if_changed) Remove forcibly for no error message
19078         in case file does not exist.
19079
19080 2005-04-19  Simon Josefsson  <jas@extundo.com>
19081
19082         * gnulib-tool (Options): Make --symlink mean --symbolic.
19083
19084 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
19085
19086         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
19087
19088 2005-04-16  Simon Josefsson  <jas@extundo.com>
19089
19090         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
19091
19092 2005-04-15  Simon Josefsson  <jas@extundo.com>
19093
19094         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
19095
19096 2005-04-15  Simon Josefsson  <jas@extundo.com>
19097
19098         * gnulib-tool: Rename --symlink to --symbolic.
19099
19100 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
19101
19102         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
19103         symbolic links to files instead of copying/moving.  Add --aux-dir,
19104         specifying directory relative --dir where auxiliary build tools
19105         are placed.
19106
19107 2005-04-14  Bruno Haible  <bruno@clisp.org>
19108
19109         * modules/allocsa (License): Change to LGPL.
19110         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19111
19112 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
19113
19114         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
19115         that "UTC +1 second" continues to work.  Problem reported
19116         by Dmitry V. Levin.
19117         (relunit_snumber): New rule.
19118         (relunit): Use it.
19119
19120 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19121
19122         * lib/getdate.y (universal_time_zone_table): New constant.
19123         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
19124         universal_time_zone_table.
19125         (lookup_zone): Prefer universal_time_zone_table to
19126         local_time_zone_table, so that "GMT" time stamps are allowed in
19127         London during the summer.  Problem reported by Ian Abbott.
19128
19129 2005-04-12  Jim Meyering  <jim@meyering.net>
19130
19131         * lib/human.c (humblock): Set *options even when returning due to
19132         xstrtoumax conversion failure.  Thanks to a used-uninitialized
19133         warning from gcc-4.
19134
19135 2005-04-09  Jim Meyering  <jim@meyering.net>
19136
19137         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
19138         -Wuninitialized: initialize tm0.tm_year.
19139
19140 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19141
19142         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
19143         count, since there's no maximum.  All uses changed.
19144         Add member dsts_seen.
19145         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
19146         not being INT_MAX.
19147         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
19148         Use pc_rels_seen to decide whther a date is absolute.
19149
19150         * lib/getdate.y (number): Don't overwrite year.
19151         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
19152         check.
19153
19154 2005-04-02  Simon Josefsson  <jas@extundo.com>
19155
19156         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
19157         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
19158
19159 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
19160
19161         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
19162         where no absolute path name can be longer than PATH_MAX.
19163
19164 2005-03-27  Jim Meyering  <jim@meyering.net>
19165
19166         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
19167
19168 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19169
19170         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
19171         "one's complement" -> "ones' complement" in comment, as per Knuth.
19172         "value of type" -> "type or expression" in comment.
19173         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
19174
19175 2005-03-26  Jim Meyering  <jim@meyering.net>
19176
19177         Comment nits.
19178         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
19179         Correct typos: s/or/of/.
19180
19181 2005-03-26  Jim Meyering  <jim@meyering.net>
19182
19183         * modules/check-include-files: Move to ../ and rename to...
19184         * check-module: ...this.
19185
19186 2005-03-25  Jim Meyering  <jim@meyering.net>
19187
19188         * modules/xvasprintf (Files): Add xalloc.h.
19189
19190 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19191
19192         * modules/gettext (Files): config/config.rpath ->
19193         build-aux/config.rpath
19194         * modules/iconv (Files): Likewise.
19195         Problem reported by Oskar Liljeblad.
19196
19197 2005-03-23  Jim Meyering  <jim@meyering.net>
19198
19199         * modules/check-include-files: New script to check for
19200         missing dependencies, multiple includes, etc.
19201
19202         * modules/c-strtold (Depends-on): Add xalloc.
19203         * modules/c-strtod (Depends-on): Add xalloc.
19204         * modules/hash (Depends-on): Add xalloc.
19205         (Files): Remove lib/xalloc.h.
19206
19207         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
19208         * modules/userspec (Files): Add lib/inttostr.h.
19209
19210 2005-03-23  Jim Meyering  <jim@meyering.net>
19211
19212         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
19213
19214 2005-03-22  Jim Meyering  <jim@meyering.net>
19215
19216         * modules/stat-macros: New module.
19217         * modules/canonicalize, modules/euidaccess, modules/file-type,
19218         * modules/filemode, modules/lchown, modules/makepath,
19219         * modules/rmdir, modules/stat: Depend on new stat-macros module
19220         rather than listing lib/stat-macros.h manually.
19221         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
19222
19223 2005-03-22  Jim Meyering  <jim@meyering.net>
19224
19225         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
19226
19227 2005-03-22  Bruno Haible  <bruno@clisp.org>
19228
19229         * config/srclist.txt: Replace target directory 'config' with
19230         'build-aux'.
19231         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
19232         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
19233         ../build-aux/.
19234
19235 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19236
19237         * modules/chdir-long (Depends-on): Add mempcpy.
19238
19239         * modules/acl, modules/backupfile, modules/c-strtod,
19240         modules/c-strtold, modules/canon-host, modules/canonicalize,
19241         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
19242         modules/exclude, modules/exitfail, modules/file-type,
19243         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
19244         modules/getdate, modules/getline, modules/getpagesize,
19245         modules/getpass, modules/getugroups, modules/group-member,
19246         modules/hard-locale, modules/hash, modules/human, modules/idcache,
19247         modules/inttostr, modules/long-options, modules/makepath,
19248         modules/md5, modules/memcasecmp, modules/memcoll,
19249         modules/modechange, modules/mountlist, modules/path-concat,
19250         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
19251         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
19252         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
19253         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
19254         modules/strftime, modules/strndup, modules/strverscmp,
19255         modules/timespec, modules/unlocked-io, modules/userspec,
19256         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
19257         modules/yesno:
19258         Remove lib_SOURCES line from Makefile.am section, as this is now
19259         done automatically by the corresponding Autoconf macro.
19260
19261 2005-03-21  Jim Meyering  <jim@meyering.net>
19262
19263         Changes imported from coreutils.
19264
19265         * lib/cycle-check.c: Don't include xalloc.h.
19266
19267         * lib/path-concat.c: Don't include assert.h.
19268         (path_concat): Remove assertion that would have triggered
19269         for ABASE starting with more than one slash.
19270         Reported by Andreas Schwab.
19271
19272         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
19273         properly when ABASE is an absolute file name.
19274         Correct the description of this function.
19275         Include <assert.h>.
19276         Add an assertion and a test driver.
19277         This fixes a bug introduced on 2004-07-02.
19278         Andreas Schwab reported the resulting failure of cp --parents:
19279         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
19280
19281 2005-03-21  Jim Meyering  <jim@meyering.net>
19282
19283         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
19284         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
19285
19286 2005-03-21  Jim Meyering  <jim@meyering.net>
19287         and  Paul Eggert  <eggert@cs.ucla.edu>
19288
19289         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
19290         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
19291         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
19292         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
19293         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
19294         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
19295         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
19296         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
19297         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
19298         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
19299         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
19300         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
19301         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
19302         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
19303         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
19304         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
19305         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
19306         for these modules.
19307
19308 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
19309
19310         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
19311         (which shouldn't happen), generate nothing instead of returning 0
19312         immediately, so that nstrftime (NULL, ...) doesn't return 0.
19313
19314 2005-03-16  Bruno Haible  <bruno@clisp.org>
19315
19316         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
19317         HAVE_LONGLONG_64BIT.
19318
19319 2005-03-16  Bruno Haible  <bruno@clisp.org>
19320
19321         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
19322         HAVE_LONGLONG_64BIT.
19323
19324 2005-03-16  Bruno Haible  <bruno@clisp.org>
19325
19326         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
19327         HAVE_LONGLONG_64BIT.
19328
19329 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19330
19331         * lib/strftime.c (my_strftime): Prepend space to format so that we can
19332         reliably distinguish strftime failure from empty output on POSIX
19333         hosts.
19334
19335 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19336
19337         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
19338         (iconv_string): Don't guess a size-zero buffer, as that might cause
19339         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
19340         result would be 'too large', where 'too large' is (heuristically)
19341         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
19342         overflow concerns.  This will prevent some unwanted malloc failures
19343         when the inputs are very large.
19344
19345 2005-03-15  Karl Berry  <karl@gnu.org>
19346
19347         * config/srclist.txt (config.rpath): from gettext.
19348         * config/config.rpath: update.
19349
19350 2005-03-15  Bruno Haible  <bruno@clisp.org>
19351
19352         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
19353         to 'negate'.
19354
19355         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
19356         variable.
19357
19358         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
19359         results.
19360
19361 2005-03-14  Simon Josefsson  <jas@extundo.com>
19362
19363         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
19364         <fx@gnu.org>.
19365
19366 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
19367
19368         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
19369         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
19370         intprops.h.
19371         * lib/strtol.c: Likewise.
19372
19373 2005-03-14  Jim Meyering  <jim@meyering.net>
19374
19375         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
19376         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
19377         to be nonzero so that we (and caller) can detect the difference
19378         between a valid zero-length expansion and an error return, even
19379         when the underlying strftime fails before writing anything into
19380         that location.
19381
19382 2005-03-14  Bruno Haible  <bruno@clisp.org>
19383
19384         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
19385         Update from GNU gettext 0.14.3.
19386
19387 2005-03-10  Jim Meyering  <jim@meyering.net>
19388
19389         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
19390
19391 2005-03-10  Jim Meyering  <jim@meyering.net>
19392
19393         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
19394         so that this module works on systems without fchdir.
19395
19396 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19397
19398         Factor int-properties macros into a single file, except for
19399         glibc-related files.
19400         * lib/intprops.h: New file.
19401         * lib/getloadavg.c: Include it instead of limits.h.
19402         (INT_STRLEN_BOUND): Remove.
19403         * lib/human.c: Include intprops.h.
19404         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
19405         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
19406         302/1000.
19407         * lib/inttostr.h: Include intprops.h instead of limits.h.
19408         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
19409         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
19410         for consistency with intprops.h.
19411         (time_t_is_integer, twos_complement_arithmetic): Use them.
19412         * lib/sig2str.h: Include <signal.h>, intprops.h.
19413         (INT_STRLEN_BOUND): Remove.
19414         * lib/strftime.c (TYPE_SIGNED): Remove.
19415         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
19416         * lib/strtol.c: Adjust comments to match intprops.h.
19417         * lib/userspec.c: Include intprops.h.
19418         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
19419         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
19420         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
19421         instead of rolling our own expressions.
19422         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
19423
19424         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
19425         instead of int.
19426         (my_strftime): Do not mishandle years close to INT_MAX, by doing
19427         the right thing even if adding 1900 would overflow.  Similarly
19428         for tm_mon + 1 and tm_yday + 1.
19429         Make %Y always equivalent to %C%y, and similarly for %G and %g.
19430         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
19431         (DO_SIGNED_NUMBER): New macro.
19432         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
19433
19434 2005-03-07  Bruno Haible  <bruno@clisp.org>
19435
19436         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
19437
19438 2005-03-07  Bruno Haible  <bruno@clisp.org>
19439
19440         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
19441
19442 2005-03-04  Derek R. Price  <derek@ximbiot.com>
19443
19444         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
19445         (func_import): Only replace files via --import when they have actually
19446         changed.
19447
19448 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19449
19450         * m4/mmap-anon.m4: New file.
19451         * m4/pagealign_alloc.m4: New file.
19452
19453 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19454             Bruno Haible  <bruno@clisp.org>
19455
19456         * modules/pagealign_alloc: New file.
19457         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
19458
19459 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19460             Bruno Haible  <bruno@clisp.org>
19461
19462         * lib/pagealign_alloc.h: New file.
19463         * lib/pagealign_alloc.c: New file.
19464
19465 2005-03-03  Bruno Haible  <bruno@clisp.org>
19466
19467         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
19468         Use an all-permissive copyright notice, recommended by RMS.
19469
19470 2005-03-02  Bruno Haible  <bruno@clisp.org>
19471
19472         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
19473         of AIX, the replacement has to be done only after <string.h> is
19474         included, therefore not in config.h. stpncpy.h does the replacement,
19475         and stpncpy.c uses it.
19476
19477 2005-03-02  Bruno Haible  <bruno@clisp.org>
19478
19479         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
19480         stpncpy.c uses it.
19481
19482 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19483
19484         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
19485         The workaround isn't strictly needed for POSIX conformance, and
19486         it's too much of a pain to configure and maintain.  We'll ask
19487         people to fix their kernels instead.
19488         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
19489         (NANOSLEEP_BUG_WORKAROUND): Remove.
19490         (xnanosleep): Remove the workaround.
19491
19492 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19493
19494         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
19495         Reported by Derek Price.
19496         (Include): Add "timespec.h".
19497
19498         * modules/xnanosleep (Depends-on): Remove gethrxtime.
19499
19500 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19501
19502         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
19503         to detect nanosleep bug.
19504
19505 2005-03-01  Bruno Haible  <bruno@clisp.org>
19506
19507         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
19508
19509 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
19510
19511         * modules/gethrxtime: New file.
19512         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
19513         (Depends-on): Add gethrxtime.
19514         (configure.ac): Add gl_XNANOSLEEP.
19515         (Makefile.am): Remove lib_SOURCES line.
19516
19517 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19518
19519         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
19520         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
19521
19522 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19523
19524         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
19525         * lib/timespec.h (gettime): Return void, since it always
19526         succeeds now.  All uses changed.
19527         * lib/gettime.c (gettime) Likewise.
19528         [HAVE_NANOTIME]: Prefer nanotime.
19529         Assume gettimeofday succeeds, as POSIX requires.
19530         Assime time () succeeds, since other code already does.
19531         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
19532         (timespec_subtract): Remove.
19533         (NANOSLEEP_BUG_WORKAROUND): New constant.
19534         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
19535         things considerably.  Use it only on GNU/Linux hosts, since the
19536         workaround shouldn't be needed elsewhere.
19537
19538 2005-02-24  Bruno Haible  <bruno@clisp.org>
19539
19540         * modules/gettext (Files): Add m4/glibc2.m4.
19541
19542 2005-02-24  Bruno Haible  <bruno@clisp.org>
19543
19544         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
19545         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
19546         * m4/progtest.m4:
19547         Update from GNU gettext 0.14.2.
19548         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
19549
19550 2005-02-24  Bruno Haible  <bruno@clisp.org>
19551
19552         * lib/localcharset.c: Update from GNU gettext 0.14.2.
19553         * lib/config.charset: Update from GNU gettext 0.14.2.
19554
19555 2005-02-24  Bruno Haible  <bruno@clisp.org>
19556
19557         * lib/gettext.h: Update from GNU gettext 0.14.2.
19558
19559 2005-02-23  Simon Josefsson  <jas@extundo.com>
19560
19561         * m4/iconvme.m4: New file.
19562
19563 2005-02-23  Jim Meyering  <jim@meyering.net>
19564
19565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
19566         change.
19567         Thanks to Bruno Haible for catching it.
19568
19569 2005-02-22  Simon Josefsson  <jas@extundo.com>
19570
19571         * modules/iconvme: New file.
19572
19573         * MODULES.html.sh: Add iconvme.
19574
19575 2005-02-22  Simon Josefsson  <jas@extundo.com>
19576
19577         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
19578
19579 2005-02-22  Simon Josefsson  <jas@extundo.com>
19580
19581         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
19582
19583 2005-02-22  Jim Meyering  <jim@meyering.net>
19584
19585         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
19586         s/ifndef/ifdef/.
19587
19588 2005-02-20  Neil Conway  <neilc@samurai.com>
19589
19590         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
19591         returned by OSX/Darwin if the specified buffer is not large
19592         enough for the hostname.
19593
19594 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19595
19596         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
19597         pass it to _help, otherwise the latter coredumps trying to
19598         dereference state.root_argp.
19599
19600 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19601
19602         * modules/chdir-long (Depends-on): Add memrchr.
19603         * modules/memrchr (Files): Add lib/memrchr.h.
19604         (Include): "memrchr.h".
19605
19606 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19607
19608         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
19609
19610 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19611
19612         * lib/memrchr.h: New file.
19613         * lib/chdir-long.c: Include it.
19614         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
19615         Don't bother including stddef.h.
19616
19617 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
19618
19619         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
19620         inclusion.
19621         Include <sys/types.h>, for dev_t.
19622         (ME_DUMMY, ME_REMOTE): Move from here....
19623         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
19624         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
19625         Dmitry V. Levin.
19626         Include mountlist.h first, to test the interface.
19627
19628 2005-01-29  Bruno Haible  <bruno@clisp.org>
19629
19630         * lib/progname.c (program_name): Initialize.
19631         Needed when linking statically on MacOS X.
19632
19633 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19634
19635         Sync from coreutils.
19636         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
19637         (Depends-on): Add c-strtod.
19638         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
19639
19640 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19641
19642         Sync from coreutils.
19643         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
19644
19645         Remove files that are specific to coreutils.
19646         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
19647
19648 2005-01-28  Bruno Haible  <bruno@clisp.org>
19649
19650         * modules/javacomp: New file.
19651         * MODULES.html.sh (Java): Add javacomp.
19652
19653 2005-01-28  Bruno Haible  <bruno@clisp.org>
19654
19655         * m4/javacomp.m4: New file, from GNU gettext.
19656
19657 2005-01-28  Bruno Haible  <bruno@clisp.org>
19658
19659         * lib/javacomp.sh.in: New file, from GNU gettext.
19660         * lib/javacomp.h: New file, from GNU gettext.
19661         * lib/javacomp.c: New file, from GNU gettext.
19662
19663 2005-01-26  Simon Josefsson  <jas@extundo.com>
19664
19665         * lib/gai_strerror.c: Use GPL in header.
19666
19667 2005-01-26  Bruno Haible  <bruno@clisp.org>
19668
19669         * modules/javaexec: New file.
19670         * MODULES.html.sh (Java): Add javaexec.
19671
19672 2005-01-26  Bruno Haible  <bruno@clisp.org>
19673
19674         * m4/javaexec.m4: New file, from GNU gettext.
19675
19676 2005-01-26  Bruno Haible  <bruno@clisp.org>
19677
19678         * lib/javaexec.sh.in: New file, from GNU gettext.
19679         * lib/javaexec.h: New file, from GNU gettext.
19680         * lib/javaexec.c: New file, from GNU gettext.
19681
19682 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19683
19684         * modules/lchown (Depends-on): Remove lchown.h
19685
19686 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19687
19688         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
19689         must be defined if the header file was not found, in order
19690         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
19691
19692 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19693
19694         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
19695         initializers for struct pentry_state.
19696         (__argp_error): Check return value of __asprintf
19697         (__argp_failure): Translate error message
19698
19699         * lib/argp-parse.c: Removed braces around the expansion of N_()
19700
19701 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19702
19703         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
19704         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
19705         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
19706         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
19707         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
19708         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
19709         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
19710         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
19711         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
19712         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
19713         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
19714         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
19715         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
19716         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
19717         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
19718         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
19719         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
19720         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
19721         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
19722         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
19723         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
19724         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
19725         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
19726         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
19727         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
19728         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
19729         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
19730         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
19731         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
19732         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
19733         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
19734         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
19735         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
19736         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
19737         xstrtol.m4, xstrtoumax.m4, yesno.m4:
19738         Use an all-permissive copyright notice, recommended by RMS.
19739
19740 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19741
19742         * modules/chdir-long (Depends-on): Remove mempcpy.
19743
19744 2005-01-21  Jim Meyering  <jim@meyering.net>
19745
19746         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
19747         same value as for Solaris 9.
19748
19749         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
19750         component length.  This included changing the parameter to be
19751         of type `char *' rather than `char const *'.
19752         * lib/chdir-long.h (chdir_long): Update prototype.
19753
19754         * lib/openat.c (fdopendir, fstatat): New functions.
19755         * lib/openat.h: Include headers required for use of DIR and struct
19756         stat.
19757         [AT_SYMLINK_NOFOLLOW]: Define.
19758         (fdopendir, fstatat): Add prototypes.
19759
19760 2005-01-21  Bruno Haible  <bruno@clisp.org>
19761
19762         * modules/classpath: New file.
19763         * MODULES.html.sh (Java): Add classpath.
19764
19765 2005-01-21  Bruno Haible  <bruno@clisp.org>
19766
19767         * lib/classpath.h: New file, from GNU gettext.
19768         * lib/classpath.c: New file, from GNU gettext.
19769
19770 2005-01-20  Simon Josefsson  <jas@extundo.com>
19771
19772         * modules/version-etc-fsf: New file.
19773
19774 2005-01-20  Simon Josefsson  <jas@extundo.com>
19775
19776         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
19777         * lib/version-etc.c: Remove version_etc_copyright.
19778         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
19779         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
19780
19781 2005-01-20  Simon Josefsson  <jas@extundo.com>
19782
19783         * lib/base64.h (isbase64): Add.
19784
19785         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
19786         using a unsigned prototype, don't inline.
19787         (base64_decode): Use it.
19788
19789 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19790
19791         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
19792         it.
19793
19794 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19795
19796         * lib/save-cwd.c (save_cwd): Remove code to support the case
19797         where fchdir is missing or flaky.
19798
19799 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19800
19801         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
19802
19803 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19804
19805         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
19806         AC_LIBSOURCES now does this.
19807         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
19808         with new ullong_max module.
19809
19810 2005-01-19  Bruno Haible  <bruno@clisp.org>
19811
19812         * modules/sh-quote: New file.
19813         * MODULES.html.sh (Executing programs): Add sh-quote.
19814
19815 2005-01-19  Bruno Haible  <bruno@clisp.org>
19816
19817         * lib/sh-quote.h: New file, from GNU gettext.
19818         * lib/sh-quote.c: New file, from GNU gettext.
19819
19820 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19821
19822         Merge from coreutils.
19823         * m4/ullong_max.m4: New file.
19824         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
19825         (gl_MACROS): Assume localeconv exists.
19826
19827 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19828
19829         Merge changes from coreutils, as described below in several
19830         changelogs dated today.
19831
19832         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
19833         (O_DIRECTORY): Remove; not needed here, since "." must be
19834         a directory.  All uses removed.
19835         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
19836         universal on Suns, and we also need to test for IRIX.
19837         Revamp code to use 'if' rather than '#if'.
19838         Avoid unnecessary comparison of cwd->desc to 0.
19839
19840         * lib/utimens.c (futimens): Robustify the previous patch, by checking
19841         for known valid error numbers rather than observed invalid ones.
19842
19843 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19844
19845         * modules/ullong_max: New file.
19846
19847         * modules/chdir-long, modules/openat: New files.
19848         * modules/save-cwd (Depends-on): Depend on chdir-long.
19849         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
19850
19851 2005-01-18  Jim Meyering  <jim@meyering.net>
19852
19853         Merge from coreutils.
19854         * m4/chdir-long.m4, m4/openat.m4: New files.
19855         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
19856         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
19857         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
19858         is sane and DOES follow symlinks.  Besides, testing 20 different
19859         systems found no broken chown implementations.
19860         Prompted by a change in rsync's copy of this macro.
19861         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
19862
19863         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
19864
19865         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
19866         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
19867         NULL-means-set-to-current-time semantics.
19868         Remove temporary file immediately, rather than waiting
19869         for configure's at-exit trap code to do it.
19870
19871 2005-01-18  Jim Meyering  <jim@meyering.net>
19872
19873         * lib/version-etc.c (version_etc_copyright): Update copyright date.
19874
19875         * lib/utimens.c (futimens): Account for the fact that futimes
19876         can also fail with errno == ENOSYS or errno == ENOENT.
19877         Patch from Dmitry V. Levin.
19878
19879         Change the name of the robust chdir function from chdir to chdir_long.
19880         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
19881         (restore_cwd): Use chdir_long, not chdir.
19882         * lib/chdir-long.c: Renamed from chdir.c.
19883         * lib/chdir-long.h: Renamed from chdir.h.
19884         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
19885         Hurd.
19886
19887 2005-01-18  Bruno Haible  <bruno@clisp.org>
19888
19889         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
19890         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
19891         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
19892         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
19893         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
19894         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
19895         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
19896         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
19897         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
19898         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
19899         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
19900         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
19901         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
19902         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
19903         Use an all-permissive copyright notice, recommended by RMS.
19904
19905 2005-01-18  Bob Proulx  <bob@proulx.com>
19906
19907         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
19908         simplify offsetof() macro construct to avoid compile failure with
19909         native HP-UX 11.0 ANSI C compiler.
19910
19911 2005-01-17  Bruno Haible  <bruno@clisp.org>
19912
19913         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
19914         redundant because stpncpy.m4 takes care of it.
19915
19916 2005-01-17  Bruno Haible  <bruno@clisp.org>
19917
19918         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
19919
19920 2005-01-17  Bruno Haible  <bruno@clisp.org>
19921
19922         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
19923         used.
19924
19925 2005-01-17  Bruno Haible  <bruno@clisp.org>
19926
19927         * lib/fwriteerror.h (fwriteerror): Change specification to include
19928         fclose.
19929         * lib/fwriteerror.c: Include <stdbool.h>.
19930         (fwriteerror): At the end, close the file stream. Record whether
19931         stdout was already closed.
19932
19933 2005-01-17  Bruno Haible  <bruno@clisp.org>
19934
19935         * lib/execute.c (environ): Declare if needed.
19936         * lib/pipe.c (environ): Likewise.
19937         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
19938
19939 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19940
19941         * modules/argp: Depend on vsnprintf
19942
19943 2005-01-10  Jim Meyering  <jim@meyering.net>
19944
19945         * modules/closeout (Depends-on): Add atexit.
19946
19947 2005-01-06  Bruno Haible  <bruno@clisp.org>
19948
19949         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
19950
19951 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19952
19953         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
19954         definitions to be after all include files, to avoid collisions.
19955         Problem reported by Bob Proulx.
19956
19957 2005-01-04  Jim Meyering  <jim@meyering.net>
19958
19959         Changes imported from coreutils.
19960         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
19961         as the mkstemp template, use a temporary directory and an
19962         8.3-friendly template to avoid trouble on systems like DJGPP.
19963         Reported by Juan M. Guerrero via Stepan Kasal.
19964         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
19965         close. Remove the temporary directory right away, rather than waiting
19966         for configure's at-exit trap code to do it.
19967         Suggestion from Stepan Kasal.
19968
19969 2005-01-01  Simon Josefsson  <jas@extundo.com>
19970
19971         * gnulib-tool: Print #include directives when --import'ing.
19972
19973 2004-12-28  Simon Josefsson  <jas@extundo.com>
19974
19975         * tests/test-base64.c: Include required header files.  Remove
19976         unused variables.
19977
19978 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19979
19980         * modules/error (Depends-on): Remove gettext.
19981
19982 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19983
19984         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
19985         not needed.  This removes a dependency on the gettext module.
19986         [defined _LIBC]: Do not include <libintl.h>; not needed.
19987
19988 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
19989
19990         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
19991         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
19992
19993 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
19994
19995         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
19996         HAVE_DECL_STRTOLD.
19997
19998 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19999
20000         * modules/getdate (Depends-on): Remove alloca-opt.
20001
20002 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20003
20004         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
20005
20006 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20007
20008         * lib/argp-parse.c: Include <stddef.h>.
20009         (alignof, alignto): New macros.
20010         (parser_init): Don't assume that void * is aligned sufficiently
20011         for struct option.
20012
20013         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
20014         need to extend the stack.
20015         (YYINITDEPTH): New macro, so that the initial stack isn't overly
20016         large.
20017
20018 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20019
20020         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
20021
20022 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20023
20024         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
20025         (2004-10-24) change.  Apparently this was a false alarm.
20026
20027         * modules/getdate: Depend on alloca-opt, not alloca.
20028
20029 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20030
20031         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
20032         Remove now-obsolete comment about AIX.
20033         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
20034         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
20035         (YYMAXDEPTH): New macro.
20036
20037 2004-12-18  Simon Josefsson  <jas@extundo.com>
20038
20039         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
20040
20041 2004-12-18  Bruno Haible  <bruno@clisp.org>
20042
20043         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
20044
20045 2004-12-18  Bruno Haible  <bruno@clisp.org>
20046
20047         * lib/fatal-signal.c (fatal_signals): Make non-const.
20048         (init_fatal_signals): New function.
20049         (uninstall_handlers, install_handlers): Ignore signals that were set to
20050         SIG_IGN.
20051         (at_fatal_signal): Call init_fatal_signals.
20052         (init_fatal_signal_set): Likewise. Ignore signals that were set to
20053         SIG_IGN.
20054         Reported by Paul Eggert.
20055
20056 2004-12-18  Bruno Haible  <bruno@clisp.org>
20057
20058         * doc/alloca.texi: New file.
20059         * doc/alloca-opt.texi: New file.
20060
20061 2004-12-17  Jim Meyering  <jim@meyering.net>
20062
20063         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
20064         Otherwise, install-sh could exit with improper exit status when
20065         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
20066
20067 2004-12-16  Simon Josefsson  <jas@extundo.com>
20068
20069         * tests/test-base64.c: Add license.
20070
20071 2004-12-15  Stepan Kasal  <address@hidden>
20072
20073         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
20074
20075 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20076
20077         * modules/getcwd (Files): Add m4/d-ino.m4.
20078         Suggested by Mark D. Baushke.
20079
20080 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
20081
20082         * lib/getdate.y (textint): New member "negative".
20083         (time_zone_hhmm): New function.
20084         Expect 14 shift-reduce conflicts, not 13.
20085         (o_colon_minutes): New rule.
20086         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
20087         (yylex): Set the "negative" member of signed numbers.
20088
20089 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
20090
20091         * doc/getdate.texi (Time of day items, Time zone items):
20092         Describe new formats +00:00, UTC+00:00.
20093
20094 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20095
20096         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
20097         spurious "-l"s.  Problem reported by Stepan Kasal.
20098
20099 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
20100
20101         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
20102         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
20103
20104 2004-12-04  Simon Josefsson  <jas@extundo.com>
20105
20106         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
20107         Vandoorselaere <yoann@prelude-ids.org>.
20108
20109 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20110
20111         Changes imported from coreutils.
20112         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
20113         exist.
20114         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
20115
20116 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20117
20118         Changes imported from coreutils.
20119         * lib/hard-locale.c: Assume <locale.h> exists.
20120         Include "strdup.h".
20121         (GLIBC_VERSION): New macro.
20122         (hard_locale): Assume setlocale exists.
20123         Rewrite to avoid #ifdef.
20124         Use strdup rather than malloc + strcpy.
20125         * lib/human.c: Assume <locale.h> exists.
20126         (human_readable): Assume localeconv exists.
20127
20128 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20129
20130         * modules/hard-locale (Depends-on): Add strdup.
20131
20132 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20133
20134         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
20135         convert T2, not T.  (Imported from libc.)
20136
20137 2004-11-30  Simon Josefsson  <jas@extundo.com>
20138
20139         * modules/restrict (License): Change to LGPL.
20140
20141 2004-11-30  Simon Josefsson  <jas@extundo.com>
20142
20143         * m4/restrict.m4: Add copyright and copying conditions.
20144
20145 2004-11-30  Simon Josefsson  <jas@extundo.com>
20146
20147         * m4/base64.m4: New file.
20148
20149 2004-11-30  Simon Josefsson  <jas@extundo.com>
20150
20151         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
20152         base64.
20153
20154         * tests/test-base64.c: New file.
20155
20156         * modules/base64: New file.
20157
20158 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
20159
20160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
20161         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
20162
20163         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
20164
20165 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
20166
20167         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
20168         (__getcwd.c): Don't restore errno; glibc doesn't.
20169         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
20170         first, falling back to our code only if its results look suspicious.
20171         Ensure that the resulting buffer is only as large as necessary.
20172
20173         * lib/readutmp.c: Include readutmp.h first.
20174         Include <errno.h>, since readutmp.h no longer does that.
20175         * lib/readutmp.h: Don't include <errno.h>,
20176         <sys/param.h>, <time.h>; not needed to establish interface.
20177         (errno): Remove decl.
20178         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
20179         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
20180         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
20181
20182 2004-11-28  Simon Josefsson  <jas@extundo.com>
20183
20184         * lib/base64.h, base64.c: New file.
20185
20186 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20187
20188         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
20189
20190 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20191
20192         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
20193         (Depends-on): Remove pathmax, same.  Add mempcpy.
20194         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
20195         (Makefile.am): Append getcwd.h to lib_SOURCES.
20196         (Include): Add getcwd.h.
20197         (Maintainer): Change from Jim Meyering to "all, glibc",
20198         since getdate now uses intended-for-glibc code.
20199         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
20200         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
20201
20202 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20203
20204         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
20205         HP's ANSI C compiler.
20206         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
20207         Declaring int functions causes warnings on some modern systems and
20208         shouldn't be needed to compile on ancient ones.
20209         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
20210         defined.
20211
20212         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
20213         with the following changes.
20214         (__set_errno): Parenthesize properly.
20215         Include <stdbool.h>.
20216         (MIN, MAX, MATCHING_INO): New macros.
20217         (__getcwd): Define with prototype, not K&R form.
20218         Use heuristics to allocate default buffer on stack if possible.
20219         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
20220         behavior, and to avoid the PATH_MAX limit when computing
20221         ../../../../...
20222         Use MATCHING_INO to compare inode number to file.
20223         Check for arithmetic overflow in size calculations.
20224         Fix bug in reallocation of dot array that caused getcwd to fail
20225         on directories nested deeper than 75.
20226         Be more careful about saving errno on error.
20227         Do not use realloc; use only free+malloc, as this is a bit
20228         more flexible and avoids a needless copy operation.
20229         Do not inspect st_dev and st_ino for symbolic links; POSIX
20230         doesn't specify the latter.
20231         Check for closedir errors.
20232         Avoid needless casts.
20233         Use "#ifdef weak_alias" around weak_alias, to be like other
20234         glibc code.
20235         The following changes to getcwd.c have effect only when used in
20236         gnulib; they have no effect inside glibc proper.
20237         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
20238         as alloca isn't used.
20239         (alloca, __alloca): Likewise.
20240         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
20241         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20242         unconditionally, as gnulib assumes C89 or better.
20243         Do not include <sys/param.h>.
20244         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
20245         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
20246         better.
20247         (NULL) [!defined NULL]: Remove; we assume C89 or better.
20248         Include <dirent.h> in a way that is compatible with modern Autoconf.
20249         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
20250         New macros, if not already defined.
20251         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
20252         Use "_LIBC", not "defined _LIBC", for consistency.
20253         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
20254         a mempcpy module.
20255         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
20256         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
20257         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
20258         credit only to Jim Meyering and adjust the copyright dates.
20259         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
20260         <stdlib.h>, <unistd.h>, "pathmax.h".
20261         Instead, include "xgetcwd.h" (first) and "getcwd.h".
20262         (INITIAL_BUFFER_SIZE): Remove.
20263         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
20264
20265 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20266
20267         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
20268         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
20269         Use the _ONCE methods, for efficiency.
20270         Check for fcntl.h.  In test program, include <errno.h>
20271         and <fcntl.h> if available.  Remove old K&R cruft from
20272         test program.  Check for common errors in GNU/Linux,
20273         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
20274         don't do AC_LIBOBJ, as that's getcwd.m4's job.
20275         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
20276         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
20277         name accordingly.
20278         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
20279         accommodate new getcwd.c.
20280         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
20281         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
20282         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
20283         that's all we need now.
20284
20285 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20286
20287         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
20288         argp-parse.c depends on getopt internals, that means we should
20289         always use our getopt, to be on the safe side.
20290         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
20291         order not to spoil the result of an eventual previous invocation
20292         of gl_GETOPT_SUBSTITUTE.
20293
20294 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20295
20296         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
20297         redefinition warnings. To avoid them, include the defines
20298         in `#if !defined __need_getopt ... #endif'. The only place
20299         where __getopt_argv_const is used is in definitions
20300         of getopt_long and getopt_long_only below, which are as well
20301         protected by `#ifndef __need_getopt'.
20302         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
20303         __need_getopt after including <stdio.h> and <unistd.h> These
20304         headers might have defined it.
20305
20306 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20307
20308         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
20309
20310 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20311
20312         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
20313         (futimens): New function, which uses futimes if available.
20314         (futimens, utimens): Support timespec==NULL, with same semantics
20315         as utime and utimens.
20316         * lib/utimens.h (futimens): New decl.
20317
20318 2004-11-23  Jim Meyering  <jim@meyering.net>
20319
20320         * lib/getopt_.h: Remove trailing blanks.
20321
20322 2004-11-23  Jim Meyering  <jim@meyering.net>
20323
20324         * lib/__fpending.c: Add comment.
20325
20326 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20327
20328         * modules/canonicalize (Depends-on): Add xreadlink.
20329         Problem reported by James Youngman.
20330
20331 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20332
20333         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
20334         New macros.
20335         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
20336         optopt): Use them instead of invoking ## directly; otherwise, the
20337         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
20338
20339 2004-11-19  Bruno Haible  <bruno@clisp.org>
20340
20341         * lib/strtok_r.c: Move comments from here...
20342         * lib/strtok_r.h: ... to here.
20343
20344 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20345
20346         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
20347         implementations that mishandle size_t overflow.
20348
20349 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20350
20351         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
20352         might fail.  Problem reported by Yoann Vandoorselaere.
20353         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
20354         implementations that mishandle size_t overflow.
20355
20356 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20357
20358         * modules/canon-host (Depends-on): Add strdup.
20359
20360 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20361
20362         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
20363
20364 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20365
20366         * lib/canon-host.c: Include "strdup.h".
20367         (canon_host): Use getaddrinfo if available, so that IPv6 works.
20368         Use strdup instead of malloc/strcpy to duplicate strings.
20369
20370         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
20371         (human_space_before_unit): New constant.
20372         * lib/human.c (human_readable): Support it.
20373
20374         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
20375         (xgetcwd): Set errno correctly when failing.
20376         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
20377         the failure is actually due to a PATH_MAX problem.
20378
20379         Further getopt changes to make it more likely that glibc will
20380         buy the changes back.
20381         * lib/getopt.c (POSIXLY_CORRECT): New constant.
20382         (getopt): Use it, so to preserve glibc semantic
20383         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
20384         when compiling for libc.
20385         * lib/getopt_.h (__getopt_argv_const): Bring it back.
20386         (getopt_long, getopt_long_only): Use it.
20387
20388         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20389         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
20390         (getopt): Argv is now char * const *, as per standard.
20391         (_getopt_internal_r, _getopt_internal): Argv is now char **,
20392         not char *__getopt_argv_const *.
20393         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20394         _getopt_long_only_r): Likewise.
20395         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
20396         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20397         _getopt_long_r, _getopt_long_only_r): Likewise.
20398         * lib/getopt_.h (__getopt_argv_const): Remove.
20399         (getopt): Argv is now char * const *, as per standard.
20400
20401         * lib/getdate.y (tORDINAL): New token.
20402         (day, relunit): Allow it for relative times.
20403         (relative_time_table): Use tORDINAL for ordinals.
20404
20405 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20406
20407         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
20408         Document that "second" isn't allowed as an ordinal number.
20409
20410 2004-11-16  Jim Meyering  <jim@meyering.net>
20411
20412         * modules/closeout (Depends-on): Add fpending.
20413
20414 2004-11-15  Jim Meyering  <jim@meyering.net>
20415
20416         * lib/closeout.c: Include "__fpending.h" once again.
20417         Include <stdbool.h>.
20418         (close_stdout): Don't fail just because stdout was closed initially,
20419         since some programs don't write to stdout in the normal course of
20420         operation (other than --version and --help), and we don't want this
20421         function to make e.g. `touch file >&-' fail.
20422         But do fail if it was closed and someone has tried to write to it.
20423         E.g., `printf foo >&-' must fail.
20424
20425 2004-11-13  Jim Meyering  <jim@meyering.net>
20426
20427         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
20428
20429 2004-11-12  Simon Josefsson  <jas@extundo.com>
20430
20431         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
20432         small doc fix is still pending.
20433
20434 2004-11-11  Simon Josefsson  <jas@extundo.com>
20435
20436         * modules/strtok_r: New file.
20437
20438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20439         strtok_r.
20440
20441 2004-11-11  Simon Josefsson  <jas@extundo.com>
20442
20443         * m4/strtok_r.m4: New file.
20444
20445         * m4/getopt.m4: Replace opterr.
20446
20447 2004-11-11  Simon Josefsson  <jas@extundo.com>
20448
20449         * lib/strtok_r.h, strtok_r.c: New file.
20450
20451 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20452
20453         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
20454         of replacing opterr, getopt, etc.  This should handle the
20455         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
20456
20457 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20458
20459         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
20460         we can stop lying to compilers about the constness of argv when we
20461         are compiled outside glibc.
20462         (getopt, getopt_long, getopt_long_only): Use it.
20463         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20464         _getopt_internal, getopt): Likewise.
20465         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20466         _getopt_long_only_r): Likewise.
20467         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20468         _getopt_long_r, _getopt_long_only_r): Likewise.
20469
20470         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
20471         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
20472         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
20473         the other external symbols.
20474         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
20475         declaration, since the above renaming now works around collisions.
20476
20477 2004-11-11  Jim Meyering  <jim@meyering.net>
20478
20479         * lib/linebreak.c: Remove trailing blanks.
20480         * lib/alloca_.h: Likewise.
20481         * lib/acosl.c: Likewise.
20482         * lib/euidaccess.c: Likewise.
20483         * lib/allocsa.h: Likewise.
20484
20485 2004-11-10  Simon Josefsson  <jas@extundo.com>
20486
20487         * m4/getaddrinfo.m4: New file.
20488
20489 2004-11-10  Simon Josefsson  <jas@extundo.com>
20490
20491         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
20492
20493 2004-11-10  Simon Josefsson  <jas@extundo.com>
20494
20495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20496         getaddrinfo.
20497
20498         * modules/getaddrinfo: New file.
20499
20500 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20501
20502         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
20503
20504 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20505
20506         * lib/mktime.c (SHR): New macro, which is a portable
20507         substitute for >> that should work even on Crays.
20508         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
20509         Problem reported by Mark D. Baushke in
20510         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
20511         * lib/getdate.y (SHR): Likewise.
20512         (tm_diff): Use it.
20513         * lib/strftime.c (SHR): Likewise.
20514         (tm_diff): Use it.
20515         * lib/quotearg.c (struct quoting_options): Use unsigned int for
20516         quote_these_too, so that right shifts are well defined.  All uses
20517         changed.
20518
20519 2004-11-10  Jim Meyering  <jim@meyering.net>
20520
20521         Ensure that no close failure goes unreported.
20522         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
20523         return early when it seems there's nothing to flush.
20524         Don't include __fpending.h.
20525
20526 2004-11-10  Jim Meyering  <jim@meyering.net>
20527
20528         * modules/closeout (Depends-on): Remove fpending.
20529
20530 2004-11-10  Jim Meyering  <jim@meyering.net>
20531
20532         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
20533
20534 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20535
20536         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
20537         gl_FUNC_STRFTIME.
20538         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
20539         and AC_REQUIRE when possible, to avoid duplicate checks.
20540         Check for <wchar.h>.
20541
20542 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20543
20544         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
20545
20546 2004-11-09  Bruno Haible  <bruno@clisp.org>
20547
20548         * m4/sockpfaf.m4: New file.
20549
20550 2004-11-05  Bruno Haible  <bruno@clisp.org>
20551
20552         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
20553         Reported by Mark D. Baushke <mdb@cvshome.org>.
20554
20555 2004-11-04  Bruno Haible  <bruno@clisp.org>
20556
20557         2004-09-11  Bruno Haible  <bruno@clisp.org>
20558                 * allocsa.valgrind: New file.
20559         2004-02-06  Bruno Haible  <bruno@clisp.org>
20560                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
20561                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
20562                 Reported by Christopher Seip <chris.seip@hp.com>.
20563
20564 2004-11-04  Bruno Haible  <bruno@clisp.org>
20565
20566         * modules/allocsa (Files): Add lib/allocsa.valgrind.
20567         (Makefile.am): Distribute it.
20568
20569 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20570
20571         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
20572         with errno == ERANGE if the buffer is too small.
20573         Problem reported by Mark D. Baushke.
20574
20575 2004-11-03  Albert Chin  <china@thewrittenword.com>
20576             Paul Eggert  <eggert@cs.ucla.edu>
20577
20578         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
20579         equivalent, substitute $ac_type for equivalent type rather than
20580         blindly using uint32_t *always* which won't work if uint32_t is not
20581         available.  Define _UINT32_T to work around typedef of uint32_t if
20582         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
20583         2.5.1.
20584
20585 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20586
20587         * m4/jm-macros.m4: Sync from coreutils.
20588         (gl_MACROS): Check for mbrlen, for pathchk.
20589         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
20590
20591 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20592
20593         * lib/xreadlink.c (MAXSIZE): New macro.
20594         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
20595         size does not exceed MAXSIZE.  Avoid cast.
20596         As suggested by Mark D. Baushke in
20597         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
20598         if readlink fails with buffer size just under MAXSIZE, try again
20599         with MAXSIZE.
20600
20601 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20602
20603         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
20604
20605 2004-11-02  Derek R. Price  <derek@ximbiot.com>
20606         and  Paul Eggert  <eggert@cs.ucla.edu>
20607
20608         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
20609         (get_date): Overparenthesize to avoid GCC warning.
20610
20611 2004-11-02  Bruno Haible  <bruno@clisp.org>
20612
20613         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
20614         returns void.
20615
20616 2004-11-02  Bruno Haible  <bruno@clisp.org>
20617
20618         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
20619         function returns void.
20620
20621 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20622
20623         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
20624         fflush_unlocked, flockfile, funlockfile, funlockfile,
20625         fputs_unlocked, putc_unlocked.
20626
20627 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20628
20629         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
20630         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
20631         already declared.
20632
20633 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20634
20635         * modules/getdate (Files): Add doc/getdate.texi.
20636         (Depends-on): Add setenv, xalloc.
20637
20638 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20639
20640         * lib/getdate.y: Add support for TZ="foo" within a date string.
20641         Fix some bugs near time_t boundaries.  Reject dates with
20642         out-of-range components, e.g., "Sept 31".
20643         Include <stdlib.h>, "setenv.h", "xalloc.h".
20644         (ISDIGIT_LOCALE): Remove; unused.
20645         Note that the TZ and time functions used here are not reentrant.
20646         (mktime_ok, get_tz): New functions.
20647         (TZBUFSIZE): New constant.
20648         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
20649         This requires that we sometimes generate our own TZ="XXX..." setting.
20650
20651 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20652
20653         * doc/getdate.texi: New file, from coreutils with modifications for
20654         the new TZ parsing.
20655
20656 2004-10-27  Derek R. Price  <derek@ximbiot.com>
20657
20658         * lib/mktime.c (not_equal_tm): Remove redundant check.
20659
20660 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20661
20662         * modules/regex (lib_SOURCES): Add regex.c.
20663         Reported by James Youngman in
20664         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
20665
20666 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20667
20668         * lib/getdate.y: Use Bison 1.875 features, and some minor
20669         code cleanups.  This change does not affect semantics.
20670         Don't include <stdlib.h>; no longer needed.
20671         Don't include unlocked-io.h; only the "#if TEST" code uses
20672         stdio, and performance isn't crucial there.
20673         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
20674         Bison 1.875 features as described below.
20675         All uses of "PC." replaced by "pc->".
20676         (YYSTYPE): Add a forward declaration.
20677         (yylex, yyerror): Use full prototypes in forward decls.
20678         Use "%pure-parser" rather than obsolescent "%pure_parser".
20679         Use %parse-param and %lex-param instead of obsolescent
20680         YYPARSE_PARAM and YYLEX_PARAM.
20681         (meridian_table, month_and_day_table, time_units_table,
20682         relative_time_table, time_zone_table, military_table,
20683         lookup_zone, lookup_word, get_date):
20684         Use NULL instead of 0 where appropriate.
20685         (to_hour): Avoid abort (), to avoid a dependency on
20686         stdlib.h.
20687         (yyerror, yylex): Now accepts parser_control * arg.
20688         (main) [TEST]: Use '\0' rather than 0 for char.
20689
20690 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
20691
20692         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
20693
20694 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
20695
20696         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
20697         It's now the caller's responsibility to handle the case where
20698         !HAVE_GETPAGESIZE && !defined getpagesize.
20699
20700         * lib/mktime.c (leapyear): Arg is long int, not int.
20701
20702 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20703
20704         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
20705
20706 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
20707
20708         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
20709         missing.  Problem reported by James Youngman.
20710
20711 2004-10-16  Simon Josefsson  <jas@extundo.com>
20712
20713         * gnulib-tool: Fix comments.  Fix parse problem.
20714         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
20715
20716 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20717
20718         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
20719         implementation of getopt_long.  Problem reported by Alexander Taler in:
20720         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
20721
20722 2004-10-15  Bruno Haible  <bruno@clisp.org>
20723
20724         * gnulib-tool: Untabify. Initialize supplied_libname.
20725         (func_usage): More homogenous output.
20726         (func_modules_transitive_closure, func_modules_to_filelist,
20727         func_emit_lib_Makefile_am): New functions.
20728         (func_import): New function, extracted from big case statement. Use
20729         func_get_license, func_modules_transitive_closure,
20730         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
20731         opt_lgpl. Don't use test -a, as it's not portable.
20732         (func_create_testdir): Use func_modules_transitive_closure,
20733         func_modules_to_filelist, func_emit_lib_Makefile_am.
20734
20735 2004-10-15  Bruno Haible  <bruno@clisp.org>
20736
20737         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
20738
20739 2004-10-15  Bruno Haible  <bruno@clisp.org>
20740
20741         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
20742         the portions belonging to each module.
20743         Suggested by Derek Robert Price <derek@ximbiot.com>.
20744
20745 2004-10-12  Simon Josefsson  <jas@extundo.com>
20746
20747         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
20748         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
20749         to real functions.
20750
20751 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20752
20753         * modules/vsnprintf: New file.
20754
20755 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20756
20757         * m4/vsnprintf.m4: New file.
20758
20759 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20760
20761         * lib/vsnprintf.h: New file.
20762         * lib/vsnprintf.c: New file.
20763
20764 2004-10-11  Bruno Haible  <bruno@clisp.org>
20765
20766         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
20767         vsnprintf.
20768
20769 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20770
20771         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
20772
20773 2004-10-07  Bruno Haible  <bruno@clisp.org>
20774
20775         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
20776         fits into the provided buffer.
20777
20778 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20779
20780         * lib/diacrit.c, diacrit.h: Add GPL notice.
20781
20782         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
20783         notice.
20784         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
20785         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
20786         This avoids a potential constant-folding bug.
20787
20788 2004-10-05  Bruno Haible  <bruno@clisp.org>
20789
20790         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
20791         for the declaration of strsep.
20792
20793 2004-10-05  Bruno Haible  <bruno@clisp.org>
20794
20795         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
20796
20797 2004-10-04  Simon Josefsson  <jas@extundo.com>
20798
20799         * modules/memmem: New file.
20800         * tests/test-memmem.c: New file.
20801         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
20802
20803 2004-10-04  Simon Josefsson  <jas@extundo.com>
20804
20805         * m4/memmem.m4: New file.
20806
20807 2004-10-04  Simon Josefsson  <jas@extundo.com>
20808
20809         * lib/memmem.h: New file.
20810         * lib/memmem.c: New file, taken from glibc.
20811
20812 2004-10-04  Simon Josefsson  <jas@extundo.com>
20813
20814         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
20815         '#ifdef USE_UNLOCKED_IO'.
20816
20817 2004-10-04  Simon Josefsson  <jas@extundo.com>
20818
20819         * config/srclist.txt: Add memmem from glibc.
20820
20821 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20822
20823         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
20824
20825         * modules/argmatch, modules/argp, modules/closeout, modules/error,
20826         modules/exclude, modules/getdate, modules/getline,
20827         modules/getndelim2, modules/getpass, modules/getpass-gnu,
20828         modules/getusershell, modules/linebuffer, modules/md5,
20829         modules/mountlist, modules/posixtm, modules/readtokens,
20830         modules/readutmp, modules/regex, modules/sha1,
20831         modules/version-etc, modules/yesno:
20832         Remove dependency on unlocked-io.
20833
20834 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20835
20836         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
20837
20838         * m4/unlocked-io.m4: Add copyright notice.
20839         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
20840
20841 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20842
20843         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
20844         * lib/xmalloc.c (xmemdup): Likewise.
20845         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
20846         XFREE): Remove these long-obsolescent macros.
20847         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
20848         * lib/xstrdup.c: Remove.
20849
20850         * lib/regex.c (re_comp): Cast gettext return value to char *,
20851         Problem reported by Martin Neitzel via Mark D. Baushke.
20852
20853 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20854
20855         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
20856         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
20857         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
20858         regex.c, sha1.c, version-etc.c, yesno.c:
20859         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
20860         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
20861         the includer's responsibility.
20862
20863         Sync from coreutils.
20864
20865         * lib/modechange.c (mode_compile): Don't decrement a pointer that
20866         points to the start of a string, as the C Standard says the
20867         resulting behavior is undefined.
20868
20869         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
20870         simple -> simple_backups, numbered_existing ->
20871         numbered_existing_backups, numbered -> numbered_backups
20872         to avoid shadowing problems.  All uses changed.
20873         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
20874         * lib/backupfile.c (check_extension, numbered_backup):
20875         Rename locals to avoid shadowing 'basename'.
20876         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
20877         once.
20878
20879         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
20880         * lib/.cvsignore: Add getopt.h.
20881
20882 2004-10-04  Bruno Haible  <bruno@clisp.org>
20883
20884         * modules/README: New file.
20885         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
20886         not a module.
20887
20888 2004-10-02  Jim Meyering  <jim@meyering.net>
20889
20890         * lib/dirfd.h, getpagesize.h: Add copyright notice.
20891
20892 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20893
20894         * modules/strsep: New file.
20895
20896 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20897
20898         * m4/strsep.m4: New file.
20899
20900 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20901
20902         * lib/strsep.h: New file.
20903         * lib/strsep.c: New file.
20904
20905 2004-10-01  Simon Josefsson  <jas@extundo.com>
20906
20907         * lib/snprintf.c (snprintf): Handle size==0.
20908
20909 2004-10-01  Simon Josefsson  <jas@extundo.com>
20910             Bruno Haible  <bruno@clisp.org>
20911
20912         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
20913         (snprintf): Declare 'args'.
20914
20915 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20916
20917         * lib/snprintf.c: Remove comments as to why each header is needed.
20918
20919 2004-10-01  Bruno Haible  <bruno@clisp.org>
20920
20921         * MODULES.html.sh: Add strsep.
20922
20923 2004-09-30  Simon Josefsson  <jas@extundo.com>
20924
20925         * modules/snprintf: New file.
20926
20927 2004-09-30  Simon Josefsson  <jas@extundo.com>
20928
20929         * m4/snprintf.m4: New file.
20930
20931 2004-09-30  Simon Josefsson  <jas@extundo.com>
20932
20933         * lib/snprintf.h, lib/snprintf.c: New files.
20934
20935 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20936
20937         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
20938         (hol_entry_help): Never translate an empty string.
20939         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
20940         * lib/argp.h (OPTION_NO_TRANS): New option.
20941
20942 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
20943
20944         * modules/argp (Maintainer): Replace Simon Josefsson
20945         by Sergey Poznyakoff.
20946
20947 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
20948
20949         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
20950         changes merged back into glibc.
20951
20952 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
20953
20954         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
20955
20956 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
20957
20958         * lib/xvasprintf.c: Include xalloc.h.
20959         (xvasprintf): Use xalloc_die, not xmalloc_die.
20960
20961 2004-09-29  Bruno Haible  <bruno@clisp.org>
20962
20963         * modules/alloca-opt: New file, derived from modules/alloca.
20964         * modules/allocsa: Depend on alloca-opt instead of alloca.
20965         * modules/setenv: Likewise.
20966         * modules/vasnprintf: Likewise.
20967         * MODULES.html.sh: Add alloca-opt.
20968
20969 2004-09-28  Simon Josefsson  <jas@extundo.com>
20970
20971         * gnulib-tool: New parameter --lgpl, to asseert that modules are
20972         LGPL, and to replace license template from GPL to LGPL.
20973
20974 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
20975
20976         * modules/dummy: Change license to LGPL.
20977
20978 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
20979
20980         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
20981
20982 2004-09-24  Simon Josefsson  <jas@extundo.com>
20983
20984         * modules/minmax (License): Change from GPL to LGPL.
20985
20986 2004-09-23  Simon Josefsson  <jas@extundo.com>
20987
20988         * gnulib-tool (--import): Typo.
20989
20990 2004-09-23  Simon Josefsson  <jas@extundo.com>
20991
20992         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
20993
20994 2004-09-22  Bruno Haible  <bruno@clisp.org>
20995
20996         * modules/*: Add 'License' field.
20997         * gnulib-tool: Accept --extract-license option.
20998         (func_get_license): New function.
20999
21000 2004-09-21  Bruno Haible  <bruno@clisp.org>
21001
21002         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
21003         Reported by Simon Josefsson.
21004
21005 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21006
21007         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
21008         gl_AC_TYPE_LONG_LONG.
21009
21010 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21011
21012         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
21013
21014 2004-09-18  Simon Josefsson  <jas@extundo.com>
21015         and  Paul Eggert  <eggert@cs.ucla.edu>
21016
21017         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
21018         calls with autoreconf.  Define GL_LIB.
21019
21020 2004-09-14  Karl Berry  <karl@gnu.org>
21021
21022         * config/srclist.txt: unsync setenv.c, sigh.
21023
21024 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21025
21026         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
21027         Problem reported by Bruno Haible in:
21028         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
21029
21030 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21031
21032         * config/srclist.txt: Comment out argp-pvh.c.
21033
21034 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
21035
21036         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
21037         in case some system header has #define'd it.  Problem reported by
21038         Soeren D. Schulze in
21039         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
21040
21041 2004-09-09  Karl Berry  <karl@gnu.org>
21042
21043         * regex.[ch]: delete from the root.  These were supposed to be
21044                 synced with emacs cvs, but this has not happened for about
21045                 a year, and anyway nothing else uses emacs regex.[ch].
21046                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
21047                 lib/regex[.ch] is untouched.
21048
21049 2004-09-09  Bruno Haible  <bruno@clisp.org>
21050
21051         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
21052
21053 2004-09-09  Bruno Haible  <bruno@clisp.org>
21054
21055         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
21056         modifications.
21057         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
21058
21059 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
21060
21061         * modules/xvasprintf: New file.
21062         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
21063
21064 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
21065
21066         * lib/xvasprintf.h: New file.
21067         * lib/xvasprintf.c: New file.
21068         * lib/xasprintf.c: New file.
21069
21070 2004-09-08  Bruno Haible  <bruno@clisp.org>
21071
21072         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
21073
21074 2004-09-08  Bruno Haible  <bruno@clisp.org>
21075
21076         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
21077         length is > INT_MAX.
21078         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
21079         more.
21080
21081 2004-09-08  Bruno Haible  <bruno@clisp.org>
21082
21083         * lib/stdint_.h: New file, taken from GNU clisp.
21084
21085 2004-09-08  Bruno Haible  <bruno@clisp.org>
21086             Oskar Liljeblad  <oskar@osk.mine.nu>
21087
21088         * modules/stdint: New file.
21089         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
21090
21091 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21092
21093         Import from coreutils.
21094         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
21095         strings on unbounded length.  alloca's performance benefits aren't
21096         that important here.
21097         (V_STRDUP): Remove.
21098         (parse_with_separator): New function, with most of the internals
21099         of the old parse_user_spec.  Allow user to omit both user and group,
21100         for compatibility with FreeBSD.
21101         Clone only the user name, not the entire spec.
21102         Do not set *uid, *gid unless entirely successful.
21103         Avoid memory leak in some failing cases.
21104         Fix regression for USER.GROUP reported by Dmitry V. Levin in
21105         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
21106         (parse_user_spec): Rewrite to use parse_with_separator.
21107
21108 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21109
21110         * modules/userspec: Don't depend on alloca.
21111
21112 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21113
21114         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
21115
21116 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21117
21118         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
21119         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
21120         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
21121
21122 2004-08-16  Simon Josefsson  <jas@extundo.com>
21123
21124         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
21125         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
21126         Add --dry-run for --import.
21127         Let user provided command line parameters override configure.ac
21128         settings.
21129
21130 2004-08-12  Simon Josefsson  <jas@extundo.com>
21131
21132         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
21133         as discussed with Paul Eggert in threads rooted at
21134         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
21135         and
21136         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
21137         Before, the test was empty, and relied on ELIDE_CODE in source
21138         code.)
21139         (gl_PREREQ_GETOPT): New macro.
21140         (gl_GETOPT): Use them.
21141
21142 2004-08-12  Simon Josefsson  <jas@extundo.com>
21143
21144         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
21145         * lib/getopt_.h: Renamed from getopt.h.
21146
21147 2004-08-12  Simon Josefsson  <jas@extundo.com>
21148
21149         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
21150         Change default library name from libfoo to libgnu.
21151         Now, if you have a configure.ac that says:
21152                 gl_SOURCE_BASE(gl)
21153                 gl_M4_BASE(gl/m4)
21154                 gl_MODULES(error getopt etcetera)
21155                 gl_INIT
21156         you can import all you need by running:
21157                 ../gnulib/gnulib-tool --import
21158
21159         * modules/getopt (Files): Rename getopt.h to getopt_.h.
21160         (Makefile.am): Rewrite, use logic from argz.
21161         (Include): Use <getopt.h> instead of "getopt.h".
21162
21163 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21164
21165         * modules/argp (Files): Add m4/unlocked-io.m4.
21166         (Depends-on): Add extensions.
21167
21168 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21169
21170         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
21171         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
21172         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
21173         Check for program_invocation_name, program_invocation_short_name,
21174         flockfile, funlockfile, features.h, _getopt_long_only_r.
21175
21176 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21177
21178         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
21179         its complicated substitute.
21180         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
21181         and program_invocation_name.
21182         (__argp_basename) [!_LIBC]: Remove; the only use was
21183         replaced by its body.
21184         (__argp_short_program_name): Change condition from
21185         !defined __argp_short_program_name to
21186         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
21187         to match argp-namefrob.h.
21188         (__argp_failure): Don't assume strerror_r returns char *.
21189         * lib/argp-parse.c (N_): Define unconditionally.
21190         (argp_default_options): Fill out initializers with 0 to avoid
21191         gcc warnings.
21192
21193 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21194
21195         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
21196         getopt1.c.
21197
21198 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21199
21200         Merge from coreutils.
21201
21202         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
21203
21204         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
21205         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
21206
21207 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21208
21209         Merge from coreutils.
21210
21211         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
21212         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
21213         for Reliant Unix 5.43.
21214
21215         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
21216         (union fooround): Use uintmax_t, not long int.
21217         The rest is a merge from libc:
21218         [defined _LIBC]: Include <shlib-compat.h>.
21219         (_obstack) [defined _LIBC]: Remove after 2.3.4.
21220
21221         * lib/settime.c (settime): Recode to avoid warning with
21222         Sun Forte C 6U2.
21223
21224         * lib/strverscmp.c: Convert to UTF-8.
21225
21226 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21227
21228         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
21229         m4/uintmax_t.m4.
21230
21231 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21232
21233         * modules/xalloc-die: New file.
21234         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
21235
21236         * modules/md5 (Files): Add m4/uint32_t.m4.
21237         * modules/sha1: Renamed from modules/sha.
21238         (Files):
21239         Rename lib/sha.h to lib/sha1.h.
21240         Rename lib/sha.c to lib/sha1.c.
21241         Rename m4/sha.m4 to m4/sha1.m4.
21242         (lib_SOURCES): Likewise.
21243         (configure.ac): Rename gl_SHA to gl_SHA1.
21244         (Include): sha.h -> sha1.h.
21245
21246 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21247
21248         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
21249         * m4/sha1.m4: Renamed from sha.m4.
21250         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
21251
21252 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21253
21254         * lib/obstack.h (obstack_empty_p):
21255         Don't assume that chunk->contents is suitably aligned.
21256         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
21257         Likewise. Problem reported by Benno in
21258         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
21259
21260         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
21261         readable.  This could be improved further but it'd take some work.
21262
21263 2004-08-08  Simon Josefsson  <jas@extundo.com>
21264
21265         * modules/xgethostname (Depends-on): Remove exit and error (not
21266         used).
21267
21268         * modules/getpass-gnu: Add getpass.h.
21269         (Depends-on): Add stdbool.
21270         * modules/getpass: Add getpass.h.
21271
21272 2004-08-08  Simon Josefsson  <jas@extundo.com>
21273
21274         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
21275         Check getpass declaration.
21276
21277 2004-08-08  Simon Josefsson  <jas@extundo.com>
21278
21279         * lib/xgethostname.c: Don't include error.h (not used).
21280
21281         * lib/getpass.h: Add.
21282         * lib/getpass.c: Include getpass.h first.
21283
21284 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21285
21286         * lib/xalloc-die.c: New file.
21287         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
21288         All uses removed.
21289         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
21290         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
21291         xalloc-die.c.
21292         (_, N_, xalloc_die): Move to xalloc-die.c.
21293         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
21294         so that we needn't mess with xalloc_msg_memory_exhausted.
21295
21296         * lib/sha1.h: Renamed from sha.h.
21297         (SHA1_H): Renamed from _SHA_H.
21298         (sha1_ctx): Renamed from sha_ctx.
21299         (sha1_init_ctx): Renamed from sha_init_ctx.
21300         (sha1_process_block): Renamed from sha_process_block.
21301         (sha1_process_bytes): Renamed from sha_process_bytes.
21302         (sha1_finish_ctx): Renamed from sha_finish_ctx.
21303         (sha1_read_ctx): Renamed from sha_read_ctx.
21304         (sha1_stream): Renamed from sha_stream.
21305         (sha1_buffer): Renamed from sha_buffer.
21306         * lib/sha1.c: Likewise; renamed from sha.c.
21307         Do not include <sys/types.h>.
21308         Include <stddef.h> rather than <stdlib.h>.
21309
21310 2004-08-08  Bruno Haible  <bruno@clisp.org>
21311
21312         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
21313         FILESYSTEM_PREFIX_LEN.
21314         * lib/progreloc.c: Likewise.
21315         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
21316
21317 2004-08-06  Simon Josefsson  <jas@extundo.com>
21318
21319         * modules/progname (Depends-on): Don't depend on stdbool.
21320
21321 2004-08-06  Simon Josefsson  <jas@extundo.com>
21322
21323         * modules/getsubopt: New file.
21324         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21325         getsubopt.
21326
21327 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21328
21329         More merge from coreutils.
21330
21331         * m4/utimens.m4, m4/utimecmp.m4: New files.
21332         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
21333         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
21334         prereq.m4, sha.m4: Import changes from coreutils.
21335
21336 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21337
21338         More merge from coreutils.
21339         * modules/raise, modules/readtokens0, modules/utimens:
21340         * modules/utimecmp, module/xnanosleep: New files.
21341         * modules/strftime: Add lib/strftime.h.
21342         Change include from <time.h> to "strftime.h".
21343         * modules/yesno: Add lib/yesno.h.
21344         * modules/backupfile: Remove lib/addext.c.
21345         * modules/euidaccess: Add stat-macros.h.
21346         * modules/canonicalize, modules/euidaccess,
21347         modules/filemode, modules/lchown, modules/makepath,
21348         modules/rmdir, modules/stat: Likewise.
21349
21350 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21351
21352         Merge from tar.
21353         * lib/argp-help.c (make_hol, hol_append): Don't assume that
21354         SIZE_MAX is a valid preprocessor constant.
21355         (__argp_basename): Change from "#ifndef _LIBC"
21356         to "#ifndef __argp_short_program_name", so that
21357         we don't compile these functions for tar.
21358
21359         More merges from coreutils.
21360         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
21361         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
21362         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
21363         * lib/addext.c: Remove; no longer needed.
21364         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
21365         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
21366         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
21367         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
21368         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
21369         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
21370         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
21371         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
21372         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
21373         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
21374         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
21375         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
21376         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
21377         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
21378         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
21379         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
21380         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
21381         Import changes from coreutils.
21382
21383 2004-08-05  Simon Josefsson  <jas@extundo.com>
21384
21385         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
21386
21387 2004-08-05  Simon Josefsson  <jas@extundo.com>
21388
21389         * m4/getsubopt.m4: New file.
21390
21391 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21392
21393         Merge from coreutils.
21394
21395         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
21396         * m4/getcwd-path-max.m4: New files.
21397
21398         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
21399         FILESYSTEM_PREFIX_LEN ->
21400         FILE_SYSTEM_PREFIX_LEN.
21401         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
21402         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
21403         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
21404         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
21405
21406         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
21407         prerequisite modules now handle the DOS stuff.
21408         Don't check for unistd.h.
21409
21410 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21411
21412         Merge from coreutils.
21413
21414         * lib/.gdb-history: Remove; this doesn't belong here.
21415
21416         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
21417         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
21418         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
21419         * lib/getcwd.c: New files.
21420
21421         * lib/dirname.h: Include <stdbool.h>.
21422         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
21423         for consistency with POSIX terminology.  All uses changed.
21424         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
21425         (strip_trailing_slashes): Use bool for booleans.
21426         * lib/stripslash.c (strip_trailing_slashes): Likewise.
21427
21428         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
21429         sometimes returns a positive errno value even when it succeeds.
21430         (print_errno_message) [!LIBC]: Fall back on strerror if
21431         __strerror_r fails.
21432
21433         * lib/path-concat.c (mempcpy): Don't define if a system header defines
21434         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
21435         (longest_relative_suffix): New function.
21436         (path_concat): Use it.  Assume first argument is not NULL.
21437         Port to DOS.  Omit redundant separators.
21438         Report an error instead of returning NULL.
21439         Use mempcpy instead of memcpy.
21440         (xpath_concat): Remove: not declared or used.
21441
21442         * lib/same.h: Include <stdbool.h>
21443         (same_name): Return bool, not int.
21444         * lib/same.c (same_name): Likewise.
21445         (errno): Don't declare; we assume C89 or better now.
21446
21447         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
21448         if not already defined.
21449
21450         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
21451         * lib/dup-safer.c (errno): Likewise.
21452
21453 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21454
21455         Merge from coreutils.
21456         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
21457         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
21458         * modules/path-concat: Don't depend on strdup.
21459
21460 2004-08-03  Simon Josefsson  <jas@extundo.com>
21461
21462         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
21463         * lib/progname.h: Don't include stdbool.h.
21464
21465 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21466
21467         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
21468         * MODULES.html.sh (func_all_modules): Remove fatal.
21469
21470 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21471
21472         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
21473
21474 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21475
21476         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
21477         working.
21478
21479 2004-08-02  Simon Josefsson  <jas@extundo.com>
21480
21481         * lib/getsubopt.h: New file, with comments from Bruno Haible.
21482         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
21483         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
21484
21485 2004-08-01  Simon Josefsson  <jas@extundo.com>
21486
21487         * lib/xgetdomainname.c: Include stdlib.h, for free().
21488
21489 2004-07-19  Bruno Haible  <bruno@clisp.org>
21490
21491         * MODULES.html.sh (func_all_modules): Add dummy.
21492
21493 2004-07-16  Simon Josefsson  <jas@extundo.com>
21494
21495         * modules/dummy: New file.
21496
21497 2004-07-16  Simon Josefsson  <jas@extundo.com>
21498
21499         * lib/dummy.c: New file.
21500
21501 2004-07-16  Bruno Haible  <bruno@clisp.org>
21502
21503         * lib/backupfile.h: Add extern "C" for C++.
21504         * lib/closeout.h: Likewise.
21505         * lib/copy-file.h: Likewise.
21506         * lib/findprog.h: Likewise.
21507         * lib/full-write.h: Likewise.
21508         * lib/pathname.h: Likewise.
21509         * lib/progname.h: Likewise.
21510         * lib/stpcpy.h: Likewise.
21511         * lib/stpncpy.h: Likewise.
21512         * lib/strcase.h: Likewise.
21513         * lib/strstr.h: Likewise.
21514         * lib/xalloc.h: Likewise.
21515
21516         * lib/mbswidth.h: Add extern "C" for C++.
21517         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
21518
21519 2004-07-13  Robert Millan  <robertmh@gnu.org>
21520
21521         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
21522
21523 2004-07-09  Simon Josefsson  <jas@extundo.com>
21524
21525         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
21526         failed without this.)
21527
21528 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21529
21530         * modules/chown (Files): Add lib/fchown-stub.c, since
21531         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
21532
21533 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21534
21535         * lib/fchown-stub.c: New file.
21536
21537 2004-06-24  Jim Meyering  <jim@meyering.net>
21538
21539         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
21540
21541 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21542
21543         * modules/argz: Omit "#include".
21544
21545         * MODULES.html.sh (func_all_modules): Add calloc, to match
21546         2004-06-01 addition of calloc module.
21547
21548 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21549
21550         * m4/argz.m4: New file, which is autoupdated from libtool.
21551
21552 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21553
21554         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
21555         libtool.
21556
21557 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21558
21559         * config/srclist-update: Don't insist on "USA." before the
21560         close-comment, as libtool omits the period and puts the */ on a
21561         separate line.
21562         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
21563         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
21564
21565 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
21566
21567         * modules/argz: New file.
21568         * MODULES.html.sh (func_all_modules): Add argz.
21569
21570 2004-06-12  Jim Meyering  <jim@meyering.net>
21571         and  Paul Eggert  <eggert@cs.ucla.edu>
21572
21573         * modules/hash (Files): Add lib/xalloc.h.
21574         * modules/pipe (Depends-on): Add wait-process.
21575         * modules/stat (Depends-on): Add xalloc.
21576         * modules/userspec (Files): Add lib/userspec.h.
21577         * modules/xstrto
21578
21579         Upgrade from gettext-0.13.
21580         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
21581         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
21582         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
21583
21584 2004-06-10  Jim Meyering  <jim@meyering.net>
21585
21586         * lib/calloc.c: New file.
21587
21588 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
21589
21590         * lib/getdate.y (yylex): Allow space between sign and number.
21591         Problem reported by Dan Jacobson.
21592
21593 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21594
21595         Merge from coreutils CVS.
21596
21597         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
21598         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
21599         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
21600         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
21601         xstrtol.m4: Fix copyright date and/or serial number.
21602
21603         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
21604         See if we need an fchown replacement.
21605         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
21606         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
21607         and use the replacement function if we detect either defect.
21608
21609         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
21610         gl_UTIMECMP.
21611
21612 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21613         and  Jim Meyering  <jim@meyering.net>
21614
21615         Merge from coreutils CVS.
21616
21617         * lib/stat-macros.h: New file, with contents from file-type.h
21618         and coreutils' system.h.
21619         * lib/file-type.c: Include "stat-macros.h".
21620         * lib/file-type.h (file_type): Move all macro definitions to new file,
21621         stat-macros.h.
21622
21623         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
21624         Wrap old code with this conditional.
21625         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
21626         function that does not dereference symlinks.
21627         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
21628
21629         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
21630         dependency problems.
21631         (xreadlink): Accept new arg SIZE, for efficiency.
21632         All decls and uses changed.
21633         * lib/xreadlink.h: Include <stddef.h>, for size_t.
21634
21635         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
21636         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
21637
21638         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
21639         sysexits.h.
21640
21641 2004-06-01  Jim Meyering  <jim@meyering.net>
21642
21643         * m4/calloc.m4: New file.
21644
21645 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
21646
21647         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
21648         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
21649         Also, fix a typo in a diagnostic.
21650
21651 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
21652
21653         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
21654         or AC_FUNC_REALLOC.
21655
21656 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
21657
21658         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
21659         macros to be defined.
21660         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
21661         the allocator returns NULL because the requested size is zero.
21662
21663 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21664
21665         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
21666         var.  Add comment explaining why libc still defines it.  This
21667         merges the following patch from glibc:
21668         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
21669
21670 2004-05-20  Andreas Schwab  <schwab@suse.de>
21671
21672         * m4/free.m4: Replace free if it not known to work, not the other
21673         way round.
21674
21675 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21676
21677         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
21678         present in glibc since revision 1.1 of this file.
21679         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
21680         obstack_alignment_mask, obstack_alloc, obstack_base,
21681         obstack_blank, obstack_blank_fast, obstack_chunk_size,
21682         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
21683         obstack_grow0, obstack_init, obstack_int_grow,
21684         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
21685         obstack_next_free, obstack_object_size, obstack_ptr_grow,
21686         obstack_ptr_grow_fast, obstack_room): Remove declarations of
21687         nonexistent functions.
21688
21689 2004-05-18  Karl Berry  <karl@gnu.org>
21690
21691         * config/srclist.txt: break link for vasnprintf.c.
21692
21693 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21694
21695         Port obstack to the AS/400, where pointers are 16 bytes wide and
21696         you cannot cast an integer to a valid pointer.  This patch is
21697         currently waiting to be integrated into glibc; see
21698         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
21699
21700         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
21701         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
21702         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
21703         (struct obstack): temp member is now a union of a pointer and
21704         an integer, instead of an integer.  All integer uses changed.
21705         This does not affect the physical layout of struct obstack,
21706         except on hosts (like the AS/400) where the size or alignment of
21707         void * is greater than that of ptrdiff_t.
21708         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
21709         __STDC__)]: Store temporary in pointer member of union, not
21710         integer member.
21711         * lib/obstack.c: Include <stddef.h>, for offsetof.
21712         (struct fooalign): Remove; it doesn't need a name.
21713         (union fooround): Change double to long double, and add void *.
21714         (DEFAULT_ALIGNMENT): Use offsetof to compute.
21715         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
21716         not a macro.  Hence the values are always int; so remove all
21717         casts-to-int in uses.
21718
21719 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21720
21721         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
21722         we can get this patch merged into glibc.
21723
21724 2004-05-17  Derek R. Price  <derek@ximbiot.com>
21725             Paul Eggert  <eggert@cs.ucla.edu>
21726
21727         * m4/argp: Depend on alloca.
21728
21729 2004-05-17  Derek R. Price  <derek@ximbiot.com>
21730             Paul Eggert  <eggert@cs.ucla.edu>
21731
21732         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
21733         freecoding.
21734
21735 2004-05-17  Bruno Haible  <bruno@clisp.org>
21736
21737         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
21738         precision that consists of a '.' followed by an empty digit string.
21739         Patch by Tor Lillqvist <tml@iki.fi>.
21740
21741 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21742
21743         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
21744         for backward compatibility with older code.  We need our own
21745         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
21746         it under some other name, and our alloca.h will define it.
21747
21748 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21749             Derek Price  <derek@ximbiot.com>
21750
21751         * lib/alloca.c: Include <alloca.h>, to get our interface.
21752         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
21753         include <alloca.h> first.  Use C89 prototype for alloca; this
21754         requires including <stddef.h> for size_t.  Use extern "C" if C++.
21755         Use #elif for simplicity, since we can assume C89 now.
21756         Don't try to source the system alloca.h since it will not be found
21757         and to prevent recursively including its replacement.
21758         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
21759         * lib/regex.c: Likewise.
21760
21761 2004-05-16  Derek Price  <derek@ximbiot.com>
21762             Paul Eggert  <eggert@cs.ucla.edu>
21763
21764         getline cleanup.  This changes the getndelim2 API: both order of
21765         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
21766         no delimiter).
21767
21768         * lib/getline.c: Don't include stddef.h or stdio.h, since our
21769         interface does that.
21770         (getline): Always use getdelim, so that we don't have two
21771         copies of this code.
21772         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
21773         if available.
21774         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
21775         (GETNDELIM2_MAXIMUM): New macro.
21776         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
21777         instead of the old practice of delim2==0.  All callers changed.
21778         Return -1 on overflow, instead of returning junk.
21779         Do not set *linesize unless allocation succeeds.
21780         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
21781         that we include sys/types.h.
21782         * lib/getnline.h: Likewise.
21783         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
21784         (getndelim2): Reorder arguments.
21785         * lib/getnline.c (getnline, getndelim):
21786         Don't discard the NMAX argument.
21787         (getnline): Invoke getndelim, to avoid code duplication.
21788         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
21789         of (size_t) -1 by callers of the getnline family.
21790
21791 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21792
21793         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
21794         Check for gettimeofday.
21795         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
21796         Check for settimeofday, stime.
21797
21798 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21799
21800         * lib/nanosleep.c (suspended): Change its type from int to
21801         sig_atomic_t volatile.
21802         (first_call): Make it private to rpl_nanosleep, and have it
21803         be zero initially as that's a bit faster.
21804         (my_usleep): Round up fractional times instead of truncating them,
21805         as this is the usual meaning for 'sleep'.
21806
21807         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
21808         doesn't work.
21809         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
21810         (ENOSYS): Define if not defined.
21811         (settime): Fall back on stime if it exists and settimeofday fails.
21812         But don't bother with fallbacks if a method fails with errno == EPERM.
21813
21814 2004-05-11  Jim Meyering  <jim@meyering.net>
21815
21816         Prior to this change, the save_cwd caller required read access to the
21817         current directory on most systems (ones with the fchdir function).
21818
21819         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
21820         fails, try write-only, and finally, resort to using xgetcwd.
21821
21822 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21823
21824         * lib/obstack.c, obstack.h: Import changes from libc.
21825
21826 2004-04-28  Bruno Haible  <bruno@clisp.org>
21827
21828         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
21829         also implicitly appends .exe to executables.
21830         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
21831         accepts Windows pathnames.
21832         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
21833         Treat Cygwin like Windows, since it now accepts Windows pathnames.
21834         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
21835         Treat Cygwin like Windows, since it now accepts Windows pathnames.
21836         Reported by Derek Robert Price <derek@ximbiot.com>.
21837
21838 2004-04-21  Karl Berry  <karl@gnu.org>
21839
21840         * config/srclist.txt (localcharset.c): break sync.
21841
21842 2004-04-20  Paul Eggert  <eggert@twinsun.com>
21843
21844         * m4/host-os.m4: Add a copyright notice.
21845
21846 2004-04-20  Jim Meyering  <jim@meyering.net>
21847
21848         Change UTILS_ to gl_ in AC_DEFINE'd names.
21849         Change utils_- and jm_-prefixed variables, too.
21850         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
21851         UTILS_FUNC_MKDIR_TRAILING_SLASH.
21852         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
21853
21854         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
21855         Don't emit trailing blanks.
21856         Also rename jm_-prefixed variables to have gl_ prefix.
21857
21858         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
21859         Also rename jm_-prefixed variables to have gl_ prefix.
21860
21861         * m4/jm-macros.m4: Reflect the renamings.
21862         * m4/prereq.m4: Likewise.
21863
21864 2004-04-20  Jim Meyering  <jim@meyering.net>
21865
21866         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
21867         memory.
21868
21869 2004-04-20  Jim Meyering  <jim@meyering.net>
21870             Bruno Haible  <bruno@clisp.org>
21871
21872         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
21873         memory when realloc fails.
21874
21875 2004-04-19  Jim Meyering  <jim@meyering.net>
21876
21877         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
21878         now that readutmp.c may call `free (0)'.
21879
21880 2004-04-19  Bruno Haible  <bruno@clisp.org>
21881
21882         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
21883         * m4/inttypes_h.m4: Likewise.
21884         * m4/stdint_h.m4: Likewise.
21885         * m4/intmax_t.m4: Likewise.
21886         * m4/uintmax_t.m4: Likewise.
21887
21888 2004-04-18  Jim Meyering  <jim@meyering.net>
21889
21890         * m4/prereq.m4: Don't forbid jm_ prefix.
21891
21892         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
21893         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
21894         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
21895         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
21896         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
21897         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
21898         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
21899         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
21900         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
21901         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
21902         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
21903         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
21904         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
21905         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
21906         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
21907         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
21908         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
21909         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
21910         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
21911
21912 2004-04-18  Jim Meyering  <jim@meyering.net>
21913
21914         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
21915         failure, don't leak memory and do call END_UTMP_ENT.
21916
21917 2004-04-16  Jim Meyering  <jim@meyering.net>
21918
21919         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
21920         coreutils' stat program.
21921         (gl_PREREQ): Don't require jm_PREREQ_STAT.
21922
21923 2004-04-11  Paul Eggert  <eggert@twinsun.com>
21924
21925         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
21926         C89.
21927         (CHAR_BIT): Remove, since we assume C89.
21928         Include <stdint.h> if available, as per current Autoconf CVS advice.
21929
21930 2004-03-31  Jim Meyering  <jim@meyering.net>
21931
21932         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
21933         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
21934         * m4/xalloc.m4: Likewise.
21935
21936 2004-03-30  Paul Eggert  <eggert@twinsun.com>
21937
21938         Merge from coreutils.
21939
21940         * m4/inttostr.m4: New file.
21941         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
21942         Require AM_STDBOOL_H and gl_TIMESPEC instead.
21943         Require gl_CLOCK_TIME.
21944         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
21945
21946 2004-03-30  Paul Eggert  <eggert@twinsun.com>
21947
21948         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
21949         not bool, to be more consistent with Unix conventions.
21950         Suggested by Bruno Haible.
21951
21952         Merge from coreutils.
21953
21954         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
21955         * lib/umaxtostr.c: New files.
21956
21957         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
21958         the usual <time.h> dance.
21959         (get_date): Change signature to support fractional time stamps.
21960         All callers changed.
21961         * lib/getdate.y: Include "getdate.h" first, as we can now
21962         assume C89 and don't need to worry about 'const'.
21963         Similarly, include "unlocked-io.h" near start, not in middle.
21964         Include <limits.h>.
21965         (textint.value): Use long int rather than int.
21966         (textint.digits): Use size_t rather than int.
21967         (BILLION, LOG10_BILLION): New constants.
21968         (parser_control): New member rel_ns.  Members day_ordinal,
21969         time_zone, month, day, hour, minutes, rel_year, rel_month,
21970         rel_day, rel_hour, rel_minutes, rel_seconds
21971         are now long int, not int.  Member seconds is now struct timespec,
21972         not int.  New member timespec_seen.  Members dates_seen, days_seen,
21973         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
21974         not int.
21975         (%union.intval): Now long int, not int.
21976         New member timespec.
21977         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
21978         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
21979         (spec): Now is a timespec or an item list.
21980         (timespec, items): New nonterminals.
21981         (time, rel, relunit, number, get_date):
21982         Add support for fractional seconds.
21983         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
21984         (gmtime, localtime, mktime): Remove decls; not needed with C89.
21985         (to_hour): First arg is now long int, not int.
21986         (to_year): Returns long int, not int.
21987         Don't treat year -70 like 70.
21988         (tm_diff): Returns long int, not int.
21989         (lookup_word): Use bool instead of int when appropriate.
21990         (yylex): Use size_t for count, not int.
21991         Detect overflow when parsing large integer constants.
21992         Add support for fractions.
21993         (get_date): Make pointers 'const' if possible.
21994         Use more-portable code to detect integer overflow.
21995         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
21996         Don't use ctime; it's not reliable if the year has >4 digits.
21997
21998         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
21999         This is for compatibility with BSD.
22000
22001         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
22002         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
22003         From coreutils' system.h.
22004
22005         * lib/userspec.c: Don't include "posixver.h".
22006         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
22007         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
22008         compatible extension.  Simplify code by removing a boolean int
22009         that was always nonzero if a string was nonnull.
22010
22011 2004-03-30  Jim Meyering  <jim@meyering.net>
22012
22013         Merge from coreutils.
22014
22015         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
22016         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
22017         on some systems one must include <grp.h> before it.
22018         Reported by Christian Krackowizer.
22019
22020 2004-03-30  Jim Meyering  <jim@meyering.net>
22021
22022         Merge from coreutils.
22023
22024         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
22025
22026         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
22027         an empty input stream.
22028
22029         * lib/readtokens.c: Include <stdbool.h>.
22030         (readtoken): Use `size_t' rather than int/long.
22031         All callers adjusted.
22032         Use `bool' rather than `int' where appropriate.
22033         Use memset rather than an explicit loop.
22034         Use x2nrealloc rather than xrealloc.
22035         Allow the use of `\0' as a delimiter.
22036         (readtokens): Likewise.
22037         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
22038
22039 2004-03-30  Jim Meyering  <jim@meyering.net>
22040
22041         * m4/realloc.m4: Remove file, since now it does no more than
22042         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
22043         the `configure.ac' section of module/realloc.
22044         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
22045
22046 2004-03-30  Bruno Haible  <bruno@clisp.org>
22047
22048         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
22049         nonnull.
22050
22051 2004-03-29  Paul Eggert  <eggert@twinsun.com>
22052
22053         Merge changes to getloadavg.c from coreutils and Emacs.
22054
22055         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
22056         Define to an expression, not to the empty string.
22057         Include cloexec.h and xalloc.h.
22058         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
22059         Use set_cloexec_flag rather than rolling our own.
22060         * lib/cloexec.c, lib/cloexec.h: New files.
22061
22062 2004-03-29  Paul Eggert  <eggert@twinsun.com>
22063
22064         * m4/cloexec.m4: New file.
22065
22066 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22067
22068         * lib/getopt.h: Sync with libc CVS.
22069
22070 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22071             Bruno Haible  <bruno@clisp.org>
22072
22073         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
22074         mbswidth.
22075
22076 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22077             Bruno Haible  <bruno@clisp.org>
22078
22079         * lib/mbswidth.h: Include <wchar.h> only if
22080         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
22081         <wchar.h>.
22082         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
22083
22084 2004-03-09  Paul Eggert  <eggert@twinsun.com>
22085
22086         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
22087         Sync with libc CVS.
22088         * lib/getopt_int.h: New file, also synced from libc.
22089
22090 2004-03-09  Paul Eggert  <eggert@twinsun.com>
22091
22092         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
22093         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
22094         Bring back getopt.c, getopt.h, getopt1.c.
22095
22096 2004-03-07  Paul Eggert  <eggert@twinsun.com>
22097
22098         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
22099         All uses changed.  Check for sa_sigaction member; this fixes
22100         a bug first reported by Jason Andrade in
22101         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22102
22103 2004-03-07  Paul Eggert  <eggert@twinsun.com>
22104
22105         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
22106         '#if' expressions.  Unlike the code it replaces, it does not
22107         depend on (defined _SC_PAGESIZE).  However, it does depend on
22108         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
22109         first reported by Jason Andrade in
22110         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22111
22112 2004-02-25  Simon Josefsson  <jas@extundo.com>
22113
22114         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
22115
22116 2004-02-25  Simon Josefsson  <jas@extundo.com>
22117
22118         * lib/strdup.h: New file.
22119         * lib/strdup.c: Include it.
22120         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
22121         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
22122
22123 2004-02-23  Karl Berry  <karl@gnu.org>
22124
22125         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
22126         (from fencepost.gnu.org:/gd/gnuorg).
22127
22128 2004-02-23  Karl Berry  <karl@gnu.org>
22129
22130         * config/srclistvars.sh (GNUORG) [karl]: redefine.
22131         * config/srclist.txt: add maintain/standards documents.
22132
22133 2004-02-18  Bruno Haible  <bruno@clisp.org>
22134
22135         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
22136         Reported by Derek Robert Price <derek@ximbiot.com>.
22137
22138 2004-02-16  Karl Berry  <karl@gnu.org>
22139
22140         * config/mkinstalldirs, install-sh: update from automake.
22141
22142 2004-02-06  Karl Berry  <karl@gnu.org>
22143
22144         * m4/po.m4: update from gettext 0.14.1.
22145
22146 2004-02-06  Karl Berry  <karl@gnu.org>
22147
22148         * lib/config.charset: update from gettext 0.14.1.
22149
22150 2004-02-05  Paul Eggert  <eggert@twinsun.com>
22151
22152         Add comments and code, prompted by suggestions from Bruno Haible
22153         for sh-quote.
22154         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
22155         describing the enum quoting_style values.
22156         * lib/quotearg.c (quotearg_alloc): New function.
22157         (quotearg_buffer_restyled): Treat lone { and } as special.
22158         Treat = as special.  Work around bug with older shells
22159         that "see" a '\' that is really the 2nd byte of a multibyte char.
22160         Quote empty string with shell_quoting_style.
22161
22162 2004-02-03  Bruno Haible  <bruno@clisp.org>
22163
22164         * m4/pipe.m4: New file, from GNU gettext.
22165
22166 2004-02-03  Bruno Haible  <bruno@clisp.org>
22167
22168         * lib/pipe.h: New file, from GNU gettext.
22169         * lib/pipe.c: New file, from GNU gettext.
22170
22171 2004-01-27  Bruno Haible  <bruno@clisp.org>
22172
22173         * m4/execute.m4: New file, from GNU gettext.
22174
22175 2004-01-27  Bruno Haible  <bruno@clisp.org>
22176
22177         * lib/execute.h: New file, from GNU gettext.
22178         * lib/execute.c: New file, from GNU gettext.
22179         * lib/w32spawn.h: New file, from GNU gettext.
22180
22181 2004-01-24  Paul Eggert  <eggert@twinsun.com>
22182
22183         Merge from diffutils.
22184
22185         * lib/file-type.c (file_type): Add typed memory objects.
22186         * lib/file-type.h (S_TYPEISTMO): New macro.
22187
22188         * lib/c-stack.h (c_stack_action): Remove argv argument.
22189         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
22190         (die): Don't calculate message unless segv_action returns.
22191         (get_stack_location, min_address_from_argv, max_address_from_argv,
22192         volatile stack_base, volatile_stack_size): Remove.
22193         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
22194         that every segmentation violation is a stack overflow.  (Ouch!)
22195         See Debian bug 136249 (still outstanding) for more info about why
22196         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
22197
22198 2004-01-24  Paul Eggert  <eggert@twinsun.com>
22199
22200         Exit-status fix from coreutils.
22201
22202         Use exit_failure consistently in place of EXIT_FAILURE,
22203         so that program exit statuses are consistent on failure.
22204
22205         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
22206         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
22207         * lib/argmatch.h: Comment fix to match the above.
22208         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
22209         Now a macro referring to exit_failure, instead of a separate
22210         variable.  Include "exitfail.h" to get it.
22211         * lib/xstrtol.h: Include "exitfail.h".
22212         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
22213
22214         * lib/long-options.c (parse_long_options): Use prototype
22215         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
22216         for clarity.
22217
22218 2004-01-21  Jim Meyering  <jim@meyering.net>
22219
22220         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
22221         so as not to conflict with a different-sized __mktime_internal
22222         function in GNU libc.
22223         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
22224         Problem building statically-linked `ls' reported by Michael Brunnbauer.
22225
22226 2004-01-20  Karl Berry  <karl@gnu.org>
22227
22228         * config/config.guess: update from config.
22229
22230         * config/srclistvars.sh: GNUWWWLICENSES for karl.
22231
22232 2004-01-20  Bruno Haible  <bruno@clisp.org>
22233
22234         Safer stack allocation.
22235         * lib/setenv.c: Include allocsa.h.
22236         (alloca): Remove fallback definition.
22237         (freea): Remove macro.
22238         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
22239         instead of freea.
22240
22241 2004-01-20  Bruno Haible  <bruno@clisp.org>
22242
22243         * m4/eealloc.m4: New file, from GNU gettext.
22244
22245 2004-01-20  Bruno Haible  <bruno@clisp.org>
22246
22247         * m4/allocsa.m4: New file, from GNU gettext.
22248
22249 2004-01-20  Bruno Haible  <bruno@clisp.org>
22250
22251         * lib/xallocsa.h: New file, from GNU gettext.
22252         * lib/xallocsa.c: New file, from GNU gettext.
22253
22254 2004-01-20  Bruno Haible  <bruno@clisp.org>
22255
22256         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
22257
22258 2004-01-20  Bruno Haible  <bruno@clisp.org>
22259
22260         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
22261         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
22262         specially.
22263
22264 2004-01-20  Bruno Haible  <bruno@clisp.org>
22265
22266         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
22267         patch.
22268
22269 2004-01-20  Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
22272
22273 2004-01-20  Bruno Haible  <bruno@clisp.org>
22274
22275         * lib/eealloc.h: New file.
22276
22277 2004-01-20  Bruno Haible  <bruno@clisp.org>
22278
22279         * lib/binary-io.h: Avoid warnings on Cygwin.
22280
22281 2004-01-20  Bruno Haible  <bruno@clisp.org>
22282
22283         * lib/allocsa.h: New file, from GNU gettext.
22284         * lib/allocsa.c: New file, from GNU gettext.
22285
22286 2004-01-18  Karl Berry  <karl@gnu.org>
22287
22288         * doc/gpl.texi, doc/lgpl.texi: new files.
22289
22290 2004-01-18  Karl Berry  <karl@gnu.org>
22291
22292         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
22293         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
22294
22295 2004-01-15  Paul Eggert  <eggert@twinsun.com>
22296
22297         Merge from coreutils.
22298
22299         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
22300         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
22301         (gl_DEFAULT_POSIX2_VERSION): Move
22302         the documentation from 'configure' into 'config.hin',
22303         so that 'configure --help' isn't burdened by it and
22304         we don't have to worry about its formatting there.
22305         Reword the documentation so that it's more succinct
22306         and can be run together into a single paragraph.
22307         * m4/same.m4 (gl_SAME): Check for pathconf.
22308
22309 2004-01-15  Paul Eggert  <eggert@twinsun.com>
22310
22311         Merge from coreutils.
22312
22313         * lib/posixver.c: Include posixver.h.
22314
22315         * lib/same.c: Include <stdbool.h>, <limits.h>.
22316         (_POSIX_NAME_MAX): Define if not defined.
22317         (MIN): New macro.
22318         (same_name): If file names are silently truncated, report
22319         that the file names are the same if they are the same after
22320         the silent truncation.
22321
22322         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
22323         conversion function.
22324         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
22325         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
22326         longer needed.
22327
22328 2004-01-15  Jim Meyering  <jim@meyering.net>
22329
22330         Merge from coreutils.
22331
22332         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
22333         if no library is required.
22334         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
22335         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
22336         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
22337         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
22338         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
22339         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
22340         value, $ac_cv_search_crypt, if it's "none required".
22341         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
22342         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
22343         not gl_FUNC_GETLOADAVG.
22344         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
22345         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
22346
22347 2004-01-15  Jim Meyering  <jim@meyering.net>
22348
22349         Merge from coreutils.
22350
22351         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
22352         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
22353         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
22354
22355         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
22356         optional configure-time default.
22357
22358         * lib/version-etc.c (version_etc_copyright): Update copyright date.
22359
22360         * lib/xreadlink.c (xreadlink): Correct outdated comment.
22361
22362 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
22363
22364         Merge from coreutils.
22365
22366         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
22367         value, $ac_cv_search_nanosleep, if it's "none required".
22368
22369 2004-01-14  Paul Eggert  <eggert@twinsun.com>
22370
22371         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
22372         with like-named macro in fnmatch.c.
22373         (EXT): Use an internal constant instead.
22374
22375         Merge fnmatch patches from glibc.
22376         * lib/fnmatch.c (mbsinit): Remove define.
22377         Add libc_hidden_ver (__fnmatch, fnmatch).
22378         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
22379         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
22380
22381 2004-01-14  Karl Berry  <karl@gnu.org>
22382
22383         * config/install-sh: update from automake.
22384
22385 2004-01-13  Karl Berry  <karl@gnu.org>
22386
22387         * config/install-sh: update from automake.
22388
22389 2004-01-09  Karl Berry  <karl@gnu.org>
22390
22391         * config/install-sh: update from automake.
22392
22393 2004-01-05  Karl Berry  <karl@gnu.org>
22394
22395         * config/config.{sub,guess}: update from config.
22396
22397 2003-12-31  Karl Berry  <karl@gnu.org>
22398
22399         * config/depcomp: update from automake.
22400
22401 2003-12-14  Karl Berry  <karl@gnu.org>
22402
22403         * lib/config.charset: update from gettext-runtime.
22404
22405 2003-12-03  Paul Eggert  <eggert@twinsun.com>
22406
22407         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
22408         Bug reported by Alfred M. Szmidt.
22409
22410 2003-12-03  Bruno Haible  <bruno@clisp.org>
22411
22412         * m4/gettext.m4: Upgrade from gettext-0.13.
22413         * m4/po.m4: Upgrade from gettext-0.13.
22414         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
22415         * m4/intmax.m4: New file, from gettext-0.13.
22416         * m4/printf-posix.m4: New file, from gettext-0.13.
22417
22418 2003-11-29  Karl Berry  <karl@gnu.org>
22419
22420         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
22421
22422 2003-11-25  Paul Eggert  <eggert@twinsun.com>
22423             Bruno Haible  <bruno@clisp.org>
22424
22425         * lib/printf-parse.h: Don't include sys/types.h.
22426         (ARG_NONE): New macro.
22427         (char_directive): Change type of *arg_index fields to size_t.
22428         * lib/printf-parse.c: Don't include sys/types.h.
22429         (SSIZE_MAX): Remove macro.
22430         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
22431         Remove unnecessary overflow check.
22432         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
22433         fields.
22434
22435 2003-11-25  Bruno Haible  <bruno@clisp.org>
22436
22437         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
22438
22439 2003-11-25  Bruno Haible  <bruno@clisp.org>
22440
22441         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
22442         gt_TYPE_SSIZE_T.
22443
22444 2003-11-24  Paul Eggert  <eggert@twinsun.com>
22445
22446         * modules/alloca: Remove dependency on xalloc.
22447
22448 2003-11-24  Paul Eggert  <eggert@twinsun.com>
22449
22450         * lib/alloca.c: Remove dependency on xalloc module.
22451         (xalloc_die): Remove.
22452         (memory_full) [!defined emacs]: New macro.
22453         [!defined emacs]: Don't include xalloc.h.
22454         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
22455         address arithmetic overflows.  Change datatypes a bit to avoid
22456         unnecessary casts.
22457
22458 2003-11-22  Jim Meyering  <jim@meyering.net>
22459
22460         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
22461         s/size/size_t/.
22462
22463 2003-11-21  Karl Berry  <karl@gnu.org>
22464
22465         * config/config.{sub,guess}: update from config.
22466
22467 2003-11-18  Karl Berry  <karl@gnu.org>
22468
22469         * config/config.{sub,guess}: update from config.
22470
22471         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
22472
22473 2003-11-17  Paul Eggert  <eggert@twinsun.com>
22474
22475         * README: Mention that S+T cannot overflow if S is the size of
22476         an existing object and T is sufficiently small.
22477
22478 2003-11-17  Jim Meyering  <jim@meyering.net>
22479
22480         On systems without utime and without a utimes function capable of
22481         dealing with a NULL struct utimbuf* argument, this utime replacement
22482         could -- in unusual circumstances -- leak a file descriptor.
22483         * lib/utime.c: Include <unistd.h> and <errno.h>.
22484         (utime_null): Be sure to close `fd' and to preserve errno.
22485         Reported by Geoff Collyer via Arnold Robbins.
22486
22487 2003-11-17  Bruno Haible  <bruno@clisp.org>
22488
22489         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
22490         (Depends-on): Add xsize.
22491
22492 2003-11-17  Bruno Haible  <bruno@clisp.org>
22493
22494         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
22495
22496 2003-11-17  Bruno Haible  <bruno@clisp.org>
22497
22498         * lib/vasnprintf.c (alloca): Remove fallback definition.
22499         (freea): Remove definition.
22500         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
22501         Reported by Paul Eggert.
22502
22503 2003-11-16  Paul Eggert  <eggert@twinsun.com>
22504             Bruno Haible  <bruno@clisp.org>
22505
22506         Protect against address arithmetic overflow.
22507         * lib/printf-args.h: Include stddef.h.
22508         (arguments): Change type of field 'count' to size_t.
22509         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
22510         'unsigned int' where appropriate.
22511         * lib/printf-parse.h: Include sys/types.h.
22512         (char_directive): Change type of *arg_index fields to ssize_t.
22513         (char_directives): Change type of fields 'count', max_*_length to
22514         size_t.
22515         * lib/printf-parse.c: Include sys/types.h and xsize.h.
22516         (SSIZE_MAX): Define fallback value.
22517         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
22518         instead of 'int' where appropriate. Check a_allocated, d_allocated
22519         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
22520         * lib/vasnprintf.c: Include xsize.h.
22521         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
22522         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
22523         overflow. Avoid wraparound when converting a width or precision from
22524         decimal to binary.
22525
22526 2003-11-16  Bruno Haible  <bruno@clisp.org>
22527
22528         Update from GNU gettext.
22529         * lib/printf-parse.c: Generalize to it can be compiled for wide
22530         strings.
22531         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
22532         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
22533         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
22534         SNPRINTF): New macros.
22535         Don't include <alloca.h> if the file is used inside libintl.
22536         (local_wcslen): New function, for Solaris 2.5.1.
22537         (VASNPRINTF): Use it instead of wcslen.
22538
22539 2003-11-16  Bruno Haible  <bruno@clisp.org>
22540
22541         * lib/xsize.h (xmax): New function.
22542         (xsum, xsum3, xsum4): Declare as "pure" functions.
22543
22544 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22545
22546         * modules/xalloc (Files): Undo latest change, since xalloc.h
22547         no longer needs SIZE_MAX or PTRDIFF_MAX.
22548
22549 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22550
22551         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
22552         gl_PTRDIFF_MAX.
22553
22554 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22555
22556         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
22557         "return", to pacify some unknown compiler.  Problem reported
22558         by Joerg Schilling.
22559
22560 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22561
22562         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
22563         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
22564         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
22565         heuristic is just as accurate as far as we know, and it removes a
22566         dependency on size_max.m4 and ptrdiff_max.m4.
22567
22568 2003-11-11  Bruno Haible  <bruno@clisp.org>
22569
22570         * modules/xsize (Files): Add m4/size_max.m4.
22571         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
22572
22573 2003-11-11  Bruno Haible  <bruno@clisp.org>
22574
22575         * m4/size_max.m4: New file.
22576         * m4/ptrdiff_max.m4: New file.
22577         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
22578         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
22579         (gl_XALLOC): Invoke it.
22580
22581 2003-11-11  Bruno Haible  <bruno@clisp.org>
22582
22583         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
22584         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
22585         defined.
22586
22587 2003-11-10  Paul Eggert  <eggert@twinsun.com>
22588
22589         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
22590         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
22591         rejected some allocations of exactly SIZE_MAX - 2 bytes.
22592         From Bruno Haible.
22593         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
22594         not (size_t) -1, since it's defined here.
22595
22596 2003-11-09  Karl Berry  <karl@gnu.org>
22597
22598         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
22599
22600 2003-11-06  Paul Eggert  <eggert@twinsun.com>
22601
22602         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
22603         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
22604         Reject sizes of exactly SIZE_MAX bytes.
22605         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
22606         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
22607
22608 2003-11-05  Bruno Haible  <bruno@clisp.org>
22609
22610         * lib/xsize.h: Include limits.h, to avoid a possible collision with
22611         SIZE_MAX defined in <limits.h> on Solaris.
22612
22613 2003-11-04  Jim Meyering  <jim@meyering.net>
22614
22615         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
22616         variable names, rather than @VAR@.
22617         * modules/poll: Likewise.
22618
22619 2003-11-04  Bruno Haible  <bruno@clisp.org>
22620
22621         * modules/xsize: New file.
22622         * modules/linebreak: Depend on xsize.
22623         * MODULES.html.sh (func_all_modules): Add xsize.
22624
22625 2003-11-04  Bruno Haible  <bruno@clisp.org>
22626
22627         * m4/xsize.m4: New file.
22628
22629 2003-11-04  Bruno Haible  <bruno@clisp.org>
22630
22631         * lib/xsize.h: New file.
22632         * lib/linebreak.c: Include xsize.h.
22633         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
22634         argument for overflow.
22635         Suggested by Paul Eggert.
22636
22637 2003-11-03  Karl Berry  <karl@gnu.org>
22638
22639         * config/config.{guess,sub}: update from config.
22640
22641 2003-11-03  Jim Meyering  <jim@meyering.net>
22642
22643         * modules/userspec (lib_SOURCES): Add userspec.h.
22644         (Include): Add "userspec.h".
22645         Improve description.
22646
22647 2003-11-03  Jim Meyering  <jim@meyering.net>
22648
22649         * lib/userspec.c: Include "userspec.h".
22650         * lib/userspec.h: New file.
22651
22652 2003-11-03  Bruno Haible  <bruno@clisp.org>
22653
22654         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
22655
22656 2003-11-03  Bruno Haible  <bruno@clisp.org>
22657
22658         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
22659         available, to avoid (extremely rare) race condition.
22660         Suggested by Paul Eggert.
22661
22662 2003-11-02  Karl Berry  <karl@gnu.org>
22663
22664         * config/srclist.txt (vasprintf.c): sync broken, sigh.
22665
22666 2003-10-31  Paul Eggert  <eggert@twinsun.com>
22667
22668         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
22669         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
22670         (read_filesystem_list): Set and use me_type_malloced.
22671         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
22672         whatever the type happens to be), for brevity and consistency.
22673         Check for size calculation overflow on Alphas running OSF/1.
22674
22675 2003-10-31  Jim Meyering  <jim@meyering.net>
22676
22677         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
22678
22679         * lib/linebuffer.c: Include <string.h> for declaration of memset.
22680
22681 2003-10-30  Paul Eggert  <eggert@twinsun.com>
22682             Bruno Haible  <bruno@clisp.org>
22683
22684         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
22685         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
22686
22687 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
22688
22689         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
22690         netbsd*-gnu*.  Suggested by Robert Millan.
22691
22692 2003-10-29  Paul Eggert  <eggert@twinsun.com>
22693
22694         * modules/group-member: Depend on stdbool.
22695
22696 2003-10-29  Paul Eggert  <eggert@twinsun.com>
22697
22698         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
22699
22700 2003-10-29  Paul Eggert  <eggert@twinsun.com>
22701
22702         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
22703         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
22704         after the 'gnu' in these cases.  This fixes some bugs in the
22705         previous change, and is based on suggestions by Robert Millan.
22706
22707 2003-10-29  Paul Eggert  <eggert@twinsun.com>
22708
22709         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
22710         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
22711         no longer needed.
22712         * lib/quotearg.c (quotearg_n_options): Use it.
22713         * lib/group-member.c: Include <stdbool.h>.
22714         (free_group_info): Arg is now const *; don't free arg.
22715         (get_group_info): Now returns bool and accepts struct group_info *,
22716         rather than returning a malloc'ed struct group_info *.
22717         All uses changed.  Check for overflow in internal size calculation.
22718
22719         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
22720         rather than xmalloc/xrealloc.
22721         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
22722         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
22723         conformance bug: the old code used a pointer after freeing the
22724         storage that it addressed.
22725         * lib/hash.c (hash_initialize): Simplify the code by using
22726         xalloc_oversized rather than doing it by hand.
22727         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
22728         the buffer preserved.  Use free and xmalloc instead.
22729         * lib/quotearg.c (quotearg_n_options): Likewise.
22730         Use a simpler test for size overflow.  Don't use xalloc_oversized
22731         because unsigned int might be wider than size_t (!); this suggests
22732         that we should switch from unsigned int to size_t for slot numbers.
22733
22734 2003-10-28  Paul Eggert  <eggert@twinsun.com>
22735
22736         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
22737         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
22738         NetBSD kernels.  Requested by Richard Stallman.
22739
22740 2003-10-27  Paul Eggert  <eggert@twinsun.com>
22741
22742         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
22743         to allocate the returned structure.  Do not allocate a subarray,
22744         as x2nrealloc will do that.
22745         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
22746         instead of xnrealloc.
22747         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
22748
22749 2003-10-27  Bruno Haible  <bruno@clisp.org>
22750
22751         * lib/stdbool_.h: Better support for BeOS.
22752
22753 2003-10-26  Paul Eggert  <eggert@twinsun.com>
22754
22755         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
22756         now uses inline.
22757
22758 2003-10-26  Paul Eggert  <eggert@twinsun.com>
22759
22760         * lib/xalloc.h (xalloc_oversized): New static inline function, for
22761         callers that want to do their own size-overflow checking.  Include
22762         <stdbool.h>, since xalloc_oversized returns bool.
22763         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
22764         to use xalloc_oversized.
22765
22766         Add two functions x2realloc, x2nrealloc, for programs that grow
22767         arrays dynamically by doubling their sizes.
22768         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
22769         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
22770         New functions.
22771
22772         Port to C99 semantics for 'inline' of external functions.
22773         Bug reported by Bruno Haible.
22774         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
22775         with the old contents of xnmalloc.
22776         (xnmalloc, xmalloc): Use it.
22777         (xnrealloc_inline): New static inline function,
22778         with the old contents of xnrealloc.
22779         (xnrealloc, xrealloc): Use it.
22780
22781         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
22782         that.
22783
22784 2003-10-26  Karl Berry  <karl@gnu.org>
22785
22786         * config/srclist.txt (COPYING.DOC): no longer available from
22787         /gd/gnuorg; don't know where the ultimate source is.
22788
22789 2003-10-25  Paul Eggert  <eggert@twinsun.com>
22790
22791         Fix several address-calculation bugs in the hash modules,
22792         plus some minor code cleanup.
22793
22794         * lib/hash.h: Include <stdbool.h>, for bool.
22795         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
22796         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
22797         hash_get_n_entries, hash_get_max_bucket_length,
22798         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
22799         hash_rehash): Use size_t rather than unsigned.
22800         * lib/hash.c (struct hash_table, hash_get_n_buckets,
22801         hash_get_n_buckets_used, hash_get_n_entries,
22802         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
22803         hash_get_entries, hash_do_for_each, hash_string, is_prime,
22804         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
22805         Likewise.
22806         (SIZE_MAX): Define if not defined.
22807         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
22808         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
22809         hash_print):
22810         Use const * when possible.
22811         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
22812         (check_tuning): Fix bug: if tuning parameters were very close to
22813         0 or 1, rounding errors could have caused subscript violations.
22814         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
22815         (hash_initialize): Add 'fail:' label
22816         to free table and return NULL, and use it to simplify code.
22817         Use calloc rather than clearing the storage ourself.
22818         (hash_initialize, hash_rehash): Check for arithmetic overflow in
22819         buffer size calculations.
22820         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
22821         Include <stddef.h>, for size_t.
22822         * lib/hash-pjw.c (hash_pjw): Likewise.
22823         Switch to method described by Bruno Haible.
22824         Include <limits.h>, for CHAR_BIT.
22825         (SIZE_BITS): New macro.
22826
22827 2003-10-23  Paul Eggert  <eggert@twinsun.com>
22828
22829         * m4/getline.m4 (AM_FUNC_GETLINE):
22830         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
22831         hosts.  Problem reported by Derek Robert Price in
22832         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
22833         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
22834         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
22835
22836 2003-10-21  Paul Eggert  <eggert@twinsun.com>
22837
22838         * lib/getndelim2.c (getndelim2): When size calculation overflows,
22839         ceiling the allocation at NMAX bytes rather than silently
22840         discarding input bytes before NMAX is reached.  This makes
22841         a difference only if NMAX exceeds SIZE_MAX / 2.
22842
22843         * lib/obstack.c: Merge from glibc.
22844         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
22845         Add libc_hidden_def (_obstack_newchunk).
22846         (_obstack_free) [! defined _LIBC]: Remove.
22847         [defined _LIBC]: Make a strong alias from obstack_free, rather than
22848         a clone of the function body.
22849         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
22850         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
22851
22852         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
22853         glibc.
22854         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
22855         arg to memcpy.
22856
22857         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
22858         (obstack_ptr_grow_fast, obstack_int_grow_fast):
22859         Don't use lvalue casts, as GCC plans to remove support for them
22860         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
22861         was also present in the non-GCC version, indicating that this
22862         code had always been buggy and had never been widely used.
22863         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
22864         Use the fast variant of each macro, rather than copying the
22865         definiens of the fast variant; that way, we'll be more likely to
22866         catch future bugs in the fast variants.
22867
22868 2003-10-20  Bruno Haible  <bruno@clisp.org>
22869
22870         * modules/wait-process: New file.
22871         * MODULES.html.sh (func_all_modules): Add wait-process.
22872
22873 2003-10-20  Bruno Haible  <bruno@clisp.org>
22874
22875         * m4/wait-process.m4: New file.
22876
22877 2003-10-20  Bruno Haible  <bruno@clisp.org>
22878
22879         * lib/wait-process.h: New file, from GNU gettext.
22880         * lib/wait-process.c: New file, from GNU gettext.
22881
22882 2003-10-19  Jim Meyering  <jim@meyering.net>
22883
22884         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
22885         HPUX 10.20.
22886
22887 2003-10-18  Karl Berry  <karl@gnu.org>
22888
22889         * config/config.guess: update from config.
22890
22891 2003-10-16  Paul Eggert  <eggert@twinsun.com>
22892
22893         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
22894         (getgroups): First arg is int, not size_t.
22895         Don't let 'free' mangle errno.
22896
22897 2003-10-16  Paul Eggert  <eggert@twinsun.com>
22898
22899         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
22900
22901 2003-10-16  Karl Berry  <karl@gnu.org>
22902
22903         * config/config.{guess,sub}: update from config.
22904
22905 2003-10-16  Jim Meyering  <jim@meyering.net>
22906
22907         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
22908         memcpy.
22909
22910 2003-10-15  Paul Eggert  <eggert@twinsun.com>
22911
22912         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
22913         (SIZE_MAX): Remove.
22914         (new_exclude, add_exclude_file): Initial size no longer needs to
22915         be a power of 2.
22916         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
22917         our own address arithmetic overflow checking.
22918
22919         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
22920         (fnmatch): Do not alloca more than 2000 wide characters;
22921         instead, use malloc for large buffers.
22922         Check for address arithmetic overflow, and return -1
22923         with errno set to ENOMEM in that case.
22924         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
22925         (NEW_PATTERN): Do not alloca more than 8000 bytes;
22926         instead, return -1.  Check for address arithmetic overflow.
22927
22928 2003-10-14  Paul Eggert  <eggert@twinsun.com>
22929
22930         Handle invalid suffixes and overflow independently, so that
22931         callers can treat them independently as needed.  Fix some bugs in
22932         suffix handling, e.g., "100k@" was not diagnosed as an invalid
22933         suffix for a human-readable blocksize.  The major caller-visible
22934         change is the addition of a new
22935         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
22936         that both overflow and suffix chars were found.
22937
22938         * lib/human.c (humblock): Don't check separately for invalid suffix
22939         char; that is xstrtoumax's job (now that its bug is fixed).
22940         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
22941         INTMAX_MAX]: New macros.
22942         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
22943         TYPE_MAXIMUM): New macros.
22944         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
22945         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
22946         if overflow occurs, as it's what __strtol does and it's more useful
22947         in practice.
22948         (__xstrtol): If __strtol reports some error other than ERANGE,
22949         reflect it to the caller as LONGINT_INVALID.  If it reports
22950         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
22951         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
22952         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
22953         value.
22954         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
22955         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
22956         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
22957         [defined UINTMAX_MAX]: New macros.
22958
22959 2003-10-14  Bruno Haible  <bruno@clisp.org>
22960
22961         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
22962
22963 2003-10-14  Bruno Haible  <bruno@clisp.org>
22964
22965         * m4/sig_atomic_t: New file, from GNU gettext.
22966         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
22967
22968 2003-10-14  Bruno Haible  <bruno@clisp.org>
22969
22970         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
22971         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
22972         Also use volatile where needed.
22973
22974 2003-10-12  Paul Eggert  <eggert@twinsun.com>
22975
22976         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
22977         Change maintainer from Bruno Haible to 'all'.
22978
22979 2003-10-12  Paul Eggert  <eggert@twinsun.com>
22980
22981         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
22982
22983 2003-10-12  Paul Eggert  <eggert@twinsun.com>
22984
22985         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
22986         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
22987         and define in terms of the other primitives.
22988         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
22989         (SIZE_MAX): Define if not already defined.
22990         (array_size_overflow): New function.
22991         (xalloc_die): Abort instead of exiting if 'error' returns.
22992         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
22993         (xmalloc, xrealloc): Use them.
22994         (xcalloc): Check for address arithmetic overflow.
22995         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
22996         a bit faster than strcpy.
22997
22998 2003-10-10  Simon Josefsson  <jas@extundo.com>
22999
23000         * modules/argp (Depends-on): Add restrict and strcase.
23001
23002 2003-10-10  Simon Josefsson  <jas@extundo.com>
23003
23004         * m4/argp.m4: Add AC_C_INLINE.
23005
23006 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23007
23008         Merge getpass from libc, plus a few fixes.
23009
23010         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
23011         Include <stdbool.h>.
23012         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
23013         __fsetlocking to empty.
23014         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
23015         do include <bits/libc-lock.h>.
23016         Do not include <fcntl.h>; not needed.
23017         [_LIBC]: Include <wchar.h>.
23018         (NOTCANCEL_MODE): New macro.
23019         (flockfile, funlockfile) [_LIBC]: New macros.
23020         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
23021         [!_LIBC]: New macros.
23022         (call_fclose): New function.
23023         (getpass): Use it.  Save tty stream separately; this simplifies the
23024         code and makes it more reliable if stdin happens to equal stdout.
23025         Invoke __fsetlocking on tty.
23026         Handle thread cancellation if needed.
23027         Namespace cleanup (use __tcgetattr, __getline).
23028         Use bool for Booleans.
23029         [USE_IN_LIBIO]: Handle wide streams.
23030         [!_LIBC]: Unconditionally do the fseek, since we don't know what
23031         stream might go where.
23032
23033         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
23034         doesn't have to include <stdio.h> before us.
23035         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
23036         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
23037         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
23038         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
23039         if not declared, so that we can use getpass.c code from libc without
23040         rewriting it.
23041         (flockfile, ftrylockfile, funlockfile): New macros.
23042
23043 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23044
23045         * modules/getpass: Depend on stdbool.
23046
23047 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23048
23049         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
23050
23051 2003-10-07  Karl Berry  <karl@gnu.org>
23052
23053         * config/config.{guess,sub}: update from config.
23054
23055 2003-10-06  Jim Meyering  <jim@meyering.net>
23056             Bruno Haible  <bruno@clisp.org>
23057
23058         This lets translators provide better translations for the
23059         "Written by ..." part of --version output.
23060         * lib/version-etc.h: Include stdarg.h.
23061         (version_etc_copyright): Declare as readonly.
23062         (version_etc): Make this function variadic with a NULL-terminated list
23063         of author name strings.
23064         (version_etc_va): New declaration.
23065         * lib/version-etc.c: Include stdarg.h, stdlib.h.
23066         (version_etc_copyright): Declare as readonly.
23067         (version_etc_va): New function. Provide a different translatable string
23068         for each possible number of authors < 10. Abbreviate when there are 10
23069         authors or more.
23070         (version_etc): Make this function variadic. Call version_etc_va.
23071         Suggestion from Gary V. Vaughan.
23072
23073         * lib/long-options.h (parse_long_options): Change prototype: the
23074         authors string is moved to the end and becomes variadic.
23075         * lib/long-options.c: Include stdarg.h.
23076         (parse_long_options): Make this function variadic, too.
23077         Call version_etc_va, not version_etc.
23078
23079 2003-10-06  Bruno Haible  <bruno@clisp.org>
23080
23081         * modules/version-etc-2: Remove file.
23082         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
23083
23084 2003-10-06  Bruno Haible  <bruno@clisp.org>
23085
23086         * modules/fatal-signal: New file.
23087         * MODULES.html.sh (func_all_modules): Add fatal-signal.
23088
23089 2003-10-06  Bruno Haible  <bruno@clisp.org>
23090
23091         * m4/fatal-signal.m4: New file.
23092         * m4/signalblocking.m4: New file, from GNU gettext.
23093
23094 2003-10-06  Bruno Haible  <bruno@clisp.org>
23095
23096         * lib/version-etc-2.h: Remove file.
23097         * lib/version-etc-2.c: Remove file.
23098
23099 2003-10-06  Bruno Haible  <bruno@clisp.org>
23100
23101         * lib/fatal-signal.h: New file, from GNU gettext.
23102         * lib/fatal-signal.c: New file, from GNU gettext.
23103
23104 2003-10-05  Paul Eggert  <eggert@twinsun.com>
23105
23106         * README: Rework advice for preventing empty .o files.
23107         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
23108         not <sys/types.h>.
23109
23110 2003-10-04  Karl Berry  <karl@gnu.org>
23111
23112         * lib/argp*: update from libc.
23113
23114 2003-10-04  Karl Berry  <karl@gnu.org>
23115
23116         * config/config.{guess,sub}: update from config.
23117
23118 2003-10-02  Bruno Haible  <bruno@clisp.org>
23119
23120         * modules/lchown (Include): Add lchown.h.
23121         * modules/time_r (Include): Use "..." syntax.
23122         * modules/xgetdomainname (Include): Add xgetdomainname.h.
23123
23124 2003-10-01  Simon Josefsson  <jas@extundo.com>
23125
23126         * MODULES.html.sh (func_all_modules): Move gethostname from section
23127         'based on' to section 'lacking' POSIX:2001.
23128
23129 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
23130
23131         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
23132         to output mode on the same stream.
23133
23134 2003-09-29  Paul Eggert  <eggert@twinsun.com>
23135
23136         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
23137         Fix arg typo in previous patch.
23138
23139 2003-09-28  Jim Meyering  <jim@meyering.net>
23140
23141         * lib/error.c: Correct cpp indentation.
23142
23143 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23144
23145         * modules/free: New file.
23146
23147 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23148
23149         * m4/free.m4: New file.
23150
23151 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23152
23153         * lib/minmax.h (MIN, MAX)
23154         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
23155         Omit the special code that used __typeof__, since we worry that
23156         it could be more trouble than it's worth.  See:
23157         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
23158         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
23159
23160         * lib/free.c: New file.
23161
23162 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
23163
23164         Trivial fixes to Makefile.am parts of module listings.
23165         * modules/strstr: Append strstr.h to lib_SOURCES.
23166         * modules/strcase: Likewise, for strcase.h.
23167
23168 2003-09-27  Karl Berry  <karl@gnu.org>
23169
23170         * config/mkinstalldirs: update from automake.
23171
23172 2003-09-26  Paul Eggert  <eggert@twinsun.com>
23173
23174         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
23175         (error_tail): Do not loop, reallocating temporary buffer, since
23176         the output cannot contain more wide characters than the input
23177         contains bytes, the size must be big enough already.  This avoids
23178         one potential size overflow calculation.  Check for size overflow
23179         when calculating temporary buffer size.  Free temporary buffer
23180         when done, if it was allocated with malloc; this plugs a memory
23181         leak.  Remove casts from void * to pointers, that are no longer
23182         needed now that we're assuming C89 or better.
23183
23184         Merge error changes from glibc.
23185
23186         * lib/error.c, error.h: Update copyright notice header to match glibc.
23187         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
23188         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
23189         Disable cancellation while printing error.
23190         * lib/error.h: Prepend __ to parameter names.
23191
23192 2003-09-26  Jim Meyering  <jim@meyering.net>
23193
23194         * lib/error.c (error_tail): Move some declarations
23195         into inner scope where the local variables are used.
23196
23197 2003-09-26  Bruno Haible  <bruno@clisp.org>
23198
23199         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
23200         stpncpy().
23201         Don't define stpncpy through config.h; it's now done through stpncpy.h.
23202
23203 2003-09-26  Bruno Haible  <bruno@clisp.org>
23204
23205         * lib/stpncpy.h (gnu_stpncpy): New declaration.
23206         (stpncpy): Define as alias for gnu_stpncpy.
23207         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
23208
23209 2003-09-25  Simon Josefsson  <jas@extundo.com>
23210
23211         * lib/xgetdomainname.h: New file.
23212         * lib/xgetdomainname.c: New file.
23213
23214 2003-09-25  Simon Josefsson  <jas@extundo.com>
23215             Bruno Haible  <bruno@clisp.org>
23216
23217         * modules/getdomainname: New file.
23218         * modules/xgetdomainname: New file.
23219         * MODULES.html.sh (func_all_modules): Add getdomainname,
23220         xgetdomainname.
23221
23222 2003-09-25  Simon Josefsson  <jas@extundo.com>
23223             Bruno Haible  <bruno@clisp.org>
23224
23225         * m4/getdomainname.m4: New file.
23226
23227 2003-09-25  Simon Josefsson  <jas@extundo.com>
23228             Bruno Haible  <bruno@clisp.org>
23229
23230         * lib/getdomainname.h: New file.
23231         * lib/getdomainname.c: New file.
23232
23233 2003-09-25  Karl Berry  <karl@gnu.org>
23234
23235         * lib/argp-fmtstream.c, argp-help.c: update from libc.
23236
23237 2003-09-25  Karl Berry  <karl@gnu.org>
23238
23239         * config/install-sh: update from automake.
23240
23241 2003-09-25  Bruno Haible  <bruno@clisp.org>
23242
23243         * modules/version-etc-2: New file, from modules/version-etc with
23244         modifications.
23245         * MODULES.html.sh (func_all_modules): Add version-etc-2.
23246
23247 2003-09-25  Bruno Haible  <bruno@clisp.org>
23248
23249         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
23250         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
23251
23252 2003-09-24  Simon Josefsson  <jas@extundo.com>
23253
23254         * modules/xgethostname: Add xgethostname.h.
23255
23256 2003-09-24  Paul Eggert  <eggert@twinsun.com>
23257
23258         * lib/linebuffer.c (freebuffer): Don't free the argument, just
23259         the buffer associated with the argument.  Bug reported by
23260         Simon Josefsson.
23261
23262 2003-09-24  Paul Eggert  <eggert@twinsun.com>
23263
23264         * README: Document assumptions that 'int' is at least 32 bits
23265         wide, that integer arithmetic is 2's complement without overflow,
23266         that there are no holes in integer values, that adding sizes of
23267         two nonoverlapping objects can't overflow, and that all-bits-zero
23268         yields scalar zero.  Fix spelling and capitalization typos.
23269
23270 2003-09-19  Karl Berry  <karl@gnu.org>
23271
23272         * lib/argp.h: update from libc.
23273
23274 2003-09-17  Paul Eggert  <eggert@twinsun.com>
23275
23276         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
23277         to avoid spurious warnings like "AC_RUN_IFELSE was called before
23278         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
23279
23280 2003-09-17  Paul Eggert  <eggert@twinsun.com>
23281
23282         * gnulib-tool: Use "test -h", not "test -L", for portability
23283         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
23284         (tags_regexp): Remove, since \| doesn't conform to POSIX.
23285         (sed_extract_prog): Issue s commands one-by-one, rather than
23286         using \| in one s command.
23287
23288 2003-09-16  Paul Eggert  <eggert@twinsun.com>
23289
23290         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
23291         input error, instead of returning NULL the next time we are called
23292         (and therefore losing track of errno).
23293
23294 2003-09-16  Bruno Haible  <bruno@clisp.org>
23295
23296         * gnulib-tool (func_create_testdir): Warn about duplicated
23297         dependencies.
23298
23299 2003-09-15  Paul Eggert  <eggert@twinsun.com>
23300
23301         * modules/argmatch, modules/fatal, modules/obstack,
23302         modules/xalloc, modules/xgethostname: Sort dependencies by
23303         importance, not alphabetically.
23304
23305 2003-09-15  Paul Eggert  <eggert@twinsun.com>
23306
23307         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
23308         fails, so that the caller gets the proper errno.
23309
23310         * lib/readutmp.c (read_utmp): Likewise.
23311         Check for fstat error.  Close stream and free storage
23312         when failing.
23313
23314 2003-09-14  Karl Berry  <karl@gnu.org>
23315
23316         * config/srclist.txt (strdup.c): disable for c89 changes.
23317
23318 2003-09-14  Jim Meyering  <jim@meyering.net>
23319
23320         * lib/getloadavg.c: Correct cpp indentation.
23321         * lib/strdup.c: Likewise.
23322         * lib/vasnprintf.c: Likewise.
23323
23324 2003-09-14  Bruno Haible  <bruno@clisp.org>
23325
23326         * modules/fwriteerror: New file.
23327         * MODULES.html.sh (func_all_modules): Add fwriteerror.
23328
23329 2003-09-14  Bruno Haible  <bruno@clisp.org>
23330
23331         * lib/fwriteerror.h: New file.
23332         * lib/fwriteerror.c: New file.
23333
23334 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23335
23336         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
23337         modules/xgethostname, modules/xalloc: Depend on exit.
23338
23339 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23340
23341         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
23342
23343         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
23344         and AC_MINIX, too, so that their extensions are available.
23345
23346         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
23347         This macro has been superseded by gl_BACKUPFILE.
23348
23349         More patches to assume C89 or better.
23350
23351         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
23352
23353         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
23354         unconditionally.
23355         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
23356         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
23357         Include <string.h>, <stdlib.h> unconditionally.
23358         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
23359         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
23360         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
23361         headers or for string.h.
23362         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
23363         or strtoul.
23364
23365         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
23366         headers.
23367         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
23368         * m4/userspec.m4 (gl_USERSPEC): Likewise.
23369         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
23370         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
23371         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23372         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
23373         memcpy, memset.
23374         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
23375         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
23376         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
23377         strtol.
23378         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
23379         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
23380         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
23381         strtoul.
23382
23383 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23384
23385         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
23386         * lib/obstack.c [!defined _LIBC]: Likewise.
23387         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
23388         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
23389         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
23390
23391         More changes to assume C89 or better.
23392
23393         * lib/error.c (error_tail): Assume vprintf.
23394
23395         * lib/argmatch.c (getenv): Remove decl.
23396         * lib/progreloc.c (get_full_program_name): Define via prototype.
23397         * lib/setenv.c (clearenv): Likewise.
23398         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
23399         needed.
23400         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
23401         (malloc, memcpy): Remove decls.
23402         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
23403         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
23404         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23405         (memcpy): Remove macro.
23406         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
23407         (__P): Remove.  All uses removed.
23408         (PTR): Remove.  All uses changed to void *.
23409         (CHAR_BIT, NULL): Remove.
23410         (spaces, zeros, memset_space, memset_zero)
23411         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
23412         Remove.
23413         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
23414         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
23415         Define with prototype.
23416         Remove now-unnecessary prototype decl.
23417         (extra_args_spec): Assume ANSI C.  All uses changed.
23418         (extra_args_spec_iso): Remove.
23419         (my_strftime, emacs_strftimeu): Define via prototype.
23420         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
23421         unconditionally.
23422         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
23423         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
23424         (strtoul, strtol): Remove decls.
23425         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
23426         LONG_MAX): Remove.
23427         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23428         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
23429         (LOCALE_PARAM_PROTO): New macro.
23430         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
23431         (INTERNAL (strtol), strtol): Define with a prototype.
23432         (PARAMS): Remove.  All uses removed.
23433         * lib/tempname.c: Include <string.h> unconditionally.
23434         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
23435         * lib/xgethostname.c (main): Define with a prototype.
23436         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
23437         Include <stdlib.h> unconditionally.
23438         (calloc, malloc, realloc, free): Remove decls.
23439         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
23440         Include <stdlib.h> unconditionally.  Sort include file names.
23441         (strtod): Remove.
23442         (xstrtod): Define with a prototype.
23443         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
23444         (strtol, strtoul): Remove decls.
23445
23446 2003-09-11  Paul Eggert  <eggert@twinsun.com>
23447
23448         More patches to assume C89 or better.
23449         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
23450         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
23451         string.h, memchr, STDC_HEADERS.
23452
23453 2003-09-11  Paul Eggert  <eggert@twinsun.com>
23454
23455         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
23456         Include <stdlib.h>, <string.h> unconditionally.
23457         Remove now-unnecessary cast to char *.
23458         * lib/strnlen.c: Include <string.h> unconditionally.
23459         * lib/yesno.c (yesno): Define with a prototype.
23460
23461 2003-09-11  Bruno Haible  <bruno@clisp.org>
23462
23463         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
23464
23465 2003-09-10  Jim Meyering  <jim@meyering.net>
23466
23467         * lib/error.c: Correct indentation of cpp directives.
23468
23469 2003-09-10  Bruno Haible  <bruno@clisp.org>
23470
23471         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
23472         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
23473         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
23474         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
23475         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
23476         <stdlib.h> and <string.h> checks.
23477         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
23478         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
23479
23480 2003-09-10  Bruno Haible  <bruno@clisp.org>
23481
23482         * lib/strcspn.c: Include <string.h> unconditionally.
23483         * lib/strpbrk.c: Include <string.h> unconditionally.
23484         * lib/strstr.c: Include <string.h> unconditionally.
23485         * lib/unicodeio.c: Include <string.h> unconditionally.
23486         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
23487         * lib/unsetenv.c: Likewise.
23488         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
23489         * lib/yesno.c: Include <stdlib.h> unconditionally.
23490         (rpmatch): Add prototype.
23491
23492 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23493
23494         More patches to assume C89 or better.
23495         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
23496         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
23497         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
23498         or for string.h.
23499         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
23500         stdlib.h.
23501         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
23502         C headers.
23503         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
23504         string.h.
23505         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
23506         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
23507         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
23508         or for string.h.
23509         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
23510         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
23511         C headers.
23512         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
23513         memcpy.
23514         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
23515         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
23516         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
23517         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
23518         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
23519         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
23520         string.h, free.
23521         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
23522         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
23523         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
23524         C headers, or for string.h.
23525         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
23526         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
23527         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
23528         headers, memory.h, stdlib.h, string.h, strings.h.
23529         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
23530         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
23531         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
23532         strchr.
23533         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
23534         headers, memory.h, string.h.
23535         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
23536         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
23537         free.
23538         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
23539         headers.
23540         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
23541         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
23542         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
23543         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
23544         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
23545
23546 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23547
23548         More K&R removal.
23549
23550         * lib/acosl.c (main): Use a prototype.
23551         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
23552         tanl.c: Likewise.
23553
23554         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
23555
23556         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
23557         (getopt, etopt_long, getopt_long_only, _getopt_internal)
23558         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
23559         with a prototype.
23560         * lib/getopt.c (const): Remove macro.
23561         Include <string.h> unconditionally.
23562         (my_index): Remove; all uses changed to strchr.
23563         (strlen): Remove decl.
23564         (exchange): Remove forward decl; no longer needed.
23565         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
23566         Define with prototype.
23567         * lib/getopt1.c (const): Remove macro.
23568         (getopt_long, getopt_long_only, main): Define with prototype.
23569
23570         * lib/getugroups.c: Include <string.h> unconditionally.
23571
23572         * lib/getusershell.c: Include <stdlib.h> unconditionally.
23573         (getusershell, setusershell, endusershell, readname, main):
23574         Define with prototypes.
23575
23576         * lib/group-member.c: Include group-member.h first.
23577         Include <stdlib.h> unconditionally.
23578
23579         * lib/hard-locale.c: Include hard-locale.h first.
23580         Include <stdlib.h>, <string.h> unconditionally.
23581
23582         * lib/hash.c (free, malloc): Remove decls.
23583         Include <stdlib.h> unconditionally.
23584
23585         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
23586         (getenv): Do not declare.
23587
23588         * lib/idcache.c: Include <string.h> unconditionally.
23589
23590         * lib/long-options.c: Include long-options.h first, to test interface.
23591         Include <stdlib.h> unconditionally.
23592
23593         * lib/makepath.c: Include makepath.h first, to test interface.
23594         Include <stdlib.h> and <string.h> unconditionally.
23595
23596         * lib/linebuffer.c: Include <stdlib.h>.
23597         (free): Remove decl.
23598
23599         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
23600         stddef.h. rpl_malloc returns void *, not char *.
23601         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
23602         prototype.
23603
23604         * lib/md5.h: Include <limits.h> unconditionally.
23605         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
23606         (__P): Remove; all uses removed.
23607         * lib/md5.c: Include "md5.h" first.
23608         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
23609         md5_buffer, md5_process_bytes, md5_process_block):
23610         Define with prototypes.
23611         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
23612         * lib/sha.c: Include "sha.h" first.
23613         Include <stdlib.h>, <string.h> unconditionally.
23614
23615         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
23616         * lib/memcmp.c (__ptr_t): Likewise.
23617         * lib/memrchr.c (__ptr_t): Likewise.
23618         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
23619         Include <string.h> unconditionally.
23620         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
23621         * lib/memchr.c: Include <stdlib.h> unconditionally.
23622         * lib/memchr.c (LONG_MAX): Remove.
23623         * lib/memrchr.c (LONG_MAX): Likewise.
23624         * lib/memchr.c (__memchr): Define via a prototype.
23625         * lib/memrchr.c (__memrchr): Likewise.
23626         * lib/memcmp.c (__P): Remove, and remove all uses.
23627         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
23628         Remove forward decls; no longer needed.
23629         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
23630         Use types required by C89 in prototype.
23631
23632         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
23633         * lib/savedir.c: Likewise.
23634         * lib/mkdir.c (free): Remove decl.
23635         * lib/rmdir.c (rmdir): Define with a prototype.
23636         * lib/savedir.c: Include savedir.h first, to test interface.
23637
23638         * lib/mktime.c (STDC_HEADERS): Remove.
23639         Include <stdlib.h>, <string.h> unconditionally.
23640
23641         * lib/modechange.c: Include <stdlib.h> unconditionally.
23642         (malloc): Remove decl.
23643
23644         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
23645         (free): Remove decl.
23646
23647         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
23648         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
23649         (This type really should be intptr_t, but that's a C99ism.)
23650         (_obstack_memcpy): Remove: all uses changed to memcpy.
23651         Include <string.h> unconditionally.
23652         (struct obstack): Assume __STDC__ for types of members
23653         chunkfun, freefun, extra_arg.
23654         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
23655         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
23656         obstack_begin, obstack_specify_allocation,
23657         obstack_specify_allocation_with_arg, obstack_chunkfun,
23658         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
23659         Remove unprototyped decls and the macros that use them.
23660         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
23661         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
23662         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
23663         (defined __STDC__ && __STDC__)]:
23664         Remove nonprototyped code.
23665         Include <stdlib.h> unconditionally.
23666         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
23667         _obstack_allocated_p, _obstack_free, obstack_free,
23668         _obstack_memory_used, print_and_abort):
23669         Define using prototypes.
23670         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
23671         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
23672         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
23673         obstack_next_free, obstack_object_size, obstack_room) [0]:
23674         Remove unused, unprototyped code.
23675
23676         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
23677
23678         * lib/physmem.c (physmem_total, physmem_available, main): Define
23679         with prototypes.
23680
23681         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
23682         (main): Define with a prototype.
23683
23684         * lib/posixver.c (getenv): Remove decl.
23685
23686         * lib/putenv.c (malloc): Returns void *, not char *.
23687         Include <string.h> unconditionally.
23688         (strchr, memcpy, NULL): Do not define.
23689
23690         * lib/readtokens.c: Include readtokens.h first, to test interface.
23691         Include <stdlib.h>, <string.h> unconditionally.
23692         (init_tokenbuffer): Define with a prototype.
23693
23694         * lib/regex.c (PARAMS): Remove.  All uses removed.
23695         All uses of _RE_ARGS removed, too.
23696         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
23697         unconditionally.
23698         (bzero): Assume memset exists.
23699         (memcmp, memcpy, NULL): Remove.
23700         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
23701         char, or assignments to local vars of type signed char.
23702         (init_syntax_once, PREFIX(extract_number_and_incr),
23703         PREFIX(print_partial_compiled_pattern),
23704         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
23705         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
23706         PREFIX(regex_grow_registers), PREFIX(regex_compile),
23707         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
23708         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
23709         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
23710         wcs_compile_range, byte_compile_range, truncate_wchar,
23711         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
23712         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
23713         count_mbs_length, wcs_re_match_2_internal,
23714         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
23715         PREFIX(alt_match_null_string_p),
23716         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
23717         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
23718         regfree, PREFIX(extract_number)): Define with prototype.  Remove
23719         now-unnecessary declaration, if any.
23720         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
23721         regcomp, regexec):
23722         Remove now-unnecessary casts among pointer types.
23723         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
23724
23725         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
23726         (free): Remove decl.
23727
23728         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
23729
23730         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
23731         (free): Remove decl.
23732
23733         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
23734         * lib/xgetcwd.c: Likewise.
23735
23736         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
23737         (free): Remove decl.
23738
23739         * lib/strchrnul.c (strchrnul): Define with a prototype.
23740         Fix bug: c_in was not converted to char before searching.
23741
23742         The following changes are not K&R related:
23743
23744         * lib/group-member.h: Include <sys/types.h>, so that this file is
23745         self-contained.
23746         * lib/makepath.h: Likewise.
23747
23748         * lib/getusershell.c (readname, default_index, line_size, readname):
23749         Use size_t, not int, for sizes.
23750         (readname): If the size overflows, report an error instead of
23751         looping forever.
23752
23753 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23754
23755         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
23756         libc.
23757
23758 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23759
23760         * README: New section: portability guidelines.
23761
23762 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
23763
23764         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
23765         C89 spec.
23766
23767 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
23768
23769         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
23770
23771 2003-09-08  Paul Eggert  <eggert@twinsun.com>
23772
23773         Assume C89 or better; remove K&R cruft.
23774         A few of these changes were first proposed by Derek Robert Price
23775         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
23776
23777         * lib/addext.c: Include <string.h> unconditionally.
23778         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
23779         Don't declare getenv or malloc.
23780
23781         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
23782         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
23783         (NULL): Remove.
23784         (find_stack_direction, alloca): Use prototypes.
23785
23786         * lib/atexit.c (atexit): Define using a prototype.
23787
23788         * lib/basename.c, dirname.c, stripslash.c:
23789         Include <string.h> unconditionally.
23790
23791         * lib/bcopy.c: Include <stddef.h>.
23792         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
23793
23794         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
23795
23796         * lib/error.h (error, error_at_line, error_print_progname)
23797         [! (defined (__STDC__) && __STDC__)]: Remove decls.
23798         * lib/error.c: Include error.h first, to check interface.
23799         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
23800         (VA_START): Remove; all uses changeed to va_start.
23801         (exit, strerror): Remove decls.
23802         (error_print_progname): Prototype uncondionally.
23803         Don't include <errno.h>; no longer needed.
23804         (private_strerror): Remove.
23805         (error_tail): Always define.
23806         (error, error_at_line): Assume C89 or better; always use prototypes.
23807         * lib/fatal.c: Include "fatal.h" first, to test interface.
23808         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
23809         (VA_START): Remove; all uses changed to va_start.
23810         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
23811         this case.
23812         (exit): Remove decl.
23813         (fatal): Prototype unconditionally.  Assume va_start works.
23814         Abort at end, to pacify gcc.
23815
23816         * lib/euidaccess.c (main): Define with a prototype.
23817
23818         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
23819
23820         * lib/exitfail.c: Include <stdlib.h> unconditionally.
23821
23822         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
23823         prototypes.
23824         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
23825         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
23826         (getenv): Remove decl.
23827         (fnmatch): Define using a prototype.
23828         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
23829         (FCT): Define using a prototype.
23830
23831         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
23832
23833         * lib/gethostname.c: Include <stddef.h>.
23834         (gethostname): Define with prototype.  Length is size_t, not int.
23835
23836 2003-09-08  Paul Eggert  <eggert@twinsun.com>
23837
23838         Assume C89 or better; remove K&R cruft.
23839         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
23840         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
23841         string.h, getenv, malloc.
23842         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
23843         headers.
23844         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
23845         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
23846         do not check for strerror.
23847         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
23848         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
23849         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
23850         do not check for doprnt or vprintf.
23851         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
23852         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
23853
23854 2003-09-08  Paul Eggert  <eggert@twinsun.com>
23855
23856         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
23857         getversion.c should have been removed then, but was accidentally
23858         preserved.
23859
23860         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
23861         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
23862
23863 2003-09-08  Karl Berry  <karl@gnu.org>
23864
23865         * config/config.sub, config.guess, srclistvars.sh: update from savannah
23866                 config, forget about prep.
23867
23868         * config/depcomp, missing: update from automake.
23869
23870 2003-09-07  Paul Eggert  <eggert@twinsun.com>
23871
23872         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
23873         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
23874
23875 2003-09-07  Paul Eggert  <eggert@twinsun.com>
23876
23877         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
23878         copy_tm_result.  Bug reported by Simon Josefsson in
23879         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
23880
23881 2003-09-06  Paul Eggert  <eggert@twinsun.com>
23882
23883         * m4/time_r.m4: New file.
23884         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
23885         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
23886         is. Check for timegm declaration.
23887         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
23888         Do not check for gmtime_r.
23889         Replace mktime if __mktime_internal does not exist and if mktime
23890         hasn't been replaced already.
23891
23892 2003-09-06  Paul Eggert  <eggert@twinsun.com>
23893
23894         * lib/time_r.c, lib/time_r.h: New files.
23895
23896         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
23897         __localtime_r.
23898         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
23899         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
23900
23901         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
23902         __gmtime_r.
23903         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
23904         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
23905         Include <time_r.h>.
23906
23907         * lib/timegm.c: Switch to glibc implementation, with the following
23908         changes:
23909         [defined HAVE_CONFIG_H]: Include <config.h>.
23910         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
23911         (__mktime_internal) [!defined _LIBC]: New decl.
23912         (__gmtime_r) [!defined _LIBC]: New macro and function.
23913         (timegm): Use a prototype, since gnulib assumes C89.
23914         Do not bother declaring tmp to be const, as it's not really usefu.
23915         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
23916         (timegm): Declare only if HAVE_DECL_TIMEGM.
23917
23918 2003-09-06  Paul Eggert  <eggert@twinsun.com>
23919
23920         * MODULES.html.sh (func_all_modules): Add time_r.
23921         * modules/time_r: New file.
23922         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
23923         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
23924
23925 2003-09-03  Paul Eggert  <eggert@twinsun.com>
23926
23927         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
23928         Bug reported by Lute Kamstra in
23929         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
23930
23931         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
23932         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
23933         course with correspondingly smaller numbers for tomorrow and
23934         yesterday.  From Tadayoshi Funaba.  Originally installed into
23935         sh-utils on 1999-08-07, but the patch got lost (I guess during the
23936         coreutils merge?).
23937
23938 2003-08-31  Simon Josefsson  <jas@extundo.com>
23939
23940         * modules/timegm: New file.
23941         * MODULES.html.sh (func_all_modules): Add timegm.
23942
23943 2003-08-31  Simon Josefsson  <jas@extundo.com>
23944
23945         * m4/timegm.m4: New file.
23946
23947 2003-08-31  Simon Josefsson  <jas@extundo.com>
23948
23949         * lib/timegm.h: New file.
23950         * lib/timegm.c: New file.  Based on
23951         wget-1.8.2/src/http.c:mktime_from_utc.
23952
23953 2003-08-31  Karl Berry  <karl@gnu.org>
23954
23955         * lib/argp.h: update from libc.
23956
23957 2003-08-28  Bruno Haible  <bruno@clisp.org>
23958
23959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
23960         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
23961         followed by '#define fnmatch fnmatch_posix' gives an error.
23962
23963 2003-08-28  Bruno Haible  <bruno@clisp.org>
23964
23965         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
23966         warning on QNX, which defines O_BINARY to 000000.
23967
23968 2003-08-27  Jim Meyering  <jim@meyering.net>
23969
23970         * m4/mkstemp.m4: Require that the system mkstemp be able to create
23971         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
23972         would fail after 32.  Reported by Danny Levinson.  Details here:
23973         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
23974
23975 2003-08-24  Bruno Haible  <bruno@clisp.org>
23976
23977         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
23978         MSVC7 <stdio.h> is included later.
23979
23980 2003-08-22  Simon Josefsson  <jas@extundo.com>
23981
23982         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
23983
23984 2003-08-20  Karl Berry  <karl@gnu.org>
23985
23986         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
23987
23988 2003-08-20  Bruno Haible  <bruno@clisp.org>
23989
23990         * modules/progname: New file.
23991         * MODULES.html.sh (func_all_modules): Add progname.
23992
23993 2003-08-20  Bruno Haible  <bruno@clisp.org>
23994
23995         * lib/progname.h: New file, from GNU gettext.
23996         * lib/progname.c: New file, from GNU gettext.
23997         * lib/progreloc.c: New file, from GNU gettext.
23998
23999 2003-08-19  Jim Meyering  <jim@meyering.net>
24000
24001         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
24002         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
24003
24004 2003-08-19  Bruno Haible  <bruno@clisp.org>
24005
24006         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
24007         more.
24008
24009 2003-08-19  Bruno Haible  <bruno@clisp.org>
24010
24011         * lib/xstrdup.c: Assume <string.h> exists.
24012
24013 2003-08-18  Paul Eggert  <eggert@twinsun.com>
24014
24015         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
24016         in makefile rules.
24017
24018 2003-08-18  Jim Meyering  <jim@meyering.net>
24019
24020         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
24021         * m4/lib-ld.m4: Likewise.
24022
24023 2003-08-18  Jim Meyering  <jim@meyering.net>
24024
24025         * lib/setenv.h: Indent nested cpp directive.
24026         * lib/vasnprintf.c: Remove trailing blanks.
24027
24028 2003-08-17  Simon Josefsson  <jas@extundo.com>
24029
24030         * modules/xstrndup: New file.
24031         * MODULES.html.sh (func_all_modules): Add xstrndup.
24032
24033 2003-08-17  Simon Josefsson  <jas@extundo.com>
24034
24035         * modules/argp: Fix autoconf macro name. Add more dependencies.
24036
24037 2003-08-17  Simon Josefsson  <jas@extundo.com>
24038
24039         * m4/xstrndup.m4: New file.
24040
24041 2003-08-17  Simon Josefsson  <jas@extundo.com>
24042
24043         * m4/argp.m4: New file.
24044
24045 2003-08-17  Simon Josefsson  <jas@extundo.com>
24046             Bruno Haible  <bruno@clisp.org>
24047
24048         * lib/xstrndup.h: New file.
24049         * lib/xstrndup.c: New file.
24050
24051 2003-08-17  Bruno Haible  <bruno@clisp.org>
24052
24053         * modules/strndup (Files, Include): Add lib/strndup.h.
24054
24055 2003-08-17  Bruno Haible  <bruno@clisp.org>
24056
24057         * modules/euidaccess (Files): Add lib/euidaccess.h.
24058
24059 2003-08-17  Bruno Haible  <bruno@clisp.org>
24060
24061         * lib/strndup.h: New file.
24062
24063 2003-08-17  Bruno Haible  <bruno@clisp.org>
24064
24065         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
24066         like AC_GNU_SOURCE.
24067         * modules/extensions (configure.ac): Comment out the invocation of
24068         gl_USE_SYSTEM_EXTENSIONS.
24069
24070 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24071
24072         Merges from coreutils, etc.
24073         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
24074         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
24075         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
24076         fixing a typo.
24077         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
24078         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
24079
24080 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24081
24082         Document merge from coreutils.
24083         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
24084         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
24085         * modules/utime: Add m4/utimes-null.m4.
24086
24087 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24088
24089         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
24090         space, undoing this 2003-08-12 change:
24091         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24092
24093 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24094
24095         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
24096         strtoul.c from libc, undoing this 2003-08-12 change:
24097         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24098
24099 2003-08-16  Jim Meyering  <jim@meyering.net>
24100
24101         Merges from coreutils.
24102         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
24103         prefix.  Adjust cache variables similarly.  Create 500 rather than
24104         just 300 files, to exercise bug on Darwin6.5, too.
24105         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
24106         $missing_dir.
24107         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
24108         AM_SYS_POSIX_TERMIOS.
24109         Reported by mkc@mathdogs.com.
24110         Also change use of $am_cv_sys_posix_termios
24111         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
24112         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
24113         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
24114         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
24115         in /proc/mounts until it finds one with matching device number.  This
24116         is unnecessary when the FILE argument *is* a mount point.  No stat call
24117         is necessary in that case.  So, disable the statvfs-testing code on
24118         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
24119         as RedHat bug# 84846.
24120         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24121         to 1MB, so as not to render systems with no stack size limit (e.g.,
24122         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
24123         Include <unistd.h>.  On some systems,
24124         it is required for the definition of _SC_PAGESIZE.
24125
24126 2003-08-16  Jim Meyering  <jim@meyering.net>
24127
24128         Merge from coreutils.
24129         * lib/xstrtoimax.c: #else #if -> #elif.
24130         * lib/xstrtoumax.c: Likewise.
24131
24132 2003-08-16  Jim Meyering  <jim@meyering.net>
24133
24134         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
24135         * m4/utimes.m4: Removed.
24136         * m4/utimes-null.m4: Renamed from utimes.m4.
24137
24138         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24139         to 1MB, so as not to render systems with no stack size limit (e.g.,
24140         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
24141         Include <unistd.h>.  On some systems,
24142         it is required for the definition of _SC_PAGESIZE.
24143
24144 2003-08-16  Jim Meyering  <jim@meyering.net>
24145         and Paul Eggert  <eggert@cs.ucla.edu>
24146
24147         Merges from coreutils, etc.
24148
24149         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
24150         using the latest version from cvs.  This avoids problems with #line
24151         directives using a vendor (Sun) compiler.
24152         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
24153         Don't set GETGROUPS_LIB here; now it's
24154         done via getgroups.m4's wrapper function.
24155         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
24156         rather than just in sh-util/configure.in, so that the
24157         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
24158         same.
24159         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
24160         AC_FUNC_GETLOADAVG where to find getloadavg.c.
24161         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
24162         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
24163         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
24164         Remove code that is now done by the newly-required macros.
24165         Append $(EXEEXT) to DF_PROG.
24166         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
24167         Do not invoke or require the following here,
24168         since prereq.m4 or some gnulib .m4 now does this for us:
24169         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
24170         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
24171         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
24172         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
24173         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
24174         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
24175         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
24176         AC_FUNC_OBSTACK.
24177         Do not replace the following functions, as this is now the job
24178         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
24179         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
24180         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
24181         atexit getpass, strdup, getpagesize.
24182         Replace 'raise'.
24183         Do not check for the following functions, as this is now the job
24184         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
24185         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
24186         setregid.
24187         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
24188         Check for sys/sysctl.h.
24189         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
24190         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
24191         of checking for ssize_t ourselves.
24192
24193         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
24194         Require every macro that gnulib/modules/* suggests for us.
24195         (jm_PREREQ_ADDEXT): New macro.
24196         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
24197         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
24198
24199         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
24200         (gl_PHYSMEM): Use it.
24201         Also check for `table' function.
24202         Check for new headers and functions.
24203         Add check for sys/sysmp.h.
24204         With suggestions from Kaveh Ghazi.
24205         Ignore headers that are present but cannot be compiled.  This
24206         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
24207         C 5.4.
24208
24209 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24210
24211         Document merge from coreutils.
24212         * modules/userspec: Depend on posixver.
24213         * modules/strftime: Depend on tzset.
24214
24215 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24216
24217         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
24218         rather than tab, after '#' in shell-script copyright notices.
24219         Suggested by Bruno Haible.
24220
24221 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24222
24223         * config/srclist-update: Use three spaces, rather than tab, after '#'
24224         in shell-script copyright notices.  Suggested by Bruno Haible.
24225         Remove unnecessary parenthesization in regular expression.
24226
24227 2003-08-15  Jim Meyering  <jim@meyering.net>
24228
24229         Merge from coreutils.
24230         * lib/xgethostname.c: Include <stdlib.h>.
24231         (xghostname): Don't exit for anything other than memory-related
24232         failure; just return NULL.
24233         * lib/userspec.c: Include "posixver.h".
24234         (parse_user_spec): Accept `.' as a separator only
24235         in pre-POSIX-200112 mode.
24236         * lib/strtoimax.c: Use #elif rather than #else #if.
24237         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
24238         Remove function, now that we can rely on a working tzset function.
24239         [!_LIBC]: Ensure that the required autoconf test has been run.
24240         [!defined _NL_CURRENT && HAVE_STRFTIME]:
24241         Use underlying_strftime for %r.
24242         * lib/sha.c: Merge in some clean-up and optimization changes from
24243         glibc.
24244         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
24245         Ensure that it is a multiple of 64.
24246         Rearrange loop exit tests so as to avoid performing an
24247         additional fread after encountering an error or EOF.
24248         * lib/realloc.c: Update copyright date.
24249
24250 2003-08-15  Jim Meyering  <jim@meyering.net>
24251         and Paul Eggert  <eggert@twinsun.com>
24252
24253         Merge from coreutils.
24254         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
24255         member but strut utmpx does not.  Needed for AIX 4.3.3.
24256         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
24257
24258 2003-08-15  Jim Meyering  <jim@meyering.net>
24259         and Paul Eggert  <eggert@cs.ucla.edu>
24260
24261         Merges from coreutils, etc.
24262         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
24263         Require gl_FUNC_TZSET_CLOBBER.
24264         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
24265         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
24266         members.
24267
24268 2003-08-14  Paul Eggert  <eggert@twinsun.com>
24269
24270         Help the merge from coreutils.
24271         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
24272         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
24273         * m4/tzset.m4: Use it too.
24274
24275 2003-08-14  Paul Eggert  <eggert@twinsun.com>
24276
24277         * modules/tzset: New file.
24278
24279 2003-08-14  Jim Meyering  <jim@meyering.net>
24280
24281         Merges from coreutils.
24282         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
24283         variable names, rather than @FNMATCH_H@.
24284         * modules/alloca: Likewise for $(ALLOCA_H).
24285
24286         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
24287         the three copies of the literal target, `fnmatch.h'.
24288         * modules/alloca (alloca.h): Likewise.
24289
24290 2003-08-14  Jim Meyering  <jim@meyering.net>
24291
24292         Merge from coreutils.
24293         * m4/tzset.m4: New file.
24294         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
24295         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
24296         otherwise, AIX 5.1 systems would end up using the latter.
24297         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
24298         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
24299         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
24300         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
24301
24302 2003-08-14  Jim Meyering  <jim@meyering.net>
24303
24304         Merge from coreutils.
24305         * lib/obstack.h: Whitespace changes.
24306         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
24307         and xcalloc return values.
24308         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
24309         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
24310         hang on OSF/1 5.1 for DIR on both local and remote file systems.
24311         Reported by (and fix confirmed by) Nelson H. F. Beebe.
24312         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
24313         error from mntctl.
24314         Use mntctl's return value to drive the entry-processing loop, since
24315         we can't rely on the value of the vmt_length member in the last
24316         entry.  On some systems doing so could result in exhausting
24317         virtual memory.  Based in part on a patch from Mike Jetzer.
24318
24319 2003-08-14  Jim Meyering  <jim@meyering.net>
24320         and Paul Eggert  <eggert@twinsun.com>
24321
24322         Merges from coreutils, plus other fixes.
24323         * lib/physmem.c: Merge in portability changes from gcc/libiberty
24324         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
24325         for credits and details.  Thanks to Kaveh Ghazi for helping
24326         to keep these files in sync.
24327         (ARRAY_SIZE): Define it.
24328         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
24329         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
24330         (memcasecmp): Don't assume size_t fits in unsigned int.
24331         Remove casts and duplicate code.
24332         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
24333         (memcpy): Remove definition.
24334         Merge in some clean-up and optimization changes from glibc.
24335         [BLOCKSIZE]: Move definition to top of file.
24336         Ensure that it is a multiple of 64.
24337         Rearrange loop exit tests so as to avoid performing an
24338         additional fread after encountering an error or EOF.
24339         * lib/md5.h (md5_uintptr): Define.
24340         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
24341         return to the initial working directory.  Preserve errno
24342         for caller.
24343         * lib/idcache.c: Include "xalloc.h".
24344         (xmalloc, xrealloc): Remove decls.
24345         (getuser): Remove casts no longer required in C89.
24346         * lib/human.c: Include stdio.h, for sprintf.
24347         * lib/group-member.c: Include "xalloc.h".
24348         (xmalloc, xrealloc): Remove decls.
24349         (get_group_info): Remove casts no longer required in C89.
24350         * lib/getusershell.c (readname): Remove casts no longer required in
24351         C89.
24352         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
24353         * lib/getline.c: Whitespace fix, from coreutils.
24354
24355 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24356
24357         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
24358         Check for isascii.
24359
24360         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24361         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24362         Undo previous (whitespace-only) change.
24363
24364 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24365
24366         * lib/exclude.c: Include <ctype.h>
24367         (IN_CTYPE_DOMAIN): New macro.
24368         (is_space): New fn.
24369         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
24370         and empty lines.
24371
24372         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24373         Undo previous (whitespace-only) change.
24374
24375 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24376
24377         * config/srclist-update: Change update back to the old behavior,
24378         leaving whitespace alone.  Use one 'sed' command rather than a
24379         pipeline.
24380         (fixlicense): Now a variable, not a function.
24381         (remove_trailing_blanks): Remove.
24382         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
24383         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24384         Undo previous (whitespace-only) change.
24385
24386 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24387
24388         Merge from coreutils.
24389         * modules/euidaccess: Add lib_SOURCES, include for new
24390         file euidaccess.h
24391
24392 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24393
24394         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24395         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24396         Normalize leading white space and remove trailing white space.
24397
24398         Merge from coreutils
24399         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
24400
24401         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
24402         0.12.1.  These files are now being upgraded automatically by
24403         ../config/srclist-update.
24404
24405 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24406
24407         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24408         Normalize leading white space and remove trailing white space.
24409         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
24410         notice, as per ../config/srclist-update.
24411
24412         Merge from coreutils.
24413         * lib/euidaccess.h: New file.
24414         * lib/euidaccess.c: Include it.
24415         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
24416         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
24417         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
24418
24419 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24420
24421         * config/srclist-update: Add copyright notice.
24422         (remove_id_lines, remove_trailing_blanks): New constants.
24423         (fixfile): Use them to normalize spacing a bit in copied files.
24424         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24425         Normalize leading white space and remove trailing white space.
24426
24427         * config/texinfo.tex: Sync with texinfo.
24428
24429         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
24430         strtoul.c from libc, to merge coreutils whitespace changes.
24431
24432         * config/srclist.txt: Get the following m4 files from gettext:
24433         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
24434         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
24435         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
24436         wint_t.m4.
24437
24438 2003-08-12  Karl Berry  <karl@gnu.org>
24439
24440         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
24441         been made.
24442
24443 2003-08-11  Paul Eggert  <eggert@twinsun.com>
24444
24445         * modules/gnu-source, m4/gnu-source.m4:
24446         Remove; we're assuming Autoconf 2.54 or later now.
24447         Suggested by Bruno Haible.
24448         * MODULES.html.sh (func_all_modules): Remove gnu-source.
24449
24450 2003-08-11  Bruno Haible  <bruno@clisp.org>
24451
24452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
24453
24454 2003-08-11  Bruno Haible  <bruno@clisp.org>
24455
24456         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
24457         (vasnprintf): Use it instead of wcslen.
24458
24459 2003-08-11  Bruno Haible  <bruno@clisp.org>
24460
24461         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
24462         value to ensure that _Bool promotes to int. Use #define for _Bool when
24463         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
24464
24465 2003-08-10  Karl Berry  <karl@gnu.org>
24466
24467         * lib/regex.h: update from libc (whitespace fix).
24468
24469 2003-08-09  Paul Eggert  <eggert@twinsun.com>
24470
24471         Merge some files from coreutils.  These changes were
24472         originally made by Jim Meyering.
24473         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
24474         many older Unixes require this.
24475         * lib/alloca.c (alloca): Remove cast to argument of free;
24476         no longer needed in C89.
24477         * lib/alloca_.h, regex.h: Fix white space to match
24478         what GNU indent does.
24479
24480 2003-08-09  Paul Eggert  <eggert@twinsun.com>
24481
24482         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
24483         apparently Emacs's Unicode mode got confused before my 2003-08-05
24484         checkin.
24485
24486 2003-08-08  Paul Eggert  <eggert@twinsun.com>
24487
24488         * m4/extensions.m4: New file.
24489         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
24490         Require gl_USE_SYSTEM_EXTENSIONS.
24491         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
24492         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
24493
24494 2003-08-08  Paul Eggert  <eggert@twinsun.com>
24495
24496         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
24497         * modules/extensions, modules/gnu-source: New files.
24498         * modules/timespec, modules/unlocked-io: Depend on extensions.
24499
24500 2003-08-07  Paul Eggert  <eggert@twinsun.com>
24501
24502         * modules/restrict: New file.
24503         * MODULES.html.sh (func_all_modules): Add restrict.
24504         * modules/regex: Depend on restrict.
24505
24506 2003-08-07  Paul Eggert  <eggert@twinsun.com>
24507
24508         * m4/restrict.m4: New file.
24509         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
24510
24511 2003-08-07  Bruno Haible  <bruno@clisp.org>
24512
24513         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
24514         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
24515
24516 2003-08-07  Bruno Haible  <bruno@clisp.org>
24517
24518         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
24519         makes the module 'getndelim2' compatible with the module 'getline'.
24520
24521 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24522
24523         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
24524         byte with "\201" to avoid glitches when editing that source file
24525         with multi-gnome-terminal.
24526
24527 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24528
24529         * lib/bumpalloc.h: Remove.
24530
24531 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24532
24533         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
24534         * modules/bumpalloc: Remove.
24535
24536 2003-08-04  Paul Eggert  <eggert@twinsun.com>
24537
24538         * lib/getloadavg.c: Change copyright notice and spacing to conform to
24539         GNU coding style.
24540
24541         Merge from coreutils.
24542         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
24543         1. From glibc.
24544         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
24545         from Karl Berry, implemented by Jim Meyering.
24546         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
24547         from Dmitry V. Levin.
24548         Remove anachronistic cast of xrealloc.
24549         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
24550         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
24551         type. Otherwise, it wouldn't compile with at least /bin/cc on
24552         ymp-cray-unicos9.0.2.X.
24553         Combine two mostly-identical uses of alloca into one.
24554         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
24555
24556 2003-08-04  Dave Love  <d.love@dl.ac.uk>
24557
24558         [From Emacs.]
24559
24560         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
24561         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
24562         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
24563         obsolete NLIST_NAME_UNION.
24564         [__GNU__]: Undef BSD and FSCALE.
24565         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
24566
24567 2003-08-03  Paul Eggert  <eggert@twinsun.com>
24568
24569         * lib/stdbool_.h (_Bool): Make it signed char, instead of
24570         an enum type, so that it's guaranteed to promote to int.  See:
24571         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
24572
24573 2003-08-03  Karl Berry  <karl@gnu.org>
24574
24575         * config/depcomp: update from automake.
24576
24577 2003-07-31  Paul Eggert  <eggert@twinsun.com>
24578
24579         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
24580         (strerror): Don't assume that a printable int fits in 14 bytes.
24581
24582 2003-07-31  Bruno Haible  <bruno@clisp.org>
24583
24584         * modules/getpass-gnu: New file.
24585         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
24586
24587 2003-07-31  Bruno Haible  <bruno@clisp.org>
24588
24589         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
24590
24591 2003-07-24  Karl Berry  <karl@gnu.org>
24592
24593         * config/missing: update from automake.
24594
24595 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
24596             Bruno Haible  <bruno@clisp.org>
24597
24598         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
24599         * lib/getline.c (getline, getdelim): Likewise.
24600         Remove _GNU_SOURCE define; now it's defined in config.h through
24601         m4/getline.m4.
24602
24603 2003-07-23  Karl Berry  <karl@gnu.org>
24604
24605         * config/config.sub: update from prep.
24606
24607 2003-07-22  Paul Eggert  <eggert@twinsun.com>
24608
24609         * modules/xalloc (Depends-on): Add exitfail.
24610         * modules/xmemcoll: Likewise.
24611
24612 2003-07-22  Paul Eggert  <eggert@twinsun.com>
24613
24614         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
24615         over-parenthesization in macros.
24616
24617         Sync with coreutils.
24618
24619         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
24620         required by C99.
24621
24622         Use `exit_failure' for xalloc and xmemcoll instead of their own
24623         private exit-failure variables.
24624         * lib/xalloc.h (xalloc_exit_failure): Remove.
24625         * lib/xmalloc.c: Likewise.  Include exitfail.h.
24626         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
24627         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
24628         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
24629         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
24630
24631 2003-07-20  Jim Meyering  <jim@meyering.net>
24632
24633         * modules/closeout (Depends-on): Add exitfail.
24634         Suggestion from Bruno Haible.
24635
24636 2003-07-19  Karl Berry  <karl@gnu.org>
24637
24638         * config/config.sub: update from prep.
24639
24640 2003-07-18  Paul Eggert  <eggert@twinsun.com>
24641
24642         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
24643         Remove.
24644         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
24645         to test that it can stand by itself.  Include "exitfail.h".
24646         Clients should set exit_failure instead.
24647         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
24648
24649 2003-07-18  Bruno Haible  <bruno@clisp.org>
24650
24651         * modules/getndelim2: New file.
24652         * modules/getline: Share files with module getndelim2.
24653         * modules/getnline: Depend on getndelim2 instead of sharing files with
24654         it. Add getnline.c to lib_SOURCES.
24655         * MODULES.html.sh (func_all_modules): Add getndelim2.
24656
24657 2003-07-18  Bruno Haible  <bruno@clisp.org>
24658
24659         * m4/getndelim2.m4: New file.
24660         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
24661         invoke gl_PREREQ_GETNDELIM2.
24662         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
24663         gl_PREREQ_GETNDELIM2.
24664         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
24665         gl_GETNDELIM2.
24666
24667 2003-07-18  Bruno Haible  <bruno@clisp.org>
24668
24669         * lib/getndelim2.h: New file.
24670         * lib/getndelim2.c: Make into a module of its own. Include config.h,
24671         getndelim2.h.
24672         (getndelim2): Make non-static. Change return type to ssize_t.
24673         * lib/getline.h: Change argument names.
24674         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
24675         * lib/getnline.c: Include getndelim2.h.
24676
24677 2003-07-18  Andreas Schwab  <schwab@suse.de>
24678
24679         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
24680
24681 2003-07-17  Karl Berry  <karl@gnu.org>
24682
24683         * config/config.sub: update from prep.
24684
24685 2003-07-17  Bruno Haible  <bruno@clisp.org>
24686
24687         * modules/getnline: New file.
24688         * modules/getline: Add lib/getndelim2.c to source file list.
24689         * MODULES.html.sh (func_all_modules): Add getnline.
24690
24691 2003-07-17  Bruno Haible  <bruno@clisp.org>
24692
24693         * m4/getnline.m4: New file.
24694
24695 2003-07-17  Bruno Haible  <bruno@clisp.org>
24696
24697         * m4/Makefile.am.in: Remove file.
24698         * m4/Makefile.am: Remove file.
24699         * m4/Makefile.in: Remove file.
24700
24701 2003-07-17  Bruno Haible  <bruno@clisp.org>
24702
24703         * lib/getnline.h: New file.
24704         * lib/getnline.c: New file.
24705         * lib/getndelim2.c: New file, extracted from getline.c.
24706         (getndelim2): Renamed from getdelim2, with added nmax argument.
24707         * lib/getline.c: Include getndelim2.c.
24708         (getdelim2): Moved out to getndelim2.c.
24709         (getline, getdelim): Update.
24710
24711 2003-07-17  Bruno Haible  <bruno@clisp.org>
24712
24713         * lib/Makefile.am: Remove file.
24714         * lib/Makefile.in: Remove file.
24715
24716 2003-07-17  Bruno Haible  <bruno@clisp.org>
24717
24718         * configure.in: Remove file.
24719         * Makefile.in: Remove file.
24720
24721 2003-07-17  Bruno Haible  <bruno@clisp.org>
24722
24723         * MODULES.html.sh: Put the </BODY> right before </HTML>.
24724
24725 2003-07-16  Karl Berry  <karl@gnu.org>
24726
24727         * config/srclist-update: was running fixlicense twice, which caused
24728                 texinfo.tex to be nullified for some reason.  Simplify,
24729                 $gplsrc is no longer needed as far as I can see?
24730
24731 2003-07-16  Jim Meyering  <jim@meyering.net>
24732
24733         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
24734
24735 2003-07-15  Paul Eggert  <eggert@twinsun.com>
24736
24737         * config/srclist.txt: Get the following files from gettext-runtime/intl
24738         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
24739         ref-del.sin.  From Bruno Haible.
24740         * config/srclist-update (fixfile): Change grep pattern again, since the
24741         previous fix didn't work (there was another trailing $).  Use
24742         '[$]' to escape the $s.
24743
24744 2003-07-15  Karl Berry  <karl@gnu.org>
24745
24746         * lib/vasnprintf.c: update from gettext.
24747
24748 2003-07-15  Karl Berry  <karl@gnu.org>
24749
24750         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
24751         gets expanded when surrounded by '$'.
24752
24753 2003-07-15  Jim Meyering  <jim@meyering.net>
24754
24755         * modules/save-cwd: Don't depend on error.  From Derek Price.
24756
24757 2003-07-15  Jim Meyering  <jim@meyering.net>
24758
24759         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
24760
24761 2003-07-14  Simon Josefsson  <jas@extundo.com>
24762
24763         * modules/mempcpy: New file.
24764         * MODULES.html.sh (func_all_modules): Add mempcpy.
24765
24766 2003-07-14  Simon Josefsson  <jas@extundo.com>
24767
24768         * m4/mempcpy.m4: New file.
24769
24770 2003-07-14  Simon Josefsson  <jas@extundo.com>
24771
24772         * lib/mempcpy.h: New file.
24773         * lib/mempcpy.c: New file.
24774
24775 2003-07-14  Paul Eggert  <eggert@twinsun.com>
24776
24777         * modules/getdate, modules/posixtm: Depend on mktime.
24778
24779 2003-07-14  Paul Eggert  <eggert@twinsun.com>
24780
24781         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
24782         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
24783         unicodeio.c, unicodeio.h, unlocked-io.h:
24784         Switch from LGPL to GPL.
24785
24786 2003-07-14  Paul Eggert  <eggert@twinsun.com>
24787
24788         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
24789         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
24790         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
24791         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
24792         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
24793         updated automatically by ../config/srclist-update.  This changes
24794         their license from LPGL to GPL.
24795
24796 2003-07-14  Paul Eggert  <eggert@twinsun.com>
24797
24798         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
24799         assumed to refer to the root of the most recent stable gettext version.
24800         * config/srclistvars.sh: Add defaults for eggert.
24801         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
24802         Match "This program" as well as "The program".  This is needed
24803         for gettext.
24804
24805 2003-07-14  Jim Meyering  <jim@meyering.net>
24806
24807         Don't emit diagnostics.  Let callers do that.
24808         * lib/save-cwd.c: Don't include "error.h".
24809         (save_cwd): Don't call error.  Ensure that errno is valid
24810         when returning nonzero.
24811
24812         * lib/save-cwd.h (restore_cwd): Update prototype.
24813         * lib/save-cwd.c (restore_cwd): Remove two parameters.
24814         Simplify.  Don't call error upon failure.  Let callers do that.
24815         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
24816         when auditing is enabled.  But don't bother updating the #if.
24817
24818 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
24819
24820         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
24821         it breaks C++ compilation.
24822         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
24823
24824 2003-07-10  Simon Josefsson  <jas@extundo.com>
24825
24826         * modules/strchrnul (Makefile.am): Add strchrnul.h.
24827
24828 2003-07-10  Jim Meyering  <jim@meyering.net>
24829
24830         * m4/clock_time.m4: Remove trailing blank.
24831         * m4/intmax_t.m4: Likewise.
24832
24833 2003-07-10  Jim Meyering  <jim@meyering.net>
24834
24835         * lib/vasnprintf.c: Remove trailing blanks.
24836         Make cpp indentation consistent.
24837
24838 2003-07-09  Paul Eggert  <eggert@twinsun.com>
24839
24840         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
24841         posixver.c, strftime.c, strnlen.c, strverscmp.c:
24842         Switch from LGPL to GPL.
24843
24844 2003-07-09  Paul Eggert  <eggert@twinsun.com>
24845
24846         * config/srclist.txt: Sort sublists.  Add
24847         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
24848         that differ from gnulib for one reason or another; we'd like this list
24849         to be smaller but for now let's document what we have.
24850
24851 2003-07-08  Paul Eggert  <eggert@twinsun.com>
24852
24853         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
24854         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
24855         and sweeter "eval x=$x".
24856         * config/srclist.txt: Get lib/argp* from glibc.
24857
24858 2003-07-07  Paul Eggert  <eggert@twinsun.com>
24859
24860         * lib/mktime.c: Fix some boundary cases and remove need for floating
24861         point.
24862
24863         Issue a compile-time diagnostic if time_t is floating point, or if
24864         two's complement arithmetic is not in effect, or if arithmetic
24865         right shift does not propagate the sign.  These assumptions were
24866         all in the original code but they weren't checked.
24867
24868         (TIME_T_MIDPOINT, verify): New macros.
24869         (__isleap): Remove; it has integer overflow problems.
24870         (leapyear): New function, without those problems.
24871         (ydhms_tm_diff): Remove; splitting into two parts.
24872         (ydhms_diff): New function, containing the arithmetic part of
24873         the old ydhms_tm_diff function.  Issue a compile-time
24874         diagnostic if we are not using C99 integer division.
24875         Avoid casts when possible.
24876         (guess_time_tm): New function, containing the checking part of
24877         the old ydhms_tm_diff function.  Return the new value, rather than
24878         the difference between it and the old.  Accept a new argument T
24879         so that *T specifies the old value.  Check for overflow in the result.
24880
24881         (__mktime_internal): Use a time_t offset, not a long int offset.
24882         This undoes the 2003-06-04 change, which is no longer needed now
24883         that we have better overflow checking.
24884         (localtime_offset): Likewise.
24885
24886         (__mktime_internal): Avoid harmful overflow on hosts where time_t
24887         and long are 64-bit but int is only 32-bit.
24888         (ydhms_diff): Use long int to store year1 and yday1.
24889         Issue a compile-time diagnostic if long int is not wide enough.
24890
24891         (__mktime_internal): Use long int to store adjusted year and yday.
24892         Use plain C rather than preprocessor commands, if that doesn't
24893         affect efficiency.
24894         Check for overflow (and try to repair) after each probe
24895         rather than checking only at the very end.  This avoids some bugs
24896         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
24897         does not equal GMT offset at maximum time).
24898         Use integer to check for overflow rather than floating point; this
24899         is more portable to non-IEEE hosts, and is a tad faster.
24900         When we detect that we are oscillating between two values,
24901         don't check whether tm_isdst has the requested value, since
24902         we already know the answer.  When tm_isdst has the wrong value,
24903         use a different heuristic to find the right one, based on the
24904         extreme values actually observed in practice in tz2003a,
24905         rather than the (overly optimistic) "previous 3 calendar quarters".
24906
24907         (not_equal_tm, print_tm, check_result): Use "const T" rather than
24908         "T const" to accommodate glibc style.
24909         (check_result): Use less-confusing report format.  "long" -> "long int.
24910         (main): Likewise.
24911         Don't loop if the iteration overflows time_t.
24912         Allow a negative step in the iteration.
24913
24914 2003-07-06  Karl Berry  <karl@gnu.org>
24915
24916         * config/depcomp: update from automake.
24917         * config/config.sub: update from prep.
24918
24919 2003-07-03  Karl Berry  <karl@gnu.org>
24920
24921         * config/config.guess: update from prep.
24922
24923 2003-07-01  Paul Eggert  <eggert@twinsun.com>
24924
24925         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
24926         xreadlink.c now includes it unconditionally.
24927
24928 2003-07-01  Paul Eggert  <eggert@twinsun.com>
24929
24930         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
24931         having it depend on HAVE_SYS_TYPES_H.
24932
24933 2003-07-01  Bruno Haible  <bruno@clisp.org>
24934
24935         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
24936         <sys/types.h> should be sufficient.
24937         Reported by Paul Eggert.
24938
24939 2003-06-26  Karl Berry  <karl@gnu.org>
24940
24941         * config/depcomp: update from automake.
24942
24943 2003-06-26  Bruno Haible  <bruno@clisp.org>
24944
24945         * modules/human: Depend on module stdbool.
24946
24947 2003-06-25  Bruno Haible  <bruno@clisp.org>
24948
24949         * modules/readlink: New file.
24950         * modules/xreadlink: Depend on it.
24951         * MODULES.html.sh (func_all_modules): Add readlink.
24952
24953 2003-06-25  Bruno Haible  <bruno@clisp.org>
24954
24955         * m4/readlink.m4: New file.
24956
24957 2003-06-25  Bruno Haible  <bruno@clisp.org>
24958
24959         * lib/readlink.c: New file.
24960
24961 2003-06-22  Karl Berry  <karl@gnu.org>
24962
24963         * config/srclist.txt: update mkinstalldirs from automake.
24964         * config/mkinstalldirs: update.
24965
24966 2003-06-22  Bruno Haible  <bruno@clisp.org>
24967
24968         Portability to mingw32.
24969         * m4/ssize_t.m4: New file, from GNU gettext.
24970         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
24971         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
24972
24973 2003-06-22  Bruno Haible  <bruno@clisp.org>
24974
24975         * modules/safe-read: Add m4/ssize_t.m4.
24976         * modules/xreadlink: Add m4/ssize_t.m4.
24977
24978 2003-06-20  Bruno Haible  <bruno@clisp.org>
24979
24980         Assume C89, so PARAMS isn't needed.
24981         * lib/unicodeio.h (PARAMS): Remove.
24982         * lib/unicodeio.c: Don't use PARAMS.
24983
24984 2003-06-18  Karl Berry  <karl@gnu.org>
24985
24986         * config/config.{guess,sub}: update from prep.
24987
24988 2003-06-18  Jim Meyering  <jim@meyering.net>
24989
24990         Merge changes from coreutils.
24991         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
24992         Remove explicit declarations of xmalloc and realloc.
24993         Include xalloc.h.
24994         (read_utmp): Remove anachronistic cast of xmalloc.
24995
24996 2003-06-17  Paul Eggert  <eggert@twinsun.com>
24997
24998         Assume C89, so PARAMS isn't needed.
24999         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
25000         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
25001         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
25002         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
25003         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
25004         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
25005         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
25006         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
25007         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
25008         lib/xstrtod.h, lib/xstrtol.h: Likewise.
25009         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
25010         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
25011         no longer needed. Anyway, config.h should always be included before any
25012         other file.
25013
25014 2003-06-11  Simon Josefsson  <jas@extundo.com>
25015
25016         * modules/sysexits: New file.
25017         * MODULES.html.sh (func_all_modules): Add sysexits.
25018
25019 2003-06-11  Simon Josefsson  <jas@extundo.com>
25020
25021         * lib/sysexit_.h: New file.
25022
25023 2003-06-11  Derek Price  <derek@ximbiot.com>
25024
25025         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
25026         necessary.
25027
25028 2003-06-11  Bruno Haible  <bruno@clisp.org>
25029
25030         * m4/sysexits.m4: New file.
25031
25032 2003-06-10  Simon Josefsson  <jas@extundo.com>
25033
25034         * lib/argp.h: New file, from glibc.
25035         * lib/argp-ba.c: New file, from glibc.
25036         * lib/argp-eexst.c: New file, from glibc.
25037         * lib/argp-fmtstream.c: New file, from glibc.
25038         * lib/argp-fmtstream.h: New file, from glibc.
25039         * lib/argp-fs-xinl.c: New file, from glibc.
25040         * lib/argp-help.c: New file, from glibc.
25041         * lib/argp-namefrob.h: New file, from glibc.
25042         * lib/argp-parse.c: New file, from glibc.
25043         * lib/argp-pv.c: New file, from glibc.
25044         * lib/argp-pvh.c: New file, from glibc.
25045         * lib/argp-xinl.c: New file, from glibc.
25046
25047 2003-06-10  Simon Josefsson  <jas@extundo.com>
25048
25049         * modules/strchrnul: New file.
25050
25051 2003-06-10  Simon Josefsson  <jas@extundo.com>
25052
25053         * modules/argp: New file.
25054
25055 2003-06-10  Simon Josefsson  <jas@extundo.com>
25056
25057         * m4/strchrnul.m4: New file.
25058
25059 2003-06-10  Simon Josefsson  <jas@extundo.com>
25060
25061         * lib/strchrnul.h: New file.
25062         * lib/strchrnul.c: New file.
25063
25064 2003-06-10  Bruno Haible  <bruno@clisp.org>
25065
25066         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
25067
25068 2003-06-07  Karl Berry  <karl@gnu.org>
25069
25070         * config/config.{guess,sub}: update from prep.
25071
25072 2003-06-07  Jim Meyering  <jim@meyering.net>
25073
25074         * modules/strtod: Use $(...) notation, not @...@ for
25075         AC_REPLACE'd variables.
25076         * modules/localcharset: Likewise.
25077
25078 2003-06-07  Jim Meyering  <jim@meyering.net>
25079
25080         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
25081         in place of my name in the copyright comment.
25082         Remove definition and uses of __P.
25083
25084         From coreutils.
25085         * lib/stat.c: Don't declare xmalloc explicitly.
25086         Instead, include "xalloc.h".
25087         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
25088         xrealloc, and xcalloc return values.
25089         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
25090         Improve comment.
25091         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
25092
25093 2003-06-07  Bruno Haible  <bruno@clisp.org>
25094
25095         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
25096         avoid AC_CONFIG_LINKS.
25097         * modules/fnmatch (Makefile.am): Use explicit creation rule for
25098         fnmatch.h, to avoid AC_CONFIG_LINKS.
25099         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
25100
25101 2003-06-07  Bruno Haible  <bruno@clisp.org>
25102
25103         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
25104         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
25105         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25106         directory.
25107         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
25108         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25109         directory.
25110
25111 2003-06-06  Jim Meyering  <jim@meyering.net>
25112
25113         Merge from coreutils.
25114         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
25115         Consolidate declarations and initializations of *_base* locals.
25116
25117         Merge from coreutils.
25118         This avoids a core dump on systems without GNU putenv,
25119         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
25120         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
25121         (unsetenv): New static function, from GNU libc.
25122         (rpl_putenv): Use it.
25123
25124         * lib/modechange.c: Remove trailing blanks.
25125
25126         Merge from coreutils.
25127         * lib/fsusage.c: Remove declaration of statfs.
25128         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
25129
25130         * lib/posixtm.c: Include <stdbool.h> unconditionally.
25131
25132 2003-06-06  Jim Meyering  <jim@meyering.net>
25133
25134         * lib/stdbool_.h: Renamed from stdbool.h.in.
25135
25136 2003-06-06  Jim Meyering  <jim@meyering.net>
25137             Bruno Haible  <bruno@clisp.org>
25138
25139         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
25140         Adjust Makefile.am snippet not to redirect directly to target.
25141         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
25142
25143 2003-06-05  Paul Eggert  <eggert@twinsun.com>
25144
25145         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
25146         mismatch, look in future quarters as well as past.  This fixes a
25147         bug when processing fall-backwards gaps immediately after a long
25148         period of daylight-saving time.
25149
25150         * lib/mktime.c: Assume freestanding C89 or better.
25151         (HAVE_LIMITS_H): Remove.  Assume it's 1.
25152         (__P): Remove; not used.
25153         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
25154         (mktime, not_equal_tm, print_tm, check_result,
25155         main): Use prototypes.  Use const * where appropriate.
25156         (main): Fix typo in testing code that uncovered by above changes.
25157         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
25158
25159 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25160
25161         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
25162         locale.h, localeconv.  This merges changes from coreutils.
25163
25164         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
25165         It can be removed after the next Autoconf is released.
25166         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
25167         needed.
25168
25169 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25170
25171         * lib/mktime.c: Fix Debian bug 177940
25172         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
25173         (localtime_offset): Now long int, not time_t, because we want it
25174         to be guaranteed to be signed.  All uses changed.
25175         (__mktime_internal): If overflow would occur when adding offset,
25176         don't add it.
25177
25178         Merge 'human' changes from coreutils.  Rewrite to support
25179         locale-specific notations like thousands separators.
25180         * lib/human.c: Simplify authorship notice.
25181         Include human.h immediately after config.h.
25182         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
25183         <limits.h>: Do not include, since human.h does.
25184         (SIZE_MAX, UINTMAX_MAX): New macros.
25185         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
25186         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
25187         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
25188         (power_letter): Renamed from suffixes.
25189         (generate_suffix_backwards): Remove.
25190         (adjust_value): Now takes int style (because of human.h changes)
25191         and long double value (for greater precision on some platforms).
25192         (group_number): New function.
25193         (human_readable): Use it.  Use integer options, not enum.
25194         Put the options before the sizes in the arg list.
25195         Support all the new options.
25196         The old human_readable function has been removed;
25197         use inttostr.h instead.
25198         (human_readable, default_block_size, humblock):
25199         Use uintmax_t, not int, for block sizes.
25200         (human_readable_inexact, block_size_types): Remove.
25201         (block_size_opts): New constant.
25202         (human_options): Renamed from human_block_size, with new signature
25203         that allows block sizes up to UINTMAX_MAX.  All callers changed.
25204         * lib/human.h: Add copyright and authorship notice.
25205         Include <limits.h> and <stdbool.h> unconditionally.
25206         (PARAMS): Remove.  All uses removed.
25207         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
25208         (enum human_inexact_style): Remove tag; now a nameless enum.
25209         (human_floor, human_ceiling, human_round_to_even): Now have
25210         values 2, 0, 1 rather than -1, 1, 0.
25211         (human_group_digits, human_suppress_point_zero, human_autoscale,
25212         human_base_1024, human_SI, human_B): New constants.
25213         (human_readable_inexact, human_block_size): Remove.
25214         (human_readable): Size args are now uintmax_t, not int.
25215         (human_options): New decl.
25216
25217         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
25218         unnecessary now that we assume C89 or better.  This change
25219         imported from coreutils.
25220
25221         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25222         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
25223         in the 2003-05-30 sync from glibc.
25224
25225         .h files should stand alone, but we shouldn't include <sys/types.h>
25226         if we can get away with just <stddef.h>.
25227
25228         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
25229         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
25230         rather than <sys/types.h>, as we merely need size_t.
25231         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
25232         to get size_t.
25233         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
25234         Include <stdio.h>, to get FILE.
25235         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
25236         memcasecmp.h has included <stddef.h> and all we need is size_t.
25237         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
25238         our interface, instead of including <sys/types.h>
25239
25240 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25241
25242         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
25243         now, as glibc mktime is buggy on non-glibc systems.
25244
25245 2003-06-03  Karl Berry  <karl@gnu.org>
25246
25247         * config/config.sub: update from prep.
25248
25249 2003-06-02  Paul Eggert  <eggert@twinsun.com>
25250
25251         [from coreutils]
25252         Fix some minor time-related bugs with POSIX time arguments.
25253         Some valid time stamps were being rejected (notably -1, and
25254         time stamps before 1900 on 64-bit hosts).  And some invalid
25255         time stamps were being accepted, e.g. September 31.
25256
25257         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
25258         that we can return (time_t) -1 successfully.
25259         * lib/posixtm.c: Likewise.
25260         [HAVE_STDBOOL_H]: Include <stdbool.h>.
25261         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
25262         (t): Remove static var.
25263         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
25264         of static var.  All uses changed.
25265         (year): Do not reject years before 1900; they can occur with
25266         64-bit time_t.
25267         (posix_time_parse): Do not check for out-of-range components;
25268         that is now the caller's responsibility, since our checks were
25269         only approximations.
25270         (posixtime): Use mktime to check for out-of-range components,
25271         since it knows them exactly.
25272         If mktime returns (time_t) -1, check whether an error actually occurred
25273         by invoking localtime on -1.
25274         (main) [TEST_POSIXTIME]: Check for input data errors, and report
25275         posixtime failures better.
25276         Improve the test data (in comments only).
25277
25278 2003-06-02  Karl Berry  <karl@gnu.org>
25279
25280         * config/mkinstalldirs (version): new variable.
25281         (--version): new option.
25282         (usage): improve message.
25283
25284 2003-05-30  Karl Berry  <karl@gnu.org>
25285
25286         * lib/mktime.c: update from libc.
25287
25288 2003-05-30  Bruno Haible  <bruno@clisp.org>
25289
25290         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
25291         * config/config.rpath: Upgrade to gettext-0.12.1.
25292
25293 2003-05-30  Bruno Haible  <bruno@clisp.org>
25294
25295         * m4/gettext.m4: Upgrade to gettext-0.12.1.
25296         * m4/nls.m4: New file, from gettext-0.12.1.
25297         * m4/po.m4: New file, from gettext-0.12.1.
25298         * m4/progtest.m4: Upgrade to gettext-0.12.1.
25299
25300 2003-05-30  Bruno Haible  <bruno@clisp.org>
25301
25302         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
25303         * lib/localcharset.h: Likewise.
25304         * lib/localcharset.c: Likewise.
25305
25306 2003-05-29  Karl Berry  <karl@gnu.org>
25307
25308         * config/config.rpath: update from gettext.
25309
25310 2003-05-28  Paul Eggert  <eggert@twinsun.com>
25311
25312         Assume the headers required for C89 freestanding compilers.
25313         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
25314         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
25315         * m4/human.m4 (gl_HUMAN): Likewise.
25316         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
25317         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
25318         * m4/userspec.m4 (gl_USERSPEC): Likewise.
25319         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
25320         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25321         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
25322
25323 2003-05-28  Paul Eggert  <eggert@twinsun.com>
25324
25325         Assume the headers required for C89 freestanding compilers.
25326         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
25327         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
25328         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
25329         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
25330         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
25331         define, since <limits.h> is guaranteed to do that.
25332         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
25333         * lib/exclude.c: Include <stdbool.h> unconditionally.
25334         * lib/tempname.c: Include <stddef.h> unconditionally.
25335         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
25336         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
25337         <stddef.h> does that.
25338         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
25339         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
25340         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
25341         needed.
25342         * lib/xstrtol.c: Likewise.
25343         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
25344         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
25345
25346         * lib/addext.c (addext): Use assignment rather than cast, to avoid
25347         warnings on some platforms.
25348
25349         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25350         arbitrarily.
25351
25352 2003-05-26  Jim Meyering  <jim@meyering.net>
25353
25354         Merge in a change from coreutils:
25355         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
25356         that is guaranteed to be `no'.  Use `no_such_member' to indicate
25357         that condition, rather than `-1' which is slightly misleading.
25358         Change the name of the cache variable to have the gl_ prefix.
25359         Prompted by a patch from Richard Dawe for DJGPP.
25360
25361 2003-05-24  Karl Berry  <karl@gnu.org>
25362
25363         * config/config.guess: update from prep.
25364
25365 2003-05-22  Karl Berry  <karl@gnu.org>
25366
25367         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
25368
25369 2003-05-20  Karl Berry  <karl@gnu.org>
25370
25371         * config/config.guess: update from prep.
25372
25373 2003-05-18  Karl Berry  <karl@gnu.org>
25374
25375         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
25376         might actually be set by the user.
25377
25378         * config/depcomp, install-sh, mdate-sh: update from automake.
25379
25380 2003-05-17  Bruno Haible  <bruno@clisp.org>
25381
25382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
25383         invalid expansion for AC_EGREP_CPP.
25384         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25385         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25386         Suggested by Akim Demaille <akim@epita.fr> in
25387         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
25388
25389 2003-05-12  Jim Meyering  <jim@meyering.net>
25390
25391         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
25392         the space-padded-by-default conversion specifiers, %e, %k, %l.
25393
25394 2003-05-12  Bruno Haible  <bruno@clisp.org>
25395
25396         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
25397         the string is longer than 4 KB.
25398
25399 2003-05-11  Karl Berry  <karl@gnu.org>
25400
25401         * config/config.{guess,sub}: update from prep.
25402
25403 2003-05-09  Bruno Haible  <bruno@clisp.org>
25404
25405         * modules/error: Add m4/strerror_r.m4 to file list.
25406
25407 2003-05-03  Bruno Haible  <bruno@clisp.org>
25408
25409         Upgrade to Unicode-4.0.
25410         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
25411         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
25412         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
25413         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
25414         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
25415         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
25416         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
25417         Change width of U+E0100..U+E01EF from 1 to 0.
25418
25419 2003-04-25  Jim Meyering  <jim@meyering.net>
25420
25421         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
25422         of type size_t, not int.
25423
25424 2003-04-25  Bruno Haible  <bruno@clisp.org>
25425
25426         * lib/copy-file.c: Include <stddef.h>, for size_t.
25427
25428 2003-04-21  Paul Eggert  <eggert@twinsun.com>
25429
25430         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
25431         code which expansion is under static control.  Patch imported from
25432         Akim Demaille's patch to Bison; see
25433         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
25434
25435 2003-04-14  Bruno Haible  <bruno@clisp.org>
25436
25437         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
25438
25439 2003-04-11  Jim Meyering  <jim@meyering.net>
25440
25441         Merge changes from Coreutils.
25442
25443         2003-03-22  Jim Meyering  <jim@meyering.net>
25444
25445         * lib/strftime.c (widen): Cast alloca return value to proper type.
25446
25447         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
25448
25449         From GNU libc.
25450         * lib/strftime.c (my_strftime): Handle very large width
25451         specifications for numeric values correctly.  Improve checks for
25452         overflow.
25453
25454         2003-01-19  Jim Meyering  <jim@meyering.net>
25455
25456         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
25457         definitions.
25458         (nl_get_alt_digit) [! defined my_strftime]: Define.
25459         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
25460         _nl_get_alt_digit and _nl_get_walt_digit.
25461
25462         * lib/strftime.c (my_strftime): Merge in locale-related changes from
25463         libc. These changes have no effect outside of _LIBC.
25464
25465 2003-04-10  Bruno Haible  <bruno@clisp.org>
25466
25467         * modules/findprog: New file.
25468         * MODULES.html.sh (func_all_modules): Add it.
25469
25470 2003-04-10  Bruno Haible  <bruno@clisp.org>
25471
25472         * m4/findprog.m4: New file.
25473         * m4/eaccess.m4: New file.
25474
25475 2003-04-10  Bruno Haible  <bruno@clisp.org>
25476
25477         * lib/findprog.h: New file, from GNU gettext.
25478         * lib/findprog.c: New file, from GNU gettext.
25479
25480 2003-04-05  Jim Meyering  <jim@meyering.net>
25481
25482         Merge changes from Coreutils.
25483
25484         * lib/exclude.h (PARAMS): Remove definition and uses.
25485         * lib/exclude.c: Remove uses of `PARAMS'.
25486
25487         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
25488         Add test-cases for DOS filenames. Declare program_name.
25489         (main): Set up program_name.  Patch by Rich Dawe.
25490
25491         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25492         error from mntctl.
25493         Use mntctl's return value to drive the entry-processing loop, since
25494         we can't rely on the value of the vmt_length member in the last
25495         entry.  On some systems doing so could result in exhausting
25496         virtual memory.  Based in part on a patch from Mike Jetzer.
25497
25498 2003-04-04  Bruno Haible  <bruno@clisp.org>
25499
25500         * modules/linebreak: New file.
25501         * MODULES.html.sh (func_all_modules): Add it.
25502
25503 2003-04-04  Bruno Haible  <bruno@clisp.org>
25504
25505         * m4/linebreak.m4: New file.
25506
25507 2003-04-04  Bruno Haible  <bruno@clisp.org>
25508
25509         * lib/linebreak.h: New file, from GNU gettext.
25510         * lib/linebreak.c: New file, from GNU gettext with slight
25511         modifications.
25512         * lib/lbrkprop.h: New file, from GNU gettext.
25513
25514 2003-04-03  Bruno Haible  <bruno@clisp.org>
25515
25516         * modules/utf8-ucs4: New file.
25517         * modules/utf16-ucs4: New file.
25518         * modules/ucs4-utf8: New file.
25519         * modules/ucs4-utf16: New file.
25520         * MODULES.html.sh (func_all_modules): Add them.
25521
25522 2003-04-03  Bruno Haible  <bruno@clisp.org>
25523
25524         * m4/utf-ucs4.m4: New file.
25525         * m4/ucs4-utf.m4: New file.
25526
25527 2003-04-03  Bruno Haible  <bruno@clisp.org>
25528
25529         * lib/utf8-ucs4.h: New file, from GNU gettext.
25530         * lib/utf16-ucs4.h: New file, from GNU gettext.
25531         * lib/ucs4-utf8.h: New file, from GNU gettext.
25532         * lib/ucs4-utf16.h: New file, from GNU gettext.
25533
25534 2003-04-02  Bruno Haible  <bruno@clisp.org>
25535
25536         * modules/binary-io: New file.
25537         * MODULES.html.sh (func_all_modules): Add it.
25538
25539 2003-04-02  Bruno Haible  <bruno@clisp.org>
25540
25541         * lib/binary-io.h: New file, from GNU gettext.
25542
25543 2003-04-01  Bruno Haible  <bruno@clisp.org>
25544
25545         * modules/pathname: New file.
25546         * MODULES.html.sh (func_all_modules): Add it.
25547
25548 2003-04-01  Bruno Haible  <bruno@clisp.org>
25549
25550         * lib/pathname.h: New file, from GNU gettext.
25551         * lib/concatpath.c: New file, from GNU gettext.
25552
25553 2003-03-30  Bruno Haible  <bruno@clisp.org>
25554
25555         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
25556
25557 2003-03-30  Bruno Haible  <bruno@clisp.org>
25558
25559         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
25560         function chown() doesn't exist.
25561
25562 2003-03-28  Bruno Haible  <bruno@clisp.org>
25563
25564         * modules/copy-file: New file.
25565         * MODULES.html.sh (func_all_modules): Add it.
25566
25567 2003-03-28  Bruno Haible  <bruno@clisp.org>
25568
25569         * m4/copy-file.m4: New file.
25570
25571 2003-03-28  Bruno Haible  <bruno@clisp.org>
25572
25573         * lib/copy-file.h: New file, from GNU gettext.
25574         * lib/copy-file.c: New file, from GNU gettext.
25575
25576 2003-03-18  Jim Meyering  <jim@meyering.net>
25577
25578         * lib/quote.c (quote_n): Fix typo in comment.
25579
25580 2003-03-18  Bruno Haible  <bruno@clisp.org>
25581
25582         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
25583         checking.
25584         * m4/onceonly_2_57.m4: Likewise.
25585
25586 2003-03-17  Bruno Haible  <bruno@clisp.org>
25587
25588         * m4/onceonly.m4: Require autoconf 2.54 or newer.
25589         (m4_quote): Remove macro.
25590         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
25591
25592 2003-03-14  Jim Meyering  <jim@meyering.net>
25593
25594         Merge changes from Coreutils.
25595         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
25596         to be const, in order to avoid warnings.
25597         (obstack_room): Likewise.
25598         (obstack_empty_p): Likewise.
25599
25600 2003-03-14  Bruno Haible  <bruno@clisp.org>
25601
25602         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
25603         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
25604
25605 2003-03-13  Paul Eggert  <eggert@twinsun.com>
25606
25607         Merge changes from Bison.
25608         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
25609         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
25610         when compiling Bison 1.875's `bitset bset = obstack_alloc
25611         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
25612         * lib/hash.c: Include <stdbool.h> unconditionally.
25613
25614 2003-03-13  Paul Eggert  <eggert@twinsun.com>
25615
25616         * m4/onceonly.m4 (m4_quote): New macro.
25617         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
25618         Quote AC_FOREACH variable-expansions properly.
25619
25620 2003-03-13  Paul Eggert  <eggert@twinsun.com>
25621
25622         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
25623
25624 2003-03-09  Paul Eggert  <eggert@twinsun.com>
25625
25626         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
25627         Reported by Bruce Becker; see:
25628         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
25629
25630 2003-03-03  Paul Eggert  <eggert@twinsun.com>
25631             Bruno Haible  <bruno@clisp.org>
25632
25633         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
25634         Reported by John Hughes, see
25635         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
25636
25637 2003-02-20  Bruno Haible  <bruno@clisp.org>
25638
25639         * MODULES.html.sh (func_all_modules): Add poll.
25640
25641 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
25642
25643         * modules/poll: New file.
25644
25645 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
25646
25647         * lib/poll_.h: New file.
25648         * lib/poll.c: New file.
25649
25650 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
25651
25652         * m4/poll.m4: New file.
25653
25654 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
25655
25656         * modules/mathl: New file.
25657
25658 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
25659
25660         * lib/mathl.h: New file.
25661         * lib/acosl.c: New file.
25662         * lib/asinl.c: New file.
25663         * lib/atanl.c: New file.
25664         * lib/ceill.c: New file.
25665         * lib/cosl.c: New file.
25666         * lib/expl.c: New file.
25667         * lib/floorl.c: New file.
25668         * lib/frexpl.c: New file.
25669         * lib/ldexpl.c: New file.
25670         * lib/logl.c: New file.
25671         * lib/sincosl.c: New file.
25672         * lib/sinl.c: New file.
25673         * lib/sqrtl.c: New file.
25674         * lib/tanl.c: New file.
25675         * lib/trigl.c: New file.
25676         * lib/trigl.h: New file.
25677
25678 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
25679
25680         * m4/mathl.m4: New file.
25681
25682 2003-02-18  Bruno Haible  <bruno@clisp.org>
25683
25684         * MODULES.html.sh (func_all_modules): Add mathl.
25685
25686 2003-02-17  Bruno Haible  <bruno@clisp.org>
25687
25688         * modules/mkdtemp: New module.
25689         * MODULES.html.sh (func_all_modules): Add it.
25690
25691 2003-02-17  Bruno Haible  <bruno@clisp.org>
25692
25693         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
25694
25695 2003-02-17  Bruno Haible  <bruno@clisp.org>
25696
25697         * lib/mkdtemp.h: New file, from GNU gettext.
25698         * lib/mkdtemp.c: New file, from GNU gettext.
25699
25700 2003-02-02  Jim Meyering  <jim@meyering.net>
25701
25702         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
25703         e.g. glibc-2.2.93.
25704
25705 2003-01-31  Bruno Haible  <bruno@clisp.org>
25706
25707         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
25708         'rpl_rename'.
25709         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
25710         'rpl_strnlen'.
25711         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
25712         'rpl_strtod'.
25713         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
25714         'rpl_utime'.
25715
25716 2003-01-31  Bruno Haible  <bruno@clisp.org>
25717
25718         * lib/rename.c: #undef rename before defining rpl_rename.
25719         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
25720
25721 2003-01-30  Bruno Haible  <bruno@clisp.org>
25722
25723         * modules/vasnprintf, modules/vasprintf: New modules.
25724         * MODULES.html.sh (func_all_modules): Add them.
25725
25726 2003-01-30  Bruno Haible  <bruno@clisp.org>
25727
25728         * m4/signed.m4: New file, from GNU gettext.
25729         * m4/longdouble.m4: New file, from GNU gettext.
25730         * m4/wchar_t.m4: New file, from GNU gettext.
25731         * m4/wint_t.m4: New file, from GNU gettext.
25732         * m4/vasnprintf.m4: New file.
25733         * m4/vasprintf.m4: New file.
25734
25735 2003-01-30  Bruno Haible  <bruno@clisp.org>
25736
25737         * lib/printf-args.h: New file, from GNU gettext.
25738         * lib/printf-args.c: New file, from GNU gettext.
25739         * lib/printf-parse.h: New file, from GNU gettext.
25740         * lib/printf-parse.c: New file, from GNU gettext.
25741         * lib/vasnprintf.h: New file, from GNU gettext.
25742         * lib/vasnprintf.c: New file, from GNU gettext.
25743         * lib/asnprintf.c: New file, from GNU gettext.
25744         * lib/vasprintf.h: New file, from GNU gettext with modifications.
25745         * lib/vasprintf.c: New file, from GNU gettext.
25746         * lib/asprintf.c: New file, from GNU gettext.
25747
25748 2003-01-29  Bruno Haible  <bruno@clisp.org>
25749
25750         * modules/stpncpy: New module.
25751         * MODULES.html.sh (func_all_modules): Add it.
25752
25753 2003-01-29  Bruno Haible  <bruno@clisp.org>
25754
25755         * m4/stpncpy.m4: New file.
25756
25757 2003-01-29  Bruno Haible  <bruno@clisp.org>
25758
25759         * lib/stpncpy.h: New file, from GNU gettext with modifications.
25760         * lib/stpncpy.c: New file, from GNU gettext with modifications.
25761
25762 2003-01-28  Bruno Haible  <bruno@clisp.org>
25763
25764         * modules/c-ctype: New module.
25765         * MODULES.html.sh (func_all_modules): Add it.
25766
25767 2003-01-28  Bruno Haible  <bruno@clisp.org>
25768
25769         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
25770         Paul Eggert.
25771         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
25772         Paul Eggert.
25773
25774 2003-01-27  Bruno Haible  <bruno@clisp.org>
25775
25776         * modules/xsetenv: New module.
25777         * MODULES.html.sh (func_all_modules): Add it.
25778
25779 2003-01-27  Bruno Haible  <bruno@clisp.org>
25780
25781         * lib/xsetenv.h: New file, from GNU gettext.
25782         * lib/xsetenv.c: New file, from GNU gettext.
25783
25784 2003-01-23  Jim Meyering  <jim@meyering.net>
25785
25786         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
25787         from working on systems without dirfd (at least Irix and OSF1/Tru64).
25788
25789 2003-01-23  Bruno Haible  <bruno@clisp.org>
25790
25791         * modules/minmax: New module.
25792         * MODULES.html.sh (func_all_modules): Add it.
25793
25794 2003-01-23  Bruno Haible  <bruno@clisp.org>
25795
25796         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
25797         Eggert.
25798
25799 2003-01-22  Bruno Haible  <bruno@clisp.org>
25800
25801         * modules/exit: New module.
25802         * MODULES.html.sh (func_all_modules): Add it.
25803
25804 2003-01-22  Bruno Haible  <bruno@clisp.org>
25805
25806         * lib/exit.h: New file, from GNU gettext.
25807
25808 2003-01-19  Bruno Haible  <bruno@clisp.org>
25809
25810         * gnulib-tool: Recognize option --extract-maintainer.
25811         (func_get_maintainer): New function.
25812         * modules/*: Add Maintainer entry.
25813
25814 2003-01-16  Jim Meyering  <jim@meyering.net>
25815
25816         * m4/regex.m4: The `regex' struct is both input and output.
25817         Initialize it before each use.  Patch by Tim Waugh.
25818
25819 2003-01-16  Bruno Haible  <bruno@clisp.org>
25820
25821         * MODULES.html.sh: Add a table of contents. Add the module name as
25822         leftmost column. Add hyperlinks.
25823
25824 2003-01-15  Bruno Haible  <bruno@clisp.org>
25825
25826         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
25827
25828 2003-01-15  Bruno Haible  <bruno@clisp.org>
25829
25830         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
25831         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
25832         suffix.
25833
25834 2003-01-15  Bruno Haible  <bruno@clisp.org>
25835
25836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
25837
25838 2003-01-15  Bruno Haible  <bruno@clisp.org>
25839
25840         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
25841         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
25842
25843 2003-01-14  Jim Meyering  <jim@meyering.net>
25844
25845         * lib/same.c (same_name): Tweak a comment.
25846
25847 2003-01-14  Bruno Haible  <bruno@clisp.org>
25848
25849         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
25850         when a string comparison is sufficient.
25851
25852 2003-01-14  Bruno Haible  <bruno@clisp.org>
25853
25854         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
25855         'unsigned int'.
25856
25857 2003-01-14  Bruno Haible  <bruno@clisp.org>
25858
25859         * lib/hash-pjw.c: Add comment about low quality of this function.
25860
25861 2003-01-13  Bruno Haible  <bruno@clisp.org>
25862
25863         * modules/stpcpy: Distribute lib/stpcpy.h.
25864         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
25865
25866 2003-01-13  Bruno Haible  <bruno@clisp.org>
25867
25868         * modules/*: Add a description.
25869         * modules/strpbrk: Fix Makefile.am snippet.
25870         * modules/strtoimax: Fix dependencies.
25871         * modules/strtoumax: Likewise.
25872
25873 2003-01-13  Bruno Haible  <bruno@clisp.org>
25874
25875         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
25876         * modules/alloca (Makefile.am): All object files depend on alloca.h.
25877         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
25878
25879 2003-01-13  Bruno Haible  <bruno@clisp.org>
25880
25881         * gnulib-tool (func_create_testdir): Store config/* files in the main
25882         directory.
25883         * config.rpath: Move to ...
25884         * config/config.rpath: ... here.
25885         * modules/gettext: Contains config/config.rpath, not config.rpath.
25886         * modules/iconv: Likewise.
25887
25888 2003-01-12  Paul Eggert  <eggert@twinsun.com>
25889
25890         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
25891         to avoid collisions with libcurses and libreadline.
25892
25893         * m4/getstr.m4: Remove.
25894         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
25895
25896 2003-01-12  Paul Eggert  <eggert@twinsun.com>
25897
25898         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
25899         to avoid collisions with libcurses and libreadline.
25900
25901         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
25902         * lib/getstr.h, getstr.c: Remove.
25903         * lib/getline.c: Include "getline.h", to check interface.
25904         Move body of old getstr.c here: this defines MIN_CHUNK and
25905         declares getdelim2, which is renamed from getstr.
25906         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
25907
25908         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
25909         All uses changed.
25910         * lib/linebuffer.h: Likewise.
25911         (readline): Remove backward-compatibility macro.
25912
25913 2003-01-12  Paul Eggert  <eggert@twinsun.com>
25914
25915         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
25916         to avoid collisions with libcurses and libreadline.
25917         * getstr: Remove.
25918         * MODULES.html.sh: Remove getstr.
25919         * modules/getline: Depend on unlocked-io, not getstr.
25920
25921 2003-01-12  Jim Meyering  <jim@meyering.net>
25922
25923         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
25924
25925 2003-01-10  Bruno Haible  <bruno@clisp.org>
25926
25927         * modules/alloca: Change Makefile.am requirements. Simplify Include
25928         requirements. Add lib/alloca_.h to file list.
25929
25930 2003-01-10  Bruno Haible  <bruno@clisp.org>
25931
25932         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
25933
25934 2003-01-10  Bruno Haible  <bruno@clisp.org>
25935
25936         * lib/alloca_.h: New file.
25937         * lib/getdate.y: Unconditionally include alloca.h.
25938         * lib/makepath.c: Likewise.
25939         * lib/setenv.c: Likewise.
25940         * lib/userspec.c: Likewise.
25941
25942 2003-01-09  Karl Berry  <karl@gnu.org>
25943
25944         * MODULES.html.sh: include `dirname $0` in PATH, to find
25945         gnulib-tool.
25946
25947 2003-01-09  Bruno Haible  <bruno@clisp.org>
25948
25949         * modules/stdbool: Change configure.ac, Makefile.am requirements.
25950         Simplify Include requirements. Add lib/stdbool.h.in to file list.
25951
25952 2003-01-09  Bruno Haible  <bruno@clisp.org>
25953
25954         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
25955
25956 2003-01-09  Bruno Haible  <bruno@clisp.org>
25957
25958         * lib/stdbool.h.in: New file.
25959
25960 2003-01-09  Bruno Haible  <bruno@clisp.org>
25961
25962         * gnulib-tool (func_all_modules): Ignore files ending in ~.
25963         * MODULES.html.sh: Likewise.
25964
25965 2003-01-08  Jim Meyering  <jim@meyering.net>
25966
25967         * lib/full-write.c: Undefine and define-away `const' after inclusion
25968         of errno.h, not before.  Suggestion from Bruno Haible.
25969
25970 2003-01-08  Bruno Haible  <bruno@clisp.org>
25971
25972         * modules/full-read: Depend on full-write.
25973
25974 2003-01-08  Bruno Haible  <bruno@clisp.org>
25975
25976         * lib/safe-read.c: Include specification header first, to ensure its
25977         selfcontainedness.
25978         * lib/full-write.c: Likewise.
25979
25980 2003-01-07  Jim Meyering  <jim@meyering.net>
25981
25982         * lib/full-write.c: Rework so that it may serve to define full_read,
25983         too.
25984         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
25985
25986 2003-01-07  Bruno Haible  <bruno@clisp.org>
25987
25988         * lib/strtoimax.c: Include <stdint.h> as an alternative to
25989         <inttypes.h>.
25990         * lib/xstrtol.h: Likewise.
25991         * lib/xstrtoimax.c: Likewise.
25992         * lib/xstrtoumax.c: Likewise.
25993         * lib/human.h: Likewise.
25994
25995         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
25996         on systems that have <inttypes.h> but not <stdint.h>.
25997
25998 2003-01-07  Bruno Haible  <bruno@clisp.org>
25999
26000         * MODULES.html.sh: Add copyright notice.
26001         (missed_files): Omit CVS directory entries.
26002         (func_module): Make it work with sed-3.02.
26003         * MODULES.txt: Remove file.
26004
26005 2003-01-06  Jim Meyering  <jim@meyering.net>
26006
26007         * lib/version-etc.c: Update year in translatable copyright string.
26008
26009 2003-01-03  Karl Berry  <karl@gnu.org>
26010
26011         * config/config.{guess,sub}: update from prep.
26012
26013 2003-01-02  Karl Berry  <karl@gnu.org>
26014
26015         * doc/COPYING.DOC: belatedly updated to 1.2.
26016
26017 2003-01-01  Karl Berry  <karl@gnu.org>
26018
26019         * gnulib-tool (func_verify_module): report module name $module in
26020         error message, not $1.
26021         * gnulib-tool (create-testdir): don't complain if destdir couldn't
26022         be created, only if it doesn't exist.
26023         * gnulib-tool (last_checkin_date): don't expand the $Date here.
26024
26025 2002-12-31  Paul Eggert  <eggert@twinsun.com>
26026
26027         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
26028
26029 2002-12-31  Paul Eggert  <eggert@twinsun.com>
26030
26031         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
26032         memcmp if strcoll doesn't work.
26033
26034 2002-12-31  Bruno Haible  <bruno@clisp.org>
26035
26036         * lib/utime.c (utime_null): No need to call ftruncate if the file was
26037         nonempty.
26038
26039 2002-12-31  Bruno Haible  <bruno@clisp.org>
26040
26041         * lib/memcoll.c (STRCOLL): New macro.
26042         (memcoll): Use it.
26043
26044 2002-12-31  Bruno Haible  <bruno@clisp.org>
26045
26046         * lib/localcharset.h: New file.
26047         * lib/localcharset.c: Include it.
26048         * lib/unicodeio.c: Likewise.
26049
26050 2002-12-31  Bruno Haible  <bruno@clisp.org>
26051
26052         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
26053         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
26054
26055 2002-12-31  Bruno Haible  <bruno@clisp.org>
26056
26057         * lib/getline.h: Include <stddef.h>, for size_t.
26058
26059         * lib/unicodeio.h: Include <stddef.h>, for size_t.
26060         * lib/unicodeio.c: Don't include <stddef.h>.
26061
26062 2002-12-31  Bruno Haible  <bruno@clisp.org>
26063
26064         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
26065         HAVE_TM_ZONE.
26066
26067 2002-12-24  Karl Berry  <karl@gnu.org>
26068
26069         * config/config.guess: update from prep.
26070
26071 2002-12-24  Bruno Haible  <bruno@clisp.org>
26072
26073         General infrasructure.
26074         * m4/README: Rewritten.
26075         * m4/onceonly.m4: New file.
26076         * m4/onceonly_2_57.m4: New file.
26077
26078         Module atexit.
26079         * m4/atexit.m4: New file.
26080
26081         Module strtod.
26082         * m4/strtod.m4: New file.
26083
26084         Module strtol.
26085         * m4/strtol.m4: New file.
26086
26087         Module strtoul.
26088         * m4/strtoul.m4: New file.
26089
26090         Module memchr.
26091         * m4/memchr.m4: New file.
26092
26093         Module memcmp.
26094         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
26095         (jm_FUNC_MEMCMP): Invoke it.
26096
26097         Module memcpy.
26098         * m4/memcpy.m4: New file.
26099
26100         Module memmove.
26101         * m4/memmove.m4: New file.
26102
26103         Module memset.
26104         * m4/memset.m4: New file.
26105
26106         Module strcspn.
26107         * m4/strcspn.m4: New file.
26108
26109         Module strpbrk.
26110         * m4/strpbrk.m4: New file.
26111
26112         Module strstr.
26113         * m4/strstr.m4: New file.
26114
26115         Module strerror.
26116         * m4/strerror.m4: New file.
26117
26118         Module mktime.
26119         * m4/mktime.m4: Renamed from jm-mktime.m4.
26120         (gl_PREREQ_MKTIME): New macro.
26121         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
26122
26123         Module malloc.
26124         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
26125         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
26126         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
26127
26128         Module realloc.
26129         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
26130         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
26131         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
26132
26133         Module strftime.
26134         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
26135         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
26136         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
26137         gl_TM_GMTOFF.
26138         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
26139
26140         Module xalloc.
26141         * m4/xalloc.m4: New file.
26142
26143         Module alloca.
26144         * m4/alloca.m4: New file.
26145
26146         Module putenv.
26147         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
26148         (jm_FUNC_PUTENV): Invoke it.
26149
26150         Module setenv.
26151         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
26152         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
26153         when invoked twice.
26154         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
26155         gt_FUNC_SETENV.
26156
26157         Module memrchr.
26158         * m4/memrchr.m4: New file.
26159
26160         Module stpcpy.
26161         * m4/stpcpy.m4: New file.
26162
26163         Module strcase.
26164         * m4/strcase.m4: New file.
26165
26166         Module strdup.
26167         * m4/strdup.m4: New file.
26168
26169         Module strnlen.
26170         * m4/strnlen.m4: New file.
26171
26172         Module strndup.
26173         * m4/strndup.m4: New file.
26174
26175         Module xstrtod.
26176         * m4/xstrtod.m4: New file.
26177
26178         Module xstrtol.
26179         * m4/xstrtol.m4: New file.
26180
26181         Module getdate.
26182         * m4/getdate.m4: New file.
26183
26184         Module unlocked-io.
26185         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
26186         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
26187         * m4/jm-glibc-io.m4n: Remove file.
26188
26189         Module long-options.
26190         * m4/long-options.m4: New file.
26191
26192         Module md5.
26193         * m4/md5.m4: New file.
26194
26195         Module sha.
26196         * m4/sha.m4: New file.
26197
26198         Module getstr.
26199         * m4/getstr.m4: New file.
26200
26201         Module getline.
26202         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
26203         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
26204         <sys/types.h>, for size_t. Use the function name gnu_getline, not
26205         simply getline. Infoke gl_PREREQ_GETLINE.
26206
26207         Module obstack.
26208         * m4/obstack.m4: New file.
26209
26210         Module hash.
26211         * m4/hash.m4: New file.
26212
26213         Module readtokens.
26214         * m4/readtokens.m4: New file.
26215
26216         Module strverscmp.
26217         * m4/strverscmp.m4: New file.
26218
26219         Module stdbool.
26220         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
26221         OSF/1.
26222
26223         Module strtoll.
26224         * m4/strtoll.m4: New file.
26225
26226         Module strtoull.
26227         * m4/strtoull.m4: New file.
26228
26229         Module strtoimax.
26230         * m4/strtoimax.m4: New file.
26231
26232         Module strtoumax.
26233         * m4/strtoumax.m4: New file.
26234
26235         Module xstrtoimax.
26236         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
26237         jm_AC_PREREQ_XSTRTOIMAX.
26238         Moved the strtol prerequisites to strtol.m4.
26239         Moved the strtoll prerequisites to strtoll.m4.
26240         Moved the strtoimax prerequisites to strtoimax.m4.
26241
26242         Module xstrtoumax.
26243         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
26244         jm_AC_PREREQ_XSTRTOUMAX.
26245         Moved the strtoul prerequisites to strtoul.m4.
26246         Moved the strtoull prerequisites to strtoull.m4.
26247         Moved the strtoumax prerequisites to strtoumax.m4.
26248
26249         Module chown.
26250         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
26251         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
26252
26253         Module dup2.
26254         * m4/dup2.m4: New file.
26255
26256         Module ftruncate.
26257         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
26258         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
26259
26260         Module getgroups.
26261         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
26262         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
26263
26264         Module gettimeofday.
26265         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
26266         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
26267         gl_PREREQ_GETTIMEOFDAY.
26268
26269         Module mkdir.
26270         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
26271         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
26272
26273         Module mkstemp.
26274         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
26275         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
26276         jm_AC_TYPE_UINTMAX_T.
26277         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
26278
26279         Module stat.
26280         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
26281         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
26282
26283         Module lstat.
26284         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
26285         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
26286
26287         Module timespec.
26288         * m4/timespec.m4 (gl_TIMESPEC): New macro.
26289         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
26290         * m4/st_mtim.m4: Indentation.
26291
26292         Module nanosleep.
26293         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
26294         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
26295         gl_PREREQ_NANOSLEEP.
26296
26297         Module regex.
26298         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
26299         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
26300         (gl_REGEX): New macro.
26301
26302         Module rename.
26303         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
26304         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
26305
26306         Module rmdir.
26307         * m4/rmdir.m4: New file.
26308
26309         Module utime.
26310         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
26311         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
26312         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
26313
26314         Module dirname.
26315         * m4/dirname.m4: New file.
26316
26317         Module getopt.
26318         * m4/getopt.m4: New file.
26319
26320         Module unistd-safer.
26321         * m4/unistd-safer.m4: New file.
26322
26323         Module fnmatch.
26324         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
26325         declaration.
26326         (gl_PREREQ_FNMATCH_EXTRA): New macro.
26327         (gl_FUNC_FNMATCH_POSIX): New macro.
26328         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
26329         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
26330         simply fnmatch.
26331
26332         Module exclude.
26333         * m4/exclude.m4: New file.
26334
26335         Module human.
26336         * m4/human.m4: New file.
26337
26338         Module acl.
26339         * m4/acl.m4: Nop.
26340
26341         Module backupfile.
26342         * m4/backupfile.m4: New file.
26343         * m4/d-ino.m4: Indentation.
26344
26345         Module fsusage.
26346         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
26347         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
26348         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
26349
26350         Module dirfd.
26351         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
26352         requirements.
26353
26354         Module euidaccess.
26355         * m4/euidaccess.m4: New file.
26356
26357         Module file-type.
26358         * m4/file-type.m4: New file.
26359
26360         Module fileblocks.
26361         * m4/fileblocks.m4: New file.
26362
26363         Module filemode.
26364         * m4/filemode.m4: New file.
26365
26366         Module isdir.
26367         * m4/isdir.m4: New file.
26368
26369         Module lchown.
26370         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
26371         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
26372
26373         Module makepath.
26374         * m4/makepath.m4: New file.
26375
26376         Module modechange.
26377         * m4/modechange.m4: New file.
26378
26379         Module mountlist.
26380         * m4/mountlist.m4: New file.
26381         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
26382         Indentation.
26383
26384         Module path-concat.
26385         * m4/path-concat.m4: New file.
26386
26387         Module pathmax.
26388         * m4/pathmax.m4: New file.
26389
26390         Module same.
26391         * m4/same.m4: New file.
26392
26393         Module save-cwd.
26394         * m4/save-cwd.m4: New file.
26395
26396         Module savedir.
26397         * m4/savedir.m4: New file.
26398
26399         Module xgetcwd.
26400         * m4/xgetcwd.m4: New file.
26401         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
26402
26403         Module xreadlink.
26404         * m4/xreadlink.m4: New file.
26405
26406         Module safe-read.
26407         * m4/safe-read.m4: New file.
26408
26409         Module safe-write.
26410         * m4/safe-write.m4: New file.
26411
26412         Module closeout.
26413         * m4/closeout.m4: New file.
26414
26415         Module stdio-safer.
26416         * m4/stdio-safer.m4: New file.
26417
26418         Module getpass.
26419         * m4/getpass.m4: New file.
26420
26421         Module getugroups.
26422         * m4/getugroups.m4: New file.
26423
26424         Module group-member.
26425         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
26426         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
26427
26428         Module idcache.
26429         * m4/idcache.m4: New file.
26430
26431         Module userspec.
26432         * m4/userspec.m4: New file.
26433
26434         Module gettime.
26435         * m4/clock_time.m4: New file.
26436         * m4/gettime.m4: New file.
26437
26438         Module settime.
26439         * m4/settime.m4: New file.
26440
26441         Module posixtm.
26442         * m4/posixtm.m4: New file.
26443
26444         Module gethostname.
26445         * m4/gethostname.m4: New file.
26446
26447         Module canon-host.
26448         * m4/canon-host.m4: New file.
26449
26450         Module gettext.
26451         * m4/codeset.m4: New file, from gettext-0.11.5.
26452         * m4/gettext.m4: New file, from gettext-0.11.5.
26453         * m4/glibc21.m4: New file, from gettext-0.11.5.
26454         * m4/iconv.m4: New file, from gettext-0.11.5.
26455         * m4/intdiv0.m4: New file, from gettext-0.11.5.
26456         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
26457         * m4/inttypes.m4: New file, from gettext-0.11.5.
26458         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
26459         * m4/isc-posix.m4: New file, from gettext-0.11.5.
26460         * m4/lcmessage.m4: New file, from gettext-0.11.5.
26461         * m4/lib-ld.m4: New file, from gettext-0.11.5.
26462         * m4/lib-link.m4: New file, from gettext-0.11.5.
26463         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
26464         * m4/progtest.m4: New file, from gettext-0.11.5.
26465         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
26466         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
26467         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
26468
26469         Module localcharset.
26470         * m4/localcharset.m4: New file.
26471
26472         Module hard-locale.
26473         * m4/hard-locale.m4: New file.
26474
26475         Module mbswidth.
26476         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
26477         onceonly macros.
26478         * m4/mbrtowc.m4: Add comment.
26479
26480         Module memcasecmp.
26481         * m4/memcasecmp.m4: New file.
26482
26483         Module memcoll.
26484         * m4/memcoll.m4: New file.
26485
26486         Module unicodeio.
26487         * m4/unicodeio.m4: New file.
26488
26489         Module rpmatch.
26490         * m4/rpmatch.m4: New file.
26491
26492         Module yesno.
26493         * m4/yesno.m4: New file.
26494
26495         Module exitfail.
26496         * m4/exitfail.m4: New file.
26497
26498         Module c-stack.
26499         * m4/c-stack.m4 (gl_C_STACK): New macro.
26500         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
26501
26502         Module error.
26503         * m4/error.m4 (gl_ERROR): New macro.
26504         (jm_PREREQ_ERROR): Use onceonly macros.
26505
26506         Module fatal.
26507         * m4/fatal.m4: New file.
26508
26509         Module getloadavg.
26510         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
26511         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
26512
26513         Module getpagesize.
26514         * m4/getpagesize.m4: New file.
26515
26516         Module getusershell.
26517         * m4/getusershell.m4: New file.
26518
26519         Module physmem.
26520         * m4/physmem.m4: New file.
26521
26522         Module posixver.
26523         * m4/posixver.m4: New file.
26524
26525         Module quotearg.
26526         * m4/quotearg.m4: New file.
26527
26528         Module quote.
26529         * m4/quote.m4: New file.
26530
26531         Module readutmp.
26532         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
26533
26534         Module sig2str.
26535         * m4/sig2str.m4: New file.
26536
26537         Other.
26538         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
26539         ulonglong.m4.
26540         * m4/intmax_t.m4: New file.
26541         * m4/d-type.m4: Indentation.
26542         * m4/jm-macros.m4: Update.
26543         * m4/prereq.m4 (jm_PREREQ): Update.
26544         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
26545         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
26546         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
26547         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
26548         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
26549         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
26550         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
26551         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
26552         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
26553         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
26554         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
26555         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
26556         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
26557         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
26558         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
26559         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
26560         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
26561         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
26562         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
26563
26564 2002-12-24  Bruno Haible  <bruno@clisp.org>
26565
26566         * MODULES.txt: Update according to m4/ changes.
26567
26568         Module gettext.
26569         * config.rpath: New file, from gettext-0.11.5.
26570
26571         * modules/*: New module descriptions.
26572         * gnulib-tool: New file.
26573         * MODULES.html.sh: New file.
26574
26575 2002-12-21  Karl Berry  <karl@gnu.org>
26576
26577         * doc/fdl.texi: update to version 1.2.
26578
26579 2002-12-19  Karl Berry  <karl@gnu.org>
26580
26581         * config/config.guess: update from prep.
26582
26583 2002-12-18  Bruno Haible  <bruno@clisp.org>
26584
26585         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
26586         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
26587
26588 2002-12-17  Bruno Haible  <bruno@clisp.org>
26589
26590         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
26591         stdlib.h, string.h.
26592
26593 2002-12-17  Bruno Haible  <bruno@clisp.org>
26594
26595         * lib/canon-host.c (strdup): Remove unused declaration.
26596
26597         * lib/fsusage.c: Include full_read.h.
26598         (get_fs_usage): Use full_read instead of safe_read.
26599
26600         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
26601
26602 2002-12-12  Karl Berry  <karl@gnu.org>
26603
26604         * config/config.guess: update from prep.
26605
26606 2002-12-11  Bruno Haible  <bruno@clisp.org>
26607
26608         * m4/setenv.m4: New file, from gettext-0.11.5.
26609
26610 2002-12-11  Bruno Haible  <bruno@clisp.org>
26611
26612         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
26613         not unsetenv().
26614         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
26615         modifications:
26616
26617         2002-12-11  Bruno Haible  <bruno@clisp.org>
26618
26619                 * setenv.c (alloca): Fall back to malloc.
26620                 (freea): New macro.
26621                 (setenv): Use freea() to free memory allocated with alloca().
26622
26623         2002-11-13  Bruno Haible  <bruno@clisp.org>
26624
26625                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
26626                 function declarations.
26627                 * unsetenv.c (unsetenv): Likewise.
26628
26629         2002-03-04  Bruno Haible  <bruno@clisp.org>
26630
26631                 Portability to AIX 4.3.3.
26632                 * unsetenv.c: New file, extracted from setenv.c.
26633                 * setenv.c: Move the unsetenv() function to unsetenv.c.
26634
26635         2001-12-20  Bruno Haible  <bruno@clisp.org>
26636
26637                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
26638                 use malloc instead. For SunOS 4.
26639
26640         2001-12-11  Bruno Haible  <bruno@clisp.org>
26641
26642                 * setenv.c: Declare alloca.
26643                 (compar_fn_t): New typedef.
26644                 (KNOWN_VALUE, STORE_VALUE): Use it.
26645
26646         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
26647         setenv.h.
26648
26649 2002-12-10  Paul Eggert  <eggert@twinsun.com>
26650
26651         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
26652         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
26653         Choose values that are less likely to collide with system fnmatch
26654         options.
26655         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
26656         defined (e.g., a pure POSIX system).
26657         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
26658         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
26659
26660 2002-12-06  Paul Eggert  <eggert@twinsun.com>
26661
26662         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
26663         a pain in practice to deal with generated m4 files.  This change
26664         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
26665
26666         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
26667         and jm-glibc-io.m4, as they are no longer a special case.
26668         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
26669         kludge and the auto-generation stuff.  Check only whether the
26670         functions are declared, not whether they exist, since older hosts
26671         that don't declare the functions can't use the optimization anyway.
26672
26673 2002-12-06  Jim Meyering  <jim@meyering.net>
26674
26675         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
26676
26677         Merge in changes from libc's misc/error.c, in preparation
26678         for the merge of gnulib's changes back into libc.
26679
26680         * lib/error.c (_): Define only if not already defined.
26681         Move definition to follow all #include directives.
26682         Include unlocked-io.h only if !_LIBC.
26683         [_LIBC]: Include <libio/libioP.h>.
26684         [USE_IN_LIBIO]: Include <libio/iolibio.h>
26685         (fflush): Tweak definition to use INTUSE.
26686         (putc): Define.
26687
26688 2002-12-05  Paul Eggert  <eggert@twinsun.com>
26689
26690         * lib/alloca.c [defined emacs]: Include "lisp.h".
26691         (xalloc_die) [defined emacs]: New macro.
26692         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
26693         [! defined emacs]: Include <xalloc.h>.
26694         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
26695         (pointer): Typedef to POINTER_TYPE *.
26696         (malloc): Remove decl; we now always use xmalloc.
26697         (alloca): Use old-style definition, since Emacs needs this.
26698         Check for arithmetic overflow when computing combined size.
26699
26700 2002-12-04  Paul Eggert  <eggert@twinsun.com>
26701
26702         Do not generate unlocked-io.h automatically, since it's easier to
26703         maintain it by hand.
26704
26705         * lib/unlocked-io.h: New file, from GNU diffutils,
26706         but with proper copyright notice and attribution.
26707         * lib/gen-uio: Remove.
26708         * lib/Makefile.am: Add copyright notice.
26709         (libfetish_a_SOURCES): Add unlocked-io.h.
26710         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
26711         (DISTCLEANFILES, io_functions): Remove macros.
26712         (EXTRA_DIST): Remove gen_uio.
26713         (unlocked-io.h): Remove rule.
26714
26715 2002-12-04  Jim Meyering  <jim@meyering.net>
26716
26717         Reflect the fact that stat.c and lstat.c are no longer generated.
26718         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
26719         (DISTCLEANFILES): Likewise.
26720         (EXTRA_DIST): Likewise.
26721         (all_local): Don't depend on stat.c or lstat.c.
26722         (stat.c, lstat.c): Remove rules.
26723         (EXTRA_DIST): Remove xstat.in.
26724
26725         * lib/xstat.in: Remove file.  Contents moved into stat.c.
26726         * lib/stat.c: New file.  Contents mostly from xstat.in.
26727         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
26728         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
26729
26730         * lib/safe-read.c: Rework so that it may serve to define safe_write,
26731         too.
26732         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
26733
26734 2002-12-03  Jim Meyering  <jim@meyering.net>
26735
26736         * lib/safe-read.c, safe-write.c: Change variable names and comments,
26737         but not semantics, to minimize the differences between these two files.
26738         (safe_read): Change comment to mention SAFE_READ_ERROR.
26739
26740         * lib/safe-read.c (IS_EINTR): Define.
26741         (safe_read): Use IS_EINTR in place of in-function cpp directives.
26742
26743 2002-12-02  Jim Meyering  <jim@meyering.net>
26744
26745         * lib/safe-read.c (EINTR): Define.
26746         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
26747         (INT_MAX): Provide fallback.
26748         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
26749
26750         * lib/safe-read.h (SAFE_READ_ERROR): Define.
26751
26752 2002-12-02  Bruno Haible  <bruno@clisp.org>
26753
26754         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
26755         Define, taken from safe-read.c.
26756         (INT_MAX): Provide fallback.
26757         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
26758         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
26759
26760         * lib/safe-read.c (EINTR): Remove definition.
26761         (safe_read): Don't use EINTR if it is absent.
26762
26763 2002-12-01  Jim Meyering  <jim@meyering.net>
26764
26765         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
26766         zero.
26767         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
26768
26769 2002-11-27  Paul Eggert  <eggert@twinsun.com>
26770
26771         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
26772         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
26773         with `if (! (value < limit)) abort ();', for readability.
26774
26775 2002-11-26  Karl Berry  <karl@gnu.org>
26776
26777         * lib/strdup.c: copy from libc again, with jim's ok.
26778         * lib/.cppi-disable: re-add strdup.c
26779
26780 2002-11-25  Karl Berry  <karl@gnu.org>
26781
26782         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
26783         instead of "strtol.c".
26784
26785 2002-11-25  Karl Berry  <karl@gnu.org>
26786
26787         * config/install-sh: update from automake for variable quoting, $0 in
26788         error msgs, etc.
26789
26790         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
26791         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
26792         entry.
26793
26794 2002-11-25  Jim Meyering  <jim@meyering.net>
26795
26796         * lib/mktime.c: Sync from libc, now that it has the latest fix.
26797
26798 2002-11-24  Karl Berry  <karl@gnu.org>
26799
26800         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
26801         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
26802
26803 2002-11-24  Jim Meyering  <jim@meyering.net>
26804
26805         Update from coreutils:
26806
26807         * lib/mktime.c: Merge in changes from libc.
26808
26809         Avoid a link-time failure on some Linux systems.
26810         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
26811         (otherwise).
26812         (__mon_yday): Declare with the STATIC attribute.
26813         (__mktime_internal): Likewise.
26814         Based on a report from Greg Schafer.
26815
26816 2002-11-23  Jim Meyering  <jim@meyering.net>
26817
26818         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
26819         Use `unsigned', not `int', as type of index.
26820
26821         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
26822
26823         * lib/fsusage.c: Remove unneeded parentheses around operands of
26824         `defined'.
26825
26826 2002-11-22  Paul Eggert  <eggert@twinsun.com>
26827
26828         * lib/quotearg.h: Allow multiple inclusion by surrounding with
26829         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
26830         so that we can be included first.
26831         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
26832         * lib/quotearg.c: Include quotearg.h immediately after config.h.
26833         No need to include stddef.h or sys/types.h any more.
26834         Surround local include files with "", not "<>".
26835         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
26836         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
26837         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
26838         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
26839         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
26840         (ISPRINT): Remove; no longer needed now that we assume C89.
26841
26842         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
26843         Preserve errno.
26844
26845         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
26846         quotearg_char): Use SIZE_MAX rather than
26847         (size_t) -1 when we are talking about "infinity".
26848
26849         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
26850
26851 2002-11-22  Paul Eggert  <eggert@twinsun.com>
26852
26853         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
26854         hint that one should use `if (! x) abort ();' rather than `assert
26855         (x);', and anyway it's one less thing to worry about configuring.
26856         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
26857         hash_rehash, hash_insert): Use abort rather than assert.
26858
26859 2002-11-22  Bruno Haible  <bruno@clisp.org>
26860
26861         * lib/safe-read.h: Assume C89. Add comments.
26862         (safe_read): Change return type to size_t.
26863         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
26864         byte counts > SSIZE_MAX correctly.
26865         * lib/safe-write.h: New file.
26866         * lib/safe-write.c: New file.
26867         * lib/full-read.h: New file.
26868         * lib/full-read.c: New file.
26869         * lib/full-write.h: Assume C89. Add comments.
26870         * lib/full-write.c: Include safe-write.h.
26871         (full_write): Rewritten to use safe_write.
26872         Suggested by Jim Meyering and Paul Eggert.
26873
26874 2002-11-21  Jim Meyering  <jim@meyering.net>
26875
26876         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
26877
26878         Merge in changes from the coreutils.
26879
26880         2002-09-25  Paul Eggert  <eggert@twinsun.com>
26881         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
26882         <stdint.h>.
26883         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
26884         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
26885         int.  Work more efficiently if X is the same width as uintmax_t.
26886         Do not compare X to -1, to avoid bogus compiler warning.
26887         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
26888         Don't assume that f_frsize and f_bsize are the same type.
26889
26890         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
26891         warning on FreeBSD.
26892
26893         * lib/makepath.c (make_path): Restore umask *before* creating the final
26894         component.
26895         (make_path): Minor reformatting.
26896
26897         * lib/xmalloc.c: Adjust to work with new autoconf macros,
26898         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
26899         HAVE_MALLOC/HAVE_REALLOC.
26900
26901         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
26902         dummy ones.  At least on GNU/Linux systems, `auto' means something
26903         else.
26904         From Michael Stone.
26905
26906 2002-11-21  Bruno Haible  <bruno@clisp.org>
26907
26908         Remove case insensitive option matching.
26909         * lib/argmatch.h (argcasematch): Remove declaration.
26910         (ARGCASEMATCH): Remove macro.
26911         (__xargmatch_internal): Remove case_sensitive argument.
26912         (XARGMATCH): Update.
26913         (XARGCASEMATCH): Remove macro.
26914         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
26915         case_sensitive argument.
26916         (argcasematch): Remove function.
26917         (__xargmatch_internal): Remove case_sensitive argument.
26918         (main): Use XARGMATCH instead of XARGCASEMATCH.
26919
26920         * lib/xmalloc.c: Change compile-time error message. Add comment about
26921         required autoconf version.
26922
26923 2002-11-20  Paul Eggert  <eggert@twinsun.com>
26924
26925         Merge argmatch cleanups from Bison.  Assume C89.
26926
26927         * lib/argmatch.c: Include config.h here, not in argmatch.h.
26928         Include stdlib.h, for EXIT_FAILURE.
26929         Always include <string.h>, since we assume C89.
26930         (EXIT_FAILURE): Remove pre-C89 bug workaround.
26931         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
26932         Include <stddef.h> instead, since it's all we need for size_t.
26933         (PARAMS): Remove.  All uses removed.
26934         (ARRAY_CARDINALITY): Do not bother to #undef.
26935         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
26936         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
26937         Remove unnecessary parentheses.
26938         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
26939         Insert necessary parentheses.
26940         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
26941         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
26942
26943 2002-11-19  Bruno Haible  <bruno@clisp.org>
26944
26945         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
26946         * lib/mbswidth.h: Include <stddef.h>, for size_t.
26947
26948         * lib/mbswidth.h (PARAMS): Remove macro.
26949         (mbswidth, mbsnwidth): Use ANSI C function declarations.
26950         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
26951
26952         * lib/gcd.h (PARAMS): Remove macro.
26953         (gcd): Use ANSI C function declarations.
26954         * lib/gcd.c (gcd): Likewise.
26955
26956 2002-11-15  Bruno Haible  <bruno@clisp.org>
26957
26958         * lib/strcspn.c: Include <stddef.h>.
26959         (strcspn): Use ANSI C function declaration. Change return type to
26960         size_t. Use NULL.
26961         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
26962         (strpbrk): Use NULL.
26963         * lib/strpbrk.h (PARAMS): Remove macro.
26964         (strpbrk): Use ANSI C function declaration.
26965         * lib/strstr.c: Don't include <sys/types.h>.
26966         * lib/strstr.h (PARAMS): Remove macro.
26967         (strstr): Use ANSI C function declarations.
26968
26969 2002-11-14  Karl Berry  <karl@gnu.org>
26970
26971         * config/mkinstalldirs: `do' on separate line, instead of
26972         `for var; do'.
26973
26974 2002-11-06  Bruno Haible  <bruno@clisp.org>
26975
26976         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
26977         * lib/gcd.c (gcd): Likewise.
26978
26979 2002-11-05  Bruno Haible  <bruno@clisp.org>
26980
26981         * lib/gcd.h: New file, from gettext-0.11.5.
26982         * lib/gcd.c: New file, from gettext-0.11.5.
26983
26984 2002-11-05  Bruno Haible  <bruno@clisp.org>
26985
26986         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
26987         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
26988         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
26989         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
26990
26991         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
26992         <libintl.h>.
26993         * lib/makepath.c: Include gettext.h instead of <locale.h> and
26994         <libintl.h>.
26995
26996         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
26997         * lib/human.c: Include gettext.h instead of <libintl.h>.
26998         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
26999         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
27000         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
27001         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
27002         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
27003         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
27004         (textdomain): Remove definition.
27005         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
27006
27007         * lib/long-options.c: Remove include of <libintl.h> and definition of
27008         _.
27009         * lib/same.c: Remove include of <libintl.h> and definition of _.
27010
27011 2002-11-04  Owen Taylor  <otaylor@redhat.com>
27012
27013         * lib/config.charset: A few additions for Solaris.
27014
27015 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
27016
27017         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
27018         * lib/localcharset.c (locale_charset): Declare as extern "C".
27019
27020 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
27021
27022         * lib/config.charset: msdos in uk_UA uses CP1125.
27023
27024 2002-11-04  Bruno Haible  <bruno@clisp.org>
27025
27026         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
27027         * lib/strcase.h: New file, from GNU gettext-0.11.5.
27028         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
27029         * lib/strstr.h: New file, from GNU gettext-0.11.5.
27030         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
27031
27032 2002-11-04  Bruno Haible  <bruno@clisp.org>
27033
27034         * lib/localcharset.c (locale_charset): Don't return an empty string.
27035
27036 2002-11-04  Bruno Haible  <bruno@clisp.org>
27037
27038         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
27039         aliases.
27040
27041 2002-11-04  Bruno Haible  <bruno@clisp.org>
27042
27043         * lib/config.charset: Update for newest glibc. Add canonical names
27044         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
27045
27046 2002-11-04  Bruno Haible  <bruno@clisp.org>
27047
27048         * lib/config.charset: Add support for NetBSD.
27049
27050 2002-11-04  Bruno Haible  <bruno@clisp.org>
27051
27052         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
27053
27054 2002-11-01  Bruno Haible  <bruno@clisp.org>
27055
27056         * configure.in: Add AC_CONFIG_AUX_DIR call.
27057         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
27058         test/Makefile.
27059         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
27060
27061 2002-09-28  Karl Berry  <karl@gnu.org>
27062
27063         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
27064         installed automake until the next release, since changes have been
27065         made.
27066
27067 2002-09-25  Karl Berry  <karl@gnu.org>
27068
27069         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
27070         * lib/getopt*: copy from libc/posix.
27071         * lib/gettext.h: copy from gettext.
27072         * lib/.cppi-disable: add strdup.c, gettext.h.
27073
27074 2002-09-25  Karl Berry  <karl@gnu.org>
27075
27076         * config/srclist.txt: enable gettext.h check.
27077         * config/config.{guess,sub}: update from prep.
27078         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
27079                 from automake 1.6.3.
27080         See srclist*.
27081
27082 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
27083
27084         * regex.c (PATFETCH): Remove the translating fetch.
27085         (PATFETCH_RAW): Rename to PATFETCH.
27086         (set_image_of_range): New fun.
27087         (SET_RANGE_TABLE_WORK_AREA): Use it.
27088         (regex_compile): Don't translate the pattern chars so eagerly.
27089         Only do it when inserting an `exactn' bytecode or when handling
27090         a char-range.
27091         (mutually_exclusive_p): Avoid empty statement.
27092
27093 2002-07-06  Jim Meyering  <meyering@lucent.com>
27094
27095         * m4/README: Don't mention Makefile.am.in.
27096         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
27097
27098 2002-07-01  Jim Meyering  <meyering@lucent.com>
27099
27100         * lib/c-stack.c: Include sys/time.h.
27101         From Volker Borchert.
27102
27103 2002-06-26  Paul Eggert  <eggert@twinsun.com>
27104
27105         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
27106
27107 2002-06-26  Paul Eggert  <eggert@twinsun.com>
27108
27109         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
27110         New macro.  Use it uniformly instead of
27111         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
27112         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
27113         reported by Vin Shelton.
27114
27115 2002-06-22  Paul Eggert  <eggert@twinsun.com>
27116
27117         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
27118         Do not assume SA_SIGINFO behavior.
27119         Bug reported by Jim Meyering on NetBSD 1.5.2.
27120
27121 2002-06-22  Jim Meyering  <meyering@lucent.com>
27122
27123         * m4/c-stack.m4: New file, from diffutils-2.8.2.
27124         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
27125
27126         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
27127         now that configure.ac uses AC_GNU_SOURCE.
27128         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
27129         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
27130
27131         Update to latest tools.  Suggestions from Paul Eggert.
27132         * m4/stdbool.m4: New file, from diffutils-2.8.2.
27133         * m4/gnu-source.m4: Update from diffutils-2.8.2.
27134         * m4/fnmatch.m4: Likewise.
27135         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
27136         to AC_HEADER_STDBOOL
27137
27138 2002-06-22  Jim Meyering  <meyering@lucent.com>
27139
27140         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
27141         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
27142
27143 2002-06-22  Jim Meyering  <meyering@lucent.com>
27144
27145         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
27146
27147         * lib/exitfail.c, exitfail.h: Likewise.
27148         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
27149
27150         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
27151         of fnmatch.h.
27152         (EXTRA_DIST): Add fnmatch_loop.c.
27153         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
27154
27155         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
27156         * lib/fnmatch.c: Update from diffutils-2.8.2.
27157         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
27158         * lib/fnmatch.h: Remove file.
27159
27160 2002-06-21  Jim Meyering  <meyering@lucent.com>
27161
27162         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
27163         * m4/mbrtowc.m4: Likewise.
27164
27165         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
27166         * m4/mbswidth.m4: Reflect name change:
27167         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
27168         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27169
27170         * m4/lib-link.m4: Update from gettext-0.11.2.
27171         * m4/gettext.m4: Likewise.
27172
27173         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
27174         From Alfred M. Szmidt.
27175
27176 2002-06-18  Paul Eggert  <eggert@twinsun.com>
27177
27178         * lib/file-type.h: Report an error if neither S_ISREG nor
27179         S_IFREG is defined, instead of using a test specific to glibc
27180         2.2.  This should be safe, since POSIX requires S_ISREG and
27181         Unix Version 7 had S_IFREG.  We don't need to check for
27182         <sys/types.h> since we don't use any symbols that it defines.
27183
27184 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
27185
27186         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
27187         $@-t, so that each temporary file name is unique and valid in the first
27188         8 characters, for operation under DOS.
27189
27190 2002-06-15  Paul Eggert  <eggert@twinsun.com>
27191
27192         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
27193
27194 2002-06-15  Jim Meyering  <meyering@lucent.com>
27195
27196         Work even with DJGPP 2.03, which lacks support for symlinks.
27197         From Richard Dawe.
27198         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
27199         is defined.
27200         * lib/lchown.c (S_ISLNK): Likewise.
27201
27202 2002-06-15  Jim Meyering  <meyering@lucent.com>
27203
27204         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
27205         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
27206         have been included before this file.
27207
27208 2002-06-14  Jim Meyering  <meyering@lucent.com>
27209
27210         * lib/file-type.h: Use the version from diffutils-2.8.2.
27211         * lib/file-type.c: Likewise.
27212
27213 2002-06-07  Jim Meyering  <meyering@lucent.com>
27214
27215         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
27216         They're needed at least for NetBSD 1.5.2.
27217         ($statxfs_includes): Include those same headers.
27218         ($statxfs_includes): Include sys/vfs.h if available.
27219         ($statxfs_includes): Likewise for sys/statvfs.h.
27220         Check for the following members in both structs statfs and statvfs:
27221         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
27222
27223 2002-06-01  Jim Meyering  <meyering@lucent.com>
27224
27225         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
27226         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
27227
27228 2002-05-28  Jim Meyering  <meyering@lucent.com>
27229
27230         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
27231         Reported by Volker Borchert.
27232
27233 2002-05-27  Jim Meyering  <meyering@lucent.com>
27234
27235         Fix a problem seen only on nonconforming systems whereby ls.c's
27236         use of localtime, and then of gettimeofday would cause trouble:
27237         the localtime call used to initialize rpl_gettimeofday's save
27238         mechanism would clobber ls's current local time information so
27239         that in any long listing the first file would always be listed
27240         with date 1970-01-01.  Analysis by Volker Borchert.
27241
27242         * lib/gettimeofday.c (localtime): Undefine.
27243         (rpl_localtime): New function.
27244
27245 2002-05-27  Jim Meyering  <meyering@lucent.com>
27246
27247         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
27248         localtime.
27249
27250         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
27251         use the replacement function; it wouldn't resolve at link time.
27252         Reported by Volker Borchert.
27253
27254 2002-05-22  Jim Meyering  <meyering@lucent.com>
27255
27256         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
27257         file-type.h.
27258         * lib/file-type.h: New file.
27259         * lib/file-type.c (file_type): New file/function.  Extracted from
27260         diffutils.
27261
27262 2002-04-30  Jim Meyering  <meyering@lucent.com>
27263
27264         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
27265
27266 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27267
27268         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
27269
27270 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27271
27272         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
27273         Do not check for alloca.h (no longer used) or stdbool.h (was never
27274         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
27275
27276 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27277
27278         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
27279
27280 2002-04-29  Jim Meyering  <meyering@lucent.com>
27281
27282         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
27283         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
27284         Use AC_FUNC_STRNLEN here instead.
27285
27286         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
27287         With autoconf-2.53a, it's part of AC_PROG_CC.
27288
27289 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27290
27291         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
27292         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
27293
27294 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27295
27296         * lib/sig2str.h, lib/sig2str.c: New files.
27297         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
27298
27299 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27300
27301         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
27302         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
27303         of 127, since 64 is the largest conceivable number for ancient
27304         nonstandard hosts.
27305         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
27306
27307 2002-04-28  Jim Meyering  <meyering@lucent.com>
27308
27309         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
27310
27311 2002-04-24  Jim Meyering  <meyering@lucent.com>
27312
27313         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
27314         (jm_PREREQ): Use it.
27315
27316         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
27317         mach/mach.h fcntl.h.
27318         Check for this function: setlocale.
27319
27320 2002-04-24  Jim Meyering  <meyering@lucent.com>
27321
27322         * lib/gettext.h: New file, from Gettext.
27323         * lib/Makefile.am (INCLUDES): Remove -I../intl.
27324         (libfetish_a_SOURCES): Add gettext.h.
27325
27326 2002-04-16  Jim Meyering  <meyering@lucent.com>
27327
27328         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
27329         ut_pid, ut_id, ut_exit.
27330
27331 2002-04-16  Jim Meyering  <meyering@lucent.com>
27332
27333         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
27334         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
27335         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
27336
27337 2002-04-12  Jim Meyering  <meyering@lucent.com>
27338
27339         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
27340         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
27341         existence of the getmntinfo function.  Needed for Darwin 5.3.
27342
27343         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
27344         This is necessary at least on Darwin 5.3.
27345
27346         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
27347         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
27348         strnlen.o in the library, and that makes some versions of ranlib
27349         object.
27350
27351 2002-04-12  Jim Meyering  <meyering@lucent.com>
27352
27353         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
27354
27355 2002-04-09  Jim Meyering  <meyering@lucent.com>
27356
27357         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
27358         to be more precise.  Rather than saying we're checking whether the
27359         function `works', say what we're testing.
27360         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
27361         Reported by Bruno Haible.
27362
27363 2002-03-10  Jim Meyering  <meyering@lucent.com>
27364
27365         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
27366         Suggestion from Santiago Vila.
27367
27368 2002-03-08  Jim Meyering  <meyering@lucent.com>
27369
27370         * lib/rename.c: Mention that this wrapper is needed also on
27371         mips-dec-ultrix4.4 systems.
27372
27373 2002-03-02  Jim Meyering  <meyering@lucent.com>
27374
27375         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
27376         not HAVE_CLOCK_SETTIME.
27377
27378 2002-02-27  Paul Eggert  <eggert@twinsun.com>
27379
27380         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
27381         Check for clock_settime.
27382
27383 2002-02-27  Paul Eggert  <eggert@twinsun.com>
27384
27385         * lib/nanosleep.h: Rename to....
27386         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
27387
27388         * lib/gettime.c: New file.
27389         * lib/settime.c: New file.
27390         * lib/stime.c: Remove.
27391
27392         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
27393         timespec.h.  Remove nanosleep.h.
27394
27395 2002-02-25  Paul Eggert  <eggert@twinsun.com>
27396
27397         * m4/acl.m4: New file.
27398         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
27399         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
27400
27401 2002-02-25  Paul Eggert  <eggert@twinsun.com>
27402
27403         * lib/acl.c, lib/acl.h: New files.
27404         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
27405
27406 2002-02-24  Jim Meyering  <meyering@lucent.com>
27407
27408         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
27409         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
27410         cause trouble.  Reported by Nelson Beebe.
27411
27412 2002-02-23  Paul Eggert  <eggert@twinsun.com>
27413
27414         * lib/path-concat.c (xpath_concat): Reorder code to pacify
27415         compilers that don't know that xalloc_die never returns.
27416
27417 2002-02-20  Jim Meyering  <meyering@lucent.com>
27418
27419         * lib/getdate.c: Regenerate using bison-1.33.
27420
27421 2002-02-17  Jim Meyering  <meyering@lucent.com>
27422
27423         * config/config.guess (main): Don't use `head -1'; it's no longer
27424         portable. Use `sed 1q' instead.
27425
27426 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
27427
27428         * m4/codeset.m4: Upgrade to gettext-0.11.
27429         * m4/gettext.m4: Upgrade to gettext-0.11.
27430         * m4/glibc21.m4: Upgrade to gettext-0.11.
27431         * m4/iconv.m4: Upgrade to gettext-0.11.
27432         * m4/isc-posix.m4: Upgrade to gettext-0.11.
27433         * m4/lcmessage.m4: Upgrade to gettext-0.11.
27434         * m4/lib-ld.m4: New file, from gettext-0.11.
27435         * m4/lib-link.m4: New file, from gettext-0.11.
27436         * m4/lib-prefix.m4: New file, from gettext-0.11.
27437         * m4/progtest.m4: Upgrade to gettext-0.11.
27438
27439 2002-02-15  Paul Eggert  <eggert@twinsun.com>
27440
27441         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
27442         (jm_PREREQ): Use it.
27443
27444 2002-02-15  Paul Eggert  <eggert@twinsun.com>
27445
27446         * lib/posixver.c, lib/posixver.h: New files.
27447         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27448
27449 2002-02-02  Paul Eggert  <eggert@twinsun.com>
27450             Bruno Haible  <bruno@clisp.org>
27451
27452         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
27453         (fwrite_success_callback): New declaration.
27454         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
27455         print_unicode_char. Call failure callback instead of error.
27456         (fwrite_success_callback): New function.
27457         (exit_failure_callback): New function.
27458         (fallback_failure_callback): New function.
27459         (print_unicode_char): Call unicode_to_mb.
27460
27461 2002-01-26  Jim Meyering  <meyering@lucent.com>
27462
27463         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
27464         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
27465
27466 2002-01-26  Jim Meyering  <meyering@lucent.com>
27467
27468         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
27469
27470 2002-01-22  Paul Eggert  <eggert@twinsun.com>
27471
27472         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
27473
27474 2002-01-22  Jim Meyering  <meyering@lucent.com>
27475
27476         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
27477         Otherwise, some versions of automake would omit the rule that makes
27478         Makefile from Makefile.in.
27479
27480 2002-01-21  Paul Eggert  <eggert@twinsun.com>
27481
27482         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
27483         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27484         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
27485         (memcoll): Set errno to zero if there is no error.
27486
27487         * lib/quotearg.c (quotearg_buffer_restyled):
27488         Fix bug with quoting buffers containing NUL when backslashing escapes.
27489         This bug was exposed by the other changes in this patch.
27490         (quotearg_n_options): New arg ARGSIZE.
27491         All callers changed.
27492         (quoting_options_from_style): New function.
27493         (quotearg_n_style): Use it.
27494         (quotearg_n_style_mem): New function.
27495
27496         * lib/quotearg.h (quotearg_n_style_mem): New function.
27497
27498 2002-01-19  Jim Meyering  <meyering@lucent.com>
27499
27500         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
27501         Remove useless quotes: DF_PROG="df".
27502         * m4/strnlen.m4: New file.
27503
27504 2002-01-16  Paul Eggert  <eggert@twinsun.com>
27505
27506         * lib/backupfile.c (ISDIGIT): Comment fix.
27507         * lib/getdate.y (ISDIGIT): Likewise.
27508         * lib/posixtm.c (ISDIGIT, year): Likewise.
27509         * lib/strverscmp.c (ISDIGIT): Likewise.
27510         * lib/userspec.c (ISDIGIT): Likewise.
27511
27512 2002-01-16  Jim Meyering  <meyering@lucent.com>
27513
27514         * lib/getdate.y: Add three semicolons, each just before a closing
27515         brace. Bison (as of version 1.31) no longer papers over that mistake.
27516
27517 2002-01-05  Jim Meyering  <meyering@lucent.com>
27518
27519         * lib/version-etc.c (version_etc_copyright): Update copyright year.
27520
27521 2001-12-19  Paul Eggert  <eggert@twinsun.com>
27522
27523         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
27524         not silently exit merely because the output buffer happens to
27525         have nothing pending.
27526
27527 2001-12-18  Paul Eggert  <eggert@twinsun.com>
27528
27529         See the big note in ../ChangeLog.
27530         * lib/human.c (suffixes): Prefer K to k for 1024.
27531         (generate_suffix_backwards): New function.
27532         (human_readable_inexact): Use it.
27533         * lib/xstrtol.c (__xstrtol): If there is no number but there
27534         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
27535         Accept 'K' as well as 'k'.
27536
27537 2001-12-15  Jim Meyering  <meyering@lucent.com>
27538
27539         * lib/regex.h (__restrict_arr): Update from libc.
27540
27541         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
27542         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
27543         (STREQ): Define.
27544
27545 2001-12-14  Jim Meyering  <meyering@lucent.com>
27546
27547         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
27548         Suggestion from Bruno Haible.
27549
27550 2001-12-10  Jim Meyering  <meyering@lucent.com>
27551
27552         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
27553         xrealloc, Instead, include "xalloc.h".
27554         (initbuffer): Don't cast xmalloc return value to char*.
27555         (readline): Reword comment.
27556         Don't cast xrealloc return value to char*
27557         Return NULL, not 0.
27558
27559 2001-12-09  Jim Meyering  <meyering@lucent.com>
27560
27561         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
27562         about `signed and unsigned type in conditional expression'.
27563         * lib/posixtm.c (posix_time_parse): Likewise.
27564
27565         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
27566
27567         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
27568         to avoid a pedantic warning.
27569
27570         * lib/getstr.c: Don't include assert.h.
27571         (getstr): Remove warning-evoking assertions.
27572         Return -1 if offset parameter is out of bounds.
27573         Change the type of a local from int to size_t.
27574
27575         * lib/strftime.c (my_strftime_localtime_r): Include this function
27576         definition in the `#if ! HAVE_TM_GMTOFF' block.
27577
27578         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
27579         Include xalloc.h instead.
27580
27581 2001-12-02  Jim Meyering  <meyering@lucent.com>
27582
27583         * lib/tempname.c: Don't declare getenv, thus reverting the change of
27584         2001-11-18.  It's no longer necessary, now that stdlib.h is always
27585         included.
27586
27587         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
27588         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
27589
27590 2001-11-30  Akim Demaille  <akim@epita.fr>
27591
27592         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
27593         before being defined.
27594
27595 2001-11-27  Paul Eggert  <eggert@twinsun.com>
27596
27597         * lib/quotearg.h (quotearg_n, quotearg_n_style):
27598         First arg is int, not unsigned.
27599         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
27600         (SIZE_MAX, UINT_MAX): New macros.
27601         (quotearg_n_options): Abort if N is negative.
27602         Avoid overflow check on hosts where size_t is 64 bits and int
27603         is 32 bits, as overflow is impossible there.
27604         Fix off-by-one typo that caused unnecessary reallocation.
27605
27606 2001-11-27  Jim Meyering  <meyering@lucent.com>
27607
27608         * lib/tempname.c: Merge with version from libc.
27609         * lib/regex.c: Likewise.
27610
27611         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
27612         systems for which STDC_HEADERS is 0, it was not included, resulting in
27613         a warning about an integer-to-pointer conversion problem with getenv.
27614         Reported by Volker Borchert.
27615
27616 2001-11-26  Jim Meyering  <meyering@lucent.com>
27617
27618         * lib/gtod.h: Remove file.
27619         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
27620         * lib/gettimeofday.c: Don't include gtod.h.
27621         (GTOD_init): Remove function.
27622         (rpl_gettimeofday): Do its job here instead, rather than aborting.
27623         Suggestion from Volker Borchert.
27624
27625 2001-11-23  Jim Meyering  <meyering@lucent.com>
27626
27627         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
27628         it.
27629         * lib/hash.c (struct hash_table): Define it here instead.
27630
27631 2001-11-22  Jim Meyering  <meyering@lucent.com>
27632
27633         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
27634
27635 2001-11-20  Jim Meyering  <meyering@lucent.com>
27636
27637         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
27638         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
27639
27640 2001-11-19  Jim Meyering  <meyering@lucent.com>
27641
27642         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
27643         directory.  Use "conftestXXXXXX" as the template.
27644         Suggestion from Paul Eggert.
27645
27646         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
27647         immediately, so the test doesn't mistakenly hit the max-open-files
27648         limit.
27649
27650 2001-11-18  Paul Eggert  <eggert@twinsun.com>
27651
27652         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
27653         (TEMPORARIES): New macro.
27654         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
27655         removes an artificial limitation (e.g. HP-UX 10.20, where
27656         TMP_MAX is 17576).
27657
27658 2001-11-18  Jim Meyering  <meyering@lucent.com>
27659
27660         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
27661
27662 2001-11-18  Jim Meyering  <meyering@lucent.com>
27663
27664         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
27665         on SunOS 4.
27666
27667         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
27668         files will be created before anything else.
27669
27670 2001-11-17  Paul Eggert  <eggert@twinsun.com>
27671
27672         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
27673         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
27674
27675 2001-11-17  Jim Meyering  <meyering@lucent.com>
27676
27677         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
27678         Prompted by a report from Bob Proulx.
27679
27680         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
27681         Instead, require UTILS_FUNC_MKSTEMP.
27682
27683 2001-11-17  Jim Meyering  <meyering@lucent.com>
27684
27685         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
27686         Now, that's done as part of AC_FUNC_STRTOD.
27687
27688 2001-11-17  Jim Meyering  <meyering@lucent.com>
27689
27690         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
27691         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
27692         rather than group writable.  Patch by Juan F. Codagnone.
27693
27694         * lib/readtokens.c: Remove explicit declarations of xmalloc and
27695         xrealloc, Instead, include "xalloc.h".
27696
27697         * lib/mountlist.c: Include unlocked-io.h after all system headers.
27698         Remove explicit declarations of xmalloc, xrealloc,
27699         and xstrdup.  Instead, include "xalloc.h".
27700
27701         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
27702         unlocked-io.h.
27703         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
27704         Likewise.
27705         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
27706
27707         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
27708         Reported by Padraig Brady.
27709
27710         * lib/mkstemp.c: #undef mkstemp.
27711         Include config.h.
27712         (rpl_mkstemp): Rename from mkstemp.
27713         Protoize.
27714
27715 2001-11-16  Jim Meyering  <meyering@lucent.com>
27716
27717         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
27718         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
27719         determine the amount of total physical memory, use pstat_getstatic.
27720         HPUX-11 doesn't define _SC_PHYS_PAGES.
27721         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
27722         If sysconf couldn't be used to determine the amount of available
27723         physical memory, use both pstat_getstatic and pstat_getdynamic.
27724         Based on a patch from Bob Proulx.
27725
27726 2001-11-10  Jim Meyering  <meyering@lucent.com>
27727
27728         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
27729         (jm_PREREQ): Use it.
27730
27731 2001-11-09  Jim Meyering  <meyering@lucent.com>
27732
27733         * m4/jm-macros.m4: Require autoconf-2.52f.
27734         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
27735         Use these AC_-prefixed names, not the AM_-prefixed ones.
27736
27737         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
27738
27739 2001-11-05  Jim Meyering  <meyering@lucent.com>
27740
27741         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
27742
27743 2001-11-04  Jim Meyering  <meyering@lucent.com>
27744
27745         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
27746         $DEFS.
27747
27748 2001-11-03  Jim Meyering  <meyering@lucent.com>
27749
27750         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
27751         of AC_DEFUN.
27752
27753         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
27754         know the name of the variable in the macro definition.
27755
27756 2001-11-03  Jim Meyering  <meyering@lucent.com>
27757
27758         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
27759         in argmatch_to_argument call.
27760
27761         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
27762         argument.
27763
27764         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
27765         e.g., a fault due to an attempt to free a NULL pointer.
27766
27767 2001-11-01  Jim Meyering  <meyering@lucent.com>
27768
27769         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
27770         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
27771
27772 2001-11-01  Jim Meyering  <meyering@lucent.com>
27773
27774         * lib/dirfd.c, lib/dirfd.h: New files.
27775         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
27776
27777         * lib/hash.c (hash_print) [TESTING]: Clean up.
27778
27779 2001-10-22  Paul Eggert  <eggert@twinsun.com>
27780
27781         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
27782         to avoid a warning if -Wall.
27783
27784 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
27785
27786         * README: New file
27787         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
27788         (per RMS's instructions, this is now the canonical source)
27789         * lgpl/, gpl/: New directories.
27790
27791 2001-10-21  Paul Eggert  <eggert@twinsun.com>
27792
27793         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
27794
27795 2001-10-21  Jim Meyering  <meyering@lucent.com>
27796
27797         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
27798         this code would end up calling gettext even in packages built
27799         with --disable-nls.
27800         * lib/getopt.c (_): Likewise.
27801         * lib/regex.c (_): Likewise.
27802
27803 2001-10-20  Paul Eggert  <eggert@twinsun.com>
27804
27805         * m4/error.m4 (jm_PREREQ_ERROR):
27806         Do not invoke AC_CHECK_FUNCS with strerror_r, as
27807         AC_FUNC_STRERROR_R does that.
27808         Check for strerror declaration.
27809
27810         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
27811         are supposed to have them these days.
27812         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
27813         Merge changes from latest Autoconf CVS.
27814         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
27815         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
27816         POSIX decided to standardize on the int flavor of strerror_r.
27817
27818 2001-10-20  Paul Eggert  <eggert@twinsun.com>
27819
27820         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
27821         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
27822         Use strerror_r that is only a macro, even if it is not a function.
27823         (strerror): Check for HAVE_DECL_STRERROR before declaring.
27824         (private_strerror): Use prototypes, not old-style function definition.
27825         (print_errno_message): New function.
27826         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
27827         char*-flavored one.
27828         (error_tail, error, error_at_line): Use it.
27829
27830 2001-10-11  Jim Meyering  <meyering@lucent.com>
27831
27832         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
27833         and quote_n (1, ... to avoid clobbering a buffer.
27834
27835 2001-10-05  Jim Meyering  <meyering@lucent.com>
27836
27837         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
27838         hash-pjw.h.
27839         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
27840         * lib/hash-pjw.h: New file.
27841
27842 2001-09-30  Jim Meyering  <meyering@lucent.com>
27843
27844         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
27845         `struct fsstat' has the `f_fstypename' member.
27846         Use that to define FS_TYPE, which is now used to make
27847         the getfsstat link test tighter.
27848
27849 2001-09-30  Jim Meyering  <meyering@lucent.com>
27850
27851         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
27852         Include <sys/ucred.h>, for Apple Darwin.
27853         Include sys/mount.h and sys/fs_types.h only if available.
27854         (FS_TYPE): Define.
27855         (read_filesystem_list): Use FS_TYPE.
27856
27857 2001-09-29  Paul Eggert  <eggert@twinsun.com>
27858
27859         * lib/exclude.c (excluded_filename): 0 -> false, since it's
27860         a boolean context.
27861
27862 2001-09-29  Jim Meyering  <meyering@lucent.com>
27863
27864         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
27865         [one-argument getmntent function]): Include stdio.h before mntent.h.
27866         SunOS 4.1.x needs it for the declaration of `FILE'.
27867         Patch by Volker Borchert.
27868
27869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
27870         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
27871         sys/fs_types.h, and make the link-test for getfsstat guard #include
27872         directives with appropriate #if HAVE_*_H tests so that we can
27873         detect getfsstat on Apple Darwin1.3.7 systems.
27874         Reported by Nelson Beebe.
27875         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
27876
27877 2001-09-28  Paul Eggert  <eggert@twinsun.com>
27878
27879         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
27880         #defines strtoimax.  Also treat the other strto* functions
27881         like strtoimax.
27882
27883         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
27884         Check for strtoul and strtoumax,
27885         as those declarations are made even in the signed case.
27886         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
27887         Likewise, for strtol and strtoimax.
27888
27889 2001-09-28  Paul Eggert  <eggert@twinsun.com>
27890
27891         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
27892         #defines strtoimax.  Also treat the other strto* functions
27893         like strtoimax.
27894
27895         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
27896         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
27897         (strtoimax, strtoumax): Do not declare if already defined as a macro.
27898
27899 2001-09-26  Jim Meyering  <meyering@lucent.com>
27900
27901         Most macros in unlocked-io.h had the wrong number of arguments.
27902         * lib/gen-uio: New script.
27903         (USE_UNLOCKED_IO): Define to 1 if not already defined.
27904         * lib/unlocked-io.hin: Remove file.
27905         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
27906         rather than trying to embed it here.
27907         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
27908         Reported by Padraig Brady.
27909
27910 2001-09-25  Volker Borchert  <bt@teknon.de>
27911
27912         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
27913         `result'.
27914
27915 2001-09-24  Jim Meyering  <meyering@lucent.com>
27916
27917         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
27918
27919 2001-09-23  Jim Meyering  <meyering@lucent.com>
27920
27921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
27922         instead of the mere test for existence of mntent.h.  The latter
27923         would get a false-positive on AIX 3.4 systems.
27924         In the outer getmntent if-block, don't die if neither of the getmntent
27925         tests succeeds.  Instead, just fall through and continue with the
27926         remaining tests.
27927
27928 2001-09-23  Jim Meyering  <meyering@lucent.com>
27929
27930         * lib/mountlist.c: Remove useless parentheses in #if directives.
27931         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
27932         the deprecated MOUNTED symbol is no longer defined in mntent.h.
27933
27934 2001-09-22  Jim Meyering  <meyering@lucent.com>
27935
27936         * m4/gettext.m4: New file.  From gettext.
27937         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
27938         * m4/progtest.m4: Likewise
27939         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
27940         * m4/glibc21.m4: Likewise.
27941
27942         * m4/libintl.m4: Remove.  No longer used.
27943
27944 2001-09-22  Jim Meyering  <meyering@lucent.com>
27945
27946         * lib/localcharset.c: Update from latest gettext.
27947         * lib/config.charset: Likewise.
27948
27949 2001-09-20  Jim Meyering  <meyering@lucent.com>
27950
27951         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
27952         strtoimax.
27953         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
27954         strtoumax.
27955
27956 2001-09-20  Jim Meyering  <meyering@lucent.com>
27957
27958         * lib/xstrtol.c (strtoimax): Guard declaration with
27959         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
27960         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
27961         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
27962         (strtoumax): Likewise, for completeness (it wasn't necessary).
27963
27964 2001-09-17  Paul Eggert  <eggert@twinsun.com>
27965
27966         * lib/strtoimax.c (HAVE_LONG_LONG):
27967         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
27968         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
27969         to work around bug in IBM C compiler.
27970
27971 2001-09-17  Jim Meyering  <meyering@lucent.com>
27972
27973         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
27974         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
27975         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
27976         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
27977         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
27978         whenever the right hand side need not be expanded by the shell.
27979
27980 2001-09-16  Paul Eggert  <eggert@twinsun.com>
27981
27982         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
27983         library.  It's not correct, as some older glibcs are buggy.
27984         fnmatch wasn't fixed until glibc 2.2.
27985
27986         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
27987         special shell magic here.
27988
27989 2001-09-16  Jim Meyering  <meyering@lucent.com>
27990
27991         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
27992         * m4/jm-macros.m4: Require it.
27993
27994 2001-09-16  Jim Meyering  <meyering@lucent.com>
27995
27996         * lib/mkdir.c: New file.
27997
27998 2001-09-15  Jim Meyering  <meyering@lucent.com>
27999
28000         * m4/jm-macros.m4: Check for help2man.
28001
28002 2001-09-11  Jim Meyering  <meyering@lucent.com>
28003
28004         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
28005         The body, by Paul Eggert, was moved here from configure.in.
28006         * m4/jm-macros.m4: Require UTILS_HOST_OS.
28007
28008 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28009
28010         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
28011         (jm_PREREQ): Use it.
28012
28013 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28014
28015         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
28016         Use ssize_t, not int, to store result of readlink.
28017         Check for ssize_t overflow as well as size_t overflow,
28018         as POSIX says the result of readlink is implementation-defined
28019         when ssize_t overflows.
28020         Remove unnecessary cast to char*.
28021         Use free+malloc instead of realloc, as the storage doesn't need
28022         to be preserved and it's clearer and can be more efficient that way.
28023         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
28024         * lib/xreadlink.h (xreadlink): Update prototype.
28025
28026 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28027
28028         * lib/xgetcwd.c: Revert some of the previous change; intead,
28029         fix the HAVE_GETCWD_NULL code to behave more like the
28030         !HAVE_GETCWD_NULL code used to.
28031
28032         Include "xalloc.h".
28033         (xgetcwd): Do not return NULL when memory is exhausted; instead,
28034         invoke xalloc_die.
28035
28036 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28037
28038         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
28039         sys/param.h, as pathmax.h includes them.
28040
28041 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28042
28043         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
28044         (jm_PREREQ_XGETCWD): New macro.
28045
28046         * m4/getcwd.m4: New file.
28047
28048 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28049
28050         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
28051         like the HAVE_GETCWD_NULL code.
28052         Include pathmax.h if not HAVE_GETCWD.
28053         Do not include xalloc.h.
28054         (INITIAL_BUFFER_SIZE): New symbol.
28055         Do not use xmalloc / xrealloc, since the caller is responsible for
28056         handling errors.  Preserve errno around `free' during failure.
28057         Do not overrun buffer when using getwd.
28058
28059 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28060
28061         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
28062         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
28063         getcwd (NULL, 0).
28064
28065 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28066
28067         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
28068         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
28069         spotted by Jim Meyering.
28070
28071 2001-09-03  Jim Meyering  <meyering@lucent.com>
28072
28073         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
28074         failure.
28075
28076 2001-09-02  Jim Meyering  <meyering@lucent.com>
28077
28078         * lib/error.c: Update from GNU libc.
28079
28080 2001-09-01  Jim Meyering  <meyering@lucent.com>
28081
28082         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
28083         Used by df.
28084
28085 2001-09-01  Jim Meyering  <meyering@lucent.com>
28086
28087         * lib/xreadlink.c: New file.
28088         * lib/xreadlink.h: New file.
28089         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
28090         xreadlink.h.
28091
28092         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
28093         doesn't conflict with sparc Solaris 7's definition in
28094         /usr/include/sys/int_types.h.
28095
28096         * lib/exclude.c: Use `""', not `<>' to #include non-system header
28097         files.
28098         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
28099         and strncasecmp as r-values.  Unixware didn't have declarations.
28100
28101 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28102
28103         * lib/xstrtol.h: Add copyright notice.
28104         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
28105         LONGINT_INVALID_SUFFIX_CHAR.
28106
28107 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28108
28109         * lib/xstrtol.c (strtoimax): New decl.
28110
28111 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28112
28113         * lib/xgetcwd.c: Don't include pathmax.h.
28114         Include stdlib.h and unistd.h if available.
28115         Include xalloc.h.
28116         (xmalloc, xstrdup, free): Remove decls.
28117         (xgetcwd): Don't assume sizes fit in unsigned.
28118         Check for overflow when computing sizes.
28119         Simplify reallocation code.
28120
28121 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28122
28123         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
28124         a directory's st_size can have an arbitrary value, so the old
28125         usage could waste an arbitrary amount of memory.  All uses
28126         changed.
28127         * lib/savedir.h: Update prototype.
28128
28129 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28130
28131         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
28132
28133         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
28134         old strtoimax.c.
28135
28136         Also, make the following further changes to make this file's
28137         configuration more similar to that of strtol.c:
28138         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
28139         (strtoumax, uintmax_t, strtoull, strtol): Remove.
28140         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
28141         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
28142         changed to signed values.
28143
28144         And make the following changes as well:
28145         Fix copyright notice, as 1999 was missing.
28146         (verify): New macro.
28147         (strtoimax): Check sizes at compile-time, not run-time.
28148         Prefer strtol to strtoll if both work.
28149         (main): Remove; it was not that useful and was a pain to maintain.
28150
28151         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
28152
28153 2001-08-31  Jim Meyering  <meyering@lucent.com>
28154
28155         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
28156         Use an initial, malloc'd, buffer of length 128 rather than
28157         a statically allocated one of length 1024.
28158
28159 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28160
28161         Simplify code, partly by assuming autoconf 2.52 semantics.
28162
28163         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
28164
28165         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
28166         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
28167         All uses removed.
28168         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
28169         Move AC_REQUIRE to next-to-top level, to avoid confusion.
28170         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
28171         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
28172         jm_AC_HEADER_INTTYPES_H.
28173         * m4/jm-macros.m4 (jm_MACROS): Likewise.
28174
28175         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
28176
28177         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28178         Quote first arg of AC_DEFUN.
28179         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
28180         since they are needed to parse the include file even if we need
28181         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
28182         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
28183         but with opposite signedness.
28184
28185 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28186
28187         Merge 'exclude' changes from tar 1.13.22.
28188         This fixes one or two unlikely storage allocation overflow bugs,
28189         but doesn't change user-visible behavior otherwise.
28190
28191 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28192
28193         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
28194         (jm_PREREQ_EXCLUDE): New macro.
28195
28196 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28197
28198         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
28199         tm to be declared.
28200
28201 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28202
28203         * lib/hash.c: Remove '2001' from copyright notice.
28204
28205 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28206
28207         * lib/full-write.h: New file.
28208         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
28209         * lib/full-write.c: Correct credits, as cccp.c no longer
28210         exists and anyway it was so heavily changed from the old cccp
28211         code as to be unrecognizable.  Include full-write.h.
28212         (full_write) Return size_t, with short writes meaning failure.
28213         All callers changed.  This fixes a bug with large buffers
28214         on 64-bit hosts.
28215         * lib/utime.c: Include full-write.h.
28216
28217 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28218
28219         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
28220         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
28221         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
28222         Include if available.
28223         (<xalloc.h>): Include
28224         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
28225         (verify): New macro.  Use it to verify that EXCLUDE macros do not
28226         collide with FNM macros.
28227         (struct patopts): New struct.
28228         (struct exclude): Use it, as exclude patterns now come with options.
28229         (new_exclude): Support above changes.
28230         (new_exclude, add_exclude_file):
28231         Initial size must now be a power of two to simplify overflow checking.
28232         (free_exclude, fnmatch_no_wildcards): New function.
28233         (excluded_filename): No longer requires options arg, as the options
28234         are determined by add_exclude.  Now returns bool, not int.
28235         (excluded_filename, add_exclude):
28236         Add support for the fancy new exclusion options.
28237         (add_exclude, add_exclude_file): Now takes int options arg.
28238         Check for arithmetic overflow when computing sizes.
28239         (add_exclude_file): xrealloc might modify errno, so don't
28240         realloc until after errno might be used.
28241
28242         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
28243         New macros.
28244         (free_exclude): New decl.
28245         (add_exclude, add_exclude_file): Now takes int options arg.
28246         (excluded_filename): No longer requires options arg, as the options
28247         are determined by add_exclude.  Now returns bool, not int.
28248
28249 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28250
28251         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
28252
28253 2001-08-27  Jim Meyering  <meyering@lucent.com>
28254
28255         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
28256
28257         * lib/version-etc.c (N_): Remove definition.
28258         Revert most of last change.
28259         Instead, simply don't mark the `Copyright...' string for translation.
28260         Based on advice from Paul Eggert.
28261
28262         * lib/strtoxmax.c: Tweak comment.
28263
28264 2001-08-26  Jim Meyering  <meyering@lucent.com>
28265
28266         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
28267
28268         * m4/xstrtoimax.m4: New file.
28269         * m4/xstrtoumax.m4: Add comments explaining why we
28270         AC_REPLACE_FUNCS(strtol).
28271
28272 2001-08-26  Jim Meyering  <meyering@lucent.com>
28273
28274         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
28275         of copyright with `%s' so translators don't get an untranslated
28276         message in 2002.
28277         (COPYRIGHT_YEAR): Define.
28278         (version_etc): Use fprintf rather than fputs.
28279         Suggestion from Ulrich Drepper.
28280
28281         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
28282
28283         * lib/strtoll.c: New file, from GNU libc.
28284         * lib/xstrtoimax.c: New file.
28285
28286         * lib/xstrtol.h: Add xstrtoimax.
28287         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
28288         * lib/strtoimax.c: New file.  Likewise, but first define
28289         STRTOUXMAX_SIGNED.
28290
28291         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
28292         ...
28293         * lib/strtoxmax.c: ... then renamed to this.
28294
28295 2001-08-18  Paul Eggert  <eggert@twinsun.com>
28296
28297         * m4/inttypes.m4: Add AC_PREREQ(2.13).
28298         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
28299         (jm_AC_TYPE_INTMAX_T): New macro.
28300         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
28301
28302         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
28303
28304         * m4/longlong.m4: Renamed from ulonglong.m4.
28305         * m4/inttypes.m4: Renamed from inttypes_h.m4.
28306         * m4/uintmax_t.m4: Removed.
28307
28308 2001-08-13  Paul Eggert  <eggert@twinsun.com>
28309
28310         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
28311         Port to Solaris 8, where 'sed' requires a space after the 'r'
28312         command, and where sh dislikes "$/".  Clean up the spacing a bit.
28313         Redirect output to $tmp just once.
28314
28315 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
28316
28317         * lib/addext.c (<errno.h>): Include.
28318         (errno): Declare if not defined.
28319         (addext): Work correctly when pathconf returns -1 and leaves
28320         errno alone because there is no limit.  Also, work even if
28321         pathconf returns a value greater than SIZE_MAX.
28322
28323 2001-08-12  Jim Meyering  <meyering@lucent.com>
28324
28325         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
28326         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
28327         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
28328         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
28329         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
28330         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
28331         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
28332         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
28333         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
28334         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
28335         utime.m4, utimes.m4, xstrtoumax.m4:
28336         Quote the first argument in each use of AC_DEFUN.
28337
28338 2001-08-12  Jim Meyering  <meyering@lucent.com>
28339
28340         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
28341         Simply `return getcwd (NULL, 0);'.
28342         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
28343         Use 1300 as initial value for length, not PATH_MAX.
28344
28345         * lib/pathmax.h: Clean up cpp syntax.
28346
28347 2001-08-12  Jim Meyering  <meyering@lucent.com>
28348
28349         * lib/gettimeofday.c: New file.
28350         * lib/gtod.h: New file.
28351         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
28352
28353 2001-08-05  Jim Meyering  <meyering@lucent.com>
28354
28355         * m4/jm-macros.m4: Require autoconf-2.52.
28356
28357 2001-08-04  Jim Meyering  <meyering@lucent.com>
28358
28359         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
28360         stmt, to get in sync with glibc.
28361
28362 2001-08-03  Paul Eggert  <eggert@twinsun.com>
28363
28364         The following changes are from gettext 0.10.39 as maintained by
28365         Bruno Haible.
28366
28367         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
28368         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
28369         with inverted sense.  All uses changed.
28370
28371         * lib/mbswidth.c: Don't include <limits.h>.
28372         Include <stdlib.h> and <string.h> unconditionally.
28373         (iswcntrl, mbsinit, ISCNTRL): New macros.
28374         (mbsnwidth): Use K&R style function declarations.
28375         Don't bother checking for MB_LEN_MAX == 1, since the compiler
28376         can optimize it when MB_CUR_MAX == 1.
28377         The width of control characters is zero, not 1.
28378
28379 2001-08-03  Paul Eggert  <eggert@twinsun.com>
28380
28381         The following changes are from gettext 0.10.39 as maintained by
28382         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
28383
28384         * m4/codeset.m4: Upgrade to serial AM1.
28385         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
28386         all uses changed.  Quote first arg of AC_DEFUN.
28387         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
28388
28389         * m4/iconv.m4: Upgrade to serial AM2.
28390         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
28391         Add --with-libconv-prefix.
28392         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
28393         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
28394         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
28395         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
28396         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
28397
28398         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
28399         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
28400         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
28401         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
28402         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
28403         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
28404         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28405         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
28406         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
28407
28408         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
28409         string.h any more.
28410
28411         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
28412         not the default value.
28413
28414         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
28415         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
28416         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
28417         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
28418         Also check for iswcntrl, used for wcwidth fallback.
28419         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
28420         to Autoconf 2.13.
28421
28422 2001-08-03  Jim Meyering  <meyering@lucent.com>
28423
28424         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
28425         as it was in the original.  Reported by Paul Eggert.
28426
28427 2001-07-16  Jim Meyering  <meyering@lucent.com>
28428
28429         * m4/gettimeofday.m4: New file.
28430         Prompted by a report from Bernhard Baehr.
28431
28432 2001-07-15  Jim Meyering  <meyering@lucent.com>
28433
28434         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
28435         stuff. Now it's in ../Makefile.cfg.
28436
28437 2001-07-15  Jim Meyering  <meyering@lucent.com>
28438
28439         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
28440         (BUILT_SOURCES): Add unlocked-io.h.
28441         (io_functions): Define.
28442         (unlocked-io.h): New rule.
28443         (DISTCLEANFILES): Add unlocked-io.h.
28444         (all-local): Depend on unlocked-io.h, to ensure it is created.
28445
28446         * lib/unlocked-io.hin: New file
28447
28448         * lib/regex.c: Update from glibc.
28449
28450 2001-07-05  Jim Meyering  <meyering@lucent.com>
28451
28452         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
28453         recommendation.
28454         (libfetish_a_SOURCES): Put all .h files here instead.
28455         Remove a thus-exposed (better checks in automake) duplicate and
28456         two unnecessary .h files.
28457
28458 2001-07-04  Jim Meyering  <meyering@lucent.com>
28459
28460         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
28461         that generates jm-glibc-io.m4 so that it doesn't trigger any make
28462         distcheck failure.
28463
28464 2001-07-02  Jim Meyering  <meyering@lucent.com>
28465
28466         The following changes were prompted by suggestions from Bruno Haible.
28467
28468         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
28469         is now generated.
28470         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
28471         definition of EXTRA_DIST.
28472         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
28473         ensure that the generated file is created/updated whenever the list
28474         of $(unlocked_functions) is changed.
28475         (jm-glibc-io.m4): New rule.
28476         (unlocked-io.h): New rule -- currently unused.
28477
28478 2001-06-24  Jim Meyering  <meyering@lucent.com>
28479
28480         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
28481         unmatched right bracket, rather than kludging it with an extra,
28482         falsely-matching quote in a comment.  Patch by Akim Demaille.
28483
28484 2001-06-11  Jim Meyering  <meyering@lucent.com>
28485
28486         * lib/regex.c: Update from GNU libc.
28487
28488 2001-05-27  Jim Meyering  <meyering@lucent.com>
28489
28490         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
28491         Check for ut_type in struct utmp.
28492
28493 2001-05-27  Jim Meyering  <meyering@lucent.com>
28494
28495         * lib/readutmp.h (UT_TYPE): Define.
28496
28497 2001-05-24  Jim Meyering  <meyering@lucent.com>
28498
28499         * lib/argmatch.c: Include "quote.h".
28500         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
28501         quote function.  Reported by Göran Uddeborg.
28502
28503 2001-05-22  Jim Meyering  <meyering@lucent.com>
28504
28505         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
28506         now that we use the package-supplied version unconditionally.
28507         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
28508
28509 2001-05-21  Jim Meyering  <meyering@lucent.com>
28510
28511         * m4/regex.m4: Change a couple backticks to single quotes to avoid
28512         shell syntax errors.
28513
28514 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
28515
28516         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
28517
28518 2001-05-20  Paul Eggert  <eggert@twinsun.com>
28519
28520         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
28521         Don't bother to check library strftime, since
28522         we'll be using our own my_strftime function anyway.
28523         Define my_strftime instead of strftime.
28524
28525 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
28526
28527         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
28528         which is not yet declared.
28529
28530 2001-05-15  Jim Meyering  <meyering@lucent.com>
28531
28532         * m4/regex.m4: Use proper quoting so brackets appear in the test
28533         program.
28534         Reported by, and with help from, Bruno Haible.
28535
28536 2001-05-13  Jim Meyering  <meyering@lucent.com>
28537
28538         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
28539         undefined.
28540
28541 2001-05-11  Paul Eggert  <eggert@twinsun.com>
28542
28543         dirname code cleanup.  base_name now behaves more compatibly
28544         with POSIX basename when given file names that have trailing
28545         slashes, and similarly for dir_name.  Add new primitives
28546         base_len and dir_len.  Put the directory-name-related decls
28547         into dirname.h.
28548
28549         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
28550         * lib/backupfile.c (base_name): Likewise.
28551         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
28552         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
28553         * lib/makepath.c (strip_trailing_slashes): Likewise.
28554         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
28555         ISSLASH): Likewise.
28556         * lib/rename.c (strip_trailing_slashes): Likewise.
28557         * lib/same.c (base_name): Likewise.
28558         * lib/stripslash.c (ISSLASH): Likewise.
28559
28560         * lib/addext.c: Include <dirname.h> after size_t is defined.
28561         * lib/backupfile.c: Likewise.
28562
28563         * lib/addext.c (addext): Use base_len to trim redundant
28564         trailing slashes instead of doing it ourselves.
28565         But do not trim the last slash if it is not redundant.
28566
28567         * lib/backupfile.c (find_backup_file_name,
28568         max_backup_version): Use base_len instead of rolling it ourselves.
28569         Handle the case of "" and (on DOS) "C:" correctly.
28570
28571         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
28572         needed. Include <string.h>, <dirname.h>.
28573         (base_name): Allow file names ending in slashes, other than names
28574         that are all slashes.  In this case, return the basename followed
28575         by the slashes.  This is more general, and can be used in places
28576         where the original base_name purposely had an assertion failure.
28577         (base_len): New function.
28578
28579         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
28580         Do not include <assert.h>; no longer needed.
28581         Include xalloc.h.
28582         (memrchr): Remove decl.
28583         (dir_name_r): Remove.
28584         (dir_len): Renamed from dirlen.  All callers changed.
28585         Rewrite in terms of base_name, for simplicity and consistency.
28586         (dir_name): Never return NULL.  All callers changed.
28587         Do not include <stdlib.h> in test program; no longer needed.
28588         return 0; is fine for test program.
28589
28590         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
28591         New macros.
28592         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
28593
28594         * lib/path-concat.c (path_concat): Use base_len to compute
28595         base length, not strlen; this means we cannot rely on memcpy
28596         to null-terminate.
28597
28598         * lib/same.c (STREQ): Remove.
28599         (same_name): Handle the case where the basename ends in trailing '/'.
28600
28601         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
28602         a slash was stripped.  Do not strip the last slash after a
28603         file system prefix.
28604
28605 2001-05-11  Paul Eggert  <eggert@twinsun.com>
28606
28607         * lib/Makefile.am (libfetish_a_SOURCES):
28608         Add strftime.c, since we now compile it on all hosts.
28609
28610         * lib/strftime.c (my_strftime):
28611         Define to nstrftime if emacs, but only if my_strftime is not defined.
28612         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
28613         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
28614         Add one more extra argument: a nanoseconds value.
28615         All uses changed.
28616         (ns): New macro.
28617         (my_strftime function): Add %N format.
28618         (emacs_strftimeu): Renamed from emacs_strftime,
28619         with extra ut argument.
28620
28621 2001-05-09  Paul Eggert  <eggert@twinsun.com>
28622
28623         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
28624
28625 2001-04-21  Jim Meyering  <meyering@lucent.com>
28626
28627         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
28628         doesn't interfere.
28629
28630 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
28631
28632         * m4/ftruncate.m4: Check for chsize.
28633         Link with ftruncate.o unconditionally if ftruncate is missing.
28634         This was required when cross-compiling to i586-mingw32msvc.
28635
28636 2001-04-08  Jim Meyering  <meyering@lucent.com>
28637
28638         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
28639         recomputed; that's necessary when the offset spans a DST transition.
28640         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
28641
28642 2001-04-02  Jim Meyering  <meyering@lucent.com>
28643
28644         * lib/regex.h, regex.c: Update from GNU libc.
28645
28646 2001-03-24  Jim Meyering  <meyering@lucent.com>
28647
28648         * m4/jm-macros.m4: Require autoconf-2.49d.
28649
28650 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
28651
28652         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
28653
28654 2001-03-19  Paul Eggert  <eggert@twinsun.com>
28655
28656         * lib/version-etc.c (version_etc_copyright): Update to 2001.
28657
28658 2001-03-17  Jim Meyering  <meyering@lucent.com>
28659
28660         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
28661         now that the version in autoconf is equivalent.
28662         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
28663
28664         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
28665         Suggestion from Akim Demaille.
28666
28667         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
28668         (jm_PREREQ_TEMPNAME): New function.
28669
28670 2001-03-16  Paul Eggert  <eggert@twinsun.com>
28671
28672         * lib/tempname.c (uint64_t): Define to uintmax_t if
28673         not defined, and if UINT64_MAX is not defined.
28674         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
28675         Reported by John David Anglin.
28676
28677 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
28678
28679         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
28680         resolve alias if codeset is empty.
28681         * lib/config.charset (BeOS): Use wildcard syntax.
28682
28683 2001-03-13  Jim Meyering  <meyering@lucent.com>
28684
28685         * lib/path-concat.c (path_concat)
28686         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
28687         concatenating e.g., `C:' and `foo'.
28688         From Bruno Haible.
28689
28690 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
28691
28692         * lib/localcharset.c (locale_charset): Don't use
28693         setlocale(LC_CTYPE,NULL). Don't return NULL.
28694         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
28695
28696 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
28697
28698         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
28699         support for DOS/DJGPP.
28700
28701 2001-03-01  Paul Eggert  <eggert@twinsun.com>
28702
28703         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
28704         lacks mkstemp.  Compile our own tempname.c if we compile our own
28705         mkstemp.c, as mkstemp relies on tempname.
28706
28707 2001-03-01  Jim Meyering  <meyering@lucent.com>
28708
28709         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
28710         AH_VERBATIM really does output its argument verbatim.
28711
28712 2001-02-28  Paul Eggert  <eggert@twinsun.com>
28713
28714         * lib/Makefile.am (libfetish_a_SOURCES):
28715         Add dup-safer.c, fopen-safer.c.
28716         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
28717
28718         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
28719         * lib/unistd-safer.h: New files.
28720
28721 2001-02-25  Paul Eggert  <eggert@twinsun.com>
28722
28723         The mkstemp replacement is taken from glibc 2.2.2, with some
28724         portability fixes for use outside glibc, as follows:
28725
28726         * lib/tempname.c (struct_stat64): New macro.
28727         (direxists, __gen_tempname): Use it.
28728         This avoids a portability problem with Solaris 8.
28729
28730         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
28731         (<stddef.h>, <stdint.h>, <string.h>):
28732         Include only if STDC_HEADERS || _LIBC.
28733         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
28734         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
28735         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
28736         (__set_errno): Define this macro if <errno.h> doesn't.
28737         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
28738         Define these macros if <stdio.h> doesn't.
28739         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
28740         Define these macros if <sys/stat.h>
28741         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
28742         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
28743         __xstat64): Define if not _LIBC.
28744         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
28745         (__gen_tempname): Invoke gettimeofday only if
28746         HAVE_GETTIMEOFDAY || _LIBC;
28747         otherwise, fall back on plain "time".
28748         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
28749
28750         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
28751
28752         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
28753
28754 2001-02-18  Paul Eggert  <eggert@twinsun.com>
28755
28756         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
28757
28758 2001-02-17  Paul Eggert  <eggert@twinsun.com>
28759
28760         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
28761         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
28762         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
28763         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28764
28765 2001-02-17  Paul Eggert  <eggert@twinsun.com>
28766
28767         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
28768         Remove workaround macros for hosts that have mbrtowc but not
28769         mbstate_t, as we now insist on proper declarations for both
28770         before using mbrtowc.
28771
28772 2001-02-17  Jim Meyering  <meyering@lucent.com>
28773
28774         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
28775         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
28776         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
28777         UnixWare 7.1.1.
28778
28779         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
28780         rather than AC_CACHE_VAL.
28781
28782 2001-02-17  Jim Meyering  <meyering@lucent.com>
28783
28784         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
28785         around included file name.
28786
28787         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
28788
28789         * lib/strftime.c: Update from GNU libc (the only changes were to
28790         comments).
28791
28792 2001-02-17  Jim Meyering  <meyering@lucent.com>
28793
28794         * lib/regex.c: Update from libc.
28795
28796 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
28797
28798         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
28799         clash.
28800
28801 2001-02-16  Paul Eggert  <eggert@twinsun.com>
28802
28803         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
28804         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
28805         Reported by Mark Hounschell via Paul Eggert.
28806
28807 2001-02-07  Jim Meyering  <meyering@lucent.com>
28808
28809         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
28810
28811 2001-02-05  Jim Meyering  <meyering@lucent.com>
28812
28813         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
28814         it includes the patch required for `large file' support with at least
28815         HP-UX's 10.20 /bin/cc.
28816
28817 2001-02-03  Jim Meyering  <meyering@lucent.com>
28818
28819         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
28820         AS_IF, now that it works once again (mysteriously).
28821         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
28822
28823 2001-01-30  Jim Meyering  <meyering@lucent.com>
28824
28825         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
28826         * m4/chown.m4: Rename conftestchown to conftest.chown.
28827         * m4/rename.m4: s/conftestdir/conftest.d1/ and
28828         s/conftestdir2/conftest.d2/.
28829         * m4/utimes.m4: s/conftestdata/conftest.data/
28830         Inspired by Pavel Roskin's change in autoconf.
28831
28832 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
28833
28834         * lib/config.charset: Update for FreeBSD 4.2.
28835
28836 2001-01-27  Jim Meyering  <meyering@lucent.com>
28837
28838         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
28839         a use of AS_IF.
28840         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
28841
28842 2001-01-26  Jim Meyering  <meyering@lucent.com>
28843
28844         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
28845         quotearg.c includes it.
28846
28847 2001-01-26  Jim Meyering  <meyering@lucent.com>
28848
28849         * lib/quotearg.c: Include stddef.h.
28850         * lib/quote.c: Include stddef.h.
28851         Reported by Axel Kittenberger.
28852
28853         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
28854         line in double quotes so that it evokes a better diagnostic.
28855         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
28856         Reported by Axel Kittenberger.
28857
28858 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
28859
28860         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
28861         as if it was a `charset'.
28862
28863 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
28864
28865         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
28866         has const.
28867
28868 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
28869
28870         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
28871         to avoid a warning.  Add back 'const' to inptr.
28872
28873 2001-01-20  Jim Meyering  <meyering@lucent.com>
28874
28875         Be sure that headers are checked before used in code compiled
28876         for the type checks.
28877         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
28878         In place of that, invoke jm_CHECK_ALL_TYPES.
28879         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
28880         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
28881         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
28882         The check for ssize_t was mistakenly run before the test for unistd.h.
28883
28884         The configure-time check for stdbool.h was missing.
28885         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
28886         (jm_PREREQ_HASH): New function.
28887
28888 2001-01-17  Jim Meyering  <meyering@lucent.com>
28889
28890         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
28891         for autoconf-2.49c.
28892         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
28893
28894 2001-01-16  Jim Meyering  <meyering@lucent.com>
28895
28896         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
28897         From Bruno Haible.
28898
28899 2001-01-14  Jim Meyering  <meyering@lucent.com>
28900
28901         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
28902         foo and bar.  Create conftestdir/ in the script, not in the C code.
28903         Remove directories in the script, not in the C code.
28904         Remove conftestdir{,2} before trying to create the directory.
28905         Make the entire configure script fail if the mkdir fails.
28906
28907 2001-01-14  Jim Meyering  <meyering@lucent.com>
28908
28909         * lib/rename.c: New file.  From Volker Borchert.
28910         Include stdlib.h, string.h or strings.h, and xalloc.h.
28911         Use strip_trailing_slashes rather than open-coding it.
28912
28913 2001-01-03  Paul Eggert  <eggert@twinsun.com>
28914
28915         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
28916
28917 2001-01-03  Jim Meyering  <meyering@lucent.com>
28918
28919         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
28920         of local `inptr' to avoid warning with some system declarations of
28921         iconv.
28922
28923 2001-01-02  Volker Borchert  <bt@teknon.de>
28924
28925         * m4/rename.m4: New file.
28926         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
28927
28928 2001-01-01  Jim Meyering  <meyering@lucent.com>
28929
28930         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
28931         even on systems with utmpx.h.  It's necessary for the declaration of
28932         utmp's ut_user member.  Reported by Andreas Jaeger.
28933
28934         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
28935         available. They are required for the declarations of getgrgid and
28936         getpwuid resp.
28937         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
28938         Reported by Andreas Jaeger.
28939
28940 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
28941
28942         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
28943         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
28944         so `make install' also works in VPATH builds.
28945
28946 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
28947
28948         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
28949         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
28950         can be used in subdirectories.
28951
28952 2000-12-29  Paul Eggert  <eggert@twinsun.com>
28953
28954         * lib/modechange.c: Do not assume that mode_t uses the
28955         traditional octal encoding.  E.g. "chmod 1 FOO" should set
28956         the other-execute bit of FOO even if S_IXOTH != 1.
28957
28958         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
28959         WOTH, XOTH, ALLM): New macros.
28960         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
28961          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
28962         Use them.
28963         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
28964         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
28965         (mode_compile):
28966         No need to use uintmax_t; unsigned long is long enough.
28967         Don't bother to get suffix since we don't use it.
28968
28969 2000-12-26  Jim Meyering  <meyering@lucent.com>
28970
28971         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
28972         better with autoheader.
28973
28974 2000-12-24  Jim Meyering  <meyering@lucent.com>
28975
28976         * lib/hash.c (is_prime): Return explicit boolean values.
28977         (hash_get_first): Return NULL to appease Irix5.6's 89.
28978         Reported by Nelson Beebe.
28979
28980 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
28981
28982         * lib/localcharset.c (locale_charset): Add support for Win32.
28983
28984 2000-12-18  Paul Eggert  <eggert@twinsun.com>
28985
28986         * lib/physmem.h, lib/physmem.c: New files.
28987
28988         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
28989         (noinst_HEADERS): Add physmem.h.
28990
28991         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
28992         't' for compatibility with Solaris 8 sort.
28993
28994 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
28995
28996         * lib/config.charset: Add support for BeOS.
28997
28998 2000-12-17  Jim Meyering  <meyering@lucent.com>
28999
29000         * m4/dos.m4 (jm_AC_DOS): New file and macro.
29001         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
29002
29003 2000-12-16  Jim Meyering  <meyering@lucent.com>
29004
29005         This bug had a serious impact on chown: `chown N:M FILE' (for integer
29006         N and M) would have treated it like `chown N:N FILE'.
29007
29008         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
29009
29010 2000-12-16  Jim Meyering  <meyering@lucent.com>
29011
29012         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
29013         SHELLS_FILE to a file name that's useful on djgpp systems.
29014         Include stdlib.h.
29015         (ADDITIONAL_DEFAULT_SHELLS): Define.
29016         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
29017         Based mostly on a patch from Prashant TR.
29018
29019 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
29020
29021         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
29022         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
29023         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
29024
29025 2000-12-08  Andreas Schwab  <schwab@suse.de>
29026
29027         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
29028         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
29029
29030 2000-12-07  Jim Meyering  <meyering@lucent.com>
29031
29032         * lib/stripslash.c (ISSLASH): Define.
29033         (strip_trailing_slashes): Use ISSLASH rather than comparing against
29034         `/'.
29035         From Prashant TR.
29036
29037         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
29038         (dir_name_r): Declare this function as static.
29039         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
29040         manifest itself on a name containing a mix of slashes and
29041         backslashes.
29042         Make this function work with names starting with a DOS-style
29043         drive letter and colon prefix.
29044         (dir_name): Append `.' if necessary.
29045         Based mostly on patches from Prashant TR and Eli Zaretskii.
29046
29047         * lib/dirname.h (dir_name_r): Remove prototype.
29048
29049 2000-12-06  Paul Eggert  <eggert@twinsun.com>
29050
29051         * m4/off_t-format.m4: Remove this file.
29052         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
29053
29054 2000-12-06  Jim Meyering  <meyering@lucent.com>
29055
29056         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
29057         replacement strtoull, we may well need the replacement strtoul, too.
29058         Check for declarations of strtoul and strtoull.
29059         Check for strtol.  Mainly as a cue to cause automake to include
29060         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
29061         Check for limits.h -- strtol.c needs it.
29062
29063 2000-12-05  Jim Meyering  <meyering@lucent.com>
29064
29065         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
29066
29067 2000-12-04  Jim Meyering  <meyering@lucent.com>
29068
29069         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
29070         Also include memory.h, stdlib.h, unistd.h if appropriate.
29071         Reported by Andreas Jaeger (conflicting declaration of malloc).
29072
29073 2000-12-02  Jim Meyering  <meyering@lucent.com>
29074
29075         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
29076         * m4/jm-macros.m4 (jm_MACROS): require it.
29077
29078 2000-12-02  Jim Meyering  <meyering@lucent.com>
29079
29080         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
29081
29082 2000-12-01  Paul Eggert  <eggert@twinsun.com>
29083
29084         * lib/memrchr.c: Include <config.h> before any system include file.
29085
29086 2000-11-30  Jim Meyering  <meyering@lucent.com>
29087
29088         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
29089
29090 2000-11-30  Jim Meyering  <meyering@lucent.com>
29091
29092         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
29093
29094 2000-11-29  Paul Eggert  <eggert@twinsun.com>
29095
29096         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
29097
29098 2000-11-26  Jim Meyering  <meyering@lucent.com>
29099
29100         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
29101
29102 2000-11-22  Paul Eggert  <eggert@twinsun.com>
29103
29104         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
29105         size of (size_t) -1; it's not portable.
29106
29107 2000-11-17  Jim Meyering  <meyering@lucent.com>
29108
29109         * lib/strstr.c: Update from GNU libc.
29110
29111 2000-11-17  Akim Demaille  <akim@epita.fr>
29112
29113         * lib/obstack.h: Formatting changes.
29114         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
29115         prevent type checking.
29116         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
29117         cast the value to (void *): assigning a `foo *' to a `void *'
29118         variable is valid.
29119         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
29120
29121 2000-11-16  Jim Meyering  <meyering@lucent.com>
29122
29123         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
29124
29125 2000-11-11  Jim Meyering  <meyering@lucent.com>
29126
29127         * lib/error.c: Add a couple #includes, merging from GNU libc version.
29128
29129 2000-11-10  Jim Meyering  <meyering@lucent.com>
29130
29131         * lib/obstack.h: Update from GNU libc.
29132         * lib/obstack.c: Likewise.
29133
29134 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
29135
29136         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
29137
29138 2000-11-06  Paul Eggert  <eggert@twinsun.com>
29139
29140         * lib/getusershell.c (setusershell): Use rewind rather than
29141         fseek/fseeko, to avoid configuration hassles with fseeko.
29142         Don't bother opening SHELLS_FILE if shellstream is NULL;
29143         it's not necessary.
29144
29145 2000-11-05  Jim Meyering  <meyering@lucent.com>
29146
29147         * lib/makepath.h (make_dir): Declare.
29148         * lib/makepath.c (make_dir): Remove `static' attribute.
29149         Tweak a comment.
29150
29151 2000-11-04  Jim Meyering  <meyering@lucent.com>
29152
29153         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
29154
29155 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
29156
29157         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
29158         last one in a bucket, advance to the next bucket.
29159
29160 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
29161
29162         * lib/fnmatch.c: Do not comment out all the code if we are using
29163         the GNU C library, because in some cases we are replacing buggy
29164         code in the GNU C library itself.
29165
29166 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
29167
29168         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
29169         (regex_compile): Catch bogus \(\1\).
29170
29171 2000-10-30  Paul Eggert  <eggert@twinsun.com>
29172
29173         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
29174         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
29175         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
29176
29177 2000-10-30  Paul Eggert  <eggert@twinsun.com>
29178
29179         * lib/error.h, getline.h, modechange.h:
29180         Remove "2000" from Copyright line, as the file hasn't been
29181         changed this year other than in the copyright notice.
29182
29183         * lib/xalloc.h: Add "2000" to Copyright line, as this file
29184         was changed this year.
29185
29186 2000-10-29  Jim Meyering  <meyering@lucent.com>
29187
29188         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
29189         renaming.
29190         * m4/ls-mntd-fs.m4: Likewise
29191
29192 2000-10-29  Jim Meyering  <meyering@lucent.com>
29193
29194         * lib/xstat.in: Fix grammar in comment.
29195
29196 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
29197
29198         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
29199         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
29200         doesn't define __restrict_arr.
29201
29202 2000-10-28  Jim Meyering  <meyering@lucent.com>
29203
29204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
29205         (jm_PREREQ_MEMCHR): New function.
29206
29207 2000-10-28  Jim Meyering  <meyering@lucent.com>
29208
29209         * lib/memchr.c: Update from libc.
29210         Adjust for portability:
29211         [HAVE_STDLIB_H]: Include stdlib.h.
29212         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
29213         Undef __memchr, too.
29214         [!weak_alias]: Define __memchr to memchr.
29215
29216         * lib/regex.c: Update from libc.
29217         * lib/regex.h: Likewise.
29218         * lib/getopt1.c: Likewise.
29219         * lib/memcmp.c: Likewise.
29220
29221         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
29222         Avoid using fseek, when possible -- it's broken by design.
29223         Patch by Ulrich Drepper.
29224
29225 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
29226
29227         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
29228         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
29229         Giving in to popular pressure to shut up the compiler with casts.
29230
29231 2000-10-26  Jim Meyering  <meyering@lucent.com>
29232
29233         * lib/strftime.c: Update from libc.
29234
29235 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
29236
29237         * regex.c: More `unsigned char' -> `re_char' changes.
29238         Also change several `int' into `re_wchar_t'.
29239         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
29240         (PUSH_FAILURE_POINTER): Don't cast any more.
29241         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
29242         We want GCC to complain, since this piece of code makes
29243         re_match non-reentrant, which *should* be fixed.
29244         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
29245         (EXTEND_BUFFER): Use RETALLOC.
29246         (SET_LIST_BIT): Don't cast.
29247         (re_wchar_t): New type.
29248         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
29249         that those two functions will always properly return.
29250         (IMMEDIATE_QUIT_CHECK): Cast to void.
29251         (analyse_first): Use recursion rather than an explicit stack.
29252         (re_compile_fastmap): Can't fail anymore.
29253         (re_search_2): Don't check re_compile_fastmap for failure.
29254         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
29255         Now also sets the new value (passed in a new argument).
29256         (re_match_2_internal): Use it.
29257         Also, use a new var `reg' of type size_t when looping through regs
29258         rather than reuse the inappropriate `mcnt'.
29259
29260 2000-10-25  Jim Meyering  <meyering@lucent.com>
29261
29262         * lib/obstack.c: Update from libc.
29263
29264 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
29265
29266         * regex.c (regex_compile): Change the way of handling a range from
29267         a char less than 256 to a char not less than 256.
29268
29269 2000-10-24  Andrew Innes  <andrewi@gnu.org>
29270
29271         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
29272         NT-Emacs only.
29273         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
29274         so that re_search functions only quit when callers expect them to.
29275
29276 2000-10-23  Jim Meyering  <meyering@lucent.com>
29277
29278         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
29279         wrong.  That set_locale call must not have any side effects.
29280         From Paul Eggert.
29281
29282 2000-10-22  Jim Meyering  <meyering@lucent.com>
29283
29284         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
29285         [CYCLIC]: Remove now-unused definition.
29286
29287         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
29288         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
29289         Suggestion from Ulrich Drepper.
29290
29291 2000-10-21  Jim Meyering  <meyering@lucent.com>
29292
29293         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
29294         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
29295         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
29296
29297 2000-10-21  Jim Meyering  <meyering@lucent.com>
29298
29299         * lib/dirname.c (memrchr): Declare if necessary.
29300         (dir_name): Remove the restriction that there be no
29301         trailing slashes.  Now, this code skips past them, effectively
29302         ignoring them.
29303         [TEST_DIRNAME] (main): New unit tests.
29304
29305         * lib/memrchr.c: New file from GNU libc.
29306         Undef __memrchr, too.
29307         [!weak_alias]: Define __memrchr to memrchr.
29308         Guard weak_alias use with `#ifdef weak_alias'.
29309
29310 2000-10-21  Jim Meyering  <meyering@lucent.com>
29311
29312         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
29313         (dir_name): Use dir_name_r.
29314         * lib/dirname.h (dir_name_r): Declare it.
29315
29316 2000-10-17  Jim Meyering  <meyering@lucent.com>
29317
29318         * lib/quote.h (PARAMS): Define and use.
29319         Reported by Akim Demaille.
29320
29321         * lib/getopt.c: Update from libc.
29322
29323 2000-10-16  Jim Meyering  <meyering@lucent.com>
29324
29325         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
29326         setlocale.
29327         From Jan Fedak.
29328
29329 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
29330
29331         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
29332
29333 2000-09-25  Jim Meyering  <meyering@lucent.com>
29334
29335         * lib/md5.h (rol): Define (from GnuPG).
29336
29337         * lib/sha.c: Give credit (GnuPG) where due.
29338         (M): Use rol rather than open-coding it.
29339         Add a FIXME comment.
29340
29341 2000-09-21  Jim Meyering  <meyering@lucent.com>
29342
29343         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
29344         Reported by Michael Stone.
29345
29346 2000-09-20  Jim Meyering  <meyering@lucent.com>
29347
29348         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
29349         (noinst_HEADERS): Add sha.h.
29350         Based on code from Scott G. Miller and from GnuPG.
29351
29352 2000-09-18  Jim Meyering  <meyering@lucent.com>
29353
29354         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
29355         LIBS. Otherwise, everyone ends up linking with -lelf for some
29356         configurations.
29357         Reported by Mike Stone.
29358
29359 2000-09-15  Jim Meyering  <meyering@lucent.com>
29360
29361         * lib/regex.c: Update from libc.
29362
29363 2000-09-10  Jim Meyering  <meyering@lucent.com>
29364
29365         * lib/getopt.c (_getopt_internal): Update from glibc.
29366
29367 2000-09-09  Jim Meyering  <meyering@lucent.com>
29368
29369         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
29370         think it should be used as a general replacement for isascii.
29371         * lib/fnmatch.c: Likewise.
29372         * lib/mbswidth.c: Likewise
29373         * lib/regex.c: Likewise.
29374
29375         Don't use atoi.
29376         * lib/userspec.c: Include sys/param.h and limits.h.
29377         Include xstrtol.h.
29378         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
29379         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
29380         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
29381         UID, GID.  Check range.
29382
29383 2000-09-06  Jim Meyering  <meyering@lucent.com>
29384
29385         * lib/getopt.c (_getopt_internal): Update from glibc.
29386
29387 2000-08-30  Jim Meyering  <meyering@lucent.com>
29388
29389         * lib/strftime.c: Merge in changes from GNU libc.
29390
29391 2000-08-26  Jim Meyering  <meyering@lucent.com>
29392
29393         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
29394         * m4/fpending.m4: New file.
29395
29396 2000-08-26  Jim Meyering  <meyering@lucent.com>
29397
29398         * lib/closeout.c: Include "__fpending.h".
29399         (close_stdout_status): Return right away if there's nothing to flush.
29400
29401         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
29402         * lib/__fpending.c: New file.
29403         * lib/__fpending.h: New file.
29404
29405 2000-08-20  Jim Meyering  <meyering@lucent.com>
29406
29407         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
29408         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
29409         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
29410
29411 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
29412
29413         Improve fileutils installation on systems where running
29414         programs (like install) can't be unlinked.
29415         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
29416         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
29417
29418 2000-08-07  Paul Eggert  <eggert@twinsun.com>
29419
29420         Standardize on "memory exhausted" instead of "Memory exhausted"
29421         or "virtual memory exhausted".
29422         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
29423         "virtual memory exhausted".
29424         * lib/same.c (same_name): Invoke xalloc_die instead of printing
29425         our own message.
29426         * lib/userspec.c (parse_user_spec): Likewise.
29427         * lib/bumpalloc.h: comment fix
29428         * lib/same.c, userspec.c: Include xalloc.h.
29429
29430         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
29431         not char *const and pointing to a constant array.
29432         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
29433         (xrealloc): Comment fix.
29434
29435         * lib/userspec.c (parse_user_spec):
29436         Don't translate a message until just before returning,
29437         to avoid unnecessary translation.
29438
29439 2000-08-07  Jim Meyering  <meyering@lucent.com>
29440
29441         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
29442         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
29443         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
29444         getgroups.c, gethostname.c, getopt.h, group-member.c,
29445         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
29446         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
29447         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
29448         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
29449         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
29450         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
29451         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
29452         yesno.c: Back out Copyright date changes for each file with no change
29453         this year.  This eases coordination with other programs using the same
29454         source code modules.  From Paul Eggert.
29455
29456 2000-08-06  Paul Eggert  <eggert@twinsun.com>
29457
29458         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
29459         not char, for compatibility with glibc 2.1.3 strftime.c.
29460
29461 2000-08-03  Greg McGary  <greg@mcgary.org>
29462
29463         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
29464         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
29465         (EXTEND_BUFFER): Use them.
29466
29467 2000-08-01  Jim Meyering  <meyering@lucent.com>
29468
29469         * lib/dirname.c (ISSLASH): Define.
29470         (BACKSLASH_IS_PATH_SEPARATOR): Define.
29471         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
29472         both `\' and `/' may be use as path separators.
29473         Based on a patch from Prashant TR.
29474
29475 2000-07-31  Paul Eggert  <eggert@twinsun.com>
29476
29477         * lib/quotearg.c (quotearg_n_options): Don't make the initial
29478         slot vector a constant, since it might get modified.
29479
29480 2000-07-31  Jim Meyering  <meyering@lucent.com>
29481
29482         * lib/xmalloc.c: Use `virtual memory exhausted', not
29483         `Memory exhausted'.
29484         * lib/obstack.c (print_and_abort): Likewise.
29485
29486 2000-07-30  Paul Eggert  <eggert@twinsun.com>
29487
29488         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
29489         buffer, so that the caller can always quote one small
29490         component of a "memory exhausted" message in slot 0.
29491         From a suggestion by Jim Meyering.
29492
29493 2000-07-30  Jim Meyering  <meyering@lucent.com>
29494
29495         * lib/makepath.c (make_path): Quote the other instance, too.
29496
29497         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
29498         (STATIC_BUF_SIZE): Define.
29499         (quotearg_n_options): Use only statically allocated storage when
29500         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
29501         than STATIC_BUF_SIZE.
29502
29503 2000-07-29  Jim Meyering  <meyering@lucent.com>
29504
29505         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
29506         * lib/dirname.c (dir_name): Likewise.
29507
29508         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
29509         `/'.
29510
29511         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
29512         (dir_name): Assert that there are no trailing slashes.
29513
29514 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
29515
29516         * lib/mbswidth.h (mbswidth): Add a flags argument.
29517         (mbswidth): New declaration.
29518         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
29519         * lib/mbswidth.c (mbswidth): Add a flags argument.
29520         (mbsnwidth): New function.
29521
29522 2000-07-24  Jim Meyering  <meyering@lucent.com>
29523
29524         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
29525
29526 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29527
29528         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
29529
29530 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29531
29532         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
29533         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
29534         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
29535         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
29536         invoke multibyte primitives.
29537
29538 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29539
29540         * lib/quotearg.c:
29541         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
29542         so that mbstate_t is always defined.
29543
29544         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
29545         be 1 in at least one GCC installation, and this configuration
29546         error is likely to be common.  Ignoring MB_LEN_MAX hurts
29547         performance on hosts that have mbrtowc but have only unibyte
29548         locales, but I assume these hosts are rare.
29549
29550 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29551
29552         * lib/mbswidth.c (_XOPEN_SOURCE):
29553         Don't define; this causes problems on Solaris 7.
29554         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
29555
29556 2000-07-23  Jim Meyering  <meyering@lucent.com>
29557
29558         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
29559         too: getgrgid, getpwuid, getuid.
29560
29561 2000-07-23  Jim Meyering  <meyering@lucent.com>
29562
29563         * lib/basename.c (base_name): Add an assertion.
29564
29565 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
29566
29567         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
29568         shadow its mbsinit function.
29569
29570 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
29571
29572         * lib/mbswidth.h: New file.
29573         * lib/mbswidth.c: New file.
29574         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
29575         (noinst_HEADERS): Add mbswidth.h.
29576
29577 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
29578
29579         * lib/config.charset: Add support for FreeBSD. Improve support for
29580         HP-UX and IRIX 6.
29581
29582 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
29583
29584         * m4/mbswidth.m4: New file.
29585         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
29586
29587 2000-07-15  Jim Meyering  <meyering@lucent.com>
29588
29589         * lib/makepath.c: Include quote.h.
29590         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
29591         corresponding argument in a `quote (...)' call.
29592         Give better diagnostics.
29593
29594         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
29595         (noinst_HEADERS): Add quote.h.
29596
29597         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
29598         from tar's src/misc.c.
29599         * lib/quote.h: New file.  Prototypes for same.
29600
29601 2000-07-14  Paul Eggert  <eggert@twinsun.com>
29602
29603         From a suggestion by Bruno Haible.
29604         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
29605         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
29606         to decide whether to define the BeOS workaround macro;
29607         this adjusts to the change to AC_MBSTATE_T.
29608
29609 2000-07-14  Jim Meyering  <meyering@lucent.com>
29610
29611         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
29612         jm_AC_TYPE_UINTMAX_T.
29613
29614 2000-07-13  Paul Eggert  <eggert@twinsun.com>
29615
29616         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
29617
29618         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
29619         quotearg_buffer_restyled): Add support for
29620         clocale_quoting_style.  Undo previous change to
29621         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
29622         and "{RIGHT QUOTATION MARK}" msgids.
29623
29624 2000-07-10  Paul Eggert  <eggert@twinsun.com>
29625
29626         From a suggestion by Bruno Haible.
29627         * m4/mbstate_t.m4 (AC_MBSTATE_T):
29628         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
29629         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
29630         and mbstate_t, to a single-part test that simply defines mbstate_t.
29631         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
29632         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
29633
29634 2000-07-10  Jim Meyering  <meyering@lucent.com>
29635
29636         * m4/strerror_r.m4: Mirror the correction made in autoconf.
29637
29638         * m4/gnu-source.m4: Output to confdefs.h directly.
29639         Suggestion from Akim Demaille.
29640
29641 2000-07-09  Paul Eggert  <eggert@twinsun.com>
29642
29643         The old behavior of quoting `like this' doesn't look good with
29644         newer, ISO-style fonts.  See:
29645         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
29646
29647         Instead, quote "like this" by default.  Let the translator
29648         tailor the locale-specific quoting behavior by providing
29649         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
29650
29651         * lib/quotearg.c (N_): New macro.
29652         (gettext_default): New function.
29653         (quotearg_buffer_restyled): Use
29654         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
29655         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
29656
29657 2000-07-09  Jim Meyering  <meyering@lucent.com>
29658
29659         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
29660         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
29661
29662         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
29663         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
29664
29665 2000-07-09  Jim Meyering  <meyering@lucent.com>
29666
29667         * lib/Most files: Update copyright dates to include 2000.
29668
29669 2000-07-08  Jim Meyering  <meyering@lucent.com>
29670
29671         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
29672         if not defined.
29673         (xgethostname): Remove now-unnecessary #ifdef.
29674         Move declaration of `err' into loop where it's used.
29675
29676 2000-07-05  Paul Eggert  <eggert@twinsun.com>
29677         and Bruno Haible  <haible@clisp.cons.org>
29678
29679         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
29680         only if the test for an object-type mbstate_t fails.  This
29681         prevents us from mistakenly reporting that mbstate_t is a
29682         system object type after we "#define mbstate_t int" to work
29683         around its lack.
29684
29685 2000-07-05  Paul Eggert  <eggert@twinsun.com>
29686         and Bruno Haible  <haible@clisp.cons.org>
29687
29688         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
29689
29690 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
29691
29692         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
29693         to strerror_r.
29694         Include <ctype.h> for use of isalpha.
29695
29696 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
29697
29698         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
29699         by allocating a larger buffer. Test the gethostname return value for
29700         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
29701         returns an error and ENAMETOOLONG isn't defined.
29702
29703 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
29704
29705         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
29706         dimension.
29707
29708 2000-07-04  Jim Meyering  <meyering@lucent.com>
29709
29710         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
29711         of the deprecated AC_CHECKING.
29712
29713 2000-07-04  Jim Meyering  <meyering@lucent.com>
29714
29715         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
29716         Reported by Bruno Haible.
29717
29718 2000-07-04  Jim Meyering  <meyering@lucent.com>
29719
29720         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
29721         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
29722         lacks mbrtowc.
29723
29724 2000-07-03  Paul Eggert  <eggert@twinsun.com>
29725
29726         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
29727         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
29728
29729 2000-07-03  Paul Eggert  <eggert@twinsun.com>
29730         and Bruno Haible  <haible@clisp.cons.org>
29731
29732         * lib/quotearg.c (mbrtowc):
29733         Assign to *pwc, and return 1 only if result is nonzero.
29734         (iswprint): Use ISPRINT when substituting our own mbrtowc.
29735
29736 2000-07-03  Jim Meyering  <meyering@lucent.com>
29737
29738         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
29739
29740 2000-07-03  Jim Meyering  <meyering@lucent.com>
29741
29742         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
29743         This is necessary to get a definition of e.g., UTMP_FILE on
29744         HP-UX 10.20.
29745         From Bob Proulx.
29746
29747 2000-07-02  Jim Meyering  <meyering@lucent.com>
29748
29749         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
29750
29751         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
29752         AC_LIBOBJ(function_name).
29753         * m4/chown.m4: Likewise.
29754         * m4/fnmatch.m4: Likewise.
29755         * m4/ftruncate.m4: Likewise.
29756         * m4/getgroups.m4: Likewise.
29757         * m4/getline.m4: Likewise.
29758         * m4/group-member.m4: Likewise.
29759         * m4/jm-macros.m4: Likewise.
29760         * m4/lstat.m4: Likewise.
29761         * m4/malloc.m4: Likewise.
29762         * m4/memcmp.m4: Likewise.
29763         * m4/nanosleep.m4: Likewise.
29764         * m4/putenv.m4: Likewise.
29765         * m4/realloc.m4: Likewise.
29766         * m4/regex.m4: Likewise.
29767         * m4/stat.m4: Likewise.
29768         * m4/strftime.m4: Likewise.
29769
29770 2000-07-02  Jim Meyering  <meyering@lucent.com>
29771
29772         * lib/quotearg.c (mbstate_t): Don't define here.
29773
29774 2000-07-02  Jim Meyering  <meyering@lucent.com>
29775
29776         * lib/nanosleep.c (SIGCONT): Define if not already defined.
29777
29778 2000-07-01  Jim Meyering  <meyering@lucent.com>
29779
29780         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
29781
29782 2000-07-01  Jim Meyering  <meyering@lucent.com>
29783
29784         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
29785         problem.
29786
29787 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
29788
29789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
29790         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
29791
29792 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
29793
29794         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
29795         per change in ../m4/ls-mntd-fs.m4.
29796         (read_filesystem_list): Ignore symbolic links.
29797
29798 2000-06-29  Jim Meyering  <meyering@lucent.com>
29799
29800         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
29801         for declaration of strcmp.
29802
29803         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
29804
29805         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
29806         Avoid warning by casting result to `char *' to remove `const'.
29807
29808 2000-06-28  Jim Meyering  <meyering@lucent.com>
29809
29810         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
29811         included by quotearg.c, for which we perform this test.  From
29812         Bruno Haible.
29813
29814 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
29815
29816         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
29817         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
29818         <utmpx.h> exists, put readutmp.o into LIBOBJS.
29819
29820 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
29821
29822         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
29823
29824 2000-06-26  Paul Eggert  <eggert@twinsun.com>
29825
29826         savedir now sets errno on failure and invokes xmalloc to get memory.
29827         Fix a couple of other minor bugs while we're at it.
29828
29829         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
29830         (NAMLEN): Remove macro.
29831         (malloc, realloc): Remove decls.
29832         (stpcpy): Likewise.
29833         ("xalloc.h"): Include.
29834         (NAME_SIZE_DEFAULT): New macro.
29835         (savedir): Use xmalloc / xrealloc to allocate memory.
29836         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
29837         Skip "" directory entries.
29838         Use strlen to calculate directory entry length, since the old method
29839         is rarely used these days and isn't worth supporting.
29840         Don't use a pointer after freeing it.
29841         Check for integer overflow when calculating allocation size.
29842         Use memcpy to copy entries, instead of stpcpy.
29843         Set errno properly when returning NULL.
29844         Check for readdir error.
29845
29846 2000-06-26  Jim Meyering  <meyering@lucent.com>
29847
29848         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
29849
29850 2000-06-25  Jim Meyering  <meyering@lucent.com>
29851
29852         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
29853         Linux header bug when _XOPEN_SOURCE is defined to 500.
29854
29855 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
29856
29857         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
29858         deficiency.
29859
29860 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
29861
29862         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
29863         Include xalloc.h.
29864         Don't include <stdlib.h>.  Don't declare malloc, realloc.
29865
29866 2000-06-24  Jim Meyering  <meyering@lucent.com>
29867
29868         * m4/strerror_r.m4: Revive this file -- to try out an experimental
29869         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
29870         for which strerror does return char*, but which lacks a conveniently
29871         accessible declaration of the function.  If the compile-test says
29872         strerror_r doesn't work, then resort to a `run'-test that works on
29873         BeOS and segfaults on DEC Unix.
29874
29875 2000-06-24  Jim Meyering  <meyering@lucent.com>
29876
29877         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
29878
29879 2000-06-23  Paul Eggert  <eggert@twinsun.com>
29880
29881         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
29882         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
29883
29884 2000-06-23  Paul Eggert  <eggert@twinsun.com>
29885
29886         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
29887         (mbrtowc, mbstate_t): Define substitutes if
29888         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
29889         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
29890         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
29891
29892 2000-06-23  Jim Meyering  <meyering@lucent.com>
29893
29894         * m4/afs.m4: Add missing AC_MSG_RESULT.
29895         Reported by Bruno Haible.
29896
29897         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
29898         Suggestion from Bruno Haible.
29899
29900 2000-06-23  Jim Meyering  <meyering@lucent.com>
29901
29902         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
29903
29904 2000-06-21  Jim Meyering  <meyering@lucent.com>
29905
29906         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
29907
29908 2000-06-21  Jim Meyering  <meyering@lucent.com>
29909
29910         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
29911         (noinst_HEADERS): Add getstr.h.
29912
29913         * lib/getline.c (getstr): Move into a separate file.
29914         * lib/getstr.c (getstr): New file, extracted from getline.c, with
29915         the following changes: new parameter, delim2; both delim[12]
29916         parameters have type `int', not `char'.  The latter would lose
29917         with 8-bit delimiters.
29918         * lib/getstr.h: New file.
29919
29920 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
29921
29922         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
29923         than 1024, return a memory chunk of least possible size, instead
29924         of size PATH_MAX + 2. In the loop, increment the size proportionally.
29925         Use free/xmalloc instead of xrealloc to avoid copying for very long
29926         paths.
29927
29928 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
29929
29930         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
29931         the empty string.
29932
29933 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
29934
29935         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
29936         address, not strdup.  Include <stdlib.h> and don't declare free().
29937
29938 2000-06-19  Jim Meyering  <meyering@lucent.com>
29939
29940         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
29941
29942 2000-06-18  Jim Meyering  <meyering@lucent.com>
29943
29944         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
29945
29946         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
29947         `checking whether...' message to be consistent with that of the
29948         lstat test.
29949
29950 2000-06-18  Jim Meyering  <meyering@lucent.com>
29951
29952         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
29953         Besides, these days every porting target provides a mkdir function.
29954
29955         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
29956         needed. (this snippet comes from src/system.h).
29957
29958 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
29959
29960         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
29961
29962 2000-06-15  Paul Eggert  <eggert@twinsun.com>
29963
29964         * lib/human.c (adjust_value): New function.
29965         (human_readable_inexact): Apply rounding style even when
29966         printing approximate values.
29967
29968 2000-06-14  Paul Eggert  <eggert@twinsun.com>
29969
29970         * lib/human.c (human_readable_inexact): Allow an input block
29971         size that is not a multiple of the output block size, and vice versa.
29972         Reported by Piergiorgio Sartor.
29973
29974 2000-06-14  Paul Eggert  <eggert@twinsun.com>
29975
29976         * lib/getdate.y (get_date): Apply relative times after time
29977         zone indicator, not before.  Reported by Todd A. Jacobs.
29978
29979 2000-06-13  Jim Meyering  <meyering@lucent.com>
29980
29981         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
29982
29983         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
29984
29985 2000-06-12  Paul Eggert  <eggert@twinsun.com>
29986
29987         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
29988
29989 2000-06-12  Jim Meyering  <meyering@lucent.com>
29990
29991         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
29992         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
29993         optional argument.
29994         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
29995         the optional argument, `lib'.
29996
29997 2000-06-08  Jim Meyering  <meyering@lucent.com>
29998
29999         * m4/largefile.m4: Remove file (now that it's part of autoconf).
30000
30001 2000-06-04  Paul Eggert  <eggert@twinsun.com>
30002
30003         Rewrite largefile configuration so that we don't need to run
30004         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
30005         AC_CANONICAL_HOST in configure.in -- jmm]
30006
30007         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
30008         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
30009         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
30010         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
30011         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
30012         All uses changed.
30013         Instead of inspecting the output of getconf, try to compile the
30014         test program without and with the macro definition.
30015         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
30016         for getconf.  Instead, check for the needed flags by compiling
30017         test programs.
30018
30019 2000-06-04  Paul Eggert  <eggert@twinsun.com>
30020
30021         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
30022
30023 2000-06-04  Jim Meyering  <meyering@lucent.com>
30024
30025         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
30026         SunOS 4.1.4 for which gid_t is an unsigned type.
30027
30028 2000-06-03  Jim Meyering  <meyering@lucent.com>
30029
30030         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
30031         now that autoconf requires that.
30032
30033         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
30034         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
30035         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
30036
30037 2000-06-03  Jim Meyering  <meyering@lucent.com>
30038
30039         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
30040
30041 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
30042
30043         * m4/glibc21.m4: New file.
30044         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
30045
30046 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
30047
30048         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
30049         newer, don't install charset.alias.
30050         * lib/config.charset: Change the Linux/glibc rules so they become empty
30051         on glibc-2.1 or newer.
30052
30053 2000-06-02  Jim Meyering  <meyering@lucent.com>
30054
30055         * lib/mountlist.c: Back out last change.  Instead, do this...
30056         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
30057         me_dummy member using the same `ignore'-testing code.
30058         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
30059         fs_type strings.
30060         From Mark D. Roth.
30061
30062 2000-05-29  Jim Meyering  <meyering@lucent.com>
30063
30064         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
30065         mounts with the `ignore' attribute.  Based on a patch from
30066         Mark D. Roth.
30067
30068 2000-05-28  Jim Meyering  <meyering@lucent.com>
30069
30070         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
30071         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30072         * m4/stat.m4: Likewise.
30073         * m4/lstat.m4: Likewise.
30074         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
30075
30076         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
30077         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
30078
30079 2000-05-26  Jim Meyering  <meyering@lucent.com>
30080
30081         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
30082
30083 2000-05-24  Jim Meyering  <meyering@lucent.com>
30084
30085         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
30086         autoconf requires that.
30087         * m4/lib-check.m4: Likewise.
30088         * m4/jm-macros.m4: Likewise.
30089         * m4/strftime.m4: Likewise.
30090
30091         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
30092         AC_CHECK_DECLS, now that autoconf requires that.
30093
30094 2000-05-22  Jim Meyering  <meyering@lucent.com>
30095
30096         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30097         * m4/lstat.m4: Likewise.
30098
30099 2000-05-22  Jim Meyering  <meyering@lucent.com>
30100
30101         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
30102
30103 2000-05-20  Jim Meyering  <meyering@lucent.com>
30104
30105         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
30106         (jm_PREREQ): Use it.
30107
30108 2000-05-18  Jim Meyering  <meyering@lucent.com>
30109
30110         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
30111         back, too, since it may have been modified by allocate_entry.
30112         (hash_delete): Rewrite to use neither the assignment operator
30113         nor the comma operator in an if-expression.
30114
30115 2000-05-15  Paul Eggert  <eggert@twinsun.com>
30116
30117         * lib/closeout.c:
30118         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
30119         Remove; no longer needed.
30120         "quotearg.h": Add include.
30121         (file_name): Do not bother to explicitly initialize to NULL; it's less
30122         efficient on some hosts.
30123         (close_stdout_status): Remove test as to whether stdout was already
30124         closed; it breaks for the case "echo x | sort >&-".
30125         Quote file name colons.
30126         Do not assume that _("write error") lacks format strings.
30127
30128 2000-05-15  Jim Meyering  <meyering@lucent.com>
30129
30130         * lib/version-etc.c (version_etc_copyright): Update the copyright
30131         string used in all --version output.
30132
30133 2000-05-14  Jim Meyering  <meyering@lucent.com>
30134
30135         * lib/closeout.c (close_stdout_set_file_name): New function.
30136         (close_stdout_status): Use new file-scoped global.
30137         Return right away if fstat says the stdout file descriptor is invalid.
30138         * lib/closeout.h (close_stdout_set_file_name): Declare.
30139
30140 2000-05-10  Jim Meyering  <meyering@lucent.com>
30141
30142         * lib/closeout.c [default_exit_status]: New file-scoped variable.
30143         (close_stdout_set_status): New function.
30144         * lib/closeout.h (close_stdout_set_status): Declare.
30145
30146 2000-05-09  Jim Meyering  <meyering@lucent.com>
30147
30148         * m4/gettext.m4: Rename this...
30149         * m4/libintl.m4: ...to this.
30150
30151 2000-05-08  Jim Meyering  <meyering@lucent.com>
30152
30153         * lib/long-options.c: Don't include closeout.h.
30154         (parse_long_options): Don't call close_stdout for --version.
30155
30156 2000-05-06  Paul Eggert  <eggert@twinsun.com>
30157
30158         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
30159         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
30160         2.1.3 bug.  This avoids a clash when files like regex.c define
30161         _GNU_SOURCE.
30162
30163 2000-05-06  Jim Meyering  <meyering@lucent.com>
30164
30165         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
30166         (AC_REPLACE_FUNCS): Add strnlen.
30167
30168         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
30169         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
30170
30171         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
30172         AC_SEARCH_LIBS call for nanosleep.
30173         (LIB_NANOSLEEP): Set and AC_SUBST.
30174
30175 2000-05-06  Jim Meyering  <meyering@lucent.com>
30176
30177         * lib/strnlen.c: Undefine __strnlen and strnlen.
30178         [!weak_alias]: Define __strnlen to strnlen.
30179
30180         * lib/atexit.c: New file, from libiberty.
30181
30182 2000-05-06  Jim Meyering  <meyering@lucent.com>
30183
30184         * lib/closeout.c (close_stdout_status): Also check for errors on the
30185         stderr stream.
30186
30187 2000-05-05  Jim Meyering  <meyering@lucent.com>
30188
30189         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
30190         AC_SEARCH_LIBS call for clock_gettime.
30191         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
30192
30193         * m4/search-libs.m4: Update from autoconf.
30194
30195         su doesn't work on Solaris 2.6.
30196         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
30197         <shadow.h>.  Reported by Dragos Harabor.
30198
30199 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
30200
30201         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
30202         memcpy instead of xmalloc, xrealloc, path_concat.
30203         (locale_charset): Treat empty environment variables as absent.
30204         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
30205
30206 2000-05-04  Jim Meyering  <meyering@lucent.com>
30207
30208         * lib/getopt.c: Update from glibc.
30209         * lib/obstack.c: Likewise.
30210         * lib/obstack.h: Likewise.
30211         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
30212         file
30213
30214         * lib/regex.h: Likewise.
30215         * lib/strndup.c: Likewise.
30216         * lib/strnlen.c: New file, from glibc.
30217
30218 2000-05-03  Jim Meyering  <meyering@lucent.com>
30219
30220         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
30221
30222 2000-05-02  Paul Eggert  <eggert@twinsun.com>
30223
30224         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
30225         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
30226         compile-time test, rather than inspecting host and OS, to
30227         decide whether to define _LARGEFILE_SOURCE.
30228
30229 2000-05-01  Jim Meyering  <meyering@lucent.com>
30230
30231         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
30232
30233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
30234         Based on a patch from Bruno Haible.
30235
30236 2000-05-01  Jim Meyering  <meyering@lucent.com>
30237
30238         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
30239
30240 2000-04-29  Jim Meyering  <meyering@lucent.com>
30241
30242         * lib/path-concat.c: Declare strdup only if it's not defined.
30243         * lib/canon-host.c: Likewise.
30244
30245 2000-04-28  Jim Meyering  <meyering@lucent.com>
30246
30247         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
30248         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
30249         is included first, then limits.h is included by locale.h by libintl.h.
30250         From John David Anglin.
30251
30252 2000-04-25  Jim Meyering  <meyering@lucent.com>
30253
30254         * lib/makepath.c (S_IRWXUGO): Define.
30255         (make_path): Always perform explicit chmod if MODE specifies any
30256         of the `special' permission bits.  Prompted by a bug report against
30257         install from Mate Wierdl and Joost van Baal.
30258
30259 2000-04-18  Jim Meyering  <meyering@lucent.com>
30260
30261         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
30262         (jm_PREREQ): Use it.
30263
30264 2000-04-18  Jim Meyering  <meyering@lucent.com>
30265
30266         * lib/README: New file.
30267
30268         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
30269         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
30270
30271 2000-04-17  Jim Meyering  <meyering@lucent.com>
30272
30273         Get it right :-)
30274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
30275         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
30276         Suggestion from Akim Demaille.
30277
30278 2000-04-17  Jim Meyering  <meyering@lucent.com>
30279
30280         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
30281         the definition of it to rpl_strftime also defined-away the system's
30282         declaration.
30283
30284 2000-04-15  Jim Meyering  <meyering@lucent.com>
30285
30286         Use `C' to denote so-called `contiguous' files, the same way
30287         that tar does.
30288         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
30289         (ftypelet): Use S_ISCTG.
30290         From Michael Deutschmann.
30291
30292 2000-04-14  Jim Meyering  <meyering@lucent.com>
30293
30294         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
30295         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
30296         clobbered.
30297
30298 2000-04-14  Jim Meyering  <meyering@lucent.com>
30299
30300         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
30301
30302 2000-04-13  Jim Meyering  <meyering@lucent.com>
30303
30304         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
30305         AH_VERBATIM to insert required #ifndef into config.h.in.
30306         Suggestion from Akim Demaille.
30307
30308 2000-04-12  Jim Meyering  <meyering@lucent.com>
30309
30310         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
30311         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
30312         Christian Krackowizer.
30313
30314         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
30315         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
30316         (AC_SYS_LARGEFILE): Require.
30317         (AM_C_PROTOTYPES): Require.
30318
30319 2000-04-08  Jim Meyering  <meyering@lucent.com>
30320
30321         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
30322         names don't conflict.  Reported by Eli Zaretskii.
30323
30324 2000-04-07  Jim Meyering  <meyering@lucent.com>
30325
30326         * lib/putenv.c: Move inclusion of errno.h so it follows that of
30327         sys/types.h, to work around system header problems on AIX 3.2.5.
30328         From Bruno Haible.
30329
30330 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
30331
30332         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
30333         bug.  Deal with the different error behavior of Irix iconv.
30334
30335 2000-04-05  Paul Eggert  <eggert@twinsun.com>
30336
30337         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
30338         IRIX if the installer said otherwise.
30339
30340 2000-04-05  Jim Meyering  <meyering@lucent.com>
30341
30342         Portability tweaks required for ultrix4.3.
30343         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
30344         (jm_CHECK_DECLS): Add getutent to the list of functions.
30345         (_jm_DECL_HEADERS): Add utmpx.h.
30346         From John David Anglin.
30347
30348         * m4/strftime.m4: Back out the 2000-04-02 change.
30349         Instead of that change, simply undefine putenv in the test program.
30350
30351 2000-04-05  Jim Meyering  <meyering@lucent.com>
30352
30353         Portability tweaks required for ultrix4.3.
30354         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
30355         getutent.
30356         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
30357         * lib/canon-host.c: Declare strdup.
30358         * lib/path-concat.c: Likewise.
30359         From John David Anglin.
30360
30361 2000-04-04  Jim Meyering  <meyering@lucent.com>
30362
30363         Be more DOS 8.3-friendly.
30364         * lib/ref-add.sin: Renamed from ref-add.sed.in.
30365         * lib/ref-del.sin: Renamed from ref-del.sed.in.
30366         * lib/Makefile.am: Reflect renaming.
30367         Reported by Eli Zaretskii.
30368
30369         Use a temporary file name that won't clash with `charset.alias'
30370         in the DOS 8.3 name space.
30371         * lib/Makefile.am (charset_tmp): Define.
30372         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
30373         (uninstall-local): Likewise.
30374         Reported by Eli Zaretskii.
30375
30376 2000-04-03  Jim Meyering  <meyering@lucent.com>
30377
30378         * m4/gettext.m4: Fix typo in comment.
30379
30380         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
30381         textutils/configure.in).  Suggestion from Paul Eggert.
30382         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
30383
30384 2000-04-02  Paul Eggert  <eggert@twinsun.com>
30385
30386         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
30387         variable in the shell rather than using putenv, which isn't
30388         portable.  This avoids the configure-time inter-test dependency
30389         on the potentially-renamed putenv function.
30390
30391 2000-03-30  Paul Eggert  <eggert@twinsun.com>
30392
30393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
30394         before checking struct stat.st_blksize, so that
30395         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
30396
30397 2000-03-29  Paul Eggert  <eggert@twinsun.com>
30398
30399         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
30400         since strftime.c uses HAVE_STRFTIME to decide whether to use
30401         the underlying strftime.
30402
30403 2000-03-29  Paul Eggert  <eggert@twinsun.com>
30404
30405         * lib/time/strftime.c (my_strftime): Make sure we call the system
30406         strftime, not ourselves, when invoking the underlying strftime.
30407
30408 2000-03-24  Jim Meyering  <meyering@lucent.com>
30409
30410         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
30411         (charset_alias): Define.
30412         (install-exec-local): Factor out common code.
30413         (uninstall-local): Split lines longer than 80.
30414         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
30415         (SUFFIXES): Define.
30416         (.sed.in.sed): New rule.  Don't redirect directly to $@.
30417         (CLEANFILES): Add ref-add.sed and ref-del.sed.
30418
30419 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
30420
30421         * lib/config.charset: Output a line containing "Packages using this
30422         file".
30423         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
30424         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
30425         ref-del.sed): New rules.
30426
30427 2000-03-17  Jim Meyering  <meyering@lucent.com>
30428
30429         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
30430         Otherwise, include <strings.h>
30431
30432 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
30433
30434         * lib/unicodeio.c (utf8_wctomb): New function.
30435         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
30436         format instead of in UCS-4 with platform dependent endianness.
30437
30438 2000-03-10  Jim Meyering  <meyering@lucent.com>
30439
30440         * m4/lib-check.m4: Look for getspnam in -lgen, too.
30441         From Marco Franzen.
30442
30443 2000-03-07  Paul Eggert  <eggert@twinsun.com>
30444
30445         * lib/savedir.c (savedir): Work even if directory size is
30446         negative; this can happen with some screwy NFS configurations.
30447
30448 2000-03-06  Jim Meyering  <meyering@lucent.com>
30449
30450         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
30451         if it's NULL (because we ran out of memory).  From Bruno Haible.
30452
30453 2000-03-05  Jim Meyering  <meyering@lucent.com>
30454
30455         * lib/localcharset.c ("path-concat.h"): Include.
30456         (get_charset_aliases): Use path_concat instead of ANSI string
30457         concatenation.
30458
30459         * lib/unicodeio.h (PARAMS): Define.
30460         Use it to guard prototype.
30461
30462 2000-03-04  Jim Meyering  <meyering@lucent.com>
30463
30464         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
30465         for lib/localcharset.c.
30466
30467 2000-03-04  Jim Meyering  <meyering@lucent.com>
30468
30469         * lib/Makefile.am (install-exec-local): Create $(libdir) before
30470         installing into it.
30471         (uninstall-local): Uncomment this rule so `make distcheck' works
30472         once again.
30473
30474         * lib/unicodeio.c (<errno.h>): Include it.
30475         (errno): Declare if not defined.
30476
30477         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
30478
30479         * lib/config.charset: New version, incorporating remarks from a linux
30480         i18n mailing list.  From Bruno Haible.
30481
30482 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
30483
30484         * m4/codeset.m4: New file.
30485         * m4/iconv.m4: New file.
30486         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
30487
30488 2000-03-03  Jim Meyering  <meyering@lucent.com>
30489
30490         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
30491
30492 2000-03-02  Jim Meyering  <meyering@lucent.com>
30493
30494         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
30495         the messages come out on separate lines.
30496
30497         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
30498         rather than jm_CHECK_DECLARATIONS.
30499         * m4/decl.m4: Remove now-unused file.
30500
30501         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
30502         geteuid.
30503
30504 2000-03-02  Jim Meyering  <meyering@lucent.com>
30505
30506         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
30507
30508 2000-03-01  Jim Meyering  <meyering@lucent.com>
30509
30510         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
30511         * lib/unicodeio.c: Likewise.
30512
30513 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
30514
30515         * lib/config.charset: New file.
30516         * lib/localcharset.c: New file.
30517         * lib/unicodeio.h, lib/unicodeio.c: New files.
30518         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
30519         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
30520         (noinst_HEADERS): Add unicodeio.h.
30521         (all-local, install-exec-local, charset.alias): New targets.
30522
30523 2000-02-28  Paul Eggert  <eggert@twinsun.com>
30524
30525         * lib/quotearg.c (ALERT_CHAR): New macro.
30526         (quotearg_buffer_restyled): Use it.
30527
30528 2000-02-27  Jim Meyering  <meyering@lucent.com>
30529
30530         * m4/check-decl.m4: Add getenv to the list.
30531
30532 2000-02-27  Jim Meyering  <meyering@lucent.com>
30533
30534         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
30535         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
30536
30537         * lib/backupfile.c: Guard inclusion of stdlib.h with
30538         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
30539         Declare malloc if needed.
30540
30541         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
30542         `#ifndef HAVE_DECL..'
30543         now that autoconf always defines the HAVE_DECL_ symbols.
30544         * lib/human.c: Likewise.
30545         * lib/same.c: Likewise.
30546         * lib/strtoumax.c: Likewise.
30547
30548         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
30549         declaration check was not run.
30550         * lib/hash.c: Likewise.
30551         * lib/human.c: Likewise.
30552         * lib/same.c: Likewise.
30553         * lib/strtoumax.c: Likewise.
30554
30555         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
30556         `.', then first look up the entire `.'-containing string as a login
30557         name.
30558
30559 2000-02-23  Jim Meyering  <meyering@lucent.com>
30560
30561         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
30562         in place of my hack.
30563
30564 2000-02-18  Paul Eggert  <eggert@twinsun.com>
30565
30566         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
30567         (textint): New typedef.
30568         (parser_control): Member year changed from int to textint.
30569         All uses changed.
30570         (YYSTYPE): Removed; replaced by %union with int and textint members.
30571         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
30572         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
30573         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
30574         (tSNUMBER, tUNUMBER): Now of type <textintval>.
30575         (date, number, to_year): Use width of number in digits, not its value,
30576         to determine whether it's a 2-digit year, or a 2-digit time.
30577         (yylex): Store number of digits of numeric tokens.
30578         Reported by John Kendall.
30579
30580         (parser_control): Changed from struct parser_control to typedef (for
30581         consistency).  All uses changed.
30582
30583         (tID): Removed; not used.
30584         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
30585
30586 2000-02-14  Paul Eggert  <eggert@twinsun.com>
30587
30588         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
30589         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
30590
30591 2000-02-12  Jim Meyering  <meyering@lucent.com>
30592
30593         * lib/userspec.c (ISDIGIT): Define it.
30594         (isdigit): Remove definition.
30595         (is_number): Use ISDIGIT, not isdigit.
30596         <libintl.h>: Include.
30597         (_ and N_): Define.
30598         (parse_user_spec): Mark translatable strings.
30599
30600 2000-02-10  Jim Meyering  <meyering@lucent.com>
30601
30602         With these changes, nanosleep.[ch] are finally enough like the other
30603         lib/* replacement files to compile on a few more losing systems.
30604
30605         * lib/nanosleep.h: Don't include config.h.
30606         Remove prototype from declaration of nanosleep.
30607         (PARAMS): Remove now-unneeded definition.
30608         * lib/nanosleep.c: #undef nanosleep.
30609         (rpl_nanosleep): Rename from nanosleep.
30610
30611 2000-02-10  Jim Meyering  <meyering@lucent.com>
30612
30613         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
30614         gnu_nanosleep to rpl_nanosleep.
30615
30616 2000-02-09  Jim Meyering  <meyering@lucent.com>
30617
30618         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
30619         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
30620
30621 2000-02-08  Akim Demaille  <akim@epita.fr>
30622
30623         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
30624         `[' and `]' and remove uses of `changequote'.
30625         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
30626         (AC_SYS_LARGEFILE): Likewise.
30627         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30628         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
30629         of changequote.
30630         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
30631         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
30632         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
30633         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
30634
30635 2000-02-05  Jim Meyering  <meyering@lucent.com>
30636
30637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
30638         Remove explicit use of AC_HEADER_TIME.  It is required by
30639         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
30640         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
30641         in autoconf whereby the expansion of the latter ended up preceding
30642         the expansion of its prerequisite, AC_HEADER_TIME.
30643         Reported by Volker Borchert.
30644
30645 2000-02-03  Jim Meyering  <meyering@lucent.com>
30646
30647         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
30648
30649 2000-02-03  Jim Meyering  <meyering@lucent.com>
30650
30651         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
30652         rather than with `#if HAVE_UTMPNAME'.
30653
30654 2000-02-02  Jim Meyering  <meyering@lucent.com>
30655
30656         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
30657         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
30658         Reported by Eli Zaretskii.
30659
30660 2000-02-01  Jim Meyering  <meyering@lucent.com>
30661
30662         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
30663
30664 2000-01-31  Jim Meyering  <meyering@lucent.com>
30665
30666         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
30667         functions.  Add the time.h and sys/time.h headers along with the
30668         AC_REQUIRE'ment of AC_HEADER_TIME.
30669
30670 2000-01-31  Jim Meyering  <meyering@lucent.com>
30671
30672         * lib/nanosleep.h (nanosleep): Guard declaration with
30673         `#if ! HAVE_DECL_NANOSLEEP'.
30674         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
30675         the declaration in that vendor's sys/timers.h.
30676         Reported by Christian Krackowizer.
30677
30678         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
30679         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
30680         (ISPRINT): Likewise.
30681         Reported by Tom Tromey.
30682
30683 2000-01-30  Jim Meyering  <meyering@lucent.com>
30684
30685         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
30686
30687         * m4/prereq.m4 (utmp_includes): Define.
30688         Check for ut_user and ut_name members in both struct utmpx
30689         and struct utmp.
30690
30691 2000-01-30  Jim Meyering  <meyering@lucent.com>
30692
30693         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
30694         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
30695         header files where only utmpx.ut_user is declared.
30696
30697         * lib/readutmp.h (UT_USER): Define.
30698
30699 2000-01-29  Jim Meyering  <meyering@lucent.com>
30700
30701         * m4/lib-check.m4: New file containing library-related checks from
30702         fileutils and sh-utils (textutils had none).
30703
30704 2000-01-28  Jim Meyering  <meyering@lucent.com>
30705
30706         * m4/perl.m4: Change format of warning message to look more like that
30707         from the missing script.  Suggestion from François Pinard.
30708
30709 2000-01-25  Jim Meyering  <meyering@lucent.com>
30710
30711         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
30712         well as time.h in the compile check.
30713         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
30714         Fix typo in cross-compiling case: s/yes/no/.
30715
30716 2000-01-23  Jim Meyering  <meyering@lucent.com>
30717
30718         * m4/jm-macros.m4: Move df-related tests here from
30719         fileutils/configure.in
30720
30721         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
30722         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
30723
30724         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
30725         s/space/ac_fsusage_space/.
30726         (jm_FILE_SYSTEM_USAGE): Take two parameters.
30727
30728         * m4/ftruncate.m4: New file (derived from part of
30729         fileutils/configure.in).
30730         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
30731         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
30732
30733         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
30734         AC_SUBST these here, rather than just in sh-util/configure.in, so
30735         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
30736         all the same.
30737         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
30738         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
30739         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
30740         (AC_SUBST(POW_LIBM)): Likewise.
30741         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
30742
30743 2000-01-23  Jim Meyering  <meyering@lucent.com>
30744
30745         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
30746         obstack.c.
30747
30748 2000-01-22  Jim Meyering  <meyering@lucent.com>
30749
30750         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
30751
30752         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
30753
30754         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
30755         configure.in
30756         (AC_CHECK_HEADERS): Likewise for sh-utils.
30757         (AC_CHECK_HEADERS): Likewise for textutils.
30758         Merge the three lists of headers.
30759
30760         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
30761         from fileutils' configure.in.
30762
30763         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
30764         code. Moved tests into their own function (_jm_DECL_HEADERS) in
30765         check-decl.m4.
30766
30767         * m4/check-decl.m4: Use #if rather than #ifdef.
30768         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
30769         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
30770         (_jm_DECL_HEADERS): Define new function.
30771         (jm_CHECK_DECLARATIONS): Require it.
30772
30773 2000-01-22  Jim Meyering  <meyering@lucent.com>
30774
30775         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
30776         [! HAVE_DECL_STRTOULL]: Declare strtoull.
30777         Required for some AIX systems.  Reported by Christian Krackowizer.
30778         [TESTING] (main): New function.
30779
30780         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
30781         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
30782         letters.
30783
30784         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
30785         iswprint.
30786
30787         * lib/strverscmp.c (ISDIGIT): Define.
30788         (strverscmp): Use ISDIGIT, not isdigit.
30789
30790 2000-01-19  Jim Meyering  <meyering@lucent.com>
30791
30792         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
30793         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
30794         defines `struct timespec' in <sys/time.h>
30795
30796         * m4/c-bs-a.m4: Remove uses of changequote altogether.
30797         Thanks to Akim for explaining.
30798
30799 2000-01-17  Paul Eggert  <eggert@twinsun.com>
30800
30801         * lib/nanosleep.c (nanosleep):
30802         Don't use SA_INTERRUPT to decide whether to call sigaction, as
30803         POSIX.1 doesn't require SA_INTERRUPT and some systems
30804         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
30805         it's been part of POSIX.1 since day 1 (in 1988).
30806
30807 2000-01-17  Jim Meyering  <meyering@lucent.com>
30808
30809         * lib/interlock: Remove unused file.  Reported by François Pinard.
30810
30811 2000-01-16  Paul Eggert  <eggert@twinsun.com>
30812
30813         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
30814         alert, backslash, formfeed, and vertical tab unnecessarily in
30815         shell quoting style.
30816
30817 2000-01-16  Jim Meyering  <meyering@lucent.com>
30818
30819         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
30820         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
30821         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
30822         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
30823
30824 2000-01-16  Jim Meyering  <meyering@lucent.com>
30825
30826         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
30827         because the latter didn't work.
30828
30829 2000-01-15  Jim Meyering  <meyering@lucent.com>
30830
30831         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
30832         (AC_REPLACE_FUNCS): Add memcpy and memset.
30833         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
30834         Add strpbrk.
30835         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
30836
30837 2000-01-12  Jim Meyering  <meyering@lucent.com>
30838
30839         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
30840         (jm_PREREQ): Use it.
30841         (jm_PREREQ_READUTMP): New macro.
30842         (jm_PREREQ): Use it.
30843
30844 2000-01-11  Paul Eggert  <eggert@twinsun.com>
30845
30846         Quote multibyte characters correctly.
30847         * m4/c-bs-a.m4: New file.
30848         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
30849         (jm_PREREQ): Use it.
30850
30851 2000-01-11  Paul Eggert  <eggert@twinsun.com>
30852
30853         * m4/uintmax_t.m4: Port to autoconf 2.13.
30854
30855 2000-01-08  Jim Meyering  <meyering@ascend.com>
30856
30857         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
30858         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
30859
30860 2000-01-04  Jim Meyering  <meyering@ascend.com>
30861
30862         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
30863         jm_STRUCT_DIRENT_D_TYPE.
30864         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
30865         jm_STRUCT_DIRENT_D_INO.
30866         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
30867         jm_STRUCT_UTIMBUF.
30868         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
30869         renamings.
30870         * m4/utime.m4: Likewise.
30871
30872         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
30873         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
30874
30875 2000-01-03  Paul Eggert  <eggert@twinsun.com>
30876
30877         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
30878         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
30879
30880 2000-01-02  Jim Meyering  <meyering@ascend.com>
30881
30882         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
30883         remember if this is necessary.
30884
30885 1999-12-26  Jim Meyering  <meyering@ascend.com>
30886
30887         * m4/jm-macros.m4: Use it here.
30888         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
30889
30890 1999-12-23  Jim Meyering  <meyering@ascend.com>
30891
30892         * m4/jm-macros.m4: Check for clock_gettime (moved from
30893         fileutils/configure.in)
30894         Check for gettimeofday.
30895
30896 1999-12-20  Jim Meyering  <meyering@ascend.com>
30897
30898         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
30899         autoconf-2.14a-1999-12-20.
30900
30901 1999-12-19  Jim Meyering  <meyering@ascend.com>
30902
30903         * m4/lstat-slash.m4: New file.
30904         * m4/jm-macros.m4: Use the new macro:
30905         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30906
30907 1999-12-07  Jim Meyering  <meyering@ascend.com>
30908
30909         * m4/perl.m4: Require that File::Compare be available, too.
30910         Too many systems seem to lack it.
30911
30912         * m4/strftime.m4: Add checks for most of the cpp macros tested in
30913         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
30914
30915 1999-11-18  Paul Eggert  <eggert@twinsun.com>
30916
30917         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
30918         problem with the QNX 4.25 shell, which doesn't propagate exit
30919         status of failed commands inside shell assignments.
30920
30921 1999-11-17  Jim Meyering  <meyering@ascend.com>
30922
30923         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
30924
30925 1999-11-07  Jim Meyering  <meyering@ascend.com>
30926
30927         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
30928
30929 1999-11-06  Jim Meyering  <meyering@ascend.com>
30930
30931         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
30932         * m4/jm-macros.m4 (jm_MACROS): Use it here.
30933
30934 1999-11-05  Jim Meyering  <meyering@ascend.com>
30935
30936         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
30937         configure.in of textutils, fileutils, and sh-utils into this one
30938         (shared between those packages) file.
30939         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
30940         AC_STRUCT_ST_BLKSIZE.
30941
30942 1999-11-03  Jim Meyering  <meyering@ascend.com>
30943
30944         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
30945         of AC_CHECK_TYPE checks includes unistd.h.
30946         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
30947         Suggestion from Akim Demaille.
30948
30949 1999-10-30  Jim Meyering  <meyering@ascend.com>
30950
30951         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
30952         m4-quoted string.
30953         * m4/ls-mntd-fs.m4: Likewise.
30954         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
30955         * m4/jm-winsz1.m4: Likewise.
30956
30957         * m4/const.m4: Remove file, since the fix made it into the experimental
30958         version of autoconf.
30959         * m4/mktime.m4: Likewise.
30960
30961         * m4/check-type.m4: Remove file, now that the latest version of
30962         AC_CHECK_TYPE takes a third arg to specify additional #includes.
30963
30964         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
30965         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
30966         AC_CHECK_TYPE.
30967
30968 1999-10-04  Jim Meyering  <meyering@ascend.com>
30969
30970         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
30971
30972 1999-09-22  Paul Eggert  <eggert@twinsun.com>
30973
30974         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
30975         2.95.1 bug with HP-UX 10.20.
30976
30977 1999-09-17  Jim Meyering  <meyering@ascend.com>
30978
30979         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
30980         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
30981         due to missing strdup (against sh-utils-2.0).
30982
30983 1999-08-29  Jim Meyering  <meyering@ascend.com>
30984
30985         * m4/jm-macros.m4: Require jm_BISON.
30986         * m4/bison.m4: New file.
30987
30988 1999-08-17  Paul Eggert  <eggert@twinsun.com>
30989
30990         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
30991         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
30992
30993 1999-08-05  Jim Meyering  <meyering@ascend.com>
30994
30995         * m4/getline.m4: Rename test file from conftestdata to conftest.data
30996         to avoid conflicts with `conftest' on 8+3 filesystems.
30997         Suggestion from Eli Zaretskii.
30998
30999 1999-08-04  Jim Meyering  <meyering@ascend.com>
31000
31001         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
31002         fileutils and sh-utils (textutils's getline test was inadequate).
31003         (AM_FUNC_GETLINE): Run this test.
31004         (AC_CHECK_FUNCS): Check for getdelim.
31005         Reported by Bob Proulx.
31006
31007 1999-08-02  Jim Meyering  <meyering@ascend.com>
31008
31009         * m4/jm-macros.m4: Add a comment.
31010
31011 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31012
31013         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
31014         <inttypes.h> defines strtoumax as a macro (and not as a
31015         function).
31016
31017 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31018
31019         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
31020         that we can shift, multiply and divide unsigned long long
31021         values; Ultrix cc can't do it.
31022
31023 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31024
31025         * m4/mktime.m4: New file, which is a preview of what should appear
31026         in the next public autoconf release.
31027
31028 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31029
31030         * m4/lfs.m4: Remove this file.
31031         * m4/largefile.m4: New file.  It contains the old contents of
31032         lfs.m4, except that all names with prefix AC_LFS have been
31033         changed to use the prefix AC_SYS_LARGEFILE instead, to be
31034         compatible with future autoconf versions.  Also, some minor m4
31035         quoting problems have been fixed.
31036
31037 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31038
31039         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
31040         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
31041         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
31042         and simplify the shell code.
31043
31044 1999-08-01  Jim Meyering  <meyering@ascend.com>
31045
31046         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
31047         m4.
31048
31049 1999-07-20  Jim Meyering  <meyering@ascend.com>
31050
31051         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
31052
31053 1999-07-15  Jim Meyering  <meyering@ascend.com>
31054
31055         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
31056
31057 1999-05-22  Jim Meyering  <meyering@ascend.com>
31058
31059         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
31060
31061 1999-05-20  Jim Meyering  <meyering@ascend.com>
31062
31063         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
31064         Add a colon after each `then' in case $4 is empty.
31065
31066 1999-05-16  Jim Meyering  <meyering@ascend.com>
31067
31068         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
31069
31070 1999-05-10  Jim Meyering  <meyering@ascend.com>
31071
31072         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
31073
31074         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
31075         AC_FUNC_MKTIME.
31076
31077 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
31078
31079         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
31080
31081 1999-05-04  Paul Eggert  <eggert@twinsun.com>
31082
31083         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
31084         not CPPFLAGS, so that linking works correctly in IRIX.
31085
31086 1999-04-30  Paul Eggert  <eggert@twinsun.com>
31087
31088         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
31089
31090 1999-04-20  Paul Eggert  <eggert@twinsun.com>
31091
31092         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
31093         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
31094         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
31095         jm_AC_TYPE_UNSIGNED_LONG_LONG.
31096         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
31097
31098         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
31099
31100 1999-04-20  Jim Meyering  <meyering@ascend.com>
31101
31102         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
31103         AC_REPLACE xstroull if necessary.  From Paul Eggert.
31104         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
31105
31106 1999-04-18  Jim Meyering  <meyering@ascend.com>
31107
31108         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
31109         * m4/jm-macros.m4: Use it.
31110
31111 1999-04-06  Jim Meyering  <meyering@ascend.com>
31112
31113         * m4/strftime.m4: Remove test for %f.
31114
31115 1999-03-29  Jim Meyering  <meyering@ascend.com>
31116
31117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
31118         superset of the AC_TYPE_* checks in the textutils, fileutils,
31119         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
31120         AC_TYPE_PID_T.
31121
31122 1999-03-28  Jim Meyering  <meyering@ascend.com>
31123
31124         * m4/jm-macros.m4: Define GNU_PACKAGE here.
31125         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
31126         replaced e.g., in the *.sh files of the sh-utils.
31127
31128 1999-03-20  Jim Meyering  <meyering@ascend.com>
31129
31130         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
31131         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
31132         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
31133
31134 1999-03-19  Jim Meyering  <meyering@ascend.com>
31135
31136         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
31137
31138 1999-03-12  Jim Meyering  <meyering@ascend.com>
31139
31140         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
31141
31142 1999-03-07  Jim Meyering  <meyering@ascend.com>
31143
31144         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
31145         declared.
31146
31147 1999-02-17  Jim Meyering  <meyering@ascend.com>
31148
31149         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
31150         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
31151
31152 1999-02-07  Jim Meyering  <meyering@ascend.com>
31153
31154         * m4/group-member.m4: New file -- extracted from sh-utils'
31155         configure.in.
31156
31157         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
31158         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
31159
31160 1999-02-06  Jim Meyering  <meyering@ascend.com>
31161
31162         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
31163         * m4/fnmatch.m4: Likewise.
31164         * m4/getgroups.m4: Likewise.
31165         * m4/lstat.m4: Likewise.
31166         * m4/malloc.m4: Likewise.
31167         * m4/putenv.m4: Likewise.
31168         * m4/realloc.m4: Likewise.
31169         * m4/regex.m4: Likewise.
31170         * m4/stat.m4: Likewise.
31171         * m4/strftime.m4: Likewise.
31172         Suggestion from Alain Magloire.
31173
31174         * m4/chown.m4: Use `.$ac_objext', not `.o'.
31175         * m4/fnmatch.m4: Likewise.
31176         * m4/getgroups.m4: Likewise.
31177         * m4/getline.m4: Likewise.
31178         * m4/lstat.m4: Likewise.
31179         * m4/malloc.m4: Likewise.
31180         * m4/memcmp.m4: Likewise.
31181         * m4/putenv.m4: Likewise.
31182         * m4/realloc.m4: Likewise.
31183         * m4/regex.m4: Likewise.
31184         * m4/stat.m4: Likewise.
31185         * m4/strftime.m4: Likewise.
31186         Suggestion from Alain Magloire.
31187
31188         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
31189         an argument.
31190
31191         * m4/regex.m4: Add a run-time Test for proper operation of
31192         re_compile_pattern.
31193
31194 1999-01-31  Jim Meyering  <meyering@ascend.com>
31195
31196         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
31197
31198 1999-01-30  Jim Meyering  <meyering@ascend.com>
31199
31200         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
31201
31202         * m4/jm-mktime.m4: Make this a wrapper around the official
31203         AM_FUNC_MKTIME rather than my private copy, now that the official one
31204         is up to date.
31205         * m4/mktime.m4: Remove file.
31206
31207         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
31208         * m4/uptime.m4: Likewise.
31209         * m4/uintmax_t.m4: Likewise.
31210
31211 1999-01-28  Jim Meyering  <meyering@ascend.com>
31212
31213         * m4/jm-macros.m4: Use jm_AFS.
31214         * m4/afs.m4: New file (from fileutils' configure.in).
31215
31216         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
31217         * m4/chown.m4: Likewise.
31218         * m4/d-ino.m4: Likewise.
31219         * m4/d-type.m4: Likewise.
31220         * m4/fnmatch.m4: Likewise.
31221         * m4/getgroups.m4: Likewise.
31222         * m4/gettext.m4: Likewise.
31223         * m4/jm-mktime.m4: Likewise.
31224         * m4/jm-winsz2.m4: Likewise.
31225         * m4/lcmessage.m4: Likewise.
31226         * m4/ls-mntd-fs.m4: Likewise.
31227         * m4/malloc.m4: Likewise.
31228         * m4/memcmp.m4: Likewise.
31229         * m4/putenv.m4: Likewise.
31230         * m4/realloc.m4: Likewise.
31231         * m4/st_mtim.m4: Likewise.
31232         * m4/strftime.m4: Likewise.
31233
31234 1999-01-16  Jim Meyering  <meyering@ascend.com>
31235
31236         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
31237         (ARGMATCH_DIE_DECL): Define.
31238
31239 1999-01-12  Jim Meyering  <meyering@ascend.com>
31240
31241         * m4/Makefile.am.in: Rewrite to avoid using fmt.
31242         Reported by Lars Hecking.
31243
31244 1999-01-10  Jim Meyering  <meyering@ascend.com>
31245
31246         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
31247         gross kludge.
31248         * m4/inttypes_h.m4: Likewise.
31249         * m4/lstat.m4: Likewise.
31250         * m4/malloc.m4: Likewise.
31251         * m4/readdir.m4: Likewise.
31252         * m4/realloc.m4: Likewise.
31253         * m4/st_dm_mode.m4: Likewise.
31254         * m4/stat.m4: Likewise.
31255         * m4/utimbuf.m4: Likewise.
31256         * m4/utimes.m4: Likewise.
31257
31258         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
31259         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
31260         comments in config.h.in are meaningful.
31261
31262         * m4/jm-macros.m4: Require autoconf-2.13 here.
31263
31264         * m4/regex.m4: By default, don't use the included regex.c on systems
31265         with glibc 2.  Suggestion from Uli Drepper.
31266
31267 1999-01-02  Jim Meyering  <meyering@ascend.com>
31268
31269         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
31270
31271 1998-12-18  Jim Meyering  <meyering@ascend.com>
31272
31273         * m4/Makefile.am.in (Makefile.am): Simplify rule.
31274         Based on a suggestion from Lars Hecking.
31275
31276 1998-11-16  Paul Eggert  <eggert@twinsun.com>
31277
31278         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
31279
31280 1998-11-16  Jim Meyering  <meyering@ascend.com>
31281
31282         * m4/lfs.m4: Double-quote the `uname...` expression.
31283
31284 1998-11-14  Jim Meyering  <meyering@ascend.com>
31285
31286         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
31287         * m4/stat.m4: Likewise.
31288
31289 1998-11-03  Jim Meyering  <meyering@ascend.com>
31290
31291         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
31292         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
31293
31294 1998-10-18  Jim Meyering  <meyering@ascend.com>
31295
31296         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
31297
31298 1998-10-17  Jim Meyering  <meyering@ascend.com>
31299
31300         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
31301         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
31302         calls for those previously hard-coded headers.  Instead, take a new
31303         parameter.
31304         (jm_CHECK_DECLARATIONS): Reflect interface change.
31305         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
31306         (jm_CHECK_DECL_LOCALTIME_R): New macro.
31307
31308         * m4/mktime.m4: Test for spring-forward gap before long-running test.
31309
31310 1998-10-14  Jim Meyering  <meyering@ascend.com>
31311
31312         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
31313         instead of "TZ=America/Vancouver".  From Paul Eggert.
31314
31315 1998-10-11  Jim Meyering  <meyering@ascend.com>
31316
31317         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
31318         This adds a test for a recently added compatibility fix for mktime.c.
31319         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
31320
31321 1998-09-27  Jim Meyering  <meyering@ascend.com>
31322
31323         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
31324
31325         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
31326         ../configure.in, including a change from Gordon Matzigkeit to allow
31327         cross-compiling for the Hurd.
31328
31329         * m4/glibc.m4: New file/macro to test for the GNU C Library
31330         versions 1 and 2.  From Gordon Matzigkeit.
31331         Indent.
31332
31333 1998-09-21  Jim Meyering  <meyering@ascend.com>
31334
31335         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
31336
31337 1998-08-18  Paul Eggert  <eggert@twinsun.com>
31338
31339         Port nanosecond-resolution times to UnixWare 2.1.2 and
31340         pedantic Solaris 2.6.
31341
31342         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
31343         AC_STRUCT_ST_MTIM.
31344         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
31345         Generate name of ns member, instead of just 1 or undef.
31346         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
31347
31348 1998-08-15  Jim Meyering  <meyering@ascend.com>
31349
31350         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
31351         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
31352         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
31353         instead of jm_TYPE_SSIZE_T.
31354
31355 1998-08-12  Jim Meyering  <meyering@ascend.com>
31356
31357         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
31358
31359 1998-08-02  Jim Meyering  <meyering@ascend.com>
31360
31361         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
31362         in acconfig.h manually.
31363
31364 1998-07-31  Paul Eggert  <eggert@twinsun.com>
31365
31366         * m4/st_mtim.m4: New file.
31367
31368 1998-07-28  Jim Meyering  <meyering@ascend.com>
31369
31370         * m4/utimes.m4: Undef stat.
31371
31372 1998-07-25  Jim Meyering  <meyering@ascend.com>
31373
31374         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
31375         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
31376
31377 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
31378
31379         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
31380         uid and gid actually remain unchanged.
31381
31382 1998-07-07  Jim Meyering  <meyering@ascend.com>
31383
31384         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
31385
31386 1998-07-04  Jim Meyering  <meyering@ascend.com>
31387
31388         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
31389         to prove that this macro can be used in packages without regex.c.
31390
31391 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
31392
31393         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
31394         is to be used.
31395
31396 1998-07-03  Jim Meyering  <meyering@ascend.com>
31397
31398         * m4/gettext.m4: Add -lintl if it's found to be necessary.
31399
31400         * m4/gettext.m4: New file -- from gettext-0.10.35.
31401         * m4/lcmessage.m4: Likewise.
31402         * m4/progtest.m4: Likewise.
31403
31404         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
31405         * m4/jm-macros.m4: Require the new macro.
31406
31407 1998-06-29  Jim Meyering  <meyering@ascend.com>
31408
31409         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
31410         for the definition of NGROUPS (used in a system header included
31411         by sys/mount.h).
31412
31413 1998-06-28  Jim Meyering  <meyering@ascend.com>
31414
31415         * m4/ls-mntd-fs.m4: New file.
31416         * m4/fstypename.m4: New file.
31417
31418         * m4/jm-macros.m4: Require the new macro.
31419         * m4/jm-glibc-io.m4: New file.
31420
31421 1998-05-19  Jim Meyering  <meyering@ascend.com>
31422
31423         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
31424         * m4/lchown.m4: New file.
31425
31426         * m4/Makefile.am.in: New file.
31427         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
31428
31429 1998-05-14  Jim Meyering  <meyering@ascend.com>
31430
31431         * m4/Makefile.am (EXTRA_DIST): Add them.
31432         * m4/jm-macros.m4: New file.
31433         * m4/utimbuf.m4: New file.
31434
31435 1998-05-12  Jim Meyering  <meyering@ascend.com>
31436
31437         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
31438
31439 1998-05-11  Jim Meyering  <meyering@ascend.com>
31440
31441         * m4/isc-posix.m4: New file.
31442
31443 1998-05-10  Jim Meyering  <meyering@ascend.com>