* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
[gnulib.git] / ChangeLog
1 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2
3         * MODULES.html.sh: Add include_next.
4         * modules/include_next: New file.
5
6 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7
8         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9         INCLUDE_NEXT.
10         (gl_CHECK_NEXT_HEADERS): New macro.
11         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
12         the obsolescent gl_ABSOLUTE_HEADER.
13         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
15         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
16         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18         * m4/math_h.m4 (gl_MATH_H): Likewise.
19         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
20         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35         * m4/inttypes.m4 (gl_INTTYPES_H): Define
36         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
39         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
42         * lib/float_.h: Likewise.
43         * lib/inttypes_.h: Likewise.
44         * lib/math_.h: Likewise.
45         * lib/search_.h: Likewise.
46         * lib/signal_.h: Likewise.
47         * lib/stdint_.h: Likewise.
48         * lib/stdio_.h: Likewise.
49         * lib/stdlib_.h: Likewise.
50         * lib/string_.h: Likewise.
51         * lib/sys_stat_.h: Likewise.
52         * lib/sys_time_.h: Likewise.
53         * lib/time_.h: Likewise.
54         * lib/unistd_.h: Likewise.
55         * lib/wchar_.h: Likewise.
56         * lib/wctype_.h: Likewise.
57         * lib/dirent_.h: Likewise.
58         * lib/iconv_.h: Likewise.
59         * lib/locale_.h: Likewise.
60         * lib/netinet_in_.h: Likewise.
61         * lib/sys_select_.h: Likewise.
62         * lib/sys_socket_.h: Likewise.
63         * lib/sysexits_.h: Likewise.
64         * modules/fcntl (Depends-on): Depend on include_next, not
65         absolute_header.
66         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68         * modules/fchdir: Likewise.
69         * modules/float: Likewise.
70         * modules/iconv_open: Likewise.
71         * modules/inttypes: Likewise.
72         * modules/locale: Likewise.
73         * modules/math: Likewise.
74         * modules/netinet_in: Likewise.
75         * modules/search: Likewise.
76         * modules/signal: Likewise.
77         * modules/stdint: Likewise.
78         * modules/stdio: Likewise.
79         * modules/stdlib: Likewise.
80         * modules/string: Likewise.
81         * modules/sys_select: Likewise.
82         * modules/sys_socket: Likewise.
83         * modules/sys_stat: Likewise.
84         * modules/sys_time: Likewise.
85         * modules/sysexits: Likewise.
86         * modules/time: Likewise.
87         * modules/unistd: Likewise.
88         * modules/wchar: Likewise.
89         * modules/wctype: Likewise.
90         * modules/sys_stat: Change maintainer to "all".
91         * modules/unistd: Likewise.
92
93 2007-06-20  Karl Berry  <karl@gnu.org>
94
95         * config/srclist.txt: track www changes in license files.
96
97 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
98
99         * build-aux/bootstrap: Remove stray dot.
100         Make sure build_aux settings are honored when linking
101         gnulib_extra_files.
102
103 2007-06-19  Eric Blake  <ebb9@byu.net>
104
105         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
106         Allow compilation on cygwin.
107
108 2007-06-19  Jim Meyering  <jim@meyering.net>
109
110         xreadlink-with-size: Remove module.  No longer used.
111         Ex-callers now use xreadlink or mreadlink-with-size.
112         * modules/xreadlink-with-size: Remove module.
113         * lib/xreadlink-with-size.c: Remove file.
114         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
115         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
116         just before the function definition *is* accurate.
117
118         Eliminate one way canonicalize_filename_mode could exit.
119         * lib/canonicalize.c (canonicalize_filename_mode):
120         Use mreadlink_with_size, not xreadlink_with_size.
121
122 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
123
124         Detect porting problems to FreeBSD/arm, which has time_t wider than
125         long int.  Original problem reported for GNU diff by Xin Li in
126         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
127         * modules/getdate (Depends-on): Add intprops, verify.
128         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
129         is an integer type no wider than long int.
130
131 2007-06-18  Jim Meyering  <jim@meyering.net>
132
133         New module: mreadlink-with-size.
134         * MODULES.html.sh: Add mreadlink-with-size.
135         * modules/mreadlink-with-size: New module
136         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
137         not xreadlink-with-size.
138         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
139
140 2007-06-16  Bruno Haible  <bruno@clisp.org>
141
142         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
143         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
144         Reported by Gary V. Vaughan <gary@gnu.org>.
145
146 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
147
148         Revamp lchown so that it lives in unistd.h where it belongs.
149         * lib/lchown.h: Remove.
150         * lib/dirchownmod.c: Don't include lib/lchown.h.
151         * lib/fchownat.c: Likewise.
152         * lib/openat.c: Likewise.
153         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
154         does not follow symlinks.
155         (EOPNOTSUPP): Define if not defined.
156         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
157         is defined to 0.
158         (lchown): New decl.
159         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
160         Do not check for lchown decl.
161         Set REPLACE_LCHOWN.
162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
163         REPLACE_LCHOWN.
164         * modules/chown: Make it clear it follows symlinks.
165         * modules/lchown: Make it clear it doesn't follow symlinks.
166         (Files): Remove lib/lchown.h
167         (Depends-on): Add unistd.
168         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
169         (Include): Include <unistd.h>, not "lchown.h".
170         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
171         REPLACE_LCHOWN.
172
173 2007-06-15  Jim Meyering  <jim@meyering.net>
174
175         Change license (GPL to LGPL) of fsusage and dependents.
176         * modules/fsusage (License): Change to LGPL.
177         * modules/full-read (License): Likewise.
178         * modules/full-write (License): Likewise.
179         * modules/safe-read (License): Likewise.
180         * modules/safe-write (License): Likewise.
181
182 2007-06-14  Ben Pfaff  <blp@gnu.org>
183
184         Missing part of allocsa -> malloca transition.
185         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
186         gl_MALLOCA.
187
188 2007-06-12  Bruno Haible  <bruno@clisp.org>
189
190         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
191         to ia64, x86_64, i386.
192         Reported by Eric Blake.
193
194 2007-06-12  Bruno Haible  <bruno@clisp.org>
195
196         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
197         cross-compiling to x86_64.
198
199 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
200
201         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
202         glitch reported by Ralf Wildenhues in
203         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
204
205         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
206         Vin Shelton.
207
208 2007-06-11  Bruno Haible  <bruno@clisp.org>
209
210         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
211         replacement string.
212         Reported by Eric Blake.
213
214 2007-06-10  Bruno Haible  <bruno@clisp.org>
215
216         Prepare vasnprintf code for use with Unicode strings.
217         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
218         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
219         TYPE_U32_STRING.
220         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
221         a_u32_string variants.
222         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
223         * lib/printf-args.c: Don't include config.h and the specification
224         header if PRINTF_FETCHARGS is already defined.
225         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
226         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
227         TYPE_U16_STRING, TYPE_U32_STRING.
228         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
229         u16_directive, u16_directives, u32_directive, u32_directives): New
230         types.
231         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
232         New declarations.
233         * lib/printf-parse.c: Don't include config.h and the specification
234         header if PRINTF_PARSE is already defined. Eliminate the set of
235         parameters for WIDE_CHAR_VERSION; the user of this file must provide
236         them now. Include c-ctype.h.
237         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
238         directive and CHAR_T_ONLY_ASCII.
239         * lib/vasnprintf.c: Don't include config.h and the specification header
240         if VASNPRINTF is already defined.
241         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
242         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
243         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
244         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
245         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
246         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
247         code accordingly.
248         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
249         pad_ourselves also in this case, with the 'c' and 's' directives, and
250         with a different notion of "width".
251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
252
253 2007-06-10  Bruno Haible  <bruno@clisp.org>
254
255         * modules/unistr/u32-mbsnlen: New file.
256         * lib/unistr/u32-mbsnlen.c: New file.
257
258         * modules/unistr/u16-mbsnlen: New file.
259         * lib/unistr/u16-mbsnlen.c: New file.
260
261         * modules/unistr/u8-mbsnlen: New file.
262         * lib/unistr/u8-mbsnlen.c: New file.
263
264         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
265         declarations.
266
267 2007-06-10  Bruno Haible  <bruno@clisp.org>
268
269         * lib/string_.h (mbsnlen): New declaration.
270         * lib/mbsnlen.c: New file.
271         * m4/mbsnlen.m4: New file.
272         * modules/mbsnlen: New file.
273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
274         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
275         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
276
277 2007-06-10  Bruno Haible  <bruno@clisp.org>
278
279         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
280
281 2007-06-10  Bruno Haible  <bruno@clisp.org>
282
283         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
284         * lib/mbuiter.h: Likewise.
285
286 2007-06-10  Bruno Haible  <bruno@clisp.org>
287
288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
289         declaration.
290
291 2007-06-10  Karl Berry  <karl@gnu.org>
292
293         * config/srclist.txt: remove gettext entries, Bruno prefers
294         to update individually.
295
296 2007-06-10  Bruno Haible  <bruno@clisp.org>
297
298         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
299         'maxlen'. Ensure only length + width bytes are allocated, not
300         length + 1 + width.
301
302 2007-06-09  Bruno Haible  <bruno@clisp.org>
303
304         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
305         (CHAR_T): Remove macro.
306         (VASNPRINTF): Update.
307
308 2007-06-09  Bruno Haible  <bruno@clisp.org>
309
310         * MODULES.html.sh (Unicode string functions): Add the new modules.
311
312         * modules/uniconv/u32-conv-to-enc: New file.
313         * lib/uniconv/u32-conv-to-enc.c: New file.
314         * modules/uniconv/u32-conv-to-enc-tests: New file.
315         * tests/uniconv/test-u32-conv-to-enc.c: New file.
316
317         * modules/uniconv/u16-conv-to-enc: New file.
318         * lib/uniconv/u16-conv-to-enc.c: New file.
319         * lib/uniconv/u-conv-to-enc.h: New file.
320         * modules/uniconv/u16-conv-to-enc-tests: New file.
321         * tests/uniconv/test-u16-conv-to-enc.c: New file.
322
323         * modules/uniconv/u8-conv-to-enc: New file.
324         * lib/uniconv/u8-conv-to-enc.c: New file.
325         * modules/uniconv/u8-conv-to-enc-tests: New file.
326         * tests/uniconv/test-u8-conv-to-enc.c: New file.
327
328         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
329         u32_conv_to_encoding): New declarations.
330
331 2007-06-09  Bruno Haible  <bruno@clisp.org>
332
333         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
334
335 2007-06-09  Bruno Haible  <bruno@clisp.org>
336
337         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
338         * modules/malloca: Renamed from modules/allocsa, updated.
339         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
340         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
341         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
342         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
343         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
344         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
345         * modules/xmalloca: Renamed from modules/xallocsa, updated.
346         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
347         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
348         * modules/c-strcasestr (Depends-on): Update.
349         * lib/c-strcasestr.c: Update.
350         * modules/c-strstr (Depends-on): Update.
351         * lib/c-strstr.c: Update.
352         * modules/canonicalize-lgpl (Depends-on): Update.
353         * lib/canonicalize-lgpl.c: Update.
354         * modules/clean-temp (Depends-on): Update.
355         * lib/clean-temp.c: Update.
356         * modules/csharpcomp (Depends-on): Update.
357         * lib/csharpcomp.c: Update.
358         * modules/csharpexec (Depends-on): Update.
359         * lib/csharpexec.c: Update.
360         * modules/javacomp (Depends-on): Update.
361         * lib/javacomp.c: Update.
362         * modules/javaexec (Depends-on): Update.
363         * lib/javaexec.c: Update.
364         * modules/mbscasestr (Depends-on): Update.
365         * lib/mbscasestr.c: Update.
366         * modules/mbsstr (Depends-on): Update.
367         * lib/mbsstr.c: Update.
368         * modules/setenv (Depends-on): Update.
369         * lib/setenv.c: Update.
370         * modules/strcasestr (Depends-on): Update.
371         * lib/strcasestr.c: Update.
372         * modules/striconveha (Depends-on): Update.
373         * lib/striconveha.c: Update.
374         * modules/relocatable-prog-wrapper (Files): Update.
375         * lib/relocwrapper.c: Update.
376         * build-aux/install-reloc: Update.
377         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
378
379 2007-06-08  Bruno Haible  <bruno@clisp.org>
380
381         Port to uClibc.
382         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
383         * lib/fpurge.c (fpurge): Likewise.
384         * lib/freading.c (freading): Likewise.
385         * lib/fseeko.c (rpl_fseeko): Likewise.
386         * lib/fseterr.c (fseterr): Likewise.
387         * lib/fwriting.c (fwriting): Likewise.
388         * tests/test-fflush.c (main): Avoid a failure on uClibc.
389
390 2007-06-08  Bruno Haible  <bruno@clisp.org>
391
392         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
393         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
394         * modules/gettext (Files): Add m4/intlmacosx.m4.
395
396 2007-06-07  Bruno Haible  <bruno@clisp.org>
397
398         * modules/localename-tests: New file.
399         * tests/test-localename.c: New file.
400
401         New module 'localename'.
402         * lib/localename.h: New file.
403         * lib/localename.c: New file, from GNU gettext.
404         * m4/localename.m4: New file.
405         * modules/localename: New file.
406
407 2007-06-07  Bruno Haible  <bruno@clisp.org>
408
409         Work around the lack of <wchar.h> on some builds of uClibc.
410         * doc/headers/wchar.texi: Update.
411         * lib/wchar_.h: Include <wchar.h> only if it exists.
412         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
413         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
414         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
415         doesn't exist.
416         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
417         * modules/mbfile (Depends-on): Add wchar.
418         * modules/mbiter (Depends-on): Likewise.
419         * modules/mbuiter (Depends-on): Likewise.
420         Reported by Simon Josefsson.
421
422 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
423
424         Work around problem reported by Steven M. Schweda in
425         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
426         Tru64 5.1B with the Compaq compiler environment installed declares
427         an 'isblank' function but does not define it in the C library.
428         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
429         * lib/regex_internal.h (isblank): Likewise.
430         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
431         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
432
433 2007-06-05  Bruno Haible  <bruno@clisp.org>
434
435         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
436         ia64.
437         * modules/printf-safe: New file.
438         * modules/fprintf-posix (Depends-on): Add printf-safe.
439         * modules/printf-posix (Depends-on): Likewise.
440         * modules/snprintf-posix (Depends-on): Likewise.
441         * modules/sprintf-posix (Depends-on): Likewise.
442         * modules/vasnprintf-posix (Depends-on): Likewise.
443         * modules/vasprintf-posix (Depends-on): Likewise.
444         * modules/vfprintf-posix (Depends-on): Likewise.
445         * modules/vprintf-posix (Depends-on): Likewise.
446         * modules/vsnprintf-posix (Depends-on): Likewise.
447         * modules/vsprintf-posix (Depends-on): Likewise.
448         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
449         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
450         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
451         "no" on i386, x86_64, ia64.
452         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
453         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
454         on i386, x86_64, ia64.
455         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
456         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
457         on i386, x86_64, ia64.
458         * tests/test-vasnprintf-posix.c: Include float.h.
459         (LDBL80_WORDS): New macro.
460         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
461         on i386, x86_64, ia64.
462         * tests/test-vasprintf-posix.c: Include float.h.
463         (LDBL80_WORDS): New macro.
464         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
465         on i386, x86_64, ia64.
466         * tests/test-snprintf-posix.c: Include float.h.
467         * tests/test-sprintf-posix.c: Likewise.
468         * tests/test-vsnprintf-posix.c: Likewise.
469         * tests/test-vsprintf-posix.c: Likewise.
470
471 2007-06-05  Bruno Haible  <bruno@clisp.org>
472
473         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
474         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
475         non-IEEE numbers on i386, x86_64, ia64.
476         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
477         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
478         * tests/test-isnanl.h: Include float.h.
479         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
480
481 2007-06-05  Bruno Haible  <bruno@clisp.org>
482
483         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
484         also the %a / %A. Handle the %a / %A code before this extra handling.
485
486 2007-06-05  Bruno Haible  <bruno@clisp.org>
487
488         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
489         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
490
491 2007-06-05  Bruno Haible  <bruno@clisp.org>
492
493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
494         typo in variable name.
495
496 2007-06-05  Eric Blake  <ebb9@byu.net>
497
498         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
499         Reported by Simon Josefsson.
500
501 2007-06-04  Bruno Haible  <bruno@clisp.org>
502
503         Avoid test failures on some PowerPC platforms.
504         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
505         Define differently for PowerPC.
506         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
507         Reported by Gary V. Vaughan <gary@gnu.org>.
508
509 2007-06-02  Bruno Haible  <bruno@clisp.org>
510
511         Fix test-stdint failure on FreeBSD/ia64.
512         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
513         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
514         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
515         * doc/headers/stdint.texi: Update.
516
517 2007-06-01  Bruno Haible  <bruno@clisp.org>
518
519         * tests/test-binary-io.c (main): Pass a third argument to open().
520         Reported by Gary V. Vaughan <gary@gnu.org>.
521
522 2007-06-01  Bruno Haible  <bruno@clisp.org>
523
524         * doc/functions/frexpl.texi: Update for mingw.
525
526 2007-06-01  Bruno Haible  <bruno@clisp.org>
527
528         * tests/test-lseek.c (main): Disable test of errno for invalid third
529         argument.
530         * doc/functions/lseek.texi: Update.
531         Reported by Gary V. Vaughan <gary@gnu.org>.
532
533 2007-05-28  Bruno Haible  <bruno@clisp.org>
534
535         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
536
537 2007-05-31  Eric Blake  <ebb9@byu.net>
538
539         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
540         cross compiling.
541
542 2007-05-30  Eric Blake  <ebb9@byu.net>
543         and Bruno Haible  <bruno@clisp.org>
544
545         Work around mingw test failures exposed by m4-1.4.9b.
546         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
547         * tests/test-unistd.c: Disable uid_t and git_t tests for the
548         moment.
549
550 2007-05-30  Bruno Haible  <bruno@clisp.org>
551
552         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
553         assuming that they are closed. Needed on HP-UX 11.
554
555 2007-05-29  Bruno Haible  <bruno@clisp.org>
556
557         Fix a problem with #include_next.
558         * lib/dirent_.h: Split the double-inclusion guard.
559         * lib/fcntl_.h: Likewise.
560         * lib/float_.h: Likewise.
561         * lib/iconv_.h: Likewise.
562         * lib/inttypes_.h: Likewise.
563         * lib/locale_.h: Likewise.
564         * lib/math_.h: Likewise.
565         * lib/netinet_in_.h: Likewise.
566         * lib/search_.h: Likewise.
567         * lib/signal_.h: Likewise.
568         * lib/stdint_.h: Likewise.
569         * lib/stdio_.h: Likewise.
570         * lib/stdlib_.h: Likewise.
571         * lib/string_.h: Likewise.
572         * lib/sys_select_.h: Likewise.
573         * lib/sys_socket_.h: Likewise.
574         * lib/sys_stat_.h: Likewise.
575         * lib/sys_time_.h: Likewise.
576         * lib/sysexits_.h: Likewise.
577         * lib/time_.h: Likewise.
578         * lib/unistd_.h: Likewise.
579         * lib/wchar_.h: Likewise.
580         * lib/wctype_.h: Likewise.
581
582 2007-05-29  Bruno Haible  <bruno@clisp.org>
583
584         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
585         for the moment.
586
587 2007-05-29  Bruno Haible  <bruno@clisp.org>
588
589         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
590         invocation.
591         Reported by Eric Blake.
592
593 2007-05-29  Bruno Haible  <bruno@clisp.org>
594
595         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
596         compiling case.
597
598 2007-05-29  Eric Blake  <ebb9@byu.net>
599             Bruno Haible  <bruno@clisp.org>
600
601         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
602         cross compiles.
603
604 2007-05-28  Eric Blake  <ebb9@byu.net>
605
606         * modules/closein-tests (test_closein_LDADD): Support test on
607         cygwin with libtool.
608
609 2007-05-28  Bruno Haible  <bruno@clisp.org>
610
611         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
612         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
613         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
614         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
615         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
616         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
617         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
618         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
619         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
620
621 2007-05-28  Eric Blake  <ebb9@byu.net>
622
623         Unconditionally include <config.h> in unit tests.
624         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
625         * tests/test-allocsa.c, tests/test-arcfour.c,
626         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
627         tests/test-array_list.c, tests/test-array_oset.c,
628         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
629         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
630         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
631         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
632         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
633         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
634         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
635         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
636         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
637         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
638         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
639         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
640         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
641         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
642         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
643         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
644         test-md5.c, test-memmem.c, test-printf-posix.c,
645         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
646         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
647         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
648         test-strcasestr.c, test-striconv.c, test-striconveh.c,
649         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
650         test-vasnprintf-posix2.c, test-vasnprintf.c,
651         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
652         test-vfprintf-posix.c, test-vprintf-posix.c,
653         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
654         test-xvasprintf.c: Likewise.
655
656 2007-05-28  Bruno Haible  <bruno@clisp.org>
657
658         * gnulib-tool (func_import): Remember the --with-tests command-line
659         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
660         Reported by Eric Blake.
661
662 2007-05-28  Bruno Haible  <bruno@clisp.org>
663
664         * modules/ftell-tests: New file.
665         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
666         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
667
668         * lib/ftell.c: New file.
669         * modules/ftell: New file.
670         * m4/ftell.m4: New file.
671         * doc/functions/ftell.texi: Update.
672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
673         REPLACE_FTELL.
674         * lib/stdio_.h (rpl_ftell): New declaration.
675         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
676         REPLACE_FTELL.
677
678 2007-05-28  Eric Blake  <ebb9@byu.net>
679
680         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
681
682 2007-05-28  Bruno Haible  <bruno@clisp.org>
683
684         * modules/fseek-tests: New file.
685         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
686         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
687
688         * lib/fseek.c: New file.
689         * modules/fseek: New file.
690         * m4/fseek.m4: New file.
691         * doc/functions/fseek.texi: Update.
692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
693         REPLACE_FSEEK.
694         * lib/stdio_.h (rpl_fseek): New declaration.
695         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
696         REPLACE_FSEEK.
697
698 2007-05-28  Bruno Haible  <bruno@clisp.org>
699
700         * lib/stdio_.h (fflush): More comments.
701
702 2007-05-28  Bruno Haible  <bruno@clisp.org>
703
704         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
705         runtime test.
706
707 2007-05-28  Eric Blake  <ebb9@byu.net>
708
709         Improve lseek module.
710         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
711         * lib/unistd_.h (lseek): Scale back link warning message.
712         * tests/test-lseek.c: Beef up test.
713         * tests/test-lseek.sh: Exercise more facets of lseek.
714         Reported by Bruno Haible.
715
716 2007-05-28  Bruno Haible  <bruno@clisp.org>
717
718         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
719         to define.
720
721 2007-05-27  Bruno Haible  <bruno@clisp.org>
722
723         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
724
725 2007-05-27  Bruno Haible  <bruno@clisp.org>
726
727         * modules/openmp: New file.
728         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
729         Noah Misch.
730
731 2007-05-26  Bruno Haible  <bruno@clisp.org>
732
733         * modules/chdir-long (Depends-on): Add fchdir.
734         * modules/chdir-safer (Depends-on): Likewise.
735         * modules/fts (Depends-on): Likewise.
736         * modules/fts-lgpl (Depends-on): Likewise.
737         * modules/openat (Depends-on): Likewise.
738         * modules/savewd (Depends-on): Likewise.
739
740 2007-05-24  Eric Blake  <ebb9@byu.net>
741
742         Fix lseek on mingw.
743         * modules/lseek: New module.
744         * m4/lseek.m4: New file.
745         * lib/lseek.c: New file.
746         * modules/lseek-tests: New file.
747         * tests/test-lseek.c: New file.
748         * tests/test-lseek.sh: New file.
749         * MODULES.html.sh: Document lseek module.
750         * modules/fflush (Depends-on): Add lseek, fseeko.
751         * modules/fseeko (Depends-on): Likewise.
752         * modules/ftello (Depends-on): Likewise.
753         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
754         broken.
755         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
756         broken.
757         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
758         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
759         * lib/ftello.c (rpl_ftello): Likewise.
760         * tests/test-fseeko.c (main): Test this.
761         * tests/test-fseeko.sh: Likewise.
762         * tests/test-ftello.c (main): Likewise.
763         * tests/test-ftello.sh: Likewise.
764         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
765         implies replacing fseek.
766         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
767         HAVE_FTELLO.
768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
769         * modules/unistd (Makefile.am): Likewise.
770         * lib/unistd_.h (lseek): Declare a replacement.
771         * doc/functions/lseek.texi (lseek): Document this fix.
772         * doc/functions/fseek.texi (fseek): Likewise.
773         * doc/functions/ftell.texi (ftell): Likewise.
774
775 2007-05-24  Bruno Haible  <bruno@clisp.org>
776
777         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
778         in the printed representation of a NaN.
779         * tests/test-vasprintf-posix.c (test_function): Likewise.
780         * tests/test-snprintf-posix.h (test_function): Likewise.
781         * tests/test-sprintf-posix.h (test_function): Likewise.
782         Reported by Eric Blake.
783
784 2007-05-23  Eric Blake  <ebb9@byu.net>
785
786         Fix fseeko/ftello on cygwin 1.5.24.
787         * doc/functions/fseeko.texi (fseeko): Document the fix.
788         * doc/functions/ftello.texi (ftello): Document the fix.
789         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
790         * doc/functions/stdout.text (stdout): New file.
791         * doc/functions/stderr.text (stderr): New file.
792         * doc/gnulib.texi (Function Substitutes): Use new files.
793         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
794         prior to 1.7.0.
795         * tests/test-ftello.c (main): Likewise for ftello.
796         * tests/test-fseeko.sh: New file.
797         * tests/test-ftello.sh: New file.
798         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
799         with seekable stdin.
800         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
801         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
802         (gl_REPLACE_FSEEKO): New macro.
803         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
804         * modules/fseeko (Files): Distribute fseeko.c.
805         * modules/ftello (Files): Distribute ftello.c.
806         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
807         mode.
808         * lib/ftello.c (rpl_ftello): New file.
809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
810         fseeko, ftello.
811         (gl_STDIN_LARGE_OFFSET): New macro.
812         * modules/stdio (Makefile.am): Perform the replacement.
813         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
814
815 2007-05-23  Bruno Haible  <bruno@clisp.org>
816
817         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
818         GNULIB_POSIXCHECK is defined.
819
820 2007-05-21  Bruno Haible  <bruno@clisp.org>
821
822         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
823         Check also the output for NaN arguments. When cross-compiling, guess
824         no on IRIX.
825         * lib/vasnprintf.c: Update comments.
826         * tests/test-vasnprintf-posix.c (strisnan): New function.
827         (test_function): Use it.
828         * tests/test-vasprintf-posix.c (strisnan): New function.
829         (test_function): Use it.
830         * tests/test-snprintf-posix.h (strisnan): New function.
831         (test_function): Use it.
832         * tests/test-sprintf-posix.h (strisnan): New function.
833         (test_function): Use it.
834         Reported by Eric Blake.
835
836 2007-05-20  Bruno Haible  <bruno@clisp.org>
837
838         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
839         numbers that fails on BeOS.
840         * doc/functions/frexpl.texi: Update.
841
842 2007-05-20  Jim Meyering  <jim@meyering.net>
843
844         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
845         forced upon us by glibc-2.6.
846
847 2007-05-20  Bruno Haible  <bruno@clisp.org>
848
849         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
850         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
851         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
852         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
853         NEED_PRINTF_INFINITE.
854         (is_infinitel): New function.
855         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
857         gl_PREREQ_VASNPRINTF_INFINITE.
858         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
860         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
861         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
862         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
863         gl_PREREQ_VASNPRINTF_INFINITE.
864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
868         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
871         * doc/functions/fprintf.texi: Update.
872         * doc/functions/printf.texi: Update.
873         * doc/functions/snprintf.texi: Update.
874         * doc/functions/sprintf.texi: Update.
875         * doc/functions/vfprintf.texi: Update.
876         * doc/functions/vprintf.texi: Update.
877         * doc/functions/vsnprintf.texi: Update.
878         * doc/functions/vsprintf.texi: Update.
879
880 2007-05-20  Bruno Haible  <bruno@clisp.org>
881
882         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
883         was not found in libc.
884         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
885
886 2007-05-20  Bruno Haible  <bruno@clisp.org>
887
888         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
889         printed as "-nan" instead of "nan".
890         * tests/test-vasprintf-posix.c (test_function): Likewise.
891         * tests/test-snprintf-posix.h (test_function): Likewise.
892         * tests/test-sprintf-posix.h (test_function): Likewise.
893         Needed for HP-UX 11.
894
895 2007-05-20  Jim Meyering  <jim@meyering.net>
896
897         Fix buggy test for the fchownat-deref bug.
898         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
899         symlink required for the run-test.  Without it, this test would
900         always declare that fchownat doesn't work, and client code would
901         unnecessarily use the replacement function with fixed libc.
902         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
903         Reported by Greg Schafer.
904
905 2007-05-19  Bruno Haible  <bruno@clisp.org>
906
907         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
908         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
909         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
910         Needed for IRIX 6.5 and Solaris 2.5.1.
911
912 2007-05-19  Bruno Haible  <bruno@clisp.org>
913
914         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
915         (test_function): Skip tests involving -0.0 on platforms where
916         -0.0 = 0.0.
917         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
918         (test_function): Skip tests involving -0.0 on platforms where
919         -0.0 = 0.0.
920         * tests/test-snprintf-posix.h (have_minus_zero): New function.
921         (test_function): Skip tests involving -0.0 on platforms where
922         -0.0 = 0.0.
923         * tests/test-sprintf-posix.h (have_minus_zero): New function.
924         (test_function): Skip tests involving -0.0 on platforms where
925         -0.0 = 0.0.
926         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
927         tests.
928         * tests/test-printf-posix.h (test_function): Likewise.
929         * tests/test-printf-posix.output: Remove all -0.0 related results.
930         Needed for IRIX 6.5.
931
932 2007-05-19  Bruno Haible  <bruno@clisp.org>
933
934         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
935         printed as "nan0x7fffffff" instead of "nan".
936         * tests/test-vasprintf-posix.c (test_function): Likewise.
937         * tests/test-snprintf-posix.h (test_function): Likewise.
938         * tests/test-sprintf-posix.h (test_function): Likewise.
939         * tests/test-fprintf-posix.h (NaN): Remove macro.
940         (test_function): Remove all NaN related tests.
941         * tests/test-printf-posix.h (NaN): Remove macro.
942         (test_function): Remove all NaN related tests.
943         * tests/test-printf-posix.output: Remove all NaN related results.
944         Needed for IRIX 6.5.
945
946 2007-05-19  Bruno Haible  <bruno@clisp.org>
947
948         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
950
951 2007-05-19  Bruno Haible  <bruno@clisp.org>
952
953         * lib/float_.h: New file.
954         * m4/float_h.m4: New file.
955         * modules/float: New file.
956         * modules/isnanl (Dependencies): Add float.
957         * modules/isnanl-nolibm (Dependencies): Likewise.
958         * modules/mathl (Dependencies): Likewise.
959         * modules/printf-frexpl (Dependencies): Likewise.
960         * modules/signbit (Dependencies): Likewise.
961         * modules/vasnprintf (Dependencies): Likewise.
962         * doc/headers/float.texi: Update.
963
964 2007-05-19  Jim Meyering  <jim@meyering.net>
965
966         * lib/utimens.c (gl_futimens): Rename from futimens,
967         now that glibc-2.6 declares futimens.
968         * lib/utimens.h: Likewise.
969
970 2007-05-19  Bruno Haible  <bruno@clisp.org>
971
972         Avoid test failures on mingw.
973         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
974         * tests/test-printf-posix.sh: Likewise.
975         * tests/test-vfprintf-posix.sh: Likewise.
976         * tests/test-vprintf-posix.sh: Likewise.
977
978 2007-05-19  Bruno Haible  <bruno@clisp.org>
979
980         Fix *printf result for NaN, Inf, -0.0 on mingw.
981         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
982         * lib/vasnprintf.c: Include math.h and isnan.h.
983         (is_infinite_or_zero): New function.
984         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
985         values in the %f, %F, %e, %E, %g, %G directives.
986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
987         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
988         gl_PRINTF_INFINITE and test its result. Invoke
989         gl_PREREQ_VASNPRINTF_INFINITE.
990         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
991         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
994         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
996         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
997         * doc/functions/fprintf.texi: Update.
998         * doc/functions/printf.texi: Update.
999         * doc/functions/snprintf.texi: Update.
1000         * doc/functions/sprintf.texi: Update.
1001         * doc/functions/vfprintf.texi: Update.
1002         * doc/functions/vprintf.texi: Update.
1003         * doc/functions/vsnprintf.texi: Update.
1004         * doc/functions/vsprintf.texi: Update.
1005
1006 2007-05-19  Bruno Haible  <bruno@clisp.org>
1007
1008         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
1009         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
1010         Instead of multiplying with 10^k, set extra_zeroes to k.
1011         (scale10_round_long_double): Remove function.
1012
1013 2007-05-18  Bruno Haible  <bruno@clisp.org>
1014
1015         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
1016         introduced on 2007-05-06.
1017
1018 2007-05-18  Bruno Haible  <bruno@clisp.org>
1019
1020         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
1021         %g directives.
1022         * tests/test-vasprintf-posix.c (test_function): Likewise.
1023         * tests/test-snprintf-posix.h (test_function): Likewise.
1024         * tests/test-sprintf-posix.h (test_function): Likewise.
1025
1026 2007-05-18  Bruno Haible  <bruno@clisp.org>
1027
1028         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
1029         (strmatch): New function.
1030         (test_function): Test the %f directive on numbers of various exponents.
1031         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
1032         (strmatch): New function.
1033         (test_function): Test the %f directive on numbers of various exponents.
1034         * tests/test-snprintf-posix.h (strmatch): New function.
1035         (test_function): Test the %f directive on numbers of various exponents.
1036         * tests/test-sprintf-posix.h (strmatch): New function.
1037         (test_function): Test the %f directive on numbers of various exponents.
1038         * tests/test-snprintf-posix.c (SIZEOF): New macro.
1039         * tests/test-sprintf-posix.c (SIZEOF): New macro.
1040         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
1041         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
1042
1043 2007-05-18  Bruno Haible  <bruno@clisp.org>
1044
1045         Add support for 'long double' number output.
1046         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
1047         * lib/vasnprintf.c: Include math.h and float+.h.
1048         (mp_limb_t): New type.
1049         (GMP_LIMB_BITS): New macro.
1050         (mp_twolimb_t): New type.
1051         (GMP_TWOLIMB_BITS): New macro.
1052         (mpn_t): New type.
1053         (multiply, divide, convert_to_decimal, decode_long_double,
1054         scale10_round_long_double, scale10_round_decimal_long_double,
1055         floorlog10l): New functions.
1056         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
1057         for the %f, %F, %e, %E, %g, %G directives.
1058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
1059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1060         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
1061         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
1062         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1069         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
1070         * modules/snprintf-posix (Depends-on): Likewise.
1071         * modules/sprintf-posix (Depends-on): Likewise.
1072         * modules/vasnprintf-posix (Depends-on): Likewise.
1073         * modules/vasprintf-posix (Depends-on): Likewise.
1074         * modules/vfprintf-posix (Depends-on): Likewise.
1075         * modules/vsnprintf-posix (Depends-on): Likewise.
1076         * modules/vsprintf-posix (Depends-on): Likewise.
1077         * modules/vasnprintf (Files): Add lib/float+.h.
1078         * doc/functions/fprintf.texi: Update.
1079         * doc/functions/printf.texi: Update.
1080         * doc/functions/snprintf.texi: Update.
1081         * doc/functions/sprintf.texi: Update.
1082         * doc/functions/vfprintf.texi: Update.
1083         * doc/functions/vprintf.texi: Update.
1084         * doc/functions/vsnprintf.texi: Update.
1085         * doc/functions/vsprintf.texi: Update.
1086
1087 2007-05-18  Bruno Haible  <bruno@clisp.org>
1088
1089         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
1090
1091 2007-05-18  Bruno Haible  <bruno@clisp.org>
1092
1093         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
1094         for printing 64-bit integers. Needed for mingw.
1095
1096 2007-05-18  Bruno Haible  <bruno@clisp.org>
1097
1098         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
1099         gl_FUNC_FREXPL_WORKS.
1100         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
1101
1102 2007-05-18  Bruno Haible  <bruno@clisp.org>
1103
1104         * modules/frexpl-nolibm-tests: New file.
1105
1106         * modules/frexpl-nolibm: New file.
1107         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
1108
1109 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1110
1111         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
1112         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
1113         GCC 4.2, which otherwise issues a lot of warnings.
1114         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
1115         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
1116         Likewise.
1117         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
1118         * modules/iconv_open (iconv.h): Likewise.
1119         * modules/locale (locale.h): Likewise.
1120         * modules/netinet_in (netinet/in.h): Likewise.
1121         * modules/sys_select (sys_select.h): Likewise.
1122         * modules/sys_socket (sys/socket.h): Likewise.
1123         * modules/sys_stat (sys/stat.h): Likewise.
1124         * modules/sysexits (sysexits.h): Likewise.
1125         * modules/unistd (unistd.h): Likewise.
1126
1127 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1128
1129         * modules/closein-tests (Makefile.am): Distribute
1130         `test-closein.sh'.
1131
1132 2007-05-17  Bruno Haible  <bruno@clisp.org>
1133
1134         * tests/test-printf-posix.output: Renamed from
1135         tests/test-fprintf-posix.out.
1136         * modules/fprintf-posix-tests: Update.
1137         * modules/printf-posix-tests: Update.
1138         * modules/vfprintf-posix-tests: Update.
1139         * modules/vprintf-posix-tests: Update.
1140         * tests/test-fprintf-posix.sh: Update.
1141         * tests/test-printf-posix.sh: Update.
1142         * tests/test-vfprintf-posix.sh: Update.
1143         * tests/test-vprintf-posix.sh: Update.
1144         Reported by Ralf Wildenhues.
1145
1146 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1147
1148         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
1149         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
1150         GCC 4.2, which otherwise issues a lot of warnings.
1151         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
1152         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
1153         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
1154         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
1155         it should no longer be needed.
1156         * lib/string_.h: Likewise.
1157         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
1158         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
1159         * modules/inttypes (inttypes.h): Likewise.
1160         * modules/math (math.h): Likewise.
1161         * modules/search (search.h): Likewise.
1162         * modules/signal (signal.h): Likewise.
1163         * modules/stdint (stdint.h): Likewise.
1164         * modules/stdio (stdio.h): Likewise.
1165         * modules/stdlib (stdlib.h): Likewise.
1166         * modules/string (string.h): Likewise.
1167         * modules/sys_time (sys/time.h): Likewise.
1168         * modules/time (time.h): Likewise.
1169         * modules/wchar (wchar.h): Likewise.
1170         * modules/wctype (wtype.h): Likewise.
1171
1172 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1173
1174         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
1175
1176 2007-05-13  Bruno Haible  <bruno@clisp.org>
1177
1178         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
1179         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1180         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
1181         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1182         (gl_PREREQ_STRTOK_R): Don't require it here.
1183
1184 2007-05-13  Bruno Haible  <bruno@clisp.org>
1185
1186         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
1187         when used in C++ mode.
1188
1189 2007-05-12  Bruno Haible  <bruno@clisp.org>
1190
1191         * lib/linebuffer.h: Tweak doc.
1192         * lib/linebuffer.c: Likewise.
1193
1194 2007-05-12  James Youngman  <jay@gnu.org>
1195
1196         * lib/linebuffer.c (readlinebuffer_delim): New function,
1197         like readlinebuffer, but use a caller-specified delimiter.
1198         (readlinebuffer): Just call readlinebuffer_delim with '\n'
1199         as the delimiter.
1200         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
1201
1202 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1203
1204         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
1205         * modules/openat (Files): Remove openat-die.c.
1206         (Depends-on): Add openat-die.
1207         * modules/openat-die: New module.
1208
1209 2007-05-06  Bruno Haible  <bruno@clisp.org>
1210
1211         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
1212         Update with info about Cygwin.
1213         * doc/functions/fprintf.texi: Update.
1214         * doc/functions/printf.texi: Update.
1215         * doc/functions/snprintf.texi: Update.
1216         * doc/functions/sprintf.texi: Update.
1217         * doc/functions/vfprintf.texi: Update.
1218         * doc/functions/vprintf.texi: Update.
1219         * doc/functions/vsnprintf.texi: Update.
1220         * doc/functions/vsprintf.texi: Update.
1221         Reported by Eric Blake.
1222
1223 2007-05-06  Bruno Haible  <bruno@clisp.org>
1224
1225         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
1226         padding ourselves for the floating-point directives.
1227         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
1228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
1229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1230         gl_PRINTF_FLAG_ZERO and test its result. Invoke
1231         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
1232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1239         * tests/test-snprintf-posix.h (test_function): Also check the width
1240         and some flags in the %f directive.
1241         * tests/test-sprintf-posix.h (test_function): Likewise.
1242         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1243         * tests/test-vasprintf-posix.c (test_function): Likewise.
1244         * doc/functions/fprintf.texi: Update.
1245         * doc/functions/printf.texi: Update.
1246         * doc/functions/snprintf.texi: Update.
1247         * doc/functions/sprintf.texi: Update.
1248         * doc/functions/vfprintf.texi: Update.
1249         * doc/functions/vprintf.texi: Update.
1250         * doc/functions/vsnprintf.texi: Update.
1251         * doc/functions/vsprintf.texi: Update.
1252
1253 2007-05-06  Bruno Haible  <bruno@clisp.org>
1254
1255         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
1256         pass the ' flag character to sprintf or snprintf.
1257         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
1258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
1259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1260         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
1261         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
1262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1263         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1269         * tests/test-snprintf-posix.h (test_function): Also check the grouping
1270         flag.
1271         * tests/test-sprintf-posix.h (test_function): Likewise.
1272         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1273         * tests/test-vasprintf-posix.c (test_function): Likewise.
1274         * doc/functions/fprintf.texi: Update.
1275         * doc/functions/printf.texi: Update.
1276         * doc/functions/snprintf.texi: Update.
1277         * doc/functions/sprintf.texi: Update.
1278         * doc/functions/vfprintf.texi: Update.
1279         * doc/functions/vprintf.texi: Update.
1280         * doc/functions/vsnprintf.texi: Update.
1281         * doc/functions/vsprintf.texi: Update.
1282
1283 2007-05-01  Bruno Haible  <bruno@clisp.org>
1284
1285         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
1286
1287 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1288
1289         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
1290         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
1291
1292 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1293
1294         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
1295         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
1296         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
1297
1298 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
1299
1300         * lib/argp-help.c (struct hol_entry): New member `ord'.
1301         (HOL_ENTRY_PTRCMP): Use ord for comparison
1302         (hol_sort): Initialize ord.
1303
1304 2007-05-01  Bruno Haible  <bruno@clisp.org>
1305
1306         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
1307         Reported by Eric Blake.
1308         * doc/gnulib.texi (Function Substitutes): Update.
1309
1310 2007-05-01  Bruno Haible  <bruno@clisp.org>
1311
1312         * doc/functions.texi: Remove file, now redundant through
1313         doc/functions/*.texi.
1314
1315 2007-05-01  Bruno Haible  <bruno@clisp.org>
1316
1317         * modules/argp (Depends-on): Add sleep.
1318
1319 2007-05-01  Bruno Haible  <bruno@clisp.org>
1320
1321         * modules/sleep-tests: New file.
1322         * tests/test-sleep.c: New file.
1323
1324         * modules/sleep: New file.
1325         * lib/sleep.c: New file.
1326         * m4/sleep.m4: New file.
1327         * lib/unistd_.h (sleep): New declaration.
1328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
1329         HAVE_SLEEP.
1330         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
1331         * doc/functions/sleep.texi: Document the sleep module.
1332
1333 2007-05-01  Bruno Haible  <bruno@clisp.org>
1334
1335         * lib/sigprocmask.h: Remove file.
1336         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
1337         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
1338         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
1339         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
1340         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1341         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
1342         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
1343         HAVE_SIGSET_T as a shell variable.
1344         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
1345         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
1346         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
1347         (Depends-on): Add signal. Remove verify.
1348         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
1349         (Include): Mention <signal.h> instead of sigprocmask.h.
1350         * NEWS: Mention the change.
1351         * lib/fatal-signal.c: Don't include sigprocmask.h.
1352
1353 2007-05-01  Bruno Haible  <bruno@clisp.org>
1354
1355         * modules/signal: New file.
1356         * lib/signal_.h: New file.
1357         * m4/signal_h.m4: New file.
1358
1359 2007-05-01  Bruno Haible  <bruno@clisp.org>
1360
1361         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
1362         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
1363         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
1364         HAVE_WCTYPE_CTMP_BUG into wctype.h.
1365
1366 2007-05-01  Bruno Haible  <bruno@clisp.org>
1367
1368         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
1369         configure time.
1370         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
1371         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
1372         * modules/sys_stat (Makefile.am): Substitute their values into
1373         sys/stat.h.
1374
1375 2007-05-01  Bruno Haible  <bruno@clisp.org>
1376
1377         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
1378         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
1379         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
1380
1381 2007-05-01  Bruno Haible  <bruno@clisp.org>
1382
1383         * doc/header/assert.texi: Undo last change: don't mention the gnulib
1384         'assert' module here.
1385
1386 2007-05-01  Bruno Haible  <bruno@clisp.org>
1387
1388         * doc/functions/*.texi: New files.
1389         * doc/functions/google-ranking.txt: New file.
1390         * doc/gnulib.texi (Function Substitutes): New chapter.
1391         (ctime, inet_ntoa): Remove sections.
1392         * doc/ctime.texi: Remove file.
1393         * doc/inet_ntoa.texi: Remove file.
1394         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
1395         dependencies.
1396         (%.info): New rule, specifying a --reference-limit.
1397
1398 2007-05-01  Bruno Haible  <bruno@clisp.org>
1399
1400         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
1401
1402 2007-05-01  Bruno Haible  <bruno@clisp.org>
1403
1404         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
1405         the portability of 'mkdir' to mingw systems.
1406
1407 2007-05-01  Bruno Haible  <bruno@clisp.org>
1408
1409         * doc/headers/google-ranking.txt: New file.
1410
1411 2007-04-30  Eric Blake  <ebb9@byu.net>
1412
1413         Prefer fseeko to fseek.
1414         * modules/getpass (Depends-on): Add fseeko.
1415         * lib/getpass.c (getpass): Use fseeko, not fseek.
1416
1417 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
1418
1419         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
1420         assumes the sorting is stable, while most qsort implementations
1421         are not.  Use argument addresses to ensure they never compare as
1422         equal.
1423
1424         * tests/test-argp-2.sh (usage-indent test): Fix output
1425         (func_compare): Restore diff options
1426         * tests/test-argp.c: Restore #include "progname.h"
1427
1428 2007-04-29  Bruno Haible  <bruno@clisp.org>
1429
1430         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
1431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1432         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
1433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1434         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
1435         (configure.ac): Define CHECK_SNPRINTF_POSIX.
1436         (TESTS, check_PROGRAMS): Add test-snprintf.
1437         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
1438         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
1439         (TESTS, check_PROGRAMS): Add test-vsnprintf.
1440         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
1441         assertions that fail on HP-UX, OSF/1, or IRIX.
1442         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
1443
1444 2007-04-29  Bruno Haible  <bruno@clisp.org>
1445
1446         * MODULES.html.sh (posix_functions): Remove 'contents'.
1447
1448 2007-04-29  Karl Berry  <karl@gnu.org>
1449
1450         * config/srclist.txt (gendocs_template_min): new entry.
1451
1452 2007-04-29  Bruno Haible  <bruno@clisp.org>
1453
1454         Work around fpurge bug on BSD systems.
1455         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
1456         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
1457         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
1458         fpurge to rpl_fpurge if the system already has this function.
1459         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
1460         the case where the system already has this function. Correct invariants
1461         on BSD systems.
1462         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
1463         BSD systems.
1464
1465 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
1466
1467         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
1468         proposed by Sven Verdoolaege.
1469
1470         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
1471         options.
1472         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
1473         (usage and help tests): Update
1474
1475 2007-04-29  Bruno Haible  <bruno@clisp.org>
1476
1477         * tests/test-fflush.c (main): Use a file of size 17, not 10.
1478         Print more information in case of failure. Disable a test on BeOS.
1479
1480 2007-04-29  Bruno Haible  <bruno@clisp.org>
1481
1482         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
1483         This helps debugging on systems on which no gdb is available.
1484
1485 2007-04-29  Bruno Haible  <bruno@clisp.org>
1486
1487         * lib/freading.h: Improve comments.
1488         * lib/fwriting.h: Likewise.
1489         * tests/test-freading.c (main): Don't check freading immediately after
1490         repositioning. Needed for glibc.
1491
1492 2007-04-29  Bruno Haible  <bruno@clisp.org>
1493
1494         * lib/freading.c (freading): Trivial simplification.
1495
1496 2007-04-28  Bruno Haible  <bruno@clisp.org>
1497
1498         * tests/test-fwriting.c (main): Also test the interaction between
1499         fflush and fwriting.
1500         * modules/fwriting-tests (Depends-on): Add fflush.
1501
1502         * tests/test-freading.c (main): Also test the interaction between
1503         fflush and freading.
1504         * modules/freading-tests (Depends-on): Add fflush.
1505
1506 2007-04-28  Bruno Haible  <bruno@clisp.org>
1507
1508         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
1509         fseeko and ftello.
1510         Suggested by Eric Blake.
1511
1512 2007-04-28  Jim Meyering  <jim@meyering.net>
1513
1514         Avoid false-negative in gl_STDINT_H's C99 conformance test.
1515         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
1516         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
1517
1518 2007-04-27  Eric Blake  <ebb9@byu.net>
1519
1520         * doc/headers/assert.texi (assert.h): Document assert module use.
1521
1522 2007-04-27  Bruno Haible  <bruno@clisp.org>
1523
1524         * doc/headers/*.texi: New files.
1525         * doc/gnulib.texi (Header File Substitutes): New chapter.
1526         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
1527         dependencies.
1528         (standards.info ,standards.html, standards.dvi): Update dependencies.
1529         (mostlyclean, clean): New targets.
1530
1531 2007-04-27  Bruno Haible  <bruno@clisp.org>
1532
1533         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
1534         * modules/sysexits (Files, Makefile.am): Update.
1535
1536         * lib/sys_socket_.h: Renamed from lib/socket_.h.
1537         * modules/sys_socket (Files, Makefile.am): Update.
1538
1539         * lib/sys_stat_.h: Renamed from lib/stat_.h.
1540         * modules/sys_stat (Files, Makefile.am): Update.
1541
1542 2007-04-27  Eric Blake  <ebb9@byu.net>
1543
1544         * lib/freading.h: Improve comments.
1545         * lib/fwriting.h: Likewise.
1546         * lib/fflush.c: Likewise.
1547
1548         Fix closein for mingw.
1549         * modules/closein-tests: Add tests for closein.
1550         * tests/test-closein.c: New file.
1551         * tests/test-closein.sh: Likewise.
1552         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
1553         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
1554
1555 2007-04-27  Bruno Haible  <bruno@clisp.org>
1556
1557         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
1558         version is < 6.
1559         * lib/math_.h [__DECC]: Likewise.
1560         * lib/stdio_.h [__DECC]: Likewise.
1561         * lib/stdlib_.h [__DECC]: Likewise.
1562         * lib/string_.h [__DECC]: Likewise.
1563         * lib/time_.h [__DECC]: Likewise.
1564         * lib/wchar_.h [__DECC]: Likewise.
1565         * lib/wctype_.h [__DECC]: Likewise.
1566
1567 2007-04-27  Bruno Haible  <bruno@clisp.org>
1568
1569         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
1570
1571 2007-04-27  Bruno Haible  <bruno@clisp.org>
1572
1573         * lib/fflush.c: Add comments.
1574         * modules/fpurge-tests (Depends-on): Add fflush.
1575         * modules/freadable-tests (Depends-on): Likewise.
1576         * modules/fwritable-tests (Depends-on): Likewise.
1577
1578 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
1579
1580         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
1581         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
1582         Report by Bruno Haible <bruno@clisp.org>.
1583
1584 2007-04-26  Eric Blake  <ebb9@byu.net>
1585
1586         Fix fflush on mingw.
1587         * modules/fflush (Depends-on): Add freading.
1588         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
1589         but unread data.
1590
1591 2007-04-26  Eric Blake  <ebb9@byu.net>
1592         and Bruno Haible  <bruno@clisp.org>
1593
1594         Implement freading and fwriting.
1595         * lib/freading.c: New file.
1596         * lib/freading.h: Likewise.
1597         * m4/freading.m4: Likewise.
1598         * modules/freading: Likewise.
1599         * modules/freading-tests: Likewise.
1600         * tests/test-freading.c: Likewise.
1601         * lib/fwriting.c: New file.
1602         * lib/fwriting.h: Likewise.
1603         * m4/fwriting.m4: Likewise.
1604         * modules/fwriting: Likewise.
1605         * modules/fwriting-tests: Likewise.
1606         * tests/test-fwriting.c: Likewise.
1607         * MODULES.html.sh (File stream based Input/Output): Mention them.
1608
1609 2007-04-26  Bruno Haible  <bruno@clisp.org>
1610
1611         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
1612         'long' when we assume it.
1613         Suggested by Eric Blake.
1614
1615 2007-04-26  Bruno Haible  <bruno@clisp.org>
1616
1617         Ensure fseeko, ftello are declared on glibc systems.
1618         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
1619         * modules/fseeko (configure.ac-early): Likewise.
1620         * modules/ftello (configure.ac-early): Likewise.
1621         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
1622         AC_FUNC_FSEEKO for this.
1623         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
1624         (gl_CHECK_FSEEKO): Remove macro.
1625
1626 2007-04-26  Bruno Haible  <bruno@clisp.org>
1627
1628         * tests/test-fflush.c (main): Also check the ftell result after
1629         fflush and fseek/fseeko.
1630         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
1631         file descriptor position cache in the stream.
1632         * lib/fseeko.c (rpl_fseeko): Likewise.
1633
1634 2007-04-26  Bruno Haible  <bruno@clisp.org>
1635
1636         * modules/fflush-tests (Depends-on): Add fseeko.
1637
1638 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
1639             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1640
1641         * lib/argz_.h: ensure error_t definition is obtained in same
1642         mechanism system argz.h would have.
1643         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
1644         argz facilities are known bad.  Err on the side of caution if
1645         cross-compiling.
1646
1647 2007-04-25  Eric Blake  <ebb9@byu.net>
1648
1649         * lib/fpurge.c (includes): Use stdlib.h for free.
1650         * tests/test-fflush.c (main): Also test fflush-fseeko.
1651
1652 2007-04-25  Bruno Haible  <bruno@clisp.org>
1653
1654         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
1655         * lib/fseeko.c: New file.
1656         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
1657         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
1658         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
1659         gl_FUNC_FSEEKO.
1660         (gl_FUNC_FSEEKO): Invoke it.
1661         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
1662         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
1663         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
1664
1665 2007-04-25  Bruno Haible  <bruno@clisp.org>
1666
1667         * modules/fflush (Depends-on): Add ftello.
1668
1669 2007-04-25  Bruno Haible  <bruno@clisp.org>
1670
1671         * modules/ftello-tests: New file.
1672         * tests/test-ftello.c: New file.
1673
1674         * modules/ftello: New file.
1675         * m4/ftello.m4: New file.
1676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
1677         HAVE_FTELLO.
1678         * lib/stdio_.h (ftello): New declaration.
1679         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
1680         HAVE_FTELLO.
1681
1682 2007-04-25  Bruno Haible  <bruno@clisp.org>
1683
1684         * modules/fseeko-tests: New file.
1685         * tests/test-fseeko.c: New file.
1686
1687         * modules/fseeko: New file.
1688         * m4/fseeko.m4: New file.
1689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
1690         HAVE_FSEEKO.
1691         * lib/stdio_.h (fseeko): New declaration.
1692         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
1693         HAVE_FSEEKO.
1694
1695 2007-04-25  Bruno Haible  <bruno@clisp.org>
1696
1697         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
1698
1699 2007-04-25  Bruno Haible  <bruno@clisp.org>
1700
1701         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
1702         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
1703         * tests/test-unistd.c: Likewise.
1704         * tests/test-fcntl.c: Likewise.
1705
1706 2007-04-23  Eric Blake  <ebb9@byu.net>
1707
1708         * lib/fflush.c: Fix missing include.
1709         Reported by Bruno Haible.
1710
1711 2007-04-23  Bruno Haible  <bruno@clisp.org>
1712
1713         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
1714         Reported by Eric Blake.
1715
1716 2007-04-23  Bruno Haible  <bruno@clisp.org>
1717
1718         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
1719
1720 2007-04-23  Bruno Haible  <bruno@clisp.org>
1721
1722         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
1723
1724 2007-04-23  Bruno Haible  <bruno@clisp.org>
1725
1726         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
1727         Needed on HP-UX 11.
1728
1729 2007-04-16  Eric Blake  <ebb9@byu.net>
1730
1731         Make fflush rely on fpurge.
1732         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
1733         open coding all variants.
1734         * modules/fflush (Depends-on): Add fpurge and unistd.
1735         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
1736         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
1737
1738         Fix --with-tests compilation on cygwin.
1739         * modules/argmatch-tests (Makefile.am): List gnulib library first
1740         in LDADD.
1741         * modules/argp-tests (Makefile.am): Likewise.
1742         * modules/array-list-tests (Makefile.am): Likewise.
1743         * modules/array-oset-tests (Makefile.am): Likewise.
1744         * modules/avltree-list-tests (Makefile.am): Likewise.
1745         * modules/avltree-oset-tests (Makefile.am): Likewise.
1746         * modules/avltreehash-list-tests (Makefile.am): Likewise.
1747         * modules/carray-list-tests (Makefile.am): Likewise.
1748         * modules/dirname-tests (Makefile.am): Likewise.
1749         * modules/frexp-tests (Makefile.am): Likewise.
1750         * modules/isnanl-tests (Makefile.am): Likewise.
1751         * modules/linked-list-tests (Makefile.am): Likewise.
1752         * modules/linkedhash-list-tests (Makefile.am): Likewise.
1753         * modules/lock-tests (Makefile.am): Likewise.
1754         * modules/rbtree-list-tests (Makefile.am): Likewise.
1755         * modules/rbtree-oset-tests (Makefile.am): Likewise.
1756         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
1757         * modules/tls-tests (Makefile.am): Likewise.
1758         * modules/tsearch-tests (Makefile.am): Likewise.
1759         * modules/xvasprintf-tests (Makefile.am): Likewise.
1760
1761         Fix fpurge for cygwin.
1762         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
1763         value.
1764         * modules/fpurge-tests (Depends-on): Clean up trash.
1765
1766 2007-04-16  Simon Josefsson  <simon@josefsson.org>
1767
1768         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
1769
1770         * m4/autobuild.m4: Re-indent.
1771
1772 2007-04-13  Bruno Haible  <bruno@clisp.org>
1773
1774         * modules/fpurge-tests: New file.
1775         * tests/test-fpurge.c: New file.
1776
1777         * modules/fpurge: New file.
1778         * lib/fpurge.h: New file.
1779         * lib/fpurge.c: New file.
1780         * m4/fpurge.m4: New file.
1781
1782 2007-04-13  Bruno Haible  <bruno@clisp.org>
1783
1784         * modules/fbufmode-tests: New file.
1785         * tests/test-fbufmode.c: New file.
1786
1787         * modules/fbufmode: New file.
1788         * lib/fbufmode.h: New file.
1789         * lib/fbufmode.c: New file.
1790         * m4/fbufmode.m4: New file.
1791
1792 2007-04-13  Bruno Haible  <bruno@clisp.org>
1793
1794         * modules/fwritable-tests: New file.
1795         * tests/test-fwritable.c: New file.
1796
1797         * modules/fwritable: New file.
1798         * lib/fwritable.h: New file.
1799         * lib/fwritable.c: New file.
1800         * m4/fwritable.m4: New file.
1801
1802 2007-04-13  Bruno Haible  <bruno@clisp.org>
1803
1804         * modules/freadable-tests: New file.
1805         * tests/test-freadable.c: New file.
1806
1807         * modules/freadable: New file.
1808         * lib/freadable.h: New file.
1809         * lib/freadable.c: New file.
1810         * m4/freadable.m4: New file.
1811
1812 2007-04-13  Bruno Haible  <bruno@clisp.org>
1813
1814         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
1815         MOSTLYCLEANFILES.
1816
1817 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
1818
1819         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
1820         gzip bootstrap.conf to avoid dragging in i18n machinery.
1821         (gnulib_tool_option): Use it.
1822
1823 2007-04-13  Bruno Haible  <bruno@clisp.org>
1824
1825         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
1826         %F directives.
1827         * tests/test-vasprintf-posix.c (test_function): Likewise.
1828         * tests/test-snprintf-posix.h (test_function): Likewise.
1829         * tests/test-sprintf-posix.h (test_function): Likewise.
1830         * tests/test-fprintf-posix.h (test_function): Likewise.
1831         * tests/test-printf-posix.h (test_function): Likewise.
1832         * tests/test-fprintf-posix.out: Likewise.
1833
1834 2007-04-13  Bruno Haible  <bruno@clisp.org>
1835
1836         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
1837         * modules/tls-tests (configure.ac): Likewise.
1838         Reported by Arto C. Nirkko <anirkko@insel.ch>.
1839
1840 2007-04-13  Bruno Haible  <bruno@clisp.org>
1841
1842         * lib/tls.c (glthread_tls_get): Fix return type.
1843         Patch by Arto C. Nirkko <anirkko@insel.ch>.
1844
1845 2007-04-12  Eric Blake  <ebb9@byu.net>
1846
1847         * modules/gettime (Depends-on): Remove gettime.
1848         Reported by Dmitry V. Levin.
1849
1850 2007-04-12  Bruno Haible  <bruno@clisp.org>
1851
1852         * modules/fflush (Include): Mention <stdio.h>.
1853         * modules/strtoimax (Include): Mention <inttypes.h>.
1854         * modules/strtoumax (Include): Likewise.
1855
1856 2007-04-12  Eric Blake  <ebb9@byu.net>
1857
1858         * .cvsignore: New file.
1859         * .gitignore: Likewise.
1860
1861 2007-04-12  Bruno Haible  <bruno@clisp.org>
1862
1863         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
1864         not before, since $(LDADD) often contains libgnu.a.
1865         * modules/striconv-tests (test_striconv_LDADD): Likewise.
1866         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
1867         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
1868         Needed on Cygwin.
1869
1870 2007-04-12  Eric Blake  <ebb9@byu.net>
1871
1872         Work around glibc's failure to flush stdin on fclose.
1873         * lib/closein.c (close_stdin): Flush stdin before closing.
1874
1875         Work around glibc's failure to reset seekable stdin on exit.
1876         * modules/closein: New module.
1877         * lib/closein.c: New file.
1878         * lib/closein.h: Likewise.
1879         * m4/closein.m4: Likewise.
1880         * MODULES.html.sh (File stream based Input/Output): Document it.
1881
1882 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1883
1884         * gnulib-tool: Rename generated 'autobuild' script to
1885         'do-autobuild' in --create-megatestdir output.
1886
1887         * doc/gnulib.texi (Build robot for gnulib): Fix.
1888
1889 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1890
1891         * modules/sysexits (Depends-on): Add absolute-header.
1892
1893 2007-04-12  Eric Blake  <ebb9@byu.net>
1894
1895         No need to preserve errno on success.
1896         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
1897         Reported by Bruno Haible.
1898
1899 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1900
1901         * MODULES.html.sh (Support for maintaining and releasing
1902         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
1903
1904 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1905
1906         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
1907
1908 2007-04-12  Simon Josefsson  <simon@josefsson.org>
1909
1910         * modules/autobuild: New module.
1911
1912         * m4/autobuild.m4: New file.
1913
1914 2007-04-11  Bruno Haible  <bruno@clisp.org>
1915
1916         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
1917         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
1918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
1919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
1920         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1921         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1922         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1923         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1924         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1925         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
1927         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1928         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1929         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
1930         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1931         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
1933         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1934         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1935         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
1936         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1937         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
1939         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1940         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
1942         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1943         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1944         Reported by Eric Blake.
1945
1946 2007-04-11  Bruno Haible  <bruno@clisp.org>
1947
1948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
1949
1950 2007-04-10  Bruno Haible  <bruno@clisp.org>
1951
1952         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
1953         for NaN and Infinity. Needed on FreeBSD 6.1.
1954         * tests/test-vasnprintf-posix.c (test_function): Undo last change
1955         regarding results for "%010a" of Infinity and NaN.
1956         * tests/test-vasprintf-posix.c (test_function): Likewise.
1957         * tests/test-snprintf-posix.h (test_function): Likewise.
1958         * tests/test-sprintf-posix.h (test_function): Likewise.
1959         * tests/test-fprintf-posix.h (test_function): Likewise.
1960         * tests/test-printf-posix.h (test_function): Likewise.
1961         * tests/test-fprintf-posix.out: Likewise.
1962
1963 2007-04-10  Bruno Haible  <bruno@clisp.org>
1964
1965         * modules/locale-tests: New file.
1966         * tests/test-locale.c: New file.
1967
1968         * modules/locale: New file.
1969         * lib/locale_.h: New file.
1970         * m4/locale_h.m4: New file.
1971
1972 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1973             Bruno Haible  <bruno@clisp.org>
1974
1975         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
1976         be determined, test for availability of the copysignf, copysign,
1977         copysignl functions.
1978         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
1979         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
1980         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
1981
1982 2007-04-09  Eric Blake  <ebb9@byu.net>
1983
1984         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
1985         * modules/stdio (Makefile.am): Support fflush.
1986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1987         * modules/fflush: New file.
1988         * lib/fflush.c: Likewise.
1989         * m4/fflush.m4: Likewise.
1990         * modules/fflush-tests: New test.
1991         * tests/test-fflush.c: Likewise.
1992         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
1993
1994 2007-04-06  Bruno Haible  <bruno@clisp.org>
1995
1996         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
1997         (VASNPRINTF): Use signbit for faster determination whether to print a
1998         minus sign.
1999         * modules/vasnprintf (Files): Remove lib/float+.h.
2000         * modules/fprintf-posix (Depends-on): Add signbit.
2001         * modules/snprintf-posix (Depends-on): Likewise.
2002         * modules/sprintf-posix (Depends-on): Likewise.
2003         * modules/vasnprintf-posix (Depends-on): Likewise.
2004         * modules/vasprintf-posix (Depends-on): Likewise.
2005         * modules/vfprintf-posix (Depends-on): Likewise.
2006         * modules/vsnprintf-posix (Depends-on): Likewise.
2007         * modules/vsprintf-posix (Depends-on): Likewise.
2008
2009 2007-04-06  Bruno Haible  <bruno@clisp.org>
2010
2011         * tests/test-frexp.c (main): Test also the sign bit of zero results.
2012         * tests/test-frexpl.c (main): Likewise.
2013         * tests/test-ldexpl.c (main): Likewise.
2014         * modules/frexp-tests (Depends-on): Add signbit.
2015         * modules/frexpl-tests (Depdends-on): Likewise.
2016         * modules/ldexpl-tests (Depdends-on): Likewise.
2017
2018 2007-04-06  Bruno Haible  <bruno@clisp.org>
2019
2020         * modules/signbit-tests: New file.
2021         * tests/test-signbit.c: New file.
2022
2023         * modules/signbit: New file.
2024         * lib/signbitf.c: New file.
2025         * lib/signbitd.c: New file.
2026         * lib/signbitl.c: New file.
2027         * m4/signbit.m4: New file.
2028         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
2029         (signbit): New macro.
2030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
2031         REPLACE_SIGNBIT.
2032         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
2033         REPLACE_FREXPL into math.h.
2034
2035 2007-04-06  Bruno Haible  <bruno@clisp.org>
2036
2037         * modules/isnanf-nolibm-tests: New file.
2038         * tests/test-isnanf.c: New file.
2039
2040         * modules/isnanf-nolibm: New file.
2041         * lib/isnanf.h: New file.
2042         * lib/isnanf.c: New file.
2043         * lib/isnan.c: Consider the USE_FLOAT macro.
2044         * m4/isnanf.m4: New file.
2045
2046 2007-04-06  Bruno Haible  <bruno@clisp.org>
2047
2048         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
2049         (Link): New section.
2050
2051         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
2052
2053 2007-04-06  Bruno Haible  <bruno@clisp.org>
2054
2055         Assume the 'long double' type.
2056         * m4/longdouble.m4: Remove file.
2057         * config/srclist.txt: Don't mention longdouble.m4.
2058         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
2059         * lib/float+.h: Likewise.
2060         * lib/frexp.c: Likewise.
2061         * lib/printf-args.h: Likewise.
2062         * lib/printf-args.c: Likewise.
2063         * lib/printf-frexp.c: Likewise.
2064         * lib/printf-parse.c: Likewise.
2065         * lib/vasnprintf.c: Likewise.
2066         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
2067         * m4/intl.m4: Likewise.
2068         * m4/isnanl.m4: Likewise.
2069         * m4/printf.m4: Likewise.
2070         * m4/printf-frexpl.m4: Likewise.
2071         * m4/vasnprintf.m4: Likewise.
2072         * modules/allocsa (Files): Remove m4/longdouble.m4.
2073         * modules/gettext (Files): Likewise.
2074         * modules/relocatable-prog-wrapper (Files): Likewise.
2075         * modules/vasnprintf (Files): Likewise.
2076         * modules/isnanl (Files): Likewise.
2077         (Include): Simplify.
2078         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
2079         (Include): Simplify.
2080         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
2081         (Include): Simplify.
2082         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
2083         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2084         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
2085         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2086         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
2087         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2088         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
2089         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2090         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
2091         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2092         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
2093         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2094         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
2095         * tests/test-isnanl.c: Likewise.
2096         * tests/test-snprintf-posix.h: Likewise.
2097         * tests/test-sprintf-posix.h: Likewise.
2098         * tests/test-vasnprintf-posix.c: Likewise.
2099         * tests/test-vasnprintf-posix2.c: Likewise.
2100         * tests/test-vasprintf-posix.c: Likewise.
2101
2102 2007-04-06  Bruno Haible  <bruno@clisp.org>
2103
2104         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
2105         * lib/math_.h [__DECC]: Include the overridden include file through
2106         #include_next, outside the double-inclusion guard.
2107         * lib/stdio_.h [__DECC]: Likewise.
2108         * lib/stdlib_.h [__DECC]: Likewise.
2109         * lib/string_.h [__DECC]: Likewise.
2110         * lib/time_.h [__DECC]: Likewise.
2111         * lib/wchar_.h [__DECC]: Likewise.
2112         * lib/wctype_.h [__DECC]: Likewise.
2113         * lib/inttypes_.h [__DECC]: Likewise.
2114         Reported by Albert Chin <china@thewrittenword.com> in
2115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
2116
2117 2007-04-04  Eric Blake  <ebb9@byu.net>
2118
2119         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
2120         1.5.x.
2121
2122 2007-04-04  Bruno Haible  <bruno@clisp.org>
2123
2124         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
2125         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
2126
2127 2007-04-04  Bruno Haible  <bruno@clisp.org>
2128
2129         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
2130         results for "%010a" of Infinity and NaN.
2131         * tests/test-vasprintf-posix.c (test_function): Likewise.
2132         * tests/test-snprintf-posix.h (test_function): Likewise.
2133         * tests/test-sprintf-posix.h (test_function): Likewise.
2134         * tests/test-fprintf-posix.h (test_function): Remove these tests.
2135         * tests/test-printf-posix.h (test_function): Likewise.
2136         * tests/test-fprintf-posix.out: Update.
2137         Needed for FreeBSD 6.1.
2138
2139 2007-04-04  Bruno Haible  <bruno@clisp.org>
2140
2141         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
2142         directly used by the gnulib modules nor by gnulib-tool.
2143
2144 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2145
2146         * DEPENDENCIES: Give overall description of version dependency
2147         desirability.  Use more-typical names for apps.
2148         Add shell, coreutils, diffutils, grep, tar, gzip.
2149
2150 2007-04-04  Simon Josefsson  <simon@josefsson.org>
2151
2152         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
2153
2154 2007-04-04  Karl Berry  <karl@gnu.org>
2155
2156         * MODULES.html.sh (func_module): missing '.
2157
2158 2007-04-03  Bruno Haible  <bruno@clisp.org>
2159
2160         * modules/argmatch-tests (Makefile.am): New variable
2161         test_argmatch_LDADD.
2162         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
2163         * modules/array-list-tests (Makefile.am): New variable
2164         test_array_list_LDADD.
2165         * modules/array-oset-tests (Makefile.am): New variable
2166         test_array_oset_LDADD.
2167         * modules/avltree-list-tests (Makefile.am): New variable
2168         test_avltree_list_LDADD.
2169         * modules/avltree-oset-tests (Makefile.am): New variable
2170         test_avltree_oset_LDADD.
2171         * modules/avltreehash-list-tests (Makefile.am): New variable
2172         test_avltreehash_list_LDADD.
2173         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
2174         test_canonicalize_lgpl_LDADD.
2175         * modules/carray-list-tests (Makefile.am): New variable
2176         test_carray_list_LDADD.
2177         * modules/dirname-tests (Makefile.am): New variable
2178         test_dirname_LDADD.
2179         * modules/linked-list-tests (Makefile.am): New variable
2180         test_linked_list_LDADD.
2181         * modules/linkedhash-list-tests (Makefile.am): New variable
2182         test_linkedhash_list_LDADD.
2183         * modules/rbtree-list-tests (Makefile.am): New variable
2184         test_rbtree_list_LDADD.
2185         * modules/rbtree-oset-tests (Makefile.am): New variable
2186         test_rbtree_oset_LDADD.
2187         * modules/rbtreehash-list-tests (Makefile.am): New variable
2188         test_rbtreehash_list_LDADD.
2189         * modules/xvasprintf-tests (Makefile.am): New variable
2190         test_xvasprintf_LDADD.
2191         Reported by Eric Blake.
2192
2193 2007-04-03  Eric Blake  <ebb9@byu.net>
2194
2195         * DEPENDENCIES: Weaken m4 requirements.
2196
2197 2007-04-03  Bruno Haible  <bruno@clisp.org>
2198
2199         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
2200         * modules/isnanl-tests (configure.ac): Likewise.
2201
2202 2007-04-03  Ben Pfaff  <blp@gnu.org>
2203
2204         * modules/iconv_open: Add $(srcdir)/ to source directory
2205         references in Makefile fragments that call gperf, to fix VPATH
2206         builds.
2207
2208 2007-04-03  Bruno Haible  <bruno@clisp.org>
2209
2210         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
2211         * lib/ldexpl.c: Undo last change.
2212
2213 2007-04-03  Bruno Haible  <bruno@clisp.org>
2214
2215         * modules/printf-frexpl (Depends-on): Undo last change.
2216         (Files): Add m4/ldexpl.m4.
2217
2218 2007-04-03  Bruno Haible  <bruno@clisp.org>
2219
2220         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
2221         * modules/isnanl (Link): New section.
2222
2223         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
2224         * modules/frexp (Link): New section.
2225
2226         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
2227         * modules/frexpl (Link): New section.
2228
2229         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
2230         * modules/ldexpl (Link): New section.
2231
2232 2007-04-03  Bruno Haible  <bruno@clisp.org>
2233
2234         * modules/TEMPLATE-EXTENDED: New file.
2235         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
2236
2237 2007-04-03  Bruno Haible  <bruno@clisp.org>
2238
2239         * DEPENDENCIES: New file.
2240         Suggested by Simon Josefsson.
2241
2242 2007-04-03  Bruno Haible  <bruno@clisp.org>
2243
2244         * doc/gnulib.texi: Escape @.
2245
2246 2007-04-03  James Youngman  <jay@gnu.org>
2247         and Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
2250         birthtime on all systems that have birthtime, not just those which
2251         use st_birthtimensec rather than st_birthtim.  Putting zero in
2252         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
2253         that the birth time is not available for files on an NFS mount.
2254
2255 2007-04-03  Simon Josefsson  <simon@josefsson.org>
2256
2257         * modules/memxor: Move back from crypto/, suggested by Bruno.
2258         * modules/crypto/hmac-sha1: Fix memxor dependency.
2259
2260         * modules/crypto/gc: Moved from ../.
2261
2262 2007-04-02  Eric Blake  <ebb9@byu.net>
2263
2264         * lib/ldexpl.c (includes): Avoid libm.
2265
2266         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
2267
2268 2007-04-02  Bruno Haible  <bruno@clisp.org>
2269
2270         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
2271         on IRIX.
2272
2273 2007-04-02  Bruno Haible  <bruno@clisp.org>
2274
2275         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
2276         x86 or x86_64 platforms running MacOS X.
2277         Reported by Ryan Schmidt <@ryandesign.com>.
2278
2279 2007-04-02  Bruno Haible  <bruno@clisp.org>
2280
2281         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
2282         i386.
2283
2284 2007-04-01  Simon Josefsson  <simon@josefsson.org>
2285
2286         * modules/crypto/arcfour: Moved from ../.
2287         * modules/crypto/arcfour-tests: Moved from ../.
2288         * modules/crypto/arctwo: Moved from ../.
2289         * modules/crypto/arctwo-tests: Moved from ../.
2290         * modules/crypto/des: Moved from ../.
2291         * modules/crypto/des-tests: Moved from ../.
2292         * modules/crypto/gc-arcfour: Moved from ../.
2293         * modules/crypto/gc-arcfour-tests: Moved from ../.
2294         * modules/crypto/gc-arctwo: Moved from ../.
2295         * modules/crypto/gc-arctwo-tests: Moved from ../.
2296         * modules/crypto/gc-des: Moved from ../.
2297         * modules/crypto/gc-des-tests: Moved from ../.
2298         * modules/crypto/gc-hmac-md5: Moved from ../.
2299         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
2300         * modules/crypto/gc-hmac-sha1: Moved from ../.
2301         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
2302         * modules/crypto/gc-md2: Moved from ../.
2303         * modules/crypto/gc-md2-tests: Moved from ../.
2304         * modules/crypto/gc-md4: Moved from ../.
2305         * modules/crypto/gc-md4-tests: Moved from ../.
2306         * modules/crypto/gc-md5: Moved from ../.
2307         * modules/crypto/gc-md5-tests: Moved from ../.
2308         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
2309         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
2310         * modules/crypto/gc-random: Moved from ../.
2311         * modules/crypto/gc-rijndael: Moved from ../.
2312         * modules/crypto/gc-rijndael-tests: Moved from ../.
2313         * modules/crypto/gc-sha1: Moved from ../.
2314         * modules/crypto/gc-sha1-tests: Moved from ../.
2315         * modules/crypto/gc-tests: Moved from ../.
2316         * modules/crypto/hmac-md5: Moved from ../.
2317         * modules/crypto/hmac-md5-tests: Moved from ../.
2318         * modules/crypto/hmac-sha1: Moved from ../.
2319         * modules/crypto/hmac-sha1-tests: Moved from ../.
2320         * modules/crypto/md2: Moved from ../.
2321         * modules/crypto/md2-tests: Moved from ../.
2322         * modules/crypto/md4: Moved from ../.
2323         * modules/crypto/md4-tests: Moved from ../.
2324         * modules/crypto/md5: Moved from ../.
2325         * modules/crypto/md5-tests: Moved from ../.
2326         * modules/crypto/memxor: Moved from ../.
2327         * modules/crypto/rijndael: Moved from ../.
2328         * modules/crypto/rijndael-tests: Moved from ../.
2329         * modules/crypto/sha1: Moved from ../.
2330
2331 2007-03-30  James Youngman  <jay@gnu.org>
2332
2333         * tests/test-stat-time.c (prepare_test): use chmod() rather than
2334         rename() to change the ctime of a file (because ctime is unaffected
2335         by rename on jfs2 on AIX 5.1).
2336         (main): Start by doing cleanup, in case a previous run failed leaving
2337         test files behind.
2338
2339 2007-03-31  Bruno Haible  <bruno@clisp.org>
2340
2341         Support old proprietary implementations of iconv.
2342         * modules/iconv_open: New file.
2343         * lib/iconv_.h: New file.
2344         * m4/iconv_h.m4: New file.
2345         * lib/iconv_open.c: New file.
2346         * lib/iconv_open-aix.gperf: New file.
2347         * lib/iconv_open-hpux.gperf: New file.
2348         * lib/iconv_open-irix.gperf: New file.
2349         * lib/iconv_open-osf.gperf: New file.
2350         * m4/iconv_open.m4: New file.
2351         * modules/linebreak (Depends-on): Add iconv_open.
2352         * modules/striconv (Depends-on): Likewise.
2353         * modules/striconveh (Depends-on): Likewise.
2354         * modules/unicodeio (Depends-on): Likewise.
2355         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
2356         (iconv_t)(-1).
2357         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
2358         conversion if cd is (iconv_t)(-1).
2359         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
2360         is not possible.
2361
2362 2007-03-31  Bruno Haible  <bruno@clisp.org>
2363
2364         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2365         work on Solaris either. Protect also second use of "autodetect_jp".
2366
2367 2007-03-31  Bruno Haible  <bruno@clisp.org>
2368
2369         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
2370         the function is not present.
2371
2372 2007-03-31  Bruno Haible  <bruno@clisp.org>
2373
2374         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
2375         the function is not present.
2376
2377 2007-03-31  Bruno Haible  <bruno@clisp.org>
2378
2379         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
2380         a bug in HP-UX iconv_open().
2381
2382 2007-03-31  Bruno Haible  <bruno@clisp.org>
2383
2384         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
2385         (Mathematics <math.h>): New section, add fpieee.
2386         (Input/output <stdio.h>): Add fseterr.
2387         (Mathematics <math.h>): New section, add printf-frexp.
2388         (Container data structures): Add sublist.
2389         (Core language properties): Add fpucw, inline.
2390         (Functions for greatest-width integer types <inttypes.h>): Add
2391         imaxabs, imaxdiv, inttypes.
2392         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
2393         isnanl-nolibm, ldexp.
2394         (Mathematics <math.h>): New section, add printf-frexpl.
2395         (Support for systems lacking POSIX:2001): Add fprintf-posix,
2396         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
2397         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
2398         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
2399         (Unicode string functions): Add unistr/u*-mbtoucr.
2400         (Java): Add javacomp-script, javaexec-script.
2401         (C#): Add csharpcomp-script, csharpexec-script.
2402         (Support for building libraries and executables): Add havelib,
2403         relocatable-*.
2404         (Support for maintaining and releasing projects): Renamed from
2405         'Support for maintaining and release projects'. Add announce-gen.
2406
2407 2007-03-31  Bruno Haible  <bruno@clisp.org>
2408
2409         * README: Talk primarily about git.
2410         (git and CVS): Renamed from CVS.
2411         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
2412         gnulib is available through git.
2413         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
2414
2415 2007-03-30  Bruno Haible  <bruno@clisp.org>
2416
2417         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
2418         * lib/poll_.h: Likewise.
2419         * lib/stat_.h: Likewise.
2420         * lib/sys_time_.h: Likewise.
2421         * lib/sysexit_.h: Likewise.
2422         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
2423         * lib/stdbool_.h: Likewise.
2424         * lib/byteswap_.h: Add double-inclusion guard.
2425
2426 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
2427
2428         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
2429
2430 2007-03-30  Karl Berry  <karl@gnu.org>
2431
2432         * config/srclist-update: double space after USA in the license
2433         substitution, since that's how it's usually (?) written.
2434
2435 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2436
2437         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
2438         reported by Bruno Haible.
2439
2440 2007-03-29  Bruno Haible  <bruno@clisp.org>
2441
2442         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
2443         a bug in AIX iconv().
2444
2445 2007-03-29  Bruno Haible  <bruno@clisp.org>
2446
2447         * modules/ldexpl-tests: New file.
2448         * tests/test-ldexpl.c: New file.
2449
2450 2007-03-29  Bruno Haible  <bruno@clisp.org>
2451
2452         * lib/ldexpl.c: Include fpucw.h.
2453         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
2454         multiplication.
2455         * modules/ldexpl (Depends-on): Add fpucw.
2456
2457 2007-03-29  Bruno Haible  <bruno@clisp.org>
2458
2459         * modules/ldexpl: New file.
2460         * m4/ldexpl.m4: New file.
2461         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
2462         set.
2463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
2464         REPLACE_LDEXPL.
2465         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
2466         REPLACE_LDEXPL.
2467         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2468         gl_FUNC_LDEXPL_WORKS.
2469         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
2470         * modules/mathl (Files): Remove lib/ldexpl.c.
2471         (Depends-on): Add ldexpl.
2472
2473 2007-03-29  Bruno Haible  <bruno@clisp.org>
2474
2475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
2476
2477 2007-03-29  Bruno Haible  <bruno@clisp.org>
2478
2479         * tests/test-striconveh.c (main): Don't assume that a direct conversion
2480         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
2481         and possibly also HP-UX.
2482         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2483         work on AIX, IRIX, HP-UX, OSF/1.
2484         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2485         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2486         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2487         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2488         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
2489         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2490
2491 2007-03-29  Bruno Haible  <bruno@clisp.org>
2492
2493         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
2494
2495 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2496
2497         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
2498         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
2499
2500 2007-03-29  Eric Blake  <ebb9@byu.net>
2501
2502         * lib/acl-internal.h: Remove redundant include.
2503         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
2504         Cygwin when a file is locked.
2505
2506 2007-03-29  Bruno Haible  <bruno@clisp.org>
2507
2508         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
2509         file.
2510         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
2511
2512 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2513
2514         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
2515         try to remove a parent directory if the child couldn't be removed
2516         (except for the first rmdir, which could fail because the child
2517         doesn't exist).  Problem reported by Jeff Blaine in
2518         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
2519
2520 2007-03-28  Bruno Haible  <bruno@clisp.org>
2521
2522         * lib/striconveh.c (utf8conv_carefully): New function.
2523         (mem_cd_iconveh_internal): Invoke it.
2524
2525 2007-03-28  Bruno Haible  <bruno@clisp.org>
2526
2527         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
2528         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
2529         input.
2530         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
2531         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
2532         unistr/u8-uctomb.
2533
2534 2007-03-28  Bruno Haible  <bruno@clisp.org>
2535
2536         * modules/unistr/u8-mbtoucr: New file.
2537         * lib/unistr/u8-mbtoucr.c: New file.
2538         * modules/unistr/u16-mbtoucr: New file.
2539         * lib/unistr/u16-mbtoucr.c: New file.
2540         * modules/unistr/u16-mbtoucr: New file.
2541         * lib/unistr/u16-mbtoucr.c: New file.
2542         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
2543
2544 2007-03-27  Simon Josefsson  <simon@josefsson.org>
2545             Bruno Haible  <bruno@clisp.org>
2546
2547         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
2548         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
2549         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
2550
2551         * m4/stdio_h.m4: Add stubs for vasprintf too.
2552
2553         * modules/stdio: Support vasprintf in sed command.
2554
2555         * modules/vasprintf: Depend on stdio for prototypes.  Remove
2556         vasprintf.h.  Add stdio module indicator.
2557
2558         * lib/stdio_.h: Declare asprintf and vasprintf, based on
2559         vasprintf.h.
2560
2561         * lib/vasprintf.h: File removed.
2562
2563         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
2564         * lib/vasprintf.c: Ditto.
2565         * lib/xvasprintf.c: Ditto.
2566         * tests/test-vasprintf-posix.c: Ditto.
2567         * tests/test-vasprintf.c: Ditto.
2568
2569 2007-03-27  Bruno Haible  <bruno@clisp.org>
2570
2571         Make vasnprintf multithread-safe.
2572         * lib/vasnprintf.c (decimal_point_char): New function.
2573         (VASNPRINTF): Use it.
2574         Suggested by Simon Josefsson.
2575
2576 2007-03-27  Eric Blake  <ebb9@byu.net>
2577
2578         Support sub-second birthtime on cygwin.
2579         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
2580         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
2581         (get_stat_birthtime): Also work with st_birthtim.
2582
2583 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
2584
2585         * lib/stat-time.h (USE_BIRTHTIME): Remove.
2586         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
2587         (get_stat_birthtime_ns): Do not try to use "spare" fields.
2588         (get_stat_birthtime_ns): Simplify compile-time tests.
2589         (get_stat_birthtime): Change the API to look like
2590         get_stat_mtime etc., except return a negative tv_nsec on error.
2591         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2592         Don't check for "spare" fields.
2593         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
2594         or for struct stat.st_birthtime, as these tests aren't used.
2595         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
2596
2597 2007-03-27  Bruno Haible  <bruno@clisp.org>
2598
2599         * lib/stat-time.h: Include <sys/stat.h>.
2600
2601 2007-03-27  James Youngman  <jay@gnu.org>
2602
2603         * lib/stat-time.h (get_stat_birthtime): New function for
2604           retrieving st_birthtime as provided by UFS2 (hence *BSD).
2605         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
2606           and its variants.
2607         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
2608         * modules/stat-time-test: New file.
2609         * tests/test-stat-time.c: New test, devised by Bruno Haible.
2610
2611 2007-03-26  Bruno Haible  <bruno@clisp.org>
2612
2613         Better support of signalling NaNs.
2614         * lib/atanl.c: Include isnanl.h.
2615         (atanl): Perform test for NaN at the beginning of the function and
2616         through a call to isnanl.
2617         * lib/cosl.c: Include isnanl.h.
2618         (cosl): Perform test for NaN at the beginning of the function and
2619         through a call to isnanl.
2620         * lib/ldexpl.c: Include isnanl.h.
2621         (ldexpl): Perform test for NaN through a call to isnanl.
2622         * lib/logl.c: Include isnanl.h.
2623         (logl): Perform test for NaN at the beginning of the function and
2624         through a call to isnanl.
2625         * lib/sinl.c: Include isnanl.h.
2626         (sinl): Perform test for NaN at the beginning of the function and
2627         through a call to isnanl.
2628         * lib/sqrtl.c: Include isnanl.h.
2629         (sqrtl): Perform test for NaN at the beginning of the function and
2630         through a call to isnanl.
2631         * lib/tanl.c: Include isnanl.h.
2632         (tanl): Perform test for NaN at the beginning of the function and
2633         through a call to isnanl.
2634         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
2635         * modules/mathl (Depends-on): Add isnanl.
2636
2637 2007-03-26  Eric Blake  <ebb9@byu.net>
2638
2639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
2640         regression in logic sense of previous patch.
2641
2642 2007-03-26  Bruno Haible  <bruno@clisp.org>
2643
2644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
2645         unportable shell command "if ! ...".
2646         Reported by Ralf Wildenhues.
2647
2648 2007-03-25  Bruno Haible  <bruno@clisp.org>
2649
2650         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
2651         <sysexits.h> file, and only add EX_CONFIG.
2652         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
2653         absolute file name and whether it is sufficient. Substitute also
2654         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
2655         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
2656         ABSOLUTE_SYSEXITS_H into sysexits.h.
2657
2658 2007-03-25  Bruno Haible  <bruno@clisp.org>
2659
2660         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
2661         hints is NULL.
2662
2663 2007-03-25  Bruno Haible  <bruno@clisp.org>
2664
2665         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
2666         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
2667
2668 2007-03-25  Bruno Haible  <bruno@clisp.org>
2669
2670         * lib/vasnprintf.c: Include langinfo.h.
2671         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
2672         multithread-safe.
2673         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
2674         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
2675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2676         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2677         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2679         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2680         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
2681         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2682         Reported by Simon Josefsson.
2683
2684 2007-03-25  Bruno Haible  <bruno@clisp.org>
2685
2686         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
2687         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
2688         * modules/vasnprintf (Depends-on): Add stdint.
2689
2690 2007-03-25  Bruno Haible  <bruno@clisp.org>
2691
2692         * modules/fpieee: New file.
2693         * m4/fpieee.m4: New file.
2694         * modules/isnan-nolibm (Depends-on): Add fpieee.
2695         * modules/isnanl-nolibm (Depends-on): Add fpieee.
2696         * modules/isnanl (Depends-on): Add fpieee.
2697
2698 2007-03-25  Bruno Haible  <bruno@clisp.org>
2699
2700         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
2701
2702 2007-03-25  Bruno Haible  <bruno@clisp.org>
2703
2704         Avoid test failures on IRIX 6.5.
2705         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
2706         (main): Use it.
2707         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
2708         macros.
2709         (main): Use them.
2710
2711 2007-03-25  Bruno Haible  <bruno@clisp.org>
2712
2713         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
2714         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
2715         exists but doesn't work.
2716         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
2717         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
2718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
2719         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
2720
2721 2007-03-25  Bruno Haible  <bruno@clisp.org>
2722
2723         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
2724         returns inf. Needed on IRIX 6.5.
2725
2726 2007-03-25  Bruno Haible  <bruno@clisp.org>
2727
2728         * tests/test-frexpl.c: Include isnanl-nolibm.h.
2729         (main): Use isnanl instead of x != x idiom.
2730         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
2731
2732         * tests/test-frexp.c: Include isnan.h.
2733         (main): Use isnan instead of x != x idiom.
2734         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
2735
2736 2007-03-25  Bruno Haible  <bruno@clisp.org>
2737
2738         * tests/test-frexp.c (NaN): New function/macro.
2739         (main): Use it instead of 0.0 / 0.0.
2740         * tests/test-isnan.c (NaN): New function/macro.
2741         (main): Use it instead of 0.0 / 0.0.
2742         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
2743         (test_function): Use it instead of 0.0 / 0.0.
2744         * tests/test-vasprintf-posix.c (NaN): New function/macro.
2745         (test_function): Use it instead of 0.0 / 0.0.
2746         * tests/test-snprintf-posix.h (NaN): New function/macro.
2747         (test_function): Use it instead of 0.0 / 0.0.
2748         * tests/test-sprintf-posix.h (NaN): New function/macro.
2749         (test_function): Use it instead of 0.0 / 0.0.
2750         * tests/test-fprintf-posix.h (NaN): New function/macro.
2751         (test_function): Use it instead of 0.0 / 0.0.
2752         * tests/test-printf-posix.h (NaN): New function/macro.
2753         (test_function): Use it instead of 0.0 / 0.0.
2754
2755         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
2756
2757 2007-03-25  Bruno Haible  <bruno@clisp.org>
2758
2759         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
2760
2761 2007-03-25  Bruno Haible  <bruno@clisp.org>
2762
2763         * lib/regexec.c (merge_state_with_log): Make static.
2764
2765 2007-03-25  Bruno Haible  <bruno@clisp.org>
2766
2767         * lib/trigl.c (kernel_rem_pio2): Make static.
2768
2769 2007-03-25  Bruno Haible  <bruno@clisp.org>
2770
2771         * lib/sincosl.c (sincosl_table): Make static.
2772
2773 2007-03-25  Bruno Haible  <bruno@clisp.org>
2774
2775         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
2776         if the compiler does not support C99.
2777
2778 2007-03-25  Bruno Haible  <bruno@clisp.org>
2779
2780         * modules/time (Makefile.am): Ensure all rule action lines start with a
2781         tab.
2782
2783 2007-03-24  Bruno Haible  <bruno@clisp.org>
2784
2785         * modules/tsearch-tests: New file.
2786         * tests/test-tsearch.sh: New file.
2787         * tests/test-tsearch.c: New file, mostly copied from glibc.
2788
2789         * modules/search-tests: New file.
2790         * tests/test-search.c: New file.
2791
2792         * modules/search: New file.
2793         * lib/search_.h: New file, incorporating lib/tsearch.h.
2794         * m4/search_h.m4: New file.
2795         * lib/tsearch.h: Remove file.
2796         * lib/tsearch.c: Include search.h instead of tsearch.h.
2797         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
2798         HAVE_TSEARCH.
2799         * modules/tsearch (Files): Remove lib/tsearch.h.
2800         (Depends-on): Add search.
2801         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
2802         (Include): Change tsearch.h into search.h.
2803
2804 2007-03-24  Bruno Haible  <bruno@clisp.org>
2805
2806         * modules/fpucw: New file.
2807         * lib/fpucw.h: New file.
2808         * lib/frexp.c: Include fpucw.h.
2809         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
2810         (FUNC): Use them.
2811         * lib/printf-frexp.c: Include fpucw.h.
2812         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
2813         (FUNC): Use them.
2814         * lib/vasnprintf.c: Include fpucw.h.
2815         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
2816         'long double' calculations.
2817         * tests/test-frexpl.c: Include fpucw.h.
2818         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
2819         * tests/test-printf-frexpl.c: Include fpucw.h.
2820         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
2821         * modules/frexpl (Depends-on): Add fpucw.
2822         * modules/printf-frexpl (Depends-on): Likewise.
2823         * modules/fprintf-posix (Depends-on): Likewise.
2824         * modules/snprintf-posix (Depends-on): Likewise.
2825         * modules/sprintf-posix (Depends-on): Likewise.
2826         * modules/vasnprintf-posix (Depends-on): Likewise.
2827         * modules/vasprintf-posix (Depends-on): Likewise.
2828         * modules/vfprintf-posix (Depends-on): Likewise.
2829         * modules/vsnprintf-posix (Depends-on): Likewise.
2830         * modules/vsprintf-posix (Depends-on): Likewise.
2831         * modules/frexpl-tests (Depends-on): Likewise.
2832         * modules/printf-frexpl-tests (Depends-on): Likewise.
2833
2834 2007-03-24  Bruno Haible  <bruno@clisp.org>
2835
2836         * lib/float+.h: New file.
2837         * lib/isnan.c: Include float+.h.
2838         (SIZE): New macro.
2839         (FUNC): Compare only SIZE bytes of the value.
2840         * lib/vasnprintf.c: Include float+.h.
2841         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
2842         SIZEOF_LDBL or SIZEOF_DBL bytes.
2843         * modules/isnan-nolibm (Files): Add lib/float+.h.
2844         * modules/isnanl-nolibm (Files): Add lib/float+.h.
2845         * modules/isnanl (Files): Add lib/float+.h.
2846         * modules/vasnprintf (Files): Add lib/float+.h.
2847
2848 2007-03-24  Bruno Haible  <bruno@clisp.org>
2849
2850         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
2851         include isnanl-nolibm.h.
2852
2853 2007-03-24  Bruno Haible  <bruno@clisp.org>
2854
2855         * tests/test-read-file.c (main): Don't produce spurious output for
2856         expected situations. Make the test fail if it encountered unexpected
2857         results.
2858
2859 2007-03-24  Bruno Haible  <bruno@clisp.org>
2860
2861         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
2862         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
2863
2864 2007-03-24  Bruno Haible  <bruno@clisp.org>
2865
2866         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
2867
2868 2007-03-24  Bruno Haible  <bruno@clisp.org>
2869
2870         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
2871         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
2872
2873         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
2874         * modules/utf8-ucs4: Turn into a symbolic link to module
2875         unistr/u8-mbtouc.
2876
2877         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
2878         utf8-ucs4-unsafe.
2879         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
2880         unistr/u8-mbtouc-unsafe.
2881
2882         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
2883         * modules/utf16-ucs4: Turn into a symbolic link to module
2884         unistr/u16-mbtouc.
2885
2886         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
2887         utf16-ucs4-unsafe.
2888         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
2889         unistr/u16-mbtouc-unsafe.
2890
2891         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
2892         * modules/ucs4-utf8: Turn into a symbolic link to module
2893         unistr/u8-ubtomb.
2894
2895         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
2896         * modules/ucs4-utf16: Turn into a symbolic link to module
2897         unistr/u16-ubtomb.
2898
2899 2007-03-24  Bruno Haible  <bruno@clisp.org>
2900
2901         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
2902         Enable the function only if HAVE_INLINE.
2903         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
2904         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
2905         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
2906         Enable the function only if HAVE_INLINE.
2907         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
2908         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
2909         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
2910         Enable the function only if HAVE_INLINE.
2911         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
2912         Enable the function only if HAVE_INLINE.
2913         * modules/utf8-ucs4: Update.
2914         * modules/utf8-ucs4-unsafe: Update.
2915         * modules/utf16-ucs4: Update.
2916         * modules/utf16-ucs4-unsafe: Update.
2917         * modules/ucs4-utf8: Update.
2918         * modules/ucs4-utf16: Update.
2919
2920 2007-03-24  Bruno Haible  <bruno@clisp.org>
2921
2922         * lib/utf8-ucs4.h: Remove file.
2923         * lib/utf8-ucs4-unsafe.h: Remove file.
2924         * lib/utf16-ucs4.h: Remove file.
2925         * lib/utf16-ucs4-unsafe.h: Remove file.
2926         * lib/ucs4-utf8.h: Remove file.
2927         * lib/ucs4-utf16.h: Remove file.
2928         * lib/unistr.h: Include their previous contents.
2929         * m4/utf-ucs4.m4: Remove file.
2930         * m4/ucs4-utf.m4: Remove file.
2931         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
2932         (Depends-on): Add unistr/base.
2933         (configure.ac): Remove gl_UTF_UCS4.
2934         (Makefile.am): Update.
2935         (Include): Change to unistr.h.
2936         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
2937         (Depends-on): Add unistr/base.
2938         (configure.ac): Remove gl_UTF_UCS4.
2939         (Makefile.am): Update.
2940         (Include): Change to unistr.h.
2941         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
2942         (Depends-on): Add unistr/base.
2943         (configure.ac): Remove gl_UTF_UCS4.
2944         (Makefile.am): Update.
2945         (Include): Change to unistr.h.
2946         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
2947         (Depends-on): Add unistr/base.
2948         (configure.ac): Remove gl_UTF_UCS4.
2949         (Makefile.am): Update.
2950         (Include): Change to unistr.h.
2951         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
2952         (Depends-on): Add unistr/base.
2953         (configure.ac): Remove gl_UCS4_UTF.
2954         (Makefile.am): Update.
2955         (Include): Change to unistr.h.
2956         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
2957         (Depends-on): Add unistr/base.
2958         (configure.ac): Remove gl_UCS4_UTF.
2959         (Makefile.am): Update.
2960         (Include): Change to unistr.h.
2961         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
2962         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
2963         utf8-ucs4-unsafe.h.
2964         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
2965         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
2966         utf16-ucs4-unsafe.h.
2967         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
2968         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
2969         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
2970         * lib/unistr/u8-strchr.c: Likewise.
2971         * lib/unistr/u8-strrchr.c: Likewise.
2972         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
2973         * lib/unistr/u16-strchr.c: Likewise.
2974         * lib/unistr/u16-strrchr.c: Likewise.
2975         * lib/striconveh.c: Update.
2976         * lib/linebreak.c: Update.
2977
2978 2007-03-24  Bruno Haible  <bruno@clisp.org>
2979
2980         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
2981         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
2982
2983 2007-03-22  Bruno Haible  <bruno@clisp.org>
2984
2985         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
2986
2987 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
2988
2989         * MODULES.html.sh (File system functions): New module write-any-file.
2990         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
2991         * m4/write-any-file.m4: New files.
2992
2993 2007-03-23  Eric Blake  <ebb9@byu.net>
2994
2995         * gnulib-tool: Rearrange space-tab sequences, since some editors
2996         like to eat them.
2997
2998 2007-03-23  Eric Blake  <ebb9@byu.net>
2999
3000         * lib/version-etc.c (version_etc_va): Update license wording to
3001         be more concise.  Recommended by Richard Stallman.
3002
3003 2007-03-22  Bruno Haible  <bruno@clisp.org>
3004
3005         * lib/poll.c (MSG_PEEK): New fallback definition.
3006
3007 2007-03-22  Bruno Haible  <bruno@clisp.org>
3008
3009         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
3010         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
3011         (main): Update.
3012         Fixes a compilation error on BeOS.
3013
3014 2007-03-22  Bruno Haible  <bruno@clisp.org>
3015
3016         * modules/frexpl-tests: New file.
3017         * tests/test-frexpl.c: New file.
3018
3019         * modules/frexpl: New file.
3020         * m4/frexpl.m4: New file.
3021         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
3022         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
3023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
3024         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
3025         (Depends-on): Add frexpl. Remove isnanl-nolibm.
3026         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
3027
3028 2007-03-22  Bruno Haible  <bruno@clisp.org>
3029
3030         * lib/frexpl.c: Share code with lib/frexp.c.
3031         * modules/mathl (Files): Add lib/frexp.c.
3032         (Depends-on): Add isnanl-nolibm.
3033
3034 2007-03-22  Bruno Haible  <bruno@clisp.org>
3035
3036         * modules/printf-frexp (Files): Add m4/frexp.m4.
3037         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
3038         only if the found frexp function actually works.
3039
3040 2007-03-22  Bruno Haible  <bruno@clisp.org>
3041
3042         * lib/frexp.c: Remove older implementation that uses divisions.
3043
3044 2007-03-21  Bruno Haible  <bruno@clisp.org>
3045
3046         * modules/frexp-tests: New file.
3047         * tests/test-frexp.c: New file.
3048
3049         * modules/frexp: New file.
3050         * lib/frexp.c: New file.
3051         * m4/frexp.m4: New file.
3052         * lib/math_.h (frexp): New declaration.
3053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
3054         REPLACE_FREXP.
3055         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
3056
3057 2007-03-21  Bruno Haible  <bruno@clisp.org>
3058
3059         * modules/isnanl-tests: New file.
3060         * tests/test-isnanl.c: New file.
3061
3062         * modules/isnanl: New file.
3063         * lib/isnanl.h: New file.
3064         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
3065         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
3066         gl_FUNC_ISNANL_WORKS.
3067         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
3068         New macros.
3069
3070 2007-03-21  Bruno Haible  <bruno@clisp.org>
3071
3072         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
3073         lib/isnanl.h.
3074         (Include): Update.
3075         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
3076         * lib/vasnprintf.c: Update.
3077         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
3078         tests/test-isnanl.h, remove tests/test-isnanl.c.
3079         (Makefile.am): Update.
3080         * tests/test-isnanl-nolibm.c: New file.
3081         * tests/test-isnanl.h: New file.
3082         * tests/test-isnanl.c: Remove file.
3083
3084 2007-03-21  Jim Meyering  <jim@meyering.net>
3085
3086         When trying to open ".", treat ESTALE like EACCES.
3087         * lib/savewd.c (savewd_save): Resort to forking not just upon
3088         failure with EACCES, but also when errno is ESTALE.
3089
3090 2007-03-20  Bruno Haible  <bruno@clisp.org>
3091
3092         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
3093         Needed on AIX 5.1. Reported by Matthew Woehlke.
3094
3095 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3096
3097         Suggestions by Bruno Haible:
3098         * lib/acl-internal.h: Include "gettext.h" rather than rolling
3099         our own.
3100         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
3101         * modules/acl (Depends-on): Add gettext.
3102
3103 2007-03-19  Bruno Haible  <bruno@clisp.org>
3104
3105         * modules/iconvme: Remove file.
3106         * lib/iconvme.h: Remove file.
3107         * lib/iconvme.c: Remove file.
3108         * m4/iconvme.m4: Remove file.
3109
3110 2007-03-19  Bruno Haible  <bruno@clisp.org>
3111
3112         * doc/relocatable-maint.texi: Break long shell script line.
3113         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3114
3115 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3116
3117         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
3118         handle file_has_acl.
3119         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
3120         * lib/acl.c: Move header inclusions and related macro defns into
3121         lib/acl-internal.h.
3122         (S_ISLNK): Remove defn, since that's now done for us.
3123         (file_has_acl): Move to lib/file-has-acl.c.
3124         Call acl_trivial if available.  This is the crucial part of the fix.
3125         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
3126         shared within the library.  Rewrite a bit, partly to make it compatible
3127         with the GNU coding style.
3128         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
3129         Remove unnecessary double-quotes.
3130         Don't test for acl_to_text; the build will catch that.
3131         Replace acl_entries if it doesn't exist and it is needed.
3132         Check for -lsec and acl_trivial (as used on Solaris 10).
3133         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
3134         lib/file-has-acl.c.
3135         (Depends-on): Add sys_stat, for S_ISLNK.
3136
3137 2007-03-19  Ben Pfaff  <blp@gnu.org>
3138
3139         * doc/gnulib.texi: Fix typos.
3140         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3141
3142 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3143
3144         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
3145         If size is zero here, buf must be zero.
3146
3147 2007-03-19  Simon Josefsson  <simon@josefsson.org>
3148
3149         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
3150         <bruno@clisp.org>.
3151
3152 2007-03-18  Bruno Haible  <bruno@clisp.org>
3153
3154         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
3155         Suggested by Eric Blake.
3156
3157 2007-03-18  Ben Pfaff  <blp@gnu.org>
3158
3159         * doc/relocatable.texi: Recommend using as prefix a directory
3160         that does not exist and will never be created.  Based on
3161         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
3162         and others.
3163
3164 2007-03-17  Bruno Haible  <bruno@clisp.org>
3165
3166         * lib/fchownat.c: Include lchown.h.
3167
3168 2007-03-17  Bruno Haible  <bruno@clisp.org>
3169
3170         Fix endless loop when the given allocated size was > INT_MAX.
3171         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
3172         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
3173         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
3174         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
3175         * lib/sprintf.c (sprintf): Likewise.
3176
3177 2007-03-17  Bruno Haible  <bruno@clisp.org>
3178
3179         * tests/test-argp-2.sh (func_compare): Output a context diff.
3180
3181 2007-03-17  Bruno Haible  <bruno@clisp.org>
3182
3183         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
3184         locale's decimal-point character.
3185
3186 2007-03-17  Bruno Haible  <bruno@clisp.org>
3187
3188         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
3189         before comparing it. Needed because on some platforms (e.g. x86) a
3190         'long double' occupies less bytes than sizeof (long double).
3191
3192 2007-03-17  Bruno Haible  <bruno@clisp.org>
3193
3194         * tests/test-crc.c (main): Make printf statements 64-bit clean.
3195         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
3196         * tests/test-getaddrinfo.c (simple): Likewise.
3197         * tests/test-read-file.c (main): Likewise.
3198
3199 2007-03-17  Bruno Haible  <bruno@clisp.org>
3200
3201         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
3202
3203 2007-03-17  Bruno Haible  <bruno@clisp.org>
3204
3205         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
3206         unused variable.
3207
3208 2007-03-17  Bruno Haible  <bruno@clisp.org>
3209
3210         * tests/test-c-strcasecmp.c: Include c-strcase.h.
3211         * tests/test-c-strncasecmp.c: Likewise.
3212
3213 2007-03-17  Bruno Haible  <bruno@clisp.org>
3214
3215         * modules/stdlib (Depends-on): Add unistd.
3216         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
3217         Needed for MacOS X 10.3.
3218
3219 2007-03-17  Bruno Haible  <bruno@clisp.org>
3220
3221         * lib/unistr/u-strdup.h: Include <stdlib.h>.
3222
3223 2007-03-17  Bruno Haible  <bruno@clisp.org>
3224
3225         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
3226
3227 2007-03-17  Bruno Haible  <bruno@clisp.org>
3228
3229         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
3230         to reflect files copied from gnulib (with or without modifications).
3231         Suggested by Jim Meyering.
3232
3233 2007-03-17  Eric Blake  <ebb9@byu.net>
3234
3235         * NEWS: Document stdlib change from 2007-02-18.
3236
3237 2007-03-17  Jim Meyering  <jim@meyering.net>
3238
3239         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
3240         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
3241         someone uses a name containing shell meta-characters.
3242         Reported by Alfred M. Szmidt.
3243
3244         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
3245
3246 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
3247
3248         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
3249         and copy gettext configuration files only if configure.ac contains
3250         a use of AM_GNU_GETTEXT_VERSION.
3251
3252 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
3253
3254         * build-aux/bootstrap (gnulib_name): New variable.
3255         (gnulib_tool_options): Use it.
3256
3257 2007-03-13  Simon Josefsson  <simon@josefsson.org>
3258
3259         * tests/test-des.c: Use new namespace.
3260
3261 2007-03-15  Bruno Haible  <bruno@clisp.org>
3262
3263         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
3264         Reported by James Youngman <jay@gnu.org>.
3265
3266 2007-03-15  Bruno Haible  <bruno@clisp.org>
3267
3268         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
3269         declared prototype. Needed with cc on OSF/1 5.1.
3270
3271 2007-03-15  Bruno Haible  <bruno@clisp.org>
3272
3273         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
3274         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
3275         (struct gl_list_implementation): Add dispose_fn argument to the
3276         'create_empty', 'create' methods.
3277         (struct gl_list_impl_base): Add field 'dispose_fn'.
3278         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
3279         argument.
3280         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
3281         dispose_fn argument.
3282         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
3283         dispose_fn on the dropped values.
3284         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
3285         dispose_fn argument.
3286         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
3287         dropped values.
3288         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
3289         (gl_tree_remove_node): Call dispose_fn on the dropped value.
3290         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
3291         (gl_tree_remove_node): Call dispose_fn on the dropped value.
3292         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
3293         argument.
3294         (gl_tree_list_free): Call dispose_fn on the dropped values.
3295         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
3296         the dropped values.
3297         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3298         Add dispose_fn argument.
3299         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
3300         Call dispose_fn on the dropped values.
3301         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
3302         Add dispose_fn argument.
3303         (gl_sublist_create): Initialize the 'dispose_fn' field.
3304         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
3305         * tests/test-array_list.c (main): Update.
3306         * tests/test-carray_list.c (main): Update.
3307         * tests/test-avltree_list.c (main): Update.
3308         * tests/test-rbtree_list.c (main): Update.
3309         * tests/test-avltreehash_list.c (main): Update.
3310         * tests/test-rbtreehash_list.c (main): Update.
3311         * tests/test-linked_list.c (main): Update.
3312         * tests/test-linkedhash_list.c (main): Update.
3313         * tests/test-array_oset.c (main): Update.
3314
3315 2007-03-15  Bruno Haible  <bruno@clisp.org>
3316
3317         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
3318         (gl_oset_create_empty): Add dispose_fn argument.
3319         (struct gl_oset_implementation): Add dispose_fn argument to
3320         'create_empty' method.
3321         (struct gl_oset_impl_base): Add dispose_fn field.
3322         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
3323         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
3324         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
3325         values.
3326         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
3327         (gl_tree_oset_free): Call dispose_fn on the dropped values.
3328         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3329         dropped value.
3330         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3331         dropped value.
3332         * tests/test-array_oset.c (main): Update.
3333         * tests/test-avltree_oset.c (main): Update.
3334         * tests/test-rbtree_oset.c (main): Update.
3335         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
3336
3337 2007-03-13  Bruno Haible  <bruno@clisp.org>
3338
3339         * tests/test-stdbool.c (i): Update after last patch.
3340
3341 2007-03-12  Bruno Haible  <bruno@clisp.org>
3342
3343         * lib/quotearg.c: Include <wctype.h> early, before the definition of
3344         the iswprint macro. Needed on Solaris 2.5.1.
3345
3346 2007-03-12  Bruno Haible  <bruno@clisp.org>
3347
3348         * tests/test-printf-frexp.c (main): Declare x as volatile.
3349
3350 2007-03-12  Simon Josefsson  <simon@josefsson.org>
3351
3352         * doc/gnulib.texi (Build robot for gnulib): New section.
3353
3354 2007-03-12  Jim Meyering  <jim@meyering.net>
3355
3356         * build-aux/bootstrap: New file.
3357         * build-aux/bootstrap.conf: New file, from coreutils.
3358
3359 2007-03-11  Bruno Haible  <bruno@clisp.org>
3360
3361         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
3362
3363 2007-03-12  Simon Josefsson  <simon@josefsson.org>
3364
3365         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
3366         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
3367         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
3368
3369 2007-03-11  Bruno Haible  <bruno@clisp.org>
3370
3371         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
3372         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
3373
3374 2007-03-11  Bruno Haible  <bruno@clisp.org>
3375
3376         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
3377         formula. Needed for SunPRO C 5.0.
3378
3379 2007-03-11  Bruno Haible  <bruno@clisp.org>
3380
3381         * modules/long-options (Depends-on): Add getopt.
3382
3383 2007-03-11  Bruno Haible  <bruno@clisp.org>
3384
3385         * modules/modechange (Depends-on): Add stdbool.
3386
3387 2007-03-11  Bruno Haible  <bruno@clisp.org>
3388
3389         * modules/i-ring (Depends-on): Add stdbool.
3390
3391 2007-03-11  Bruno Haible  <bruno@clisp.org>
3392
3393         * modules/gc-des (Depends-on): Add stdbool.
3394
3395 2007-03-11  Bruno Haible  <bruno@clisp.org>
3396
3397         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
3398
3399 2007-03-11  Bruno Haible  <bruno@clisp.org>
3400
3401         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
3402
3403 2007-03-11  Bruno Haible  <bruno@clisp.org>
3404
3405         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
3406
3407 2007-03-11  Bruno Haible  <bruno@clisp.org>
3408
3409         * lib/vasnprintf.c (sprintf): Undefine.
3410
3411 2007-03-11  Bruno Haible  <bruno@clisp.org>
3412
3413         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
3414         initializers in SunPRO C and Compaq C compilers.
3415
3416 2007-03-11  Bruno Haible  <bruno@clisp.org>
3417
3418         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
3419         decrementing code ANSI C compliant.
3420
3421 2007-03-11  Bruno Haible  <bruno@clisp.org>
3422
3423         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
3424         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
3425
3426 2007-03-11  Bruno Haible  <bruno@clisp.org>
3427
3428         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
3429         <stdbool.h> substitute doesn't pass.
3430
3431 2007-03-11  Bruno Haible  <bruno@clisp.org>
3432
3433         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
3434
3435 2007-03-11  Bruno Haible  <bruno@clisp.org>
3436
3437         * gnulib-tool (func_create_megatestdir): Create also an autobuild
3438         script, for submission to autobuild.josefsson.org.
3439
3440 2007-03-10  Bruno Haible  <bruno@clisp.org>
3441
3442         * modules/canonicalize-lgpl-tests: New file.
3443         * tests/test-canonicalize-lgpl.sh: New file.
3444         * tests/test-canonicalize-lgpl.c: New file.
3445
3446         * modules/c-strcase-tests: New file.
3447         * tests/test-c-strcase.sh: New file.
3448         * tests/test-c-strcasecmp.c: New file.
3449         * tests/test-c-strncasecmp.c: New file.
3450
3451         * modules/atexit-tests: New file.
3452         * tests/test-atexit.sh: New file.
3453         * tests/test-atexit.c: New file.
3454
3455 2007-03-10  Bruno Haible  <bruno@clisp.org>
3456
3457         * tests/test-binary-io.sh: Use temporary filenames that are not so
3458         likely to clash with those of other tests (in a parallel make).
3459         * tests/test-binary-io.c: Likewise.
3460
3461 2007-03-10  Bruno Haible  <bruno@clisp.org>
3462
3463         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
3464         fallback; use #error instead.
3465         Suggested by Simon Josefsson.
3466
3467 2007-03-10  Bruno Haible  <bruno@clisp.org>
3468
3469         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
3470         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
3471         first and the last.
3472
3473 2007-03-10  Bruno Haible  <bruno@clisp.org>
3474
3475         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
3476
3477 2007-03-10  Bruno Haible  <bruno@clisp.org>
3478
3479         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
3480         "make distcheck".
3481         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
3482         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
3483         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
3484
3485 2007-03-10  Bruno Haible  <bruno@clisp.org>
3486
3487         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
3488         variable.
3489         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
3490         variable.
3491
3492 2007-03-09  Eric Blake  <ebb9@byu.net>
3493         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
3494
3495         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
3496         types are not being provided by gnulib.
3497         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
3498         types are supported.
3499
3500 2007-03-10  Bruno Haible  <bruno@clisp.org>
3501
3502         * lib/stdio_.h (__attribute__): New macro.
3503         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
3504         vsprintf): Specify __attribute__ __format__ for GCC.
3505         Suggested by Eric Blake.
3506
3507 2007-03-09  Bruno Haible  <bruno@clisp.org>
3508
3509         * modules/printf-posix-tests: New file.
3510         * tests/test-printf-posix.sh: New file.
3511         * tests/test-printf-posix.c: New file.
3512
3513         * modules/printf-posix: New file.
3514         * lib/printf.c: New file.
3515         * m4/printf-posix-rpl.m4: New file.
3516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
3517         REPLACE_PRINTF.
3518         * lib/stdio_.h (printf): New declaration.
3519         (format, __format__, ____printf____, ____scanf____, ____strftime____,
3520         ____strfmon____): New macros.
3521         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
3522         REPLACE_PRINTF.
3523
3524 2007-03-09  Bruno Haible  <bruno@clisp.org>
3525
3526         * tests/test-vasnprintf-posix2.sh: New file.
3527         * tests/test-vasnprintf-posix2.c: New file.
3528         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
3529         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
3530         (Makefile.am): Activate test-vasnprintf-posix2.sh.
3531
3532         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
3533         a locale dependent decimal point, rather than always '.'.
3534
3535 2007-03-09  Eric Blake  <ebb9@byu.net>
3536
3537         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
3538         spite of platforms like Tandem/NSK that define it to -1.
3539
3540 2007-03-08  Bruno Haible  <bruno@clisp.org>
3541
3542         * modules/vprintf-posix-tests: New file.
3543         * tests/test-vprintf-posix.sh: New file.
3544         * tests/test-vprintf-posix.c: New file.
3545         * tests/test-printf-posix.h: New file.
3546
3547         * modules/vprintf-posix: New file.
3548         * lib/vprintf.c: New file.
3549         * m4/vprintf-posix.m4: New file.
3550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
3551         REPLACE_VPRINTF.
3552         * lib/stdio_.h (vprintf): New declaration.
3553         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
3554         REPLACE_VPRINTF.
3555
3556 2007-03-08  Bruno Haible  <bruno@clisp.org>
3557
3558         * modules/fprintf-posix-tests: New file.
3559         * tests/test-fprintf-posix.sh: New file.
3560         * tests/test-fprintf-posix.c: New file.
3561
3562         * modules/fprintf-posix: New file.
3563         * lib/fprintf.c: New file.
3564         * m4/fprintf-posix.m4: New file.
3565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
3566         REPLACE_FPRINTF.
3567         * lib/stdio_.h (fprintf): New declaration.
3568         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
3569         REPLACE_FPRINTF.
3570
3571 2007-03-08  Bruno Haible  <bruno@clisp.org>
3572
3573         * modules/vfprintf-posix-tests: New file.
3574         * tests/test-vfprintf-posix.sh: New file.
3575         * tests/test-vfprintf-posix.c: New file.
3576         * tests/test-fprintf-posix.h: New file.
3577         * tests/test-fprintf-posix.out: New file.
3578
3579         * modules/vfprintf-posix: New file.
3580         * lib/vfprintf.c: New file.
3581         * m4/vfprintf-posix.m4: New file.
3582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
3583         REPLACE_VFPRINTF.
3584         * lib/stdio_.h (vfprintf): New declaration.
3585         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
3586         REPLACE_VFPRINTF.
3587
3588 2007-03-08  Bruno Haible  <bruno@clisp.org>
3589
3590         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
3591
3592 2007-03-08  Bruno Haible  <bruno@clisp.org>
3593
3594         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
3595         instead of 'expr' invocations.
3596         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3599         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3600         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3601         Suggested by Paul Eggert.
3602
3603 2007-03-08  Bruno Haible  <bruno@clisp.org>
3604
3605         * modules/fseterr-tests: New file.
3606         * tests/test-fseterr.c: New file.
3607
3608         * modules/fseterr: New file.
3609         * lib/fseterr.h: New file.
3610         * lib/fseterr.c: New file.
3611
3612 2007-03-08  Bruno Haible  <bruno@clisp.org>
3613
3614         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
3615         * lib/getopt_.h: Likewise.
3616         * lib/mbswidth.h: Likewise.
3617         * lib/setenv.h: Likewise.
3618         * lib/vasnprintf.h: Likewise.
3619         * lib/vasprintf.h: Likewise.
3620         * lib/verror.h: Likewise.
3621         * lib/xsetenv.h: Likewise.
3622         * lib/xvasprintf.h: Likewise.
3623
3624 2007-03-08  Jim Meyering  <jim@meyering.net>
3625
3626         * users.txt: Add parted.
3627
3628         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
3629
3630 2007-03-07  Bruno Haible  <bruno@clisp.org>
3631
3632         * m4/printf.m4: Make the shell script snippets copy&pastable.
3633
3634 2007-03-02  Bruno Haible  <bruno@clisp.org>
3635
3636         * lib/netinet_in_.h: New file.
3637         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
3638         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
3639         * modules/netinet_in (Files): Add lib/netinet_in_.h.
3640         (Depends-on): Add absolute-header.
3641         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
3642         into netinet/in.h.
3643
3644 2007-03-03  Bruno Haible  <bruno@clisp.org>
3645
3646         * lib/sys_select_.h: New file.
3647         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
3648         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
3649         * modules/sys_select (Files): Add lib/sys_select_.h.
3650         (Depends-on): Add absolute-header.
3651         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
3652         into sys/select.h.
3653
3654 2007-03-02  Bruno Haible  <bruno@clisp.org>
3655
3656         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
3657         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
3658         values.
3659         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
3660         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
3661         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
3662         * modules/sys_socket (Depends-on): Add absolute-header.
3663         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
3664         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
3665         (Include): Remove requirement of inclusion of <sys/types.h>.
3666
3667 2007-03-02  Bruno Haible  <bruno@clisp.org>
3668
3669         * lib/byteswap_.h (bswap_32): Fix formula.
3670
3671 2007-03-06  Bruno Haible  <bruno@clisp.org>
3672
3673         * modules/sprintf-posix-tests: New file.
3674         * tests/test-sprintf-posix.c: New file.
3675
3676         * modules/sprintf-posix: New file.
3677         * lib/sprintf.c: New file.
3678         * m4/sprintf-posix.m4: New file.
3679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
3680         REPLACE_SPRINTF.
3681         * lib/stdio_.h (sprintf): New declaration.
3682         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
3683         REPLACE_SPRINTF.
3684
3685 2007-03-06  Bruno Haible  <bruno@clisp.org>
3686
3687         * modules/vsprintf-posix-tests: New file.
3688         * tests/test-vsprintf-posix.c: New file.
3689         * tests/test-sprintf-posix.h: New file.
3690
3691         * modules/vsprintf-posix: New file.
3692         * lib/vsprintf.c: New file.
3693         * m4/vsprintf-posix.m4: New file.
3694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
3695         REPLACE_VSPRINTF.
3696         * lib/stdio_.h (vsprintf): New declaration.
3697         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
3698         REPLACE_VSPRINTF.
3699
3700 2007-03-06  Bruno Haible  <bruno@clisp.org>
3701
3702         * modules/vsnprintf (Depend-on): Remove minmax.
3703
3704 2007-03-06  Bruno Haible  <bruno@clisp.org>
3705
3706         * modules/snprintf-posix-tests: New file.
3707         * tests/test-snprintf-posix.c: New file.
3708
3709         * modules/snprintf-posix: New file.
3710         * m4/snprintf-posix.m4: New file.
3711         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
3712         gl_FUNC_SNPRINTF.
3713         (gl_FUNC_SNPRINTF): Invoke it.
3714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
3715         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
3716         is set.
3717         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
3718
3719 2007-03-06  Bruno Haible  <bruno@clisp.org>
3720
3721         * modules/vsnprintf-posix-tests: New file.
3722         * tests/test-vsnprintf-posix.c: New file.
3723         * tests/test-snprintf-posix.h: New file.
3724
3725         * modules/vsnprintf-posix: New file.
3726         * m4/vsnprintf-posix.m4: New file.
3727         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
3728         gl_FUNC_VSNPRINTF.
3729         (gl_FUNC_VSNPRINTF): Invoke it.
3730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
3731         * lib/stdio_.h (vsnprintf): Define as a replacement if
3732         REPLACE_VSNPRINTF is set.
3733         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
3734
3735 2007-03-06  Bruno Haible  <bruno@clisp.org>
3736
3737         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
3738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
3739
3740 2007-03-06  Bruno Haible  <bruno@clisp.org>
3741
3742         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
3743         (asinl): Declare also if HAVE_DECL_ASINL is set.
3744         (atanl): Declare also if HAVE_DECL_ATANL is set.
3745         (ceill): Declare also if HAVE_DECL_CEILL is set.
3746         (cosl): Declare also if HAVE_DECL_COSL is set.
3747         (expl): Declare also if HAVE_DECL_EXPL is set.
3748         (floorl): Declare also if HAVE_DECL_FLOORL is set.
3749         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
3750         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
3751         (logl): Declare also if HAVE_DECL_LOGL is set.
3752         (sinl): Declare also if HAVE_DECL_SINL is set.
3753         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
3754         (tanl): Declare also if HAVE_DECL_TANL is set.
3755         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
3756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
3757         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
3758         declaration of frexpl, ldexpl.
3759         * modules/printf-frexpl (Depends-on): Add math.
3760         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
3761
3762 2007-03-05  Bruno Haible  <bruno@clisp.org>
3763
3764         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
3765         frexpl and ldexpl are declared.
3766         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
3767
3768 2007-03-05  Bruno Haible  <bruno@clisp.org>
3769
3770         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
3771         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
3772
3773 2007-03-05  Bruno Haible  <bruno@clisp.org>
3774
3775         * lib/stdio_.h: Include <stddef.h>.
3776
3777 2007-03-05  Bruno Haible  <bruno@clisp.org>
3778
3779         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
3780
3781 2007-03-05  Bruno Haible  <bruno@clisp.org>
3782
3783         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
3784         NetBSD 4, from Ralf Wildenhues.
3785
3786 2007-03-04  Bruno Haible  <bruno@clisp.org>
3787
3788         * lib/vasprintf.h: Update #if logic for the case when the functions
3789         exist but are overridden.
3790
3791 2007-03-04  Bruno Haible  <bruno@clisp.org>
3792
3793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
3794         implementations: glibc-2.4 and MacOS X 10.3.
3795         * tests/test-vasnprintf-posix.c (test_function): Test also the case
3796         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
3797         * tests/test-vasprintf-posix.c (test_function): Likewise.
3798
3799 2007-03-04  Bruno Haible  <bruno@clisp.org>
3800
3801         * modules/vasprintf-posix-tests: New file.
3802         * tests/test-vasprintf-posix.c: New file.
3803
3804         * modules/vasprintf-posix: New file.
3805         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
3806         defined.
3807         * m4/vasprintf-posix.m4: New file.
3808         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
3809         gl_FUNC_VASPRINTF.
3810         (gl_FUNC_VASPRINTF): Invoke it.
3811         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
3812         here.
3813         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
3814
3815 2007-03-04  Bruno Haible  <bruno@clisp.org>
3816
3817         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
3818         REPLACE_GETTIMEOFDAY.
3819         * modules/sys_time (Makefile.am): Likewise.
3820         * m4/sys_time_h.m4: Likewise.
3821         * m4/gettimeofday.m4: Likewise.
3822
3823 2007-03-04  Bruno Haible  <bruno@clisp.org>
3824
3825         * modules/vasnprintf-posix-tests: New file.
3826         * tests/test-vasnprintf-posix.c: New file.
3827
3828         * modules/vasnprintf-posix: New file.
3829         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
3830         printf-frexpl.h.
3831         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
3832         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
3833         REPLACE_VASNPRINTF is defined.
3834         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
3835         gl_FUNC_VASNPRINTF.
3836         (gl_FUNC_VASNPRINTF): Invoke it.
3837         * m4/vasnprintf-posix.m4: New file.
3838         * m4/printf.m4: New file.
3839
3840 2007-03-04  Bruno Haible  <bruno@clisp.org>
3841
3842         Compile progreloc.c only if --enable-relocatable is specified.
3843         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
3844         if --enable-relocatable was specified.
3845         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
3846         lib_SOURCES.
3847
3848 2007-03-04  Jim Meyering  <jim@meyering.net>
3849
3850         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
3851         Use it consistently, rather than enumerating errno constants.
3852
3853 2007-03-04  Bruno Haible  <bruno@clisp.org>
3854
3855         * modules/xvasprintf-tests: New file.
3856         * tests/test-xvasprintf.c: New file.
3857
3858         * modules/vasprintf-tests: New file.
3859         * tests/test-vasprintf.c: New file.
3860
3861         * modules/vasnprintf-tests: New file.
3862         * tests/test-vasnprintf.c: New file.
3863
3864         * modules/vsnprintf-tests: New file.
3865         * tests/test-vsnprintf.c: New file.
3866
3867         * modules/snprintf-tests: New file.
3868         * tests/test-snprintf.c: New file.
3869
3870 2007-03-04  Bruno Haible  <bruno@clisp.org>
3871
3872         Compile relocatable.c only if --enable-relocatable is specified.
3873         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
3874         gl_RELOCATABLE_LIBRARY.
3875         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
3876         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
3877         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
3878         gl_RELOCATABLE_LIBRARY.
3879         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
3880         (Makefile.am): Remove lib_SOURCES.
3881         * modules/relocatable-lib-lgpl (configure.ac): Invoke
3882         gl_RELOCATABLE_LIBRARY.
3883         (Makefile.am): Remove lib_SOURCES.
3884         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
3885         always.
3886         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3887         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
3888
3889 2007-03-04  Bruno Haible  <bruno@clisp.org>
3890
3891         * modules/argmatch-tests: New file.
3892         * tests/test-argmatch.c: New file.
3893
3894         * tests/test-allocsa.c (main): Halve the number of loop runs.
3895
3896         * modules/alloca-opt-tests: New file.
3897         * tests/test-alloca-opt.c: New file.
3898
3899 2007-03-04  Jim Meyering  <jim@meyering.net>
3900
3901         Work around difference between Linux ACLs and Solaris 10 ZFS.
3902         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
3903         for EINVAL.
3904
3905 2007-03-03  Bruno Haible  <bruno@clisp.org>
3906
3907         * modules/relocatable-prog (Depends-on): Add back progreloc's
3908         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
3909
3910 2007-03-03  Bruno Haible  <bruno@clisp.org>
3911
3912         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
3913         * modules/relocatable-lib: New file.
3914
3915 2007-03-03  Bruno Haible  <bruno@clisp.org>
3916
3917         * modules/relocatable-prog: Renamed from modules/relocatable.
3918         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
3919
3920 2007-03-03  Bruno Haible  <bruno@clisp.org>
3921
3922         * modules/relocatable-script (Files): Add doc/relocatable.texi,
3923         m4/relocatable-lib.m4.
3924         (Depends-on): Remove 'relocatable'.
3925         (configure.ac): Add gl_RELOCATABLE_NOP.
3926
3927 2007-03-03  Bruno Haible  <bruno@clisp.org>
3928
3929         * modules/relocatable-prog-wrapper: New file.
3930         * modules/relocatable (Depends-on): Add it. Remove all other
3931         dependencies except progname.
3932         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
3933
3934         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
3935         (gl_FUNC_STRERROR): Nop.
3936         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
3937
3938         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
3939         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
3940
3941         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
3942         (gl_FUNC_READLINK): Update.
3943
3944         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
3945
3946 2007-03-03  Bruno Haible  <bruno@clisp.org>
3947
3948         * lib/xreadlink.c: Include <unistd.h> unconditionally.
3949         * modules/xreadlink (Depends-on): Add unistd.
3950         * modules/xreadlink-with-size (Depends-on): Likewise.
3951
3952 2007-03-03  Bruno Haible  <bruno@clisp.org>
3953
3954         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
3955         extracted from gt_FUNC_SETENV.
3956         (gt_FUNC_SETENV): Remove macro.
3957         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
3958         remove gt_FUNC_SETENV.
3959
3960 2007-03-03  Bruno Haible  <bruno@clisp.org>
3961
3962         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
3963         ENABLE_RELOCATABLE here.
3964         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
3965
3966 2007-03-03  Bruno Haible  <bruno@clisp.org>
3967
3968         * modules/rbtreehash-list-tests (Depends-on): Add progname.
3969         * tests/test-rbtreehash_list.c: Include progname.h.
3970         (main): Call set_program_name.
3971
3972         * modules/rbtree-oset-tests (Depends-on): Add progname.
3973         * tests/test-rbtree_oset.c: Include progname.h.
3974         (main): Call set_program_name.
3975
3976         * modules/rbtree-list-tests (Depends-on): Add progname.
3977         * tests/test-rbtree_list.c: Include progname.h.
3978         (main): Call set_program_name.
3979
3980         * modules/linked-list-tests (Depends-on): Add progname.
3981         * tests/test-linked_list.c: Include progname.h.
3982         (main): Call set_program_name.
3983
3984 2007-03-03  Bruno Haible  <bruno@clisp.org>
3985
3986         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
3987         All uses of __restrict changed to _Restrict_.
3988         * lib/glob_.h (__restrict): Remove macro.
3989
3990 2007-03-02  Bruno Haible  <bruno@clisp.org>
3991
3992         * modules/gettext (configure.ac): Require gettext infrastructure
3993         from version 0.16.1.
3994
3995 2007-03-02  Bruno Haible  <bruno@clisp.org>
3996
3997         * modules/linkedhash-list-tests (Depends-on): Add progname.
3998         * tests/test-linkedhash_list.c: Include progname.h.
3999         (main): Call set_program_name.
4000
4001         * modules/carray-list-tests (Depends-on): Add progname.
4002         * tests/test-carray_list.c: Include progname.h.
4003         (main): Call set_program_name.
4004
4005         * modules/avltreehash-list-tests (Depends-on): Add progname.
4006         * tests/test-avltreehash_list.c: Include progname.h.
4007         (main): Call set_program_name.
4008
4009         * modules/avltree-oset-tests (Depends-on): Add progname.
4010         * tests/test-avltree_oset.c: Include progname.h.
4011         (main): Call set_program_name.
4012
4013         * modules/avltree-list-tests (Depends-on): Add progname.
4014         * tests/test-avltree_list.c: Include progname.h.
4015         (main): Call set_program_name.
4016
4017         * modules/array-oset-tests (Depends-on): Add progname.
4018         * tests/test-array_oset.c: Include progname.h.
4019         (main): Call set_program_name.
4020
4021         * modules/array-list-tests (Depends-on): Add progname.
4022         * tests/test-array_list.c: Include progname.h.
4023         (main): Call set_program_name.
4024
4025         * modules/argp-tests (Depends-on): Add progname.
4026         * tests/test-argp.c: Include argp.h first. Include progname.h.
4027         (main): Call set_program_name.
4028
4029 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
4030
4031         * doc/gnulib-tool.texi (Initial import): Reword description of
4032         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
4033         limited effect even if defined after the first system include.
4034
4035 2007-03-01  Bruno Haible  <bruno@clisp.org>
4036
4037         * build-aux/config.libpath: Update to libtool-1.5.22.
4038         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4039
4040 2007-03-01  Bruno Haible  <bruno@clisp.org>
4041
4042         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
4043         foo_CFLAGS.
4044         Reported by Ralf Wildenhues.
4045
4046 2007-03-01  Bruno Haible  <bruno@clisp.org>
4047
4048         * build-aux/install-reloc: Remove object files left over by some
4049         compilers.
4050         Reported by Ralf Wildenhues.
4051
4052 2007-03-01  Bruno Haible  <bruno@clisp.org>
4053
4054         * build-aux/install-reloc: Break long lines.
4055
4056 2007-03-01  Bruno Haible  <bruno@clisp.org>
4057
4058         * doc/relocatable.texi: Document that it may not work on OpenBSD.
4059         Reported by Ralf Wildenhues.
4060
4061 2007-03-01  Bruno Haible  <bruno@clisp.org>
4062
4063         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
4064         include ordering constraints.
4065
4066 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
4067
4068         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
4069         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
4070         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
4071         as another example.
4072         * lib/time_.h: Fix misspelling.
4073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4074         Require gl_HEADER_TIME_H_DEFAULTS.
4075         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
4076         * m4/time_r.m4 (gl_TIME_R): Likewise.
4077         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
4078
4079 2007-03-01  Bruno Haible  <bruno@clisp.org>
4080
4081         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
4082         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4083
4084 2007-03-01  Jim Meyering  <jim@meyering.net>
4085
4086         * modules/xreadlink (Maintainer): Add my name.
4087         * modules/xreadlink-with-size (Depends-on): Alphabetize.
4088
4089 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
4090             Bruno Haible  <bruno@clisp.org>
4091
4092         * build-aux/install-reloc: Compile also c-ctype.c.
4093         * build-aux/relocatable.sh.in: New file.
4094         * doc/relocatable.texi: New file.
4095         * doc/relocatable-maint.texi: New file.
4096         * doc/gnulib.texi: Include relocatable-maint.texi.
4097         * lib/progreloc.c: Include unistd.h unconditionally.
4098         * lib/relocwrapper.c: Include unistd.h unconditionally.
4099         Include c-ctype.h.
4100         (add_dotbin): Use c_tolower.
4101         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
4102         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
4103         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
4104         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
4105         to m4/relocatable-lib.m4.
4106         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
4107         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
4108         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
4109         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
4110         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
4111         * modules/relocatable: New file.
4112         * modules/relocatable-lib: New file.
4113         * modules/relocatable-script: New file.
4114
4115 2007-02-28  Bruno Haible  <bruno@clisp.org>
4116
4117         Import --enable-relocatable infrastructure.
4118         * build-aux/config.libpath: New file, from GNU gettext.
4119         * build-aux/install-reloc: New file, from GNU gettext.
4120         * build-aux/reloc-ldflags: New file, from GNU gettext.
4121         * lib/relocatable.h: New file, from GNU gettext.
4122         * lib/relocatable.c: New file, from GNU gettext.
4123         * lib/relocwrapper.c: New file, from GNU gettext.
4124         * m4/relocatable.m4: New file, from GNU gettext.
4125
4126 2007-02-28  Bruno Haible  <bruno@clisp.org>
4127
4128         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
4129
4130         * modules/xreadlink: New file, from GNU gettext with modifications.
4131         * lib/xreadlink.c: New file, from GNU gettext.
4132         * lib/xreadlink.h: Add comments.
4133         (xreadlink): New declaration.
4134
4135         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
4136         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
4137         lib/xreadlink-with-size.c.
4138         (configure.ac): Remove gl_XREADLINK invocation.
4139         (Makefile.am): Augment lib_SOURCES.
4140         * m4/xreadlink.m4: Remove file.
4141         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
4142         (xreadlink_with_size): Renamed from xreadink.
4143         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
4144         * modules/canonicalize (Depends-on): Replace xreadlink with
4145         xreadlink-with-size.
4146         * lib/canonicalize.c (canonicalize_filename_mode): Update.
4147
4148 2007-02-25  Jim Meyering  <jim@meyering.net>
4149
4150         * build-aux/announce-gen: When complaining about excess arguments,
4151         list them.
4152
4153 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4154
4155         * README: Document signed integer overflow situation more
4156         accurately.
4157
4158 2007-02-25  Bruno Haible  <bruno@clisp.org>
4159
4160         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
4161         'a' or 'A' conversion.
4162
4163 2007-02-25  Bruno Haible  <bruno@clisp.org>
4164
4165         * modules/filename: Renamed from modules/pathname.
4166         (Files): Replace lib/pathname.h with lib/filename.h. Replace
4167         lib/concatpath.c with lib/concat-filename.c.
4168         (Makefile.am): Update.
4169         (Include): Replace pathname.h with filename.h.
4170         * lib/filename.h: Renamed from lib/pathname.h.
4171         (concatenated_filename): Renamed from concatenated_pathname.
4172         * lib/concat-filename.c: Renamed from lib/concatpath.c.
4173         (concatenated_filename): Renamed from concatenated_pathname.
4174         * lib/findprog.c: Include filename.h instead of pathname.h.
4175         (find_in_path): Update.
4176         * lib/javacomp.c: Include filename.h instead of pathname.h.
4177         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
4178         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
4179         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
4180         is_oldgcj_14_13_usable, is_javac_usable): Update.
4181         * lib/javaexec.c: Include filename.h instead of pathname.h.
4182         (execute_java_class): Update.
4183         * modules/findprog: Update.
4184         * modules/javacomp: Update.
4185         * modules/javaexec: Update.
4186         * MODULES.html.sh (File system functions): Add 'filename', remove
4187         'pathname'.
4188
4189 2007-02-25  Bruno Haible  <bruno@clisp.org>
4190
4191         * modules/printf-frexpl-tests: New file.
4192         * tests/test-printf-frexpl.c: New file.
4193
4194         * modules/printf-frexpl: New file.
4195         * lib/printf-frexpl.h: New file.
4196         * lib/printf-frexpl.c: New file.
4197         * m4/printf-frexpl.m4: New file.
4198
4199 2007-02-25  Bruno Haible  <bruno@clisp.org>
4200
4201         * modules/printf-frexp-tests: New file.
4202         * tests/test-printf-frexp.c: New file.
4203
4204         * modules/printf-frexp: New file.
4205         * lib/printf-frexp.h: New file.
4206         * lib/printf-frexp.c: New file.
4207         * m4/printf-frexp.m4: New file.
4208
4209 2007-02-25  Bruno Haible  <bruno@clisp.org>
4210
4211         Assume automake >= 1.10 for the tests.
4212         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
4213         * modules/arctwo-tests: Likewise.
4214         * modules/argp-tests: Likewise.
4215         * modules/avltree-list-tests: Likewise.
4216         * modules/avltree-oset-tests: Likewise.
4217         * modules/avltreehash-list-tests: Likewise.
4218         * modules/carray-list-tests: Likewise.
4219         * modules/crc-tests: Likewise.
4220         * modules/des-tests: Likewise.
4221         * modules/gc-arcfour-tests: Likewise.
4222         * modules/gc-arctwo-tests: Likewise.
4223         * modules/gc-des-tests: Likewise.
4224         * modules/gc-hmac-md5-tests: Likewise.
4225         * modules/gc-hmac-sha1-tests: Likewise.
4226         * modules/gc-md2-tests: Likewise.
4227         * modules/gc-md4-tests: Likewise.
4228         * modules/gc-md5-tests: Likewise.
4229         * modules/gc-pbkdf2-sha1-tests: Likewise.
4230         * modules/gc-rijndael-tests: Likewise.
4231         * modules/gc-sha1-tests: Likewise.
4232         * modules/gc-tests: Likewise.
4233         * modules/getaddrinfo-tests: Likewise.
4234         * modules/hmac-md5-tests: Likewise.
4235         * modules/hmac-sha1-tests: Likewise.
4236         * modules/linked-list-tests: Likewise.
4237         * modules/linkedhash-list-tests: Likewise.
4238         * modules/lock-tests: Likewise.
4239         * modules/md2-tests: Likewise.
4240         * modules/md4-tests: Likewise.
4241         * modules/md5-tests: Likewise.
4242         * modules/rbtree-list-tests: Likewise.
4243         * modules/rbtree-oset-tests: Likewise.
4244         * modules/rbtreehash-list-tests: Likewise.
4245         * modules/read-file-tests: Likewise.
4246         * modules/rijndael-tests: Likewise.
4247         * modules/stdint-tests: Likewise.
4248         * modules/tls-tests: Likewise.
4249
4250 2007-02-24  Bruno Haible  <bruno@clisp.org>
4251
4252         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
4253         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
4254         function; instead check whether isnan with a double argument links.
4255         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
4256         function; instead check whether isnan with a 'long double' argument
4257         links.
4258         Reported by Eric Blake <ebb9@byu.net>.
4259
4260 2007-02-24  Bruno Haible  <bruno@clisp.org>
4261
4262         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
4263         defined.
4264         * lib/isnanl.c: Remove all code. Just include isnan.c.
4265         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
4266
4267 2007-02-25  Jim Meyering  <jim@meyering.net>
4268
4269         Avoid conflicting types for 'unsetenv' on FreeBSD.
4270         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
4271         conflicting with FreeBSD's (5.0 and 6.1) function declaration
4272         in stdlib.h.
4273
4274 2007-02-24  Bruno Haible  <bruno@clisp.org>
4275
4276         * modules/isnanl-nolibm-tests: New file.
4277         * tests/test-isnanl.c: New file.
4278
4279         * modules/isnanl-nolibm: New file.
4280         * lib/isnanl.h: New file.
4281         * lib/isnanl.c: New file.
4282         * m4/isnanl.m4: New file.
4283
4284 2007-02-24  Bruno Haible  <bruno@clisp.org>
4285
4286         * modules/isnan-nolibm-tests: New file.
4287         * tests/test-isnan.c: New file.
4288
4289         * modules/isnan-nolibm: New file.
4290         * lib/isnan.h: New file.
4291         * lib/isnan.c: New file.
4292         * m4/isnan.m4: New file.
4293
4294 2007-02-24  Bruno Haible  <bruno@clisp.org>
4295
4296         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
4297         assume that an exponent fits in 20 bits.
4298
4299 2007-02-24  Jim Meyering  <jim@meyering.net>
4300
4301         * m4/regex.m4: Update the description of the configure-time option,
4302         --without-included-regex, to state accurately what the defaults are,
4303         and perhaps to give people an idea why using this option is risky.
4304
4305 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4306
4307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
4308         loops on small arguments.  This attempts to avoid the problem
4309         Bruno Haible reported for AIX 4.3.2 in
4310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
4311
4312 2007-02-23  Bruno Haible  <bruno@clisp.org>
4313
4314         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
4315         Needed for help2man.
4316
4317 2007-02-23  Karl Berry  <karl@gnu.org>
4318
4319         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
4320         exists, foo.h should be cvs-ignored, not committed.
4321
4322 2007-02-23  Eric Blake  <ebb9@byu.net>
4323
4324         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
4325         * lib/stat-time.h (includes): Likewise.
4326         * lib/utimecmp.c (includes): Likewise.
4327         * lib/utimens.h (includes): Likewise.
4328         * lib/getdate.y (includes): Also include "timespec.h" for use
4329         internal to the module.
4330         * modules/utimens (Depends-on): Revert yesterday's patch.
4331         * modules/nanosleep (Depends-on): Add missing dependency.
4332
4333 2007-02-22  Bruno Haible  <bruno@clisp.org>
4334
4335         * lib/glob.c: Don't include getlogin_r.h.
4336
4337 2007-02-22  Jim Meyering  <jim@meyering.net>
4338
4339         * modules/utimens (Depends-on): Add timespec, required for
4340         utimens.h's inclusion of timespec.h.
4341
4342 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4343
4344         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
4345         long unreadable paths in GNU/Linux.  Problem reported by Andreas
4346         Schwab in
4347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
4348         I'll try to think of a better way to fix the Solaris problem.
4349
4350         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
4351         like glibc; on Solaris 10, it fails with errno == EINVAL.
4352         POSIX says the behavior is unspecified if the first argument is NULL,
4353         so play it safe and never pass NULL to the system getcwd.
4354
4355 2007-02-21  Jim Meyering  <jim@meyering.net>
4356
4357         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
4358         of gettimeofday.  It would conflict with the one now always
4359         provided via sys_time_.h.  Reported by Matthew Woehlke, as
4360         an IRIX 6.5 build failure.
4361
4362 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4363
4364         Minor fixups to port to Solaris 10 with Sun C 5.8.
4365         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
4366         * modules/getcwd (Depends-on): Add dirfd.
4367         * lib/putenv.c (putenv): #undef it.
4368         (rpl_putenv): New decl.
4369         (malloc, free): Include <stdlib.h> rather than prototyping separately.
4370
4371 2007-02-20  Bruno Haible  <bruno@clisp.org>
4372
4373         * modules/stdio-tests: New file.
4374         * tests/test-stdio.c: New file.
4375
4376         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
4377         (Depends-on): Add stdio.
4378         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4379         (Include): Use <stdio.h> instead of vsnprintf.h.
4380         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4381         HAVE_DECL_VSNPRINTF.
4382         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
4383
4384         * modules/snprintf (Files): Remove lib/snprintf.h.
4385         (Depends-on): Add stdio.
4386         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4387         (Include): Use <stdio.h> instead of snprintf.h.
4388         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4389         HAVE_DECL_SNPRINTF.
4390         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
4391         * lib/getaddrinfo.c: Likewise.
4392
4393         * modules/stdio: New file.
4394         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
4395         * lib/snprintf.h: Remove file.
4396         * lib/vsnprintf.h: Remove file.
4397         * lib/.cppi-disable: Remove snprintf.h.
4398         * m4/stdio_h.m4: New file.
4399         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
4400
4401 2007-02-20  Jim Meyering  <jim@meyering.net>
4402
4403         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
4404         used by e.g., mingw.  From Bruno Haible.
4405
4406 2007-02-19  Bruno Haible  <bruno@clisp.org>
4407
4408         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
4409         warnings.
4410         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4411
4412 2007-02-19  Bruno Haible  <bruno@clisp.org>
4413
4414         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
4415         from mingw users.
4416
4417 2007-02-19  Bruno Haible  <bruno@clisp.org>
4418
4419         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
4420         warnings.
4421         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
4422
4423 2007-02-19  Jim Meyering  <jim@meyering.net>
4424
4425         Don't use FD after a successful "fdopendir (fd)".
4426         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
4427         Reset it by calling dirfd on the just-obtained DIR*.
4428
4429         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
4430         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
4431
4432 2007-02-18  Bruno Haible  <bruno@clisp.org>
4433
4434         * lib/readlink.c: Include <unistd.h>.
4435         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
4436         HAVE_READLINK.
4437         * modules/readlink (Depends-on): Add unistd.
4438         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4439         (Include): Add <unistd.h>.
4440
4441         * lib/getlogin_r.h: Remove file.
4442         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
4443         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
4444         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
4445         HAVE_DECL_GETLOGIN_R.
4446         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
4447         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4448         (Include): Use <unistd.h> instead of getlogin_r.h.
4449
4450         * lib/getcwd.h: Remove file.
4451         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
4452         * lib/xgetcwd.c: Likewise.
4453         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
4454         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
4455         * modules/getcwd (Files): Remove lib/getcwd.h.
4456         (Depends-on): Add unistd.
4457         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4458         (Include): Use <unistd.h> instad of getcwd.h.
4459
4460         * lib/ftruncate.c: Include <unistd.h> first.
4461         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
4462         Set HAVE_FTRUNCATE.
4463         * modules/ftruncate (Depends-on): Add unistd.
4464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4465
4466         * lib/fchdir.c: Include <unistd.h> first.
4467         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
4468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
4469         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
4470         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4471         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
4472
4473         * lib/dup2.c: Include <unistd.h> first.
4474         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
4475         HAVE_DUP2.
4476         * modules/dup2 (Depends-on): Add unistd.
4477         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4478
4479         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
4480         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
4481         REPLACE_CHOWN. Don't define chown as a macro here.
4482         * modules/chown (Depends-on): Add unistd.
4483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4484
4485         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
4486         Add definition for GL_LINK_WARNING.
4487         (chown, dup2): New declarations.
4488         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
4489         link warning.
4490         (ftruncate): New declaration.
4491         (getcwd): New declaration, taken from old getcwd.h.
4492         (getlogin_r): New declaration, taken from old getlogin_r.h.
4493         (readlink): New declaration.
4494         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
4495         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
4496         (gl_PREREQ_UNISTD): Remove macro.
4497         (gl_UNISTD_MODULE_INDICATOR): New macro.
4498         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
4499         many new variables. Don't set UNISTD_H.
4500         * modules/unistd (Description): Change.
4501         (Depends-on): Add link-warning.
4502         (configure.ac): Update.
4503         (Makefile.am): Create unistd.h always. Substitute many new variables
4504         into it.
4505
4506 2007-02-18  Bruno Haible  <bruno@clisp.org>
4507
4508         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
4509         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
4510         HAVE_GETSUBOPT.
4511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
4512         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
4513         * lib/getsubopt.h: Remove file.
4514         * modules/getsubopt (Files): Remove lib/getsubopt.h.
4515         (Depends-on): Add stdlib.
4516         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4517         (Includes): Use <stdlib.h> instead of getsubopt.h.
4518         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
4519         Set HAVE_GETSUBOPT.
4520         * lib/getsubopt.c: Don't include getsubopt.h.
4521
4522 2007-02-18  Bruno Haible  <bruno@clisp.org>
4523
4524         * modules/fchdir (Depends-on): Add dup2.
4525
4526 2007-02-18  Bruno Haible  <bruno@clisp.org>
4527
4528         * lib/stdlib_.h: Handle glibc's special invocation convention
4529         specially.
4530
4531 2007-02-18  Bruno Haible  <bruno@clisp.org>
4532
4533         * modules/stdlib-tests: New file.
4534         * tests/test-stdlib.c: New file.
4535
4536         * modules/mkstemp (Files): Remove lib/mkstemp.h.
4537         (Depends-on): Add stdlib.
4538         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4539         (Includes): Use <stdlib.h> instead of mkstemp.h.
4540         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4541         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
4542         * lib/mkstemp.c: Don't include mkstemp.h.
4543         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
4544         * lib/stdlib--.h: Don't include mkstemp.h.
4545
4546         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
4547         (Depends-on): Add stdlib.
4548         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4549         (Includes): Use <stdlib.h> instead of mkdtemp.h.
4550         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4551         HAVE_MKDTEMP.
4552         * lib/mkdtemp.c: Don't include mkdtemp.h.
4553         * lib/clean-temp.c: Don't include mkdtemp.h.
4554
4555         * modules/exit (Files): Remove lib/exit.h.
4556         (Depends-on): Add stdlib.
4557         (Makefile.am): Remove lib_SOURCES.
4558         (Include): Use <stdlib.h> instead of exit.h.
4559         * lib/argmatch.c: Don't include exit.h.
4560         * lib/execute.c: Likewise.
4561         * lib/pagealign_alloc.c: Likewise.
4562         * lib/pipe.c: Likewise.
4563         * lib/wait-process.c: Likewise.
4564         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
4565         * lib/exitfail.c: Likewise.
4566         * lib/savewd.c: Likewise.
4567         * lib/xsetenv.c: Likewise.
4568
4569         * modules/stdlib: New file.
4570         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
4571         and extra comments about mkstemp().
4572         * lib/exit.h: Remove file.
4573         * lib/mkdtemp.h: Remove file.
4574         * lib/mkstemp.h: Remove file.
4575         * m4/stdlib_h.m4: New file.
4576         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
4577
4578 2007-02-18  Bruno Haible  <bruno@clisp.org>
4579
4580         * modules/math-tests: New file.
4581         * tests/test-math.c: New file.
4582
4583         * modules/math: New file.
4584         * modules/mathl (Files): Remove lib/mathl.h.
4585         (Depends-on): Add math.
4586         (Makefile.am): Don't mention mathl.h.
4587         (Include): Use <math.h> instead of mathl.h.
4588         * lib/math_.h: New file.
4589         * lib/mathl.h: Remove file.
4590         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
4591         mathl.h.
4592         * lib/asinl.c: Likewise.
4593         * lib/atanl.c: Likewise.
4594         * lib/ceill.c: Likewise.
4595         * lib/cosl.c: Likewise.
4596         * lib/expl.c: Likewise.
4597         * lib/floorl.c: Likewise.
4598         * lib/frexpl.c: Likewise.
4599         * lib/ldexpl.c: Likewise.
4600         * lib/logl.c: Likewise.
4601         * lib/sincosl.c: Likewise.
4602         * lib/sinl.c: Likewise.
4603         * lib/sqrtl.c: Likewise.
4604         * lib/tanl.c: Likewise.
4605         * lib/trigl.c: Likewise.
4606         * m4/math_h.m4: New file.
4607         * MODULES.html.sh (Mathematics): Add math.
4608
4609 2007-02-17  Bruno Haible  <bruno@clisp.org>
4610
4611         * modules/wctype-tests: New file.
4612         * tests/test-wctype.c: New file.
4613
4614         * modules/wchar-tests: New file.
4615         * tests/test-wchar.c: New file.
4616
4617         * modules/unistd-tests: New file.
4618         * tests/test-unistd.c: New file.
4619
4620         * modules/time-tests: New file.
4621         * tests/test-time.c: New file.
4622
4623         * modules/sysexits-tests: New file.
4624         * tests/test-sysexits.c: New file.
4625
4626         * modules/sys_time-tests: New file.
4627         * tests/test-sys_time.c: New file.
4628
4629         * modules/sys_stat-tests: New file.
4630         * tests/test-sys_stat.c: New file.
4631
4632         * modules/sys_socket-tests: New file.
4633         * tests/test-sys_socket.c: New file.
4634
4635         * modules/sys_select-tests: New file.
4636         * tests/test-sys_select.c: New file.
4637
4638         * modules/string-tests: New file.
4639         * tests/test-string.c: New file.
4640
4641         * modules/stdbool-tests: New file.
4642         * tests/test-stdbool.c: New file.
4643
4644         * modules/netinet_in-tests: New file.
4645         * tests/test-netinet_in.c: New file.
4646
4647         * modules/inttypes-tests: New file.
4648         * tests/test-inttypes.c: New file.
4649
4650         * modules/fcntl-tests: New file.
4651         * tests/test-fcntl.c: New file.
4652
4653         * modules/byteswap-tests: New file.
4654         * tests/test-byteswap.c: New file.
4655
4656         * modules/arpa_inet-tests: New file.
4657         * tests/test-arpa_inet.c: New file.
4658
4659 2007-02-17  Bruno Haible  <bruno@clisp.org>
4660
4661         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
4662         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
4663         if the corresponding module is not enabled. Emit link warnings if
4664         the function is used nevertheless.
4665         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
4666         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
4667         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
4668         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
4669         * modules/inttypes (Depends-on): Add link-warning.
4670         (Makefile.am): Copy the contents of build-aux/link-warning.h into
4671         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
4672         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
4673         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
4674         * modules/imaxdiv (configure.ac): Likewise.
4675         * modules/strtoimax (configure.ac): Likewise.
4676         * modules/strtoumax (configure.ac): Likewise.
4677
4678 2007-02-17  Bruno Haible  <bruno@clisp.org>
4679
4680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
4681         gl_STRING_MODULE_INDICATOR_DEFAULTS.
4682         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
4683         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
4684
4685 2007-02-17  Bruno Haible  <bruno@clisp.org>
4686
4687         * modules/link-warning: New file.
4688         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
4689         * lib/string_.h (GL_LINK_WARNING): Remove definition.
4690         * modules/string (Depends-on): Add link-warning.
4691         (Makefile.am): Copy the contents of build-aux/link-warning.h into
4692         string.h.
4693         * MODULES.html.sh (Support for building libraries and executables): Add
4694         link-warning.
4695
4696 2007-02-17  Bruno Haible  <bruno@clisp.org>
4697
4698         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
4699         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
4700         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
4701         long lines.
4702
4703 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
4704             Bruno Haible  <bruno@clisp.org>
4705
4706         * modules/tmpfile: New file.
4707         * lib/tmpfile.c: New file.
4708         * m4/tmpfile.m4: New file.
4709         * MODULES.html.sh (func_all_modules): New section "Input/output".
4710
4711 2007-02-15  Bruno Haible  <bruno@clisp.org>
4712
4713         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
4714         (supports_delete_on_close): New function.
4715         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
4716
4717 2007-02-14  Bruno Haible  <bruno@clisp.org>
4718
4719         * modules/mbspcasecmp-tests: New file.
4720         * tests/test-mbspcasecmp.sh: New file.
4721         * tests/test-mbspcasecmp.c: New file.
4722
4723         New module mbspcasecmp.
4724         * modules/mbspcasecmp: New file.
4725         * lib/mbspcasecmp.c: New file.
4726         * lib/string_.h (strncasecmp): Change warning message.
4727         (mbspcasecmp): New declaration.
4728         * m4/mbspcasecmp.m4: New file.
4729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4730         GNULIB_MBSPCASECMP.
4731         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
4732         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
4733
4734 2007-02-14  Bruno Haible  <bruno@clisp.org>
4735
4736         * modules/mbsncasecmp-tests: New file.
4737         * tests/test-mbsncasecmp.sh: New file.
4738         * tests/test-mbsncasecmp.c: New file.
4739
4740         New module mbsncasecmp.
4741         * modules/mbsncasecmp: New file.
4742         * lib/mbsncasecmp.c: New file.
4743         * lib/string_.h (mbsncasecmp): New declaration.
4744         * m4/mbsncasecmp.m4: New file.
4745         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4746         GNULIB_MBSNCASECMP.
4747         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
4748         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
4749
4750 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
4751
4752         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
4753         Verify that it doesn't overlap with our flags.
4754         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
4755         do not have the desired effect in multibyte locales; instead, use
4756         mbscasecmp.
4757         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
4758         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
4759         we don't require GNU fnmatch ourselves (if our users require it, they
4760         should do so explicitly).
4761
4762         Fix regex code so it doesn't rely on strcasecmp.
4763         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
4764         Otherwise, include gnulib's langinfo.h.
4765         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
4766         undesirable behavior in non-C locales.  Instead, rely on localecharset.
4767         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
4768         * modules/regex (FILES): Remove m4/codeset.m4.
4769         (Depends-on): Add localcharset.  Remove strcase.
4770
4771 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4772
4773         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
4774         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4775
4776 2007-02-13  Bruno Haible  <bruno@clisp.org>
4777
4778         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
4779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4780
4781 2007-02-12  Bruno Haible  <bruno@clisp.org>
4782
4783         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
4784         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
4785         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
4786         time warning rather than a link error.
4787
4788 2007-02-12  Bruno Haible  <bruno@clisp.org>
4789
4790         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
4791         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4793
4794 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4795
4796         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
4797         args, not 2.
4798
4799 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4800
4801         New module 'time', so that apps can include <time.h> as per
4802         POSIX and GNU instead of separate include files like time_r.h
4803         and timegm.h.  This implementation tries out a simpler approach
4804         for replacing decls in standard include files (as compared to
4805         the string module), somewhat as an experiment.
4806
4807         * config/srclist.txt: Comment out mktime.c for now.
4808         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
4809         since it doesn't apply any more.  Use generic wording instead.
4810         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
4811         'time'.
4812         * lib/time_.h, m4/time_h.m4, modules/time: New files.
4813         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
4814         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
4815         Don't include <sys/types.h>; no longer needed since we assume C89.
4816         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
4817         * lib/strftime.c: Likewise.
4818         * lib/time_r.c: Likewise.
4819         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
4820         * lib/nanosleep.c: Include <time.h> first, to check interface.
4821         * lib/strptime.c: Likewise.
4822         * lib/time_r.c: Likewise.
4823         * lib/timegm.c: Likewise.
4824         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
4825         needed.
4826         * lib/timegm.c: Don't include timegm.h; no longer needed.
4827         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
4828         time.h now handles any problems in that area.
4829         (struct timespec, nanosleep): Remove; time.h now arranges for these.
4830         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
4831         that time.h defines struct timespec.
4832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
4833         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
4834         handles that.
4835         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
4836         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
4837         needed.  Set REPLACE_LOCALTIME.
4838         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
4839         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
4840         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
4841         nanosleep; time_h.m4 now does that.  Don't require
4842         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
4843         module handles this now.
4844         * modules/getdate (Depends-on): Remove timespec.  Add time.
4845         * modules/nanosleep (Depends-on): Likewise.
4846         * modules/stat-time (Depends-on): Likewise.
4847         * modules/nanosleep (Include): Include time.h, not timespec.h.
4848         * modules/strptime (Files): Remove lib/strptime.h.
4849         (Depends-on): Add extensions, time.
4850         (Include): Include time.h, not strptime.h.
4851         * modules/time_r (Files): Remove lib/time_r.h.
4852         (Depends-on): Add time.
4853         (Include): Include time.h, not time_r.h.
4854         * modules/timegm: Likewise.
4855         * modules/timespec (Description): Now does timespec-related decls
4856         of our own, instead of struct timespec itself.
4857         (Depends-on): Add time; remove extensions.
4858         (Maintainer): Add self.
4859         * modules/utimecmp (Depends-on): Add time; remove timespec.
4860         * modules/utimens (Depends-on): Likewise.
4861         * modules/xnanosleep (Depends-on): Likewise.
4862
4863 2007-02-11  Bruno Haible  <bruno@clisp.org>
4864
4865         * lib/c-strstr.c: Include allocsa.h.
4866         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4867         * lib/c-strcasestr.c: Include allocsa.h.
4868         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4869         * lib/strcasestr.c: Include allocsa.h.
4870         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4871         * lib/mbsstr.c: Include allocsa.h.
4872         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
4873         allocsa/freesa instead of malloc/free.
4874         * lib/mbscasestr.c: Include allocsa.h.
4875         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
4876         allocsa/freesa instead of malloc/free.
4877         * modules/c-strstr (Depends-on): Add allocsa.
4878         * modules/c-strcasestr (Depends-on): Likewise.
4879         * modules/strcasestr (Depends-on): Likewise.
4880         * modules/mbsstr (Depends-on): Likewise.
4881         * modules/mbscasestr (Depends-on): Likewise.
4882
4883 2007-02-11  Bruno Haible  <bruno@clisp.org>
4884
4885         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
4886
4887         * modules/mbsspn-tests: New file.
4888         * tests/test-mbsspn.sh: New file.
4889         * tests/test-mbsspn.c: New file.
4890
4891 2007-02-11  Bruno Haible  <bruno@clisp.org>
4892
4893         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
4894
4895         * modules/mbspbrk-tests: New file.
4896         * tests/test-mbspbrk.sh: New file.
4897         * tests/test-mbspbrk.c: New file.
4898
4899 2007-02-11  Bruno Haible  <bruno@clisp.org>
4900
4901         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
4902         unneeded cast.
4903
4904         * modules/mbscspn-tests: New file.
4905         * tests/test-mbscspn.sh: New file.
4906         * tests/test-mbscspn.c: New file.
4907
4908 2007-02-11  Bruno Haible  <bruno@clisp.org>
4909
4910         * modules/mbscasecmp-tests: New file.
4911         * tests/test-mbscasecmp.sh: New file.
4912         * tests/test-mbscasecmp.c: New file.
4913
4914 2007-02-11  Bruno Haible  <bruno@clisp.org>
4915
4916         Ensure O(n) worst-case complexity of mbscasestr.
4917         * lib/mbscasestr.c: Include stdbool.h.
4918         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
4919         functions.
4920         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
4921         the bookkeeping indicates that it's worth it.
4922         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
4923
4924         * modules/mbscasestr-tests: New file.
4925         * tests/test-mbscasestr1.c: New file.
4926         * tests/test-mbscasestr2.sh: New file.
4927         * tests/test-mbscasestr2.c: New file.
4928         * tests/test-mbscasestr3.sh: New file.
4929         * tests/test-mbscasestr3.c: New file.
4930         * tests/test-mbscasestr4.sh: New file.
4931         * tests/test-mbscasestr4.c: New file.
4932         * m4/locale-tr.m4: New file.
4933
4934 2007-02-11  Bruno Haible  <bruno@clisp.org>
4935
4936         Ensure O(n) worst-case complexity of mbsstr.
4937         * lib/mbsstr.c: Include stdbool.h.
4938         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
4939         functions.
4940         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
4941         bookkeeping indicates that it's worth it.
4942         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
4943
4944         * modules/mbsstr-tests: New file.
4945         * tests/test-mbsstr1.c: New file.
4946         * tests/test-mbsstr2.sh: New file.
4947         * tests/test-mbsstr2.c: New file.
4948         * tests/test-mbsstr3.sh: New file.
4949         * tests/test-mbsstr3.c: New file.
4950         * m4/locale-fr.m4: New file.
4951
4952 2007-02-11  Bruno Haible  <bruno@clisp.org>
4953
4954         * lib/mbsrchr.c (mbsrchr): Fix bug.
4955
4956         * modules/mbsrchr-tests: New file.
4957         * tests/test-mbsrchr.sh: New file.
4958         * tests/test-mbsrchr.c: New file.
4959
4960 2007-02-11  Bruno Haible  <bruno@clisp.org>
4961
4962         * lib/mbschr.c (mbschr): Fix bug.
4963
4964         * modules/mbschr-tests: New file.
4965         * tests/test-mbschr.sh: New file.
4966         * tests/test-mbschr.c: New file.
4967         * m4/locale-zh.m4: New file.
4968
4969 2007-02-11  Bruno Haible  <bruno@clisp.org>
4970
4971         Support for copying multibyte string iterators.
4972         * lib/mbiter.h: Include <string.h>.
4973         (mbiter_multi_copy): New function.
4974         (mbi_copy): New macro.
4975         * lib/mbuiter.h: Include <string.h>.
4976         (mbuiter_multi_copy): New function.
4977         (mbui_copy): New macro.
4978
4979 2007-02-11  Bruno Haible  <bruno@clisp.org>
4980
4981         New module mbslen.
4982         * modules/mbslen: New file.
4983         * lib/mbslen.c: New file.
4984         * lib/string_.h (mbslen): New declaration.
4985         * m4/mbslen.m4: New file.
4986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4987         GNULIB_MBSLEN.
4988         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
4989         * MODULES.html.sh (Internationalization functions): Add mbslen.
4990
4991 2007-02-11  Bruno Haible  <bruno@clisp.org>
4992
4993         Ensure O(n) worst-case complexity of strcasestr substitute.
4994         * lib/strcasestr.c: Include stdbool.h.
4995         (knuth_morris_pratt): New function.
4996         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
4997         bookkeeping indicates that it's worth it.
4998         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
4999
5000         * modules/strcasestr-tests: New file.
5001         * tests/test-strcasestr.c: New file.
5002
5003 2007-02-11  Bruno Haible  <bruno@clisp.org>
5004
5005         Ensure O(n) worst-case complexity of c_strcasestr.
5006         * lib/c-strcasestr.c: Include stdbool.h, string.h.
5007         (knuth_morris_pratt): New function.
5008         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
5009         the bookkeeping indicates that it's worth it.
5010         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
5011
5012         * modules/c-strcasestr-tests: New file.
5013         * tests/test-c-strcasestr.c: New file.
5014
5015 2007-02-11  Bruno Haible  <bruno@clisp.org>
5016
5017         Ensure O(n) worst-case complexity of c_strstr.
5018         * lib/c-strstr.c: Include stdbool.h, string.h.
5019         (knuth_morris_pratt): New function.
5020         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
5021         bookkeeping indicates that it's worth it.
5022         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
5023
5024         * lib/c-strstr.c: Complete rewrite for maintainability.
5025
5026         * modules/c-strstr-tests: New file.
5027         * tests/test-c-strstr.c: New file.
5028
5029 2007-02-11  Bruno Haible  <bruno@clisp.org>
5030
5031         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
5032         5.2.1 and earlier, whereby \055 was treated just like the range
5033         delimiter '-'.
5034         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
5035
5036 2007-02-08  Bruno Haible  <bruno@clisp.org>
5037
5038         * modules/regex (Depends-on): Add stdbool.
5039         Reported by Dalibor Topic <robilad@kaffe.org>.
5040
5041 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
5042
5043         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
5044         Prefer returning from main to exiting from it.
5045         Remove unnecessary parens after sizeof.
5046
5047 2007-02-05  Bruno Haible  <bruno@clisp.org>
5048
5049         New module mbssep.
5050         * modules/mbssep: New file.
5051         * lib/mbssep.c: New file.
5052         * lib/string_.h (strsep): Add a conditional link warning.
5053         (mbssep): New declaration.
5054         * m4/mbssep.m4: New file.
5055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5056         GNULIB_MBSSEP.
5057         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
5058         * MODULES.html.sh (Internationalization functions): Add mbssep.
5059
5060 2007-02-05  Bruno Haible  <bruno@clisp.org>
5061
5062         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
5063         Optimize search in case of 1 delimiter.
5064
5065 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
5066
5067         * lib/acl.h: Include sys/types.h before sys/acl.h.
5068
5069 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
5070
5071         Merge upstream fix for glibc bugzilla #3957:
5072
5073         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
5074
5075         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
5076         bit for RE_HAT_LISTS_NOT_NEWLINE.
5077         (build_charclass_op): Remove bogus comment.
5078
5079 2007-02-05  Simon Josefsson  <simon@josefsson.org>
5080
5081         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
5082
5083 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5084
5085         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
5086         * lib/memmem.c [!defined _LIBC]: Include config.h.
5087
5088 2007-02-04  Bruno Haible  <bruno@clisp.org>
5089
5090         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
5091         warning message.
5092
5093 2007-02-04  Bruno Haible  <bruno@clisp.org>
5094
5095         New module mbstok_r.
5096         * modules/mbstok_r: New file.
5097         * lib/mbstok_r.c: New file.
5098         * lib/string_.h (strtok_r): Change argument names to match the
5099         comments. Add a conditional link warning.
5100         (mbstok_r): New declaration.
5101         * m4/mbstok_r.m4: New file.
5102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5103         GNULIB_MBSTOK_R.
5104         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
5105         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
5106
5107 2007-02-04  Bruno Haible  <bruno@clisp.org>
5108
5109         New module mbsspn.
5110         * modules/mbsspn: New file.
5111         * lib/mbsspn.c: New file.
5112         * lib/string_.h (strspn): Add a conditional link warning.
5113         (mbsspn): New declaration.
5114         * m4/mbsspn.m4: New file.
5115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5116         GNULIB_MBSSPN.
5117         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
5118         * MODULES.html.sh (Internationalization functions): Add mbsspn.
5119
5120 2007-02-04  Bruno Haible  <bruno@clisp.org>
5121
5122         New module mbspbrk.
5123         * modules/mbspbrk: New file.
5124         * lib/mbspbrk.c: New file.
5125         * lib/string_.h (strpbrk): Add a conditional link warning.
5126         (mbspbrk): New declaration.
5127         * m4/mbspbrk.m4: New file.
5128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5129         GNULIB_MBSPBRK.
5130         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
5131         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
5132
5133 2007-02-04  Bruno Haible  <bruno@clisp.org>
5134
5135         New module mbscspn.
5136         * modules/mbscspn: New file.
5137         * lib/mbscspn.c: New file.
5138         * lib/string_.h (strcspn): Add a conditional link warning.
5139         (mbscspn): New declaration.
5140         * m4/mbscspn.m4: New file.
5141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5142         GNULIB_MBSCSPN.
5143         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
5144         * MODULES.html.sh (Internationalization functions): Add mbscspn.
5145
5146 2007-02-04  Bruno Haible  <bruno@clisp.org>
5147
5148         New module mbscasestr, reduced goal of strcasestr.
5149         * modules/mbscasestr: New file.
5150         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
5151         (mbscasestr): Renamed from strcasestr.
5152         * lib/strcasestr.c: Don't include mbuiter.h.
5153         (strcasestr): Remove support for multibyte locales.
5154         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
5155         Change the conditional link warning.
5156         (mbscasestr): New declaration.
5157         * m4/mbscasestr.m4: New file.
5158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
5159         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
5160         REPLACE_STRCASESTR.
5161         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
5162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5163         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5164         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
5165         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
5166         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5167         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
5168         (Depends-on): Remove mbuiter.
5169         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
5170
5171 2007-02-04  Bruno Haible  <bruno@clisp.org>
5172
5173         Simplify handling of strncasecmp.
5174         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
5175         the conditional link warning.
5176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5177         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
5178         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
5179         * modules/strcase (configure.ac): Don't invoke
5180         gl_STRING_MODULE_INDICATOR.
5181         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
5182
5183 2007-02-04  Bruno Haible  <bruno@clisp.org>
5184
5185         New module mbscasecmp, reduced goal of strcasecmp.
5186         * modules/mbscasecmp: New file.
5187         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
5188         (mbscasecmp): Renamed from strcasecmp.
5189         * lib/strcasecmp.c: Don't include mbuiter.h.
5190         (strcasecmp): Remove support for multibyte locales.
5191         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
5192         Change the conditional link warning.
5193         (mbscasecmp): New declaration.
5194         * m4/mbscasecmp.m4: New file.
5195         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
5196         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
5197         REPLACE_STRCASECMP.
5198         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
5199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5200         GNULIB_MBSCASECMP.
5201         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
5202         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
5203         * modules/strcase (Files): Remove m4/mbrtowc.m4.
5204         (Depends-on): Remove mbuiter.
5205         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
5206
5207 2007-02-04  Bruno Haible  <bruno@clisp.org>
5208
5209         New module mbsstr. Remove module strstr.
5210         * modules/mbsstr: New file.
5211         * modules/strstr: Remove file.
5212         * lib/mbsstr.c: Renamed from lib/strstr.c.
5213         (mbsstr): Renamed from strstr.
5214         * lib/string_.h (strstr): Remove declaration. Change the conditional
5215         link warning.
5216         (mbsstr): New declaration.
5217         * m4/mbsstr.m4: New file.
5218         * m4/strstr.m4: Remove file.
5219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5220         REPLACE_STRSTR.
5221         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
5222         Don't initialize GNULIB_STRSTR.
5223         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
5224         substitute GNULIB_STRSTR and REPLACE_STRSTR.
5225         * MODULES.html.sh (Internationalization functions): Add mbsstr.
5226         (Support for systems lacking ANSI C 89): Remove strstr.
5227
5228 2007-02-04  Bruno Haible  <bruno@clisp.org>
5229
5230         New module mbsrchr.
5231         * modules/mbsrchr: New file.
5232         * lib/mbsrchr.c: New file.
5233         * lib/string_.h (strrchr): Add a conditional link warning.
5234         (mbsrchr): New declaration.
5235         * m4/mbsrchr.m4: New file.
5236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5237         GNULIB_MBSRCHR.
5238         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
5239         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
5240
5241 2007-02-04  Bruno Haible  <bruno@clisp.org>
5242
5243         New module mbschr.
5244         * modules/mbschr: New file.
5245         * lib/mbschr.c: New file.
5246         * lib/string_.h (strchr): Add a conditional link warning.
5247         (mbschr): New declaration.
5248         * m4/mbschr.m4: New file.
5249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5250         GNULIB_MBSCHR.
5251         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
5252         * MODULES.html.sh (Internationalization functions): Add mbschr.
5253
5254 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5255
5256         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
5257
5258         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
5259
5260 2007-02-04  Bruno Haible  <bruno@clisp.org>
5261
5262         New module description section 'configure.ac-early'.
5263         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
5264         (func_get_autoconf_early_snippet): New function.
5265         (func_import, func_create_testdir): Use it. Remove special cases for
5266         modules 'extensions' and 'lock'.
5267         * modules/extensions (configure.ac-early): Require
5268         gl_USE_SYSTEM_EXTENSIONS.
5269         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
5270
5271 2007-02-04  Bruno Haible  <bruno@clisp.org>
5272
5273         Make use of gcj-4.3's -fsource and -ftarget option.
5274         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
5275         and if so try the options -fsource and -ftarget.
5276         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
5277         source_version, ftarget_option, target_version arguments.
5278         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
5279         (is_envjavac_oldgcj_14_14_usable): Renamed from
5280         is_envjavac_gcj_14_14_usable.
5281         (is_envjavac_oldgcj_14_13_usable): Renamed from
5282         is_envjavac_gcj_14_13_usable.
5283         (is_gcj_present): Update.
5284         (is_gcj_43, is_gcj43_usable): New functions.
5285         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
5286         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
5287         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
5288         try the options -fsource and -ftarget.
5289
5290 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5291
5292         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
5293         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
5294         larger value.
5295
5296 2007-02-03  Jim Meyering  <jim@meyering.net>
5297
5298         Give tools a better chance to allocate space for very large buffers.
5299         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
5300
5301         Make pwd and readlink work also when run with an unreadable parent dir
5302         on systems with openat support.
5303         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
5304         provided getcwd function, even when we have openat support.
5305         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
5306
5307 2007-02-02  Bruno Haible  <bruno@clisp.org>
5308
5309         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5310         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
5311         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
5312         portability problems if one of these functions is only used on specific
5313         platforms.
5314         Reported by Paul Eggert.
5315
5316 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5317
5318         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
5319         is causing more trouble than it's curing.
5320         * lib/regex_internal.h (__mempcpy): Remove.
5321         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
5322         (and make the code a tad smaller to boot).
5323         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
5324
5325 2007-02-02  Jim Meyering  <jim@meyering.net>
5326
5327         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
5328         section, not in the Makefile.am: one.
5329
5330 2007-02-02  Eric Blake  <ebb9@byu.net>
5331
5332         * lib/strchrnul.c: Always include config.h first.
5333
5334         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
5335         gnulib strstr is not necessary here.
5336
5337 2007-02-02  Simon Josefsson  <simon@josefsson.org>
5338
5339         * m4/socklen.m4: Fix typo.
5340
5341 2007-02-02  Eric Blake  <ebb9@byu.net>
5342
5343         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
5344         * modules/netinet_in (Makefile.am): Likewise.
5345
5346 2007-02-01  Bruno Haible  <bruno@clisp.org>
5347
5348         * lib/string_.h (GL_LINK_WARNING): New macro.
5349         (strcasecmp, strstr, strcasestr): If provided by the system,
5350         conditionally define as a macro that leads to a warning instead of to
5351         an error.
5352         (strncasecmp): Conditionally define as a macro that leads to a warning.
5353
5354 2007-02-01  Karl Berry  <karl@gnu.org>
5355
5356         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
5357
5358 2007-02-01  Bruno Haible  <bruno@clisp.org>
5359
5360         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
5361         renamings.
5362
5363 2007-02-01  Eric Blake  <ebb9@byu.net>
5364
5365         * modules/regex (Depends-on): Revert dependence on mempcpy.
5366         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
5367         module's definition of mempcpy.
5368         Reported by Paul Eggert.
5369
5370 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
5371
5372         * lib/string_.h: If the gnulib module XYZ is not present, undefine
5373         the symbol XYZ before redefining it.  This fixes a problem with
5374         programs that don't use XYZ, when compiled on systems that define
5375         XYZ to something else.
5376
5377 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
5378
5379         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
5380         occurs when "mkdir -m foo" creates a setgid directory that is (1)
5381         writeable to group or other and (2) is intended to have a special
5382         mode bit that is set or cleared.  In such a case, the directory
5383         should be neither group- nor other-writeable until the special
5384         mode bits are right.
5385
5386 2007-01-31  Eric Blake  <ebb9@byu.net>
5387
5388         * modules/mountlist (Depends-on): Add strstr.
5389
5390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
5391         bug.
5392         * modules/string (Makefile.am): Remove redundant replacement.
5393         * modules/regex (Depends-on): Add mempcpy.
5394
5395 2007-01-31  Bruno Haible  <bruno@clisp.org>
5396
5397         New module description field 'Link'.
5398         * gnulib-tool (func_usage): Document --extract-link-directive.
5399         (sed_extract_prog): Recognize 'Link' directive.
5400         (func_get_link_directive): New function.
5401         (func_import): Show summary of link directives.
5402         Handle --extract-link-directive option.
5403         * modules/acl (Link): New section.
5404         * modules/clock-time (Link): New section.
5405         * modules/euidaccess (Link): New section.
5406         * modules/gettext (Link): New section.
5407         * modules/iconv (Link): New section.
5408         * modules/lock (Link): New section.
5409         * modules/nanosleep (Link): New section.
5410         * modules/readline (Link): New section.
5411
5412 2007-01-27  Bruno Haible  <bruno@clisp.org>
5413
5414         Enforce the use of gnulib modules for unportable <string.h> functions.
5415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
5416         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
5417         (gl_HEADER_STRING_H_BODY): Require it.
5418         * lib/string_.h: If the gnulib module XYZ is not present, redefine
5419         the symbol XYZ to one that gives a link error.
5420         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
5421         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
5422         * modules/mempcpy (configure.ac): Likewise.
5423         * modules/memrchr (configure.ac): Likewise.
5424         * modules/stpcpy (configure.ac): Likewise.
5425         * modules/stpncpy (configure.ac): Likewise.
5426         * modules/strcase (configure.ac): Likewise.
5427         * modules/strcasestr (configure.ac): Likewise.
5428         * modules/strchrnul (configure.ac): Likewise.
5429         * modules/strdup (configure.ac): Likewise.
5430         * modules/strndup (configure.ac): Likewise.
5431         * modules/strnlen (configure.ac): Likewise.
5432         * modules/strpbrk (configure.ac): Likewise.
5433         * modules/strsep (configure.ac): Likewise.
5434         * modules/strstr (configure.ac): Likewise.
5435         * modules/strtok_r (configure.ac): Likewise.
5436
5437 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
5438
5439         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
5440
5441 2007-01-30  Jim Meyering  <jim@meyering.net>
5442
5443         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
5444
5445 2007-01-29  Bruno Haible  <bruno@clisp.org>
5446
5447         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
5448         * lib/execute.c: Likewise.
5449         * lib/pipe.c: Likewise.
5450         * lib/printf-args.h: Likewise.
5451         * lib/printf-args.c: Likewise.
5452         * lib/printf-parse.c: Likewise.
5453         * lib/vasnprintf.c: Likewise.
5454
5455 2007-01-29  Eric Blake  <ebb9@byu.net>
5456
5457         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
5458         declaration.
5459
5460 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5461
5462         * lib/strptime.h (strptime): Use 'restrict' for args where
5463         POSIX requires this.
5464         * lib/strptime.c (strptime): Likewise.
5465         Change license notice from LGPL to GPL, since gnulib-tool will
5466         change this as needed.
5467         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
5468         defined.
5469         Include "strptime.h" first, to check interface.
5470         Do not #undef _LIBC and _NL_CURRENT.
5471         Do not include <stdlib.h>; no longer needed.
5472         Include "time_r.h" and declare ptime_locale_status
5473         only if _LIBC is not defined.
5474         (__P): Remove unused macro.
5475         (match_string): Bring back glibc version, but use it only if _LIBC
5476         is defined.
5477         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
5478         Remove unnecessary assertion and abort() call.
5479         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
5480         * m4/strptime.m4: Fix serial number comment.
5481         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
5482         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
5483         (Depends-on): Add time_r.
5484
5485 2007-01-29  Bruno Haible  <bruno@clisp.org>
5486
5487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5488         strptime.
5489         * modules/strptime (Depends-on): Add stdbool.
5490         * lib/strptime.h: Include <time.h> always. Add comments.
5491
5492 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5493
5494         * modules/strptime: New file.
5495         * lib/strptime.h: New file.
5496         * lib/strptime.c: New file.
5497         * m4/strptime.m4: New file.
5498
5499 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5500
5501         * MODULES.html.sh: New module mpsort.
5502         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
5503
5504         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
5505         a circularity problem with HP-UX ia64 reported by Bob Proulx in
5506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
5507         All uses changed.
5508         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
5509         All uses changed.
5510         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
5511         to _Restrict_.
5512         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
5513         the parameter matches the prototype.
5514
5515 2007-01-28  Jim Meyering  <jim@meyering.net>
5516
5517         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
5518         sys/time.h here, reverting that part of the previous patch:
5519         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
5520
5521 2007-01-28  Bruno Haible  <bruno@clisp.org>
5522
5523         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
5524         value of $(SYS_TIME_H).
5525         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
5526         remove it conditionally, too. [added by Jim Meyering]
5527         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
5528         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
5529         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
5530         GETTIMEOFDAY_REPLACEMENT to 1.
5531
5532 2007-01-28  Bruno Haible  <bruno@clisp.org>
5533
5534         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
5535         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
5536         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
5537         Set UNISTD_H instead of UNISTD_H2.
5538         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
5539
5540 2007-01-28  Bruno Haible  <bruno@clisp.org>
5541
5542         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
5543         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
5544
5545 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5546
5547         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
5548         (func_create_testdir): Ensure C locale for `grep' and `tr'
5549         character ranges.
5550         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
5551         ACLOCAL_AMFLAGS parsing state machine.
5552
5553 2007-01-27  Bruno Haible  <bruno@clisp.org>
5554
5555         * modules/unistr/base: Update.
5556
5557 2007-01-27  Bruno Haible  <bruno@clisp.org>
5558
5559         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
5560         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
5561         * modules/unistr/u32-mbtouc-unsafe: Renamed from
5562         modules/unistr/u32-mbtouc.
5563         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
5564         * lib/unistr.h: Update.
5565         * lib/linebreak.c: Update.
5566         * modules/unistr/u32-mbtouc: Renamed from
5567         modules/unistr/u32-mbtouc-safe.
5568         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
5569         * lib/unistr.h: Update.
5570         * lib/unistr/u32-to-u8.c: Update.
5571         * lib/unistr/u32-to-u16.c: Update.
5572
5573 2007-01-27  Bruno Haible  <bruno@clisp.org>
5574
5575         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
5576         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
5577         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
5578         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
5579         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
5580         * modules/unistr/u16-mbtouc-unsafe: Renamed from
5581         modules/unistr/u16-mbtouc.
5582         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
5583         * lib/unistr.h: Update.
5584         * lib/linebreak.c: Update.
5585         * modules/linebreak: Update.
5586         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
5587         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
5588         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
5589         * modules/unistr/u16-mbtouc: Renamed from
5590         modules/unistr/u16-mbtouc-safe.
5591         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
5592         * lib/unistr.h: Update.
5593         * lib/unistr/u16-to-u8.c: Update.
5594         * modules/unistr/u16-to-u8: Update.
5595         * lib/unistr/u16-to-u32.c: Update.
5596         * modules/unistr/u16-to-u32: Update.
5597
5598 2007-01-27  Bruno Haible  <bruno@clisp.org>
5599
5600         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
5601         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
5602         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
5603         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
5604         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
5605         * modules/unistr/u8-mbtouc-unsafe: Renamed from
5606         modules/unistr/u8-mbtouc.
5607         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
5608         * lib/unistr.h: Update.
5609         * lib/striconveh.c: Update.
5610         * modules/striconveh: Update.
5611         * lib/linebreak.c: Update.
5612         * modules/linebreak: Update.
5613         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
5614         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
5615         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
5616         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
5617         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
5618         * lib/unistr.h: Update.
5619         * lib/striconveh.c: Update.
5620         * modules/striconveh: Update.
5621         * lib/unistr/u8-to-u16.c: Update.
5622         * modules/unistr/u8-to-u16: Update.
5623         * lib/unistr/u8-to-u32.c: Update.
5624         * modules/unistr/u8-to-u32: Update.
5625
5626 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5627
5628         Sync from Libtool.
5629         * lib/argz.c: Do not include strings.h nor memory.h, include
5630         string.h unconditionally.  Patch by Simon Josefsson.
5631
5632 2007-01-27  Bruno Haible  <bruno@clisp.org>
5633
5634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
5635         from gl_HEADER_STRING_H_BODY.
5636         (gl_HEADER_STRING_H_BODY): Require it.
5637         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
5638         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
5639         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
5640         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
5641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5642         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
5643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5644         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
5645         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
5646         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5647         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
5648         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
5649         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
5650         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5651         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5652
5653 2007-01-27  Bruno Haible  <bruno@clisp.org>
5654
5655         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
5656         check_PROGRAMS into noinst_PROGRAMS.
5657         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
5658         check_PROGRAMS in this case.
5659         (func_import): Set for_test to false.
5660         (func_create_testdir): Set for_test to true.
5661
5662 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5663             Bruno Haible  <bruno@clisp.org>
5664
5665         * modules/strcasestr (Files): Remove lib/strcasestr.h.
5666         (Depends-on): Add string.
5667         (Includes): Use <string.h> instead of strcasestr.h.
5668         * modules/string (Makefile.am): Also substitute the value of
5669         REPLACE_STRCASESTR.
5670         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
5671         assume strcasestr is declared in <string.h> not <strings.h>. Also
5672         set REPLACE_STRCASESTR.
5673         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
5674         REPLACE_STRCASESTR.
5675         * lib/strcasestr.h: Remove file.
5676         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
5677         * lib/string_.h (strcasestr): New declaration.
5678
5679 2007-01-27  Bruno Haible  <bruno@clisp.org>
5680
5681         * lib/string_.h: Use 'extern'.
5682
5683 2007-01-27  Jim Meyering  <jim@meyering.net>
5684
5685         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
5686         of set-but-not-used local, "q".
5687
5688         * lib/mempcpy.c: Include <config.h> before <string.h>.
5689         This fixes a compilation error on HP-UX, due to the system's
5690         "restrict"-using mempcpy prototype.
5691
5692 2007-01-26  Bruno Haible  <bruno@clisp.org>
5693
5694         Small optimization.
5695         * lib/javacomp.c: Include c-strstr.h.
5696          (is_envjavac_gcj): Use c_strstr instead of strstr.
5697         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
5698
5699 2007-01-26  Bruno Haible  <bruno@clisp.org>
5700
5701         * MODULES.html.sh (Unicode string functions): Add the new modules.
5702
5703         * modules/uniconv/u32-strconv-to-locale: New file.
5704         * lib/uniconv/u32-strconv-to-locale.c: New file.
5705
5706         * modules/uniconv/u16-strconv-to-locale: New file.
5707         * lib/uniconv/u16-strconv-to-locale.c: New file.
5708
5709         * modules/uniconv/u8-strconv-to-locale: New file.
5710         * lib/uniconv/u8-strconv-to-locale.c: New file.
5711
5712         * modules/uniconv/u32-strconv-from-locale: New file.
5713         * lib/uniconv/u32-strconv-from-locale.c: New file.
5714
5715         * modules/uniconv/u16-strconv-from-locale: New file.
5716         * lib/uniconv/u16-strconv-from-locale.c: New file.
5717
5718         * modules/uniconv/u8-strconv-from-locale: New file.
5719         * lib/uniconv/u8-strconv-from-locale.c: New file.
5720
5721         * modules/uniconv/u32-strconv-to-enc: New file.
5722         * lib/uniconv/u32-strconv-to-enc.c: New file.
5723         * modules/uniconv/u32-strconv-to-enc-tests: New file.
5724         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
5725
5726         * modules/uniconv/u16-strconv-to-enc: New file.
5727         * lib/uniconv/u16-strconv-to-enc.c: New file.
5728         * lib/uniconv/u-strconv-to-enc.h: New file.
5729         * modules/uniconv/u16-strconv-to-enc-tests: New file.
5730         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
5731
5732         * modules/uniconv/u8-strconv-to-enc: New file.
5733         * lib/uniconv/u8-strconv-to-enc.c: New file.
5734         * modules/uniconv/u8-strconv-to-enc-tests: New file.
5735         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
5736
5737         * modules/uniconv/u32-strconv-from-enc: New file.
5738         * lib/uniconv/u32-strconv-from-enc.c: New file.
5739         * modules/uniconv/u32-strconv-from-enc-tests: New file.
5740         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
5741
5742         * modules/uniconv/u16-strconv-from-enc: New file.
5743         * lib/uniconv/u16-strconv-from-enc.c: New file.
5744         * modules/uniconv/u16-strconv-from-enc-tests: New file.
5745         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
5746
5747         * modules/uniconv/u8-strconv-from-enc: New file.
5748         * lib/uniconv/u8-strconv-from-enc.c: New file.
5749         * lib/uniconv/u-strconv-from-enc.h: New file.
5750         * modules/uniconv/u8-strconv-from-enc-tests: New file.
5751         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
5752
5753         * modules/uniconv/u32-conv-from-enc: New file.
5754         * lib/uniconv/u32-conv-from-enc.c: New file.
5755         * modules/uniconv/u32-conv-from-enc-tests: New file.
5756         * tests/uniconv/test-u32-conv-from-enc.c: New file.
5757
5758         * modules/uniconv/u16-conv-from-enc: New file.
5759         * lib/uniconv/u16-conv-from-enc.c: New file.
5760         * lib/uniconv/u-conv-from-enc.h: New file.
5761         * modules/uniconv/u16-conv-from-enc-tests: New file.
5762         * tests/uniconv/test-u16-conv-from-enc.c: New file.
5763
5764         * modules/uniconv/u8-conv-from-enc: New file.
5765         * lib/uniconv/u8-conv-from-enc.c: New file.
5766         * modules/uniconv/u8-conv-from-enc-tests: New file.
5767         * tests/uniconv/test-u8-conv-from-enc.c: New file.
5768
5769         * modules/uniconv/base: New file.
5770         * lib/uniconv.h: New file.
5771
5772 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
5773
5774         * doc/gnulib-tool.texi (Initial import): Update to match current
5775         behavior with strdup module.
5776         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
5777         * lib/memmem.h: Remove; all uses removed.  This is now done
5778         by <string.h>.
5779         * lib/mempcpy.h: Likewise.
5780         * lib/memrchr.h: Likewise.
5781         * lib/stpcpy.h: Likewise.
5782         * lib/stpncpy.h: Likewise.
5783         * lib/strcase.h: Likewise.
5784         * lib/strchrnul.h: Likewise.
5785         * lib/strdup.h: Likewise.
5786         * lib/strndup.h: Likewise.
5787         * lib/strnlen.h: Likewise.
5788         * lib/strpbrk.h: Likewise.
5789         * lib/strsep.h: Likewise.
5790         * lib/strstr.h: Likewise.
5791         * lib/strtok_r.h: Likewise.
5792         * lib/string_.h: New file.
5793         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
5794         Rely on <string.h> instead.
5795         * lib/canon-host.c: Likewise.
5796         * lib/chdir-long.c: Likewise.
5797         * lib/concatpath.c: Likewise.
5798         * lib/exclude.c: Likewise.
5799         * lib/fchdir.c: Likewise.
5800         * lib/getaddrinfo.c: Likewise.
5801         * lib/getcwd.c: Likewise.
5802         * lib/getsubopt.c: Likewise.
5803         * lib/glob.c: Likewise.
5804         * lib/hard-locale.c: Likewise.
5805         * lib/iconvme.c: Likewise.
5806         * lib/javacomp.c: Likewise.
5807         * lib/mempcpy.c: Likewise.
5808         * lib/memrchr.c: Likewise.
5809         * lib/regex_internal.h: Likewise.
5810         * lib/stpncpy.c: Likewise.
5811         * lib/strcasecmp.c: Likewise.
5812         * lib/strchrnul.c: Likewise.
5813         * lib/strdup.c: Likewise.
5814         * lib/striconv.c: Likewise.
5815         * lib/striconveh.c: Likewise.
5816         * lib/striconveha.c: Likewise.
5817         * lib/strncasecmp.c: Likewise.
5818         * lib/strndup.c: Likewise.
5819         * lib/strnlen.c: Likewise.
5820         * lib/strsep.c: Likewise.
5821         * lib/strstr.c: Likewise.
5822         * lib/strtok_r.c: Likewise.
5823         * lib/userspec.c: Likewise.
5824         * lib/w32spawn.h: Likewise.
5825         * lib/xstrndup.c: Likewise.
5826         * lib/mountlist.c (strstr): Remove decl.
5827         * m4/string_h.m4: New file.
5828         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
5829         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
5830         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
5831         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
5832         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
5833         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
5834         Set REPLACE_STRCASECMP if necessary.
5835         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
5836         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
5837         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
5838         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
5839         HAVE_DECL_STRDUP if necessary.
5840         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
5841         since gl_FUNC_STRNDUP does that now.
5842         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
5843         Check for decl here...
5844         (gl_PREREQ_STRNLEN): ... not here.
5845         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
5846         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
5847         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
5848         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
5849         necessary.
5850         * modules/string: New file.
5851         * modules/memmem (Files): Remove special-purpose include file.
5852         (Depends-on): Add string.
5853         (Include): Include <string.h>, not the removed file.
5854         * modules/mempcpy: Likewise.
5855         * modules/memrchr: Likewise.
5856         * modules/stpcpy: Likewise.
5857         * modules/stpncpy: Likewise.
5858         * modules/strcase: Likewise.
5859         * modules/strchrnul: Likewise.
5860         * modules/strdup: Likewise.
5861         * modules/strndup: Likewise.
5862         * modules/strnlen: Likewise.
5863         * modules/strpbrk: Likewise.
5864         * modules/strsep: Likewise.
5865         * modules/strstr: Likewise.
5866         * modules/strtok_r: Likewise.
5867         * tests/test-dirname.c: Don't include "strdup.h", since
5868         <string.h> now suffices.
5869         * tests/test-memmem.c: Don't include "memmem.h", since
5870         <string.h> now suffices.
5871
5872 2007-01-25  Bruno Haible  <bruno@clisp.org>
5873
5874         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
5875         *resultp is 0.
5876
5877         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
5878         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
5879         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
5880         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
5881
5882         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
5883         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
5884         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
5885         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
5886         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
5887         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
5888
5889 2007-01-24  Bruno Haible  <bruno@clisp.org>
5890
5891         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
5892         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
5893         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
5894         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
5895         gl_FUNC_FTS_CORE.
5896         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
5897         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
5898         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5899         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
5900         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
5901         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
5902         gl_FUNC_FCHOWNAT.
5903         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
5904         gl_FUNC_STRFTIME.
5905         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
5906         Reported by Ralf Wildenhues.
5907
5908 2007-01-24  Bruno Haible  <bruno@clisp.org>
5909
5910         Drop AC_REQUIRE calls that are redundant with the module dependencies.
5911         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
5912         gl_GETADDRINFO.
5913         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
5914         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
5915         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
5916
5917 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5918
5919         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
5920         Don't use 'exit'; just return from 'main'.
5921         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
5922
5923         * lib/fnmatch_.h: Readjust white space and comments to match
5924         glibc, to avoid spurious diffs.
5925
5926 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5927
5928         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
5929         2004-12-01 change by Jakub Jelinek, since this code won't compile
5930         if !LIBC.  Problem reported by Bob Proulx.
5931
5932 2007-01-23  Bruno Haible  <bruno@clisp.org>
5933
5934         * lib/striconveh.c: Include c-strcaseeq.h.
5935         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
5936         * modules/striconveh (Depends-on): Add c-strcaseeq.
5937
5938 2007-01-23  Bruno Haible  <bruno@clisp.org>
5939
5940         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
5941
5942         * modules/c-strcaseeq: New file.
5943         * lib/c-strcaseeq.h: New file.
5944
5945         * modules/streq: New file.
5946         * lib/streq.h: New file.
5947
5948 2007-01-23  Bruno Haible  <bruno@clisp.org>
5949
5950         * modules/striconveha-tests: New file.
5951         * tests/test-striconveha.c: New file.
5952
5953         * lib/striconveha.h: Include <stdbool.h>.
5954         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
5955         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
5956         (mem_iconveha_notranslit): Renamed from mem_iconveha.
5957         (mem_iconveha): New function.
5958         (str_iconveha_notranslit): Renamed from str_iconveha.
5959         (str_iconveha): New function.
5960         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
5961         c-strcase.
5962
5963 2007-01-23  Bruno Haible  <bruno@clisp.org>
5964
5965         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
5966         encodings without forgiving before trying any encoding with handler.
5967         (str_iconveha): Try all encodings without forgiving before trying any
5968         encoding with handler.
5969
5970 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5971
5972         Import the following changes from libc.
5973
5974         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
5975
5976         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
5977
5978         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
5979
5980         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
5981         normal_bracket label.
5982
5983         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
5984
5985         [BZ #361]
5986         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
5987         to normal_bracket after fetching the next character.
5988
5989 2007-01-22  Bruno Haible  <bruno@clisp.org>
5990
5991         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
5992         argument.
5993         * lib/striconveh.c (iconv_carefully_1): New function.
5994         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
5995         argument.
5996         (str_cd_iconveh): Update.
5997         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
5998         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
5999         * tests/test-striconveh.c (MAGIC): New macro.
6000         (new_offsets): New function.
6001         (main): Test call with and without offsets.
6002
6003 2007-01-22  Bruno Haible  <bruno@clisp.org>
6004
6005         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
6006         * modules/sys_select (Makefile.am): Likewise.
6007         * modules/sys_socket (Makefile.am): Likewise.
6008         * modules/sys_time (Makefile.am): Likewise.
6009
6010 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
6011
6012         * modules/gettimeofday (License): Change from GPL to LGPL, since
6013         gettimeofday is a library function.
6014
6015 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6016
6017         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
6018
6019 2007-01-21  Bruno Haible  <bruno@clisp.org>
6020
6021         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
6022
6023 2007-01-21  Bruno Haible  <bruno@clisp.org>
6024
6025         * modules/striconveha: New file.
6026         * lib/striconveha.h: New file.
6027         * lib/striconveha.c: New file.
6028         * MODULES.html.sh (Internationalization functions): Add striconveha.
6029         * lib/striconv.c (str_iconv): Optimize the case of an empty input
6030         string.
6031         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
6032
6033 2007-01-21  Bruno Haible  <bruno@clisp.org>
6034
6035         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
6036         * lib/striconveh.c (str_iconveh): Likewise.
6037
6038 2007-01-21  Bruno Haible  <bruno@clisp.org>
6039
6040         * lib/striconveh.h (mem_iconveh): New declaration.
6041         * lib/striconveh.c (mem_iconveh): New function.
6042         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
6043
6044 2007-01-21  Bruno Haible  <bruno@clisp.org>
6045
6046         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
6047
6048         * lib/striconveh.h (mem_cd_iconveh): Change specification.
6049         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
6050         original result buffer.
6051         (str_cd_iconveh): Update.
6052         * tests/test-striconveh.c (main): Update.
6053
6054         * lib/striconv.h (mem_cd_iconv): Change specification.
6055         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
6056         result buffer.
6057         (str_cd_iconv): Update.
6058         * tests/test-striconv.c (main): Update.
6059
6060 2007-01-21  Bruno Haible  <bruno@clisp.org>
6061
6062         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
6063
6064 2007-01-20  Jim Meyering  <jim@meyering.net>
6065
6066         * lib/userspec.c (parse_with_separator): If a user or group string
6067         starts with "+", skip the corresponding name-to-ID look-up, since
6068         such a look-up must fail: user and group names may not include "+".
6069
6070 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6071
6072         * lib/poll.c: Include sys/time.h and time.h unconditionally,
6073         since we now assume the sys_time module.
6074         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
6075         check for sys/time.h; no longer needed.
6076         * modules/poll (Depends-on): Depend on sys_time.
6077
6078 2007-01-18  Bruno Haible  <bruno@clisp.org>
6079
6080         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
6081         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6082
6083         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
6084         gettimeofday.
6085
6086         * tests/test-gettimeofday.c: Include <time.h>.
6087         (dummy): Remove variable.
6088
6089         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
6090         gl_HEADER_SYS_TIME_H.
6091         (gl_HEADER_SYS_TIME_H): New macro.
6092
6093         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
6094         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6095         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6096         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
6097         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6098         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
6099         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
6100         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6101         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
6102         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
6103         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6104
6105         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
6106         last change; it caused a compilation error when cross-compiling to
6107         Cygwin.
6108
6109 2007-01-18  Jim Meyering  <jim@meyering.net>
6110
6111         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
6112         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
6113         than the race-prone "test -d sys || mkdir sys".
6114         (configure.ac): Use AC_PROG_MKDIR_P.
6115         * modules/sys_select: Likewise.
6116         * modules/sys_socket: Likewise.
6117         * modules/sys_time: Likewise.
6118
6119 2007-01-18  Eric Blake  <ebb9@byu.net>
6120
6121         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
6122         replace gettimeofday.
6123         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
6124         name, to avoid infinite recursion.
6125
6126 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
6127
6128         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
6129         module sys_time.
6130         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
6131         assume timespec.h defines struct timeval.
6132         * lib/settime.c: Likewise.
6133         * lib/utimens.c: Likewise.
6134         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
6135         since we now assume the gettimeofday module.
6136         * lib/tempname.c (__gen_tempname): Likewise.
6137         * lib/gettimeofday.h: Remove.
6138         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
6139         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
6140         Include <time.h>, for 'time()'.
6141         (localtime_buffer_addr): Also use this workaround if
6142         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
6143         to simplify the uses.  All uses changed.
6144         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
6145         that #undef is inside {}, and 'const' follows type name consistently.
6146         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
6147         (gettimeofday): Do not use the maximum possible value for
6148         tv->tv_usec, since that might break usages other than ls.c.
6149         Instead, we'll leave ls.c alone.  This undoes today's patch
6150         by Bruno.  Add a compile-time warning for 1s-clock resolution;
6151         we've never observed the problem but might as well keep the
6152         canary.
6153         * lib/nanosleep.c: Include timespec.h first, for interface check.
6154         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
6155         now assume the sys_time module.
6156         * lib/tempname.c: Likewise.
6157         * lib/timespec.h: Likewise.
6158         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
6159         needed.
6160         * lib/strftime.c: Likewise.
6161         * lib/timespec.h: Likewise.
6162         * lib/posixtm.c: Include posixtm.h first, for interface check.
6163         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
6164         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
6165         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
6166         * lib/sys_time_.h: New file.
6167         * lib/timespec.h (struct timespec): Use long int, not long.
6168         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6169         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
6170         Remove obsolescent call to AC_HEADER_TIME.
6171         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6173         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6174         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
6175         Likewise.
6176         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6177         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
6178         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
6179         into the sys_time module.  Check for gettimeofday just once.
6180         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
6181         for gettimeofday signature to just check the signature.  Merely
6182         compile it, since linking doesn't test signature.  Improve test for
6183         whether gettimeofday.o is actually needed.
6184         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
6185         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
6186         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
6187         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6188         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
6189         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
6190         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
6191         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
6192         than worrying about sys/time.h.
6193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6194         Don't bother worrying about TIME_WITH_SYS_TIME.
6195         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
6196         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
6197         * m4/sys_time_h.m4: New file.
6198         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
6199         Don't include sys/time.h.  Return from main rather than exiting.
6200         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
6201         all uses changed.
6202         * modules/gethrxtime (Depends-on): Add sys_time.
6203         * modules/gettime (Depends-on): Likewise.
6204         * modules/gettimeofday (Depends-on): Likewise.
6205         * modules/nanosleep (Depends-on): Likewise.
6206         * modules/settime (Depends-on): Likewise.
6207         * modules/tempname (Depends-on): Likewise.
6208         * modules/utimens (Depends-on): Likewise.
6209         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
6210         (Include:) Change back to <sys/time.h>.
6211         (Maintainer:) Add self.
6212         * modules/sys_time: New file.
6213         * modules/tempname (Depends-on): Add gettimeofday.
6214         * tests/test-gettimeofday.c: Include <sys/time.h>
6215         rather than gettimeofday.h.
6216
6217 2007-01-17  Bruno Haible  <bruno@clisp.org>
6218
6219         * gnulib-tool (func_get_license): Revert last patch. Instead, let
6220         the license default to GPL.
6221         (func_create_testdir): Don't complain if a module is LGPL and its
6222         tests module depends on GPLed modules.
6223
6224 2007-01-17  Bruno Haible  <bruno@clisp.org>
6225
6226         * lib/gettimeofday.c (gettimeofday): Add code for the case
6227         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
6228         maximum possible value for tv->tv_usec, rather than the minimum one.
6229
6230 2005-10-08  Martin Lambers  <marlam@marlam.de>
6231 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6232 2007-01-16  Bruno Haible  <bruno@clisp.org>
6233
6234         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
6235         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
6236         gl_FUNC_GETTIMEOFDAY.
6237         (Include): Add gettimeofday.h.
6238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
6239         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
6240         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
6241         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
6242         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
6243         * lib/gettimeofday.h: New file.
6244         * lib/gettimeofday.c: Include <sys/timeb.h>.
6245         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
6246         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6247         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
6248         fall back on time().
6249
6250         * tests/test-gettimeofday.c: New file.
6251         * modules/gettimeofday-tests: New file.
6252
6253 2007-01-16  Eric Blake  <ebb9@byu.net>
6254
6255         * modules/fnmatch (Depends-on): Depend on wchar.
6256         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
6257         * m4/fnmatch.m4: Likewise.
6258         * modules/mbchar (Makefile.am): Assume <wchar.h>.
6259         * m4/mbchar.m4: Likewise.
6260         * modules/mbswidth (Depends-on): Depend on wchar.
6261         * lib/mbswidth.c: Assume <wchar.h>.
6262         * m4/mbswidth.m4: Likewise.
6263         * modules/quotearg (Depends-on): Depend on wchar.
6264         * lib/quotearg.c: Assume <wchar.h>.
6265         * m4/quotearg.m4: Likewise.
6266         * modules/regex (Depends-on): Depend on wchar.
6267         * lib/regex_internal.h: Assume <wchar.h>.
6268         * m4/regex.m4: Likewise.
6269         * modules/stdint (Depends-on): Depend on wchar.
6270         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
6271         * m4/stdint.m4: Likewise.
6272         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
6273         * modules/strftime (Depends-on): Depend on wchar.
6274         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
6275         * modules/strtol (Depends-on): Depend on wchar.
6276         * lib/strtol.c: Assume <wchar.h>.
6277         * modules/wcwidth (Depends-on): Depend on wchar.
6278         * lib/wcwidth.h: Assume <wchar.h>.
6279         * m4/wcwidth.m4: Likewise.
6280
6281 2007-01-16  Bruno Haible  <bruno@clisp.org>
6282
6283         * modules/csharpexec-script: New, created from...
6284         * modules/csharpexec: ... this.
6285
6286 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6287
6288         * modules/javaexec-script: New, created from...
6289         * modules/javaexec: ... this.
6290
6291 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6292
6293         * modules/poll (Dependencies): Add sys_select.
6294
6295 2007-01-15  Jim Meyering  <jim@meyering.net>
6296
6297         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
6298         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
6299         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
6300         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
6301
6302 2007-01-15  Bruno Haible  <bruno@clisp.org>
6303
6304         * modules/striconveh: New file.
6305         * lib/striconveh.h: New file.
6306         * lib/striconveh.c: New file.
6307         * MODULES.html.sh (Internationalization functions): Add striconveh.
6308
6309         * modules/striconveh-tests: New file.
6310         * tests/test-striconveh.c: New file.
6311
6312 2007-01-15  Bruno Haible  <bruno@clisp.org>
6313
6314         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
6315         not from GNU libiconv or GNU libc.
6316
6317 2007-01-15  Bruno Haible  <bruno@clisp.org>
6318
6319         * doc/gnulib-intro.texi (Copyright): Explain the different license
6320         terms for module descriptions, autoconf macros, tests, documentation.
6321
6322 2007-01-14  Bruno Haible  <bruno@clisp.org>
6323
6324         * modules/striconv-tests: New file.
6325         * tests/test-striconv.c: New file.
6326
6327 2007-01-14  Bruno Haible  <bruno@clisp.org>
6328
6329         * modules/iconv-tests: New file.
6330         * tests/test-iconv.c: New file.
6331
6332 2007-01-14  Bruno Haible  <bruno@clisp.org>
6333
6334         * gnulib-tool (func_get_license): For test modules, use the license of
6335         the main module.
6336
6337 2007-01-14  Bruno Haible  <bruno@clisp.org>
6338
6339         * modules/iconv (Include): Clarify that <iconv.h> can only be included
6340         if iconv is found to exist.
6341
6342 2007-01-14  Bruno Haible  <bruno@clisp.org>
6343
6344         * modules/c-ctype-tests: New file.
6345         * tests/test-c-ctype.c: New file.
6346
6347 2007-01-14  Bruno Haible  <bruno@clisp.org>
6348
6349         * modules/binary-io-tests: New file.
6350         * tests/test-binary-io.sh: New file.
6351         * tests/test-binary-io.c: New file.
6352
6353 2007-01-14  Bruno Haible  <bruno@clisp.org>
6354
6355         * modules/array-oset-tests: New file.
6356         * tests/test-array_oset.c: New file.
6357
6358 2007-01-14  Bruno Haible  <bruno@clisp.org>
6359
6360         * modules/array-list-tests: New file.
6361         * tests/test-array_list.c: New file.
6362
6363 2007-01-14  Bruno Haible  <bruno@clisp.org>
6364
6365         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
6366         and make.
6367         Reported by Simon Josefsson in
6368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
6369
6370 2007-01-14  Bruno Haible  <bruno@clisp.org>
6371
6372         * modules/allocsa-tests: New file.
6373         * tests/test-allocsa.c: New file.
6374
6375 2007-01-14  Bruno Haible  <bruno@clisp.org>
6376
6377         * modules/fchdir (Depends-on): Add absolute-header.
6378         * modules/unistd (Depends-on): Likewise.
6379
6380 2006-12-30  Bruno Haible  <bruno@clisp.org>
6381
6382         * modules/fchdir: New file.
6383         * modules/unistd (Files): Add lib/unistd_.h.
6384         (Makefile.am): Generate unistd.h from unistd_.h.
6385         * lib/fchdir.c: New file.
6386         * lib/dirent_.h: New file.
6387         * lib/unistd_.h: New file.
6388         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
6389         * m4/fchdir.m4: New file.
6390         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
6391         (gl_HEADER_UNISTD): Invoke it.
6392         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
6393         function.
6394         * lib/backupfile.c (opendir, closedir): Undefine.
6395         * lib/chown.c (open, close): Undefine.
6396         * lib/clean-temp.c (open, close): Undefine.
6397         * lib/copy-file.c (open, close): Undefine.
6398         * lib/execute.c (open, close): Undefine.
6399         * lib/fsusage.c (open, close): Undefine.
6400         * lib/gc-gnulib.c (open, close): Undefine.
6401         * lib/getcwd.c (opendir, closedir): Undefine.
6402         * lib/glob.c (opendir, closedir): Undefine.
6403         * lib/javacomp.c (open, close): Undefine.
6404         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
6405         * lib/openat-proc.c (open, close): Undefine.
6406         * lib/pagealign_alloc.c (open, close): Undefine.
6407         * lib/pipe.c (open, close): Undefine.
6408         * lib/progreloc.c (open, close): Undefine.
6409         * lib/savedir.c (opendir, closedir): Undefine.
6410         * lib/utime.c (open, close): Undefine.
6411         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
6412
6413 2007-01-10  Bruno Haible  <bruno@clisp.org>
6414
6415         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
6416
6417 2007-01-12  Eric Blake  <ebb9@byu.net>
6418
6419         Provide a robust <wchar.h>.  Further simplifications are now
6420         possible in other modules, but not included here.
6421         * modules/wchar: New module.
6422         * m4/wchar.m4: New file.
6423         * lib/wchar_.h: Likewise.
6424         * modules/mbchar (Depends-on): Depend on wchar, as the first use
6425         of the new module.
6426         * MODULES.html.sh (Extended multibyte and wide character utilities):
6427         New section.
6428
6429 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
6430
6431         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
6432         to a reasonable default for memory allocation.
6433         (xreadlink): Don't allocate a huge buffer, to work around a buggy
6434         file system that reports garbage st_size values for symlinks.
6435         Problem reported by Liyang Hu.
6436
6437 2007-01-11  Simon Josefsson  <simon@josefsson.org>
6438
6439         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
6440         Emacs .#* auto-save files).
6441
6442 2007-01-11  Bruno Haible  <bruno@clisp.org>
6443
6444         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
6445         directory.
6446
6447 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6448
6449         Use @...@ consistently in lib/wctype_.h.
6450         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
6451         on it being set to 1 or 0.
6452         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
6453         go back to AC_SUBSTing it.
6454         * modules/wctype (Makefile.am): Undo previous change.
6455
6456 2007-01-10  Eric Blake  <ebb9@byu.net>
6457
6458         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
6459         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
6460         * modules/wctype (Makefile.am): Likewise.
6461         Reported by Chris McGuire.
6462
6463 2007-01-10  Jim Meyering  <jim@meyering.net>
6464
6465         fts.c: a small readability/maintainability improvement
6466         * lib/fts.c (fts_read): Make this code slightly more readable and
6467         maintainable by hoisting the "sp->fts_cur = p" assignments to
6468         immediately follow the statements that set P.  Derived from
6469         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
6470
6471 2007-01-10  Eric Blake  <ebb9@byu.net>
6472
6473         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
6474         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
6475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6476         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6477         Reported by Chris McGuire.
6478
6479 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6480
6481         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
6482         in sed script.
6483
6484 2007-01-09  Bruno Haible  <bruno@clisp.org>
6485
6486         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
6487         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
6488         variables.
6489         (func_module): Use them.
6490
6491 2007-01-09  Bruno Haible  <bruno@clisp.org>
6492
6493         * modules/unistr/base: New file.
6494         * lib/unistr.h: New file.
6495
6496         * modules/unistr/u8-to-u16: New file.
6497         * lib/unistr/u8-to-u16.c: New file.
6498
6499         * modules/unistr/u8-to-u32: New file.
6500         * lib/unistr/u8-to-u32.c: New file.
6501
6502         * modules/unistr/u16-to-u8: New file.
6503         * lib/unistr/u16-to-u8.c: New file.
6504
6505         * modules/unistr/u16-to-u32: New file.
6506         * lib/unistr/u16-to-u32.c: New file.
6507
6508         * modules/unistr/u32-to-u8: New file.
6509         * lib/unistr/u32-to-u8.c: New file.
6510
6511         * modules/unistr/u32-to-u16: New file.
6512         * lib/unistr/u32-to-u16.c: New file.
6513
6514         * modules/unistr/u8-check: New file.
6515         * modules/unistr/u16-check: New file.
6516         * modules/unistr/u32-check: New file.
6517         * lib/unistr/u8-check.c: New file.
6518         * lib/unistr/u16-check.c: New file.
6519         * lib/unistr/u32-check.c: New file.
6520
6521         * modules/unistr/u8-chr: New file.
6522         * modules/unistr/u16-chr: New file.
6523         * modules/unistr/u32-chr: New file.
6524         * lib/unistr/u8-chr.c: New file.
6525         * lib/unistr/u16-chr.c: New file.
6526         * lib/unistr/u32-chr.c: New file.
6527
6528         * modules/unistr/u8-cmp: New file.
6529         * modules/unistr/u16-cmp: New file.
6530         * modules/unistr/u32-cmp: New file.
6531         * lib/unistr/u8-cmp.c: New file.
6532         * lib/unistr/u16-cmp.c: New file.
6533         * lib/unistr/u32-cmp.c: New file.
6534
6535         * modules/unistr/u8-cpy: New file.
6536         * modules/unistr/u16-cpy: New file.
6537         * modules/unistr/u32-cpy: New file.
6538         * lib/unistr/u8-cpy.c: New file.
6539         * lib/unistr/u16-cpy.c: New file.
6540         * lib/unistr/u32-cpy.c: New file.
6541         * lib/unistr/u-cpy.h: New file.
6542
6543         * modules/unistr/u8-cpy-alloc: New file.
6544         * modules/unistr/u16-cpy-alloc: New file.
6545         * modules/unistr/u32-cpy-alloc: New file.
6546         * lib/unistr/u8-cpy-alloc.c: New file.
6547         * lib/unistr/u16-cpy-alloc.c: New file.
6548         * lib/unistr/u32-cpy-alloc.c: New file.
6549         * lib/unistr/u-cpy-alloc.h: New file.
6550
6551         * modules/unistr/u8-endswith: New file.
6552         * modules/unistr/u16-endswith: New file.
6553         * modules/unistr/u32-endswith: New file.
6554         * lib/unistr/u8-endswith.c: New file.
6555         * lib/unistr/u16-endswith.c: New file.
6556         * lib/unistr/u32-endswith.c: New file.
6557         * lib/unistr/u-endswith.h: New file.
6558
6559         * modules/unistr/u8-mblen: New file.
6560         * modules/unistr/u16-mblen: New file.
6561         * modules/unistr/u32-mblen: New file.
6562         * lib/unistr/u8-mblen.c: New file.
6563         * lib/unistr/u16-mblen.c: New file.
6564         * lib/unistr/u32-mblen.c: New file.
6565
6566         * modules/unistr/u8-mbtouc: New file.
6567         * modules/unistr/u16-mbtouc: New file.
6568         * modules/unistr/u32-mbtouc: New file.
6569         * lib/unistr/u8-mbtouc.c: New file.
6570         * lib/unistr/u16-mbtouc.c: New file.
6571         * lib/unistr/u32-mbtouc.c: New file.
6572
6573         * modules/unistr/u8-mbtouc-safe: New file.
6574         * modules/unistr/u16-mbtouc-safe: New file.
6575         * modules/unistr/u32-mbtouc-safe: New file.
6576         * lib/unistr/u8-mbtouc-safe.c: New file.
6577         * lib/unistr/u16-mbtouc-safe.c: New file.
6578         * lib/unistr/u32-mbtouc-safe.c: New file.
6579
6580         * modules/unistr/u8-move: New file.
6581         * modules/unistr/u16-move: New file.
6582         * modules/unistr/u32-move: New file.
6583         * lib/unistr/u8-move.c: New file.
6584         * lib/unistr/u16-move.c: New file.
6585         * lib/unistr/u32-move.c: New file.
6586         * lib/unistr/u-move.h: New file.
6587
6588         * modules/unistr/u8-next: New file.
6589         * modules/unistr/u16-next: New file.
6590         * modules/unistr/u32-next: New file.
6591         * lib/unistr/u8-next.c: New file.
6592         * lib/unistr/u16-next.c: New file.
6593         * lib/unistr/u32-next.c: New file.
6594
6595         * modules/unistr/u8-prev: New file.
6596         * modules/unistr/u16-prev: New file.
6597         * modules/unistr/u32-prev: New file.
6598         * lib/unistr/u8-prev.c: New file.
6599         * lib/unistr/u16-prev.c: New file.
6600         * lib/unistr/u32-prev.c: New file.
6601
6602         * modules/unistr/u8-set: New file.
6603         * modules/unistr/u16-set: New file.
6604         * modules/unistr/u32-set: New file.
6605         * lib/unistr/u8-set.c: New file.
6606         * lib/unistr/u16-set.c: New file.
6607         * lib/unistr/u32-set.c: New file.
6608         * lib/unistr/u-set.h: New file.
6609
6610         * modules/unistr/u8-startswith: New file.
6611         * modules/unistr/u16-startswith: New file.
6612         * modules/unistr/u32-startswith: New file.
6613         * lib/unistr/u8-startswith.c: New file.
6614         * lib/unistr/u16-startswith.c: New file.
6615         * lib/unistr/u32-startswith.c: New file.
6616         * lib/unistr/u-startswith.h: New file.
6617
6618         * modules/unistr/u8-stpcpy: New file.
6619         * modules/unistr/u16-stpcpy: New file.
6620         * modules/unistr/u32-stpcpy: New file.
6621         * lib/unistr/u8-stpcpy.c: New file.
6622         * lib/unistr/u16-stpcpy.c: New file.
6623         * lib/unistr/u32-stpcpy.c: New file.
6624         * lib/unistr/u-stpcpy.h: New file.
6625
6626         * modules/unistr/u8-stpncpy: New file.
6627         * modules/unistr/u16-stpncpy: New file.
6628         * modules/unistr/u32-stpncpy: New file.
6629         * lib/unistr/u8-stpncpy.c: New file.
6630         * lib/unistr/u16-stpncpy.c: New file.
6631         * lib/unistr/u32-stpncpy.c: New file.
6632         * lib/unistr/u-stpncpy.h: New file.
6633
6634         * modules/unistr/u8-strcat: New file.
6635         * modules/unistr/u16-strcat: New file.
6636         * modules/unistr/u32-strcat: New file.
6637         * lib/unistr/u8-strcat.c: New file.
6638         * lib/unistr/u16-strcat.c: New file.
6639         * lib/unistr/u32-strcat.c: New file.
6640         * lib/unistr/u-strcat.h: New file.
6641
6642         * modules/unistr/u8-strchr: New file.
6643         * modules/unistr/u16-strchr: New file.
6644         * modules/unistr/u32-strchr: New file.
6645         * lib/unistr/u8-strchr.c: New file.
6646         * lib/unistr/u16-strchr.c: New file.
6647         * lib/unistr/u32-strchr.c: New file.
6648
6649         * modules/unistr/u8-strcmp: New file.
6650         * modules/unistr/u16-strcmp: New file.
6651         * modules/unistr/u32-strcmp: New file.
6652         * lib/unistr/u8-strcmp.c: New file.
6653         * lib/unistr/u16-strcmp.c: New file.
6654         * lib/unistr/u32-strcmp.c: New file.
6655
6656         * modules/unistr/u8-strcpy: New file.
6657         * modules/unistr/u16-strcpy: New file.
6658         * modules/unistr/u32-strcpy: New file.
6659         * lib/unistr/u8-strcpy.c: New file.
6660         * lib/unistr/u16-strcpy.c: New file.
6661         * lib/unistr/u32-strcpy.c: New file.
6662         * lib/unistr/u-strcpy.h: New file.
6663
6664         * modules/unistr/u8-strcspn: New file.
6665         * modules/unistr/u16-strcspn: New file.
6666         * modules/unistr/u32-strcspn: New file.
6667         * lib/unistr/u8-strcspn.c: New file.
6668         * lib/unistr/u16-strcspn.c: New file.
6669         * lib/unistr/u32-strcspn.c: New file.
6670         * lib/unistr/u-strcspn.h: New file.
6671
6672         * modules/unistr/u8-strdup: New file.
6673         * modules/unistr/u16-strdup: New file.
6674         * modules/unistr/u32-strdup: New file.
6675         * lib/unistr/u8-strdup.c: New file.
6676         * lib/unistr/u16-strdup.c: New file.
6677         * lib/unistr/u32-strdup.c: New file.
6678         * lib/unistr/u-strdup.h: New file.
6679
6680         * modules/unistr/u8-strlen: New file.
6681         * modules/unistr/u16-strlen: New file.
6682         * modules/unistr/u32-strlen: New file.
6683         * lib/unistr/u8-strlen.c: New file.
6684         * lib/unistr/u16-strlen.c: New file.
6685         * lib/unistr/u32-strlen.c: New file.
6686         * lib/unistr/u-strlen.h: New file.
6687
6688         * modules/unistr/u8-strmblen: New file.
6689         * modules/unistr/u16-strmblen: New file.
6690         * modules/unistr/u32-strmblen: New file.
6691         * lib/unistr/u8-strmblen.c: New file.
6692         * lib/unistr/u16-strmblen.c: New file.
6693         * lib/unistr/u32-strmblen.c: New file.
6694
6695         * modules/unistr/u8-strmbtouc: New file.
6696         * modules/unistr/u16-strmbtouc: New file.
6697         * modules/unistr/u32-strmbtouc: New file.
6698         * lib/unistr/u8-strmbtouc.c: New file.
6699         * lib/unistr/u16-strmbtouc.c: New file.
6700         * lib/unistr/u32-strmbtouc.c: New file.
6701
6702         * modules/unistr/u8-strncat: New file.
6703         * modules/unistr/u16-strncat: New file.
6704         * modules/unistr/u32-strncat: New file.
6705         * lib/unistr/u8-strncat.c: New file.
6706         * lib/unistr/u16-strncat.c: New file.
6707         * lib/unistr/u32-strncat.c: New file.
6708         * lib/unistr/u-strncat.h: New file.
6709
6710         * modules/unistr/u8-strncmp: New file.
6711         * modules/unistr/u16-strncmp: New file.
6712         * modules/unistr/u32-strncmp: New file.
6713         * lib/unistr/u8-strncmp.c: New file.
6714         * lib/unistr/u16-strncmp.c: New file.
6715         * lib/unistr/u32-strncmp.c: New file.
6716
6717         * modules/unistr/u8-strncpy: New file.
6718         * modules/unistr/u16-strncpy: New file.
6719         * modules/unistr/u32-strncpy: New file.
6720         * lib/unistr/u8-strncpy.c: New file.
6721         * lib/unistr/u16-strncpy.c: New file.
6722         * lib/unistr/u32-strncpy.c: New file.
6723         * lib/unistr/u-strncpy.h: New file.
6724
6725         * modules/unistr/u8-strnlen: New file.
6726         * modules/unistr/u16-strnlen: New file.
6727         * modules/unistr/u32-strnlen: New file.
6728         * lib/unistr/u8-strnlen.c: New file.
6729         * lib/unistr/u16-strnlen.c: New file.
6730         * lib/unistr/u32-strnlen.c: New file.
6731         * lib/unistr/u-strnlen.h: New file.
6732
6733         * modules/unistr/u8-strpbrk: New file.
6734         * modules/unistr/u16-strpbrk: New file.
6735         * modules/unistr/u32-strpbrk: New file.
6736         * lib/unistr/u8-strpbrk.c: New file.
6737         * lib/unistr/u16-strpbrk.c: New file.
6738         * lib/unistr/u32-strpbrk.c: New file.
6739         * lib/unistr/u-strpbrk.h: New file.
6740
6741         * modules/unistr/u8-strrchr: New file.
6742         * modules/unistr/u16-strrchr: New file.
6743         * modules/unistr/u32-strrchr: New file.
6744         * lib/unistr/u8-strrchr.c: New file.
6745         * lib/unistr/u16-strrchr.c: New file.
6746         * lib/unistr/u32-strrchr.c: New file.
6747
6748         * modules/unistr/u8-strspn: New file.
6749         * modules/unistr/u16-strspn: New file.
6750         * modules/unistr/u32-strspn: New file.
6751         * lib/unistr/u8-strspn.c: New file.
6752         * lib/unistr/u16-strspn.c: New file.
6753         * lib/unistr/u32-strspn.c: New file.
6754         * lib/unistr/u-strspn.h: New file.
6755
6756         * modules/unistr/u8-strstr: New file.
6757         * modules/unistr/u16-strstr: New file.
6758         * modules/unistr/u32-strstr: New file.
6759         * lib/unistr/u8-strstr.c: New file.
6760         * lib/unistr/u16-strstr.c: New file.
6761         * lib/unistr/u32-strstr.c: New file.
6762         * lib/unistr/u-strstr.h: New file.
6763
6764         * modules/unistr/u8-strtok: New file.
6765         * modules/unistr/u16-strtok: New file.
6766         * modules/unistr/u32-strtok: New file.
6767         * lib/unistr/u8-strtok.c: New file.
6768         * lib/unistr/u16-strtok.c: New file.
6769         * lib/unistr/u32-strtok.c: New file.
6770         * lib/unistr/u-strtok.h: New file.
6771
6772         * modules/unistr/u8-uctomb: New file.
6773         * modules/unistr/u16-uctomb: New file.
6774         * modules/unistr/u32-uctomb: New file.
6775         * lib/unistr/u8-uctomb.c: New file.
6776         * lib/unistr/u16-uctomb.c: New file.
6777         * lib/unistr/u32-uctomb.c: New file.
6778
6779         * MODULES.html.sh (Unicode string functions): Add the new modules.
6780
6781 2007-01-08  Bruno Haible  <bruno@clisp.org>
6782
6783         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
6784         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
6785         subdirectories.
6786
6787 2007-01-08  Karl Berry  <karl@gnu.org>
6788
6789         * doc/error.texi: mention that main() fns must set program_name
6790         when progname is used.
6791
6792 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
6793
6794         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
6795         WCTYPE_H is empty, for the benefit of builds from non-distclean
6796         directories.  Problem reported by Eric Blake in
6797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
6798
6799 2007-01-08  Bruno Haible  <bruno@clisp.org>
6800
6801         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
6802         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
6803         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
6804         PROVIDE_CANONICALIZE_FILENAME_MODE.
6805         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
6806
6807 2007-01-08  Bruno Haible  <bruno@clisp.org>
6808
6809         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
6810         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
6811         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
6812         * lib/fts.c: Likewise.
6813         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
6814
6815 2006-12-25  Bruno Haible  <bruno@clisp.org>
6816
6817         * modules/utf8-ucs4-safe: New file.
6818         * lib/utf8-ucs4-safe.h: New file.
6819         * lib/unistr/utf8-ucs4-safe.c: New file.
6820
6821         * modules/utf16-ucs4-safe: New file.
6822         * lib/utf16-ucs4-safe.h: New file.
6823         * lib/unistr/utf16-ucs4-safe.c: New file.
6824
6825         * MODULES.html.sh (Unicode string functions): Add the new modules.
6826
6827 2007-01-08  Bruno Haible  <bruno@clisp.org>
6828
6829         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
6830         (Depends-on): Add unitypes.
6831         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
6832         (u8_mbtouc_aux): Move out to separate file.
6833         (u8_mbtouc): Use ucs4_t, uint8_t types.
6834         * lib/unistr/utf8-ucs4.c: New file.
6835
6836         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
6837         (Depends-on): Add unitypes.
6838         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
6839         (u16_mbtouc_aux): Move out to separate file.
6840         (u16_mbtouc): Use ucs4_t, uint16_t types.
6841         * lib/unistr/utf16-ucs4.c: New file.
6842
6843         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
6844         (Depends-on): Add unitypes.
6845         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
6846         (u8_uctomb_aux): Move out to separate file.
6847         (u8_uctomb): Use ucs4_t, uint8_t types.
6848         * lib/unistr/ucs4-utf8.c: New file.
6849
6850         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
6851         (Depends-on): Add unitypes.
6852         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
6853         (u16_uctomb_aux): Move out to separate file.
6854         (u16_uctomb): Use ucs4_t, uint16_t types.
6855         * lib/unistr/ucs4-utf16.c: New file.
6856
6857 2006-12-25  Bruno Haible  <bruno@clisp.org>
6858
6859         * modules/unitypes: New file.
6860         * lib/unitypes.h: New file.
6861         * MODULES.html.sh (func_all_modules): New section "Unicode string
6862         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
6863         this section. Add unitypes.
6864
6865 2007-01-08  Bruno Haible  <bruno@clisp.org>
6866
6867         Avoid variable names that conflict with those from libtool.
6868         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
6869         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
6870         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
6871         library_names_spec to acl_library_names_spec, hardcode_* to
6872         acl_hardcode_*.
6873         Reported by Ralf Wildenhues.
6874
6875 2007-01-08  Bruno Haible  <bruno@clisp.org>
6876
6877         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
6878         definition.
6879         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
6880         definition.
6881         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
6882         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
6883         definition.
6884         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
6885         definition.
6886         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
6887         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
6888         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
6889         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
6890         definition.
6891         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
6892         definition.
6893         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
6894         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
6895         GC_USE_<algorithm>.
6896         * lib/gc-libgcrypt.c: Likewise.
6897         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
6898         * modules/gc-arctwo (configure.ac): Likewise.
6899         * modules/gc-des (configure.ac): Likewise.
6900         * modules/gc-hmac-md5 (configure.ac): Likewise.
6901         * modules/gc-hmac-sha1 (configure.ac): Likewise.
6902         * modules/gc-md2 (configure.ac): Likewise.
6903         * modules/gc-md4 (configure.ac): Likewise.
6904         * modules/gc-md5 (configure.ac): Likewise.
6905         * modules/gc-random (configure.ac): Likewise.
6906         * modules/gc-rijndael (configure.ac): Likewise.
6907         * modules/gc-sha1 (configure.ac): Likewise.
6908
6909 2007-01-08  Bruno Haible  <bruno@clisp.org>
6910
6911         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
6912         macro definition.
6913         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
6914         definition.
6915         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
6916         definition.
6917         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
6918         * modules/fcntl-safer (configure.ac): Likewise.
6919         * modules/fopen-safer (configure.ac): Likewise.
6920         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
6921         GNULIB_FWRITEERROR macro definition.
6922
6923 2007-01-08  Bruno Haible  <bruno@clisp.org>
6924
6925         * m4/gnulib-common.m4: New file.
6926         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
6927         (func_get_filelist): Add m4/gnulib-common.m4.
6928
6929 2007-01-08  Bruno Haible  <bruno@clisp.org>
6930
6931         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
6932         command.
6933
6934 2007-01-08  Jim Meyering  <jim@meyering.net>
6935
6936         Use a more robust test for a "can't happen" condition.
6937         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
6938         narrowed the st_size value.  Presuming the "can't happen" condition
6939         is true, that narrowing could conceivably convert an invalid st_size
6940         value into a valid one.  Instead, use a change based on Matthew
6941         Woehlke's original patch.
6942
6943         Slight readability improvement: use an assert-like macro
6944         in place of literal "abort ()" uses.
6945         * lib/fts.c (fts_assert): Define.
6946         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
6947         Use this macro instead of a bare 'abort'.
6948
6949 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6950
6951         Don't worry about using IRIX 5.3's wctype.h broken definitions;
6952         simply work around them.
6953         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
6954         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
6955         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
6956         declaring.
6957         Don't bother to define as macros, since the standard doesn't require it.
6958         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
6959         longer worry about IRIX 5.3.
6960         (HAVE_WCTYPE_CTMP_BUG): Remove.
6961
6962 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6963
6964         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
6965         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
6966         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6967         Problems reported by Georg Schwarz for IRIX 5.3.
6968
6969         * gnulib-tool (autoconf_minversion): Take the maximum version number
6970         found, not the minimum.  Problem reported by James Youngman.
6971
6972 2007-01-03  Karl Berry  <karl@gnu.org>
6973
6974         * doc/error.texi: new file, explaining interaction with progname.
6975         * doc/gnulib.texi: include it.  Update copyright.
6976
6977 2007-01-03  Simon Josefsson  <simon@josefsson.org>
6978
6979         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
6980         AC_CANONICAL_HOST, to improve autobuild outputs.
6981
6982 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
6983             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6984
6985         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
6986         sockets, server sockets, and other file descriptors.  Count errors
6987         to compute the return value.  Reorder the code a bit to be easier
6988         to follow.  Don't set event bits that were not requested (except
6989         POLLERR and POLLHUP).
6990
6991 2007-01-01  Bruno Haible  <bruno@clisp.org>
6992
6993         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
6994
6995 2007-01-03  Jim Meyering  <jim@meyering.net>
6996
6997         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
6998
6999 2007-01-02  Bruno Haible  <bruno@clisp.org>
7000
7001         * modules/settime (Include): Require timespec.h.
7002         * modules/nanosleep (Include): Likewise.
7003
7004 2007-01-01  Bruno Haible  <bruno@clisp.org>
7005
7006         * gnulib-tool (func_emit_copyright_notice): Bump year.
7007         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
7008
7009 2007-01-01  Bruno Haible  <bruno@clisp.org>
7010
7011         Improve support for OpenBSD.
7012         * build-aux/config.rpath (libname_spec): Export.
7013         (library_names_spec): New variable. Export.
7014         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
7015         library_names_spec from the config.rpath output. Locate shared library
7016         through the name pattern in library_names_spec.
7017
7018 2007-01-01  Eric Blake  <ebb9@byu.net>
7019
7020         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
7021
7022 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7023
7024         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
7025         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
7026         assume the C locale, and avoid an "eval" that could cause trouble.
7027         Problem with SORT reported by Bob Proulx.
7028
7029         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
7030         Define.  Trivial patch from Henning Nielsen Lund, originally
7031         sent to bug-grep@gnu.org today.
7032
7033 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7034
7035         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
7036         struct stat.  Problem reported by Henning Nielsen Lund.
7037         * lib/acl.c: Include acl.h first, to check interface.  Don't
7038         bother to include sys/types.h and sys/stat.h again.
7039
7040 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7041
7042         Import the following change from libc; problem reported by
7043         Sven Verdoolaege.
7044
7045         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
7046
7047         [BZ #1373]
7048         * lib/argp.h: Remove __NTH for __argp_usage inline function.
7049
7050 2006-12-28  Jim Meyering  <jim@meyering.net>
7051
7052         * build-aux/announce-gen: Do not assume that the package
7053         builds any of tar.gz, tar.bz2, and .xdelta files.
7054         Suggestion from Simon Josefsson.
7055
7056 2006-12-28  Simon Josefsson  <simon@josefsson.org>
7057
7058         * modules/announce-gen: New file.
7059
7060 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7061
7062         * lib/mbchar.h: Just include <wctype.h>; the wctype module
7063         handles its gotchas now.
7064         * lib/mbswidth.c: Likewise.
7065         * lib/wcwidth.h: Likewise.
7066         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
7067         and iswcntrl; the wctype module does this stuff now.
7068         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7070         * modules/mbchar (Depends-on): Add wctype.
7071         * modules/mbswidth (Depends-on): Likewise.
7072         * modules/wcwidth (Depends-on): Likewise.
7073
7074 2006-12-27  Eric Blake  <ebb9@byu.net>
7075
7076         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
7077         module uses more than what <wctype.h> is required to provide.
7078
7079 2006-12-26  Eric Blake  <ebb9@byu.net>
7080
7081         * gnulib-tool (sed_extract_prog): Avoid space-tab.
7082
7083 2006-12-26  Eric Blake  <ebb9@byu.net>
7084
7085         * modules/absolute-header: New module.
7086         * modules/fcntl (Depends-on): Depend on it.
7087         * modules/inttypes (Depends-on): Likewise.
7088         * modules/stdint (Depends-on): Likewise.
7089         * modules/sys_stat (Depends-on): Likewise.
7090         * modules/wctype (Depends-on): Likewise.
7091         * MODULES.html.sh (Support for building libraries and
7092         executables): Document it.
7093
7094 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7095
7096         * gnulib-tool (SED): Remove, undoing previous change.
7097         The problem was that it broke coreutils on Solaris, because
7098         "sed --posix" leaked into a makefile.
7099         (sed): New alias, if 'alias' and GNU sed.
7100
7101 2006-12-24  Jim Meyering  <jim@meyering.net>
7102
7103         Work around an fchownat bug in glibc-2.4:
7104         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
7105         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
7106         in spite of the -P option.
7107         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
7108         New macros.
7109         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
7110         * modules/openat (Files): Add lib/fchownat.c.
7111         * lib/openat.c (fchownat): Don't define here.  Move to...
7112         * lib/fchownat.c: ...this new file.
7113
7114 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7115
7116         Fix bug reported by Bruno Haible in
7117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
7118         where quotearg.c didn't compile on Mac OS X 10.2 because it
7119         lacks <wchar.h> and wint_t.
7120         * lib/wctype_.h (__wctype_wint_t): New type.
7121         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
7122         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
7123         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
7124         Arg is now of type __wctype_wint_t, not wint_t.
7125         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
7126         substitute HAVE_WINT_T.
7127         * modules/wctype (Files): Add m4/wint_t.m4.
7128         (wctype.h): Substitute HAVE_WINT_T.
7129
7130 2006-12-23  Bruno Haible  <bruno@clisp.org>
7131
7132         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
7133
7134 2006-12-23  Bruno Haible  <bruno@clisp.org>
7135
7136         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
7137         S_ISLNK.
7138         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
7139         mingw.
7140
7141 2006-12-22  Bruno Haible  <bruno@clisp.org>
7142
7143         * lib/copy-file.c: Include acl.h.
7144         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
7145         Close the file descriptors only after being done with copy_acl.
7146         * modules/copy-file (Depends-on): Add acl.
7147
7148 2006-12-22  Bruno Haible  <bruno@clisp.org>
7149
7150         * gnulib-tool (SED): New variable.
7151         Use $SED instead of sed everywhere.
7152
7153 2006-12-22  Bruno Haible  <bruno@clisp.org>
7154
7155         * modules/no-c++: New file.
7156         * m4/no-c++.m4: New file.
7157         * MODULES.html.sh (Support for building libraries and executables):
7158         Add no-c++.
7159
7160 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7161
7162         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
7163         Include <limits.h>, and use its INT_MAX to rewrite the
7164         j loop so that it does not overflow 'int'.  Problem reported by
7165         Ralf Wildenhues in
7166         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
7167         Play it safe by shifting left by 1 rather than multiplying by 2,
7168         as GCC is less likely to optimize this away when the value
7169         is signed (when it assumes overflow leads to undefined behavior).
7170         Also, don't assume time_t uses two's complement.
7171
7172 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7173
7174         * MODULES.html.sh: New module wctype.
7175         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
7176         * lib/fnmatch.c: Don't bother to include <wchar.h> before
7177         <wctype.h>, since the new wctype module should fix this.
7178         * lib/quotearg.c: Include <wctype.h> unconditionally, since
7179         the wctype module should arrange for it.
7180         * lib/regex_internal.h: Likewise.
7181         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
7182         since the wctype module should handle this now.
7183         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
7184         * modules/fnmatch (Depends-on): Add wctype.
7185         * modules/quotearg (Depends-on): Likewise.
7186         * modules/regex (Depends-on): Likewise.
7187
7188 2006-12-19  Bruno Haible  <bruno@clisp.org>
7189
7190         * lib/strdup.h [C++]: Wrap definitions in extern "C".
7191         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
7192
7193 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7194
7195         * modules/savewd (Depends-on): Fix dependency on fcntl.
7196
7197 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7198
7199         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
7200         conforms to C99, rather than relying on the user's environment
7201         setting of STDINT_H.
7202
7203 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7204         and Eric Blake  <ebb9@byu.net>
7205
7206         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
7207         This is more consistent with the other defines here.
7208         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
7209         Port to z/OS.  Problem reported by Paul Gilmartin.
7210         Change local vars to use gl_ prefix rather than ac_.
7211         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
7212         with other defines.
7213         * modules/double-slash-root: New module.
7214         * modules/dirname (Files): Remove m4/double-slash-root.m4.
7215         (Depends-on): Add double-slash-root.
7216         * MODULES.html.sh (File system functions): Mention new module.
7217
7218 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7219
7220         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
7221         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
7222         This is for the benefit of gzip, which doesn't do i18n.
7223
7224 2006-12-12  Jim Meyering  <jim@meyering.net>
7225
7226         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
7227         Reported by Andreas Schwab <schwab@suse.de>.
7228
7229 2006-12-12  Bruno Haible  <bruno@clisp.org>
7230
7231         Merge these changes.
7232         2006-09-05  Bruno Haible  <bruno@clisp.org>
7233         * lib/iconvme.c (iconv_string): No need to save and restore errno when
7234         iconv_alloc succeeded.
7235         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
7236         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
7237         test for " && dest " at the end - dest is always != NULL there. Call
7238         iconv with 4xNULL arguments initially, to reset the state. Call iconv
7239         with 2xNULL arguments, also to flush the state storage. Handle the
7240         IRIX iconv behaviour. Realloc the final result, to throw away unused
7241         memory.
7242
7243 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7244
7245         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
7246         and fchmodat unconditionally, since glibc 2.4 has them.
7247         Problem reported by Arkadiusz Miskiewicz.
7248
7249 2006-12-10  Bruno Haible  <bruno@clisp.org>
7250
7251         * gnulib-tool (func_import): Show the include files only for those
7252         modules that are copied and specified.
7253         Reported by Karl Berry.
7254
7255 2006-12-08  Jim Meyering  <jim@meyering.net>
7256
7257         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
7258         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
7259
7260         * build-aux/announce-gen: Add two new options, both optional:
7261         --bootstrap-tools=TOOL_LIST
7262               a comma-separated list of tools, e.g.,
7263               autoconf,automake,bison,gnulib
7264         --gnulib-snapshot-date=DATE
7265               if gnulib is in the bootstrap tool list,
7266               then report this as the snapshot date.
7267               If not specified, use the current date/time.
7268               If you specify a date here, be sure it's UTC.
7269
7270 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7271
7272         * tests/test-argp-2.sh: Fix test to match actual output.
7273         (func_compare): Fix sed script to be portable.
7274
7275 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
7276
7277         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
7278         workaround for this case.  It is not autoconfigured now; offhand
7279         it's hard to see how to autoconfigure it.
7280
7281 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7282
7283         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
7284         a directory that is about to be chowned.  Such a directory's
7285         initial file permissions should permit the owner only and this
7286         should not be changed until after the chown, since the group and
7287         other bits would be incorrect if they granted permission before
7288         the chown.
7289
7290         Fix porting problem for iswctype reported by Georg Schwarz in:
7291         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
7292         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
7293         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
7294         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
7295         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7296
7297 2006-12-03  Jim Meyering  <jim@meyering.net>
7298
7299         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
7300         p->fts_statp may not yet be defined.
7301         (fts_read): Instead, set it in the caller, once p->fts_statp is
7302         sure to be defined, and corresponds to a top-level directory.
7303         This bug made du -x fail.  Here's the coreutils test case:
7304         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
7305         Reported by Mike Frysinger.
7306
7307 2006-12-01  Jim Meyering  <jim@meyering.net>
7308
7309         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
7310         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
7311         Reported by Simon Josefsson.
7312
7313 2006-11-30  Jim Meyering  <jim@meyering.net>
7314
7315         * m4/warning.m4: Use the all-permissive copyright notice
7316         recommended by RMS (rather than LGPL).
7317         * m4/vararrays.m4: Likewise.
7318         * m4/flexmember.m4: Likewise.
7319
7320 2006-11-29  Bruno Haible  <bruno@clisp.org>
7321
7322         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7323         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
7324         using +=.
7325         Reported by Simon Josefsson <simon@josefsson.org>.
7326
7327 2006-11-28  James Youngman <jay@gnu.org>
7328
7329         * README: Advise users that they might find the bug-gnulib@gnu.org
7330         and autotools-announce@gnu.org mailing lists useful.
7331
7332 2006-11-28  Bruno Haible  <bruno@clisp.org>
7333
7334         * m4/ptrdiff_max.m4: Remove file.
7335
7336 2006-11-21  Bruno Haible  <bruno@clisp.org>
7337
7338         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
7339         _AC_COMPUTE_INT.
7340         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7341         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
7342         _AC_COMPUTE_INT.
7343         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7344         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
7345         _AC_COMPUTE_INT.
7346         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7347
7348 2006-11-28  Jim Meyering  <jim@meyering.net>
7349
7350         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
7351         warning from "gcc -Wshadow" about shadowing the builtin.
7352
7353 2006-11-27  Bruno Haible  <bruno@clisp.org>
7354
7355         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
7356         _AC_COMPUTE_INT.
7357         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7358
7359 2006-11-27  Bruno Haible  <bruno@clisp.org>
7360             Paul Eggert  <eggert@cs.ucla.edu>
7361
7362         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
7363
7364 2006-11-26  Bruno Haible  <bruno@clisp.org>
7365
7366         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7367         noinst_LTLIBRARIES.
7368
7369 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
7370             Bruno Haible  <bruno@clisp.org>
7371
7372         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
7373         if compiling with "gcc -ansi".
7374
7375 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7376
7377         Fix some incompatibilities with gcc -ansi -pedantic.
7378         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
7379         if compiling pedantically with GCC, unless it's C99 or later.
7380         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
7381         it mishandles gcc -ansi -pedantic as well.
7382         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
7383         if gcc -pedantic.
7384         * lib/regexec.c (check_node_accept_bytes): Don't use auto
7385         initializers for struct if -pedantic, unless it's C99 or later.
7386
7387 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
7388
7389         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
7390         Don't close an fd more than once. Identical atimes indicate
7391         success, not failure.
7392
7393 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
7394
7395         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
7396
7397 2006-11-23  Jim Meyering  <jim@meyering.net>
7398
7399         * build-aux/announce-gen: New file.  From coreutils.
7400
7401 2006-11-22  Jim Meyering  <jim@meyering.net>
7402
7403         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
7404         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
7405         (fts_read): Use a temporary to narrow the overused st_size member
7406         before using it in a switch statement.  Reported by Matthew Woehlke.
7407
7408         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
7409         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7410
7411 2006-11-20  Bruno Haible  <bruno@clisp.org>
7412
7413         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
7414         changequote instead of pairs of brackets.
7415         Reported by Andreas Schwab <schwab@suse.de>.
7416
7417 2006-11-21  Jim Meyering  <jim@meyering.net>
7418
7419         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
7420         so as to remain compatible with older compilers.
7421         Patch from Michael Deutschmann.
7422
7423 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7424
7425         * MODULES.html.sh (File system functions): Add openat.
7426
7427         * lib/openat.h (rpl_fstatat): New macro, if
7428         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
7429         (fstatat): Define to rpl_fstatat under the same conditions,
7430         unless COMPILING_FSTATAT.
7431         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
7432         seems to have the bug.
7433         * lib/fstatat.c: New file.
7434         * modules/openat (Files): Add it.
7435
7436 2006-11-20  Bruno Haible  <bruno@clisp.org>
7437
7438         * Makefile: New file.
7439
7440 2006-11-20  Jim Meyering  <jim@meyering.net>
7441
7442         The beginnings of syntax-related checks for gnulib.
7443         * lib/Makefile: New file.
7444         * lib/t-idcache: New script.  Ensure that the two halves of
7445         idcache.c stay in sync.
7446
7447         * lib/idcache.c: Adjust comments in user- and group- portions to
7448         be more accurate, and to be consistent with one another.
7449
7450 2006-11-20  Jim Meyering  <jim@meyering.net>
7451
7452         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
7453         continue using the flexible array member (thus, this module performs
7454         half as many malloc calls), with the addition that...
7455         (getgroup, getuser): Consistently record a non-match via an empty
7456         "name" string, and map an empty string match to a NULL return value.
7457         * modules/idcache (Depends-on): Re-add flexmember.
7458
7459         * lib/idcache.c (getuser): Remove all uses of the register keyword.
7460         (getuidbyname, getgroup, getgidbyname): Likewise.
7461
7462         Use cleaner syntax: NULL rather than 0.
7463         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
7464
7465 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7466
7467         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
7468         It mishandled the case where the group was missing.
7469         Problem reported by Greg Schafer.
7470         * modules/idcache: Likewise.
7471
7472 2006-11-18  Jim Meyering  <jim@meyering.net>
7473
7474         * check-module (%exempt_header): Add exception for some
7475         conditionally-included headers.
7476
7477         * modules/i-ring (Depends-on): Add verify.
7478         (License): Change to LGPL.
7479
7480 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7481
7482         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
7483         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
7484         and inttostr.h.  Use snprintf rather than uinttostr, so that
7485         LGPLed code doesn't depend on GPLed.
7486
7487 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7488
7489         * modules/inline (License): Change from GPL to LGPL.
7490
7491 2006-11-17  Jim Meyering  <jim@meyering.net>
7492
7493         * modules/d-type (License): Switch to LGPL.
7494
7495 2006-11-15  Bruno Haible  <bruno@clisp.org>
7496
7497         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
7498
7499 2006-11-15  Eric Blake  <ebb9@byu.net>
7500
7501         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
7502         the module dependency.
7503
7504 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7505             Bruno Haible  <bruno@clisp.org>
7506
7507         * gnulib-tool (func_create_testdir): Add license consistency check.
7508
7509 2006-11-15  Eric Blake  <ebb9@byu.net>
7510
7511         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
7512         random "(cached)" in configure output.
7513
7514 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7515
7516         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
7517         test for conforming inttypes.h is both announced and cached.
7518
7519         * MODULES.html.sh (seen_modules, seen_files): New variables.
7520         (func_module): Rewrite to use a few less gnulib-tool and sed
7521         invocations.  Avoid a couple of quadratic algorithms for ...
7522         (missed_modules, missed_files): ... these, with ...
7523         (func_append, func_tmpdir): ... these new functions, from
7524         gnulib-tool.  Analogously, install traps for cleanup.
7525
7526         * tests/test-gc.c (main): Remove unused variables.
7527         * tests/test-read-file.c: Include stdlib.h, for 'free'.
7528
7529 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
7530
7531         * modules/inttostr (License): Change to LGPL.
7532
7533 2006-11-14  Eric Blake  <ebb9@byu.net>
7534
7535         * modules/tempname (License): Change to LGPL.
7536
7537 2006-11-14  Eric Blake  <ebb9@byu.net>
7538
7539         * doc/functions.texi (Function Portability): *printf functions on
7540         Cygwin now understand all POSIX size specifiers.
7541
7542 2006-11-14  Bruno Haible  <bruno@clisp.org>
7543
7544         * modules/c-ctype (License): Change to LGPL.
7545
7546 2006-11-12  Bruno Haible  <bruno@clisp.org>
7547
7548         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7549         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
7550         for GNOME libraries, for which the include files are installed in
7551         subdirectories of $prefix/include.
7552
7553 2006-11-12  Bruno Haible  <bruno@clisp.org>
7554
7555         * m4/lib-link.m4: Require at least autoconf-2.54.
7556         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
7557         name to underscores for the --with option.
7558
7559 2006-11-13  Bruno Haible  <bruno@clisp.org>
7560
7561         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
7562         the tests directory.
7563         Reported by Ralf Wildenhues.
7564
7565 2006-11-13  Bruno Haible  <bruno@clisp.org>
7566
7567         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
7568         (func_emit_initmacro_end): Undo the override here.
7569         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
7570         Works around the famous automake error in coreutils.
7571
7572 2006-11-13  Eric Blake  <ebb9@byu.net>
7573
7574         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
7575         element, not its node.
7576
7577 2006-11-12  Bruno Haible  <bruno@clisp.org>
7578
7579         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
7580         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
7581
7582 2006-11-12  Bruno Haible  <bruno@clisp.org>
7583
7584         * gnulib-tool: New option --local-symlink.
7585         (func_usage): Document it.
7586         (lsymbolic): New variable.
7587         (func_import, func_create_testdir): If --symlink was not specified,
7588         test whether --local-symlink was specified and the file comes from
7589         the local_gnulib_dir.
7590
7591 2006-11-12  Bruno Haible  <bruno@clisp.org>
7592
7593         * gnulib-tool (func_ln): New function.
7594         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
7595
7596 2006-11-12  Bruno Haible  <bruno@clisp.org>
7597
7598         Finish support for source files in subdirectories.
7599         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
7600         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
7601         AUTOMAKE_OPTIONS.
7602         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
7603
7604 2006-11-12  Bruno Haible  <bruno@clisp.org>
7605
7606         * gnulib-tool (func_get_automake_snippet): Synthesize also an
7607         EXTRA_lib_SOURCES augmentation.
7608         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
7609
7610 2006-11-12  Jim Meyering  <jim@meyering.net>
7611
7612         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
7613         file descriptors.  This also averts a failure on systems with
7614         native openat support when a traversed directory lacks "x" access.
7615         * lib/fts_.h: Include "i-ring.h"
7616         (struct FTS) [fts_fd_ring]: New member.
7617         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
7618         (FCHDIR): Add parentheses.
7619         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
7620         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
7621         When descending, rather than simply closing the previous
7622         fts_cwd_fd value, push that file descriptor onto the ring.
7623         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
7624         (fts_open): Initialize the new fd_ring member.
7625         (fts_close): Clear the ring.
7626         (fts_safe_changedir): When possible, use our new fd_ring to skip
7627         the diropen and fstat and dev/ino comparison that would normally
7628         accompany a virtual `chdir ("..")'.
7629
7630         * modules/fts (Depends-on): Add i-ring.
7631         * modules/i-ring: New module.
7632         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
7633         * m4/i-ring.m4: New file.
7634
7635 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7636
7637         * gnulib-tool (func_create_testdir): Fix replacement of
7638         `build-aux' in configure.ac.  Run autotools in gltests
7639         subdirectory.
7640         (func_create_testdir, func_create_megatestdir, test): There is
7641         no need for '--force' in most autotool invocations in a new
7642         tree.  Actually fail the whole test if any of the tools, or the
7643         configure or make stages fail.
7644
7645         Sync from Automake.
7646         * build-aux/gnupload: Revert last change.  Add pointer to upload
7647         instructions of the GNU Maintenance Instructions.
7648         Suggestion by Karl Berry.
7649
7650 2006-11-10  Jim Meyering  <jim@meyering.net>
7651
7652         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
7653
7654 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7655
7656         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
7657         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
7658         (bind_textdomain_codeset) [! ENABLE_NLS]:
7659         Evaluate all the arguments.  That way, callers get compatible behavior
7660         if the arguments have side effects.  Also, it avoids some GCC
7661         diagnostics in some cases; Joel E. Denny reported problems when Bison
7662         was configured with --enable-gcc-warnigs.
7663
7664 2006-11-10  Jim Meyering  <jim@meyering.net>
7665
7666         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
7667         relevant options in CFLAGS (like -O, -fno-inline) are taken into
7668         account.
7669
7670 2006-11-10  Jim Meyering  <jim@meyering.net>
7671
7672         * modules/inline: New file/module.
7673         * modules/xalloc (Files): Remove m4/inline.m4.
7674         (Depends-on): Add inline, instead.
7675         * modules/oset: Likewise.
7676         * modules/list: Likewise.
7677
7678 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7679
7680         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
7681         Problem reported by Matthew Woehlke.
7682
7683 2006-11-09  Bruno Haible  <bruno@clisp.org>
7684
7685         * lib/tempname.c (gen_tempname): Remove variant that invokes
7686         __gen_tempname.
7687         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
7688         __gen_tempname.
7689
7690 2006-11-08  Bruno Haible  <bruno@clisp.org>
7691
7692         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
7693         to 'yes' instead of 'cross-compiling'.
7694
7695 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
7696
7697         * lib/quotearg.h (quotearg_free): New decl.
7698         * lib/quotearg.c (quotearg_free): New function.
7699         (slot0, nslots, slotvec0, slotvec):
7700         Now file-scope so that quotearg_free can get at them.
7701
7702 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7703
7704         Sync from Automake.
7705         * build-aux/gnupload: Add missing 'gnu' to example URL.
7706         Report by Karl Berry.
7707
7708 2006-11-08  Bruno Haible  <bruno@clisp.org>
7709
7710         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
7711         Suggested by Paul Eggert.
7712
7713 2006-11-08  Jim Meyering  <jim@meyering.net>
7714
7715         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
7716         It's already included if !_LIBC.
7717         (fts_safe_changedir): Add a comment.
7718
7719 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7720
7721         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
7722         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
7723         Matthew Woehlke.
7724
7725         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
7726         definitions up, to avoid colliding with change below.
7727         (static_inline) [HAVE_INLINE]: New macro.
7728         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
7729         Provide extern decls when !HAVE_INLINE.  Do not define unless
7730         static_inline is defined, either by us or by xmalloc.c.  Use
7731         static_inline rather than static inline.
7732         (XCALLOC): Optimize sizeof(T) = 1 case.
7733         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
7734
7735 2006-11-07  Bruno Haible  <bruno@clisp.org>
7736
7737         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
7738         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
7739         AC_C_INLINE.
7740         * modules/xalloc (Files): Add m4/inline.m4.
7741
7742 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7743
7744         * README: Fix typo.
7745         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
7746         (Miscellanous Notes): ...from this.
7747
7748 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7749
7750         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7751         Mention that offsetof should be used instead of sizeof.
7752         From Bruno Haible.
7753
7754 2006-11-07  Bruno Haible  <bruno@clisp.org>
7755
7756         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
7757
7758 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7759
7760         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
7761         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
7762         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
7763         (gl_tree_add_before, gl_tree_add_after):
7764         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
7765         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
7766         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
7767         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
7768         (gl_linked_add_after, gl_linked_add_at): Likewise.
7769         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
7770         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
7771         (gl_tree_add_before, gl_tree_add_after): Likewise.
7772         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
7773         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
7774         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7775
7776 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7777
7778         * lib/gl_oset.h: Use C comment style, not C++ comment style.
7779
7780 2006-11-06  Bruno Haible  <bruno@clisp.org>
7781
7782         * m4/inline.m4: New file.
7783         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
7784         * modules/list (Files): Add m4/inline.m4.
7785         * modules/oset (Files): Likewise.
7786
7787 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7788
7789         * lib/idcache.c: Include <stddef.h>, for offsetof.
7790         (struct userid.name): Change from char * to a flexible array member.
7791         All uses changed.
7792         * modules/idcache (Depends-on): Add flexmember.
7793
7794         * MODULES.html.sh (Core language properties): New module flexmember.
7795         * modules/flexmember, m4/flexmember.m4: New files.
7796
7797         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
7798         inline functions that are identical with the old xnmalloc_inline,
7799         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
7800         that we can avoid some unnecessary integer multiplications and
7801         divisions in the common case where the element size is known at
7802         compile time.
7803         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
7804         needed.
7805         (xnboundedmalloc): Remove.
7806         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
7807         arguments, for consistency with rest of this header.
7808         (xcharalloc): Rewrite using XNMALLOC.
7809         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
7810         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
7811         versions have been moved to lib/xalloc.h and renamed to be the
7812         non-*_inline versions.
7813         (xmalloc, xrealloc): Implement without reference to the xnmalloc
7814         and xnrealloc functions, since those functions are now inline and
7815         now call us.
7816         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
7817         renaming described above.
7818         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
7819         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
7820         captures the dependency in AC_C_INLINE.
7821
7822         New module canonicalize-lgpl, proposed by Charles Wilson in
7823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
7824         with a few small changes afterwards.
7825         * MODULES.html.sh (File system functions): New module
7826         canonicalize-lgpl.
7827         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
7828         and canonicalize_file_name.
7829         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
7830         * modules/canonicalize-lgpl: New files.
7831
7832 2006-11-05  Bruno Haible  <bruno@clisp.org>
7833
7834         * gnulib-tool (func_import, func_create_testdir): Create directories
7835         also for files in subdirectories of lib/.
7836
7837 2006-11-05  Bruno Haible  <bruno@clisp.org>
7838
7839         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
7840         ANSI C compliant.
7841
7842 2006-11-03  Bruno Haible  <bruno@clisp.org>
7843
7844         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
7845         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
7846         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
7847         (xnboundedmalloc): New inline function.
7848         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
7849         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
7850         xmalloc.
7851         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
7852         xmalloc.
7853         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
7854         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
7855         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
7856         xmalloc.
7857         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
7858         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
7859         xmalloc.
7860         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
7861         gl_tree_add_after): Use XMALLOC instead of xmalloc.
7862         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
7863         xmalloc.
7864         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
7865         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
7866         gl_tree_add_after): Use XMALLOC instead of xmalloc.
7867         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
7868         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
7869         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
7870         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
7871
7872 2006-11-03  Bruno Haible  <bruno@clisp.org>
7873
7874         * lib/c-ctype.h [C++]: Define functions without name mangling.
7875         * lib/fwriteerror.h [C++]: Likewise.
7876         * lib/gcd.h [C++]: Likewise.
7877         * lib/linebreak.h [C++]: Likewise.
7878
7879 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
7880
7881         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
7882         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
7883         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
7884         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
7885         Check for functions and headers just once.
7886         Check for declaration of canonicalize_file_name.
7887         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
7888
7889 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
7890
7891         * gnulib-tool (func_import): Fix typo in actioncmd.
7892
7893 2006-11-02  Bruno Haible  <bruno@clisp.org>
7894
7895         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
7896         newline sequence in the Makefile.am snippet as a space, like "make"
7897         does.
7898         Reported by Roger Persson <perrog@gmail.com>.
7899
7900 2006-11-01  Bruno Haible  <bruno@clisp.org>
7901
7902         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
7903         already declared in <string.h>.
7904         * lib/strcase.h (strncasecmp): Don't declare it if yes.
7905
7906 2006-11-01  Bruno Haible  <bruno@clisp.org>
7907
7908         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
7909         * lib/strcase.h: Include <string.h>.
7910         (strcasecmp): Define to rpl_strcasecmp here.
7911
7912 2006-11-01  Bruno Haible  <bruno@clisp.org>
7913
7914         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
7915
7916 2006-11-01  Eric Blake  <ebb9@byu.net>
7917
7918         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
7919
7920         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
7921
7922 2006-10-29  Bruno Haible  <bruno@clisp.org>
7923
7924         Make it compile in C++ mode.
7925         * lib/full-write.c (full_rw): Add a cast.
7926
7927 2006-11-01  Bruno Haible  <bruno@clisp.org>
7928
7929         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
7930         be POSIX compliant.
7931         Reported by Roger Persson <perrog@gmail.com>.
7932
7933 2006-11-01  Eric Blake  <ebb9@byu.net>
7934
7935         * lib/getopt_.h: Fix comments.
7936
7937 2006-10-31  Eric Blake  <ebb9@byu.net>
7938
7939         * modules/tmpdir (Depends-on): Add sys_stat.
7940         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
7941         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
7942         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
7943         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
7944         tempname.
7945
7946 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7947
7948         Avoid some C++ diagnostics reported by Bruno Haible.
7949         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
7950         xmalloc.
7951         (quotearg_alloc): Use xcharalloc rather than xmalloc.
7952         (struct slotvec): Move to top level.
7953         (quotearg_n_options): Rewrite to avoid xmalloc.
7954         * lib/xalloc.h (xcharalloc): New function.
7955         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
7956         [defined __cplusplus]: Add function template that provides result
7957         type propagation.  This part of the change is from Bruno Haible.
7958
7959 2006-10-29  Bruno Haible  <bruno@clisp.org>
7960
7961         Make it compile in C++ mode.
7962         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
7963         * lib/strnlen1.c (strnlen1): Cast memchr result.
7964         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
7965         * lib/clean-temp.c (string_equals, string_hash): Add casts.
7966         (create_temp_dir): Rename local variable 'template'.
7967         (compile_csharp_using_sscli): Add cast.
7968         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
7969         * lib/findprog.c (find_in_path): Likewise.
7970         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
7971         * lib/wait-process.c (register_slave_subprocess): Likewise.
7972
7973 2006-10-22  Bruno Haible  <bruno@clisp.org>
7974
7975         * modules/tsearch: New file.
7976         * lib/tsearch.h: New file.
7977         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
7978         * m4/tsearch.m4: New file.
7979         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
7980
7981 2006-10-29  Eric Blake  <ebb9@byu.net>
7982
7983         * lib/arcfour.c: Assume config.h.
7984         * lib/arctwo.c: Likewise.
7985         * lib/base64.c: Likewise.
7986         * lib/check-version.c: Likewise.
7987         * lib/crc.c: Likewise.
7988         * lib/des.c: Likewise.
7989         * lib/gc-gnulib.c: Likewise.
7990         * lib/gc-libgcrypt.c: Likewise.
7991         * lib/gc-pbkdf2-sha1.c: Likewise.
7992         * lib/getaddrinfo.c: Likewise.
7993         * lib/getdelim.c: Likewise.
7994         * lib/getline.c: Likewise.
7995         * lib/hmac-md5.c: Likewise.
7996         * lib/hmac-sha1.c: Likewise.
7997         * lib/iconvme.c: Likewise.
7998         * lib/md2.c: Likewise.
7999         * lib/md4.c: Likewise.
8000         * lib/memxor.c: Likewise.
8001         * lib/read-file.c: Likewise.
8002         * lib/readline.c: Likewise.
8003         * lib/rijndael-alg-fst.c: Likewise.
8004         * lib/rijndael-api-fst.c: Likewise.
8005         * lib/xgetdomainname.c: Likewise.
8006
8007 2006-10-28  Eric Blake  <ebb9@byu.net>
8008
8009         * lib/xstrndup.c: Assume config.h.
8010
8011 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8012
8013         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
8014         stat-macros.h is now for our own macros, whereas stat_h is for
8015         macros in the <sys/stat.h> name space.
8016         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
8017         (STAT_MACROS_H): Remove.
8018         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
8019         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
8020         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
8021         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
8022         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
8023         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
8024         Move these macros to ...
8025         * lib/stat_.h: here.  Don't include stat-macros.h.
8026         * lib/canonicalize.c: Don't include stat-macros.h.
8027         * lib/chown.c: Likewise.
8028         * lib/euidaccess.c: Likewise.
8029         * lib/file-type.c: Likewise.
8030         * lib/filemode.c: Likewise.
8031         * lib/glob.c: Likewise.
8032         * lib/isapipe.c: Likewise.
8033         * lib/lchown.c: Likewise.
8034         * lib/lstat.c: Likewise.
8035         * lib/mkdir-p.c: Likewise.
8036         * lib/rmdir.c: Likewise.
8037         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
8038         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
8039         unless mkdir isn't declared, to speed up 'configure'.
8040         Always create sys/stat.h, since it's unlikely any real sys/stat.h
8041         would define all the S_* symbols.
8042         * modules/canonicalize (Depends-on):
8043         Depend on sys_stat, not stat-macros.
8044         * modules/chown: Likewise.
8045         * modules/euidaccess: Likewise.
8046         * modules/filemode: Likewise.
8047         * modules/file-type: Likewise.
8048         * modules/glob: Likewise.
8049         * modules/isapipe: Likewise.
8050         * modules/lchown: Likewise.
8051         * modules/lstat: Likewise.
8052         * modules/mkancesdirs: Likewise.
8053         * modules/rmdir: Likewise.
8054         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
8055         * modules/modechange: Likewise.
8056         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
8057         (configure.ac): Remove gl_STAT_MACROS.
8058         * modules/sys_stat (Depends-on): Remove stat-macros.
8059
8060 2006-10-27  Bruno Haible  <bruno@clisp.org>
8061
8062         * m4/signed.m4: Remove file.
8063         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
8064         invocation.
8065         * modules/vasnprintf (Files): Remove m4/signed.m4.
8066
8067 2006-10-27  Bruno Haible  <bruno@clisp.org>
8068
8069         Update to GNU gettext 0.16.
8070         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
8071         m4/inttypes-h.m4, m4/signed.m4.
8072         * m4/gettext.m4: Update to GNU gettext 0.16.
8073         * m4/intl.m4: New file, from GNU gettext.
8074         * m4/intldir.m4: New file, from GNU gettext.
8075         * config/srclist.txt: Update
8076
8077 2006-10-27  Eric Blake  <ebb9@byu.net>
8078
8079         * MODULES.html.sh: Document tempname.
8080         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
8081         dependencies.
8082         (Files): Move lib/tempname.c...
8083         * modules/tempname: ...to this new module.
8084         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
8085         (gl_PREREQ_TEMPNAME): Move...
8086         * m4/tempname.m4: ...to this new file.
8087         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
8088         * modules/sys_stat (Depends-on): Add stat-macros.
8089         * lib/stat_.h (includes): Pick up stat macros.
8090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
8091         if stat macros are broken.
8092         * lib/tempname.c (includes): No need to include "stat-macros.h".
8093         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
8094         (direxists, __path_search) [!_LIBC]: Don't compile these in
8095         gnulib; the tmpdir module covers that.
8096         * lib/tempname.h: New file.
8097
8098 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8099
8100         * COPYING: Explain how gnulib-tool converts licence headers.
8101         Almost all wording by Eric Blake.
8102
8103 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8104
8105         * lib/mbchar.h (is_basic_table): Make read-only.
8106         * lib/mbchar.c (is_basic_table): Likewise.
8107         Reported by John Darrington.
8108
8109 2006-10-25  Bruno Haible  <bruno@clisp.org>
8110
8111         * lib/progname.h (set_program_name): Undefine before defining.
8112
8113 2006-10-25  Bruno Haible  <bruno@clisp.org>
8114
8115         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
8116         false for non-gcc C++ compilers.
8117         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8118
8119 2006-10-24  Bruno Haible  <bruno@clisp.org>
8120
8121         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
8122         iconv implementations like Irix iconv.
8123
8124 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8125
8126         * modules/vararrays: New file.
8127         * m4/vararrays.m4: New file, taken from diffutils.
8128         * MODULES.html.sh: New module vararrays.
8129
8130 2006-10-24  Karl Berry  <karl@gnu.org>
8131
8132         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
8133         Don't call GNU Unix.
8134
8135 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8136
8137         * users.txt: Add Libtool.
8138
8139         Sync from Libtool:
8140
8141         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8142
8143         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
8144         to gnulib's policy of including config.h unconditionally.
8145
8146 2006-10-24  Bruno Haible  <bruno@clisp.org>
8147
8148         * modules/wcwidth (Files): Add m4/wint_t.m4.
8149         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
8150         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
8151
8152 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8153
8154         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
8155         to pacify GCC with some -W flags enabled.  Problem reported by
8156         Bruno Haible.
8157
8158 2006-10-24  Jim Meyering  <jim@meyering.net>
8159
8160         * MODULES.html.sh: Remove uinttostr.  It's not a module.
8161         Reported by Karl Berry.
8162
8163 2006-10-23  Bruno Haible  <bruno@clisp.org>
8164
8165         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
8166
8167 2006-10-24  Bruno Haible  <bruno@clisp.org>
8168
8169         * lib/gl_list.h: Use C comment style, not C++ comment style.
8170
8171 2006-10-23  Eric Blake  <ebb9@byu.net>
8172
8173         * lib/getaddrinfo.c (includes): Add missing include.
8174
8175 2006-10-23  Bruno Haible  <bruno@clisp.org>
8176             Paul Eggert  <eggert@cs.ucla.edu>
8177
8178         Ability to rename obstack_free.
8179         * lib/obstack.h (__obstack_free): New macro. Declare instead of
8180         obstack_free.
8181         (obstack_free): Invoke the __obstack_free macro.
8182         * lib/obstack.c (obstack_free): Use __obstack_free macro.
8183
8184 2006-10-23  Bruno Haible  <bruno@clisp.org>
8185             Paul Eggert  <eggert@cs.ucla.edu>
8186
8187         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
8188         __argc, __argv from the declaration. (They are defined as macros on
8189         mingw.)
8190
8191 2006-10-22  Bruno Haible  <bruno@clisp.org>
8192
8193         * doc/gnulib-intro.texi: New file.
8194         * doc/gnulib.texi: Include it.
8195
8196 2006-10-21  Bruno Haible  <bruno@clisp.org>
8197
8198         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
8199         "Introduction", "Miscellanous Notes", "Particular Modules".
8200
8201 2006-10-21  Bruno Haible  <bruno@clisp.org>
8202
8203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8204         Change mostlyclean-local rule to avoid sh syntax error from bash
8205         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
8206
8207 2006-10-23  Jim Meyering  <jim@meyering.net>
8208
8209         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
8210         in place of snprintf.
8211
8212         * modules/inttostr (Files): Add lib/uinttostr.c.
8213         * lib/uinttostr.c (inttostr): New file/function.
8214         * lib/inttostr.h (uinttostr): Declare.
8215         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
8216         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8217         Add uinttostr.
8218         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
8219
8220 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
8221
8222         * lib/canonicalize.c (ELOOP): Define if not already defined.
8223         Problem reported by Bruno Haible in
8224         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
8225
8226 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
8227
8228         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
8229         Problem reported by Perry Smith and Ville Laurikari.
8230
8231         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
8232         uses.
8233
8234 2006-10-19  Bruno Haible  <bruno@clisp.org>
8235
8236         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
8237         for mingw.
8238
8239 2006-10-19  Bruno Haible  <bruno@clisp.org>
8240
8241         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
8242         Needed for mingw.
8243
8244 2006-10-19  Bruno Haible  <bruno@clisp.org>
8245
8246         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
8247
8248 2006-10-19  Bruno Haible  <bruno@clisp.org>
8249
8250         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
8251         it.
8252
8253 2006-10-19  Bruno Haible  <bruno@clisp.org>
8254
8255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
8256         invocation.
8257
8258 2006-10-19  Bruno Haible  <bruno@clisp.org>
8259
8260         * gnulib-tool (func_create_testdir): Don't include ftruncate and
8261         mountlist by default.
8262
8263 2006-10-16  Bruno Haible  <bruno@clisp.org>
8264
8265         * lib/c-strstr.c: Include c-strstr.h.
8266
8267 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
8268
8269         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
8270         in a slash.
8271
8272 2006-10-18  Bruno Haible  <bruno@clisp.org>
8273
8274         * lib/lock.h [C++]: Wrap definitions in extern "C".
8275
8276 2006-10-18  Bruno Haible  <bruno@clisp.org>
8277
8278         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
8279         gl_LIBOBJS list.
8280
8281 2006-10-18  Bruno Haible  <bruno@clisp.org>
8282
8283         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
8284
8285 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8286
8287         * lib/xstrtol.h: Include gettext.h.
8288         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
8289         Problem reported by Eric Blake.
8290         * modules/xstrtol (Depends-on): Add gettext-h.
8291
8292 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
8293
8294         * lib/strftime.c (advance): New macro.
8295         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
8296         incomplete type, so you can't add 0 to it.  Problem and patch
8297         reported by Eelco Dolstra for dietlibc.
8298
8299 2006-10-18  Jim Meyering  <jim@meyering.net>
8300
8301         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
8302         type for a local, and rename it: s/up/user_proc/.
8303
8304 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
8305
8306         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
8307         READ_UTMP_USER_PROCESS.
8308         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
8309
8310 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8311
8312         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
8313         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
8314
8315 2006-10-17  Eric Blake  <ebb9@byu.net>
8316
8317         * lib/sigprocmask.c (sigprocmask): Fix typo.
8318
8319         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
8320
8321         * modules/clean-temp (Makefile.am): Don't add to make output...
8322         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
8323         config.h.
8324
8325 2006-10-17  Bruno Haible  <bruno@clisp.org>
8326
8327         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
8328         differently if DEFAULT_TEXT_DOMAIN is set.
8329
8330 2006-10-16  Bruno Haible  <bruno@clisp.org>
8331
8332         * lib/clean-temp.c: Include fwriteerror.h.
8333
8334 2006-10-16  Bruno Haible  <bruno@clisp.org>
8335
8336         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
8337
8338 2006-10-16  Bruno Haible  <bruno@clisp.org>
8339
8340         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
8341         * lib/sigprocmask.h: Include <sys/types.h>.
8342         (sigset_t): Use the system's definition if present.
8343
8344 2006-10-17  Eric Blake  <ebb9@byu.net>
8345
8346         * lib/xvasprintf.c (includes): Assume config.h.
8347         * lib/xasprintf.c (includes): Likewise.
8348
8349 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8350
8351         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
8352         at least as wide as intmax_t.
8353
8354 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
8355
8356         (Imported from Automake.)
8357         * build-aux/gnupload: Update to version 1.1 of directive file.
8358
8359 2006-10-16  Eric Blake  <ebb9@byu.net>
8360
8361         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
8362         match Automake 1.10a.
8363
8364 2006-10-14  Bruno Haible  <bruno@clisp.org>
8365
8366         * modules/sigprocmask: New file.
8367         * lib/sigprocmask.h: New file.
8368         * lib/sigprocmask.c: New file.
8369         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
8370         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
8371         request sigprocmask.o.
8372         (gl_PREREQ_SIGPROCMASK): New macro.
8373         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
8374         (Depends-on): Add sigprocmask.
8375         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
8376         gt_SIGNALBLOCKING. Test for 'raise' only once.
8377         * lib/fatal-signal.c: Include sigprocmask.h.
8378         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
8379         unblock_fatal_signals): Define always.
8380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8381         sigprocmask.
8382
8383 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8384
8385         Sync from Automake.
8386         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
8387         which incorrectly sets the mode of an existing destination
8388         directory.  In some cases the unpatched install-sh could do the
8389         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
8390         system.  We hope this is rare in practice, but it's clearly worth
8391         fixing.  Problem reported by Alex Unleashed in
8392         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
8393         Also, don't bother to check for -m bugs unless we're using -m;
8394         suggested by Stepan Kasal.
8395
8396 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8397
8398         Sync from Automake.
8399         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
8400         `-c' flag, so they appear at the same position as in %FASTDEP%
8401         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
8402         which ignores unknown options only after the first non-option.
8403         Bug report against M4 by Nelson H. F. Beebe.
8404
8405 2006-10-13  Jim Meyering  <jim@meyering.net>
8406
8407         Fix a bug in yesterday's change.
8408         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
8409         p->fts_statp->st_dev would be used uninitialized.
8410         Ensures that we always call fts_stat on the very first entry.
8411         Miklos Szeredi reported that find -xdev stopped working.
8412
8413 2006-10-12  Bruno Haible  <bruno@clisp.org>
8414
8415         * gnulib-tool (func_get_automake_snippet): Append an automatically
8416         computed EXTRA_DIST augmentation.
8417         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
8418         * modules/alloca-opt (Makefile.am): Likewise.
8419         * modules/allocsa (Makefile.am): Likewise.
8420         * modules/arcfour (Makefile.am): Likewise.
8421         * modules/arctwo (Makefile.am): Likewise.
8422         * modules/argmatch (Makefile.am): Likewise.
8423         * modules/argz (Makefile.am): Likewise.
8424         * modules/atexit (Makefile.am): Likewise.
8425         * modules/backupfile (Makefile.am): Likewise.
8426         * modules/byteswap (Makefile.am): Likewise.
8427         * modules/c-strtod (Makefile.am): Likewise.
8428         * modules/c-strtold (Makefile.am): Likewise.
8429         * modules/calloc (Makefile.am): Likewise.
8430         * modules/canon-host (Makefile.am): Likewise.
8431         * modules/canonicalize (Makefile.am): Likewise.
8432         * modules/chdir-long (Makefile.am): Likewise.
8433         * modules/chdir-safer (Makefile.am): Likewise.
8434         * modules/check-version (Makefile.am): Likewise.
8435         * modules/chown (Makefile.am): Likewise.
8436         * modules/cloexec (Makefile.am): Likewise.
8437         * modules/close-stream (Makefile.am): Likewise.
8438         * modules/closeout (Makefile.am): Likewise.
8439         * modules/crc (Makefile.am): Likewise.
8440         * modules/csharpexec (Makefile.am): Likewise.
8441         * modules/cycle-check (Makefile.am): Likewise.
8442         * modules/des (Makefile.am): Likewise.
8443         * modules/dev-ino (Makefile.am): Likewise.
8444         * modules/dirfd (Makefile.am): Likewise.
8445         * modules/dirname (Makefile.am): Likewise.
8446         * modules/dup2 (Makefile.am): Likewise.
8447         * modules/eealloc (Makefile.am): Likewise.
8448         * modules/error (Makefile.am): Likewise.
8449         * modules/euidaccess (Makefile.am): Likewise.
8450         * modules/exclude (Makefile.am): Likewise.
8451         * modules/exitfail (Makefile.am): Likewise.
8452         * modules/fcntl-safer (Makefile.am): Likewise.
8453         * modules/fcntl (Makefile.am): Likewise.
8454         * modules/file-type (Makefile.am): Likewise.
8455         * modules/fileblocks (Makefile.am): Likewise.
8456         * modules/filemode (Makefile.am): Likewise.
8457         * modules/filenamecat (Makefile.am): Likewise.
8458         * modules/fnmatch (Makefile.am): Likewise.
8459         * modules/fopen-safer (Makefile.am): Likewise.
8460         * modules/fpending (Makefile.am): Likewise.
8461         * modules/fprintftime (Makefile.am): Likewise.
8462         * modules/free (Makefile.am): Likewise.
8463         * modules/fsusage (Makefile.am): Likewise.
8464         * modules/ftruncate (Makefile.am): Likewise.
8465         * modules/fts (Makefile.am): Likewise.
8466         * modules/gc-arcfour (Makefile.am): Likewise.
8467         * modules/gc-des (Makefile.am): Likewise.
8468         * modules/gc-hmac-md5 (Makefile.am): Likewise.
8469         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
8470         * modules/gc-md4 (Makefile.am): Likewise.
8471         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
8472         * modules/gc-sha1 (Makefile.am): Likewise.
8473         * modules/gc (Makefile.am): Likewise.
8474         * modules/getaddrinfo (Makefile.am): Likewise.
8475         * modules/getcwd (Makefile.am): Likewise.
8476         * modules/getdelim (Makefile.am): Likewise.
8477         * modules/getdomainname (Makefile.am): Likewise.
8478         * modules/getgroups (Makefile.am): Likewise.
8479         * modules/gethostname (Makefile.am): Likewise.
8480         * modules/gethrxtime (Makefile.am): Likewise.
8481         * modules/getline (Makefile.am): Likewise.
8482         * modules/getloadavg (Makefile.am): Likewise.
8483         * modules/getlogin_r (Makefile.am): Likewise.
8484         * modules/getndelim2 (Makefile.am): Likewise.
8485         * modules/getopt (Makefile.am): Likewise.
8486         * modules/getpagesize (Makefile.am): Likewise.
8487         * modules/getpass-gnu (Makefile.am): Likewise.
8488         * modules/getpass (Makefile.am): Likewise.
8489         * modules/getsubopt (Makefile.am): Likewise.
8490         * modules/gettime (Makefile.am): Likewise.
8491         * modules/gettimeofday (Makefile.am): Likewise.
8492         * modules/getugroups (Makefile.am): Likewise.
8493         * modules/getusershell (Makefile.am): Likewise.
8494         * modules/glob (Makefile.am): Likewise.
8495         * modules/group-member (Makefile.am): Likewise.
8496         * modules/hard-locale (Makefile.am): Likewise.
8497         * modules/hash (Makefile.am): Likewise.
8498         * modules/hmac-md5 (Makefile.am): Likewise.
8499         * modules/hmac-sha1 (Makefile.am): Likewise.
8500         * modules/human (Makefile.am): Likewise.
8501         * modules/idcache (Makefile.am): Likewise.
8502         * modules/imaxabs (Makefile.am): Likewise.
8503         * modules/imaxdiv (Makefile.am): Likewise.
8504         * modules/inet_ntop (Makefile.am): Likewise.
8505         * modules/inet_pton (Makefile.am): Likewise.
8506         * modules/intprops (Makefile.am): Likewise.
8507         * modules/inttostr (Makefile.am): Likewise.
8508         * modules/inttypes (Makefile.am): Likewise.
8509         * modules/isapipe (Makefile.am): Likewise.
8510         * modules/javaversion (Makefile.am): Likewise.
8511         * modules/lchmod (Makefile.am): Likewise.
8512         * modules/lchown (Makefile.am): Likewise.
8513         * modules/localcharset (Makefile.am): Likewise.
8514         * modules/long-options (Makefile.am): Likewise.
8515         * modules/lstat (Makefile.am): Likewise.
8516         * modules/malloc (Makefile.am): Likewise.
8517         * modules/mathl (Makefile.am): Likewise.
8518         * modules/mbchar (Makefile.am): Likewise.
8519         * modules/md2 (Makefile.am): Likewise.
8520         * modules/md4 (Makefile.am): Likewise.
8521         * modules/md5 (Makefile.am): Likewise.
8522         * modules/memcasecmp (Makefile.am): Likewise.
8523         * modules/memchr (Makefile.am): Likewise.
8524         * modules/memcmp (Makefile.am): Likewise.
8525         * modules/memcoll (Makefile.am): Likewise.
8526         * modules/memcpy (Makefile.am): Likewise.
8527         * modules/memmem (Makefile.am): Likewise.
8528         * modules/memmove (Makefile.am): Likewise.
8529         * modules/mempcpy (Makefile.am): Likewise.
8530         * modules/memrchr (Makefile.am): Likewise.
8531         * modules/memset (Makefile.am): Likewise.
8532         * modules/memxor (Makefile.am): Likewise.
8533         * modules/mkancesdirs (Makefile.am): Likewise.
8534         * modules/mkdir-p (Makefile.am): Likewise.
8535         * modules/mkdir (Makefile.am): Likewise.
8536         * modules/mkdtemp (Makefile.am): Likewise.
8537         * modules/mkstemp (Makefile.am): Likewise.
8538         * modules/mktime (Makefile.am): Likewise.
8539         * modules/modechange (Makefile.am): Likewise.
8540         * modules/mountlist (Makefile.am): Likewise.
8541         * modules/nanosleep (Makefile.am): Likewise.
8542         * modules/obstack (Makefile.am): Likewise.
8543         * modules/openat (Makefile.am): Likewise.
8544         * modules/pagealign_alloc (Makefile.am): Likewise.
8545         * modules/pathmax (Makefile.am): Likewise.
8546         * modules/physmem (Makefile.am): Likewise.
8547         * modules/poll (Makefile.am): Likewise.
8548         * modules/posixtm (Makefile.am): Likewise.
8549         * modules/posixver (Makefile.am): Likewise.
8550         * modules/putenv (Makefile.am): Likewise.
8551         * modules/quote (Makefile.am): Likewise.
8552         * modules/quotearg (Makefile.am): Likewise.
8553         * modules/raise (Makefile.am): Likewise.
8554         * modules/read-file (Makefile.am): Likewise.
8555         * modules/readline (Makefile.am): Likewise.
8556         * modules/readlink (Makefile.am): Likewise.
8557         * modules/readtokens (Makefile.am): Likewise.
8558         * modules/readutmp (Makefile.am): Likewise.
8559         * modules/realloc (Makefile.am): Likewise.
8560         * modules/regex (Makefile.am): Likewise.
8561         * modules/rename-dest-slash (Makefile.am): Likewise.
8562         * modules/rename (Makefile.am): Likewise.
8563         * modules/rijndael (Makefile.am): Likewise.
8564         * modules/rmdir (Makefile.am): Likewise.
8565         * modules/rpmatch (Makefile.am): Likewise.
8566         * modules/safe-read (Makefile.am): Likewise.
8567         * modules/safe-write (Makefile.am): Likewise.
8568         * modules/same-inode (Makefile.am): Likewise.
8569         * modules/same (Makefile.am): Likewise.
8570         * modules/save-cwd (Makefile.am): Likewise.
8571         * modules/savedir (Makefile.am): Likewise.
8572         * modules/setenv (Makefile.am): Likewise.
8573         * modules/settime (Makefile.am): Likewise.
8574         * modules/sha1 (Makefile.am): Likewise.
8575         * modules/sig2str (Makefile.am): Likewise.
8576         * modules/snprintf (Makefile.am): Likewise.
8577         * modules/stat-macros (Makefile.am): Likewise.
8578         * modules/stat-time (Makefile.am): Likewise.
8579         * modules/stdbool (Makefile.am): Likewise.
8580         * modules/stdint (Makefile.am): Likewise.
8581         * modules/stdlib-safer (Makefile.am): Likewise.
8582         * modules/stpcpy (Makefile.am): Likewise.
8583         * modules/stpncpy (Makefile.am): Likewise.
8584         * modules/strcase (Makefile.am): Likewise.
8585         * modules/strcasestr (Makefile.am): Likewise.
8586         * modules/strchrnul (Makefile.am): Likewise.
8587         * modules/strcspn (Makefile.am): Likewise.
8588         * modules/strdup (Makefile.am): Likewise.
8589         * modules/strerror (Makefile.am): Likewise.
8590         * modules/strftime (Makefile.am): Likewise.
8591         * modules/strndup (Makefile.am): Likewise.
8592         * modules/strnlen (Makefile.am): Likewise.
8593         * modules/strpbrk (Makefile.am): Likewise.
8594         * modules/strsep (Makefile.am): Likewise.
8595         * modules/strstr (Makefile.am): Likewise.
8596         * modules/strtod (Makefile.am): Likewise.
8597         * modules/strtoimax (Makefile.am): Likewise.
8598         * modules/strtok_r (Makefile.am): Likewise.
8599         * modules/strtol (Makefile.am): Likewise.
8600         * modules/strtoll (Makefile.am): Likewise.
8601         * modules/strtoul (Makefile.am): Likewise.
8602         * modules/strtoull (Makefile.am): Likewise.
8603         * modules/strtoumax (Makefile.am): Likewise.
8604         * modules/strverscmp (Makefile.am): Likewise.
8605         * modules/sys_socket (Makefile.am): Likewise.
8606         * modules/sys_stat (Makefile.am): Likewise.
8607         * modules/sysexits (Makefile.am): Likewise.
8608         * modules/time_r (Makefile.am): Likewise.
8609         * modules/timegm (Makefile.am): Likewise.
8610         * modules/timespec (Makefile.am): Likewise.
8611         * modules/tmpfile-safer (Makefile.am): Likewise.
8612         * modules/trim (Makefile.am): Likewise.
8613         * modules/unistd-safer (Makefile.am): Likewise.
8614         * modules/unlinkdir (Makefile.am): Likewise.
8615         * modules/unlocked-io (Makefile.am): Likewise.
8616         * modules/userspec (Makefile.am): Likewise.
8617         * modules/utime (Makefile.am): Likewise.
8618         * modules/utimecmp (Makefile.am): Likewise.
8619         * modules/utimens (Makefile.am): Likewise.
8620         * modules/vasnprintf (Makefile.am): Likewise.
8621         * modules/vasprintf (Makefile.am): Likewise.
8622         * modules/vsnprintf (Makefile.am): Likewise.
8623         * modules/xalloc (Makefile.am): Likewise.
8624         * modules/xgetcwd (Makefile.am): Likewise.
8625         * modules/xnanosleep (Makefile.am): Likewise.
8626         * modules/xreadlink (Makefile.am): Likewise.
8627         * modules/xstrtod (Makefile.am): Likewise.
8628         * modules/xstrtol (Makefile.am): Likewise.
8629         * modules/xstrtold (Makefile.am): Likewise.
8630         * modules/yesno (Makefile.am): Likewise.
8631         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
8632
8633 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8634
8635         * modules/error (Makefile.am): Distribute files through
8636         EXTRA_DIST, not lib_SOURCES.
8637
8638 2006-10-12  Eric Blake  <ebb9@byu.net>
8639
8640         * modules/error (Makefile.am): Distribute files in /lib.
8641         * modules/obstack (Makefile.am): Likewise.
8642
8643 2006-10-12  Bruno Haible  <bruno@clisp.org>
8644
8645         * modules/acl (Makefile.am): Distribute all files in lib/ through
8646         EXTRA_DIST.
8647         * modules/arcfour (Makefile.am): Likewise.
8648         * modules/arctwo (Makefile.am): Likewise.
8649         * modules/argmatch (Makefile.am): Likewise.
8650         * modules/argz (Makefile.am): Likewise.
8651         * modules/atexit (Makefile.am): Likewise.
8652         * modules/backupfile (Makefile.am): Likewise.
8653         * modules/c-strtod (Makefile.am): Likewise.
8654         * modules/c-strtold (Makefile.am): Likewise.
8655         * modules/calloc (Makefile.am): Likewise.
8656         * modules/canon-host (Makefile.am): Likewise.
8657         * modules/canonicalize (Makefile.am): Likewise.
8658         * modules/chdir-long (Makefile.am): Likewise.
8659         * modules/chdir-safer (Makefile.am): Likewise.
8660         * modules/check-version (Makefile.am): Likewise.
8661         * modules/chown (Makefile.am): Likewise.
8662         * modules/cloexec (Makefile.am): Likewise.
8663         * modules/close-stream (Makefile.am): Likewise.
8664         * modules/closeout (Makefile.am): Likewise.
8665         * modules/crc (Makefile.am): Likewise.
8666         * modules/cycle-check (Makefile.am): Likewise.
8667         * modules/des (Makefile.am): Likewise.
8668         * modules/dirfd (Makefile.am): Likewise.
8669         * modules/dirname (Makefile.am): Likewise.
8670         * modules/dup2 (Makefile.am): Likewise.
8671         * modules/euidaccess (Makefile.am): Likewise.
8672         * modules/exclude (Makefile.am): Likewise.
8673         * modules/exitfail (Makefile.am): Likewise.
8674         * modules/fcntl-safer (Makefile.am): Likewise.
8675         * modules/file-type (Makefile.am): Likewise.
8676         * modules/fileblocks (Makefile.am): Likewise.
8677         * modules/filemode (Makefile.am): Likewise.
8678         * modules/filenamecat (Makefile.am): Likewise.
8679         * modules/fnmatch (Makefile.am): Likewise.
8680         * modules/fopen-safer (Makefile.am): Likewise.
8681         * modules/fpending (Makefile.am): Likewise.
8682         * modules/fprintftime (Makefile.am): Likewise.
8683         * modules/free (Makefile.am): Likewise.
8684         * modules/fsusage (Makefile.am): Likewise.
8685         * modules/ftruncate (Makefile.am): Likewise.
8686         * modules/fts (Makefile.am): Likewise.
8687         * modules/gc (Makefile.am): Likewise.
8688         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
8689         * modules/getaddrinfo (Makefile.am): Likewise.
8690         * modules/getcwd (Makefile.am): Likewise.
8691         * modules/getdelim (Makefile.am): Likewise.
8692         * modules/getdomainname (Makefile.am): Likewise.
8693         * modules/getgroups (Makefile.am): Likewise.
8694         * modules/gethostname (Makefile.am): Likewise.
8695         * modules/gethrxtime (Makefile.am): Likewise.
8696         * modules/getline (Makefile.am): Likewise.
8697         * modules/getloadavg (Makefile.am): Likewise.
8698         * modules/getlogin_r (Makefile.am): Likewise.
8699         * modules/getopt (Makefile.am): Likewise.
8700         * modules/getpass (Makefile.am): Likewise.
8701         * modules/getpass-gnu (Makefile.am): Likewise.
8702         * modules/getsubopt (Makefile.am): Likewise.
8703         * modules/gettime (Makefile.am): Likewise.
8704         * modules/gettimeofday (Makefile.am): Likewise.
8705         * modules/getugroups (Makefile.am): Likewise.
8706         * modules/getusershell (Makefile.am): Likewise.
8707         * modules/glob (Makefile.am): Likewise.
8708         * modules/group-member (Makefile.am): Likewise.
8709         * modules/hard-locale (Makefile.am): Likewise.
8710         * modules/hash (Makefile.am): Likewise.
8711         * modules/hmac-md5 (Makefile.am): Likewise.
8712         * modules/hmac-sha1 (Makefile.am): Likewise.
8713         * modules/human (Makefile.am): Likewise.
8714         * modules/idcache (Makefile.am): Likewise.
8715         * modules/imaxabs (Makefile.am): Likewise.
8716         * modules/imaxdiv (Makefile.am): Likewise.
8717         * modules/inet_ntop (Makefile.am): Likewise.
8718         * modules/inet_pton (Makefile.am): Likewise.
8719         * modules/inttostr (Makefile.am): Likewise.
8720         * modules/isapipe (Makefile.am): Likewise.
8721         * modules/lchown (Makefile.am): Likewise.
8722         * modules/long-options (Makefile.am): Likewise.
8723         * modules/lstat (Makefile.am): Likewise.
8724         * modules/malloc (Makefile.am): Likewise.
8725         * modules/mathl (Makefile.am): Likewise.
8726         * modules/mbchar (Makefile.am): Likewise.
8727         * modules/md2 (Makefile.am): Likewise.
8728         * modules/md4 (Makefile.am): Likewise.
8729         * modules/md5 (Makefile.am): Likewise.
8730         * modules/memcasecmp (Makefile.am): Likewise.
8731         * modules/memchr (Makefile.am): Likewise.
8732         * modules/memcmp (Makefile.am): Likewise.
8733         * modules/memcoll (Makefile.am): Likewise.
8734         * modules/memcpy (Makefile.am): Likewise.
8735         * modules/memmem (Makefile.am): Likewise.
8736         * modules/memmove (Makefile.am): Likewise.
8737         * modules/mempcpy (Makefile.am): Likewise.
8738         * modules/memrchr (Makefile.am): Likewise.
8739         * modules/memset (Makefile.am): Likewise.
8740         * modules/memxor (Makefile.am): Likewise.
8741         * modules/mkancesdirs (Makefile.am): Likewise.
8742         * modules/mkdir (Makefile.am): Likewise.
8743         * modules/mkdir-p (Makefile.am): Likewise.
8744         * modules/mkdtemp (Makefile.am): Likewise.
8745         * modules/mkstemp (Makefile.am): Likewise.
8746         * modules/mktime (Makefile.am): Likewise.
8747         * modules/modechange (Makefile.am): Likewise.
8748         * modules/mountlist (Makefile.am): Likewise.
8749         * modules/nanosleep (Makefile.am): Likewise.
8750         * modules/openat (Makefile.am): Likewise.
8751         * modules/pagealign_alloc (Makefile.am): Likewise.
8752         * modules/physmem (Makefile.am): Likewise.
8753         * modules/poll (Makefile.am): Likewise.
8754         * modules/posixtm (Makefile.am): Likewise.
8755         * modules/posixver (Makefile.am): Likewise.
8756         * modules/putenv (Makefile.am): Likewise.
8757         * modules/quote (Makefile.am): Likewise.
8758         * modules/quotearg (Makefile.am): Likewise.
8759         * modules/raise (Makefile.am): Likewise.
8760         * modules/read-file (Makefile.am): Likewise.
8761         * modules/readline (Makefile.am): Likewise.
8762         * modules/readlink (Makefile.am): Likewise.
8763         * modules/readtokens (Makefile.am): Likewise.
8764         * modules/readutmp (Makefile.am): Likewise.
8765         * modules/realloc (Makefile.am): Likewise.
8766         * modules/regex (Makefile.am): Likewise.
8767         * modules/rename (Makefile.am): Likewise.
8768         * modules/rename-dest-slash (Makefile.am): Likewise.
8769         * modules/rijndael (Makefile.am): Likewise.
8770         * modules/rmdir (Makefile.am): Likewise.
8771         * modules/rpmatch (Makefile.am): Likewise.
8772         * modules/safe-read (Makefile.am): Likewise.
8773         * modules/safe-write (Makefile.am): Likewise.
8774         * modules/same (Makefile.am): Likewise.
8775         * modules/save-cwd (Makefile.am): Likewise.
8776         * modules/savedir (Makefile.am): Likewise.
8777         * modules/setenv (Makefile.am): Likewise.
8778         * modules/settime (Makefile.am): Likewise.
8779         * modules/sha1 (Makefile.am): Likewise.
8780         * modules/sig2str (Makefile.am): Likewise.
8781         * modules/snprintf (Makefile.am): Likewise.
8782         * modules/stdlib-safer (Makefile.am): Likewise.
8783         * modules/stpcpy (Makefile.am): Likewise.
8784         * modules/stpncpy (Makefile.am): Likewise.
8785         * modules/strcase (Makefile.am): Likewise.
8786         * modules/strcasestr (Makefile.am): Likewise.
8787         * modules/strchrnul (Makefile.am): Likewise.
8788         * modules/strcspn (Makefile.am): Likewise.
8789         * modules/strdup (Makefile.am): Likewise.
8790         * modules/strerror (Makefile.am): Likewise.
8791         * modules/strftime (Makefile.am): Likewise.
8792         * modules/strndup (Makefile.am): Likewise.
8793         * modules/strnlen (Makefile.am): Likewise.
8794         * modules/strpbrk (Makefile.am): Likewise.
8795         * modules/strsep (Makefile.am): Likewise.
8796         * modules/strstr (Makefile.am): Likewise.
8797         * modules/strtod (Makefile.am): Likewise.
8798         * modules/strtoimax (Makefile.am): Likewise.
8799         * modules/strtok_r (Makefile.am): Likewise.
8800         * modules/strtol (Makefile.am): Likewise.
8801         * modules/strtoll (Makefile.am): Likewise.
8802         * modules/strtoul (Makefile.am): Likewise.
8803         * modules/strtoull (Makefile.am): Likewise.
8804         * modules/strtoumax (Makefile.am): Likewise.
8805         * modules/strverscmp (Makefile.am): Likewise.
8806         * modules/time_r (Makefile.am): Likewise.
8807         * modules/timegm (Makefile.am): Likewise.
8808         * modules/tmpfile-safer (Makefile.am): Likewise.
8809         * modules/unistd-safer (Makefile.am): Likewise.
8810         * modules/unlinkdir (Makefile.am): Likewise.
8811         * modules/userspec (Makefile.am): Likewise.
8812         * modules/utime (Makefile.am): Likewise.
8813         * modules/utimecmp (Makefile.am): Likewise.
8814         * modules/utimens (Makefile.am): Likewise.
8815         * modules/vasnprintf (Makefile.am): Likewise.
8816         * modules/vasprintf (Makefile.am): Likewise.
8817         * modules/vsnprintf (Makefile.am): Likewise.
8818         * modules/xalloc (Makefile.am): Likewise.
8819         * modules/xgetcwd (Makefile.am): Likewise.
8820         * modules/xnanosleep (Makefile.am): Likewise.
8821         * modules/xreadlink (Makefile.am): Likewise.
8822         * modules/xstrtod (Makefile.am): Likewise.
8823         * modules/xstrtol (Makefile.am): Likewise.
8824         * modules/xstrtold (Makefile.am): Likewise.
8825         * modules/yesno (Makefile.am): Likewise.
8826
8827 2006-10-12  Jim Meyering  <jim@meyering.net>
8828
8829         * m4/getloadavg.m4: Revert the change below.
8830
8831         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
8832         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
8833         fail with a symlink, which is what coreutils' ./bootstrap now
8834         creates by default.
8835
8836 2006-10-12  Bruno Haible  <bruno@clisp.org>
8837
8838         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
8839         mingw.
8840         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
8841         MSVC and mingw explicitly.
8842
8843 2006-10-11  Simon Josefsson  <jas@extundo.com>
8844             Bruno Haible  <bruno@clisp.org>
8845
8846         Add support for multiple gnulib-tool invocations in the scope of a
8847         single configure.ac file.
8848         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
8849         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
8850         with the same contents as the _LIBADD variable.
8851         (func_emit_initmacro_start, func_emit_initmacro_end,
8852         func_emit_initmacro_done): New functions.
8853         (func_import, func_create_testdir): Invoke them. Allow the identifiers
8854         gl_LIBOBJS and gl_LTLIBOBJS.
8855
8856 2006-10-11  Bruno Haible  <bruno@clisp.org>
8857
8858         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
8859         (func_create_testdir): Don't create po/Makefile.am, don't invoke
8860         autoreconf. Instead, invoke autopoint explicitly but move back the
8861         *.m4 files from gnulib.
8862
8863 2006-10-11  Bruno Haible  <bruno@clisp.org>
8864
8865         * gnulib-tool (func_usage): Make module names after --create-testdir
8866         optional.
8867         (func_create_testdir): If no module was specified, use nearly all
8868         modules.
8869
8870 2006-10-12  Jim Meyering  <jim@meyering.net>
8871
8872         Big performance improvement for fts-based tools that use FTS_NOSTAT.
8873         Avoid spurious inode-mismatch problems on non-POSIX file systems.
8874         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
8875         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
8876         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
8877         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
8878         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
8879         (fts_set_stat_required): New function.
8880         (fts_open): Defer the calls to fts_stat, if possible or requested.
8881         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
8882         into fts_stat itself.
8883         (fts_read): Perform any required (deferred) fts_stat call.
8884         (fts_build): Likewise, for the directory we're about to open and read.
8885         In the readdir loop, carefully decide whether each entry will require
8886         an eventual call to fts_stat, using dirent.d_type info if available.
8887         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
8888         a command line argument into this function.  Update all callers.
8889         Map a return value of FTS_DOT to FTS_D for a command line argument.
8890         * modules/fts (Depends-on): Add d-type.  Alphabetize.
8891         Thanks to Miklos Szeredi for his tenacity and for the initial
8892         bug report about "find" failing on a FUSE-based file system.
8893
8894         * lib/fts.c (fts_open): Use consistent indentation.
8895
8896 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8897
8898         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
8899         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
8900         reported by Jim Meyering.  All uses of cache variables renamed
8901         to match Autoconf's.
8902         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
8903         the other one.
8904
8905         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
8906         Fix misspelling in diagnostic.
8907
8908 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8909
8910         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
8911         defined.  Problem reported by Matthew Woehlke.
8912
8913         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
8914         Add support for Tandem NonStop R series.
8915         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
8916         Use new macro.
8917
8918         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
8919         (has_trailing_slash): Omit size arg; all callers changed.
8920         Omit 'inline', since it doesn't help performance and we'd
8921         need to configure it.
8922         Don't count //, ///, etc. as having a trailing slash.
8923         As a side effect, this removes a C99ism reported by Matthew Woehlke.
8924         (rpl_rename_dest_slash): On failure, use rename's errno rather
8925         than (in some cases) an incorrect or junk errno.
8926         Simplify code by removing need to compute length; this does
8927         cause it to make two passes instead of one over the file name,
8928         but it's worth it.
8929
8930         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
8931         change, since Autoconf's version may no longer be appropriate now
8932         that we are using CVS Autoconf's version.  Add support for Tandem.
8933
8934 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8935             Bruno Haible  <bruno@clisp.org>
8936
8937         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
8938         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
8939         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
8940         gl_AC_TYPE_LONG_LONG.
8941
8942         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
8943         instead of HAVE_LONG_LONG.
8944         * lib/printf-args.c (printf_fetchargs): Likewise.
8945         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8946         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8947         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
8948         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
8949         gl_AC_TYPE_LONG_LONG.
8950
8951 2006-10-11  Bruno Haible  <bruno@clisp.org>
8952
8953         * m4/longlong.m4: Add comments.
8954         * m4/ulonglong.m4: Likewise.
8955
8956 2006-10-10  Bruno Haible  <bruno@clisp.org>
8957
8958         Make it possible to #define stpcpy, strdup to aliases.
8959         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
8960         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
8961
8962 2006-10-10  Bruno Haible  <bruno@clisp.org>
8963
8964         Make it possible to #define gcd to an alias.
8965         * lib/gcd.c: Include config.h.
8966
8967 2006-10-10  Bruno Haible  <bruno@clisp.org>
8968
8969         Make it possible to #define c_isascii to an alias.
8970         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
8971         defined. Undefine the macros before defining them, to avoid gcc
8972         warnings.
8973         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
8974         define NO_C_CTYPE_MACROS early.
8975
8976 2006-10-10  Bruno Haible  <bruno@clisp.org>
8977
8978         Make it possible to #define set_program_name to an alias.
8979         * lib/progname.c: Don't undefine set_program_name; instead, undefine
8980         ENABLE_RELOCATABLE early.
8981
8982 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8983
8984         Port to Tandem NSK OSS, which has 64-bit signed int but at most
8985         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
8986         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
8987         More generally, don't assume that 64-bit signed int is available
8988         if unsigned int is, and vice versa.
8989         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
8990         unsigned symbols, not on their signed counterparts.
8991         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
8992         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
8993         (UINT64_C, UINTMAX_C):
8994         Likewise.
8995         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
8996         unsigned counterparts.
8997         (Have_long_long, Unsigned): New macros.
8998         (Int): Renamed from INT.
8999         (strtoimax): Use the new macros.
9000         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
9001         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
9002         * modules/inttypes (inttypes.h): Substitute
9003         HAVE_UNSIGNED_LONG_LONG_INT.
9004         * modules/stdint (stdint.h): Likewise.
9005         (Files): Add m4/ulonglong.m4.
9006
9007 2006-10-10  Bruno Haible  <bruno@clisp.org>
9008
9009         Fix a gcc -Wshadow warning.
9010         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
9011         to 'bucket'.
9012         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
9013         gl_linked_indexof_from_to): Likewise.
9014         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
9015         Likewise.
9016         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
9017         Likewise.
9018         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
9019         Reported by Eric Blake.
9020
9021 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9022
9023         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
9024         for NetBSD.  Problem reported by Bruno Haible.
9025
9026 2006-10-09  Jim Meyering  <jim@meyering.net>
9027
9028         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
9029         Patch from Bruno Haible.
9030
9031 2006-10-09  Jim Meyering  <jim@meyering.net>
9032
9033         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
9034         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
9035         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
9036
9037 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9038
9039         Don't include <config.h> twice; this doesn't work in some cases,
9040         e.g., when config.h has "#define intmax_t long long int" and
9041         we include <config.h>, <inttypes.h>, <config.h> in that order.
9042         Problem reported by Matthew Woehlke in:
9043         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
9044         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
9045         * lib/fts-cycle.c: Don't include config.h.
9046         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
9047         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
9048         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
9049         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
9050         inttypes.h.
9051         * lib/xstrtoumax.c: Likewise.
9052         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
9053         __strtol and the like, so that this module is more like its siblings.
9054         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
9055         Remove; no longer needed now that we assume gnulib inttypes.h.
9056
9057 2006-10-08  Bruno Haible  <bruno@clisp.org>
9058
9059         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
9060         option.
9061
9062 2006-10-07  Jim Meyering  <jim@meyering.net>
9063
9064         * modules/inttypes (inttypes.h): Revert what seems to have been
9065         an inadvertent part of today's change: use "|", not "/" in the
9066         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
9067
9068 2006-10-07  Bruno Haible  <bruno@clisp.org>
9069
9070         * modules/sublist: New file.
9071
9072 2006-10-07  Bruno Haible  <bruno@clisp.org>
9073
9074         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
9075         * modules/argz (argz.h): Likewise.
9076         * modules/arpa_inet (arpa/inet.h): Likewise.
9077         * modules/byteswap (byteswap.h): Likewise.
9078         * modules/configmake (configmake.h): Likewise.
9079         * modules/fcntl (fcntl.h): Likewise.
9080         * modules/fnmatch (fnmatch.h): Likewise.
9081         * modules/getopt (getopt.h): Likewise.
9082         * modules/glob (glob.h): Likewise.
9083         * modules/inttypes (inttypes.h): Likewise.
9084         * modules/netinet_in (netinet/in.h): Likewise.
9085         * modules/poll (poll.h): Likewise.
9086         * modules/stdbool (stdbool.h): Likewise.
9087         * modules/stdint (stdint.h): Likewise.
9088         * modules/sys_select (sys/select.h): Likewise.
9089         * modules/sys_socket (sys/socket.h): Likewise.
9090         * modules/sys_stat (sys/stat.h): Likewise.
9091         * modules/sysexits (sysexits.h): Likewise.
9092         * modules/unistd (unistd.h): Likewise.
9093         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9094         Add a "DO NOT EDIT" comment to the generated file.
9095         (func_import): Likewise for gnulib-comp.m4.
9096
9097 2006-10-07  Bruno Haible  <bruno@clisp.org>
9098
9099         * lib/gl_sublist.h: New file.
9100         * lib/gl_sublist.c: New file.
9101
9102 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9103
9104         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
9105         name (relative to the original working directory) and the file
9106         name component (relative to the temporary working directory).  All
9107         callers changed.
9108         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
9109         * lib/mkdir-p.c (make_dir_parents): Likewise.
9110         * lib/mkdir-p.h (make_dir_parents): Likewise.
9111
9112 2006-10-06  Eric Blake  <ebb9@byu.net>
9113
9114         Define several macros for use by the clean-temp module.
9115         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
9116         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
9117         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
9118
9119         * lib/clean-temp.h (close_stream_temp): New declaration.
9120         * lib/clean-temp.c (includes): Pull in headers according to what
9121         other modules are in use.
9122         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
9123
9124 2006-10-06  Bruno Haible  <bruno@clisp.org>
9125
9126         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
9127         instead of fopen, fwriteerror.
9128
9129 2006-10-06  Bruno Haible  <bruno@clisp.org>
9130
9131         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
9132         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
9133         int.
9134         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
9135         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
9136         Return an error indicator.
9137         Suggested by Eric Blake.
9138
9139 2006-10-06  Bruno Haible  <bruno@clisp.org>
9140
9141         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
9142         Reported by Eric Blake.
9143
9144 2006-10-06  Bruno Haible  <bruno@clisp.org>
9145
9146         * modules/closeout (Description): Mention stderr too.
9147
9148 2006-10-06  Bruno Haible  <bruno@clisp.org>
9149         and Paul Eggert  <eggert@cs.ucla.edu>
9150
9151         * lib/closeout.c (close_stdout): Also close stderr.
9152         * lib/closeout.h: Update comment.
9153
9154 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9155
9156         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
9157         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
9158         * lib/dirchownmod.c: Include lchown.h.
9159         * lib/lchown.c: Don't include files that lchown.h now includes.
9160         Don't declare chown, since lchown.h now does that.
9161         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
9162         (lchown): Define to rpl_chown if lchown is declared but
9163         does not exist.  Declare using a prototype if lchown is not
9164         declared.  Add a copyright notice.
9165         * lib/mkstemp.h: Include <unistd.h>.
9166         * lib/openat.c: Include lchown.h.
9167
9168         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
9169         we now test for that separately.
9170         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
9171         rather than O_NOFOLLOW, when testing whether it's possible to
9172         avoid a race condition reliably.
9173         * lib/savewd.c (savewd_chdir): Likewise.
9174
9175         Remove macros that are no longer needed now that stdint.h is
9176         reliable.
9177         * lib/fsusage.c (UINTMAX_MAX): Remove.
9178         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
9179         * lib/utimecmp.c (SIZE_MAX): Remove.
9180
9181         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
9182
9183         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
9184         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
9185         O_NOATIME works.
9186
9187 2006-10-05  Bruno Haible  <bruno@clisp.org>
9188
9189         * lib/gl_list.h (gl_sortedlist_search_from_to,
9190         gl_sortedlist_indexof_from_to): New declarations.
9191         (gl_list_implementation): New fields sortedlist_search_from_to,
9192         sortedlist_indexof_from_to.
9193         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
9194         inline functions.
9195         * lib/gl_list.c (gl_sortedlist_search_from_to,
9196         gl_sortedlist_indexof_from_to): New functions.
9197         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
9198         function.
9199         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
9200         (gl_array_sortedlist_search_from_to): New function.
9201         (gl_array_list_implementation): Update.
9202         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
9203         function.
9204         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
9205         (gl_carray_sortedlist_search_from_to): New function.
9206         (gl_carray_list_implementation): Update.
9207         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
9208         gl_linked_sortedlist_indexof_from_to): New functions.
9209         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9210         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9211         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
9212         gl_tree_sortedlist_indexof_from_to): New functions.
9213         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9214         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9215         Update.
9216         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9217         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
9218         Update.
9219
9220 2006-10-05  Bruno Haible  <bruno@clisp.org>
9221
9222         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
9223         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
9224         (struct gl_list_implementation): Add fields search_from_to,
9225         indexof_from_to. Remove fields search, indexof.
9226         (gl_list_search): Use the search_from_to method.
9227         (gl_list_search_from, gl_list_search_from_to): New functions.
9228         (gl_list_indexof): Use the indexof_from_to method.
9229         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9230         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
9231         (gl_list_search_from, gl_list_search_from_to): New functions.
9232         (gl_list_indexof): Use the indexof_from_to method.
9233         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9234         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
9235         gl_array_indexof. Add start_index, end_index arguments.
9236         (gl_array_search_from_to): Renamed from gl_array_search. Add
9237         start_index, end_index arguments.
9238         (gl_array_remove, gl_array_list_implementation): Update.
9239         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
9240         gl_carray_indexof. Add start_index, end_index arguments.
9241         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
9242         start_index, end_index arguments.
9243         (gl_carray_remove, gl_carray_list_implementation): Update.
9244         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
9245         gl_linked_search. Add start_index, end_index arguments.
9246         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
9247         start_index, end_index arguments.
9248         (gl_linked_remove): Update.
9249         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9250         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9251         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
9252         field to 'size_t'.
9253         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
9254         gl_tree_search. Add start_index, end_index arguments.
9255         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9256         start_index, end_index arguments.
9257         (gl_tree_remove): Update.
9258         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9259         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9260         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
9261         function.
9262         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
9263         gl_tree_search. Add start_index, end_index arguments.
9264         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9265         start_index, end_index arguments.
9266         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9267         Update.
9268         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
9269
9270 2006-10-05  Bruno Haible  <bruno@clisp.org>
9271
9272         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
9273
9274         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
9275         fwriteerror_temp): New declarations.
9276         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
9277         (descriptors): New variable.
9278         (cleanup): First, close the descriptors.
9279         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
9280         fclose_temp, fwriteerror_temp): New functions.
9281
9282 2006-10-04  Jim Meyering  <jim@meyering.net>
9283
9284         * lib/fts.c (fts_open): Tiny comment change.
9285
9286 2006-10-04  Bruno Haible  <bruno@clisp.org>
9287
9288         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
9289         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
9290         gl_LOCK_BODY.
9291         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
9292         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
9293         gl_LOCK_EARLY_BODY.
9294         (gl_LOCK): Require gl_LOCK_BODY.
9295
9296 2006-10-04  Bruno Haible  <bruno@clisp.org>
9297
9298         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
9299         (gl_oset_search_atleast): New declaration.
9300         (struct gl_oset_implementation): Add field 'search_atleast'.
9301         (gl_oset_search_atleast): New inline function.
9302         * lib/gl_oset.c (gl_oset_search_atleast): New function.
9303         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
9304         (gl_array_oset_implementation): Update.
9305         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
9306         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
9307         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
9308
9309 2006-10-04  Bruno Haible  <bruno@clisp.org>
9310
9311         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
9312
9313 2006-10-03  Bruno Haible  <bruno@clisp.org>
9314
9315         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
9316         from gl_avltreehash_list_implementation.
9317
9318 2006-10-03  Bruno Haible  <bruno@clisp.org>
9319
9320         * lib/gl_oset.c (gl_oset_add): Fix return type.
9321
9322 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
9323
9324         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
9325
9326 2006-10-02  Eric Blake  <ebb9@byu.net>
9327
9328         * modules/strnlen (Depends-on): Add extensions.
9329
9330 2006-10-02  Eric Blake  <ebb9@byu.net>
9331
9332         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
9333         definition in 2.60+.
9334
9335 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9336
9337         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
9338         checks.
9339
9340 2006-10-02  Bruno Haible  <bruno@clisp.org>
9341
9342         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
9343         to the AUTOMAKE_OPTIONS.
9344         Reported by Jim Meyering.
9345
9346 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
9347
9348         Work around bug in Solaris 10 /proc file system:
9349         /proc/self/fd/NNN/.. isn't the parent directory of
9350         the directory whose file descriptor is NNN.  This needs to
9351         be worked around at run time, not compile time, since a
9352         program might be built on Solaris 8, where things work, and
9353         run on Solaris 10.
9354         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
9355         to use the following interface instead:
9356         (OPENAT_BUFFER_SIZE): New macro.
9357         (openat_proc_name): New function.
9358         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
9359         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
9360         Likewise.
9361         * lib/openat-proc.c: New file.
9362         * modules/openat (Files): Add lib/openat-proc.c.
9363         (Depends-on): Add same-inode, stdbool.
9364         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
9365
9366 2006-09-29  Bruno Haible  <bruno@clisp.org>
9367
9368         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
9369         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
9370         argument. Set stdout_closed before testing for ferror, not after.
9371         (fwriteerror, fwriteerror_no_ebadf): New functions.
9372
9373 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9374
9375         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
9376
9377 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
9378
9379         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
9380         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
9381
9382 2006-09-28  Jim Meyering  <jim@meyering.net>
9383
9384         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
9385         Include <unistd.h>.
9386
9387 2006-09-28  Bruno Haible  <bruno@clisp.org>
9388
9389         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
9390         * modules/linkedhash-list (Depends-on): Likewise.
9391         * modules/rbtreehash-list (Depends-on): Likewise.
9392
9393 2006-09-28  Bruno Haible  <bruno@clisp.org>
9394
9395         * lib/strndup.h: Simplify the redefinition of strndup.
9396         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
9397         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
9398
9399 2006-09-28  Bruno Haible  <bruno@clisp.org>
9400
9401         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
9402         * lib/gl_linkedhash_list.c: Likewise.
9403         * lib/gl_rbtreehash_list.c: Likewise.
9404
9405 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
9406
9407         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
9408         getaddrinfo.
9409
9410         * lib/__fpending.h: Don't include <stdio_ext.h> unless
9411         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
9412         it causes <stdio_ext.h> to cause a compile-time error.
9413         Problem reported by Nelson H. F. Beebe.
9414         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
9415         of HAVE_DECL___PENDING.
9416
9417         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
9418         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
9419         declaration.
9420
9421 2006-09-27  Jim Meyering  <jim@meyering.net>
9422
9423         This file could end up with a definition for a function
9424         named __strndup, rather than rpl_strndup on a system with
9425         incomplete weak_alias support.
9426         * lib/strndup.c (strndup): Rename from __strndup.
9427         Remove #defines that used to map __strndup to strndup.
9428         Don't use K&R prototypes.
9429         Remove LIBC-related code, since this file is not sync'd with glibc.
9430         * lib/strndup.h: Revamp, accordingly.
9431         * m4/strndup.m4: Modernize.
9432
9433 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9434
9435         * modules/savewd (Depends-on): Add 'raise'.
9436         * lib/savewd.c: Include <signal.h>, for 'raise'.
9437
9438 2006-09-26  Jim Meyering  <jim@meyering.net>
9439
9440         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
9441         when we detect Darwin 8.7.0's acl_get_file bug.
9442         Rearrange to perform the new (below) run-test while $LIBS
9443         contains any acl-related library.  Set USE_ACL at the end.
9444         (gl_ACL_GET_FILE): New function.
9445
9446 2006-09-26  Eric Blake  <ebb9@byu.net>
9447
9448         * lib/verror.c: Include <config.h> unconditionally.
9449
9450 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9451
9452         * modules/clock-time (Maintainer): Add self.
9453         * modules/getlogin_r (Depends-on): Add extensions.
9454
9455 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9456
9457         * modules/clock-time: New module.
9458         * modules/nanosleep (Depends-on): Add clock-time.
9459         * modules/gethrxtime (Depends-on): Likewise.
9460         * modules/gettime (Depends-on): Likewise.
9461         * modules/settime (Depends-on): Likewise.
9462
9463         * modules/fts-lgpl: Depend on openat.
9464         * modules/mkancesdirs: Depend on savewd.
9465         * modules/mkdir-p: Likewise.
9466
9467 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9468
9469         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
9470
9471         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
9472         `gl_have_arbitrary_file_name_length_limit' to
9473         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
9474         actually works between configure runs.
9475
9476 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9477             Bruno Haible  <bruno@clisp.org>
9478
9479         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
9480
9481 2006-09-25  Jim Meyering  <jim@meyering.net>
9482
9483         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
9484         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
9485
9486 2006-09-25  Eric Blake  <ebb9@byu.net>
9487
9488         * gnulib-tool (func_import, func_create_testdir): Fix typos in
9489         exec's in 2006-09-18 patch when shuffling fds.
9490
9491 2006-09-25  Bruno Haible  <bruno@clisp.org>
9492
9493         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
9494         Reported by Jim Meyering.
9495
9496 2006-09-24  Jim Meyering  <jim@meyering.net>
9497
9498         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
9499         compare a pointer against a literal "0".  That caused failures with
9500         at least HP-UX's hpcc.
9501
9502 2006-09-22  Simon Josefsson  <jas@extundo.com>
9503
9504         * modules/gc-sha1:
9505         * modules/gc-md4:
9506         * modules/gc-hmac-sha1:
9507         * modules/gc-hmac-md5:
9508         * modules/gc-des:
9509         * modules/gc-arcfour: Distribute more files.
9510
9511 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9512
9513         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
9514         (gl_linked_iterator_from_to): Initialize struct completely.
9515         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
9516         (gl_tree_iterator_from_to): Likewise
9517         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
9518         * lib/gl_array_list.c [lint] (gl_array_iterator)
9519         (gl_array_iterator_from_to): Likewise.
9520         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
9521         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
9522         (gl_carray_iterator_from_to): Likewise.
9523
9524         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
9525         * lib/md4.c (md4_process_block): Remove unused variable.
9526         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
9527         parentheses for clarity.
9528
9529 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9530
9531         * modules/bison-i18n (Depends-on): Add gettext.
9532
9533 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9534
9535         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
9536         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9537         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
9538         also add missing comma that caused broken test.
9539         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
9540         stdlib.h, for `abort'.
9541         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
9542         variables.
9543         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
9544         include unistd.h if present, for `rmdir'.
9545         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
9546         variables.
9547         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
9548         in the process include standard headers for prototypes.
9549         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
9550         gets declared on GNU/Linux.
9551         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
9552         unistd.h, for `rmdir'.
9553         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
9554
9555         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
9556         always true.
9557         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
9558
9559         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
9560
9561 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9562
9563         * gnulib-tool (func_version): Create output all at once.  This
9564         may help avoid triggering unnecessary SIGPIPEs, and at any
9565         rate it doesn't hurt.
9566
9567 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9568             Bruno Haible  <bruno@clisp.org>
9569
9570         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
9571         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9572         * m4/signed.m4 (bh_C_SIGNED): Likewise.
9573
9574         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
9575         (gl_FUNC_VASPRINTF): Invoke it.
9576
9577 2006-09-22  Bruno Haible  <bruno@clisp.org>
9578
9579         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
9580         getloadavg.c as first argument.
9581
9582 2006-09-22  Bruno Haible  <bruno@clisp.org>
9583
9584         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
9585         at the beginning of the gl_INIT macro.
9586         * modules/getloadavg (configure.ac): Pass $gl_source_base to
9587         gl_GETLOADAVG.
9588
9589 2006-09-22  Bruno Haible  <bruno@clisp.org>
9590
9591         * gnulib-tool (func_create_megatestdir): Don't include the config-h
9592         module.
9593         Suggested by Ralf Wildenhues.
9594
9595 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9596
9597         Import this patch from libc:
9598
9599         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9600
9601         * lib/regex_internal.c (re_string_reconstruct): Handle
9602         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9603         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9604         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9605         re_string_context_at.
9606
9607         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
9608         now requires it.
9609         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
9610         gl_REGEX now does it for us.
9611         (gl_REGEX): Add test taken from
9612         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
9613
9614         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
9615         Check that large offsets work.  Modernize Autoconf usages.
9616         Prefer "yes" to mean a good thing rather than a bad.
9617         Don't put "#define mkstemp" in config.h, as this might interfere
9618         with standard system headers that "#define mkstemp mkstemp64".
9619
9620         * modules/mkstemp (Depends-on): Add extensions, so that
9621         mkstemp is visible on some platforms.
9622         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
9623         (Include): Change to "mkstemp.h" from <stdlib.h>.
9624         (Files): Add mkstemp.h.
9625
9626         * lib/mkstemp.h: New file, since some standard headers
9627         #define mkstemp.
9628         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
9629         Include "mkstemp.h".
9630         Make the _LIBC code resemble glibc original more,
9631         e.g., use K&R style.
9632         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
9633         (mkstemp): Remove, since mkstemp.h does this for us.
9634         * lib/stdlib--.h: Include mkstemp.h.
9635
9636         Import this patch from libc:
9637
9638         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
9639
9640         * lib/tempname.c (__gen_tempname): Change attempts_min
9641         into a macro.  Use preprocessor to decide how to initialize
9642         attempts [Coverity CID 67].
9643
9644 2006-09-20  Bruno Haible  <bruno@clisp.org>
9645
9646         * lib/mkdtemp.c: Import from libc.
9647         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
9648                 * sysdeps/posix/tempname.c (__gen_tempname): Change
9649                 attempts_min into a macro.  Use preprocessor to decide how to
9650                 initialize attempts [Coverity CID 67].
9651         2001-11-27  Paul Eggert  <eggert@twinsun.com>
9652                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
9653                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
9654
9655 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9656
9657         * gnulib-tool (func_exit): New function, to allow to pass the
9658         exit status portably through the trap.  Use everywhere.
9659         (--help, --version): Signal a write error.
9660         (trap): catch SIGPIPE, for write errors.
9661         Exit at the end of the trap, with the correct exit status.
9662
9663 2006-09-19  Karl Berry  <karl@gnu.org>
9664
9665         * doc/gnulib.texi: note about the license texinfo files.
9666
9667 2006-09-19  Eric Blake  <ebb9@byu.net>
9668
9669         * gnulib-tool: Avoid space-tab.
9670
9671 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9672
9673         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
9674         that prevented coreutils 6.1 from building.  Problem reported
9675         by Petter Reinholdtsen.
9676
9677 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9678
9679         * gnulib-tool (avoidlist): Fix typo that broke options like
9680         --avoid=lock that are used by coreutils bootstrap.
9681
9682 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
9683
9684         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
9685         more systematically.
9686
9687 2006-09-18  Jim Meyering  <jim@meyering.net>
9688
9689         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
9690
9691 2006-09-18  Bruno Haible  <bruno@clisp.org>
9692
9693         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
9694
9695 2006-09-18  Bruno Haible  <bruno@clisp.org>
9696
9697         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
9698         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
9699         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
9700         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
9701         * m4/gettext.m4: Require autoconf >= 2.52.
9702         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
9703         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
9704         of gl_cv_header_inttypes_h.
9705
9706 2006-09-18  Bruno Haible  <bruno@clisp.org>
9707
9708         * lib/javaversion.c: Include configmake.h.
9709
9710 2006-09-18  Bruno Haible  <bruno@clisp.org>
9711
9712         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
9713         avoid that the while loops be executed in a subshell.
9714
9715 2006-09-18  Bruno Haible  <bruno@clisp.org>
9716
9717         * MODULES.html.sh (func_module): Break long lines.
9718         Suggested by Bruce Korb <bkorb@gnu.org>.
9719
9720 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9721
9722         Speed up by a factor of 1.12.
9723         * gnulib-tool (nl): New variable.
9724         (func_import): Rewrite include directive extraction to only read each
9725         directive once.
9726
9727 2006-09-17  Bruno Haible  <bruno@clisp.org>
9728
9729         * modules/javaversion (Makefile.am): Remove DEFS setting.
9730         (Depends-on): Add configmake, for PKGDATADIR definition.
9731
9732 2006-09-17  Bruno Haible  <bruno@clisp.org>
9733
9734         * gnulib-tool (func_create_testdir): Rewrite all files at once.
9735
9736 2006-09-17  Bruno Haible  <bruno@clisp.org>
9737
9738         * gnulib-tool (func_append): New function, stolen from libtool.m4.
9739         (func_modules_transitive_closure, func_modules_add_dummy,
9740         func_modules_to_filelist, func_import, func_create_testdir,
9741         func_create_megatestdir, ...): Use it wherever possible.
9742         Suggested by Ralf Wildenhues.
9743
9744 2006-09-16  Karl Berry  <karl@gnu.org>
9745
9746         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
9747         to avoid sectioning errors.
9748         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
9749         [ifinfo]: blank line after @center-ed titles.
9750         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
9751         Spell FSF address consistently with others.
9752         (These changes approved by rms.)
9753
9754 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9755
9756         Speed up by a factor of 1.61.
9757         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
9758         already checked module names again.
9759
9760 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9761
9762         Speed up by a factor of 1.13.
9763         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
9764         for new_files, and the input to func_add_or_update.
9765
9766 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9767
9768         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
9769         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
9770
9771 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9772
9773         * modules/mkancesdirs (Depends-on): Add fcntl.
9774         * modules/savewd: New file.
9775         * MODULES.html.sh (File system functions): Add savewd.
9776
9777         * modules/configmake (Makefile.am): Add support for the
9778         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
9779
9780 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9781
9782         * m4/savewd.m4: New file.
9783
9784 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9785
9786         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
9787         (dirchownmod): New arg FD.  All callers changed.
9788         Use FD rather than opening the directory ourself, as opening is
9789         now the caller's responsibility.
9790         * lib/dirchownmod.h: Likewise.
9791         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
9792         hosts that require <sys/types.h> before <sys/stat.h>.  Include
9793         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
9794         (test_dir): Remove.
9795         (mkancesdirs): Return length of prefix of FILE that has already
9796         been made, or -2 if there is a child doing the work.  Redo
9797         algorithm so that it is O(N) rather than O(N**2).  Optimize away
9798         ".", and treat ".." specially since it might stray back into
9799         already-created areas.  Use a subprocess if necessary.  New arg
9800         WD; all users changed.  MAKE_DIR function should now return 1
9801         if it creates a directory that is not readable.  Return -2 if
9802         a child process is spun off.
9803         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
9804         Adjust signature to match code.
9805         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
9806         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
9807         all users changed.
9808         * lib/savewd.c, lib/savewd.h: New files.
9809
9810 2006-09-15  Jim Meyering  <jim@meyering.net>
9811
9812         * modules/rename-dest-slash: New module.
9813         * MODULES.html.sh (posix_compat): Add it here.
9814
9815         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
9816
9817 2006-09-15  Jim Meyering  <jim@meyering.net>
9818
9819         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
9820         file.
9821
9822         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
9823
9824 2006-09-15  Jim Meyering  <jim@meyering.net>
9825
9826         * lib/rename-dest-slash.c (has_trailing_slash): Use
9827         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
9828         (rpl_rename_dest_slash): Perform the cheaper trailing slash
9829         test before testing whether SRC is a directory.
9830         Suggestions from Bruno Haible.
9831
9832         Avoid a warning about an unused variable.
9833         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
9834         into the #ifdef block where it's used.
9835
9836         * lib/rename-dest-slash.c: New file.
9837
9838 2006-09-14  Bruno Haible  <bruno@clisp.org>
9839
9840         * lib/allocsa.c: Include <config.h> unconditionally.
9841         * lib/asnprintf.c: Likewise.
9842         * lib/asprintf.c: Likewise.
9843         * lib/c-strcasecmp.c: Likewise.
9844         * lib/c-strcasestr.c: Likewise.
9845         * lib/c-strncasecmp.c: Likewise.
9846         * lib/c-strstr.c: Likewise.
9847         * lib/classpath.c: Likewise.
9848         * lib/clean-temp.c: Likewise.
9849         * lib/concatpath.c: Likewise.
9850         * lib/copy-file.c: Likewise.
9851         * lib/csharpcomp.c: Likewise.
9852         * lib/csharpexec.c: Likewise.
9853         * lib/execute.c: Likewise.
9854         * lib/fatal-signal.c: Likewise.
9855         * lib/findprog.c: Likewise.
9856         * lib/fwriteerror.c: Likewise.
9857         * lib/gl_array_list.c: Likewise.
9858         * lib/gl_array_oset.c: Likewise.
9859         * lib/gl_avltree_list.c: Likewise.
9860         * lib/gl_avltree_oset.c: Likewise.
9861         * lib/gl_avltreehash_list.c: Likewise.
9862         * lib/gl_carray_list.c: Likewise.
9863         * lib/gl_linked_list.c: Likewise.
9864         * lib/gl_linkedhash_list.c: Likewise.
9865         * lib/gl_list.c: Likewise.
9866         * lib/gl_oset.c: Likewise.
9867         * lib/gl_rbtree_list.c: Likewise.
9868         * lib/gl_rbtree_oset.c: Likewise.
9869         * lib/gl_rbtreehash_list.c: Likewise.
9870         * lib/imaxabs.c: Likewise.
9871         * lib/imaxdiv.c: Likewise.
9872         * lib/javacomp.c: Likewise.
9873         * lib/javaexec.c: Likewise.
9874         * lib/javaversion.c: Likewise.
9875         * lib/linebreak.c: Likewise.
9876         * lib/localcharset.c: Likewise.
9877         * lib/lock.c: Likewise.
9878         * lib/mbchar.c: Likewise.
9879         * lib/mbswidth.c: Likewise.
9880         * lib/mkdtemp.c: Likewise.
9881         * lib/pipe.c: Likewise.
9882         * lib/printf-args.c: Likewise.
9883         * lib/printf-parse.c: Likewise.
9884         * lib/progname.c: Likewise.
9885         * lib/progreloc.c: Likewise.
9886         * lib/readlink.c: Likewise.
9887         * lib/sh-quote.c: Likewise.
9888         * lib/stpcpy.c: Likewise.
9889         * lib/stpncpy.c: Likewise.
9890         * lib/strcasecmp.c: Likewise.
9891         * lib/strcasestr.c: Likewise.
9892         * lib/strcspn.c: Likewise.
9893         * lib/striconv.c: Likewise.
9894         * lib/strncasecmp.c: Likewise.
9895         * lib/strnlen1.c: Likewise.
9896         * lib/strstr.c: Likewise.
9897         * lib/strtok_r.c: Likewise.
9898         * lib/tls.c: Likewise.
9899         * lib/tmpdir.c: Likewise.
9900         * lib/unicodeio.c: Likewise.
9901         * lib/unsetenv.c: Likewise.
9902         * lib/vasnprintf.c: Likewise.
9903         * lib/vasprintf.c: Likewise.
9904         * lib/wait-process.c: Likewise.
9905         * lib/xallocsa.c: Likewise.
9906         * lib/xsetenv.c: Likewise.
9907         * lib/xstriconv.c: Likewise.
9908
9909 2006-09-13  Simon Josefsson  <jas@extundo.com>
9910
9911         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
9912         that internally, suggested by Ralf Wildenhues
9913         <Ralf.Wildenhues@gmx.de>.
9914
9915 2006-09-13  Simon Josefsson  <jas@extundo.com>
9916
9917         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
9918         @LIBOBJS@.
9919         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9920
9921 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9922
9923         * lib/_fpending.c: Include <config.h> unconditionally, since we no
9924         longer worry about uses that don't define HAVE_CONFIG_H.
9925         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
9926         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
9927         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
9928         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
9929         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
9930         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
9931         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
9932         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
9933         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
9934         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
9935         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
9936         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
9937         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
9938         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
9939         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
9940         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
9941         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
9942         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
9943         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
9944         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
9945         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
9946         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
9947         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
9948         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
9949         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
9950         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
9951         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
9952         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
9953         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
9954         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
9955         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
9956         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
9957         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
9958         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
9959         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
9960         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
9961         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
9962         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
9963         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
9964         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
9965         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
9966         Likewise.
9967
9968 2006-09-13  Eric Blake  <ebb9@byu.net>
9969
9970         * lib/getopt.c: Fix typo in last commit.
9971
9972 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9973
9974         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
9975         dgettext.
9976
9977 2006-09-12  Jim Meyering  <jim@meyering.net>
9978
9979         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
9980         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
9981         Reported by Nelson H. F. Beebe.
9982
9983 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9984
9985         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
9986         program_invocation_name and program_invocation_short_name are
9987         initialized.
9988         * lib/argp-namefrob.h: Move declarations of program_invocation_name
9989         and program_invocation_short_name to argp.h, so they are visible
9990         to user programs.
9991         * lib/argp.h: Likewise
9992
9993 2006-09-10  Bruno Haible  <bruno@clisp.org>
9994
9995         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
9996         m4/inttypes_h.m4, m4/uintmax_t.m4.
9997
9998 2006-09-10  Bruno Haible  <bruno@clisp.org>
9999
10000         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
10001         gl_AC_TYPE_UINTMAX_T.
10002
10003 2006-09-10  Bruno Haible  <bruno@clisp.org>
10004
10005         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
10006
10007 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10008
10009         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
10010         convention.  Text proposed by Bruno Haible.
10011         (struct argp_option): Document the use of N_() wrappers.
10012
10013         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
10014         '\v', and translate the two parts separately, instead of feeding
10015         the whole string to gettext.  This allows to exclude
10016         '\v' from the strings visible to the translator by writing doc
10017         strings as N_("..") "\v" N_("..").
10018
10019 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
10020
10021         * config/srclist.txt: Undo latest change; the bug was fixed.
10022
10023 2006-09-09  Bruno Haible  <bruno@clisp.org>
10024
10025         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
10026         assignments if building a library without libtool.
10027         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
10028         in func_emit_lib_Makefile_am.
10029         (func_import): When building a static library libfoo.a, arrange to
10030         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
10031         (func_create_testdir): Likewise.
10032         * modules/gc (configure.ac, Makefile.am): If building statically,
10033         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
10034         * modules/iconvme (configure.ac, Makefile.am): Likewise.
10035         * modules/striconv (configure.ac, Makefile.am): Likewise.
10036         Based on a suggestion by Ralf Wildenhues.
10037
10038 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10039
10040         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
10041         Check for unistd.h too, since Autoconf doesn't assume POSIX.
10042         Also:
10043
10044         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10045         Add year_2050_test to catch glibc bug 2821
10046         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10047
10048         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10049         Prefer #ifdef to #if.
10050
10051         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
10052         Return from 'main' instead of calling 'exit'.
10053
10054 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10055
10056         * lib/mktime.c (guess_time_tm): Fix bug where mktime
10057         returned the maximum time_t value rather than (time_t) -1.
10058         Problem originally reported by William Bardwell
10059         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10060
10061         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
10062         Moved to here ...
10063         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
10064         ... from here.
10065
10066 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
10067
10068         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
10069         2821 is fixed.
10070
10071 2006-09-08  Jim Meyering  <jim@meyering.net>
10072
10073         Don't make generated files read-only.  That would bother too many
10074         people.  However, do retain the ability to work when targets are
10075         read-only: remove the destination and temporary files before writing
10076         them (when generated via sed or echo), or by using the -f option for
10077         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
10078         * modules/alloca-opt, modules/argz, modules/arpa_inet:
10079         * modules/byteswap, modules/configmake, modules/fcntl:
10080         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10081         * modules/localcharset, modules/netinet_in, modules/poll:
10082         * modules/stdbool, modules/stdint, modules/sys_select:
10083         * modules/sys_socket, modules/sys_stat, modules/sysexits:
10084
10085 2006-09-08  Jim Meyering  <jim@meyering.net>
10086
10087         Avoid new build failure on FreeBSD 6.0.
10088         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
10089         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
10090         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
10091
10092 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10093
10094         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
10095
10096 2006-09-07  Jim Meyering  <jim@meyering.net>
10097
10098         Fix global typo in last change: use chmod u-w, not chmod u-x.
10099         Spotted by Paul Eggert and Bruce Korb.
10100         * modules/alloca-opt, modules/argz, modules/arpa_inet:
10101         * modules/byteswap, modules/configmake, modules/fcntl:
10102         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10103         * modules/localcharset, modules/netinet_in, modules/poll:
10104         * modules/stdbool, modules/stdint, modules/sys_select:
10105         * modules/sys_socket, modules/sys_stat, modules/sysexits:
10106
10107 2006-09-06  Jim Meyering  <jim@meyering.net>
10108
10109         Make generated files be read-only.
10110         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
10111         Ensure that each generated file is now read-only.
10112         * modules/argz: Likewise.
10113         * modules/arpa_inet: Likewise.
10114         * modules/byteswap: Likewise.
10115         * modules/configmake: Likewise.
10116         * modules/fcntl: Likewise.
10117         * modules/fnmatch: Likewise.
10118         * modules/getopt: Likewise.
10119         * modules/glob: Likewise.
10120         * modules/inttypes: Likewise.
10121         * modules/netinet_in: Likewise.
10122         * modules/poll: Likewise.
10123         * modules/stdbool: Likewise.
10124         * modules/stdint: Likewise.
10125         * modules/sys_select: Likewise.
10126         * modules/sys_socket: Likewise.
10127         * modules/sys_stat: Likewise.
10128         * modules/sysexits: Likewise.
10129         * modules/localcharset: Same as above, but continue using temporary
10130         file named "t-$@" (why different?) rather than the "$@-t" used
10131         everywhere else.
10132
10133         * modules/sysexits (Makefile.am): Replace literal occurrences
10134         of "sysexit.h" more readable, and more consistent, "$@".
10135
10136 2006-09-06  Bruno Haible  <bruno@clisp.org>
10137
10138         * modules/striconv: New file.
10139         * modules/xstriconv: New file.
10140         * MODULES.html.sh (Internationalization functions): Add striconv,
10141         xstriconv.
10142
10143 2006-09-06  Bruno Haible  <bruno@clisp.org>
10144
10145         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
10146         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
10147         not using libtool correctly.
10148
10149 2006-09-06  Bruno Haible  <bruno@clisp.org>
10150
10151         * lib/striconv.h: New file.
10152         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
10153         iconvstring.c.
10154         * lib/xstriconv.h: New file.
10155         * lib/xstriconv.c: New file.
10156
10157 2006-09-06  Bruno Haible  <bruno@clisp.org>
10158
10159         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10160         lib_..._LDFLAGS.
10161
10162 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10163
10164         * lib/argz_.h: Sync from Libtool.
10165
10166         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
10167                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10168
10169         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
10170
10171 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
10172
10173         * modules/trim: New file.
10174
10175 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
10176
10177         * lib/trim.h: New file.
10178         * lib/trim.c: New file.
10179
10180 2006-09-05  Bruno Haible  <bruno@clisp.org>
10181
10182         * MODULES.html.sh (String handling): Add trim.
10183
10184 2006-09-04  Karl Berry  <karl@gnu.org>
10185
10186         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
10187         until next release.
10188
10189 2006-09-03  Bruno Haible  <bruno@clisp.org>
10190
10191         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
10192         correctly.
10193
10194 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10195
10196         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
10197         not gl_GETLOADAVG.  Omit unneeded semicolons.
10198         Problems reported by Ralf Wildenhues in
10199         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10200         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
10201         at the end, which is the usual gnulib style.
10202
10203         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
10204         of doing all the work ourselves.
10205         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
10206         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
10207
10208 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10209
10210         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
10211         Problem reported by Ralf Wildenhues in
10212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10213
10214         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
10215         HAVE_STRUCT_STATFS_F_FSTYPENAME.
10216
10217 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10218
10219         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
10220         yesterday's patch by changing test -n to test -z.
10221
10222 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10223
10224         * modules/getloadavg (Files): Add m4/getloadavg.m4.
10225         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
10226         the former is now obsolescent.
10227
10228         * modules/chdir-long (Depends-on): Add fcntl.
10229
10230 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10231
10232         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
10233         obsolescent, and programs should use gnulib instead.
10234         * m4/getloadavg.m4: New file, with contents taken from Autoconf
10235         but with prefixes changed.
10236
10237 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10238
10239         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
10240         or stdbool.h, because they might not exist while configuring.
10241
10242         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
10243         Don't include unistd.h or limits.h; not needed, since chdir-long.h
10244         does that for us.
10245         (O_DIRECTORY): Remove.
10246
10247 2006-08-31  Eric Blake  <ebb9@byu.net>
10248
10249         * gnulib-tool: Don't let emacs change spaces to TAB.
10250
10251 2006-08-31  Bruno Haible  <bruno@clisp.org>
10252
10253         * gnulib-tool: When calling func_import more than once, do it in a
10254         subshell.
10255         Reported by Eric Blake <ebb9@byu.net>.
10256
10257 2006-08-31  Bruno Haible  <bruno@clisp.org>
10258
10259         * gnulib-tool (nl): Remove variable.
10260         (sed_transform_lib_file): Use more robust test for config-h module.
10261         (func_import): Fix typo in 2006-08-25 patch.
10262
10263 2006-08-31  Bruno Haible  <bruno@clisp.org>
10264
10265         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
10266         specified, augment Makefile.am variables instead of assigning them.
10267
10268 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10269
10270         Work around a bug in both the Linux and SunOS 64-bit kernels:
10271         nanosleep mishandles sleeps for longer than 2**31 seconds.
10272         Problem reported by Frank v Waveren in
10273         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
10275         Check for nanosleep bug.
10276         (LIB_NANOSLEEP): Append clock_gettime library if needed.
10277
10278 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10279
10280         Work around a bug in both the Linux and SunOS 64-bit kernels:
10281         nanosleep mishandles sleeps for longer than 2**31 seconds.
10282         Problem reported by Frank v Waveren in
10283         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10284         * lib/nanosleep.c (BILLION): New constant.
10285         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
10286         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
10287         implementation.
10288
10289 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10290
10291         * modules/nanosleep (Depends-on): Add gettime.
10292
10293 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10294         and Simon Josefsson  <jas@extundo.com>
10295         and Oskar Liljeblad  <oskar@osk.mine.nu>
10296
10297         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
10298         * gnulib-tool (func_import): New license type 'unmodifiable license
10299         text'.
10300         * modules/fdl: Use it.  Longer description.
10301         * module/gpl, module/lgpl: New files.
10302
10303 2006-08-30  Jim Meyering  <jim@meyering.net>
10304
10305         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
10306         shadowing the parameter.
10307
10308 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10309
10310         Sync from Libtool:
10311
10312         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10313
10314         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
10315         sharing with gnulib.  Report by Eric Blake.
10316
10317 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10318
10319         * modules/isapipe: New file.
10320         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
10321
10322 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10323
10324         * modules/configmake (Makefile.am): Add a comment, and omit
10325         the CONFIGMAKE_ prefix from generated macro names.  Suggested
10326         by Bruno Haible.
10327
10328 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10329
10330         * m4/isapipe.m4: New file.
10331
10332 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10333
10334         * lib/isapipe.c, lib/isapipe.h: New files.
10335
10336 2006-08-29  Jim Meyering  <jim@meyering.net>
10337
10338         * modules/configmake (Makefile.am): Make configmake.h depend on
10339         Makefile.  Otherwise, a stale configmake.h could hang around.
10340
10341 2006-08-29  Eric Blake  <ebb9@byu.net>
10342
10343         * lib/error.c (error_at_line, print_errno_message): Match libc, after
10344         resolution of upstream bug 3044.
10345
10346 2006-08-29  Bruno Haible  <bruno@clisp.org>
10347
10348         * modules/localcharset (Depends-on): Add configmake.
10349         (Makefile.am): Remove setting of LIBDIR through DEFS.
10350
10351 2006-08-29  Bruno Haible  <bruno@clisp.org>
10352
10353         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
10354         defined.
10355
10356 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10357
10358         * modules/fcntl: New file.
10359         * modules/chdir-safer (Depends-on): Add fcntl.
10360         * modules/fts: Likewise.
10361         * modules/mkdir-p: Likewise.
10362
10363         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
10364         This undoes the most recent change, since we're now addressing the
10365         problem in a different way.
10366
10367         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
10368         into output, since the output might be called Makefile.am even
10369         if $makefile_name is something different.
10370         (func_import): Use $makefile_am rather than
10371         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
10372         empty.
10373
10374         * modules/inttypes (Files): Add m4/inttypes-h.m4.
10375
10376 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10377
10378         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
10379         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
10380         recent change to stdint.m4, since we're now addressing the problem in a
10381         different way.
10382
10383 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10384
10385         * m4/fcntl_h.m4: New file.
10386
10387 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10388
10389         * lib/fcntl_.h: New file.
10390         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
10391         the fcntl module.
10392         * lib/dirchownmod.c: Likewise.
10393         * lib/fts.c: Likewise.
10394
10395         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
10396         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
10397         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
10398         just before including <inttypes.h>, to avoid circular inclusion.
10399
10400 2006-08-28  Jim Meyering  <jim@meyering.net>
10401
10402         * doc/visibility.texi: Actually read and correct the grammar of the
10403         sentence affected by yesterday's change.
10404
10405 2006-08-28  Eric Blake  <ebb9@byu.net>
10406
10407         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
10408         needs wrapper.
10409
10410 2006-08-28  Eric Blake  <ebb9@byu.net>
10411
10412         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
10413
10414 2006-08-28  Eric Blake  <ebb9@byu.net>
10415
10416         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
10417
10418 2006-08-28  Bruno Haible  <bruno@clisp.org>
10419
10420         * modules/c-strstr: New file, from GNU gettext.
10421         * MODULES.html.sh (String handling): Add c-strstr.
10422
10423 2006-08-28  Bruno Haible  <bruno@clisp.org>
10424
10425         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
10426         macros.
10427         Reported by Eric Blake.
10428
10429 2006-08-28  Bruno Haible  <bruno@clisp.org>
10430
10431         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
10432         (VASNPRINTF): Return a string of length > INT_MAX without failing.
10433         * lib/vasprintf.c: Include errno.h, limits.h.
10434         (EOVERFLOW): New fallback definition.
10435         (vasprintf): Test here whether the string length is > INT_MAX.
10436         * lib/vsnprintf.c: Include errno.h, limits.h.
10437         (EOVERFLOW): New fallback definition.
10438         (vsnprintf): Fix bug when generated string was too long for the buffer.
10439         Test here whether the string length is > INT_MAX.
10440
10441 2006-08-28  Bruno Haible  <bruno@clisp.org>
10442
10443         * lib/inttypes_.h (SCNX*): Remove definitions.
10444         Reported by Eric Blake.
10445
10446 2006-08-28  Bruno Haible  <bruno@clisp.org>
10447
10448         * lib/c-strstr.h: New file, from GNU gettext.
10449         * lib/c-strstr.c: New file, from GNU gettext.
10450
10451 2006-08-28  Bruno Haible  <bruno@clisp.org>
10452
10453         * gnulib-tool: Reorder some statements.
10454
10455 2006-08-28  Bruno Haible  <bruno@clisp.org>
10456
10457         * gnulib-tool: New option --makefile-name.
10458         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
10459         $makefile_name.
10460         (func_import): Write $makefile_name to the cache file, and read it from
10461         there unless explicitly specified. Use $makefile_name as file name
10462         instead of Makefile.am. Adjust the recommendations accordingly.
10463
10464 2006-08-28  Bruno Haible  <bruno@clisp.org>
10465
10466         * gnulib-tool (func_verify_module): Check against misapplying patch.
10467
10468 2006-08-28  Bruno Haible  <bruno@clisp.org>
10469
10470         * gnulib-tool (func_relativize, func_relconcat): New functions.
10471         Give an error if --local-dir is given with --update.
10472         Remove trailing slashes from $local_gnulib_dir.
10473         (func_import): Store the relativized $local_gnulib_dir in
10474         gnulib-cache.m4, and read it from there if not specified explicitly.
10475
10476 2006-08-28  Bruno Haible  <bruno@clisp.org>
10477
10478         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
10479         is the current directory. Respect also $local_gnulib_dir.
10480
10481 2006-08-28  Bruno Haible  <bruno@clisp.org>
10482             Simon Josefsson  <jas@extundo.com>
10483
10484         BeOS portability.
10485         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
10486
10487 2006-08-27  Jim Meyering  <jim@meyering.net>
10488
10489         * doc/visibility.texi: Remove duplicate word: "pointer".
10490
10491 2006-08-26  Bruno Haible  <bruno@clisp.org>
10492
10493         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
10494         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
10495         (Makefile.am): Create inttypes.h from inttypes_.h.
10496         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
10497
10498         * modules/imaxabs: New file.
10499
10500         * modules/imaxdiv: New file.
10501
10502 2006-08-26  Bruno Haible  <bruno@clisp.org>
10503
10504         * m4/inttypes.m4: New file.
10505         * m4/_inttypes_h.m4: Remove file.
10506         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
10507         PRI_MACROS_BROKEN.
10508         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
10509
10510         * m4/imaxabs.m4: New file.
10511
10512         * m4/imaxdiv.m4: New file.
10513
10514 2006-08-26  Bruno Haible  <bruno@clisp.org>
10515
10516         * lib/inttypes_.h: New file.
10517         * lib/inttypes.h: Remove file.
10518         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
10519
10520         * lib/imaxabs.c: New file.
10521
10522         * lib/imaxdiv.c: New file.
10523
10524 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10525
10526         New config-h module, so that "make" output needn't be cluttered
10527         by -DHAVE_CONFIG_H.
10528         * MODULES.html.sh (Support for building libraries and executables):
10529         Add config-h.
10530         * modules/config-h: New file.
10531         * gnulib-tool (nl, sed_transform_lib_file): New vars.
10532         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
10533         the config-h module is used.
10534
10535         New configmake module, so that "make" output needn't be cluttered
10536         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
10537         * MODULES.html.sh (Support for building libraries and executables):
10538         Add configmake.
10539         * modules/configmake: New file.
10540
10541 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10542
10543         * m4/config-h.m4: New file.
10544
10545 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10546
10547         * config/srclist.txt: Add elisp-comp.
10548
10549 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10550
10551         * MODULES.html.sh (Support for building libraries and executables):
10552         Add elisp-comp.
10553         * build-aux/elisp-comp: New file.
10554         * modules/elisp-comp: New file.
10555
10556 2006-08-24  Bruno Haible  <bruno@clisp.org>
10557
10558         * gnulib-tool (func_create_testdir): Use non-default values of
10559         sourcebase and m4base.
10560
10561 2006-08-24  Bruno Haible  <bruno@clisp.org>
10562
10563         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
10564         HTML structure.
10565
10566 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10567
10568         * modules/openat (Depends-on): Add lchown.
10569
10570 2006-08-23  Bruno Haible  <bruno@clisp.org>
10571
10572         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
10573         of gl_LOCK_EARLY instead of gl_LOCK.
10574
10575 2006-08-23  Bruno Haible  <bruno@clisp.org>
10576
10577         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
10578         on OSF/1 to no.
10579         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
10580
10581 2006-08-23  Bruno Haible  <bruno@clisp.org>
10582
10583         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
10584         as unusable.
10585
10586         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
10587         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
10588         (gl_LOCK): New macro.
10589
10590 2006-08-22  Simon Josefsson  <jas@extundo.com>
10591
10592         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
10593         to md5 module.
10594
10595 2006-08-22  Simon Josefsson  <jas@extundo.com>
10596
10597         * MODULES.html.sh: Add "Support for maintaining and release
10598         projects".
10599
10600         * build-aux/gnupload: New file, from coreutils.
10601
10602 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10603
10604         Avoid the need for AC_LIBSOURCES in m4 macros.
10605         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
10606         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
10607         * modules/check-version (EXTRA_DIST): Add check-version.h.
10608         * modules/crc (EXTRA_DIST): Add crc.h.
10609         * modules/des (EXTRA_DIST): Add des.h.
10610         * modules/gc (EXTRA_DIST): Add gc.h.
10611         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
10612         * modules/getline (EXTRA_DIST): Add getline.h.
10613         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
10614         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
10615         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
10616         * modules/md2 (EXTRA_DIST): Add md2.h.
10617         * modules/md4 (EXTRA_DIST): Add md4.h.
10618         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
10619         * modules/read-file (EXTRA_DIST): Add read-file.h.
10620         * modules/readline (EXTRA_DIST): Add readline.h.
10621         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
10622         rijndael-api-fst.h.
10623
10624 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10625
10626         * m4/rijndael.m4 (gl_ARCFOUR):
10627         * m4/arctwo.m4 (gl_ARCTWO):
10628         * m4/check-version.m4 (gl_CHECK_VERSION):
10629         * m4/crc.m4 (gl_CRC):
10630         * m4/des.m4 (gl_DES):
10631         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
10632         * m4/gc.m4 (gl_GC):
10633         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10634         * m4/getline.m4 (gl_FUNC_GETLINE):
10635         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
10636         * m4/hmac-md5.m4 (gl_HMAC_MD5):
10637         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
10638         * m4/md2.m4 (gl_MD2):
10639         * m4/md4.m4 (gl_MD4):
10640         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
10641         * m4/read-file.m4 (gl_FUNC_READ_FILE):
10642         * m4/readline.m4 (gl_FUNC_READLINE):
10643         * m4/rijndael.m4 (gl_RIJNDAEL):
10644         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
10645         to get the necessary .h files and whatnot.
10646
10647 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10648
10649         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
10650         gnulib rather than the other way around.
10651         * config/srclistvars.sh (COREUTILS): Remove.
10652
10653 2006-08-22  Jim Meyering  <jim@meyering.net>
10654
10655         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
10656
10657         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
10658
10659 2006-08-22  Eric Blake  <ebb9@byu.net>
10660
10661         * modules/regexprops-generic: New file.
10662         * MODULES.html.sh (Support for building documentation): List it.
10663
10664 2006-08-22  Eric Blake  <ebb9@byu.net>
10665
10666         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
10667         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10668         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
10669         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10670
10671 2006-08-22  Bruno Haible  <bruno@clisp.org>
10672
10673         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
10674         and lib_LTLIBRARIES like the other lib_* variables.
10675
10676 2006-08-22  Bruno Haible  <bruno@clisp.org>
10677
10678         * build-aux/x-to-1.in: New file, from GNU gettext.
10679
10680 2006-08-22  Bruno Haible  <bruno@clisp.org>
10681
10682         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
10683         <utmpx.h> exists.
10684
10685 2006-08-22  Bruno Haible  <bruno@clisp.org>
10686
10687         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
10688         <utmpx.h> exists.
10689
10690 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10691
10692         BeOS portability.
10693         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
10694         exist.
10695         Problem reported by Bruno Haible.
10696
10697 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10698
10699         Avoid the need for AC_LIBSOURCES in m4 macros.
10700         * modules/acl (EXTRA_DIST): Add acl.h.
10701         * modules/argmatch (Files): Add m4/argmatch.m4.
10702         (configure.ac): Add gl_ARGMATCH.
10703         (EXTRA_DIST): Renamed from lib_SOURCES, for
10704         consistency with the other modules.  Remove argmatch.c.
10705         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
10706         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
10707         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
10708         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
10709         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
10710         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
10711         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
10712         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
10713         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
10714         * modules/closeout (EXTRA_DIST): Add closeout.h.
10715         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
10716         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
10717         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
10718         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
10719         dirname.h; remove basename.c and stripslash.c.
10720         * modules/exclude (EXTRA_DIST): Add exclude.h.
10721         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
10722         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
10723         * modules/file-type (EXTRA_DIST): Add file-type.h.
10724         * modules/filemode (EXTRA_DIST): Add filemode.h.
10725         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
10726         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
10727         * modules/fpending (EXTRA_DIST): Add __fpending.h.
10728         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
10729         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
10730         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
10731         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
10732         * modules/getdate (EXTRA_DIST): Add getdate.c.
10733         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
10734         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
10735         * modules/getpass (EXTRA_DIST): Add getpass.h.
10736         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
10737         * modules/group-member (EXTRA_DIST): Add group-member.h.
10738         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
10739         * modules/hash (EXTRA_DIST): Add hash.h.
10740         * modules/human (EXTRA_DIST): Add human.h.
10741         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
10742         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
10743         * modules/lchown (EXTRA_DIST): Add lchown.h.
10744         * modules/long-options (EXTRA_DIST): Add long-options.h.
10745         * modules/lstat (EXTRA_DIST): Add lstat.h.
10746         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
10747         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
10748         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
10749         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
10750         * modules/memxor (EXTRA_DIST): Add memxor.h.
10751         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
10752         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
10753         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
10754         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
10755         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
10756         * modules/physmem (EXTRA_DIST): Add physmem.h.
10757         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
10758         * modules/posixver (EXTRA_DIST): Add posixver.h.
10759         * modules/quote (EXTRA_DIST): Add quote.h.
10760         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
10761         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
10762         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
10763         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
10764         regex_internal.h regexec.c.
10765         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
10766         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
10767         * modules/same (EXTRA_DIST): Add same.h.
10768         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
10769         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
10770         * modules/savedir (EXTRA_DIST): Add savedir.h.
10771         * modules/sha1 (EXTRA_DIST): Add sha1.h.
10772         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
10773         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
10774         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
10775         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
10776         * modules/strdup (EXTRA_DIST): Add strdup.h.
10777         * modules/strftime (EXTRA_DIST): Add strftime.h.
10778         * modules/strndup (EXTRA_DIST): Add strndup.h.
10779         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
10780         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
10781         * modules/time_r (EXTRA_DIST): Add time_r.h.
10782         * modules/timespec (EXTRA_DIST): Add timespec.h.
10783         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
10784         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
10785         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
10786         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
10787         * modules/userspec (EXTRA_DIST): Add userspec.h.
10788         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
10789         * modules/utimens (EXTRA_DIST): Add utimens.h.
10790         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
10791         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
10792         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
10793         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
10794         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
10795         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
10796         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
10797         * modules/yesno (EXTRA_DIST): Add yesno.h.
10798
10799 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
10800
10801         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
10802
10803         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
10804         * m4/dev-ino.m4, same-inode.m4: Remove.
10805
10806         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
10807         * m4/acl.m4 (AC_FUNC_ACL):
10808         * m4/backupfile.m4 (gl_BACKUPFILE):
10809         * m4/c-strtod.m4 (gl_C99_STRTOLD):
10810         * m4/canon-host.m4 (gl_CANON_HOST):
10811         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
10812         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
10813         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
10814         * m4/cloexec.m4 (gl_CLOEXEC):
10815         * m4/close-stream.m4 (gl_CLOSE_STREAM):
10816         * m4/closeout.m4 (gl_CLOSEOUT):
10817         * m4/dirfd.m4 (gl_FUNC_DIRFD):
10818         * m4/dirname.m4 (gl_DIRNAME):
10819         * m4/exclude.m4 (gl_EXCLUDE):
10820         * m4/exitfail.m4 (gl_EXITFAIL):
10821         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
10822         * m4/file-type.m4 (gl_FILE_TYPE):
10823         * m4/filemode.m4 (gl_FILEMODE):
10824         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
10825         * m4/fpending.m4 (gl_FUNC_FPENDING):
10826         * m4/fprintftime.m4 (gl_FPRINTFTIME):
10827         * m4/fts.m4 (gl_FUNC_FTS):
10828         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
10829         * m4/getdate.m4 (gl_GETDATE):
10830         * m4/gethrxtime.m4 (gl_GETHRXTIME):
10831         * m4/getpagesize.m4 (gl_GETPAGESIZE):
10832         * m4/getpass.m4 (gl_FUNC_GETPASS):
10833         * m4/gettime.m4 (gl_GETTIME):
10834         * m4/getugroups.m4 (gl_GETUGROUPS):
10835         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
10836         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
10837         * m4/hard-locale.m4 (gl_HARD_LOCALE):
10838         * m4/hash.m4 (gl_HASH):
10839         * m4/idcache.m4 (gl_IDCACHE):
10840         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
10841         * m4/lchown.m4 (gl_FUNC_LCHOWN):
10842         * m4/long-options.m4 (gl_LONG_OPTIONS):
10843         * m4/lstat.m4 (gl_FUNC_LSTAT):
10844         * m4/md5.m4 (gl_MD5):
10845         * m4/memcasecmp.m4 (gl_MEMCASECMP):
10846         * m4/memcoll.m4 (gl_MEMCOLL):
10847         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
10848         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
10849         * m4/memxor.m4 (gl_MEMXOR):
10850         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
10851         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
10852         * m4/modechange.m4 (gl_MODECHANGE):
10853         * m4/mountlist.m4 (gl_MOUNTLIST):
10854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
10855         * m4/openat.m4 (gl_FUNC_OPENAT):
10856         * m4/pathmax.m4 (gl_PATHMAX):
10857         * m4/physmem.m4 (gl_PHYSMEM):
10858         * m4/posixtm.m4 (gl_POSIXTM):
10859         * m4/posixver.m4 (gl_POSIXVER):
10860         * m4/quote.m4 (gl_QUOTE):
10861         * m4/quotearg.m4 (gl_QUOTEARG):
10862         * m4/readtokens.m4 (gl_READTOKENS):
10863         * m4/readutmp.m4 (gl_READUTMP):
10864         * m4/regex.m4 (gl_REGEX):
10865         * m4/safe-read.m4 (gl_SAFE_READ):
10866         * m4/safe-write.m4 (gl_SAFE_WRITE):
10867         * m4/same.m4 (gl_SAME):
10868         * m4/save-cwd.m4 (gl_SAVE_CWD):
10869         * m4/savedir.m4 (gl_SAVEDIR):
10870         * m4/settime.m4 (gl_SETTIME):
10871         * m4/sha1.m4 (gl_SHA1):
10872         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
10873         * m4/stat-macros.m4 (gl_STAT_MACROS):
10874         * m4/stat-time.m4 (gl_STAT_TIME):
10875         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
10876         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
10877         * m4/strdup.m4 (gl_FUNC_STRDUP):
10878         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
10879         * m4/strndup.m4 (gl_FUNC_STRNDUP):
10880         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
10881         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
10882         * m4/time_r.m4 (gl_TIME_R):
10883         * m4/timespec.m4 (gl_TIMESPEC):
10884         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
10885         * m4/unlinkdir.m4 (gl_UNLINKDIR):
10886         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
10887         * m4/userspec.m4 (gl_USERSPEC):
10888         * m4/utimecmp.m4 (gl_UTIMECMP):
10889         * m4/utimens.m4 (gl_UTIMENS):
10890         * m4/xalloc.m4 (gl_XALLOC):
10891         * m4/xgetcwd.m4 (gl_XGETCWD):
10892         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
10893         * m4/xreadlink.m4 (gl_XREADLINK):
10894         * m4/xstrtod.m4 (gl_XSTRTOD):
10895         * m4/yesno.m4 (gl_YESNO):
10896         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
10897         to get the necessary .h files and whatnot.
10898
10899 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
10900             Bruno Haible  <bruno@clisp.org>
10901
10902         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
10903         /bin/sh understanding of '!' conditional negation.
10904
10905 2006-08-21  Jim Meyering  <jim@meyering.net>
10906
10907         * modules/openat (Depends-on): Really alphabetize.
10908
10909         * modules/acl (Depends-on): Add error and quote.
10910
10911         * check-module (find_included_lib_files): Add at-func.c to the
10912         ok-to-include-more-than-once white list.
10913
10914         * modules/openat (Depends-on): Add lstat.  Alphabetize.
10915
10916 2006-08-21  Bruno Haible  <bruno@clisp.org>
10917
10918         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10919         Emit a pkgdata_DATA variable only if some snippets add contents to it.
10920         Reported by Martin Lambers <marlam@marlam.de>.
10921
10922 2006-08-21  Bruno Haible  <bruno@clisp.org>
10923
10924         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
10925         specify an installation location, don't emit a noinst_LIBRARIES or
10926         noinst_LTLIBRARIES assignment.
10927
10928 2006-08-21  Bruno Haible  <bruno@clisp.org>
10929
10930         BeOS portability.
10931         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
10932         BeOS has mbrtowc() but no <wctype.h>.
10933
10934 2006-08-21  Bruno Haible  <bruno@clisp.org>
10935
10936         BeOS portability.
10937         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
10938         exist.
10939
10940 2006-08-21  Bruno Haible  <bruno@clisp.org>
10941
10942         BeOS portability.
10943         * lib/mbchar.h: Include <wctype.h> only if it exists.
10944
10945 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10946
10947         Remove files that are no longer needed by their respective modules.
10948         * m4/obstack.m4: Remove.
10949         * m4/strerror_r.m4: Remove.
10950         * m4/uint32_t.m4: Remove.
10951         * m4/uintptr_t.m4: Remove.
10952         * m4/ullong_max.m4: Remove.
10953         * m4/xstrtoimax.m4: Remove.
10954         * m4/xstrtoumax.m4: Remove.
10955
10956         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
10957         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
10958         dependencies now capture this.
10959
10960         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
10961         Do not use AC_LIBSOURCES, since gnulib modules now do this.
10962         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
10963         * m4/human.m4 (gl_HUMAN): Likewise.
10964         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
10965         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
10966
10967         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
10968
10969         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
10970         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
10971         stdint.
10972         * m4/human.m4 (gl_HUMAN): Likewise.
10973         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
10974         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
10975         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
10976         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
10977         * m4/xstrtol (gl_XSTRTOL): Likewise.
10978
10979         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
10980         AC_TYPE_LONG_LONG_INT.
10981         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
10982         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
10983         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
10984         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
10985
10986         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
10987         on stdbool.
10988
10989         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
10990         (gl_PREREQ_XSTRTOUL): Remove.
10991
10992         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
10993
10994         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
10995         mode.
10996
10997 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10998
10999         Add and change modules to make it easier for coreutils to use
11000         gnulib-tool.
11001         * modules/backupfile (Files): Remove m4/d-ino.m4.
11002         (Depends-on): Add d-ino.
11003         * modules/cycle-check (Depends-on): Add stdint.
11004         (lib_SOURCES): Add cycle-check.h.
11005         * modules/d-ino: New module.
11006         * modules/d-type: New module.
11007         * modules/error (Files): Remove m4/strerror_r.m4.
11008         * modules/filemode (Files): Add m4/st_dm_mode.m4.
11009         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11010         m4/inttypes_h.m4, m4/uintmax_t.m4.
11011         (Depends-on): Add stdint.
11012         (lib_SOURCES): Add fsusage.h.
11013         * modules/getcwd (Files): Remove d-ino.m4.
11014         (Depends-on): Add d-ino.
11015         * modules/getndelim2 (Depends-on): Add stdint.
11016         * modules/glob (Files): Remove m4/d-type.m4.
11017         (Depends-on): Add d-type.
11018         * modules/host-os: New module.
11019         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
11020         m4/inttypes_h.m4, m4/uintmax_t.m4.
11021         * Depends-on: Add stdint.
11022         (lib_SOURCES): Add human.h.
11023         * modules/inttostr (Files): Remove m4/intmax_t.m4,
11024         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
11025         m4/uintmax_t.m4, m4/ulonglong.m4.
11026         (Depends-on): Add stdint.
11027         (EXTRA_DIST): Add inttostr.h.
11028         * modules/lchmod: New module.
11029         * modules/link-follow: New module.
11030         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
11031         (Depends-on): Add lchmod.
11032         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
11033         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
11034         (Depends-on): Add stdint.
11035         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
11036         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
11037         (Depends-on): Add stdint.
11038         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
11039         * modules/perl: New module.
11040         * modules/regex (Depends-on): Add stdint.
11041         * modules/rmdir-errno: New module.
11042         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
11043         m4/intmax_t.m4.
11044         (Depends-on): Add stdint.
11045         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
11046         m4/uintmax_t.m4.
11047         (Depends-on): Add stdint.
11048         * modules/unlink-busy: New module.
11049         * modules/utimecmp (Depends-on): Add stdint.
11050         * modules/uptime: New module.
11051         * modules/winsz-ioctl: New module.
11052         * modules/winsz-termios: New module.
11053         * modules/xnanosleep (Depends-on): Add nanosleep.
11054         * modules/ullong_max: Remove.
11055         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
11056         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
11057         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
11058         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
11059         (Depends-on): Add inttypes.
11060         (lib_SOURCES): Add xstrtol.h.
11061         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
11062         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
11063         * MODULES.html.sh: Move 'assert' into the assert section.
11064         Move 'dummy' into the linking section.
11065         Remove ullong_max.
11066         Add section for compatibility checks for POSIX:2001 functions,
11067         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
11068         winsz-ioctl, and winsz-termios into it.
11069         Add lchmod.
11070         Add top-level Misc section and put host-os, perl, and uptime
11071         into it.
11072
11073 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11074
11075         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
11076         now assume the stdint module.  Do not include inttypes.h.
11077         * lib/fsusage.h: Likewise.
11078         * lib/getndelim2.c: Likewise.
11079         * lib/human.h: Likewise.
11080         * lib/inttostr.h: Likewise.
11081         * lib/obstack.c: Likewise.
11082         * lib/regex_internal.h: Likewise.
11083         * lib/tempname.c: Likewise.
11084         * lib/utimecmp.c: Likewise.
11085         * lib/xstrtol.h: Likewise.
11086
11087         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
11088
11089         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
11090         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
11091         * lib/xtime.h: Likewise.
11092
11093 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11094
11095         * modules/openat (Files): Add lib/fchmodat.c.
11096         Fixes problem reported by Jay Youngman.
11097
11098 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
11099
11100         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
11101         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
11102
11103 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11104             Bruno Haible  <bruno@clisp.org>
11105
11106         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
11107         and is a script that invokes bison. Tighten the code. Add comments.
11108
11109 2006-08-18  Jim Meyering  <jim@meyering.net>
11110
11111         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
11112         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
11113         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
11114         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
11115
11116 2006-08-18  Bruno Haible  <bruno@clisp.org>
11117
11118         * modules/bison-i18n: New file.
11119         * MODULES.html.sh (Internationalization functions): Add it.
11120
11121 2006-08-18  Bruno Haible  <bruno@clisp.org>
11122
11123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
11124         sys/statvfs.h. When getmntinfo was found, check its declaration and
11125         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
11126
11127 2006-08-18  Bruno Haible  <bruno@clisp.org>
11128
11129         * m4/bison-i18n.m4: New file, from bison.
11130
11131 2006-08-18  Bruno Haible  <bruno@clisp.org>
11132
11133         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
11134         (ME_DUMMY): Treat "kernfs" as a dummy.
11135         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
11136
11137 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11138
11139         Update from coreutils.
11140
11141         2006-08-15  Jim Meyering  <jim@meyering.net>
11142
11143         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
11144
11145         2006-01-17  Jim Meyering  <jim@meyering.net>
11146
11147         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
11148
11149         2006-01-11  Jim Meyering  <jim@meyering.net>
11150
11151         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
11152         Check for the lchmod function.
11153
11154 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11155
11156         Update from coreutils.
11157
11158         * lib/__fpending.h: Add copyright notice.
11159         * lib/fprintftime.h: Likewise.
11160         * lib/savedir.c: Use (C) in copyright notice.
11161         * lib/savedir.h: Likewise.
11162
11163         2006-08-15  Jim Meyering  <jim@meyering.net>
11164
11165         * lib/at-func.c: New file, with the logic of all emulated at-functions.
11166         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
11167         in support of the EXPECTED_ERRNO macro.
11168         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
11169         definitions.  Instead, define the appropriate symbols and include
11170         "at-func.c".
11171         * lib/mkdirat.c (mkdirat): Likewise.
11172         * lib/fchmodat.c (fchmodat): Likewise.
11173         (ENOSYS): Remove definition.
11174         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
11175         it.  Don't include "unistd--.h" -- it wasn't ever used.
11176
11177         2006-01-17  Jim Meyering  <jim@meyering.net>
11178
11179         Rewrite fts.c not to change the current working directory,
11180         by using openat, fstatat, fdopendir, etc..
11181
11182         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
11183         (HAVE_OPENAT_SUPPORT): Define.
11184         [_LIBC] (fchdir): Don't undef or define; no longer used.
11185         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
11186         Now, this `function' always succeeds, and consumes its file descriptor
11187         parameter -- so callers must not close such FDs.  Update callers.
11188         (diropen_fd, opendirat, cwd_advance_fd): New functions.
11189         (diropen): Add parameter, SP.  Adjust all callers.
11190         Implement using diropen_fd, rather than open.
11191         (fts_open): Initialize new member, fts_cwd_fd.
11192         Remove fts_rft-setting code.
11193         (fts_close): Close fts_cwd_fd, if necessary.
11194         (__opendir2): Define in terms of opendir or opendirat,
11195         depending on whether the FST_NOCHDIR flag is set.
11196         (fts_build): Since fts_safe_changedir consumes its FD, and since
11197         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
11198         and close the dup'd file descriptor upon failure.
11199         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
11200         (fts_safe_changedir): Tweak semantics to reflect that this function
11201         now calls cwd_advance_fd and hence consumes its FD argument.
11202         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
11203         [struct FTS] (fts_rft): Remove now-unused member.
11204         [struct FTS] (fts_cycle.state): Improve comment.
11205
11206         * lib/openat.c (openat_needs_fchdir): New function.
11207         * lib/openat.h (openat_needs_fchdir): Declare it.
11208
11209 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11210
11211         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
11212         Problem and fix reported by Pádraig Brady in
11213         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
11214
11215 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11216
11217         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
11218
11219 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11220
11221         * lib/memcoll.c (memcoll): Optimize for the common case where the
11222         arguments are bytewise equal.
11223
11224 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11225
11226         * doc/regexprops-generic.texi: Add a copyright notice.
11227
11228 2006-08-15  Bruno Haible  <bruno@clisp.org>
11229
11230         * modules/tmpdir (License): Change to LGPL.
11231
11232 2006-08-15  Bruno Haible  <bruno@clisp.org>
11233
11234         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
11235         module.
11236
11237 2006-08-14  Simon Josefsson  <jas@extundo.com>
11238
11239         * config/srclist.txt: Add gnupload.
11240
11241 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11242
11243         Change copyright notice from LGPL 2 to GPL 2, since that's the
11244         standard form used in the gnulib repository.
11245         * tests/test-lock.c: Likewise.
11246         * tests/test-stdint.c: Likewise.
11247         * tests/test-tls.c: Likewise.
11248
11249         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
11250         prelude-manager.  User shorter URLs for GNU projects, without '?'.
11251         Add copyright notice.
11252
11253         * check-module: Add copyright notice.  Output a copyright
11254         notice if "--version" is specified.
11255         * modules/COPYING: New file.
11256         * tests/test-getaddrinfo.c: Add copyright notice.
11257         * tests/test-verify.c: Likewise.
11258
11259 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11260
11261         Change copyright notice from LGPL 2 to GPL 2, since that's the
11262         standard form used in the gnulib repository.
11263         * lib/lock.c: LGPL -> GPL.
11264         * lib/lock.h: Likewise.
11265         * lib/strnlen1.c: Likewise.
11266         * lib/strnlen1.h: Likewise.
11267         * lib/tls.c: Likewise.
11268         * lib/tls.h: Likewise.
11269         * lib/tmpdir.c: Likewise.
11270
11271         * lib/TODO: Remove; this belongs only in coreutils.
11272
11273 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11274
11275         Add copyright notices to long-enough files that lack them, since
11276         otherwise the files aren't clearly free.  Use the same notice that
11277         getdate.texi already uses.
11278         * doc/alloca-opt.texi: Add copyright notice.
11279         * doc/alloca.texi: Likewise.
11280         * doc/ctime.texi: Likewise.
11281         * doc/functions.texi: Likewise.
11282         * doc/gcd.texi: Likewise.
11283         * doc/gnulib-tool.texi: Likewise.
11284         * doc/inet_ntoa.texi: Likewise.
11285         * doc/visibility.texi: Likewise.
11286
11287         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
11288         * doc/quote.texi: Add copyright notice.
11289
11290         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
11291         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
11292         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
11293         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
11294         is now obsolete, and give a pointer to the Sun list.
11295         Add copyright notice.
11296
11297 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11298
11299         * config/srclistvars.sh: Add copyright notice.
11300
11301 2006-08-14  Eric Blake  <ebb9@byu.net>
11302
11303         Import the following change from libc:
11304
11305         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
11306
11307         Upstream bug 2997.
11308         * lib/misc/error.c: Add space between program name and message if file
11309         name is missing.
11310
11311 2006-08-12  Karl Berry  <karl@gnu.org>
11312
11313         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
11314         remove, these originate in gnulib now.
11315
11316 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11317
11318         * doc/Makefile (standards.info standards.html standards.dvi):
11319         Also depend on make-stds.texi.
11320
11321 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11322
11323         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
11324         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
11325
11326         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
11327         in wchar_t.  Problem reported by Eric Blake.
11328
11329         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
11330         LEN is smaller than SIZE.  Suggested by Bruno Haible.
11331         Also, help the compiler to keep LEN in a register.
11332
11333 2006-08-11  Eric Blake  <ebb9@byu.net>
11334
11335         * users.txt: Sort.  Add tar.
11336
11337 2006-08-11  Bruno Haible  <bruno@clisp.org>
11338
11339         * users.txt: New file.
11340
11341 2006-08-11  Bruno Haible  <bruno@clisp.org>
11342
11343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
11344         before <wchar.h>. Needed for OSF/1 and BSD/OS.
11345
11346 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11347
11348         * modules/snprintf (Depends-on): Remove minmax.
11349         (Maintainer): Add self and Bruno.
11350
11351 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11352
11353         * lib/.cppi-disable: Add snprintf.h, socket_.h.
11354         * lib/snprintf.c: Include <errno.h> and <limits.h>.
11355         (EOVERFLOW): Define if the system does not.
11356         Do not include "minmax.h"; it wasn't used.
11357         (snprintf): Don't assume size_t promotes to an unsigned type.
11358         Fix bug when generated string was too long for the buffer: the
11359         buffer's contents are supposed to be the initial prefix of the
11360         output.  Don't assume vasnprintf returns EOVERFLOW if the size
11361         exceeds INT_MAX; do the check ourselves.
11362
11363         Import the following changes from libc:
11364
11365         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11366
11367         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
11368         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
11369         set wc to the byte which couldn't be converted.
11370         (re_string_reconstruct): Don't clear valid_raw_len before calling
11371         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11372         tip_context using re_string_context_at.
11373
11374         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
11375
11376         * lib/posix/regex.h: g++ still cannot handled [restrict].
11377
11378         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
11379
11380         * lib/posix/regex.h: Remove special handling for VMS.
11381
11382 2006-08-10  Jim Meyering  <jim@meyering.net>
11383
11384         * modules/same-inode: New module.
11385         * modules/dev-ino: New module.
11386         * modules/cycle-check: Depend on these modules, rather than simply
11387         including their .h files.
11388         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
11389         required via m4/cycle-check.m4.
11390         * modules/same: Depend on new same-inode module, rather than
11391         including same-inode.h.
11392         * modules/chdir-safer: New file.
11393
11394         * modules/chown (Depends-on): Add stat-macros.
11395
11396 2006-08-10  Jim Meyering  <jim@meyering.net>
11397
11398         * m4/cycle-check.m4: New file.
11399         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
11400         * m4/dev-ino.m4, m4/same-inode.m4: New files.
11401
11402 2006-08-10  Eric Blake  <ebb9@byu.net>
11403
11404         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
11405         in from original proposal.
11406
11407 2006-08-10  Eric Blake  <ebb9@byu.net>
11408         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11409
11410         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
11411         namespace.
11412
11413 2006-08-10  Bruno Haible  <bruno@clisp.org>
11414
11415         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
11416         as well.
11417
11418 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11419
11420         Sync from coreutils.
11421
11422         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
11423
11424         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
11425         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
11426
11427 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11428
11429         * modules/restrict: Remove; no longer needed now that we assume
11430         Autoconf 2.59 or later.
11431         * MODULES.html.sh: Remove 'restrict'.
11432         * modules/argp (Depends-on): Remove 'restrict'.
11433         * modules/base64 (Depends-on): Likewise.
11434         * modules/gc (Depends-on): Likewise.
11435         * modules/getaddrinfo (Depends-on): Likewise.
11436         * modules/glob (Depends-on): Likewise.
11437         * modules/inet_ntop (Depends-on): Likewise.
11438         * modules/inet_pton (Depends-on): Likewise.
11439         * modules/memxor (Depends-on): Likewise.
11440         * modules/regex (Depends-on): Likewise.
11441         * modules/strtok_r (Depends-on): Likewise.
11442         * modules/time_r (Depends-on): Likewise.
11443
11444 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11445
11446         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
11447         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
11448         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11449         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
11450         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11451         * m4/memxor.m4 (gl_MEMXOR): Likewise.
11452         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
11453         gl_C_RESTRICT replaced by AC_C_RESTRICT.
11454
11455         Merge from coreutils.
11456         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
11457         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
11458         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11459         * m4/time_r.m4 (gl_TIME_R): Likewise.
11460
11461 2006-08-09  Karl Berry  <karl@gnu.org>
11462
11463         * config/srclist.txt: no more gettext-tools, per Bruno.
11464
11465 2006-08-08  Eric Blake  <ebb9@byu.net>
11466
11467         * modules/verror: New module.
11468         * MODULES.html.sh: Document it.
11469
11470 2006-08-08  Eric Blake  <ebb9@byu.net>
11471
11472         * lib/verror.h, lib/verror.c: New files.
11473
11474 2006-08-08  Eric Blake  <ebb9@byu.net>
11475
11476         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
11477         verror_at_line output complies with GNU Coding Standards even when
11478         file is NULL.
11479
11480 2006-08-07  Bruno Haible  <bruno@clisp.org>
11481
11482         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
11483         versions of AIX.
11484         Reported by Ralf Wildenhues.
11485
11486 2006-08-07  Bruno Haible  <bruno@clisp.org>
11487
11488         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
11489         in an AC_DEFUN. Needed so that the autoconf snippets can use
11490         AC_REQUIRE.
11491
11492 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11493
11494         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11495         Initialize pkgdata_DATA.
11496         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
11497         overriding it.
11498
11499 2006-08-06  Eric Blake  <ebb9@byu.net>
11500
11501         * lib/error.h: Fold in some upstream changes from glibc.
11502         * lib/error.c: Likewise.
11503
11504 2006-08-04  Bruno Haible  <bruno@clisp.org>
11505
11506         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11507         Make the mostlyclean-local rule depend on mostlyclean-generic.
11508         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
11509
11510 2006-07-31  Bruno Haible  <bruno@clisp.org>
11511
11512         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
11513         <stdlib.h>, <string.h>.
11514
11515 2006-07-30  Bruno Haible  <bruno@clisp.org>
11516
11517         * modules/readlink (License): Change to LGPL.
11518
11519 2006-07-30  Bruno Haible  <bruno@clisp.org>
11520
11521         * modules/javaversion (Makefile.am): Distribute javaversion.java and
11522         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
11523         set PKGDATADIR to point to it.
11524
11525 2006-07-30  Bruno Haible  <bruno@clisp.org>
11526
11527         * modules/csharpexec (configure.ac): Comment out macro invocation.
11528         * modules/javaexec (configure.ac): Likewise.
11529         * modules/javacomp-script (configure.ac): Likewise.
11530
11531         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
11532
11533 2006-07-30  Bruno Haible  <bruno@clisp.org>
11534
11535         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
11536         linked-list.
11537
11538 2006-07-30  Bruno Haible  <bruno@clisp.org>
11539
11540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
11541
11542 2006-07-30  Bruno Haible  <bruno@clisp.org>
11543
11544         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11545         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
11546         get removed.
11547
11548 2006-07-29  Bruno Haible  <bruno@clisp.org>
11549
11550         Make it possible for gnulib-tool to work with locally modified or
11551         augmented gnulib repositories.
11552         * gnulib-tool (func_usage): Document --local-dir option.
11553         (local_gnulib_dir): New variable.
11554         Handle --local-dir option.
11555         (func_lookup_file): New function.
11556         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
11557         (func_get_description, func_get_filelist, func_get_description,
11558         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
11559         func_get_automake_snippet, func_get_include_directive,
11560         func_get_license, func_get_maintainer): Use func_lookup_file.
11561         (func_import, func_create_testdir): Use func_lookup_file.
11562
11563 2006-07-29  Bruno Haible  <bruno@clisp.org>
11564
11565         * modules/setenv (Depends-on): Add unistd.
11566
11567 2006-07-29  Bruno Haible  <bruno@clisp.org>
11568
11569         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
11570
11571 2006-07-29  Bruno Haible  <bruno@clisp.org>
11572
11573         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
11574
11575 2006-07-29  Bruno Haible  <bruno@clisp.org>
11576
11577         * gnulib-tool (import, update): If there is no Makefile.am, look at
11578         aclocal.m4, instead of bailing out.
11579
11580 2006-07-29  Bruno Haible  <bruno@clisp.org>
11581
11582         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
11583         Categorize the options by when they are useful.
11584
11585 2006-07-29  Bruno Haible  <bruno@clisp.org>
11586
11587         * gnulib-tool (func_usage): Document option --no-libtool.
11588         Handle option --no-libtool.
11589         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
11590         for changed semantics of $libtool variable.
11591         (func_import): Likewise. If libtool is not used, show this through
11592         an option --no-libtool.
11593         (func_create_testdir): Update.
11594
11595 2006-07-29  Bruno Haible  <bruno@clisp.org>
11596
11597         * gnulib-tool (func_import): Extend error message about missing
11598         --doc-base.
11599
11600 2006-07-29  Bruno Haible  <bruno@clisp.org>
11601
11602         * gnulib-tool (func_import): Don't create the $docbase directory if
11603         there is no file to store there.
11604
11605 2006-07-29  Bruno Haible  <bruno@clisp.org>
11606
11607         * gnulib-tool (autoconf_minversion): If a --dir option is given and
11608         relevant, look for configure.ac there, not in the current directory.
11609         Also use a simple search for AC_PREREQ, not "autoconf --trace".
11610
11611 2006-07-29  Bruno Haible  <bruno@clisp.org>
11612
11613         * gnulib-tool (SORT): New variable.
11614         (func_usage): Undocument --assume-autoconf option.
11615         Remove --assume-autoconf option handling.
11616         (autoconf_minversion): Determine from the contents of configure.ac.
11617         (func_import): Remove autoconf_minversion handling.
11618         Suggested by Eric Blake.
11619
11620 2006-07-29  Bruno Haible  <bruno@clisp.org>
11621
11622         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
11623
11624 2006-07-29  Bruno Haible  <bruno@clisp.org>
11625
11626         * config/srclist.txt (*setenv.[ch]): Remove rules.
11627
11628 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11629
11630         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
11631
11632 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11633
11634         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
11635         arpa/inet.h.
11636
11637 2006-07-28  Simon Josefsson  <jas@extundo.com>
11638
11639         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
11640         * modules/inet_pton (Depends-on): Likewise.
11641
11642 2006-07-28  Simon Josefsson  <jas@extundo.com>
11643
11644         * m4/netinet_in_h.m4: New file.
11645
11646 2006-07-28  Simon Josefsson  <jas@extundo.com>
11647
11648         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
11649         #include's.
11650
11651 2006-07-28  Simon Josefsson  <jas@extundo.com>
11652
11653         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
11654         #include's.
11655
11656 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
11657
11658         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
11659         setgid on directories only if they set these bits.
11660         * lib/modechange.h: Remove obsolete comment about masks.
11661
11662 2006-07-28  Eric Blake  <ebb9@byu.net>
11663
11664         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
11665         macro expansion.
11666
11667 2006-07-28  Bruno Haible  <bruno@clisp.org>
11668
11669         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
11670
11671 2006-07-28  Bruno Haible  <bruno@clisp.org>
11672
11673         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
11674
11675 2006-07-28  Bruno Haible  <bruno@clisp.org>
11676
11677         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11678         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
11679         Define fallbacks.
11680         Avoids link error on FreeBSD 4.x.
11681         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11682
11683         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
11684         encoding.
11685         * lib/mbswidth.c (iswcntrl): Likewise.
11686
11687 2006-07-27  Bruno Haible  <bruno@clisp.org>
11688
11689         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
11690         test.
11691
11692 2006-07-27  Bruno Haible  <bruno@clisp.org>
11693
11694         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
11695         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
11696         defined.
11697
11698 2006-07-26  Eric Blake  <ebb9@byu.net>
11699
11700         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
11701
11702 2006-07-26  Eric Blake  <ebb9@byu.net>
11703
11704         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
11705         like mingw that lack mkstemp.
11706         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
11707         avoid compilation warning on mingw.
11708
11709 2006-07-26  Bruno Haible  <bruno@clisp.org>
11710
11711         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
11712         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
11713         INT_FAST*_MIN, INTPTR_MIN.
11714
11715 2006-07-25  Bruno Haible  <bruno@clisp.org>
11716
11717         * modules/version-etc (Depends-on): Add stdarg.
11718
11719 2006-07-25  Bruno Haible  <bruno@clisp.org>
11720
11721         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
11722         complex commands.
11723
11724 2006-07-25  Bruno Haible  <bruno@clisp.org>
11725
11726         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
11727         defined in <stdarg.h> or config.h.
11728
11729 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11730
11731         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
11732         (gl_STDIO_SAFER): Remove.
11733
11734 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11735
11736         * MODULES.html.sh (File stream based Input/Output):
11737         Add fopen-safer, tmpfile-safer; remove stdio-safer.
11738         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
11739         * modules/fopen-safer, modules/tmpfile-safer: New files.
11740         * modules/stdio-safer: Remove.
11741
11742 2006-07-24  Bruno Haible  <bruno@clisp.org>
11743
11744         * modules/tmpdir: New file.
11745         * MODULES.html.sh (File system functions): Add it.
11746
11747 2006-07-24  Bruno Haible  <bruno@clisp.org>
11748
11749         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
11750         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
11751
11752 2006-07-24  Bruno Haible  <bruno@clisp.org>
11753
11754         * modules/clean-temp: New file.
11755
11756 2006-07-24  Bruno Haible  <bruno@clisp.org>
11757
11758         * m4/tmpdir.m4: New file, from GNU gettext.
11759
11760 2006-07-24  Bruno Haible  <bruno@clisp.org>
11761
11762         * lib/tmpdir.h: New file, from GNU gettext.
11763         * lib/tmpdir.c: New file, from GNU gettext.
11764
11765 2006-07-24  Bruno Haible  <bruno@clisp.org>
11766
11767         * lib/clean-temp.h: New file, from GNU gettext.
11768         * lib/clean-temp.c: New file, from GNU gettext.
11769
11770 2006-07-23  Eric Blake  <ebb9@byu.net>
11771
11772         * modules/stdio-safer (Files): Add tmpfile-safer.c.
11773         (Depends-on): Add binary-io.
11774
11775 2006-07-23  Eric Blake  <ebb9@byu.net>
11776
11777         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
11778
11779 2006-07-23  Eric Blake  <ebb9@byu.net>
11780
11781         * lib/tmpfile-safer.c: New file.
11782         * lib/stdio-safer.h (fopen_safer): Add prototype.
11783         * lib/stdio--.h (tmpfile): Make safer.
11784
11785 2006-07-23  Bruno Haible  <bruno@clisp.org>
11786
11787         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
11788         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
11789         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
11790         gl_linked_remove_at): Use it.
11791
11792 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11793         and Simon Josefsson <jas@extundo.com>
11794
11795         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
11796
11797         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
11798
11799 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11800
11801         * modules/close-stream: New file.
11802         * modules/closeout (Description): Make it clear that it exits
11803         with a diagnostic on error.
11804         (Depends-on): Add close-stream.  Remove fpending, stdbool.
11805         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
11806
11807 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11808
11809         * m4/close-stream.m4: New file.
11810
11811 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11812
11813         * lib/close-stream.c, lib/close-stream.h: New files.
11814
11815 2006-07-22  Bruno Haible  <bruno@clisp.org>
11816
11817         Merge from GNU gettext 0.15.
11818
11819         2006-05-01  Bruno Haible  <bruno@clisp.org>
11820
11821                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
11822
11823         2006-07-22  Bruno Haible  <bruno@clisp.org>
11824
11825                 * modules/javaversion: New file.
11826                 * MODULES.html.sh (Java): Add javaversion.
11827
11828         2006-03-12  Bruno Haible  <bruno@clisp.org>
11829
11830                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
11831
11832         2005-12-04  Bruno Haible  <bruno@clisp.org>
11833
11834                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
11835                 (untested).
11836
11837         2006-06-21  Bruno Haible  <bruno@clisp.org>
11838
11839                 Avoid warnings from recent versions of mcs.
11840                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
11841                 -o, -L, -r any more. Use options documented since mcs-1.0
11842                 instead. Similarly for -g.
11843
11844         2005-12-04  Bruno Haible  <bruno@clisp.org>
11845
11846                 * build-aux/csharpcomp.sh.in: Suffix for resources is
11847                 .resources, not .resource.
11848
11849         2005-07-09  Bruno Haible  <bruno@clisp.org>
11850
11851                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
11852                 add a .dll suffix.
11853                 Reported by Mark Junker <mjscod@gmx.de>.
11854
11855         2006-07-22  Bruno Haible  <bruno@clisp.org>
11856
11857                 * modules/gettext: Upgrade to gettext-0.15.
11858                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
11859                 m4/visibility.m4.
11860                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
11861
11862 2006-07-22  Bruno Haible  <bruno@clisp.org>
11863
11864         Merge from GNU gettext 0.15.
11865
11866         2006-03-25  Bruno Haible  <bruno@clisp.org>
11867
11868                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
11869
11870         2006-07-21  Bruno Haible  <bruno@clisp.org>
11871
11872                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
11873                 "1.1".
11874
11875         2006-05-09  Bruno Haible  <bruno@clisp.org>
11876
11877                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
11878                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
11879                 for the conftestver execution.
11880
11881         2006-05-01  Bruno Haible  <bruno@clisp.org>
11882
11883                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
11884                 optional target-version argument. Verify that the compiler
11885                 groks source of the specified source-version, or add -source
11886                 option as necessary. Verify that the compiler produces
11887                 bytecode in the specified target-version, or add -target and
11888                 -source options as necessary. Make the result of the test
11889                 available as variable CONF_JAVAC. Also log error output in
11890                 config.log.
11891
11892         2006-03-11  Bruno Haible  <bruno@clisp.org>
11893
11894                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
11895
11896         2006-05-09  Bruno Haible  <bruno@clisp.org>
11897
11898                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
11899                 CLASSPATH_SEPARATOR to a semicolon.
11900
11901         2006-03-12  Bruno Haible  <bruno@clisp.org>
11902
11903                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
11904                 available as variable CONF_JAVA, for subsequent autoconf
11905                 tests. Also log error output in config.log.
11906
11907         2006-07-19  Bruno Haible  <bruno@clisp.org>
11908
11909                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
11910                 that getline works on glibc2 systems. Needed to avoid trouble
11911                 in relocatable.c.
11912                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
11913
11914         2005-12-04  Bruno Haible  <bruno@clisp.org>
11915
11916                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
11917                 launcher (untested).
11918
11919         2005-12-04  Bruno Haible  <bruno@clisp.org>
11920
11921                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
11922
11923         2006-07-22  Bruno Haible  <bruno@clisp.org>
11924
11925                 * gettext.m4: Update from GNU gettext-0.15.
11926                 * nls.m4: Likewise.
11927                 * po.m4: Likewise.
11928                 * inttypes-pri.m4: Likewise.
11929                 * inttypes-h.m4: Renamed from inttypes.m4.
11930                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
11931
11932 2006-07-22  Bruno Haible  <bruno@clisp.org>
11933
11934         Merge from GNU gettext 0.15.
11935
11936         2005-07-05  Bruno Haible  <bruno@clisp.org>
11937
11938                 * printf-args.c (printf_fetchargs): Work around broken
11939                 definition of wint_t on mingw.
11940
11941         2005-02-12  Bruno Haible  <bruno@clisp.org>
11942
11943                 * xallocsa.h: Add extern "C" for C++.
11944
11945         2006-05-17  Bruno Haible  <bruno@clisp.org>
11946
11947                 Cygwin portability.
11948                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
11949
11950         2006-04-30  Bruno Haible  <bruno@clisp.org>
11951
11952                 * progreloc.c: Include <mach-o/dyld.h> if available.
11953                 (find_executable): Use _NSGetExecutablePath when possible.
11954
11955         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
11956
11957                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
11958                 function.
11959
11960         2005-12-29  Bruno Haible  <bruno@clisp.org>
11961
11962                 * progreloc.c (set_program_name_and_installdir): Fix
11963                 compilation error.
11964
11965         2005-12-04  Bruno Haible  <bruno@clisp.org>
11966
11967                 Cygwin portability.
11968                 * progreloc.c: Include <windows.h> also on Cygwin.
11969                 (find_executable): Add support for Cygwin.
11970                 (set_program_name_and_installdir): Handle also platforms with
11971                 nonempty EXEEXT.
11972
11973         2006-07-11  Bruno Haible  <bruno@clisp.org>
11974
11975                 * javacomp.c: Fix a comment.
11976                 Reported by Jim Meyering.
11977
11978         2006-04-30  Bruno Haible  <bruno@clisp.org>
11979
11980                 * javacomp.h (compile_java_class): Add source_version,
11981                 target_version arguments.
11982                 * javacomp.c: Rewritten to choose only a compiler that
11983                 respects the specified source_version and target_version.
11984
11985         2006-06-27  Bruno Haible  <bruno@clisp.org>
11986
11987                 Assume correct S_ISDIR macro.
11988                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
11989
11990         2006-07-22  Bruno Haible  <bruno@clisp.org>
11991
11992                 * javaversion.h: New file, from GNU gettext.
11993                 * javaversion.c: New file, from GNU gettext.
11994                 * javaversion.java: New file, from GNU gettext.
11995                 * javaversion.class: New file, from GNU gettext.
11996
11997         2006-05-17  Bruno Haible  <bruno@clisp.org>
11998
11999                 Cygwin portability.
12000                 * javaexec.c (execute_java_class): Test for jview program
12001                 also on Cygwin.
12002
12003         2006-04-09  Bruno Haible  <bruno@clisp.org>
12004
12005                 * fatal-signal.c: Don't include string.h.
12006                 (at_fatal_signal): Use a copying loop instead of memcpy.
12007
12008         2005-12-04  Bruno Haible  <bruno@clisp.org>
12009
12010                 * csharpexec.c: Add support for 'clix' launcher (untested).
12011                 (execute_csharp_using_sscli): New function.
12012                 (execute_csharp_program): Call it.
12013
12014         2006-06-21  Bruno Haible  <bruno@clisp.org>
12015
12016                 Avoid warnings from recent versions of mcs.
12017                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
12018                 -o, -L, -r any more. Use options documented since mcs-1.0
12019                 instead. Similarly for -g.
12020
12021         2005-07-09  Bruno Haible  <bruno@clisp.org>
12022
12023                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
12024                 add a .dll suffix.
12025                 Reported by Mark Junker <mjscod@gmx.de>.
12026
12027         2006-06-17  Bruno Haible  <bruno@clisp.org>
12028
12029                 * config.charset: Update for NetBSD 3.0.
12030
12031         2006-05-17  Bruno Haible  <bruno@clisp.org>
12032
12033                 Cygwin portability.
12034                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
12035
12036         2006-05-16  Bruno Haible  <bruno@clisp.org>
12037
12038                 * localcharset.c [CYGWIN]: Include <windows.h>.
12039                 (get_charset_aliases): For Cygwin, return the same CPxxx
12040                 aliases list as under WIN32.
12041                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
12042                 the environment variables. Fall back to GetACP().
12043
12044         2006-04-05  Bruno Haible  <bruno@clisp.org>
12045
12046                 * config.charset: Update Juan Manuel Guerrero's address.
12047
12048         2005-02-12  Bruno Haible  <bruno@clisp.org>
12049
12050                 * allocsa.h: Add extern "C" for C++.
12051
12052         2005-02-10  Bruno Haible  <bruno@clisp.org>
12053
12054                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
12055                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
12056
12057         2006-07-22  Bruno Haible  <bruno@clisp.org>
12058
12059                 * gettext.h: Update to GNU gettext-0.15.
12060
12061 2006-07-22  Bruno Haible  <bruno@clisp.org>
12062
12063         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
12064         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
12065         lib-prefix.m4, longdouble.m4, ssize_t.m4.
12066
12067 2006-07-21  Eric Blake  <ebb9@byu.net>
12068
12069         * modules/stdlib-safer: New file.
12070         * MODULES.html.sh (File stream based Input/Output): Add
12071         stdlib-safer.
12072
12073 2006-07-21  Eric Blake  <ebb9@byu.net>
12074
12075         * lib/stdlib-safer.h: New file from coreutils, required by
12076         stdlib--.h.
12077
12078 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
12079
12080         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
12081
12082 2006-07-20  Bruno Haible  <bruno@clisp.org>
12083
12084         * gnulib-tool: Recognize new option --assume-autoconf.
12085         (autoconf_minversion): New variable.
12086         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
12087
12088 2006-07-20  Bruno Haible  <bruno@clisp.org>
12089
12090         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
12091
12092 2006-07-19  Derek R. Price  <derek@ximbiot.com>
12093
12094         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
12095         Reindent and repaginate.
12096
12097 2006-07-19  Derek Price  <derek@ximbiot.com>
12098
12099         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
12100         Correct grammar.
12101
12102 2006-07-17  Bruno Haible  <bruno@clisp.org>
12103
12104         * modules/list: New file.
12105         * modules/array-list: New file.
12106         * modules/carray-list, modules/carray-list-tests: New files.
12107         * modules/linked-list, modules/linked-list-tests: New files.
12108         * modules/avltree-list, modules/avltree-list-tests: New files.
12109         * modules/rbtree-list, modules/rbtree-list-tests: New files.
12110         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
12111         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
12112         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
12113         * modules/oset: New file.
12114         * modules/array-oset: New file.
12115         * modules/avltree-oset, modules/avltree-oset-tests: New files.
12116         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
12117         * tests/test-carray_list.c: New file.
12118         * tests/test-linked_list.c: New file.
12119         * tests/test-avltree_list.c: New file.
12120         * tests/test-rbtree_list.c: New file.
12121         * tests/test-linkedhash_list.c: New file.
12122         * tests/test-avltreehash_list.c: New file.
12123         * tests/test-rbtreehash_list.c: New file.
12124         * tests/test-avltree_oset.c: New file.
12125         * tests/test-rbtree_oset.c: New file.
12126         * MODULES.html.sh (Container data structures): New section.
12127
12128 2006-07-17  Bruno Haible  <bruno@clisp.org>
12129
12130         * m4/gl_list.m4: New file.
12131
12132 2006-07-17  Bruno Haible  <bruno@clisp.org>
12133
12134         * lib/gl_list.h: New file.
12135         * lib/gl_list.c: New file.
12136         * lib/gl_array_list.h: New file.
12137         * lib/gl_array_list.c: New file.
12138         * lib/gl_carray_list.h: New file.
12139         * lib/gl_carray_list.c: New file.
12140         * lib/gl_linked_list.h: New file.
12141         * lib/gl_linked_list.c: New file.
12142         * lib/gl_anylinked_list1.h: New file.
12143         * lib/gl_anylinked_list2.h: New file.
12144         * lib/gl_avltree_list.h: New file.
12145         * lib/gl_avltree_list.c: New file.
12146         * lib/gl_anyavltree_list1.h: New file.
12147         * lib/gl_anyavltree_list2.h: New file.
12148         * lib/gl_rbtree_list.h: New file.
12149         * lib/gl_rbtree_list.c: New file.
12150         * lib/gl_anyrbtree_list1.h: New file.
12151         * lib/gl_anyrbtree_list2.h: New file.
12152         * lib/gl_anytree_list1.h: New file.
12153         * lib/gl_anytree_list2.h: New file.
12154         * lib/gl_linkedhash_list.h: New file.
12155         * lib/gl_linkedhash_list.c: New file.
12156         * lib/gl_anyhash_list1.h: New file.
12157         * lib/gl_anyhash_list2.h: New file.
12158         * lib/gl_avltreehash_list.h: New file.
12159         * lib/gl_avltreehash_list.c: New file.
12160         * lib/gl_rbtreehash_list.h: New file.
12161         * lib/gl_rbtreehash_list.c: New file.
12162         * lib/gl_anytreehash_list1.h: New file.
12163         * lib/gl_anytreehash_list2.h: New file.
12164
12165         * lib/gl_oset.h: New file.
12166         * lib/gl_oset.c: New file.
12167         * lib/gl_array_oset.h: New file.
12168         * lib/gl_array_oset.c: New file.
12169         * lib/gl_avltree_oset.h: New file.
12170         * lib/gl_avltree_oset.c: New file.
12171         * lib/gl_rbtree_oset.h: New file.
12172         * lib/gl_rbtree_oset.c: New file.
12173         * lib/gl_anytree_oset.h: New file.
12174
12175 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12176
12177         * m4/mkancesdirs.m4: New file.
12178         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
12179         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
12180         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
12181         it.
12182
12183 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12184
12185         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
12186         * lib/mkancesdirs.h: New files.
12187         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
12188         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
12189         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
12190         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
12191         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
12192         callers changed.  Revamp internals significantly, by not
12193         attempting to create directories that are temporarily more
12194         permissive than the final results.  Do not attempt to use
12195         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
12196         This removes some race conditions, fixes some bugs, and simplifies
12197         things.  Use new dirchownmod function to do owner and mode changes.
12198         * lib/mkdir-p.h: Likewise.
12199         * lib/modechange.c (octal_to_mode): New function.
12200         (struct mode_change): New member mentioned.
12201         (make_node_op_equals): New arg mentioned.  All callers changed.
12202         (mode_compile): Keep track of which mode bits the user has explicitly
12203         mentioned.
12204         (mode_adjust): New arg DIR, so that we implement the X op correctly.
12205         New arg PMODE_BITS, to keep track of which mode bits the user
12206         mentioned; it treats S_ISUID and S_ISGID speciall.
12207         All callers changed.
12208         * lib/modechange.h: Likewise.
12209
12210 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12211
12212         * MODULES.html.sh: Add mkancestors.
12213         * modules/mkancesdirs: New module.
12214         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
12215         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
12216         The chdir-safer and afs files are now orphans; I'll remove them
12217         unless someone speaks up.
12218         Add lib/dirchownmod.c, lib/dirchownmod.h.
12219         (Depends-on): Remove alloca, chown, save-cwd, dirname.
12220         Add lchown, mkancesdirs.
12221         (Maintainer): Add self.
12222
12223 2006-07-15  Karl Berry  <karl@gnu.org>
12224
12225         * gnulib-tool: help message wording/arrangement.
12226
12227 2006-07-14  Simon Josefsson  <jas@extundo.com>
12228
12229         * doc/gnulib.texi (Libtool and Windows): New section.
12230
12231 2006-07-12  Simon Josefsson  <jas@extundo.com>
12232
12233         * modules/gendocs (License): Fix license, approved by Karl.
12234
12235 2006-07-12  Eric Blake  <ebb9@byu.net>
12236
12237         * MODULES.html.sh: Add gendocs.
12238
12239 2006-07-11  Eric Blake  <ebb9@byu.net>
12240
12241         * modules/fdl: New module, to install doc/fdl.texi.
12242         * MODULES.html.sh: Add new section for documentation modules.
12243         * gnulib-tool: Avoid space-tab.
12244         (--doc-base): New option, to manage files from doc.
12245
12246 2006-07-11  Eric Blake  <ebb9@byu.net>
12247
12248         * m4/absolute-header.m4: Fix comments to match recent change.
12249
12250 2006-07-11  Eric Blake  <ebb9@byu.net>
12251
12252         * gnulib-tool: List --doc-base before --tests-base.
12253
12254 2006-07-11  Derek R. Price  <derek@ximbiot.com>
12255
12256         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
12257
12258 2006-07-11  Bruno Haible  <bruno@clisp.org>
12259
12260         * README: Mention where to put documentation.
12261
12262 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12263
12264         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
12265
12266 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12267
12268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
12269         to stdint.m4.
12270
12271 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12272
12273         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
12274         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
12275         "no/such/file/stdint.h" when there is no such file, so that
12276         the resulting C code can be parsed by dodgy compilers.
12277         Problems reported by Bob Proulx.
12278
12279 2006-07-10  Derek R. Price  <derek@ximbiot.com>
12280
12281         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
12282         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
12283         macros into the GNU _D_EXACT_NAMLEN.
12284         * lib/savedir.c:  Likewise.
12285         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
12286
12287 2006-07-10  Derek R. Price  <derek@ximbiot.com>
12288         and Paul Eggert  <eggert@cs.ucla.edu>
12289
12290         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
12291         * m4/savedir.m4:
12292         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
12293         macros into the GNU _D_EXACT_NAMLEN.
12294
12295 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12296
12297         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
12298         around the absolute name, to work around a problem with the HP-UX
12299         11.23 native C compiler, reported by Bob Proulx.
12300
12301 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12302
12303         * doc/maintain.texi, make-stds.texi: Sync from
12304         <http://savannah.gnu.org/projects/gnustandards>.
12305
12306 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12307
12308         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
12309
12310 2006-07-09  Jim Meyering  <jim@meyering.net>
12311
12312         * m4/glob.m4: Remove a doubled word in a comment.
12313
12314 2006-07-09  Jim Meyering  <jim@meyering.net>
12315
12316         * lib/argp-pv.c: Remove a doubled word in a comment.
12317         * lib/check-version.c (check_version): Likewise.
12318         * lib/javacomp.c (compile_java_class): Likewise.
12319
12320 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12321
12322         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
12323         for the benefit of people using Autoconf 2.60.  If you want to
12324         support older Autoconf versions you can copy m4/onceonly_2_57.m4
12325         (or m4/onceonly.m4, if pre-2.57) manually.
12326
12327 2006-07-08  Jim Meyering  <jim@meyering.net>
12328
12329         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
12330         comment.
12331         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
12332         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
12333         comment.
12334
12335 2006-07-08  Jim Meyering  <jim@meyering.net>
12336
12337         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
12338
12339 2006-07-07  Simon Josefsson  <jas@extundo.com>
12340
12341         * tests/test-crc.c: Change expected crc value, the test vector
12342         were probably computed using the old broken crc.c?
12343
12344 2006-07-06  Simon Josefsson  <jas@extundo.com>
12345
12346         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
12347         now the canonical place for the M4 file).
12348
12349         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
12350         from the sys_socket dependency now.
12351
12352         * modules/inet_pton (Files): Ditto.
12353
12354         * modules/inet_ntop (Files): Ditto.
12355
12356 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12357
12358         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
12359         not gl_PREREQ_GETUSERSHELL.
12360
12361 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12362
12363         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
12364         with only one argument, for Autoconf 2.60.
12365         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
12366         expand to nothing, so add a shell command to avoid syntax error.
12367         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12368
12369 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12370
12371         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
12372
12373 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12374
12375         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
12376         no longer needed.  Check for isblank decl.
12377         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
12378         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
12379         of existence.
12380
12381 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12382
12383         * lib/getloadavg.c: Use __VMS, not VMS.
12384         * lib/getopt.c: Likewise.
12385         * lib/getpagesize.h: Likewise.
12386         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
12387         and probably does not work.
12388
12389 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12390
12391         * lib/.cppi-disable: Add wcwidth.
12392         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
12393         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
12394         (ISGRAPH): Remove.  All uses changed to isgraph.
12395         (FOLD) [!defined _LIBC]: Remove special case.
12396         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
12397         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
12398         HAVE_ISBLANK.
12399         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
12400         case.
12401
12402 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
12403
12404         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
12405         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
12406         brackets.  Other minor changes to suppress some compiler
12407         warnings.
12408
12409 2006-07-06  Derek R. Price  <derek@ximbiot.com>
12410         and Paul Eggert  <eggert@cs.ucla.edu>
12411
12412         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
12413         of invoking obsolescent AC_HEADER_DIRENT macro.
12414         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12415         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
12416         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12418         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
12419         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12420         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
12421         * m4/readdir.m4: Remove; no longer needed.
12422
12423 2006-07-06  Derek R. Price  <derek@ximbiot.com>
12424         and Paul Eggert  <eggert@cs.ucla.edu>
12425
12426         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
12427         Don't worry about this obsolete case any more.
12428         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
12429         directories.
12430         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
12431         worry about this obsolete case any more.
12432         * lib/fts.c: Likewise.
12433         * lib/getcwd.c: Likewise.
12434         * lib/glob.h: Likewise.
12435         * lib/savedir.c: Likewise.
12436
12437 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12438
12439         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
12440         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
12441         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
12442         needed.
12443         All uses removed.
12444         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12445         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12446         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
12447         needed.
12448         * m4/getdate.m4 (gl_GETDATE): Likewise.
12449         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12450         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12451         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12452         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12453         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12454         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12455         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
12456         needed.
12457
12458 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12459
12460         * lib/memcasecmp.c: Include <limits.h>.
12461         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
12462         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
12463         Don't assume isdigit succeeds only on '0' through '9'.
12464
12465 2006-07-05  Eric Blake  <ebb9@byu.net>
12466
12467         * modules/getaddrinfo (Depends-on): Add snprintf.
12468
12469 2006-07-05  Eric Blake  <ebb9@byu.net>
12470
12471         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
12472         to avoid 'header present but could not be compiled' on cygwin.
12473
12474 2006-07-05  Eric Blake  <ebb9@byu.net>
12475
12476         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
12477         missing from netdb.h.
12478         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
12479
12480 2006-07-05  Derek R. Price  <derek@ximbiot.com>
12481
12482         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
12483         no longer needed.
12484         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
12485         * m4/getdate.m4 (gl_GETDATE): Likewise.
12486         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12487         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12488         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12489         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12490         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12491
12492 2006-07-05  Derek R. Price  <derek@ximbiot.com>
12493
12494         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
12495         All uses of is_space replaced by isspace.
12496         * lib/exit.h: Don't talk about STDC_HEADERS.
12497         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
12498         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
12499         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
12500         replaced by isprint etc.
12501         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
12502         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12503         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
12504         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
12505         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
12506         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12507
12508 2006-07-05  Bruno Haible  <bruno@clisp.org>
12509
12510         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
12511         the function exists, before testing against AIX.
12512         Reported by Martin Lambers <marlam@marlam.de>.
12513
12514 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12515
12516         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
12517         From Mark D. Baushke.
12518
12519 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12520
12521         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
12522         to the absolute name, not just one, to bypass Sun C 5.8's
12523         "warning: #include of /usr/include/... may be non-portable".
12524
12525 2006-07-04  Eric Blake  <ebb9@byu.net>
12526
12527         * modules/dirname-tests: New test module.
12528         * tests/test-dirname.c: New file, replacing dirname.c
12529         TEST_DIRNAME section that was recently deleted.
12530
12531 2006-07-04  Bruno Haible  <bruno@clisp.org>
12532
12533         Assume ANSI C header files and <ctype.h> functions.
12534         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
12535         (mbsnwidth): Use isprint, iscntrl instead.
12536
12537 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12538
12539         Merge from coreutils.
12540         * MODULES.html.sh: Add xstrtold.
12541         * modules/xstrtold: New file.
12542         * modules/cycle-check (Files): Add lib/same-inode.h.
12543         * modules/dirname (Files): Add m4/double-slash-root.m4.
12544         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
12545         * modules/mkdir-p (Files): Add lib/same-inode.h.
12546         * modules/same (Files): Add lib/same-inode.h.
12547
12548 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12549
12550         * m4/absolute-header.m4: Renamed from full-header-path.m4.
12551         This is to keep the terminology clean; POSIX talks about
12552         "absolute pathnames", not "full pathnames", but the GNU
12553         Coding Standards say to use "path" for something else;
12554         so use "absolute" to keep both sides happy.
12555         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
12556         Set gl_absolute_header, not gl_full_header_path.
12557         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
12558         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
12559         All uses changed.
12560
12561         Merge from coreutils.
12562
12563         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12564
12565         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
12566         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
12567         want to require the building of c-strtod.o.
12568         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
12569         needs -lm directly.
12570         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
12571
12572         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
12573
12574         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
12575         --as-needed option if available.  Problem reported by Albert Chin in
12576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
12577         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
12578         cc merely issues a bunch of annoying warnings for --as-needed
12579         (this problem was reported by Bob Proulx).  Also, try linking with
12580         -lm to detect a bug in binutils 2.16 (this problem was reported
12581         by Ralf Wildenhues).
12582
12583         2006-06-18  Jim Meyering  <jim@meyering.net>
12584
12585         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
12586         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
12587         macro.
12588         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
12589         also check for glibc-2.4's abort-inducing bug.
12590
12591         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
12592         Low-probability clean-up should be to use rmdir to get rid of
12593         the just-created directory, not unlink.
12594
12595         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
12596         configure fail, and request a bug report to inform us about it.
12597         Add a comment that, barring reports to the contrary, in 2007 we'll
12598         assume ftruncate is universally available.
12599
12600         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
12601
12602         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
12603
12604         2006-03-12  Jim Meyering  <jim@meyering.net>
12605
12606         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
12607         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
12608         * m4/same.m4 (gl_SAME): Likewise.
12609         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
12610
12611         2006-03-11  Eric Blake  <ebb9@byu.net>
12612
12613         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
12614         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
12615         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
12616         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
12617
12618 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12619
12620         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
12621         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
12622         reported by Mark D. Baushke, one in
12623         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
12624
12625         Merge from coreutils.
12626
12627         * lib/.cppi-disable: Add stdint_.h.
12628         * lib/.cvsignore: Add stdint.h.
12629
12630         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12631
12632         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
12633         both double and long double versions.
12634         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
12635         * lib/xstrtold.c: New file.
12636         * lib/xstrtod.h (xstrtold): New decl.
12637
12638         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12639
12640         * lib/filemode.c (setst): Remove.
12641         (strmode): Rewrite to avoid setst.  This makes the code shorter,
12642         (arguably) clearer, and the generated code is a bit smaller on my
12643         Debian GNU/Linux stable x86 host.
12644
12645         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
12646
12647         * lib/filemode.c: Include "filemode.h" first, to test the interface.
12648         Assume that filemode.h includes sys/types.h and sys/stat.h.
12649         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
12650         (ftypelet): Reorder to put common cases first, for efficiency.
12651         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
12652         to do 'M'.
12653         (strmode): Renamed from mode_string, and now stores 12 bytes instead
12654         of 10, for compatibility with FreeBSD.  All callers changed.
12655         (filemodestring): Now stores 12 bytes instead of 10, and sets file
12656         types that can't be deduced solely from st_mode.  First arg is now a
12657         const pointer.
12658         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
12659         (strmode): Renamed from mode_string.
12660         (filemodestring): New decl.
12661         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
12662         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
12663         needed.
12664         (S_ISPORT, S_ISWHT): New macros, if not already defined.
12665
12666         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
12667
12668         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
12669         fsusage.h now does that.  Include fsusage.h first, to test interface.
12670         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
12671         at most one method (the old code could have generated decls that
12672         didn't conform to C89, not that this was ever exercised).
12673         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
12674
12675         2006-03-19  Jim Meyering  <jim@meyering.net>
12676
12677         Work even in a chroot where d_ino values for entries in "/"
12678         don't match the stat.st_ino values for the same names.
12679         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
12680         number, iterate through all entries again, using lstat instead.
12681         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
12682         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
12683
12684         * lib/getcwd.c (__getcwd): Clarify a comment.
12685         Use memcpy in place of a call to strcpy.
12686
12687         2006-03-12  Jim Meyering  <jim@meyering.net>
12688
12689         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
12690         matches that of the current directory (which we're about to chdir ".."
12691         out of), then save the dev-ino of the parent, instead.
12692
12693         * lib/same-inode.h (SAME_INODE): New file/macro.
12694         * lib/chdir-safer.c (SAME_INODE): Remove definition.
12695         Include "same-inode.h", instead.
12696         * lib/same.c: Likewise.
12697         * lib/cycle-check.h: Include "same-inode.h".
12698         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
12699         * lib/cycle-check.c (SAME_INODE): Remove definition.
12700         * lib/root-dev-ino.h: Include "same-inode.h".
12701
12702         2006-03-11  Eric Blake  <ebb9@byu.net>
12703
12704         * lib/same.c (same_name): s/base_name/last_component/
12705         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
12706         * lib/filenamecat.c (file_name_concat): Likewise.
12707
12708         2006-03-11  Eric Blake  <ebb9@byu.net>,
12709                     Paul Eggert  <eggert@cs.ucla.edu>
12710
12711         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
12712         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
12713         drive prefix.
12714         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
12715         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
12716         (last_component): New method.
12717         * lib/dirname.c (dir_len): Determine when drive letters need a
12718         subsequent slash.  Preserve // when it is special.
12719         (dir_name): Don't append dot when drive letter is absolute.
12720         [TEST_DIRNAME]: Move into a full-blown gnulib test.
12721         * lib/basename.c (base_name): New semantics - malloc the result.
12722         Preserve // when it is special.  Preserve relative files that look
12723         like drive letters.
12724         (base_len): Preserve // when it is special.
12725         (last_component): New method, similar to old base_name semantics.
12726         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
12727         base_name.  Strip redundant slashes from ///.
12728
12729 2006-07-03  Jim Meyering  <jim@meyering.net>
12730
12731         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
12732         macro is used before the first cycle_check call.
12733
12734 2006-07-03  Eric Blake  <ebb9@byu.net>
12735
12736         * modules/dirname (Depends-on): Add xstrndup.
12737
12738 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12739
12740         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
12741         test cases, so that config.log is a bit easier to follow.
12742
12743 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12744
12745         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
12746         both are 64 bits, since this seems to be the tradition, and this
12747         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
12748         we ever run into a host that prefers long long to long in this
12749         case, we'll need another configure-time test.  Problem reported by
12750         Jim Meyering.
12751
12752 2006-07-02  Eric Blake  <ebb9@byu.net>
12753
12754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
12755
12756 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12757
12758         * modules/inttypes (Depends-on): No longer depends on stdint.
12759         * modules/stdint (Description): Say more about assumptions.
12760         Say that the fast types might differ.  Say macros are used.
12761         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
12762         (Makefile.am): Revise list of substituted symbols to match
12763         new stdint.m4.
12764         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
12765         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
12766         * tests/test-stdint.c (verify_same_types)
12767         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
12768         the code conforms to C99/C89.
12769         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
12770         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
12771
12772 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12773
12774         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
12775         but fix a bug, by requiring at least 64 bits.
12776         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
12777         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
12778         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
12779         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
12780
12781         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
12782         changes.  Make 2.59 a prerequisite.  Check and substitute for
12783         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
12784         inttypes.h.  Do not use special include files; just use the
12785         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
12786         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
12787         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
12788         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
12789         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
12790         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
12791         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
12792         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
12793         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
12794         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
12795         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
12796         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
12797         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
12798         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
12799         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
12800         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
12801         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
12802         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
12803         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
12804         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
12805         WINT_MAX.  Check for C99 conformance more strictly, by detecting
12806         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
12807         not check for things that C99 does not require, e.g., int8_t.  If
12808         a test isn't needed unless <stdint.h> isn't working, and is
12809         unlikely to be needed for any other reason, then don't do it
12810         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
12811         size_t, since we assume C89 freestanding at least.  Do not check
12812         for sig_atomic_t, wchar_t, or wint_t, since the code now does
12813         the right thing even if the types are not defined.  Instead use:
12814         (gl_STDINT_TYPE_PROPERTIES): New macro.
12815         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
12816         testing whether <sys/types.h> clashes, as Autoconf does this for
12817         us now.  All uses removed.
12818         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
12819         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
12820         (gl_CHECK_TYPE_SAME):
12821         Remove; no longer needed.
12822         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
12823         exists, since we'll return 0 anyway in that case.
12824         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
12825
12826 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12827
12828         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
12829         possible collision with system files.
12830         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
12831         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
12832         WCHAR_MIN and WCHAR_MAX in this case.
12833         (<stddef.h>): Do not include; no longer needed.
12834         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
12835         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
12836         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
12837         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
12838         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
12839         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
12840         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
12841         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
12842         !defined(__c99))]: Include in this case too, since it's harmless
12843         now.
12844         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
12845         dangerous to do so.
12846         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
12847         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
12848         (_STDINT_MIN, _STDINT_MAX): New macros.
12849         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
12850         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
12851         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
12852         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
12853         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
12854         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
12855         macros, not typedefs; this simplifies things quite a bit.
12856         Use long int for all types narrower than int64_t.
12857         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
12858         Define in terms of long long int or int64_t or long int,
12859         not int64_t or int32_t.  This saves some compile-time testing.
12860         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
12861         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
12862         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
12863         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
12864         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
12865         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
12866         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
12867         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
12868         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
12869         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
12870         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
12871         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
12872         undef any previous version and define our own version, for
12873         simplicity and consistency with the new macros for types.
12874         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
12875         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
12876         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
12877         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
12878         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
12879         @WINT_T_SUFFIX@ to keep things simple here.
12880         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
12881         Simplify by assuming typical 8/16/32/64 host, since we're
12882         already doing that elsewhere anyway.
12883         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
12884         and assume long long int is 64 bits if available.  This
12885         speeds up 'configure'.
12886
12887 2006-07-01  Eric Blake  <ebb9@byu.net>
12888
12889         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
12890         Reported by Andreas Buening.
12891
12892 2006-07-01  Eric Blake  <ebb9@byu.net>
12893
12894         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
12895
12896 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
12897
12898         * lib/getaddrinfo.c: fixed typo
12899
12900 2006-06-29  Jim Meyering  <jim@meyering.net>
12901
12902         * modules/strftime (Maintainer): Add my name, since with the
12903         FPRINTFTIME changes strftime.c has forked from glibc.
12904
12905 2006-06-29  Eric Blake  <ebb9@byu.net>
12906
12907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
12908
12909 2006-06-29  Eric Blake  <ebb9@byu.net>
12910
12911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
12912
12913 2006-06-29  Eric Blake  <ebb9@byu.net>
12914
12915         * lib/stat_.h: New file.
12916
12917 2006-06-29  Eric Blake  <ebb9@byu.net>
12918
12919         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
12920         unused static function.
12921
12922 2006-06-29  Eric Blake  <ebb9@byu.net>
12923
12924         * doc/functions.texi (Function Portability): Document missing lstat
12925         on mingw.
12926
12927 2006-06-29  Eric Blake  <ebb9@byu.net>
12928
12929         * MODULES.html.sh: Add sys_stat.
12930         * modules/sys_stat: New module.
12931         * modules/mkstemp (Depends-on): Add sys_stat.
12932
12933 2006-06-29  Derek R. Price  <derek@ximbiot.com>
12934
12935         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
12936
12937 2006-06-29  Derek R. Price  <derek@ximbiot.com>
12938
12939         * m4/c-bs-a.m4: Removed.
12940
12941 2006-06-29  Derek R. Price  <derek@ximbiot.com>
12942
12943         * lib/strftime.c: Assume strftime() exists.
12944
12945 2006-06-29  Derek Price  <derek@ximbiot.com>
12946
12947         * modules/c-bs-a: Removed - \a is C89.
12948         * MODULES.html.sh: Remove c-bs-a.
12949
12950 2006-06-29  Bruno Haible  <bruno@clisp.org>
12951
12952         * modules/wcwidth (License): Change to LGPL.
12953
12954 2006-06-28  Simon Josefsson  <jas@extundo.com>
12955
12956         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
12957         on _WIN32.
12958
12959         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
12960         getnameinfo.
12961
12962 2006-06-28  Simon Josefsson  <jas@extundo.com>
12963
12964         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
12965
12966 2006-06-28  Simon Josefsson  <jas@extundo.com>
12967
12968         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
12969         functions there.  It will succeed on Windows XP, but on Windows
12970         2000 and (presumably) earlier, it will fail, and use the internal
12971         re-implementation.
12972         (use_win32_p): New function.
12973         (getaddrinfo): Use strtoul on servname, to support numeric ports.
12974         Support AI_NUMERICSERV to disable getservbyname.
12975         (getnameinfo): New function, only supports
12976         NI_NUMERICHOST|NI_NUMERICSERV for now.
12977
12978         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
12979         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
12980         getnameinfo.
12981
12982 2006-06-28  Eric Blake  <ebb9@byu.net>
12983
12984         * modules/wcwidth: New file.
12985         * modules/mbchar (Depends-on): Add wcwidth.
12986         * modules/mbswidth (Depends-on): Add wcwidth.
12987         * MODULES.html.sh: Add wcwidth.
12988
12989 2006-06-28  Eric Blake  <ebb9@byu.net>
12990
12991         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
12992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
12993
12994 2006-06-28  Eric Blake  <ebb9@byu.net>
12995
12996         * lib/xvasprintf.h: Fix comments.
12997
12998 2006-06-28  Eric Blake  <ebb9@byu.net>
12999
13000         * lib/mbchar.h (wcwidth): Include wcwidth.h.
13001         * lib/mbswidth.c (wcwidth): Move from here...
13002         * lib/wcwidth.h: ...to this new file.
13003
13004 2006-06-28  Derek R. Price  <derek@ximbiot.com>
13005
13006         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
13007
13008         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
13009         it's obsolete.
13010         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
13011
13012 2006-06-28  Derek R. Price  <derek@ximbiot.com>
13013
13014         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
13015         Autoconf 2.60 says this stuff was obsolete.
13016
13017 2006-06-28  Bruno Haible  <bruno@clisp.org>
13018
13019         * modules/wcwidth (Files): Add m4/wchar_t.m4.
13020
13021 2006-06-28  Bruno Haible  <bruno@clisp.org>
13022
13023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
13024         gt_TYPE_WCHAR_T.
13025
13026 2006-06-28  Bruno Haible  <bruno@clisp.org>
13027
13028         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
13029         declaration for wcwidth.
13030         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
13031
13032 2006-06-28  Bruno Haible  <bruno@clisp.org>
13033
13034         * lib/mkdtemp.c [MINGW]: Include <io.h>.
13035         (mkdir): Define using _mkdir.
13036
13037 2006-06-28  Bruno Haible  <bruno@clisp.org>
13038
13039         * lib/getaddrinfo.h: Fix POSIX URL.
13040         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
13041         _WIN32.
13042         (use_win32_p): Make static.
13043         (getaddrinfo): Reject service name if it is empty or does not consist
13044         solely of decimal digits, or if its value is > 65535.
13045         (getnameinfo): Remove useless casts.
13046
13047 2006-06-27  Simon Josefsson  <jas@extundo.com>
13048
13049         * modules/sys_select: New file, suggested by Bruno Haible, Paul
13050         Eggert and Martin Lambers.
13051
13052 2006-06-27  Simon Josefsson  <jas@extundo.com>
13053
13054         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
13055         Eggert and Martin Lambers.
13056
13057 2006-06-27  Bruno Haible  <bruno@clisp.org>
13058
13059         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
13060         result to 0, not to empty.
13061         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
13062
13063 2006-06-27  Bruno Haible  <bruno@clisp.org>
13064
13065         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
13066
13067 2006-06-26  Simon Josefsson  <jas@extundo.com>
13068
13069         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
13070         present.
13071
13072 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13073
13074         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
13075         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
13076         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
13077
13078 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
13079
13080         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
13081
13082 2006-06-26  Bruno Haible  <bruno@clisp.org>
13083
13084         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
13085
13086 2006-06-26  Bruno Haible  <bruno@clisp.org>
13087
13088         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
13089
13090 2006-06-26  Bruno Haible  <bruno@clisp.org>
13091
13092         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
13093         SGI C compiler in pre-C99 mode.
13094         Suggested by Mark D. Baushke and Larry Jones.
13095
13096 2006-06-26  Bruno Haible  <bruno@clisp.org>
13097
13098         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
13099         WCHAR_MAX.
13100         Reported by Mark D. Baushke and Larry Jones.
13101
13102 2006-06-26  Bruno Haible  <bruno@clisp.org>
13103
13104         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
13105         in pre-C99 mode.
13106         Suggested by Mark D. Baushke and Larry Jones.
13107
13108 2006-06-23  Simon Josefsson  <jas@extundo.com>
13109             Bruno Haible  <bruno@clisp.org>
13110
13111         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
13112         Emit mostlyclean-local rule.
13113         (func_emit_tests_Makefile_am): Likewise.
13114         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
13115
13116 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
13117
13118         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
13119
13120 2006-06-23  Bruno Haible  <bruno@clisp.org>
13121
13122         * tests/test-stdint.c: Update to match ISO C 99 Technical
13123         Corrigendum 1.
13124
13125 2006-06-23  Bruno Haible  <bruno@clisp.org>
13126
13127         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
13128
13129 2006-06-23  Bruno Haible  <bruno@clisp.org>
13130
13131         * lib/stdint_.h: Treat IRIX like OpenBSD.
13132
13133 2006-06-23  Bruno Haible  <bruno@clisp.org>
13134
13135         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
13136         ISO C 99 Technical Corrigendum 1.
13137
13138 2006-06-22  Simon Josefsson  <jas@extundo.com>
13139
13140         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
13141         MinGW.
13142
13143 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13144
13145         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
13146         needed.  Some compiler complained about some of them.  Problem reported
13147         by Larry Jones in
13148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
13149
13150 2006-06-21  Simon Josefsson  <jas@extundo.com>
13151
13152         * tests/test-getaddrinfo.c: New file.
13153
13154         * modules/getaddrinfo-tests: New file.
13155
13156         * MODULES.html.sh: Add inet_pton.
13157
13158         * modules/inet_pton: New file.
13159
13160 2006-06-21  Simon Josefsson  <jas@extundo.com>
13161
13162         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
13163         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
13164         of using the (limited) gnulib implementation on Windows XP.
13165
13166         * m4/inet_pton.m4: New file.
13167
13168 2006-06-21  Simon Josefsson  <jas@extundo.com>
13169
13170         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
13171         variable.
13172
13173         * lib/socket_.h: Don't define WINVER.
13174
13175         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
13176         slightly modified to work in gnulib.
13177
13178 2006-06-21  Simon Josefsson  <jas@extundo.com>
13179
13180         * doc/gnulib.texi (Windows sockets): Add.
13181
13182 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13183
13184         * lib/read-file.c (fread_file): Start with buffer allocation of
13185         0 bytes rather than 1 byte; this simplifies the code.
13186         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
13187         code to free buffer and save/restore errno.
13188         (internal_read_file): Remove unused local.
13189
13190 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13191
13192         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
13193         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
13194         Problem reported by Denis Excoffier in
13195         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
13196
13197 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13198
13199         * modules/sys_socket, modules/socklen: Include sys/types since
13200         FreeBSD 4.x's sys/socket.h needs it.
13201
13202 2006-06-19  Simon Josefsson  <jas@extundo.com>
13203
13204         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
13205
13206 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
13207
13208         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
13209
13210 2006-06-19  Bruno Haible  <bruno@clisp.org>
13211
13212         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
13213         and FULL_PATH_INTTYPES_H in angle brackets.
13214         Reported by Mark D. Baushke <mdb@gnu.org>.
13215
13216 2006-06-17  Eric Blake  <ebb9@byu.net>
13217
13218         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
13219         errno.
13220
13221 2006-06-17  Bruno Haible  <bruno@clisp.org>
13222
13223         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
13224         <sys/inttypes.h>.
13225
13226 2006-06-17  Bruno Haible  <bruno@clisp.org>
13227
13228         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
13229         whether errno is declared. Assume <errno.h> declares errno.
13230
13231 2006-06-17  Bruno Haible  <bruno@clisp.org>
13232
13233         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
13234
13235 2006-06-17  Bruno Haible  <bruno@clisp.org>
13236
13237         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
13238         problem on Solaris 2.5.1.
13239
13240 2006-06-16  Eric Blake  <ebb9@byu.net>
13241
13242         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
13243         * lib/unicodeio.c [!defined errno]: Likewise.
13244         * lib/strtol.c [!defined errno]: Likewise.
13245         * lib/strtod.c [!defined errno]: Likewise.
13246
13247 2006-06-15  Eric Blake  <ebb9@byu.net>
13248
13249         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
13250
13251 2006-06-15  Eric Blake  <ebb9@byu.net>
13252
13253         * config/srclist.txt (ssize_t.m4): Lose sync.
13254
13255 2006-06-15  Bruno Haible  <bruno@clisp.org>
13256
13257         * modules/stdint (Files): Include m4/full-header-path.m4,
13258         m4/size_max.m4, m4/wchar_t.m4.
13259         (Makefile.am): Many more substitutions.
13260         * modules/stdint-tests: New file.
13261         * tests/test-stdint.c: New file.
13262
13263 2006-06-15  Bruno Haible  <bruno@clisp.org>
13264
13265         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
13266         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
13267         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
13268         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
13269         gl_CHECK_TYPE_SAME): New macros.
13270
13271 2006-06-15  Bruno Haible  <bruno@clisp.org>
13272
13273         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
13274
13275 2006-06-15  Bruno Haible  <bruno@clisp.org>
13276
13277         * lib/stdint_.h: Rewritten to be fully auto-configured.
13278         Fixes bug on HP-UX/IA64.
13279
13280 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
13281
13282         * lib/getdate.y (__attribute__): Don't define if already defined.
13283         Problem reported by Larry Jones.
13284         * lib/utimens.c (__attribute__): Likewise.
13285
13286 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13287
13288         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
13289         reported by Andreas Schwab.
13290
13291 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13292             Bruno Haible  <bruno@clisp.org>
13293
13294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
13295         check for the declaration of strnlen and a run test that exposes the
13296         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
13297         rpl_strndup.
13298
13299 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13300             Bruno Haible  <bruno@clisp.org>
13301
13302         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
13303
13304 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13305
13306         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
13307         compile test, for Tru64 4.0D.
13308
13309 2006-05-28  Karl Berry  <karl@gnu.org>
13310
13311         * config/srclist.txt (printf-args.c): lose sync.
13312
13313 2006-05-26  Martin Lambers  <marlam@marlam.de>
13314
13315         * lib/getpass.c: Updates the test for the native W32 API, and adds
13316         missing includes, thus fixing compilation warnings.
13317
13318 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13319
13320         * lib/exclude.c (exclude_fnmatch): New function.
13321         (excluded_file_name): Call exclude_fnmatch.
13322         * lib/exclude.h (excluded_file_name): New prototype
13323
13324 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
13325
13326         * lib/tempname.c (small_open, large_open): New macros.
13327         (__open, __open64) [!_LIBC]: Remove.
13328         (__gen_tempname): Use small_open and large_open instead of __open
13329         and __open64.  This fixes a portability bug on HP-UX 11.11i
13330         reported by Simon Wing-Tang in
13331         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
13332
13333 2006-05-24  Bruno Haible  <bruno@clisp.org>
13334
13335         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
13336         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
13337         Reported by Thorsten Maerz <torte@netztorte.de> via
13338         Aaron Stone <aaron@serendipity.cx>.
13339
13340 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13341
13342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
13343         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
13344         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
13345         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
13346         not really conditional on the cache.
13347         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
13348
13349 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13350
13351         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
13352         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
13353         (my_usleep): Don't mishandle maximum value.
13354
13355 2006-05-19  Jim Meyering  <jim@meyering.net>
13356
13357         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
13358
13359 2006-05-17  Bruno Haible  <bruno@clisp.org>
13360
13361         Cygwin portability.
13362         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
13363
13364 2006-05-17  Bruno Haible  <bruno@clisp.org>
13365
13366         * lib/stdint_.h: Fix recognition of Cygwin.
13367
13368 2006-05-15  Bruno Haible  <bruno@clisp.org>
13369
13370         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
13371         on libtool patch by Ralf Wildenhues.
13372
13373 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13374
13375         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
13376         test for C99 conformance; (bool) 0.5 is an integer constant
13377         expression, but (bool) -0.5 is not.  Problem reported by Fedor
13378         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
13379
13380 2006-05-11  Simon Josefsson  <jas@extundo.com>
13381
13382         * m4/xvasprintf.m4: Fix obvious typo.
13383
13384 2006-05-11  Jim Meyering  <jim@meyering.net>
13385
13386         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
13387         James Lemley.
13388
13389 2006-05-10  Simon Josefsson  <jas@extundo.com>
13390
13391         * lib/md4.c: Typo fix, update copyright years.
13392         (K1, K2): Don't use L because it turn computations into 64-bit on
13393         64-bit platforms.
13394
13395 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13396
13397         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
13398         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
13399         unwanted sign propagation, e.g., on hosts with 64-bit int.
13400         There still are some problems with reeelly weird theoretical hosts
13401         (e.g., 33-bit int) but it's not worth worrying about now.
13402         * lib/sha1.c (rol): Likewise.
13403         (K1, K2, K3, K4): Remove unnecessary L suffix.
13404
13405 2006-05-10  Bruno Haible  <bruno@clisp.org>
13406
13407         * lib/des.c: Cast to avoid warnings.
13408
13409 2006-05-09  Bruno Haible  <bruno@clisp.org>
13410
13411         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
13412         (Depends-on): Depend also on xsize, stdarg.
13413         (configure.ac): Add gl_XVASPRINTF.
13414
13415 2006-05-09  Bruno Haible  <bruno@clisp.org>
13416
13417         * m4/xvasprintf.m4: New file.
13418
13419 2006-05-09  Bruno Haible  <bruno@clisp.org>
13420
13421         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
13422         (EOVERFLOW): Define fallback value.
13423         (xstrcat): New function.
13424         (xvasprintf): Recognize the special case of a string concatenation.
13425
13426 2006-05-08  Eric Blake  <ebb9@byu.net>
13427
13428         * gnulib-tool (func_version): Base copyright year on CVS date.
13429         (func_emit_copyright_notice): New function.
13430         (func_emit_lib_Makefile_am): Use it.
13431         (func_emit_tests_Makefile_am): Likewise.
13432         (func_import): Likewise.
13433
13434 2006-05-08  Bruno Haible  <bruno@clisp.org>
13435
13436         * modules/stdarg: New file.
13437         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
13438
13439 2006-05-08  Bruno Haible  <bruno@clisp.org>
13440
13441         * m4/stdarg.m4: New file, from GNU gettext.
13442
13443 2006-05-08  Bruno Haible  <bruno@clisp.org>
13444
13445         * config/srclist.txt (build-aux/config.rpath): different from latest
13446         release.
13447
13448 2006-05-08  Bruno Haible  <bruno@clisp.org>
13449
13450         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
13451
13452 2006-05-05  Jim Meyering  <jim@meyering.net>
13453
13454         * m4/warning.m4: New file, derived from bison's file by the same name.
13455
13456 2006-05-03  Bruno Haible  <bruno@clisp.org>
13457
13458         * lib/stdint_.h: Shorter URL.
13459         * lib/inttypes.h: Likewise.
13460
13461 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13462
13463         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
13464
13465 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13466
13467         * lib/verify.h: Document the internals better.  Most of this change
13468         was written by Bruno Haible.
13469
13470 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13471
13472         * doc/verify.texi: New file, partly based on a proposal by
13473         Bruno Haible.
13474
13475 2006-05-02  Bruno Haible  <bruno@clisp.org>
13476
13477         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
13478         test from here...
13479         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
13480
13481 2006-04-29  Bruno Haible  <bruno@clisp.org>
13482
13483         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
13484         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
13485
13486 2006-04-29  Bruno Haible  <bruno@clisp.org>
13487
13488         * gnulib-tool: Make --update option actually work.
13489
13490 2006-04-29  Bruno Haible  <bruno@clisp.org>
13491
13492         * doc/gcd.texi: New file.
13493         * doc/gnulib.texi: Include it.
13494
13495 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13496
13497         * lib/getdate.y (get_date): When adding relative date, start with the
13498         initial time, not with the result of the first mktime call.
13499
13500 2006-04-25  Bruno Haible  <bruno@clisp.org>
13501
13502         * gnulib-tool (func_import): Output the include directives in three
13503         blocks, sorted separately.
13504         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13505
13506 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13507
13508         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
13509         to define main with arguments, for C++.  Reported by Eric Blake.
13510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13511         Prefer 'int main ()' to 'int main (void)', for C++.
13512         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13513         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
13514         for 'main', for C99 and C++.
13515
13516 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13517
13518         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
13519         Don't assume that exit status -1 is valid.
13520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13521         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13522         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
13523         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
13524         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
13525         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
13526         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
13527         functions can be used without declaring them, or that you can
13528         exit with status -1.
13529         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
13530
13531 2006-04-24  Karl Berry  <karl@gnu.org>
13532
13533         * config/srclist.txt (longdouble.m4): sync lost.
13534
13535 2006-04-24  Eric Blake  <ebb9@byu.net>
13536
13537         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
13538
13539 2006-04-24  Bruno Haible  <bruno@clisp.org>
13540
13541         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
13542         poll() implementation in AIX.
13543         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13544
13545 2006-04-24  Bruno Haible  <bruno@clisp.org>
13546
13547         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
13548         assigned exactly once.
13549
13550 2006-04-23  Claudio Fontana  <claudio@gnu.org>
13551             Bruno Haible  <bruno@clisp.org>
13552
13553         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
13554         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
13555         for AM_CPPFLAGS.
13556
13557 2006-04-23  Bruno Haible  <bruno@clisp.org>
13558
13559         * modules/copy-file: Depend on unistd.
13560         * modules/execute: Likewise.
13561         * modules/fatal-signal: Likewise.
13562         * modules/findprog: Likewise.
13563         * modules/mkdtemp : Likewise.
13564         * modules/pipe: Likewise.
13565         * modules/wait-process: Likewise.
13566
13567 2006-04-23  Bruno Haible  <bruno@clisp.org>
13568
13569         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
13570         condition was already detected.
13571         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13572
13573 2006-04-23  Bruno Haible  <bruno@clisp.org>
13574
13575         * lib/copy-file.c: Include <unistd.h> unconditionally.
13576         * lib/execute.c: Likewise.
13577         * lib/fatal-signal.c: Likewise.
13578         * lib/findprog.c: Likewise.
13579         * lib/mkdtemp.c: Likewise.
13580         * lib/pipe.h: Likewise.
13581         * lib/pipe.c: Likewise.
13582         * lib/wait-process.h: Likewise.
13583
13584 2006-04-23  Bruno Haible  <bruno@clisp.org>
13585
13586         * gnulib-tool (func_usage): Fix --import description. Document
13587         --update.
13588         (func_import): Create temporary file in a temporary directory, if
13589         --dry-run is specified. Silence errors from 'grep' when there are no
13590         m4 files in $m4dir.
13591         (func_create_testdir): Silence errors from 'grep' when there are no
13592         m4 files in $m4dir.
13593         Reported by Karl Berry <karl@freefriends.org>.
13594
13595 2006-04-20  Bruno Haible  <bruno@clisp.org>
13596
13597         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
13598         one argument, so that the code will be portable to Autoconf 2.60.
13599         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
13600         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13601         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
13602
13603 2006-04-19  Derek Price  <derek@ximbiot.com>
13604             Eric Blake  <ebb9@byu.net>
13605
13606         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
13607         rather than "/full/path.h".  Update comment to match.  Shorten &
13608         generalize m4_translit call via AS_TR_CPP.
13609
13610 2006-04-19  Derek Price  <derek@ximbiot.com>
13611             Eric Blake  <ebb9@byu.net>
13612
13613         * lib/inttypes.h: Correct grammar in comment.
13614
13615 2006-04-18  Derek Price  <derek@ximbiot.com>
13616             Paul Eggert  <eggert@cs.ucla.edu>
13617
13618         * modules/inttypes: New file.
13619         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
13620
13621 2006-04-18  Derek Price  <derek@ximbiot.com>
13622             Paul Eggert  <eggert@cs.ucla.edu>
13623
13624         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
13625         New files.
13626
13627 2006-04-18  Derek Price  <derek@ximbiot.com>
13628             Paul Eggert  <eggert@cs.ucla.edu>
13629
13630         * lib/inttypes.h: New file.
13631         * lib/strtoimax.c: Assume <inttypes.h>.
13632
13633 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
13634
13635         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
13636         isn't mounted.  Problem reported by Kir Kolyshkin.
13637
13638 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13639
13640         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
13641         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
13642         Derek R. Price.
13643         * lib/regex.h (RE_DUP_MAX): Update comment to match current
13644         implementation.
13645
13646 2006-04-12  Eric Blake  <ebb9@byu.net>
13647
13648         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
13649         is now done automatically by the corresponding Autoconf macro.
13650
13651 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
13652
13653         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
13654         time_r.h.
13655
13656 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13657
13658         Merge regex changes from libc, removing some of our
13659         POSIX-conformance changes that were rejected and redoing them in a
13660         less-intrusive way.
13661
13662         * lib/regcomp.c (re_compile_internal, init_dfa):
13663         Length arg is now size_t, not Idx.  All uses changed.
13664         (peek_token): Forward decl now says internal_function.
13665         (__re_error_msgid, __re_error_msgid_idx):
13666         Now static rather than extern with attribute_hidden.
13667         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
13668         For some reason libc prefers K&R style defns for external functions.
13669         (regerror) [!defined _LIBC]: Likewise.
13670         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
13671         (seek_collating_symbol_entry, lookup_collation_sequence_value):
13672         (build_range_exp, build_collating_symbol):
13673         Use K&R-style defn.
13674         (re_compile_fastmap): Use '\0' to memset, not 0.
13675         (utf8_sb_map): Make the calculations more obvious.
13676         (init_dfa, parse_bracket_exp, build_charclass_op):
13677         Call calloc and cast result, as glibc does.
13678         (init_word_char, fetch_token, peek_token, peek_token_bracket):
13679         (build_range_exp, build_collating_symbol):
13680         Now internal functions.
13681
13682         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
13683
13684         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
13685         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
13686         Don't depend on VMS; depend on __VMS instead, for POSIX
13687         namespace cleanness.
13688         (regoff_t): Define to ssize_t, not long int.
13689
13690         Remove the REG_ macros named below.  Instead, make the old names
13691         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
13692         __USE_GNU_REGEX.
13693         (REG_BACKSLASH_ESCAPE_IN_LISTS):
13694         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
13695         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
13696         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
13697         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
13698         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
13699         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
13700         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
13701         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
13702         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
13703         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
13704         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
13705         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
13706         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
13707         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
13708         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
13709         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
13710         (REG_NREGS):
13711         Remove.  All uses replaced by the old RE_* names.
13712         (RE_BACKSLASH_ESCAPE_IN_LISTS):
13713         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
13714         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
13715         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
13716         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
13717         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
13718         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
13719         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
13720         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
13721         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
13722         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
13723         Don't bother having these macros be independent of each others'
13724         values, since they no longer exist in the POSIX name space.
13725
13726         Rename the following member names back to their old names,
13727         unless !__USE_GNU_REGEX.  All uses changed back.
13728         (buffer): Renamed from re_buffer.
13729         (allocated): Renamed from re_allocated.
13730         (used): Renamed from re_used.
13731         (syntax): Renamed from re_syntax.
13732         (fastmap): Renamed from re_fastmap.
13733         (translate): Renamed from re_translate.
13734         (can_be_null): Renamed from re_can_be_null.
13735         (regs_allocated): Renamed from re_regs_allocated.
13736         (fastmap_accurate): Renamed from re_fastmap_accurate.
13737         (no_sub): Renamed from re_no_sub.
13738         (not_bol): Renamed from re_not_bol.
13739         (not_eol): Renamed from re_not_eol.
13740         (newline_anchor): Renamed from re_newline_anchor.
13741         (num_regs): Renamed from rm_num_regs.
13742         (start): Renamed from rm_start.
13743         (end): Renamed from rm_end.
13744
13745         (free_state): Move up a bit.
13746
13747         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
13748         #define to be empty.
13749         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
13750         when that is what is intended.
13751         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
13752         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
13753         (MAX): New macro.
13754         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
13755         All uses changed back to re_malloc, etc.  It's now the caller's
13756         responsibility to check for overflow; all callers changed.
13757         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
13758         (re_x2nrealloc): Remove.
13759         (free_state): Remove decl.
13760
13761         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
13762         (re_set_registers, re_exec):
13763         Use K&R-style defn.
13764
13765         2006-01-31  Roland McGrath  <roland@redhat.com>
13766
13767         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
13768         Reported by Mike Frysinger <vapier@gentoo.org>.
13769
13770         2006-01-15  Andreas Jaeger  <aj@suse.de>
13771
13772         [BZ #1950]
13773         * lib/regex_internal.c (re_string_reconstruct): Adjust for
13774         build_wcs_upper_buffer change.
13775         (build_wcs_upper_buffer): Change return type.
13776
13777         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
13778
13779         * lib/regex_internal.h: Include <stdint.h> if available.
13780
13781         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
13782
13783         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
13784
13785         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
13786
13787         * lib/regcomp.c: Adjust for changed secondary hash function.
13788
13789         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
13790
13791         * lib/regex.h: Pretty printing.
13792         Clean up namespace a bit.
13793
13794         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
13795
13796         * lib/regexec.c (update_cur_sifted_state, check_arrival,
13797         check_arrival_add_next_nodes): Avoid using uninitialized variable.
13798
13799         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
13800                     Ulrich Drepper  <drepper@redhat.com>
13801
13802         [BZ #1302]
13803         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
13804         changed.
13805         (bitset_word_t): Renamed from bitset_word.  All uses changed.
13806
13807         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
13808
13809         [BZ #281]
13810         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
13811         * lib/regcomp.c: Remove unnecessary uses of
13812         unsigned RE_TRANSLATE_TYPE.
13813         * lib/regex_internal.h: Likewise.
13814         * lib/regex_internal.c: Likewise.
13815         * lib/regexec.c: Likewise.
13816         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
13817
13818         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
13819
13820         * lib/regexec.c (find_recover_state): Remove unnecessary
13821         initialization.
13822         (transit_state_bkref): Make DFA a const pointer.
13823         (get_subexp): Likewise.
13824         (check_arrival): Likewise.
13825         (update_cur_sifted_state): Likewise.
13826         (re_search_internal): Likewise.
13827         (prune_impossible_nodes): Likewise.
13828         (acquire_init_state_context): Likewise.
13829         (proceed_next_node): Likewise.
13830         (set_regs): Likewise.
13831         (free_fail_stack_return): Likewise.
13832         (check_arrival_expand_ecl): Mark DFA parameter as const.
13833         (check_arrival_expand_ecl_sub): Likewise.
13834         (check_subexp_limits): Likewise.
13835         (sub_epsilon_src_nodes):  Likewise.
13836         (add_epsilon_src_nodes):  Likewise.
13837         (merge_state_array): Likewise.
13838         (update_regs): Likewise.
13839         (build_trtable): Likewise.
13840         (sift_states_backward): Mark MCTX parameter as const.
13841         (build_sifted_states): Likewise.
13842         (update_cur_sifted_state): Likewise.
13843         (sift_states_mkref): Likewise.
13844         (check_arrival_expand_ecl): Mark eclosure as const.
13845         (check_dst_limits_calc_pos_1): Likewise.
13846         * lib/regex_internal.h (re_match_context_t): Make dfa a const
13847         pointer.
13848
13849         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
13850
13851         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
13852         (transit_state_sb): Likewise.
13853         (transit_state_mb): Likewise.
13854         (sift_states_iter_mb): Likewise.
13855         (check_arrival_add_next_nodes): Likewise.
13856         (check_node_accept_bytes): Change first parameter to pointer-to-const.
13857         [_LIBC] (re_search_2_stub): Use mempcpy.
13858
13859         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
13860         mbrtowc for very simple UTF-8 case.
13861
13862         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
13863         a pointer-to-const.
13864         (re_acquire_state_context): Likewise.
13865         * lib/regex_internal.h: Adjust prototypes.
13866
13867         * lib/regex.c: Prevent using C++ compilers.
13868
13869         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
13870         (re_acquire_state_context): Likewise.
13871
13872 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13873
13874         * modules/regex (Depends-on): Add ssize_t.
13875
13876 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13877
13878         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
13879         translation table.
13880
13881 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13882
13883         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
13884
13885 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
13886             Bruno Haible  <bruno@clisp.org>
13887
13888         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
13889         <sys/types.h> and <inttypes.h>.
13890
13891 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13892
13893         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
13894         `__error_t_defined', so argp.h will not typedef the former.
13895
13896 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13897
13898         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
13899         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
13900         glibc names.  Even if glibc is changed to conform to POSIX, the
13901         traditional names will be available anyway, since regex depends on
13902         the extensions module.  Also, fix a longstanding typo in the
13903         implementation of Spencer ERE test #75 from grep 2.3.  Problems
13904         reported by Emanuele Giaquinta.  Also, change sense of cached
13905         variable, so that the message makes sense.
13906
13907 2006-03-24  Simon Josefsson  <jas@extundo.com>
13908
13909         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
13910         including some doc fixes.
13911         (base64_encode_alloc): Fix +1 bug on allocation failures.
13912
13913 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13914
13915         * lib/base64.c (base64_encode): Do not read past end of array with
13916         unsanitized input on systems with CHAR_BIT > 8.
13917
13918 2006-03-24  Eric Blake  <ebb9@byu.net>
13919
13920         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
13921
13922 2006-03-22  Karl Berry  <karl@gnu.org>
13923
13924         * config/srclist.txt (*setenv.[ch]): get from coreutils.
13925         * config/srclistvars.sh (COREUTILS): new var.
13926
13927 2006-03-17  Jim Meyering  <jim@meyering.net>
13928
13929         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
13930         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
13931
13932 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
13935         no longer needs it.  Instead, check that regoff_t is as least
13936         as wide as ptrdiff_t.
13937
13938         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
13939         so that our regex.h stays compatible with the installed regex.
13940         This is helpful for installers who configure --without-included-regex.
13941         Problem reported by Emanuele Giaquinta.
13942
13943 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
13944
13945         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
13946         Typedef to long int, not to off_, as POSIX will likely change
13947         in that direction.
13948
13949 2006-03-15  Eric Blake  <ebb9@byu.net>
13950
13951         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
13952
13953 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
13954
13955         * lib/argp-help.c (validate_uparams): Fix typo
13956         * lib/argp-parse.c (argp_default_options): Consistently begin help
13957         messages with a lowercase letter.
13958
13959 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
13960
13961         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
13962         overrun buffers and shouldn't be used (much as gets shouldn't be
13963         used).
13964         * lib/time_r.c (asctime_r, ctime_r): Likewise.
13965
13966 2006-03-08  Simon Josefsson  <jas@extundo.com>
13967
13968         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
13969         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13970
13971 2006-03-08  Simon Josefsson  <jas@extundo.com>
13972
13973         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
13974         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13975
13976 2006-03-08  Simon Josefsson  <jas@extundo.com>
13977
13978         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
13979         signal that configure disabled the device.
13980
13981 2006-03-08  Simon Josefsson  <jas@extundo.com>
13982
13983         * build-aux/maint.mk: Fix refresh-po, to handle no translated
13984         languages.
13985
13986 2006-03-07  Simon Josefsson  <jas@extundo.com>
13987
13988         * modules/getopt (Depends-on): Add unistd.
13989
13990         * modules/unistd: New file.
13991
13992 2006-03-07  Simon Josefsson  <jas@extundo.com>
13993
13994         * modules/gc-random: New file.
13995
13996 2006-03-07  Simon Josefsson  <jas@extundo.com>
13997
13998         * m4/unistd_h.m4: New file.
13999
14000 2006-03-07  Simon Josefsson  <jas@extundo.com>
14001
14002         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
14003         test to be side-effect free by storing the result in the cache
14004         variable gl_cv_lib_readline, and moving the assignment of
14005         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
14006         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14007
14008 2006-03-07  Simon Josefsson  <jas@extundo.com>
14009
14010         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
14011         error on missing devices (the functions will return an error).
14012
14013         * m4/gc.m4: Move random stuff to gc-random.m4
14014
14015 2006-03-07  Simon Josefsson  <jas@extundo.com>
14016
14017         * lib/unistd_.h: New file.
14018
14019 2006-03-07  Simon Josefsson  <jas@extundo.com>
14020
14021         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
14022
14023 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14024
14025         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
14026         Problem reported by Juan Manuel Guerrero.
14027
14028 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14029
14030         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
14031         the unistd module.
14032         * lib/getlogin_r.c: Likewise.
14033         * lib/getlogin_r.h: Likewise.
14034         * lib/glob.c: Likewise.
14035         * lib/pagealign_alloc.c: Likewise.
14036         * lib/unistd_.h: Remove; no longer needed.
14037
14038 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14039
14040         * MODULES.html.sh (Support for systems lacking POSIX:2001):
14041         Add unistd.
14042         * modules/c-stack (Depends-on): Add unistd.
14043         * modules/getlogin_r: Likewise.
14044         * modules/glob: Likewise.
14045         * modules/pagealign_alloc: Likewise.
14046         * modules/unistd (Files): Remove lib/unistd_.h.
14047         (EXTRA_DIST): Remove.
14048         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
14049         need unistd_.h.
14050         (MOSTLYCLEANFILES): Remove unistd.h-t.
14051
14052 2006-03-03  Simon Josefsson  <jas@extundo.com>
14053
14054         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
14055
14056 2006-03-03  Simon Josefsson  <jas@extundo.com>
14057
14058         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
14059         libidn and bison.
14060
14061 2006-03-03  Simon Josefsson  <jas@extundo.com>
14062
14063         * build-aux/maint.mk: Add indent target.
14064
14065 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
14066
14067         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
14068         our replacement poll.h in any case, to avoid a differing
14069         declaration from a system header.  Seen on AIX.
14070
14071 2006-03-01  Simon Josefsson  <jas@extundo.com>
14072
14073         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
14074         <kasal@ucw.cz>.
14075
14076 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14077
14078         * modules/gettime (Depends-on): Add extensions module.
14079         * modules/nanosleep (Depends-on): Likewise.
14080         * modules/settime (Depends-on): Likewise.
14081
14082 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14083
14084         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
14085         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
14086         pedantically.
14087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14088         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
14089
14090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
14091         not "==".  Reported by Ralf Wildenhues.
14092
14093 2006-03-01  Karl Berry  <karl@gnu.org>
14094
14095         * doc/Copyright/request-*: new files, synced from gnuorg.
14096
14097 2006-03-01  Karl Berry  <karl@gnu.org>
14098
14099         * config/srclist.txt (Copyright/*): new entries.
14100
14101 2006-02-28  Simon Josefsson  <jas@extundo.com>
14102
14103         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
14104
14105 2006-02-27  Simon Josefsson  <jas@extundo.com>
14106
14107         * lib/base64.h: Indent #define's.  From Jim Meyering
14108         <jim@meyering.net>.
14109
14110 2006-02-27  Jim Meyering  <jim@meyering.net>
14111
14112         Revert the change of 2006-02-24, so these files can continue
14113         to be sync'd from gettext.
14114         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
14115         of `config.h'.
14116
14117 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14118
14119         * modules/intprops: New file.
14120         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14121         Add intprops.
14122         * modules/getloadavg (Files): Remove lib/intprops.h.
14123         (Depends-on): Add intprops.
14124         * modules/human: Likewise.
14125         * modules/inttostr: Likewise.
14126         * modules/openat: Likewise.
14127         * modules/sig2str: Likewise.
14128         * modules/userspec: Likewise.
14129         * modules/utimecmp: Likewise.
14130         * modules/xnanosleep: Likewise.
14131         * modules/xstrtol: Likewise.
14132
14133 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
14134
14135         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
14136         * modules/lock-tests (TESTS): Use $(EXEEXT).
14137         * modules/tls-tests: Likewise.
14138         * modules/argp-tests: Likewise.
14139         (check_PROGRAMS): New var, replacing...
14140         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
14141
14142 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14143
14144         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
14145         `config.h'.
14146
14147 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14148
14149         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
14150
14151 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14152
14153         Sync from coreutils.
14154         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
14155         gl_CHDIR_SAFER.
14156
14157 2006-02-22  Jim Meyering  <jim@meyering.net>
14158
14159         Sync from coreutils.
14160         * m4/chdir-safer.m4: New file.
14161
14162 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14163
14164         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
14165         AT_FDCWD exceeds INT_MAX.
14166         * lib/openat.h (AT_FDCWD): Likewise.
14167
14168 2006-02-17  Eric Blake  <address@hidden>
14169
14170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
14171
14172 2006-02-16  Simon Josefsson  <jas@extundo.com>
14173
14174         * modules/getaddrinfo (Depends-on): Add sys_socket.
14175
14176 2006-02-15  Simon Josefsson  <jas@extundo.com>
14177
14178         * build-aux/maint.mk: Add dsyntax-check rule.
14179
14180 2006-02-15  Eric Blake  <ebb9@byu.net>
14181
14182         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
14183         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
14184         'present but cannot compile' warnings on cygwin.
14185         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
14186         use ws2tcpip.h if sys/socket.h works.
14187         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
14188         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
14189
14190 2006-02-14  Simon Josefsson  <jas@extundo.com>
14191
14192         * modules/maintainer-makefile (Files): Rename.
14193
14194         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
14195         and (the local) Makefile.cfg to maint-cfg.mk.
14196
14197         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
14198         to the latter.
14199
14200         * modules/maintainer-makefile: New module.
14201
14202         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
14203         severaly stripped to make it possible to build it up from scratch
14204         with reliable tests.
14205
14206         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
14207         fixes to permit overriding the default actions when configure and
14208         makefile are not available.
14209
14210 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14211
14212         Sync from coreutils.
14213         * modules/lstat (Depends-on): Don't depend on xalloc.
14214         (License): Change from GPL to LGPL, since this is now simply a
14215         replacement for a libc function.
14216
14217 2006-02-14  Jim Meyering  <jim@meyering.net>
14218
14219         Sync from coreutils.
14220
14221         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
14222         failure on deficient systems, and simplify gnulib lgpl dependencies.
14223         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
14224         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
14225
14226         * lib/xalloc-die.c: Remove unused definition of N_.
14227
14228 2006-02-14  Jim Meyering  <jim@meyering.net>
14229
14230         Sync from coreutils.
14231         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
14232         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
14233         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
14234         double-quote uses of that variable, to accommodate the rare case in
14235         which getmntent is available in none of the libraries checked.  This
14236         happens at least on FreeBSD 5.0.
14237
14238 2006-02-13  Simon Josefsson  <jas@extundo.com>
14239
14240         * gnulib-tool (Usage): Fix --import, from
14241         karl@freefriends.org (Karl Berry).
14242
14243 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
14244
14245         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
14246
14247 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
14248
14249         * lib/argp-namefrob.h: Restore changes accidentally lost during the
14250         "autoupdate" on 2005-12-12.
14251
14252 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14253
14254         * modules/closeout (Depends-on): Remove atexit.
14255
14256 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14257
14258         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
14259         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
14260
14261 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14262
14263         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
14264         __EXTENSIONS__ if this causes compilation to fail.  Problem
14265         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
14266         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
14267
14268 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
14269
14270         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
14271         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
14272         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
14273         All uses changed.
14274
14275 2006-01-26  Simon Josefsson  <jas@extundo.com>
14276
14277         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
14278         prototype is visible on mingw32.
14279
14280         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
14281         for mingw32.
14282
14283         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
14284         mingw32).
14285
14286 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
14287
14288         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
14289         attempt to open for write; this always fails, at least on POSIX
14290         hosts.  This reinstates the 2006-01-09 change, which was
14291         inadvertently removed.
14292
14293 2006-01-26  Bruno Haible  <bruno@clisp.org>
14294
14295         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
14296         Reported by Paul Eggert.
14297
14298 2006-01-26  Bruno Haible  <bruno@clisp.org>
14299             Paul Eggert  <eggert@cs.ucla.edu>
14300
14301         * lib/stdbool_.h (_Bool)
14302         [(! (defined __cplusplus || defined __BEOS__)
14303           && !defined __GNUC__
14304           && !(defined __HP_cc || defined __xlc__
14305                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
14306                || defined __sgi))]:
14307         #define to signed char in these cases too; this simplifies
14308         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
14309         etc., separately) and makes it more conservative.
14310
14311 2006-01-25  Simon Josefsson  <jas@extundo.com>
14312
14313         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
14314         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
14315         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
14316
14317 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14318
14319         * lib/argp-namefrob.h: Bugfix. Remove stray #
14320
14321 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
14322
14323         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
14324         so that we test the test.
14325         Check for yet another HP-UX cc bug involving *bool |= bool.
14326
14327 2006-01-25  Karl Berry  <karl@gnu.org>
14328
14329         * config/srclist.txt (vasnprintf.c): sync lost.
14330
14331 2006-01-25  Jim Meyering  <jim@meyering.net>
14332
14333         Sync from the stable (b5) branch of coreutils:
14334
14335         * lib/fts.c (fts_children): Don't let close() clobber errno from
14336         failed fchdir().
14337
14338         * lib/fts.c (fts_stat): When following a symlink-to-directory,
14339         don't necessarily interpret stat-fails+lstat-succeeds as indicating
14340         a dangling symlink.  That can also happen at least for ELOOP.
14341         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
14342         FYI, this bug predates the inclusion of fts.c in coreutils.
14343
14344         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
14345         in their own block, so pre-c99 compilers don't object.
14346
14347         Avoid the double-free (first in fts_read, second in fts_close) that
14348         would occur when an `active' directory is made inaccessible (e.g.,
14349         via chmod a-x) during a traversal.
14350         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14351         before returning.  Reproduce this failure by
14352         mkdir -p a/b; cd a; chmod a-x . b
14353         Reported by Stavros Passas.
14354
14355 2006-01-25  Jim Meyering  <jim@meyering.net>
14356
14357         * lib/fileblocks.c: Remove more useless parentheses.
14358         * lib/readutmp.h: Likewise.
14359
14360 2006-01-25  Bruno Haible  <bruno@clisp.org>
14361
14362         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
14363         warnings.
14364         Reported by Paul Eggert.
14365
14366 2006-01-25  Bruno Haible  <bruno@clisp.org>
14367
14368         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
14369         rid of a trap command. For Solaris sh.
14370         Reported by Mark D. Baushke <mdb@gnu.org>.
14371
14372 2006-01-24  Simon Josefsson  <jas@extundo.com>
14373
14374         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
14375         Bruno.
14376
14377 2006-01-24  Karl Berry  <karl@gnu.org>
14378
14379         * config/srclist.txt (argp-namefrob.h): sync lost.
14380
14381 2006-01-24  Jim Meyering  <jim@meyering.net>
14382
14383         * modules/openat (Files): Add lib/intprops.h.
14384         From Mark D. Baushke.
14385
14386 2006-01-24  Jim Meyering  <jim@meyering.net>
14387
14388         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
14389         Reported by Mark D. Baushke.
14390
14391 2006-01-24  Jim Meyering  <jim@meyering.net>
14392
14393         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
14394
14395 2006-01-24  Bruno Haible  <bruno@clisp.org>
14396
14397         * modules/strnlen (Maintainer): Change from glibc to all.
14398
14399 2006-01-24  Bruno Haible  <bruno@clisp.org>
14400
14401         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
14402         Patch by Paul Eggert.
14403
14404 2006-01-24  Bruno Haible  <bruno@clisp.org>
14405
14406         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
14407         already has it.
14408         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
14409         2005-11-26.
14410
14411         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
14412         'signed char' to avoid problems with the built-in _Bool type.
14413         Reported by Paul Eggert on 2005-11-26.
14414
14415 2006-01-24  Bruno Haible  <bruno@clisp.org>
14416
14417         * gnulib-tool (func_import): Avoid constructing complicated sed
14418         expressions inside backquote.
14419         Report and solution by Mark D. Baushke <mdb@gnu.org>.
14420
14421 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
14422
14423         These changes imported from libc.
14424         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
14425         test and two separate function calls.
14426         * lib/strndup.c (__strndup): Add libc_hidden_def.
14427
14428 2006-01-23  Simon Josefsson  <jas@extundo.com>
14429
14430         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
14431         Remove the test_*_SOURCES variable: automake infers it by default.
14432         * modules/tls-tests: Likewise.
14433
14434 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14435
14436         Work around porting bugs reported by Dieter in
14437         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
14438         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
14439         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
14440         Include "getopt.h" first, to check interface.
14441         (getenv): Declare only if defined HAVE_DECL_GETENV &&
14442         !HAVE_DECL_GETENV.
14443         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
14444         (__strndup): Revert to K&R-style function dfns, the glibc style.
14445         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
14446         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
14447         Include strnlen.h first, to get prototype properly.
14448         (strnlen): Renamed from __strnlen.
14449         Remove weak alias.
14450
14451 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14452
14453         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
14454
14455 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14456
14457         * config/srclist.txt: Adjust to reflect glibc reorganization.
14458         This affects only comments.
14459
14460 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
14461
14462          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
14463          Reported by Bruce Korb <bkorb@gnu.org>.
14464
14465 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14466
14467         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
14468         to pacify gcc -Wswitch-default.
14469
14470 2006-01-22  Bruno Haible  <bruno@clisp.org>
14471
14472         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
14473         temporary buffer for sprintf, take into account the precision also
14474         for 'd', 'i', 'u', 'o', 'x', 'X'.
14475
14476 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14477
14478         * modules/argp-tests: New module
14479         * tests/test-argp.c: New file
14480         * tests/test-argp-2.sh: New file
14481
14482 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14483
14484         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
14485         (__argp_base_name): Removed
14486         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
14487         typo.
14488         (__argp_base_name): Provide macro definition or extern declaration
14489         depending on the configuration
14490
14491 2006-01-20  Simon Josefsson  <jas@extundo.com>
14492
14493         * modules/inet_ntop (Depends-on): Depend on sys_socket.
14494
14495 2006-01-20  Simon Josefsson  <jas@extundo.com>
14496
14497         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
14498
14499 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14500
14501         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
14502         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
14503         Suggested by Bruno Haible.
14504
14505 2006-01-20  Karl Berry  <karl@gnu.org>
14506
14507         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
14508         until changes propagate, I guess.
14509
14510 2006-01-19  Simon Josefsson  <jas@extundo.com>
14511
14512         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
14513
14514 2006-01-19  Simon Josefsson  <jas@extundo.com>
14515
14516         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
14517
14518 2006-01-19  Simon Josefsson  <jas@extundo.com>
14519
14520         * gnulib-tool: Set check_PROGRAMS.
14521
14522         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14523         modules/des-tests, modules/gc-arcfour-tests,
14524         modules/gc-arctwo-tests, modules/gc-des-tests,
14525         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14526         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14527         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14528         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14529         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14530         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
14531         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
14532         test_*_SOURCES.
14533
14534 2006-01-18  Simon Josefsson  <jas@extundo.com>
14535
14536         * modules/socklen (Depends-on): Depend on sys_socket.
14537
14538 2006-01-18  Simon Josefsson  <jas@extundo.com>
14539
14540         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14541         modules/des-tests, modules/gc-arcfour-tests,
14542         modules/gc-arctwo-tests, modules/gc-des-tests,
14543         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14544         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14545         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14546         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14547         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14548         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
14549         $(EXEEXT) to automake TESTS variable, for mingw32.
14550
14551 2006-01-17  Simon Josefsson  <jas@extundo.com>
14552
14553         * modules/socklen (Include): Need sys/socket.h.
14554
14555 2006-01-17  Bruno Haible  <bruno@clisp.org>
14556
14557         * modules/ssize_t (Include): Add <sys/types.h>.
14558
14559 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14560
14561         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
14562         it's not portable and it doesn't work with cross-compiles.
14563         Problem reported by Bruno Haible.  Fix missing-$ typo in
14564         'test "gl_cv_ignore_unused_libraries" ...' that prevented
14565         -zignore from being used with Sun's C compiler.
14566
14567 2006-01-12  Simon Josefsson  <jas@extundo.com>
14568
14569         * lib/base64.c: Fix warning, reported by Bruno Haible
14570         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
14571
14572 2006-01-12  Bruno Haible  <bruno@clisp.org>
14573
14574         * modules/ldd: New file.
14575         * build-aux/ldd.sh.in: New file.
14576         * MODULES.html.sh (Support for building libraries and executables): Add
14577         ldd.
14578
14579 2006-01-12  Bruno Haible  <bruno@clisp.org>
14580
14581         * m4/ldd.m4: New file.
14582
14583 2006-01-12  Bruno Haible  <bruno@clisp.org>
14584
14585         * gnulib-tool (func_import, func_create_testdir): Don't go into an
14586         endless loop while replacing $auxdir with build-aux.
14587
14588 2006-01-11  Simon Josefsson  <jas@extundo.com>
14589
14590         * lib/stdint_.h (SIZE_MAX): Add missing (.
14591
14592 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14593
14594         Sync from coreutils.
14595         * lib/md5.c: Fix commentary typos.
14596         (alignof, UNALIGNED_P): No need for a GCC-specific version.
14597         * lib/md5.h (__attribute__): Remove; unused.
14598         * lib/sha1.c: Fix commentary to match md5 better.
14599         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
14600         so that we don't need to worry about alignment.  All uses changed.
14601         This merges the 2005-10-28 md5 change into sha1.
14602
14603 2006-01-11  Jim Meyering  <jim@meyering.net>
14604
14605         Sync from coreutils.
14606         * lib/md5.c (OP): Fix spacing.
14607
14608 2006-01-11  Bruno Haible  <bruno@clisp.org>
14609
14610         Ensure automatic ordering between gl_LOCK and gl_ARGP.
14611         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
14612         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
14613
14614 2006-01-11  Bruno Haible  <bruno@clisp.org>
14615
14616         Ensure automatic ordering between gl_LOCK and gl_ARGP.
14617         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
14618         the "early" section as well.
14619
14620 2006-01-11  Bruno Haible  <bruno@clisp.org>
14621
14622         Avoid "ar: no archive members specified" error on MacOS X.
14623         * gnulib-tool (func_modules_add_dummy): New function.
14624         (func_import, func_create_testdir): Invoke it.
14625
14626 2006-01-11  Bruno Haible  <bruno@clisp.org>
14627
14628         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
14629         with $auxdir in AC_CONFIG_FILES statements.
14630
14631 2006-01-11  Bruno Haible  <bruno@clisp.org>
14632
14633         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14634         Initialize also noinst_HEADERS to empty.
14635
14636 2006-01-11  Bruno Haible  <bruno@clisp.org>
14637
14638         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
14639         variables.
14640         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
14641         autoreconf.
14642
14643 2006-01-11  Bruno Haible  <bruno@clisp.org>
14644
14645         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
14646         overridable by the user.
14647         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14648
14649 2006-01-10  Simon Josefsson  <jas@extundo.com>
14650
14651         * modules/sys_socket: New file.
14652
14653 2006-01-10  Simon Josefsson  <jas@extundo.com>
14654
14655         * m4/sys_socket_h.m4: New file.
14656
14657 2006-01-10  Simon Josefsson  <jas@extundo.com>
14658
14659         * lib/socket_.h: New file.
14660
14661 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14662
14663         * modules/readutmp (Maintainer): Add myself.
14664
14665 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14666
14667         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
14668         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
14669         People who are still concerned with buggy memcmp implementations
14670         can invoke gl_FUNC_MEMCMP themselves.
14671
14672 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14673
14674         * lib/regex_internal.h (BITSET_WORD_BITS):
14675         Work around a bug in 64-bit PGC (before version 6.1-2), where the
14676         preprocessor mishandles large unsigned values as if they were signed.
14677         Problem reported by Claudio Fontana in
14678         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
14679
14680 2006-01-10  Jim Meyering  <jim@meyering.net>
14681
14682         Avoid the double-free (first in fts_read, second in fts_close) that
14683         would occur when an `active' directory is made inaccessible (e.g.,
14684         via chmod a-x) during a traversal.
14685         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14686         before returning.  Reproduce this failure by
14687         mkdir -p a/b; cd a; chmod a-x . b
14688         Reported by Stavros Passas.
14689
14690         Sync from coreutils.
14691         * lib/sha1.c: Tweak grammar in a comment.
14692
14693 2006-01-10  Jim Meyering  <jim@meyering.net>
14694
14695         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
14696         Patch by Joerg Sonnenberger.
14697
14698 2006-01-10  Bruno Haible  <bruno@clisp.org>
14699
14700         * modules/readutmp: Depend on module free.
14701         * modules/strtok_r: Depend on module restrict.
14702
14703 2006-01-10  Bruno Haible  <bruno@clisp.org>
14704
14705         * modules/gettext (configure.ac): Add an invocation of
14706         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
14707
14708 2006-01-10  Bruno Haible  <bruno@clisp.org>
14709
14710         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
14711         Reported by Werner Lemberg <wl@gnu.org>.
14712
14713 2006-01-10  Bruno Haible  <bruno@clisp.org>
14714
14715         * lib/localcharset.c: Update from GNU gettext.
14716
14717 2006-01-10  Bruno Haible  <bruno@clisp.org>
14718
14719         * lib/argp.h (__const): Remove macro. Use const instead.
14720         * lib/argp-fmtstream.h (__const): Likewise.
14721         * lib/glob_.h (__const): Remove macro.
14722         * lib/glob-libc.h: Use const instead of __const.
14723
14724 2006-01-10  Bruno Haible  <bruno@clisp.org>
14725
14726         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
14727         variable.
14728         Needed to avoid an automake error regarding the 'gettext' module.
14729
14730 2006-01-09  Simon Josefsson  <jas@extundo.com>
14731
14732         * modules/inet_ntop (Depends-on): Add restrict.
14733
14734 2006-01-09  Simon Josefsson  <jas@extundo.com>
14735
14736         * modules/gc-rijndael-tests (License): Put under LGPL.
14737
14738         * modules/gc-des-tests (License): Likewise.
14739
14740         * modules/gc-arcfour-tests (License): Likewise.
14741
14742         * modules/gc-arctwo-tests (License): Likewise.
14743
14744         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
14745
14746         * modules/gc-hmac-sha1-tests (Files): Likewise.
14747
14748         * modules/gc-hmac-md5-tests (License): Likewise.
14749
14750         * modules/gc-sha1-tests (License): Likewise.
14751
14752         * modules/gc-md5-tests (License): Likewise.
14753
14754         * modules/gc-md4-tests (License): Likewise.
14755
14756         * modules/gc-md2-tests (License): Likewise.
14757
14758         * modules/gc-tests (License): Likewise.
14759
14760         * modules/des-tests (License): Likewise.
14761
14762         * modules/md4-tests (License): Likewise.
14763
14764         * modules/md2-tests (License): Likewise.
14765
14766 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14767
14768         Sync from coreutils:
14769
14770         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
14771         * modules/lib-ignore: New file.
14772         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
14773         chdir-safer.m4, lchmod.m4.
14774         * modules/openat: Add mkdirat.c, openat-priv.h.
14775
14776 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14777
14778         Sync from coreutils.
14779         * m4/lib-ignore.m4: New file.
14780         * m4/lchmod.m4: New file.
14781
14782 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14783
14784         Sync from coreutils.
14785         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
14786         for write access: POSIX says that must fail.
14787         * lib/fts.c (diropen): Likewise.
14788         * lib/save-cwd.c (save_cwd): Likewise.
14789         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
14790         well, for minor improvements on hosts that lack O_DIRECTORY.
14791         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
14792         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
14793         Fall back on chown if open failed with EACCES.
14794
14795         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
14796         Report an error at compile-time if only a 1-second nominal clock
14797         resolution is found.
14798
14799         * lib/lchmod.h: New file.
14800         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
14801         (make_dir_parents): Use lchown rather than chown, and
14802         lchmod rather than chmod.
14803
14804         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
14805         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
14806         "proc" reported by n0dalus.
14807
14808         * lib/mountlist.c: Include <limits.h>.
14809         (dev_from_mount_options)
14810         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
14811         New function.  It no longer assumes "dev=" has the System V meaning
14812         on Linux (since it doesn't).  It also parses "dev=" more carefully.
14813         (read_file_system_list)
14814         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
14815         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
14816         dev= in that case.
14817
14818         * lib/posixtm.h (PDS_PRE_2000): New macro.
14819         * lib/posixtm.c (year): Arg is now syntax_bits rather than
14820         allow_century.  All usages changed.  Reject dates outside the range
14821         1969-1999 if PDS_PRE_2000 is used.
14822
14823 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14824
14825         Sync from coreutils.
14826         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
14827         (Time of day items): Mention the possibility of leap seconds.
14828         Problem reported by Dr. David Alan Gilbert.
14829
14830 2006-01-09  Jim Meyering  <jim@meyering.net>
14831
14832         Sync from coreutils.
14833
14834         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
14835
14836         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
14837
14838         * lib/modechange.c (mode_compile): Reject an invalid mode string
14839         that starts with an octal digit.  From Andreas Gruenbacher.
14840
14841         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
14842         and dup to open_safer and dup_safer, respectively.
14843         (openat_permissive): Fix typo in comment.
14844
14845         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
14846         "gettext.h"; either no longer needed or are guaranteed by openat.h.
14847         (_): Remove; no longer needed.
14848         (openat): Renamed from rpl_openat; no need for rpl_openat
14849         since openat.h renames openat for us.
14850         Replace most of the body with a call to openat_permissive,
14851         to avoid duplicate code.
14852         Port to (probably hypothetical) environments were mode_t is
14853         wider than int.
14854         (openat_permissive): Require mode arg, so that we can check
14855         types better.  Put it just after flags.  Change cwd failure
14856         indicator from pointer-to-bool to pointer-to-errno-value.
14857         All callers changed.
14858         Invoke openat_save_fail and/or openat_restore_fail if
14859         cwd_errno is null, so that openat can call us.
14860         (openat_permissive, fdopendir, fstatat, unlinkat):
14861         Simplify errno handling to avoid some duplicate code,
14862         as it's OK to set errno on success.
14863         * lib/openat.h: Revamp code so that function macros depend on
14864         __OPENAT_PREFIX only, not also on AT_FDCWD.
14865         (openat_ro): Remove.  Caller changed to use openat_permissive.
14866         (openat_permissive): Now a macro, if not a function.
14867         (openat_restore_fail, openat_save_fail): Now always functions,
14868         since mkdirat needs them even if __OPENAT_PREFIX is defined.
14869
14870         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
14871         and openat.c.
14872         * lib/mkdirat.c: Include openat-priv.h.
14873         Remove definitions of macros defined therein.
14874         * lib/openat.c: Likewise.
14875
14876         * lib/mkdirat.c (mkdirat): New file and function.
14877         * lib/openat.h (mkdirat): Declare.
14878
14879         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
14880
14881         * lib/openat.h (openat_permissive): Declare.
14882         (openat_ro): Define.
14883
14884         * lib/openat.c (EXPECTED_ERRNO): New macro.
14885         (openat_permissive): New function -- used in remove.c rewrite.
14886         (all functions): Set errno just before returning, only if there
14887         was an actual failure.
14888         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
14889
14890         Emulate openat-family functions using Linux's procfs, if possible.
14891         Idea and some code based on Ulrich Drepper's glibc changes.
14892
14893         * lib/openat.c: (BUILD_PROC_NAME): New macro.
14894         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
14895         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
14896         before falling back on save_cwd and restore_cwd.
14897         (fdopendir, fstatat, unlinkat): Likewise.
14898
14899         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
14900         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
14901
14902         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
14903         as second argument to va_arg.  Otherwise, some versions of gcc
14904         warn that `if this code is reached, the program will abort'.
14905
14906 2006-01-09  Jim Meyering  <jim@meyering.net>
14907
14908         Sync from coreutils.
14909         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
14910         Require openat-priv.h.
14911
14912 2006-01-09  Bruno Haible  <bruno@clisp.org>
14913
14914         * modules/strnlen (Include): Use strnlen.h.
14915
14916 2006-01-09  Bruno Haible  <bruno@clisp.org>
14917
14918         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
14919
14920 2006-01-09  Bruno Haible  <bruno@clisp.org>
14921
14922         * lib/sysexit_.h (EX_OK): New macro.
14923         Suggested by Martin Lambers <marlam@marlam.de>.
14924
14925 2006-01-09  Bruno Haible  <bruno@clisp.org>
14926
14927         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
14928         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
14929
14930 2006-01-09  Bruno Haible  <bruno@clisp.org>
14931
14932         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
14933         numbers.
14934
14935 2006-01-09  Bruno Haible  <bruno@clisp.org>
14936
14937         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
14938         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
14939         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
14940         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
14941
14942 2006-01-09  Bruno Haible  <bruno@clisp.org>
14943
14944         * build-aux/javacomp.sh.in: New file, moved from lib/.
14945         * modules/javacomp-script (Files): Update.
14946         (configure.ac): Add AC_CONFIG_FILES invocation.
14947         (EXTRA_DIST): Remove variable.
14948
14949         * build-aux/javaexec.sh.in: New file, moved from lib/.
14950         * modules/javaexec (Files): Update.
14951         (configure.ac): Add AC_CONFIG_FILES invocation.
14952         (EXTRA_DIST): Remove javaexec.sh.in.
14953
14954         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
14955         * modules/csharpcomp-script (Files): Update.
14956         (configure.ac): Add AC_CONFIG_FILES invocation.
14957         (EXTRA_DIST): Remove variable.
14958
14959         * build-aux/csharpexec.sh.in: New file, moved from lib/.
14960         * modules/csharpexec (Files): Update.
14961         (configure.ac): Add AC_CONFIG_FILES invocation.
14962         (EXTRA_DIST): Remove csharpexec.sh.in.
14963
14964 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
14965
14966         Sync from coreutils.
14967
14968         Add POSIX ACL support
14969         * lib/acl.h (copy_acl, set_acl): Add declarations.
14970         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
14971         systems other than Linux.
14972         (chmod_or_fchmod): New function: use fchmod when possible,
14973         and chmod otherwise.
14974         (file_has_acl): Add a POSIX ACL implementation, with a
14975         Linux-specific subcase.
14976         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
14977         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
14978         acls are unsupported.
14979         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
14980         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
14981         are unsupported.
14982
14983 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
14984
14985         Sync from coreutils.
14986         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
14987
14988 2006-01-07  Bruno Haible  <bruno@clisp.org>
14989
14990         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
14991         gl_EARLY.
14992
14993 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14994
14995         * lib/strftime.c (tzname): Don't declare if it is already #defined.
14996         Problem reported for Mingw by Mark Junker.
14997
14998 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14999
15000         * README: Gnulib normally doesn't generate a tarball.
15001
15002 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15003
15004         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
15005         long int, not int, for nanosecond counts, so that people who are
15006         used to POSIX struct timespec won't be surprised.  Reported by Jim
15007         Meyering.
15008
15009 2005-12-28  Bruno Haible  <bruno@clisp.org>
15010
15011         * build-aux/config.rpath: Update from GNU gettext.
15012
15013 2005-12-16  Jim Meyering  <jim@meyering.net>
15014
15015         * modules/fprintftime: New module.
15016         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
15017
15018 2005-12-16  Jim Meyering  <jim@meyering.net>
15019
15020         * m4/fprintftime.m4: New file.
15021
15022 2005-12-16  Jim Meyering  <jim@meyering.net>
15023
15024         * lib/fprintftime.c, lib/fprintftime.h: New files.
15025
15026 2005-12-15  Simon Josefsson  <jas@extundo.com>
15027
15028         * modules/socklen (configure.ac): Fix M4 macro name, to align with
15029         new m4/socklen.m4.
15030
15031 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15032
15033         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
15034         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
15035
15036 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15037
15038         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
15039         * lib/argp-help.c (fill_in_uparams): Check if the constructed
15040         struct uparams is valid. Fall back to the default values if it is
15041         not.
15042
15043 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15044
15045         * modules/argp (Files): Add argp-pin.c
15046         (Depends-on): dirname
15047         (lib_SOURCES): Add argp-pin.c
15048
15049 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15050
15051         * m4/argp.m4:  Check if program_invocation_name and
15052         program_invocation_short_name are declared and define appropriate
15053         macros if they are not.
15054
15055 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15056
15057         * lib/argp-help.c (__argp_base_name): New function
15058         (__argp_short_program_name): Rewrite using __argp_base_name
15059         * lib/argp-namefrob.h: Define program_invocation_name and
15060         program_invocation_short_name if requested
15061         (__argp_base_name): Add prototype
15062         * lib/argp-parse.c (argp_def): Use gettext wrappers
15063         (argp_default_parser): Use __argp_base_name
15064         * lib/argp-pin.c: New file. Defines program_invocation_name and
15065         program_invocation_short_name on systems that lack them.
15066
15067 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15068
15069         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
15070         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
15071         porting problem reported by Georg Schwarz in
15072         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
15073
15074 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15075
15076         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
15077         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
15078         porting problem reported by Georg Schwarz in
15079         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
15080
15081 2005-12-05  Bruno Haible  <bruno@clisp.org>
15082
15083         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
15084         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
15085         Reported by Mark Junker <mjscod@gmx.de>.
15086
15087 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
15088
15089         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
15090         Use implementation from Albert Chin, with some
15091         comments/corrections by Stepan Kasal and myself.
15092
15093 2005-12-02  Bruno Haible  <bruno@clisp.org>
15094
15095         * gnulib-tool (func_import): Accept GPLed build tool modules when
15096         --lgpl is given.
15097         * modules/csharpcomp-script: New file.
15098         * modules/csharpcomp: Depend on it.
15099         * modules/javacomp-script: New file.
15100         * modules/javacomp: Depend on it.
15101         Suggested by Simon Josefsson.
15102
15103 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15104
15105         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
15106         statement, to work around an HP-UX 10.20 compiler bug reported by
15107         Peter O'Gorman.
15108
15109 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15110
15111         * modules/savedir (Depends-on): Add openat.
15112
15113 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15114
15115         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
15116         (uintmax_t) [defined uintmax_t]: Do not declare.
15117         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
15118         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
15119         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
15120         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
15121         sake of portability to weird hosts that C allows (though we don't
15122         know of any practical examples).
15123
15124         * lib/savedir.h (fdsavedir): New decl.
15125         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
15126         contains most of the former guts of savedir.
15127         (savedir): Use savedirstream.
15128         Include "openat.h".
15129
15130 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15131
15132         * modules/obstack (Files): Add m4/ulonglong.m4.
15133         Problem reported by Davide Angelocola.
15134
15135 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15136
15137         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
15138         coreutils no longer futzes with rounding modes.
15139
15140 2005-11-14  Jim Meyering  <jim@meyering.net>
15141
15142         * lib/mkstemp-safer.c: Include <config.h>, required for possible
15143         replacement of mkstemp.
15144
15145 2005-11-10  Simon Josefsson  <jas@extundo.com>
15146
15147         * lib/readline.c: Remove EOL.
15148
15149 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15150
15151         * modules/gethrxtime (Depends-on): Add gettime.
15152
15153 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15154
15155         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
15156         or gettimeofday; no longer needed.
15157
15158 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15159
15160         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
15161         time business.
15162         (gethrxtime) [! (HAVE_NANOUPTIME
15163         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
15164         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
15165         our own approximation.
15166
15167 2005-11-08  Eric Blake  <ebb9@byu.net>
15168
15169         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15170
15171 2005-11-08  Eric Blake  <ebb9@byu.net>
15172
15173         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15174
15175 2005-11-04  Bruno Haible  <bruno@clisp.org>
15176
15177         * gnulib-tool: Implement --update mode.
15178
15179 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15180
15181         Fix porting problem reported by Theodoros V. Kalamatianos.
15182         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
15183         Don't assume that futimes failing means we must fail.
15184
15185 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15186
15187         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
15188         variables to suggest the intended function of the PATH_MAX check.
15189
15190 2005-10-30  Kean Johnston  <jkj@sco.com>
15191
15192         Trivial changes to support SCO systems.
15193         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
15194         as PATH_MAX.
15195         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
15196         where __ptr is null when no I/O is pending.
15197
15198 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15199
15200         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
15201         leave errno alone.  Problem reported by Dmitry V. Levin.
15202
15203 2005-10-28  Simon Josefsson  <jas@extundo.com>
15204
15205         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
15206         Test more.
15207
15208         * tests/test-gc-md2.c, tests/test-md2.c: New files.
15209
15210         * modules/md2, modules/md2-tests: New files.
15211
15212 2005-10-28  Simon Josefsson  <jas@extundo.com>
15213
15214         * m4/inet_ntop.m4: More tests.
15215
15216         * m4/gc-md2.m4, md2.m4: New file.
15217
15218 2005-10-28  Simon Josefsson  <jas@extundo.com>
15219
15220         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
15221         "restrict" keywords, as per POSIX.  Protect the function
15222         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
15223         Don't use K&R prototypes.  Check the sprintf return values.
15224         Re-define EAFNOSUPPORT if not present.  Indent.
15225
15226         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
15227         suggested by Bruno Haible <bruno@clisp.org>.
15228
15229         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
15230
15231         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
15232
15233         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
15234         libgcrypt).
15235
15236         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
15237
15238         * lib/md2.h, lib/md2.c: New files.
15239
15240 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15241
15242         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
15243         errno alone.  Problem reported by Frederic Jolliton.
15244
15245 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
15246
15247         * modules/verify (License): Change from GPL to LGPL.  This is a
15248         tiny module and there are apparently near-equivalents that are
15249         under the BSD license.
15250
15251 2005-10-24  Simon Josefsson  <jas@extundo.com>
15252
15253         * modules/sha1: Relicense to LGPL.
15254
15255 2005-10-24  Simon Josefsson  <jas@extundo.com>
15256
15257         * lib/md4.h: Shrink buffer size, now that we changed the type.
15258
15259 2005-10-23  Simon Josefsson  <jas@extundo.com>
15260
15261         * gnulib-tool (func_import): Fix --tests-base.
15262
15263 2005-10-22  Simon Josefsson  <jas@extundo.com>
15264
15265         * modules/arcfour (Depends-on): Need stdint.
15266
15267 2005-10-22  Simon Josefsson  <jas@extundo.com>
15268
15269         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
15270         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
15271
15272 2005-10-22  Simon Josefsson  <jas@extundo.com>
15273
15274         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
15275         suggested by Bruno Haible <bruno@clisp.org>.
15276
15277 2005-10-22  Simon Josefsson  <jas@extundo.com>
15278
15279         * lib/crc.h: Include stddef.h, for size_t.
15280
15281 2005-10-22  Simon Josefsson  <jas@extundo.com>
15282
15283         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
15284         arcfour_context struct (simplify test vector testing in GNU
15285         Shishi).
15286
15287 2005-10-21  Simon Josefsson  <jas@extundo.com>
15288
15289         * modules/des, modules/des-tests: New files.
15290
15291         * modules/gc-des, modules/gc-des-tests: New files.
15292
15293         * tests/test-des.c, tests/test-gc-des.c: New file.
15294
15295 2005-10-21  Simon Josefsson  <jas@extundo.com>
15296
15297         * modules/arctwo, modules/arctwo-tests: New files.
15298
15299         * tests/test-arctwo.c: New file.
15300
15301         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
15302
15303         * tests/test-gc-arctwo.c: New file.
15304
15305 2005-10-21  Simon Josefsson  <jas@extundo.com>
15306
15307         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
15308         Bruno Haible <bruno@clisp.org>.
15309
15310         * m4/gc-des.m4: New file.
15311
15312 2005-10-21  Simon Josefsson  <jas@extundo.com>
15313
15314         * m4/arctwo.m4: New file.
15315
15316         * m4/gc-arctwo.m4: New file.
15317
15318 2005-10-21  Simon Josefsson  <jas@extundo.com>
15319
15320         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
15321         block.
15322
15323 2005-10-21  Simon Josefsson  <jas@extundo.com>
15324
15325         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
15326         <bruno@clisp.org>.
15327
15328         * lib/hmac-sha1.c (hmac_sha1): Likewise.
15329
15330         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
15331         Bruno Haible <bruno@clisp.org>.
15332
15333         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
15334         <bruno@clisp.org>.
15335
15336 2005-10-21  Simon Josefsson  <jas@extundo.com>
15337
15338         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
15339
15340 2005-10-21  Simon Josefsson  <jas@extundo.com>
15341
15342         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
15343
15344 2005-10-21  Simon Josefsson  <jas@extundo.com>
15345
15346         * lib/des.h, lib/des.c: New files.
15347
15348         * lib/gc-gnulib.c: Support DES.c
15349
15350 2005-10-21  Simon Josefsson  <jas@extundo.com>
15351
15352         * lib/arctwo.h, lib/arctwo.c: New files.
15353
15354         * lib/gc-gnulib.c: Support ARCTWO.
15355
15356 2005-10-21  Simon Josefsson  <jas@extundo.com>
15357
15358         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
15359         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15360
15361 2005-10-21  Simon Josefsson  <jas@extundo.com>
15362
15363         * gnulib-tool (func_import, func_create_testdir): Define automake
15364         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
15365         Makefile.am snippet),
15366         suggested by Bruno Haible <bruno@clisp.org>.
15367
15368         * modules/gc (Makefile.am): Use it.
15369
15370 2005-10-21  Bruno Haible  <bruno@clisp.org>
15371
15372         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
15373         patch.
15374
15375 2005-10-19  Simon Josefsson  <jas@extundo.com>
15376
15377         * tests/test-gc-rijndael.c: New file.
15378
15379         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
15380
15381 2005-10-19  Simon Josefsson  <jas@extundo.com>
15382
15383         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
15384         interface too.
15385
15386 2005-10-19  Simon Josefsson  <jas@extundo.com>
15387
15388         * tests/test-gc-arcfour.c: New file.
15389
15390         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
15391
15392 2005-10-19  Simon Josefsson  <jas@extundo.com>
15393
15394         * modules/gc-md4, modules/gc-md4-tests: New file.
15395
15396         * tests/test-gc-md4.c: New file.
15397
15398 2005-10-19  Simon Josefsson  <jas@extundo.com>
15399
15400         * m4/gc-md4.m4: New file.
15401
15402 2005-10-19  Simon Josefsson  <jas@extundo.com>
15403
15404         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
15405         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
15406         <kasal@ucw.cz>.
15407
15408 2005-10-19  Simon Josefsson  <jas@extundo.com>
15409
15410         * m4/gc-arcfour.m4: New file.
15411
15412         * m4/gc-rijndael.m4: New file.
15413
15414 2005-10-19  Simon Josefsson  <jas@extundo.com>
15415
15416         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
15417
15418 2005-10-19  Simon Josefsson  <jas@extundo.com>
15419
15420         * lib/gc-gnulib.c: Support ARCFOUR.
15421
15422 2005-10-19  Simon Josefsson  <jas@extundo.com>
15423
15424         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
15425         support.
15426
15427         * lib/gc.h: Add ECB enum type.
15428
15429         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
15430
15431 2005-10-18  Simon Josefsson  <jas@extundo.com>
15432
15433         * tests/test-md5.c: New file.
15434
15435         * modules/md5-tests: New file.
15436
15437 2005-10-18  Simon Josefsson  <jas@extundo.com>
15438
15439         * tests/test-md4.c: New file.
15440
15441         * modules/md4, modules/md4-tests: New files.
15442
15443 2005-10-18  Simon Josefsson  <jas@extundo.com>
15444
15445         * m4/md4.m4: New file.
15446
15447 2005-10-18  Simon Josefsson  <jas@extundo.com>
15448
15449         * lib/md4.h, lib/md4.c: New files, based on md5.?.
15450
15451 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
15452
15453         * gnulib-tool (func_create_testdir): Omit the second check whether
15454         BUILT_SOURCES in nonempty.
15455
15456 2005-10-17  Simon Josefsson  <jas@extundo.com>
15457
15458         * tests/test-rijndael.c: New file.
15459
15460 2005-10-17  Simon Josefsson  <jas@extundo.com>
15461
15462         * modules/sha1: Depend on stdint instead of md5.
15463
15464         * modules/md5: Depend on stdint, remove uint32_t.
15465
15466 2005-10-17  Simon Josefsson  <jas@extundo.com>
15467
15468         * modules/gc-sha1-tests: New file.
15469
15470         * tests/test-gc-sha1.c: New file.
15471
15472 2005-10-17  Simon Josefsson  <jas@extundo.com>
15473
15474         * m4/md5.m4: Remove call to uint32_t.m4.
15475
15476 2005-10-17  Simon Josefsson  <jas@extundo.com>
15477
15478         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
15479
15480         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
15481         md5.h.
15482
15483         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
15484
15485         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
15486
15487 2005-10-17  Simon Josefsson  <jas@extundo.com>
15488
15489         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
15490
15491 2005-10-17  Simon Josefsson  <jas@extundo.com>
15492
15493         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
15494
15495 2005-10-17  Simon Josefsson  <jas@extundo.com>
15496
15497         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
15498
15499         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
15500
15501 2005-10-17  Bruno Haible  <bruno@clisp.org>
15502
15503         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
15504         that it can also be used in a test.
15505
15506 2005-10-16  Bruno Haible  <bruno@clisp.org>
15507
15508         * gnulib-tool (func_emit_tests_Makefile_am): Also define
15509         TESTS_ENVIRONMENT, so that individual tests can augment it.
15510
15511         * gnulib-tool (func_create_testdir): Use an intermediate target for
15512         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
15513         macros, like $(ALLOCA_H), which cannot be passed through the command
15514         line.
15515
15516 2005-10-15  Simon Josefsson  <jas@extundo.com>
15517
15518         * modules/rijndael-tests: New file.
15519
15520         * modules/rijndael: New file.
15521
15522 2005-10-15  Simon Josefsson  <jas@extundo.com>
15523
15524         * m4/rijndael.m4: New file.
15525
15526 2005-10-15  Simon Josefsson  <jas@extundo.com>
15527
15528         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
15529
15530         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
15531
15532 2005-10-14  Simon Josefsson  <jas@extundo.com>
15533
15534         * tests/test-arcfour.c: New file.
15535
15536         * modules/arcfour, modules/arcfour-tests: New files.
15537
15538 2005-10-14  Simon Josefsson  <jas@extundo.com>
15539
15540         * m4/arcfour.m4: New file.
15541
15542 2005-10-14  Simon Josefsson  <jas@extundo.com>
15543
15544         * lib/arcfour.h, lib/arcfour.c: New files.
15545
15546 2005-10-14  Roland McGrath  <roland@redhat.com>
15547
15548         Import from libc.  [BZ #1331]
15549         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
15550         macro argument.
15551         Reported by Matej Vela <vela@debian.org>.
15552
15553 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15554
15555         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
15556         include <wchar.h>; no longer needed.
15557
15558 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15559
15560         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
15561
15562 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
15563         and  Ulrich Drepper  <drepper@redhat.com>
15564
15565         Import from libc.
15566         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
15567         instead of inline stream orientation test and two separate
15568         function calls.  Pay no attention to USE_IN_LIBIO.
15569
15570 2005-10-13  Simon Josefsson  <jas@extundo.com>
15571
15572         * modules/gc-hmac-md5-tests: New file.
15573
15574         * tests/test-gc-hmac-sha1.c: New file.
15575
15576         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
15577
15578         * modules/gc-hmac-md5-tests: New file.
15579
15580         * tests/test-gc-md5.c: New file.
15581
15582         * modules/gc-md5-tests: New file.
15583
15584 2005-10-13  Simon Josefsson  <jas@extundo.com>
15585
15586         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
15587         Move memory allocation outside of loop.
15588
15589 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15590
15591         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
15592         intermediate directory is in a read-only file system.  Problem
15593         reported by Eric Blake.
15594
15595 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
15596
15597         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
15598
15599 2005-10-12  Simon Josefsson  <jas@extundo.com>
15600
15601         * tests/test-hmac-sha1.c: New file.
15602
15603         * modules/hmac-sha1-tests: New file.
15604
15605         * modules/hmac-sha1: New file.
15606
15607 2005-10-12  Simon Josefsson  <jas@extundo.com>
15608
15609         * modules/gc-sha1: New file.
15610
15611 2005-10-12  Simon Josefsson  <jas@extundo.com>
15612
15613         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
15614
15615         * tests/test-gc-pbkdf2-sha1.c: New file.
15616
15617 2005-10-12  Simon Josefsson  <jas@extundo.com>
15618
15619         * modules/gc-md5, modules/gc-hmac-md5: New files.
15620
15621         * modules/gc (Files): Remove md5, memxor and hmac files.
15622
15623 2005-10-12  Simon Josefsson  <jas@extundo.com>
15624
15625         * m4/gc-pbkdf2-sha1.m4: New file.
15626
15627         * m4/gc-hmac-sha1.m4: New file.
15628
15629         * m4/gc-sha1: New file.
15630
15631         * m4/hmac-sha1.m4: New file.
15632
15633 2005-10-12  Simon Josefsson  <jas@extundo.com>
15634
15635         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
15636
15637         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
15638
15639 2005-10-12  Simon Josefsson  <jas@extundo.com>
15640
15641         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
15642         suggested by Bruno Haible <bruno@clisp.org>.
15643
15644 2005-10-12  Simon Josefsson  <jas@extundo.com>
15645
15646         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
15647
15648 2005-10-12  Simon Josefsson  <jas@extundo.com>
15649
15650         * lib/gc-pbkdf2-sha1.c: New file.
15651
15652         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
15653
15654 2005-10-12  Simon Josefsson  <jas@extundo.com>
15655
15656         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
15657
15658         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
15659
15660 2005-10-12  Simon Josefsson  <jas@extundo.com>
15661
15662         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
15663         GC_USE_HMAC_MD5, respectively.
15664
15665         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
15666         (gc_md5): Fix typo.
15667
15668         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
15669
15670         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
15671
15672         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
15673
15674 2005-10-12  Bruno Haible  <bruno@clisp.org>
15675
15676         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
15677         Reported by Stepan Kasal <kasal@ucw.cz>.
15678
15679 2005-10-11  Simon Josefsson  <jas@extundo.com>
15680
15681         * tests/test-crc.c: New file.
15682
15683         * modules/crc, modules/crc-tests: New files.
15684
15685 2005-10-11  Simon Josefsson  <jas@extundo.com>
15686
15687         * m4/crc.m4: New file.
15688
15689 2005-10-11  Simon Josefsson  <jas@extundo.com>
15690
15691         * lib/gc.h: Add gc_hash and gc_hash_buffer.
15692
15693         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
15694
15695         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
15696
15697 2005-10-11  Simon Josefsson  <jas@extundo.com>
15698
15699         * lib/crc.h, lib/crc.c: New files.
15700
15701         * lib/gc.h (gc_hash_buffer): Add doc.
15702
15703 2005-10-11  Bruno Haible  <bruno@clisp.org>
15704
15705         * modules/c-strcasestr: New file.
15706         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
15707
15708 2005-10-11  Bruno Haible  <bruno@clisp.org>
15709
15710         * modules/c-strcase: New file.
15711         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
15712
15713 2005-10-11  Bruno Haible  <bruno@clisp.org>
15714
15715         * lib/strcasecmp.c: Include limits.h.
15716         (strcasecmp): Avoid integer overflow on exotic platforms.
15717         * lib/strncasecmp.c: Include limits.h.
15718         (strncasecmp): Avoid integer overflow on exotic platforms.
15719         Reported by Paul Eggert.
15720
15721 2005-10-11  Bruno Haible  <bruno@clisp.org>
15722
15723         * lib/c-strcasestr.h: New file, from GNU gettext.
15724         * lib/c-strcasestr.c: New file, from GNU gettext.
15725
15726 2005-10-11  Bruno Haible  <bruno@clisp.org>
15727
15728         * lib/c-strcase.h: New file, from GNU gettext.
15729         * lib/c-strcasecmp.c: New file, from GNU gettext.
15730         * lib/c-strncasecmp.c: New file, from GNU gettext.
15731
15732 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15733
15734         * modules/mempcpy (License): GPL -> LGPL.
15735         * modules/strchrnul (License): Likewise.
15736         * modules/sysexits (License): Likewise.
15737
15738 2005-10-08  Simon Josefsson  <jas@extundo.com>
15739
15740         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
15741
15742 2005-10-07  Simon Josefsson  <jas@extundo.com>
15743
15744         * m4/memxor.m4: Remove gl_C_RESTRICT call.
15745
15746 2005-10-06  Simon Josefsson  <jas@extundo.com>
15747
15748         * tests/test-hmac-md5.c: New file.
15749
15750         * modules/hmac-md5-tests: New file.
15751
15752         * modules/hmac-md5: New file.
15753
15754 2005-10-06  Simon Josefsson  <jas@extundo.com>
15755
15756         * m4/hmac-md5.m4: New file.
15757
15758         * m4/memxor.m4: Require gl_C_RESTRICT.
15759
15760 2005-10-06  Simon Josefsson  <jas@extundo.com>
15761
15762         * lib/memxor.c (memxor): Avoid casts and warnings.
15763
15764 2005-10-06  Simon Josefsson  <jas@extundo.com>
15765
15766         * lib/hmac-md5.c: New file.
15767
15768         * lib/hmac.h: New file.
15769
15770 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15771
15772         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
15773         promotes to int, not unsigned int, to catch the AIX 5.3
15774         compiler bug.
15775
15776 2005-10-05  Simon Josefsson  <jas@extundo.com>
15777
15778         * modules/memxor: New file.
15779
15780         * modules/iconv (Files): Move config.rpath to havelib, it is used
15781         there.
15782
15783         * modules/havelib (Files): Add config.rpath.
15784
15785 2005-10-05  Simon Josefsson  <jas@extundo.com>
15786
15787         * m4/memxor.m4: New file.
15788
15789 2005-10-05  Simon Josefsson  <jas@extundo.com>
15790
15791         * lib/memxor.c (memxor): Fix compiler error.
15792
15793         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
15794         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
15795
15796         * lib/memxor.h, lib/memxor.c: New files.
15797
15798         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
15799         we assume all systems have it, suggested by Jim Meyering
15800         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
15801         any systems lack sys/socket.h; mingw32 is known to lack it, but we
15802         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
15803         same reasons.
15804
15805 2005-10-05  Simon Josefsson  <jas@extundo.com>
15806
15807         * config/srclist.txt: Add glibc bug 1423 for md5.h.
15808
15809 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15810
15811         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
15812         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
15813         needed, since the source code now assumes these .h files.
15814
15815 2005-10-05  Derek Price  <derek@ximbiot.com>
15816
15817         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
15818
15819 2005-10-05  Bruno Haible  <bruno@clisp.org>
15820
15821         * modules/stdint (License): Change to LGPL.
15822
15823 2005-10-04  Simon Josefsson  <jas@extundo.com>
15824
15825         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
15826         D. Baushke" <mdb@gnu.org>.
15827
15828 2005-10-04  Bruno Haible  <bruno@clisp.org>
15829
15830         * lib/verify.h (verify_true): Provide alternative definition for C++.
15831
15832 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15833
15834         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
15835         (SSIZE_MAX): New macro, if not already defined.
15836         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
15837         than 2 GiB.
15838
15839 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15840
15841         Sync from coreutils.
15842         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
15843         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
15844         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
15845         ULLONG_MAX doesn't work with 2.7.2.1.
15846
15847 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15848
15849         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
15850         From Ben Pfaff.
15851
15852         * modules/exclude (Depends-on): Depend on verify.
15853         * modules/strtoimax (Depends-on): Likewise.
15854         * modules/utimecmp (Depends-on): Likewise.
15855
15856 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15857
15858         * lib/exclude.c: Include verify.h.
15859         (verify): Remove.  All callers changed to use verify.h's version.
15860         * lib/strtoimax.c: Likewise.
15861         * lib/utimecmp.c: Likewis.e
15862
15863         Sync from coreutils.
15864         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
15865         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
15866         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
15867         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
15868         bother returning ENOSYS if settimeofday or stime fails; just let
15869         them return whatever errno they want to return.
15870         * lib/utimens.c: Include unistd.h, for dup2.
15871         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
15872         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
15873
15874 2005-10-02  Jim Meyering  <jim@meyering.net>
15875
15876         Sync from coreutils.
15877         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
15878         from glibc-2.2.5 that fails for read-only files.
15879
15880 2005-10-02  Jim Meyering  <jim@meyering.net>
15881
15882         Sync from coreutils.
15883         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
15884         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
15885         `#if HAVE_CONFIG_H'.
15886         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
15887         Remove AT_FDCWD test.
15888         Do not consume the fd unless successful.
15889         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
15890         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
15891         block, so that we don't even try to compile it if settimeofday is
15892         available.  This works around a compilation failure on OSF1 V5.1,
15893         due to stime requiring a `long int*' while tv_sec is `int'.
15894
15895 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
15896
15897         Sync from coreutils.
15898         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
15899         against `yes', rather than just testing for nonempty.
15900
15901 2005-10-01  Simon Josefsson  <jas@extundo.com>
15902
15903         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
15904         and Darwin.
15905
15906         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
15907         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
15908         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
15909         freeaddrinfo and gai_strerror are declared by the POSIX headers.
15910         Check if struct addrinfo is declared.
15911
15912 2005-10-01  Simon Josefsson  <jas@extundo.com>
15913
15914         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
15915         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
15916         AI_* and EAI_* definitions.  Protect function declarations.
15917
15918 2005-10-01  Jim Meyering  <jim@meyering.net>
15919
15920         Sync from coreutils.
15921
15922         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
15923         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
15924         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
15925         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
15926         in the inet and nsl libraries.  Required on Solaris 5.7.
15927
15928 2005-10-01  Jim Meyering  <jim@meyering.net>
15929
15930         Sync from coreutils.
15931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
15932         in the inet and nsl libraries.  Required on Solaris 5.7.
15933
15934 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
15935
15936         * lib/getdelim.c (getdelim): Remove unused variables.
15937
15938 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
15939
15940         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
15941         so that the code works even with ancient cpp.  Portability problem
15942         with GCC 2.7.2.1 reported by Thomas M.Ott.
15943
15944 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
15945
15946         * modules/regex (Depends-on): Add strcase.
15947
15948         * modules/gethostname (Licence): Change from GPL to LGPL, since
15949         gethostname.c is a trivial implementation of a standard library
15950         function.
15951         * modules/poll (License): Change from GPL to LGPL, since it's
15952         derived from LGPL code.
15953
15954 2005-09-27  Jim Meyering  <jim@meyering.net>
15955
15956         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
15957         HAVE_CONFIG_H.
15958
15959         * lib/intprops.h (signed_type_or_expr__): Define.
15960         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
15961         for unsigned types.
15962
15963 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15964
15965         * lib/verify.h (verify_expr): Remove, replacing with:
15966         (verify_true): New macro that returns true instead of void.
15967         (verify_type__): Remove.
15968         (verify): Use verify_true rather than verify_type__.
15969
15970 2005-09-26  Bruno Haible  <bruno@clisp.org>
15971
15972         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
15973         is necessary.
15974         (lib_SOURCES): Remove mbchar.c.
15975         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
15976         (Files): Add m4/mbrtowc.m4.
15977         * modules/mbiter: Likewise.
15978         * modules/mbuiter: Likewise.
15979
15980 2005-09-26  Bruno Haible  <bruno@clisp.org>
15981
15982         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
15983         compile mbchar.c if they are not both present.
15984         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
15985         * m4/mbiter.m4 (gl_MBITER): Likewise.
15986         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
15987         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
15988         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
15989
15990 2005-09-25  Jim Meyering  <jim@meyering.net>
15991
15992         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
15993         also uses socklen_t.
15994
15995 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
15996
15997         * lib/utimens.c (ENOSYS): Define if not already defined.
15998         (futimens): Support having a null PATH if the file descriptor
15999         is nonnegative.
16000
16001         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
16002         Remove.
16003         (__attribute): Define to empty unless GCC 3.1 or later.
16004         This works around a core dump on OpenBSD 3.4, which has GCC
16005         2.95.3, which dumps core when given __attribute__(()).  It also
16006         simplifies other tests, since we really don't want to bother with
16007         worrying about which ancient version of GCC supported what.
16008         Original problem reported by Yoann Vandoorselaere, with part of
16009         the fix suggested by Derek Price.
16010
16011 2005-09-24  Jim Meyering  <jim@meyering.net>
16012
16013         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
16014         so we can once again use a positive bitfield width of 1 -- now we
16015         don't have to explain why we were using a bitfield width of 2.
16016
16017 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16018
16019         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
16020         and similarly for the other external symbols.  Problem reported
16021         by James Gallager.
16022
16023         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
16024         bug reported by Jim Meyering.
16025
16026         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
16027         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
16028         not needed, since socklen is a prerequisite module.
16029
16030 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16031
16032         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
16033         Problem reported by Eric Blake.
16034         (getaddrinfo): Initialize se so that it's not garbage.
16035         Redo internal storage allocation so that it doesn't make unportable
16036         assumptions about alignment.
16037         Fix a memory leak.
16038
16039         * lib/utimens.c (futimens): Use futimesat if available.
16040         Prefer it to futimes since it doesn't have the futimes bug.
16041
16042         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
16043         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
16044         Instead, declare a function that returns a pointer to an array,
16045         and use verify_type__ to declare the size of the array.
16046         Problem and germ of a solution reported by Bruno Haible.
16047         (verify_type__): Use 2, not 1, for bitfield size, to avoid
16048         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
16049
16050 2005-09-23  Jim Meyering  <jim@meyering.net>
16051
16052         Sync from coreutils.
16053         Correct build failure (socklen_t not defined) on at least
16054         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
16055         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
16056
16057 2005-09-23  Jim Meyering  <jim@meyering.net>
16058
16059         * modules/getaddrinfo (Depends-on): Add socklen.
16060
16061 2005-09-23  Bruno Haible  <bruno@clisp.org>
16062
16063         * tests/test-verify.c: New file.
16064
16065 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16066
16067         Sync from coreutils.
16068
16069         * modules/argmatch (Depends-on): Add verify.
16070         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
16071         unistd-safer.
16072         * modules/save-cwd (Depends-on): Likewise.
16073
16074         * modules/openat (Files): Add lib/openat-die.c.
16075         (Depends-on): Remove error, exitfail.
16076         Add dirname.
16077
16078         * modules/verify: New file.
16079         * MODULES.html.sh (Diagnostics <assert.h>): New section,
16080         with "verify" module.
16081
16082 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16083
16084         Sync from coreutils.
16085
16086         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
16087         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
16088         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
16089         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
16090         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
16091         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
16092         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
16093         Don't bother checking for string.h, stdlib.h, unistd.h.
16094         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
16095         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
16096         module's job.
16097         * m4/jm-macros.m4 (gl_MACROS): Likewise.
16098         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
16099
16100         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
16101         (gl_GETDATE): Use it.
16102
16103         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
16104
16105 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16106
16107         Sync from coreutils.
16108
16109         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
16110         stat-time.h.
16111         * lib/argmatch.h: Include verify.h
16112         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
16113         (ARGMATCH_ASSERT): Remove; unused.
16114         * lib/canonicalize.c: Assume STDC_HEADERS.
16115         * lib/exclude.c: Include "strcase.h".
16116         * lib/regex_internal.h [!defined _LIBC]: Likewise.
16117         * lib/getusershell.c: Include stdio--.h rather than stdio.h
16118         and stdio-safer.h.
16119         (getusershell): Call fopen, not fopen_safer.
16120         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
16121         Do not include unistd-safer.h.
16122         (save_cwd): Don't call fd_safer; no longer needed
16123         now that we include fcntl--.h.
16124
16125         * lib/getdate.y (relative_time): New type.
16126         (RELATIVE_TIME_0): New constant.
16127         (parser_control): Use relative_time instead of doing it ourselves.
16128         (%union): Add new relative_time rel member.
16129         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
16130         Now typeless.
16131         (relunit, relunit_snumber): Now of type rel.
16132         (zone, rel, relunit, get_date): Adjust to above changes.
16133
16134         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
16135         Do not include unistd-safer.h.
16136         (getloadavg): Don't call fd_safer; no longer needed
16137         now that we include fcntl--.h.
16138
16139         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
16140         (make_dir_parents): Treat ENOSYS like EEXIST.
16141
16142         Improve quality of diagnostics on restore_cwd failure.
16143         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
16144         (make_dir_parents): Last arg is now int * (for errno), not bool *.
16145         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
16146         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
16147         each time through the loop.  Do not diagnose restore_cwd failure;
16148         that is the caller's job (and perhaps the caller does not care).
16149
16150         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
16151         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
16152         If the file already exists but is not a directory, don't bother
16153         to try to make its parents.
16154         Close potential file descriptor leak if we can't chdir("/") (!).
16155         Don't always return true if chdir($PWD) fails; return true only
16156         if the requested action was done successfully (except for the
16157         chdir($PWD)).
16158         Don't log final directory unless we actually made it.
16159         Refactor to avoid duplicate code to fix up permissions.
16160         Don't attempt to fix up parent permissions if chdir($PWD) fails.
16161
16162         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
16163         to make it a bit faster and (I hope) clearer.
16164         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
16165         Fix bug in formats like %2N.
16166
16167         * lib/verify.h: New file.
16168
16169 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16170
16171         Sync from coreutils.
16172         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
16173
16174 2005-09-22  Jim Meyering  <jim@meyering.net>
16175
16176         Sync from coreutils.
16177
16178         * m4/lstat.m4 (gl_FUNC_LSTAT):
16179         Use AC_LIBSOURCES to require lstat.c and lstat.h.
16180         Remove obsolete comment.
16181         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
16182         * m4/xstrtod.m4: Likewise.
16183
16184         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
16185
16186 2005-09-22  Jim Meyering  <jim@meyering.net>
16187
16188         Sync from coreutils.
16189
16190         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
16191
16192         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
16193         the .tm_year member, since otherwise gcc-4.0 would now warn about
16194         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
16195
16196         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
16197         order to avoid an unsuppressible warning from gcc on 64-bit systems.
16198
16199         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
16200         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
16201         when run in a time zone for which daylight savings time is in effect
16202         for the starting date.
16203
16204         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
16205         stop us from restricting permissions of just-created absolute-named
16206         directories.
16207         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
16208         to restore initial working directory.
16209         * lib/mkdir-p.c (make_dir_parents): New parameter:
16210         different_working_dir, to tell caller if/when we change the working
16211         directory and are unable to return to the initial one.
16212         * lib/mkdir-p.h (make_dir_parents): Update prototype.
16213         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
16214         `return false'.  This fixes a bug introduced on 2004-07-30.
16215
16216         * lib/openat.c (fdopendir): Be sure to close the supplied
16217         file descriptor before returning.  This makes our replacement
16218         implementation a little closer to Solaris's, where fdopendir
16219         ties the file descriptor to the returned DIR* pointer.
16220         * lib/openat.c (unlinkat): New function.
16221         * lib/openat.h (unlinkat): Add prototype.
16222         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
16223         (openat_restore_fail): Rename from openat_restore_die.
16224         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
16225
16226         Provide an alternative to exiting immediately upon save_cwd or
16227         restore_cwd failure.  Now, an application can arrange e.g.,
16228         to perform a longjump in that case.
16229         * lib/openat.c: Include dirname.h.
16230         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
16231         (rpl_openat, fdopendir, fstatat): Call openat_save_die
16232         and openat_restore_die rather than calling error directly.
16233         Don't include "error.h" or "exitfail.h"; they're no longer needed.
16234
16235         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
16236         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
16237         define.
16238
16239         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
16240         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
16241                             int utc, int nanoseconds);
16242         Background:
16243         date should not have to allocate a megabyte of virtual memory to
16244         handle a format argument like +%1048575T.  When implemented with
16245         strftime, it must allocate such a buffer, use strftime to fill it
16246         in, print it, then free it.
16247         With fprintftime, it simply prints everything and exits.
16248         With no need for memory allocation, that's one fewer way to fail.
16249         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
16250         optional field width, not before, so we accept %9:z, not %:9z.
16251         (my_strftime): Be sure to use L_('x') for literals.
16252
16253         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
16254         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
16255         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
16256         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
16257         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
16258         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
16259         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
16260         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
16261         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
16262         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
16263         * lib/xgethostname.c, lib/xreadlink.c:
16264         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
16265
16266         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
16267         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
16268         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
16269         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
16270         and don't include <sys/file.h>).
16271
16272 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
16273
16274         Sync from coreutils.
16275
16276         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
16277         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
16278         [!LDAV_DONE]: Avoid unused variable warning.
16279
16280 2005-09-21  Bruno Haible  <bruno@clisp.org>
16281
16282         * lib/unicodeio.h (unicode_to_mb): New declaration.
16283
16284 2005-09-20  Derek Price  <derek@ximbiot.com>
16285
16286         * lib/getaddrinfo.c: Don't include <netdb.h> included from
16287         getaddrinfo.h.
16288
16289 2005-09-20  Bruno Haible  <bruno@clisp.org>
16290
16291         * gnulib-tool: Remove trailing slashes from the values specified for
16292         --source-base, --m4-base, --tests-base, --aux-dir.
16293         Suggested by Simon Josefsson <jas@extundo.com>.
16294
16295 2005-09-20  Bruno Haible  <bruno@clisp.org>
16296
16297         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
16298         func_modules_to_filelist, func_import, func_create_testdir): Make all
16299         sorting results locale-independent, so that gnulib-cache.m4 doesn't
16300         change when gnulib-tool is invoked in a different locale.
16301
16302 2005-09-19  Simon Josefsson  <jas@extundo.com>
16303
16304         * m4/socklen.m4: Fix typo.
16305
16306 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16307
16308         Use a consistent style for including <config.h>.
16309         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
16310         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
16311         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
16312         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
16313         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
16314         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
16315         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
16316         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
16317         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
16318         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
16319         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
16320         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
16321         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
16322         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
16323         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
16324         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
16325         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
16326         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
16327         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
16328         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
16329         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
16330         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
16331         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
16332         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
16333         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
16334         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
16335         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
16336         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
16337         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
16338         lib/xstrtoumax.c, lib/yesno.c:
16339         Standardize inclusion of config.h.
16340         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
16341         lib/inttostr.h:  Removed inclusion of config.h from header files.
16342         * lib/inttostr.c:  Adjusted in-tree users.
16343         * lib/timespec.h: Remove superfluous warning to include config.h.
16344         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
16345         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
16346         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
16347         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
16348         config.h with HAVE_CONFIG_H.
16349
16350 2005-09-19  Jim Meyering  <jim@meyering.net>
16351
16352         * modules/pathmax (License): Change to LGPL.
16353
16354 2005-09-19  Derek Price  <derek@ximbiot.com>
16355
16356         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
16357
16358 2005-09-19  Bruno Haible  <bruno@clisp.org>
16359
16360         * gnulib-tool (import): Provide default for --tests-base.
16361
16362 2005-09-19  Bruno Haible  <bruno@clisp.org>
16363
16364         * doc/quote.texi: New file, extracted from gnulib.texi.
16365         * doc/ctime.texi: New file, extracted from gnulib.texi.
16366         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
16367         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
16368         * doc/gnulib.texi: Include them.
16369
16370 2005-09-18  Bruno Haible  <bruno@clisp.org>
16371
16372         Portability fix.
16373         * gnulib-tool (func_readlink): New function.
16374         (func_ln_if_changed): Use it.
16375
16376 2005-09-18  Bruno Haible  <bruno@clisp.org>
16377
16378         * gnulib-tool: Support --with-tests also with --import.
16379         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
16380         (func_import): Use variables $testsbase and $inctests. Emit a
16381         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
16382         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
16383         SUBDIRS += $testsdir.
16384         (func_create_testdir): Update.
16385
16386 2005-09-18  Bruno Haible  <bruno@clisp.org>
16387
16388         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
16389         instead of $dry_run.
16390         (func_cp_if_changed, func_mv_if_changed): Remove functions.
16391         (func_ln_if_changed): Don't handle dry-run here.
16392         (func_import): In dry-run mode, detect more precisely which actions
16393         would be performed, and don't use "...ing" verbs.
16394
16395 2005-09-18  Bruno Haible  <bruno@clisp.org>
16396
16397         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
16398         (func_import): Use join on two temporary files instead of three nested
16399         loops, in order to determine which files are new or old.
16400
16401 2005-09-18  Bruno Haible  <bruno@clisp.org>
16402
16403         * gnulib-tool (func_import): Comment out code that spits out the
16404         new files with --dry-run.
16405
16406 2005-09-18  Bruno Haible  <bruno@clisp.org>
16407
16408         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
16409
16410 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16411
16412         * lib/stat-time.h: New file.
16413         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
16414         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
16415         in a different way.
16416         (timespec_cmp): New function.
16417         * lib/utimecmp.c: Include stat-time.h.
16418         (SYSCALL_RESOLUTION): Depend on whether various struct stat
16419         members exist, not on the obsolescent ST_MTIM_NSEC.
16420         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
16421
16422 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16423
16424         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
16425
16426 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16427
16428         * MODULES.html.sh (File system functions): Add stat-time.
16429         * modules/stat-time: New file.
16430         * modules/timespec (Files): Remove m4/st_mtim.m4; this
16431         is now done in a different way, by the stat-time module.
16432         * modules/utimecmp (Depends-on): Add stat-time.
16433
16434 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16435
16436         * m4/st_mtim.m4: Remove.  Superseded by...
16437         * m4/stat-time.m4: New file.
16438         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
16439         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
16440
16441 2005-09-15  Derek Price  <derek@ximbiot.com>
16442
16443         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
16444
16445 2005-09-15  Derek Price  <derek@ximbiot.com>
16446
16447         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
16448         * lib/regex_internal.c: Ditto, using this...
16449         (__GNUC_PREREQ): ...new macro.
16450         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
16451         using...
16452         (__GNUC_PREREQ): ...this new macro.
16453
16454         * lib/strstr.h: Include string.h. Define strstr as a macro here.
16455
16456 2005-09-15  Derek Price  <derek@ximbiot.com>
16457             Paul Eggert  <eggert@cs.ucla.edu>
16458
16459         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
16460         changes, consolidating in...
16461         * lib/regex_internal.h: ...this file.
16462
16463 2005-09-13  Jim Meyering  <jim@meyering.net>
16464
16465         * lib/canon-host.c: Filter through gnu indent and reword comments
16466         slightly.
16467         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
16468
16469 2005-09-13  Derek Price  <derek@ximbiot.com>
16470
16471         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
16472         failure.
16473         Reported by Jim Meyering  <jim@meyering.net>.
16474
16475 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16476
16477         * lib/base64.c: Typo.
16478         (base64_encode): Put b64str in initialized data section.
16479
16480 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16481
16482         Merge glibc and coreutils changes into gnulib, plus a few
16483         extra fixes.
16484         * lib/md5.c: Use #error rather than a string.
16485         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
16486         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
16487         (__attribute__): Define to empty for non recent-GCC.
16488         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
16489         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
16490         Renamed from their non-__ counterparts, with new macros replacing
16491         them if not _LIBC.  Add __THROW attribute.
16492         (rol): Remove.
16493         (struct md5_ctx): Align buffer if using GCC.
16494         * lib/sha1.h (struct sha1_ctx): Likewise.
16495         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
16496         The old name was backwards.
16497         (NOTSWAP): Remove; not used.
16498         (rol): New macro, moved here from md5.h.
16499         (sha1_process_block): Remove a FIXME that doesn't make sense.
16500
16501 2005-09-12  Derek Price  <derek@ximbiot.com>
16502
16503         Return usable errors from canon-host.
16504         * lib/canon-host.h: New file.
16505         * lib/canon-host.c (canon_host): Wrap...
16506         (canon_host_r): ...this new function, which now relies exclusively on
16507         getaddrinfo.
16508         (ch_strerror): New function.
16509         (last_cherror): New global.
16510         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
16511         interface.
16512         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
16513         void *.
16514         (freeaddrinfo): Free ai->ai_canonname when set.
16515
16516 2005-09-12  Derek Price  <derek@ximbiot.com>
16517
16518         Make canon-host require getaddrinfo.
16519         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
16520         AC_LIBSOURCE canon-host.h.  Call...
16521         (gl_PREREQ_CANON_HOST): ...this new function, which requires
16522         gl_GETADDRINFO.
16523         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
16524
16525 2005-09-12  Derek Price  <derek@ximbiot.com>
16526
16527         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
16528         LGPL.
16529         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
16530
16531 2005-09-12  Derek Price  <derek@ximbiot.com>
16532
16533         * lib/gai_strerror.c: Include config.h when available.  Include
16534         getaddrinfo.h before other headers to test interface.
16535         Reported by Larry Jones <lawrence.jones@ugs.com>.
16536
16537 2005-09-12  Derek Price  <derek@ximbiot.com>
16538             Paul Eggert  <eggert@cs.ucla.edu>
16539
16540         * modules/glob (Files): Add glob-libc.h.
16541
16542 2005-09-12  Derek Price  <derek@ximbiot.com>
16543             Paul Eggert  <eggert@cs.ucla.edu>
16544
16545         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
16546         glob_.h, glob-libc.h.
16547         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
16548
16549 2005-09-12  Derek Price  <derek@ximbiot.com>
16550             Paul Eggert  <eggert@cs.ucla.edu>
16551
16552         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
16553         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
16554         protecting things that should be done only in gnulib contexts.
16555         * lib/glob_.h: New file, containing only the glob things needed for
16556         gnulib.
16557         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
16558         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
16559         (glob, globfree, glob_pattern_p): Now defined simply in terms of
16560         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
16561         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
16562         and to respect the namespace rules better.
16563
16564 2005-09-08  Simon Josefsson  <jas@extundo.com>
16565
16566         * modules/socklen: New file.
16567
16568 2005-09-08  Simon Josefsson  <jas@extundo.com>
16569
16570         * m4/socklen.m4: New file.
16571
16572 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16573
16574         * modules/utimens (Files): Add m4/utimbuf.m4, since
16575         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
16576         Reported by Sergey Poznyakoff.
16577
16578 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16579
16580         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
16581         definitions, since that's the preferred style in glibc.
16582         Fix a minor spacing issue, and update copyright notice to match
16583         glibc's.
16584
16585 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16586
16587         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
16588
16589 2005-09-06  Simon Josefsson  <jas@extundo.com>
16590
16591         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
16592         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
16593
16594 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16595
16596         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
16597         warning.
16598
16599 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16600
16601         * config/srclist.txt: Add glibc bug 1302.
16602
16603 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
16604
16605         Change bitset word type from unsigned int to unsigned long int,
16606         as this has better performance on typical 64-bit hosts.
16607         Port bitset code to hosts with unusual word sizes.
16608         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
16609         (build_collating_symbol):
16610         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
16611         argument is a bitset.  This is merely a style issue, but it makes
16612         it clearer that an entire array is expected.
16613         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
16614         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
16615         Port to the case where bitset_word is not the same as unsigned int.
16616         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
16617         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
16618         Likewise.
16619         * lib/regexec.c (check_dst_limits_calc_pos_1,
16620         check_subexp_matching_top):
16621         (build_trtable, group_nodes_into_DFAstates):
16622         Likewise.
16623         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
16624         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
16625         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
16626         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
16627         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
16628         * lib/regcomp.c (optimize_subexps, lower_subexp):
16629         Work even if bitset_word has holes in its bitwise representation.
16630         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
16631         * lib/regexec.c (check_dst_limits_calc_pos_1,
16632         check_subexp_matching_top):
16633         Likewise.
16634         * lib/regex_internal.c (re_string_reconstruct):
16635         Don't assume UCHAR_MAX == 255.
16636         * lib/regex_internal.h (bitset_set_all): Likewise.
16637         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
16638         All uses changed.
16639         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
16640         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
16641         All uses changed.
16642         (BITSET_WORD_MAX): New macro.
16643         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
16644         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
16645         (bitset_empty, bitset_copy):
16646         Prefer sizeof (bitset) to multiplying it out ourselves.
16647         (bitset_not_merge): Remove; unused.
16648         (bitset_contain): Return bool, not unsigned int with one bit on.
16649         All callers changed.
16650         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
16651         alignment than re_node_set; do this by defining a new internal
16652         type struct dests_alloc and using it to allocate memory.
16653
16654 2005-09-05  Bruno Haible  <bruno@clisp.org>
16655
16656         * gnulib-tool (func_import): Fix comparison in handling of symbolic
16657         links.
16658
16659 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
16660
16661         * modules/size_max (Makefile.am): Add size_max.h
16662
16663 2005-09-04  Derek Price  <derek@ximbiot.com>
16664
16665         * gnulib-tool (func_import): Fix reversed $symbolic logic.
16666
16667 2005-09-03  Simon Josefsson  <jas@extundo.com>
16668
16669         * gnulib-tool: Fix typo.
16670
16671 2005-09-03  Simon Josefsson  <jas@extundo.com>
16672
16673         * config/srclist.txt: Add glibc bug 1293.
16674
16675 2005-09-03  Derek Price  <derek@ximbiot.com>
16676
16677         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
16678         From Larry Jones <lawrence.jones@ugs.com>.
16679
16680 2005-09-02  Simon Josefsson  <jas@extundo.com>
16681
16682         * modules/socklen: New file.
16683
16684 2005-09-02  Simon Josefsson  <jas@extundo.com>
16685
16686         * modules/havelib: New module.
16687
16688         * modules/gettext, modules/iconv, modules/lock, modules/readline:
16689         Use havelib.
16690
16691 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16692
16693         Check for arithmetic overflow when calculating sizes, to prevent
16694         some buffer-overflow issues.  These patches are conservative, in the
16695         sense that when I couldn't determine whether an overflow was possible,
16696         I inserted a run-time check.
16697         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
16698         macros.
16699         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
16700         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
16701         (re_xnrealloc, re_x2nrealloc): New inline functions.
16702         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
16703         parse_bracket_exp):
16704         (build_equiv_class, build_charclass): Check for arithmetic overflow
16705         in size expression calculations.
16706         * lib/regex_internal.c (re_string_realloc_buffers):
16707         (build_wcs_upper_buffer, re_node_set_add_intersect):
16708         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
16709         (re_dfa_add_node, register_state): Likewise.
16710         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
16711         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
16712         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
16713         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
16714
16715 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16716
16717         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16718         m4/ulonglong.m4.  Problem reported by Martin Lambers.
16719
16720 2005-09-02  Bruno Haible  <bruno@clisp.org>
16721
16722         Support for lib vs. lib64 distinction on biarch platforms.
16723         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
16724         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
16725         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
16726
16727 2005-09-02  Bruno Haible  <bruno@clisp.org>
16728
16729         * gnulib-tool (import): In the other first-use case, provide defaults
16730         as well.
16731
16732 2005-09-02  Bruno Haible  <bruno@clisp.org>
16733
16734         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
16735         patches not yet found in the latest gettext release.
16736
16737 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16738
16739         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
16740         to avoid a collision with bits/local_lim.h in glibc.
16741         All uses changed.  Problem reported by Dmitry V. Levin in
16742         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
16743
16744         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
16745         bugs in int versus size_t comparisons.
16746         (re_string_context_at): Fix bug where the code assumed that
16747         Idx is signed.
16748
16749         Use bool where appropriate.
16750         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
16751         All callers changed.
16752         (calc_eclosure_iter): Likewise, for ROOT arg.
16753         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
16754         (build_charclass_op): Likewise, for NON_MATCH arg.
16755         * lib/regex_internal.c (re_string_allocate, re_string_construct):
16756         (re_string_construct_common): Likewise, for ICASE arg.
16757         * lib/regexec.c (re_search_2_stub, re_search_stub):
16758         Likewise, for RET_LEN arg.
16759         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
16760         (set_regs): Likewise, for FL_BACKTRACK arg.
16761         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
16762         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
16763         (calc_eclosure_iter, parse_bracket_exp):
16764         Use bool for internal variables that are booleans.
16765         * lib/regexec.c (re_search_internal, check_matching,
16766         proceed_next_node):
16767         (set_regs, build_sifted_states, sift_states_bkref):
16768         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
16769         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
16770         (find_collation_sequence_value):
16771         Likewise.
16772         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
16773         (re_node_set_compare):
16774         Return bool, not int. All callers changed.
16775         * lib/regexec.c (check_halt_node_context, check_dst_limits):
16776         (build_trtable, check_node_accept): Likewise.
16777         * lib/regex_internal.h: Include stdbool.h.
16778
16779         Fix bugs uncovered when converting to bool.
16780         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
16781         failure instead of charging ahead blindly.
16782         * lib/regex_internal.c (register_state): Likewise.
16783         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
16784         for freeing internal storage.
16785         (group_nodes_into_DFA_states): Use unsigned int, not int, for
16786         bitset pieces used as boolean, to avoid undefined behavior
16787         on hosts that do int overflow checking.
16788
16789 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16790
16791         * config/srclist.txt: Add glibc bugs 1285-1287.
16792
16793 2005-09-01  Jim Meyering  <jim@meyering.net>
16794
16795         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
16796         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
16797         Require gl_STAT_MACROS, too.
16798
16799 2005-09-01  Bruno Haible  <bruno@clisp.org>
16800
16801         * gnulib-tool (import): In the first-use case, provide defaults.
16802
16803 2005-09-01  Bruno Haible  <bruno@clisp.org>
16804
16805         * gnulib-tool (func_import): Remove the .tmp files.
16806
16807 2005-09-01  Bruno Haible  <bruno@clisp.org>
16808
16809         * gnulib-tool (func_import): Fix handling of symbolic links.
16810
16811 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16812
16813         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
16814         old glibc regex code mishandles strings longer than 2**31 bytes.
16815         This patch fixes this when the regex code is used in gnulib
16816         (i.e., outside glibc).
16817
16818         This patch should not affect the use of the regex code inside
16819         glibc.  No doubt this problem also needs to be handled for glibc
16820         as well, but the result will be an incompatible change to the
16821         glibc ABI, and the old ABI will have to be supported too.  That
16822         can be the the subject for another patch.
16823
16824         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
16825         governing whether the rest of this patch is active.  By default,
16826         the macro is disabled and the patch has no effect.
16827         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
16828         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
16829         (struct re_pattern_buffer, re_search, re_search_2, re_match):
16830         (re_match_2, re_set_registers): Use the new types.
16831         * lib/regex_internal.h (Idx, re_hashval_t): New types.
16832         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
16833         New macros.
16834         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
16835         (re_string_context_at, bin_tree_t, re_dfastate_t):
16836         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
16837         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
16838         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
16839         (re_string_char_size_at, re_string_wchar_at):
16840         (re_string_elem_size_at):
16841         Use the new types and macros to port to 64-bit hosts.
16842         Use unsigned types for internal values, so that the code
16843         mostly works even for arrays larger than SSIZE_MAX.
16844         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
16845         (search_duplicated_node, calc_eclosure_iter, fetch_number):
16846         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
16847         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
16848         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
16849         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
16850         (calc_inveclosure, parse_dup_op, build_range_exp):
16851         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
16852         (fetch_number, create_token_tree, mark_opt_subexp):
16853         Likewise.
16854         * lib/regex_internal.c (re_string_construct_common,
16855         create_ci_newstate):
16856         (create_cd_newstate, re_string_allocate, re_string_construct):
16857         (re_string_realloc_buffers, build_wcs_upper_buffer):
16858         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
16859         (re_string_reconstruct, re_string_peek_byte_case):
16860         (re_string_fetch_byte_case, re_string_context_at):
16861         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
16862         (re_node_set_init_copy, re_node_set_add_intersect):
16863         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
16864         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
16865         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
16866         (re_acquire_state, re_acquire_state_context, register_state):
16867         Likewise.
16868         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
16869         search_cur_bkref_entry):
16870         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
16871         (re_search_internal, re_search_2_stub, re_search_stub)
16872         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
16873         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
16874         (update_cur_sifted_state, check_dst_limits):
16875         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
16876         (check_subexp_limits, sift_states_bkref, merge_state_array):
16877         (check_subexp_matching_top, get_subexp, get_subexp_sub):
16878         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
16879         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
16880         (expand_bkref_cache, check_node_accept_bytes):
16881         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
16882         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
16883         (acquire_init_state_context, check_halt_node_context):
16884         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
16885         (sift_states_backward, clean_state_log_if_needed):
16886         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
16887         (find_recover_state, transit_state_sb, transit_state_mb):
16888         (transit_state_bkref, build_trtable, match_ctx_clean):
16889         Likewise.
16890         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
16891         to work around an assumption that REG_MISSING is negative.
16892
16893         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
16894         (seek_collating_symbol_entry) [defined _LIBC]:
16895         (lookup_collation_sequence_value) [defined _LIBC]:
16896         (build_range_exp, build_collating_symbol) [defined _LIBC]:
16897         Use prototypes rather than old-style function definitions.
16898         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
16899         (transit_state_sb) [0]:
16900         (find_collation_sequence_value) [defined _LIBC]: Likewise.
16901
16902         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
16903         rm_eo.
16904
16905         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
16906         (optimize_subexps, lower_subexp):
16907         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
16908         since the signed shift might overflow.  Use 1u<<31 instead.
16909         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
16910         Likewise.
16911         * lib/regexec.c (check_dst_limits_calc_pos_1,
16912         check_subexp_matching_top): Likewise.
16913
16914         * lib/regcomp.c (optimize_subexps, lower_subexp):
16915         Use CHAR_BIT rather than 8, for clarity.
16916         * lib/regexec.c (check_dst_limits_calc_pos_1):
16917         (check_subexp_matching_top): Likewise.
16918         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
16919         have to worry about portability issues when shifting it left.
16920         Remove no-longer-needed test for table_size > 0.
16921         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
16922         in a word, as the resulting behavior is undefined.
16923         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
16924         in one case, a <= should have been an <, and in another case the
16925         whole test was missing.
16926         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
16927         the standard name CHAR_BIT.
16928         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
16929         this is not true on one's complement and signed-magnitude hosts.
16930
16931         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
16932         next_last_offset.
16933         (struct re_dfa_t): Remove unused member states_alloc.
16934         * lib/regcomp.c (init_dfa): Don't initialize unused members.
16935
16936 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16937
16938         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
16939         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
16940         and large-file glibc and in 32-bit large-file Solaris.
16941
16942 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16943
16944         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
16945         lengths fit in regoff_t; this isn't true if regoff_t is the same
16946         width as size_t.
16947         * lib/regex.c (re_search_internal): 5th arg is LAST_START
16948         (= START + RANGE) instead of RANGE.  This avoids overflow
16949         problems when regoff_t is the same width as size_t.
16950         All callers changed.
16951         (re_search_2_stub): Check for overflow when adding the
16952         sizes of the two strings.
16953         (re_search_stub): Check for overflow when adding START
16954         to RANGE; if it occurs, substitute the extreme value.
16955
16956 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16957
16958         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
16959
16960 2005-08-31  Jim Meyering  <jim@meyering.net>
16961
16962         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
16963         a pointer-to-const.
16964         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
16965         (register_state): Likewise.
16966         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
16967         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
16968         (group_nodes_into_DFAstates): Likewise.
16969
16970 2005-08-31  Jim Meyering  <jim@meyering.net>
16971
16972         * check-module: Add a FIXME comment.
16973
16974 2005-08-31  Eric Blake  <ebb9@byu.net>
16975
16976         * modules/unistd-safer (Files): Add unistd--.h.
16977         * modules/stdio-safer (Files): Add stdio--.h.
16978
16979 2005-08-31  Derek Price  <derek@ximbiot.com>
16980
16981         * lib/getdelim.c (getdelim): Return EOF on EOF.
16982         Reported by Larry Jones <lawrence.jones@ugs.com>.
16983
16984 2005-08-31  Bruno Haible  <bruno@clisp.org>
16985
16986         Avoid unnecessary diffs in the generated lib/Makefile.am.
16987         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
16988         the generated files.
16989         (func_import): Don't set cmd.
16990
16991 2005-08-31  Bruno Haible  <bruno@clisp.org>
16992
16993         * lib/strstr.c: Include <stddef.h>, for NULL.
16994         * lib/strcasestr.c: Likewise.
16995         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16996
16997 2005-08-31  Bruno Haible  <bruno@clisp.org>
16998
16999         * gnulib-tool: New option --macro-prefix.
17000         (func_import): Use macro_prefix.
17001         (import): Handle option --macro-prefix.
17002
17003 2005-08-31  Bruno Haible  <bruno@clisp.org>
17004
17005         * gnulib-tool (import): Rename most ac_* variables to cached_*.
17006         Also use new variables cached_lgpl, cached_libtool.
17007
17008 2005-08-31  Bruno Haible  <bruno@clisp.org>
17009
17010         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
17011         always instantiating them.
17012
17013 2005-08-31  Bruno Haible  <bruno@clisp.org>
17014
17015         * gnulib-tool (func_import): Read the previous cached settings
17016         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
17017         earlier added by gnulib but are now dropped. Warn when a gnulib file
17018         overwrites a non-gnulib file.
17019
17020 2005-08-31  Bruno Haible  <bruno@clisp.org>
17021
17022         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
17023         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
17024         projects that don't keep autogenerated files in CVS. Put into
17025         actioncmd only the specified modules, not the transitive closure.
17026
17027 2005-08-31  Bruno Haible  <bruno@clisp.org>
17028
17029         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
17030         Create directories that shall be filled.
17031         (import): Don't look for gl_* macros in configure.ac. Recurse across
17032         all directories containing a gnulib-cache.m4 files, if meaningful.
17033
17034 2005-08-31  Bruno Haible  <bruno@clisp.org>
17035
17036         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
17037         (import): Set seen_libtool when we see gl_LIBTOOL.
17038
17039 2005-08-31  Bruno Haible  <bruno@clisp.org>
17040
17041         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
17042         declaration macro definitions from generated gnulib.m4.
17043
17044 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
17045
17046         * lib/iconvme.h: Add prototype for iconv_alloc.
17047
17048 2005-08-29  Simon Josefsson  <jas@extundo.com>
17049
17050         * lib/iconvme.c: Fix errno.
17051
17052 2005-08-29  Bruno Haible  <bruno@clisp.org>
17053
17054         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
17055         that it works when the directory contains spaces.
17056
17057 2005-08-29  Bruno Haible  <bruno@clisp.org>
17058
17059         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
17060
17061 2005-08-29  Bruno Haible  <bruno@clisp.org>
17062
17063         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
17064         Emit more advice.
17065
17066 2005-08-29  Bruno Haible  <bruno@clisp.org>
17067         and Stepan Kasal  <kasal@ucw.cz>
17068
17069         * check-module: If more parameters are given, check each of them
17070         separately; add more exceptions, as noted by Jim Meyering.
17071         (check_module): New procedure.
17072         (%exempt_header): Now contains all exceptions.
17073
17074 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
17075
17076         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
17077
17078 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
17079
17080         * lib/iconvme.c: Split iconv_string into iconv_alloc.
17081
17082 2005-08-28  Bruno Haible  <bruno@clisp.org>
17083
17084         * m4/gnulib-tool.m4: New file.
17085
17086 2005-08-27  Jim Meyering  <jim@meyering.net>
17087
17088         * modules/unistd-safer (Files): Add pipe-safer.c.
17089         * modules/fcntl-safer (Files): Add creat-safer.c.
17090
17091 2005-08-27  Jim Meyering  <jim@meyering.net>
17092
17093         * m4/stdlib-safer.m4: New file.  From coreutils.
17094         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
17095         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
17096         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
17097         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
17098         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
17099
17100 2005-08-27  Jim Meyering  <jim@meyering.net>
17101
17102         * lib/fopen-safer.c: Merge minor changes from coreutils.
17103         * lib/dup-safer.c: Likewise.
17104         * lib/fd-safer.c: Likewise.
17105
17106         Merge from coreutils.
17107         * lib/stdio--.h: New file.
17108         * lib/stdlib--.h: New file.
17109         * lib/mkstemp-safer.c: New file.
17110
17111         GNU tar needs these.
17112         * lib/pipe-safer.c: New file.
17113         * lib/creat-safer.c: New file.
17114         * lib/fcntl--.h (creat): Define to creat_safer.
17115         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
17116         * lib/unistd--.h (pipe): Define to pipe_safer.
17117         * lib/unistd-safer.h: Declare pipe_safer.
17118
17119 2005-08-26  Simon Josefsson  <jas@extundo.com>
17120
17121         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
17122         Haible <bruno@clisp.org>.
17123
17124 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
17125
17126         * lib/regex_internal.h: Remove all references to
17127         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
17128         or better.
17129         (bitset_not, bitset_merge, bitset_not_merge):
17130         (bitset_mask, re_string_allocate, re_string_construct):
17131         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
17132         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
17133         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
17134         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
17135         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17136         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17137         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
17138         (re_acquire_state_context):
17139         Remove unnecessary forward decls.
17140         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
17141         Put __attribute at function definition,
17142         now that the function decl has been removed.
17143         * lib/regex_internal.c (re_string_peek_byte_case):
17144         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
17145         Likewise.
17146
17147 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
17148
17149         * m4/regex.m4: Add AC_PREREQ(2.50).
17150         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
17151
17152 2005-08-25  Simon Josefsson  <jas@extundo.com>
17153
17154         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
17155         __fsetlocking.
17156
17157 2005-08-25  Simon Josefsson  <jas@extundo.com>
17158
17159         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
17160         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
17161         GLIBC specific code.
17162
17163 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17164
17165         Make regex safe for g++.  This fixes one real bug (an "err"
17166         that should have been "*err").  g++ problem reported by
17167         Sam Steingold.
17168         * lib/regex_internal.h (re_calloc): New macro, consistent with
17169         re_malloc etc.  All callers of calloc changed to use re_calloc.
17170         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
17171         not int.  All callers changed.
17172         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
17173         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
17174         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
17175         (find_recover_state): Change "err" to "*err"; this fixes what
17176         appears to be a real bug.
17177         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
17178         versus int.
17179
17180 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17181
17182         * modules/regex (Depends-on): Add malloc, since the code
17183         assumes that !malloc(0) means failure.
17184
17185 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17186
17187         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
17188
17189         alloca modernization/simplification for regex.
17190         * lib/regex.c: Remove portability cruft for alloca.  This no longer
17191         needs to be at the start of the file, and can be moved into
17192         regex_internal.h and simplified.
17193         * lib/regex_internal.h: Include <alloca.h>.
17194         (__libc_use_alloca) [!defined _LIBC]: New macro.
17195         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
17196         now works outside glibc.
17197
17198 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
17199
17200         * config/srclist.txt: Add glibc bugs 1241, 1245.
17201
17202 2005-08-25  Jim Meyering  <jim@meyering.net>
17203
17204         * lib/open-safer.c: Include <config.h>.
17205         Otherwise, we'd lose LARGEFILE support in any file using
17206         e.g. "fcntl--.h"
17207
17208 2005-08-25  Bruno Haible  <bruno@clisp.org>
17209
17210         * m4/minmax.m4: Require autoconf 2.52.
17211         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
17212         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
17213         alternatives of translit over the alphabet.
17214         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
17215
17216 2005-08-24  Simon Josefsson  <jas@extundo.com>
17217
17218         * tests/test-getpass.c: New file.
17219
17220 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17221
17222         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
17223         for GNU regex features.
17224
17225 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17226
17227         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
17228         * lib/regex.h (regerror): Likewise.
17229
17230         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
17231         requires this.  (The code never needed it.)
17232
17233         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
17234         All uses of recently-renamed identifiers changed to use the new,
17235         POSIX-compliant names.  The code will build and run just fine
17236         without these changes, but it's better to eat our own dog food
17237         and use the standard-conforming names.
17238
17239         * lib/regex.h: Fix a multitude of POSIX name space violations.
17240         These changes have an effect only for programs that define
17241         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
17242         do not change anything for programs compiled in the normal way.
17243         Also, there is no effect on the ABI.
17244
17245         (_REGEX_SOURCE): New macro.
17246         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
17247         defined and _GNU_SOURCE is not; this fixes a name space violation.
17248
17249         Rename the following macros to obey POSIX requirements.
17250         The old names are still visible as macros if _REGEX_SOURCE is defined.
17251         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
17252         RE_BACKSLASH_ESCAPE_IN_LISTS.
17253         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
17254         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
17255         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
17256         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
17257         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
17258         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
17259         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
17260         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
17261         (REG_INTERVALS): renamed from RE_INTERVALS.
17262         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
17263         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
17264         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
17265         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
17266         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
17267         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
17268         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
17269         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
17270         RE_UNMATCHED_RIGHT_PAREN_ORD.
17271         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
17272         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
17273         (REG_DEBUG): renamed from RE_DEBUG.
17274         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
17275         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
17276         unusual, since we can't clash with the POSIX REG_ICASE.
17277         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
17278         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
17279         (REG_NO_SUB): renamed from RE_NO_SUB.
17280         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
17281         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
17282         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
17283         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
17284         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
17285         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
17286         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
17287         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
17288         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
17289         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
17290         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
17291         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
17292         RE_SYNTAX_POSIX_MINIMAL_BASIC.
17293         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
17294         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
17295         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
17296         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
17297         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
17298         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
17299         (REG_FIXED): Renamed from REGS_FIXED.
17300         (REG_NREGS): Renamed from RE_NREGS.
17301
17302         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
17303         of other REG_* macros, since POSIX says the user is allowed to
17304         #undef these macros selectively.
17305
17306         (reg_errcode_t): Update comment stating what other tables need
17307         to be consistent.
17308
17309         Rename the following enum values to obey POSIX requirements.
17310         The old names are still visible as macros.
17311         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
17312         is not defined, since GNU is supposed to be a superset of POSIX as
17313         much as possible, and since we want reg_errcode_t to be a signed
17314         type for implementation consistency.
17315         (_REG_NOERROR): Renamed from REG_NOERROR.
17316         (_REG_NOMATCH): Renamed from REG_NOMATCH.
17317         (_REG_BADPAT): Renamed from REG_BADPAT.
17318         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
17319         (_REG_ECTYPE): Renamed from REG_ECTYPE.
17320         (_REG_EESCAPE): Renamed from REG_EESCAPE.
17321         (_REG_ESUBREG): Renamed from REG_ESUBREG.
17322         (_REG_EBRACK): Renamed from REG_EBRACK.
17323         (_REG_EPAREN): Renamed from REG_EPAREN.
17324         (_REG_EBRACE): Renamed from REG_EBRACE.
17325         (_REG_BADBR): Renamed from REG_BADBR.
17326         (_REG_ERANGE): Renamed from REG_ERANGE.
17327         (_REG_ESPACE): Renamed from REG_ESPACE.
17328         (_REG_BADRPT): Renamed from REG_BADRPT.
17329         (_REG_EEND): Renamed from REG_EEND.
17330         (_REG_ESIZE): Renamed from REG_ESIZE.
17331         (_REG_ERPAREN): Renamed from REG_ERPAREN.
17332         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
17333         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
17334         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
17335         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
17336
17337         (_REG_RE_NAME, _REG_RM_NAME): New macros.
17338         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
17339         changed.  But support the old name if the new one is not defined
17340         and if _REGEX_SOURCE.
17341
17342         Change the following member names in struct re_pattern_buffer.
17343         The old names are still supported if !_REGEX_SOURCE.
17344         The new names are always supported, regardless of _REGEX_SOURCE.
17345         (re_buffer): Renamed from buffer.
17346         (re_allocated): Renamed from allocated.
17347         (re_used): Renamed from used.
17348         (re_syntax): Renamed from syntax.
17349         (re_fastmap): Renamed from fastmap.
17350         (re_translate): Renamed from translate.
17351         (re_can_be_null): Renamed from can_be_null.
17352         (re_regs_allocated): Renamed from regs_allocated.
17353         (re_fastmap_accurate): Renamed from fastmap_accurate.
17354         (re_no_sub): Renamed from no_sub.
17355         (re_not_bol): Renamed from not_bol.
17356         (re_not_eol): Renamed from not_eol.
17357         (re_newline_anchor): Renamed from newline_anchor.
17358
17359         Change the following member names in struct re_registers.
17360         The old names are still supported if !_REGEX_SOURCE.
17361         The new names are always supported, regardless of _REGEX_SOURCE.
17362         (rm_num_regs): Renamed from num_regs.
17363         (rm_start): Renamed from start.
17364         (rm_end): Renamed from end.
17365
17366         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
17367         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
17368         Prepend __ to parameter names.
17369
17370         Undo yesterday's changes.
17371
17372 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17373
17374         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
17375         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
17376         lib/regex.c.
17377
17378 2005-08-24  Jim Meyering  <jim@meyering.net>
17379
17380         Sync from coreutils.
17381         * m4/fcntl-safer.m4: New file.
17382
17383         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
17384         and object files for this module.
17385
17386 2005-08-24  Jim Meyering  <jim@meyering.net>
17387
17388         Sync from coreutils.
17389         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
17390
17391 2005-08-24  Jim Meyering  <jim@meyering.net>
17392
17393         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
17394         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
17395
17396 2005-08-24  Jim Meyering  <jim@meyering.net>
17397
17398         * modules/fcntl-safer: New module.
17399         * modules/fts (Depends-on): Add fcntl-safer.
17400         * MODULES.html.sh (File descriptor based Input/Output):
17401         Add fcntl-safer.
17402
17403 2005-08-24  Bruno Haible  <bruno@clisp.org>
17404
17405         Support for unit test modules.
17406         * modules/README: Mention tests modules.
17407         * modules/TEMPLATE-TESTS: New file.
17408         * gnulib-tool: New options --extract-tests-module, --with-tests and
17409         --tests-base (unused for the moment).
17410         (testsbase, inctests): New variables.
17411         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
17412         (func_verify_module): Exclude TEMPLATE-TESTS.
17413         (func_verify_nontests_module, func_verify_tests_module): New functions.
17414         (func_get_dependencies): Add implicit dependency for tests modules.
17415         (func_get_tests_module): New function.
17416         (func_modules_transitive_closure): When --with-tests was specified,
17417         include the unit tests as well, unless explicitly avoided.
17418         (func_emit_lib_Makefile_am): Ignore the tests modules here.
17419         (func_emit_tests_Makefile_am): New function.
17420         (func_create_testdir): When --with-tests was specified, emit a
17421         tests/ directory.
17422         * MODULES.html.sh (Future developments): Update.
17423
17424 2005-08-24  Bruno Haible  <bruno@clisp.org>
17425
17426         * modules/tls-tests: New file.
17427         * tests/test-tls.c: New file, from GNU gettext.
17428
17429 2005-08-24  Bruno Haible  <bruno@clisp.org>
17430
17431         * modules/lock-tests: New file.
17432         * tests/test-lock.c: New file, from GNU gettext.
17433
17434 2005-08-24  Bruno Haible  <bruno@clisp.org>
17435
17436         * lib/lock.h: Add multiple inclusion guard.
17437         * lib/tls.h: Add multiple inclusion guard.
17438
17439 2005-08-24  Bruno Haible  <bruno@clisp.org>
17440
17441         * gnulib-tool: Add support for the --aux-dir option to
17442         --create-testdir, --create-megatestdir, --test, --megatest.
17443         (func_create_testdir, func_create_megatestdir): Optionally emit a
17444         AC_CONFIG_AUX_DIR directive.
17445         (create-testdir, create-megatestdir, test, megatest): Provide a
17446         default value for $auxdir.
17447
17448 2005-08-24  Bruno Haible  <bruno@clisp.org>
17449
17450         * gnulib-tool (import): Use compound statement instead of subshell
17451         where possible.
17452
17453 2005-08-24  Bruno Haible  <bruno@clisp.org>
17454
17455         * gnulib-tool (import): Change --aux-dir default to "build-aux".
17456
17457 2005-08-24  Bruno Haible  <bruno@clisp.org>
17458
17459         * gnulib-tool (func_version): Update.
17460
17461 2005-08-24  Bruno Haible  <bruno@clisp.org>
17462
17463         * gnulib-tool (func_import, func_create_testdir,
17464         func_create_megatestdir): Quote all autoconf macro arguments.
17465
17466 2005-08-24  Bruno Haible  <bruno@clisp.org>
17467
17468         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
17469         option --force, because --force causes the aclocal.m4 of each
17470         subdirectory to be newer than the corresponding config.h.in.
17471
17472 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17473
17474         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
17475         All contents moved to gl_REGEX.
17476         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
17477         assume that it does.
17478
17479 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17480
17481         * lib/regex.h (REG_NOSYS)
17482         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
17483         Define, since POSIX requires it as of 2001.
17484         (_REG_ENOSYS)
17485         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
17486         New private symbol, used to keep the enum signed in all cases.
17487         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
17488         Youngman in
17489         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
17490
17491         * lib/regex_internal.c (re_string_skip_chars, register_state):
17492         (calc_state_hash):
17493         Remove forward decls; no longer needed now that we use prototypes.
17494         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
17495         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
17496         (clean_state_log_if_needed): Likewise.
17497
17498 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17499
17500         * config/srclist.txt: Add glibc bugs 1231-1233.
17501
17502 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17503
17504         Fix problems reported by Sam Steingold in
17505         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
17506         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
17507         assumed that reg_errcode_t is a signed type, which is not
17508         necessarily true if _XOPEN_SOURCE is not defined.
17509         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
17510         since some compilers warn about it otherwise.
17511
17512 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17513
17514         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
17515         (init_word_char, create_initial_state, duplicate_node_closure):
17516         (fetch_token, peek_token_bracket, build_range_exp):
17517         (build_collating_symbol): Remove forward decls; no longer needed
17518         now that we use prototypes.
17519
17520         * lib/regcomp.c:
17521         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
17522         (re_compile_fastmap_iter, regcomp, regerror, regfree):
17523         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
17524         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
17525         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
17526         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
17527         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
17528         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
17529         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
17530         (build_range_exp, build_collating_symbol, parse_bracket_exp):
17531         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
17532         (build_charclass, build_charclass_op, fetch_number, create_tree):
17533         (create_token_tree, mark_opt_subexp, duplicate_tree):
17534         Use prototypes rather than old-style definitions.
17535
17536         * lib/regex_internal.c:
17537         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
17538         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
17539         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17540         (re_string_reconstruct, re_string_peek_byte_case):
17541         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
17542         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17543         (re_node_set_init_copy, re_node_set_add_intersect):
17544         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17545         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17546         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17547         (re_acquire_state, re_acquire_state_context, register_state):
17548         (create_ci_newstate, create_cd_newstate, free_state):
17549         Likewise.
17550         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
17551         re_search_2):
17552         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
17553         (re_search_internal, prune_impossible_nodes):
17554         (acquire_init_state_context, check_matching, static):
17555         (check_halt_node_context, check_halt_state_context, proceed_next_node):
17556         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
17557         (update_regs, sift_states_backward, build_sifted_states):
17558         (clean_state_log_if_needed, merge_state_array):
17559         (update_cur_sifted_state, add_epsilon_src_nodes):
17560         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
17561         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
17562         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
17563         (find_recover_state, check_subexp_matching_top, transit_state_mb):
17564         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
17565         (check_arrival, check_arrival_add_next_nodes):
17566         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17567         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17568         (check_node_accept_bytes, check_node_accept, extend_buffers):
17569         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
17570         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
17571         (sift_ctx_init):
17572         Likewise.
17573
17574         * lib/regex_internal.h:
17575         (re_string_allocate, re_string_construct, re_string_reconstruct):
17576         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
17577         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
17578         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
17579         (re_string_context_at, re_string_peek_byte_case):
17580         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
17581         is defined, since we now use prototypes always.
17582
17583         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
17584         C89 or better.  All uses removed.
17585
17586 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17587
17588         * config/srclist.txt: Add glibc bugs 1220-1227.
17589
17590 2005-08-20  Jim Meyering  <jim@meyering.net>
17591
17592         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
17593         of unused local, dfa.
17594
17595 2005-08-20  Bruno Haible  <bruno@clisp.org>
17596
17597         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
17598
17599 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17600
17601         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
17602         (re_node_set_insert_last, re_dfa_add_node):
17603         Rename local variables to avoid GCC shadowing warnings.
17604
17605 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17606
17607         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
17608         [defined lint]: Suppress bogus uninitialized-variable warnings.
17609
17610         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
17611         and let the caller return REG_ESPACE if out of space.  This
17612         removes an uninitialied-variable warning with GCC 4.0.1, and also
17613         avoids taking the address of a local variable.  All callers
17614         changed.
17615
17616 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17617
17618         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
17619         $LIBCSRC/posix/regexec.c.
17620         Add glibc bug 1217 for regcomp.c.
17621
17622 2005-08-19  Jim Meyering  <jim@meyering.net>
17623
17624         * lib/regexec.c (proceed_next_node): Redo local variables to
17625         avoid GCC shadowing warnings.
17626
17627 2005-08-18  Bruno Haible  <bruno@clisp.org>
17628
17629         * lib/strstr.c (strstr): Fix return value in multibyte case.
17630         * lib/strcasestr.c (strcasestr): Likewise.
17631
17632 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17633
17634         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
17635
17636 2005-08-17  Jim Meyering  <jim@meyering.net>
17637
17638         Make the %s format (seconds since the epoch) work for a negative
17639         number and when used with a zero-padded field width, e.g. %015s.
17640
17641         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
17642         label so that it precedes the code to set `digits'.  Otherwise,
17643         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
17644         print `00-22'.  Now, it prints `-0022', as it should.
17645
17646 2005-08-17  Bruno Haible  <bruno@clisp.org>
17647
17648         * modules/strstr (Files): Add m4/mbrtowc.m4.
17649         (Depends-on): Add mbuiter.
17650
17651 2005-08-17  Bruno Haible  <bruno@clisp.org>
17652
17653         * modules/strcasestr: New file.
17654         * MODULES.html.sh (String handling, based on ANSI C 89): Add
17655         strcasestr.
17656
17657 2005-08-17  Bruno Haible  <bruno@clisp.org>
17658
17659         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
17660
17661 2005-08-17  Bruno Haible  <bruno@clisp.org>
17662
17663         * modules/mbuiter: New file.
17664         * MODULES.html.sh (Extended multibyte and wide character utilities):
17665         Add mbuiter.
17666
17667 2005-08-17  Bruno Haible  <bruno@clisp.org>
17668
17669         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
17670         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
17671
17672 2005-08-17  Bruno Haible  <bruno@clisp.org>
17673
17674         * m4/strcasestr.m4: New file.
17675
17676 2005-08-17  Bruno Haible  <bruno@clisp.org>
17677
17678         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
17679         * lib/strstr.c: Completely rewritten, with multibyte locale support.
17680
17681 2005-08-17  Bruno Haible  <bruno@clisp.org>
17682
17683         * lib/strcasestr.h: New file.
17684         * lib/strcasestr.c: New file.
17685
17686 2005-08-17  Bruno Haible  <bruno@clisp.org>
17687
17688         * lib/strcasecmp.c: Use mbuiter.h.
17689
17690 2005-08-17  Bruno Haible  <bruno@clisp.org>
17691
17692         * lib/mbuiter.h: New file.
17693
17694 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17695
17696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
17697         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
17698         and gl_GETOPT are both invoked via different paths (as happens
17699         with GNU tar CVS because it uses both argp and getopt), the former
17700         wins.
17701
17702 2005-08-16  Bruno Haible  <bruno@clisp.org>
17703
17704         * modules/tls: New file.
17705         * MODULES.html.sh (Multithreading): Add tls.
17706
17707 2005-08-16  Bruno Haible  <bruno@clisp.org>
17708
17709         * modules/strnlen1: New file.
17710         * MODULES.html.sh (String handling): Add strnlen1.
17711
17712 2005-08-16  Bruno Haible  <bruno@clisp.org>
17713
17714         * modules/strcase (Files): Add m4/mbrtowc.m4.
17715         (Depends-on): Add strnlen1, mbchar.
17716
17717 2005-08-16  Bruno Haible  <bruno@clisp.org>
17718
17719         * modules/mbiter: New file.
17720         * MODULES.html.sh (Extended multibyte and wide character utilities):
17721         Add mbiter.
17722
17723 2005-08-16  Bruno Haible  <bruno@clisp.org>
17724
17725         * modules/mbfile: New file.
17726         * MODULES.html.sh (Extended multibyte and wide character utilities):
17727         Add mbfile.
17728
17729 2005-08-16  Bruno Haible  <bruno@clisp.org>
17730
17731         * modules/mbchar: New file.
17732         * MODULES.html.sh (Extended multibyte and wide character utilities):
17733         New section.
17734
17735 2005-08-16  Bruno Haible  <bruno@clisp.org>
17736
17737         * m4/tls.m4: New file, from GNU gettext.
17738
17739 2005-08-16  Bruno Haible  <bruno@clisp.org>
17740
17741         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
17742         always.
17743         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
17744
17745 2005-08-16  Bruno Haible  <bruno@clisp.org>
17746
17747         * m4/mbiter.m4: New file.
17748
17749 2005-08-16  Bruno Haible  <bruno@clisp.org>
17750
17751         * m4/mbfile.m4: New file.
17752
17753 2005-08-16  Bruno Haible  <bruno@clisp.org>
17754
17755         * m4/mbchar.m4: New file.
17756
17757 2005-08-16  Bruno Haible  <bruno@clisp.org>
17758
17759         * lib/tls.h: New file, from GNU gettext.
17760         * lib/tls.c: New file, from GNU gettext.
17761
17762 2005-08-16  Bruno Haible  <bruno@clisp.org>
17763
17764         * lib/strnlen1.h: New file.
17765         * lib/strnlen1.c: New file.
17766
17767 2005-08-16  Bruno Haible  <bruno@clisp.org>
17768
17769         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
17770         (mbi_init): Update.
17771         (mbi_avail, mbi_advance): Let the iteration end before the terminating
17772         NUL byte, not after it.
17773
17774 2005-08-16  Bruno Haible  <bruno@clisp.org>
17775
17776         * lib/strcase.h (strcasecmp): Add note in comments.
17777         * lib/strncasecmp.c: Use code from strcasecmp.c.
17778         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
17779         (strcasecmp): Work correctly in multibyte locales.
17780
17781 2005-08-16  Bruno Haible  <bruno@clisp.org>
17782
17783         * lib/mbiter.h: New file.
17784
17785 2005-08-16  Bruno Haible  <bruno@clisp.org>
17786
17787         * lib/mbfile.h: New file.
17788
17789 2005-08-16  Bruno Haible  <bruno@clisp.org>
17790
17791         * lib/mbchar.h: New file.
17792         * lib/mbchar.c: New file.
17793
17794 2005-08-16  Bruno Haible  <bruno@clisp.org>
17795
17796         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
17797         the valid ones. Makes the comparison operations transitive:
17798         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
17799         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
17800
17801 2005-08-15  Simon Josefsson  <jas@extundo.com>
17802
17803         * modules/ssize_t (License): Change to 'unlimited'.
17804
17805         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
17806
17807 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17808
17809         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
17810         Add comments for each pending glibc patch.
17811
17812 2005-08-15  Bruno Haible  <bruno@clisp.org>
17813
17814         * lib/regex.h (__restrict_arr): Don't define to __restrict if
17815         __cplusplus is defined.
17816
17817 2005-08-14  Jim Meyering  <jim@meyering.net>
17818
17819         Sync from coreutils.
17820
17821         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
17822         Use the hash-table-based cycle-detection code not just when
17823         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
17824         Reported by James Youngman in
17825         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
17826         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
17827         FTS_TIGHT_CYCLE_CHECK.
17828         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
17829         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
17830         once again.
17831         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
17832         * lib/fts.c (fd_safer): Remove decl.
17833         Include fcntl--.h rather than unistd-safer.h
17834         (fts_safe_changedir): Don't call fd_safer; no longer needed
17835         now that we include fcntl--.h.
17836
17837 2005-08-12  Simon Josefsson  <jas@extundo.com>
17838
17839         * modules/getndelim2: Use ssize_t module.
17840         * modules/getnline: Likewise.
17841         * modules/safe-read: Likewise.
17842         * modules/xreadlink: Likewise.
17843
17844         * modules/ssize_t: New file.
17845
17846 2005-08-12  Simon Josefsson  <jas@extundo.com>
17847
17848         * m4/readline.m4: Look for termcap, curses or ncurses if required.
17849
17850 2005-08-12  Simon Josefsson  <jas@extundo.com>
17851
17852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17853         ssize_t.
17854
17855 2005-08-12  Simon Josefsson  <jas@extundo.com>
17856
17857         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
17858         readline, getdelim and check_version.
17859         (Support for systems lacking ISO C 99: Sizes of integer types):
17860         Add size_max.
17861
17862 2005-08-12  Bruno Haible  <bruno@clisp.org>
17863
17864         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
17865
17866 2005-08-11  Simon Josefsson  <jas@extundo.com>
17867
17868         * modules/readline: New file.
17869
17870         * modules/strnlen (Files): Add strnlen.h.
17871
17872 2005-08-11  Simon Josefsson  <jas@extundo.com>
17873
17874         * m4/readline.m4: New file.
17875
17876 2005-08-11  Simon Josefsson  <jas@extundo.com>
17877
17878         * lib/readline.h, readline.c: New file.
17879
17880 2005-08-11  Simon Josefsson  <jas@extundo.com>
17881
17882         * doc/gnulib.texi (Initial import, Finishing touches): Mention
17883         gl_AVOID.
17884
17885 2005-08-11  Bruno Haible  <bruno@clisp.org>
17886
17887         * lib/strnlen.h (strnlen): Change parameter name to match comment.
17888
17889 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
17890
17891         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
17892
17893 2005-08-10  Simon Josefsson  <jas@extundo.com>
17894
17895         * tests/test-iconvme.c: New file.
17896
17897 2005-08-10  Simon Josefsson  <jas@extundo.com>
17898
17899         * m4/strnlen.m4: New file.
17900
17901         * m4/strndup.m4: Don't check for strnlen declaration, done in
17902         strnlen.m4.
17903
17904 2005-08-10  Simon Josefsson  <jas@extundo.com>
17905
17906         * lib/strndup.c: Use strnlen.h.
17907
17908         * lib/strnlen.h: New file.
17909
17910 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
17911
17912         * README: Typos.
17913
17914 2005-08-02  Simon Josefsson  <jas@extundo.com>
17915
17916         * modules/readline: New file.
17917
17918 2005-08-02  Simon Josefsson  <jas@extundo.com>
17919
17920         * modules/getdelim: New file.
17921
17922         * modules/getline: Rewrite, don't use getndelim2.
17923
17924 2005-08-02  Simon Josefsson  <jas@extundo.com>
17925
17926         * m4/getline.m4: Separate out getdelim stuff into separate module.
17927
17928         * m4/getdelim.m4: New file.
17929
17930 2005-08-02  Simon Josefsson  <jas@extundo.com>
17931
17932         * lib/getline.h, getline.c: Rewrite.
17933
17934         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
17935
17936 2005-07-31  Bruno Haible  <bruno@clisp.org>
17937
17938         * lib/lock.h (gl_lock_initializer): New macro.
17939         (gl_lock_define_initialized): Use it.
17940         (gl_rwlock_initializer): New macro.
17941         (gl_rwlock_define_initialized): Use it.
17942         (gl_recursive_lock_initializer): New macro.
17943         (gl_recursive_lock_define_initialized): Use it.
17944
17945 2005-07-30  Karl Berry  <karl@gnu.org>
17946
17947         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
17948         Report from Ben Pfaff, regarding getopt.
17949
17950 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
17951
17952         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
17953         normal way.
17954         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
17955         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
17956         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
17957         (gl_GETOPT): Use the new macros.  Most of the implementation
17958         is moved to the new macros.  This is for programs like Emacs
17959         that don't want all the functionality of gl_GETOPT.
17960
17961 2005-07-26  Bruno Haible  <bruno@clisp.org>
17962
17963         * m4/lock.m4: Update from GNU gettext.
17964
17965 2005-07-26  Bruno Haible  <bruno@clisp.org>
17966
17967         * lib/lock.h: Update from GNU gettext.
17968         * lib/lock.c: Update from GNU gettext.
17969
17970 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
17971
17972         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
17973         obsolescent AC_TRY_RUN.  Include the default includes files, for
17974         'exit'.
17975
17976 2005-07-24  Bruno Haible  <bruno@clisp.org>
17977
17978         * modules/visibility: New file.
17979         * MODULES.html.sh (Misc): Add visibility.
17980
17981 2005-07-24  Bruno Haible  <bruno@clisp.org>
17982
17983         * m4/visibility.m4: New file.
17984
17985 2005-07-24  Bruno Haible  <bruno@clisp.org>
17986
17987         * doc/visibility.texi: New file.
17988
17989 2005-07-22  Bruno Haible  <bruno@clisp.org>
17990
17991         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
17992         $(ALLOCA_H), redundant through BUILT_SOURCES.
17993         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
17994         redundant through BUILT_SOURCES.
17995         * modules/byteswap (Makefile.am): Remove explicit dependency on
17996         $(BYTESWAP_H), redundant through BUILT_SOURCES.
17997         * modules/fnmatch (Makefile.am): Remove explicit dependency on
17998         $(FNMATCH_H), redundant through BUILT_SOURCES.
17999         * modules/getopt (Makefile.am): Remove explicit dependency on
18000         $(GETOPT_H), redundant through BUILT_SOURCES.
18001         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
18002         redundant through BUILT_SOURCES.
18003         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
18004         redundant through BUILT_SOURCES.
18005         * modules/stdbool (Makefile.am): Remove explicit dependency on
18006         $(STDBOOL_H), redundant through BUILT_SOURCES.
18007         * modules/stdint (Makefile.am): Remove explicit dependency on
18008         $(STDINT_H), redundant through BUILT_SOURCES.
18009         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
18010         Remove explicit dependency on $(SYSEXITS_H).
18011         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
18012
18013 2005-07-18  Simon Josefsson  <jas@extundo.com>
18014
18015         * lib/check-version.c (check_version): Accept identical versions too.
18016
18017 2005-07-18  Bruno Haible  <bruno@clisp.org>
18018
18019         * modules/lock: New file.
18020         * MODULES.html.sh (Multithreading): New section.
18021
18022 2005-07-18  Bruno Haible  <bruno@clisp.org>
18023
18024         * m4/lock.m4: New file, from GNU gettext.
18025
18026 2005-07-18  Bruno Haible  <bruno@clisp.org>
18027
18028         * lib/lock.h: New file, from GNU gettext.
18029         * lib/lock.c: New file, from GNU gettext.
18030
18031 2005-07-18  Bruno Haible  <bruno@clisp.org>
18032
18033         * lib/lock.h (gl_once_t): New type.
18034         (gl_once_define, gl_once): New macros.
18035         * lib/lock.c (fresh_once): New variable.
18036         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
18037         functions.
18038
18039 2005-07-16  Simon Josefsson  <jas@extundo.com>
18040
18041         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
18042         workaround, suggested by Bruno.
18043
18044 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18045
18046         * modules/xalloc (Depends-on): Add xalloc-die.
18047         * modules/xvasprintf (Depends-on): Add xalloc-die.
18048
18049 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18050
18051         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
18052         with a minor change.
18053
18054 2005-07-15  Bruno Haible  <bruno@clisp.org>
18055
18056         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
18057         When using lib/poll.c, define poll as rpl_poll.
18058
18059 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
18060
18061         * modules/argp (Depends-on): Remove unlocked-io.
18062
18063 2005-07-14  Derek Price  <derek@ximbiot.com>
18064
18065         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
18066         for glob symlink bug.
18067
18068 2005-07-14  Bruno Haible  <bruno@clisp.org>
18069
18070         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
18071         Instead, test for *_unlocked function declarations directly.
18072
18073 2005-07-11  Simon Josefsson  <jas@extundo.com>
18074
18075         * modules/size_max: New file.
18076
18077         * modules/xsize: Depend on size_max module for size_max.m4.
18078
18079 2005-07-11  Simon Josefsson  <jas@extundo.com>
18080
18081         * lib/size_max.h: New file.
18082
18083 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
18084
18085         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
18086         copyright symbol and the year.
18087         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
18088         (version_etc_va): Use parameterized copyright notice.
18089         Reword to conform to the current GNU coding standards.
18090
18091 2005-07-11  Karl Berry  <karl@gnu.org>
18092
18093         * doc/gnulib.texi (Quoting): new node.
18094         (Initial import): more info, from Patrice.
18095
18096 2005-07-11  Bruno Haible  <bruno@clisp.org>
18097
18098         * gnulib-tool (func_usage): Document option --avoid.
18099         (Command line options): Handle --avoid.
18100         (func_acceptable): New function.
18101         (func_modules_transitive_closure): Use it.
18102
18103 2005-07-11  Bruno Haible  <bruno@clisp.org>
18104
18105         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
18106         Reported by Jim Meyering.
18107
18108 2005-07-10  Bruno Haible  <bruno@clisp.org>
18109
18110         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
18111         Needed when size_t is smaller than 'unsigned int'.
18112         Reported by Paul Eggert.
18113
18114 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18115
18116         * modules/argp (Depends-on): Add unlocked-io
18117
18118 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18119
18120         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
18121         block of defines.
18122
18123 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18124
18125         * config/srclist.txt: Comment out regcomp.c, since we have a porting
18126         fix now.
18127
18128 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
18129         and Paul Eggert  <eggert@cs.ucla.edu>
18130
18131         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
18132         in wint_t, not wchar_t.  Remove now-unnecessary cast.
18133
18134 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18135
18136         * modules/regex (Files): Add lib/regex_internal.c,
18137         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
18138         (Depends-on): Add extensions.
18139         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
18140
18141 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18142
18143         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
18144         pathconf.
18145         * m4/same.m4 (gl_SAME): Likewise.
18146         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
18147
18148         * m4/regex.m4: Adjust to new libc regex implementation.
18149         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
18150         all the .c and .h parts of (the new) regex.
18151         Quote the m4 stuff better.
18152         Check for RE_ICASE bug of old gnulib.
18153         Check for REG_STARTEND of recent libc.
18154         Rename local variables from jm_* to gl_*.
18155         Quote operand of "test -f".
18156         Say "recent enough" version of libc, not "version 2".
18157         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
18158         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
18159         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
18160         Remove check for btowc, isascii.
18161         Require AM_LANGINFO_CODESET.
18162
18163 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18164
18165         * lib/regex.c, regex.h: Sync from libc.
18166         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
18167         * lib/regexec.c:
18168         New files, synced from libc, except that regex_internal.h
18169         currently has a small porting fix.
18170
18171 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18172
18173         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
18174         regex_internal.c, regexec.c.
18175         Add regex_internal.h too, but as a comment, since the libc version
18176         is currently broken in gnulib mode.
18177
18178 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18179
18180         Support programs like Emacs that use gnulib but not gettext.
18181         * MODULES.html.sh (Internationalization functions): Add gettext-h.
18182         * modules/gettext-h: New file.
18183         * modules/gettext (Files): Remove lib/gettext.h.
18184         (Depends-on): Add gettext-h.
18185         (Makefile.am): Remove lib_SOURCES.
18186         * modules/argmatch, modules/c-stack, modules/closeout:
18187         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
18188         * modules/execute, modules/file-type, modules/getaddrinfo:
18189         * modules/getopt, modules/human, modules/javacomp:
18190         * modules/javaexec, modules/mkdir-p, modules/obstack:
18191         * modules/openat, modules/pagealign_alloc, modules/pipe:
18192         * modules/quotearg, modules/regex, modules/rpmatch:
18193         * modules/unicodeio, modules/userspec, modules/version-etc:
18194         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
18195         * modules/xsetenv:
18196         Depend on gettext-h, not gettext.
18197
18198 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18199
18200         * gnulib-tool (func_import): Add support for 'public domain' license.
18201         * modules/alloca, modules/atexit, modules/memmove:
18202         Now public domain, not GPL.
18203         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
18204         * modules/realloc, modules/strerror, modules/strtod:
18205         Now LGPL, not GPL.
18206
18207 2005-07-05  Bruno Haible  <bruno@clisp.org>
18208
18209         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
18210         autoconf CVS. Needed for mingw.
18211
18212 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18213
18214         Remove the dependency of the strftime module on the tzset module.
18215         * modules/strftime (Depends-on): Remove dependency on tzset.
18216
18217 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18218
18219         Remove the dependency of the strftime module on the tzset module.
18220         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
18221         gl_FUNC_TZSET_CLOBBER.
18222
18223 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18224
18225         Remove the dependency of the strftime module on the tzset module.
18226         * lib/strftime.c (my_strftime)
18227         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
18228         Copy the input structure, to work around some of the bug with
18229         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
18230         Solaris releases, you should also use the tzset module, but we won't
18231         require it as a dependency any more since we don't want LGPLed code
18232         to depend on GPLed code.
18233
18234 2005-07-02  Jim Meyering  <jim@meyering.net>
18235
18236         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
18237         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
18238         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
18239         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
18240
18241 2005-07-02  Jim Meyering  <jim@meyering.net>
18242
18243         * lib/backupfile.c (backup_args): Change a `0' to NULL.
18244
18245 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18246
18247         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
18248         declares only 'struct timespec;' (!).
18249
18250 2005-07-01  Jim Meyering  <jim@meyering.net>
18251
18252         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
18253         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
18254         * lib/save-cwd.c, tempname.c:
18255         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18256         and don't include <sys/file.h>).
18257
18258 2005-06-29  Jim Meyering  <jim@meyering.net>
18259
18260         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
18261         type name.  Use the variable name instead.
18262         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
18263         Likewise.
18264
18265 2005-06-28  Simon Josefsson  <jas@extundo.com>
18266
18267         * modules/check-version (Files): Add check-version.m4.
18268
18269 2005-06-28  Simon Josefsson  <jas@extundo.com>
18270
18271         * m4/check-version.m4: New file, suggested by Jim Meyering
18272         <jim@meyering.net>.
18273
18274 2005-06-28  Simon Josefsson  <jas@extundo.com>
18275
18276         * lib/check-version.h, lib/check-version.c: New files.
18277
18278 2005-06-28  Simon Josefsson  <jas@extundo.com>
18279
18280         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
18281         collision with global variable.  Better indentation.  Don't
18282         increment buffer pointer beyond buffer end.  Based on comments
18283         from Paul Eggert <eggert@cs.ucla.edu>.
18284
18285         * lib/base64.h: Indent.
18286
18287 2005-06-28  Simon Josefsson  <jas@extundo.com>
18288
18289         * doc/gnulib.texi (Library version handling): New section.
18290
18291 2005-06-28  Jim Meyering  <jim@meyering.net>
18292
18293         * check-module (find_included_lib_files): Hard-code another
18294         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
18295         but modules/fts-lgpl (correctly) does not list those files.
18296
18297         * modules/canonicalize (Files): Add lib/pathmax.h.
18298
18299 2005-06-25  Simon Josefsson  <jas@extundo.com>
18300
18301         * modules/check-version: New file.
18302
18303 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18304
18305         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
18306         initializer of struct addrinfo, as an indication that we don't
18307         care how many members the structure has.
18308
18309 2005-06-24  Derek Price  <derek@ximbiot.com>
18310         and Bruno Haible  <bruno@clisp.org>
18311
18312         Remove stat module & update lstat.
18313         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
18314         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18315         * m4/stat.m4: Remove this file.
18316
18317 2005-06-24  Derek Price  <derek@ximbiot.com>
18318         and Bruno Haible  <bruno@clisp.org>
18319
18320         Remove stat module & update lstat.
18321         * lib/stat.c: Remove this file...
18322         (slash_aware_lstat): ...moving this content and its support...
18323         * lib/lstat.c (rpl_lstat): ...into here.
18324         * lib/lstat.h: New file.
18325
18326 2005-06-24  Derek Price  <derek@ximbiot.com>
18327         and Bruno Haible  <bruno@clisp.org>
18328
18329         Remove stat module & update lstat.
18330         * config/srclist.txt (libc sources): Remove stat.
18331
18332 2005-06-24  Derek Price  <derek@ximbiot.com>
18333         and Bruno Haible  <bruno@clisp.org>
18334
18335         Remove stat module & update lstat.
18336         * MODULES.html.sh (stat): Remove.
18337         * MODULES.html: Regenerated.
18338         * modules/lstat (Description): Correct function name.
18339         (Files): Add "lstat.h".
18340         (Depends-on): Remove stat, add xalloc, stat-macros.
18341         * modules/stat: Remove this file.
18342         (Include): Add "lstat.h", remove <sys/stat.h>.
18343
18344 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18345
18346         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
18347         (ranged_convert): Don't save conversion in a temporary struct.
18348         This causes a warning with GCC 4.0.0, and anyway in the typical
18349         case it's not worth the extra 100 bytes or so of code.
18350         (ranged_convert, __mktime_internal): When calling a function via a
18351         pointer P, use P () rather than (*P) (), as we now assume C89 or
18352         better.
18353
18354 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18355
18356         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
18357         "who -r" failed to give output.  Problem reported by Tim Waugh.
18358
18359         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
18360         (xcalloc): Use it to avoid needless tests.
18361         Problem reported by Jim Meyering.
18362
18363 2005-06-20  Derek Price  <derek@ximbiot.com>
18364
18365         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
18366         unnecessary for Autoconfs > 2.59c.
18367
18368 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18369
18370         * lib/argp.h (__option_is_short): Check upper limit of
18371         __key. Isprint() requires its argument to have the value
18372         of an unsigned char or EOF.
18373
18374 2005-06-16  Jim Meyering  <jim@meyering.net>
18375
18376         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
18377         when either N or S is zero.
18378
18379 2005-06-16  Derek Price  <derek@ximbiot.com>
18380
18381         * m4/bison.m4: Declare YACC & YFLAGS precious.
18382
18383 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
18384
18385         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
18386         multibyte string or pattern, fall back on unibyte matching.
18387         Problem reported by James Youngman.
18388
18389 2005-06-08  Bruno Haible  <bruno@clisp.org>
18390
18391         * modules/csharpcomp: New file.
18392         * MODULES.html.sh (C#): Add csharpcomp.
18393
18394 2005-06-08  Bruno Haible  <bruno@clisp.org>
18395
18396         * m4/csharpcomp.m4: New file, from GNU gettext.
18397
18398 2005-06-08  Bruno Haible  <bruno@clisp.org>
18399
18400         * lib/csharpcomp.h: New file, from GNU gettext.
18401         * lib/csharpcomp.c: New file, from GNU gettext.
18402         * lib/csharpcomp.sh.in: New file, from GNU gettext.
18403
18404 2005-06-08  Bruno Haible  <bruno@clisp.org>
18405
18406         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
18407         warning on mingw.
18408
18409 2005-06-07  Derek Price  <derek@ximbiot.com>
18410
18411         Sync from CVS.
18412         * lib/glob_.h: Indent nested #ifdef.
18413
18414 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18415
18416         Sync from coreutils.
18417         Use "file name" when talking about file names, instead of "filename"
18418         or "path", as per the GNU coding standards.
18419         * lib/mkdir-p.c: Renamed from makepath.c.
18420         (make_dir_parents): Renamed from make_path.  All callers changed.
18421         * lib/mkdir-p.h: Likewise.  All includers changed.
18422         * lib/filenamecat.c: Renamed from path-concat.c.
18423         (file_name_concat): Renamed from path_concat.  All callers changed.
18424         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
18425         * lib/filenamecat.h: Likewise.  All includers changed.
18426         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
18427         in comments or local variable names.
18428         * lib/basename.c: Likewise.
18429         * lib/canonicalize.c, canonicalize.h: Likewise.
18430         * lib/dirname.c, dirname.h: Likewise.
18431         * lib/euidaccess.c: Likewise.
18432         * lib/exclude.c: Likewise
18433         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
18434         * lib/fsusage.c, fsuage.h: Likewise.
18435         * lib/fts.c, fts_.h: Likewise.
18436         * lib/getcwd.c: Likewise.
18437         * lib/getloadavg.c: Likewise.
18438         * lib/mkstemp.c: Likewise.
18439         * lib/mountlist.c, mountlist.h: Likewise.
18440         * lib/openat.c, openat.h: Likewise.
18441         * lib/readlink-stub.c: Likewise.
18442         * lib/readutmp.c, readutmp.h: Likewise.
18443         * lib/rename.c: Likewise.
18444         * lib/rmdir.c: Likewise.
18445         * lib/same.c: Likewise.
18446         * lib/savedir.c: Likewise.
18447         * lib/stripslash.c: Likewise.
18448         * lib/tempname.c: Likewise.
18449         * lib/xreadlink.c: Likewise.
18450         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
18451         All uses changed.
18452         * lib/exclude.h: Likewise.
18453
18454         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
18455         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18456         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
18457         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18458         * lib/pathmax.h: Include <limits.h> unconditionally, since other
18459         files have been getting away with it for years (MORE/BSD 4.3
18460         is extinct now).
18461         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
18462         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18463
18464         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
18465         Define to 256, not 255, as per modern POSIX.
18466
18467 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18468
18469         Sync from coreutils.
18470         Use "file name" when talking about file names, instead of "filename"
18471         or "path", as per the GNU coding standards.
18472         * MODULES.html.sh: mkdir-p renamed from makepath.
18473         filenamecat renamed from path-concat.
18474         * modules/filenamecat: Renamed from modules/path-concat.
18475         (Files): filenamecat.h and filenamecat.c renamed from
18476         path-concat.h and path-concat.c.
18477         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
18478         (Include): filenamecat.h, not path-concat.h.
18479         * modules/mkdir-p: Renamed from modules/makepath.
18480         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
18481         makepath.c.
18482         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
18483         (Include): mkdir-p.h, not makepath.h.
18484
18485 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18486
18487         Sync from coreutils.
18488         * m4/mkdir-p.m4: Renamed from makepath.m4.
18489         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
18490         Rename files from makepath.c to mkdir-p.c, and from
18491         makepath.h to mkdir-p.h.
18492         * m4/filenamecat.m4: Renamed from path-concat.m4.
18493         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
18494         Rename files from path-concat.c to filenamecat.c,
18495         and from path-concat.h to filenamecat.h.
18496         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
18497         "file name" in local variables or comments.
18498         * m4/rename.m4: Likewise.
18499
18500 2005-06-01  Bruno Haible  <bruno@clisp.org>
18501
18502         * modules/csharpexec: New file.
18503         * MODULES.html.sh (C#): New section.
18504
18505 2005-06-01  Bruno Haible  <bruno@clisp.org>
18506
18507         * m4/csharp.m4: New file, from GNU gettext.
18508         * m4/csharpexec.m4: New file, from GNU gettext.
18509
18510 2005-06-01  Bruno Haible  <bruno@clisp.org>
18511
18512         * lib/csharpexec.h: New file, from GNU gettext.
18513         * lib/csharpexec.c: New file, from GNU gettext.
18514         * lib/csharpexec.sh.in: New file, from GNU gettext.
18515
18516 2005-05-31  Derek Price  <derek@ximbiot.com>
18517             Paul Eggert  <eggert@cs.ucla.edu>
18518
18519         Sync from cvs.
18520         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18521
18522 2005-05-31  Derek Price  <derek@ximbiot.com>
18523             Paul Eggert  <eggert@cs.ucla.edu>
18524
18525         Sync from cvs.
18526         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18527
18528 2005-05-29  Derek Price  <derek@ximbiot.com>
18529
18530         * config/srclist.txt (glob_.h, glob.c): Add these files.
18531
18532 2005-05-29  Derek Price  <derek@ximbiot.com>
18533
18534         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
18535         * modules/glob: New file.
18536         * modules/getlogin_r: Add link to POSIX spec in description.
18537
18538 2005-05-29  Derek Price  <derek@ximbiot.com>
18539             Paul Eggert  <eggert@cs.ucla.edu>
18540
18541         * m4/glob.m4: New file.
18542
18543 2005-05-29  Derek Price  <derek@ximbiot.com>
18544             Paul Eggert  <eggert@cs.ucla.edu>
18545
18546         * lib/glob_.h, lib/glob.c: New files.
18547
18548 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18549
18550         * modules/fts (Files): Remove m4/inttypes-pri.m4.
18551         * modules/fts-lgpl (Depends-on): Remove gettext.
18552
18553 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18554
18555         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
18556         and don't require gt_INTTYPES_PRI.
18557
18558 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18559
18560         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
18561
18562         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
18563         the configuration hassle isn't worth it.
18564         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
18565         (LONGEST_MODIFIER, PRIuMAX): Remove.
18566
18567 2005-05-27  Bruno Haible  <bruno@clisp.org>
18568
18569         * lib/getlogin_r.h: Remove second include of <stddef.h>.
18570
18571 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
18572
18573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
18574         _POSIX_PTHREAD_SEMANTICS for Solaris.
18575
18576 2005-05-25  Derek Price  <derek@ximbiot.com>
18577
18578         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
18579
18580 2005-05-25  Derek Price  <derek@ximbiot.com>
18581             Paul Eggert  <eggert@cs.ucla.edu>
18582
18583         * modules/getlogin_r, m4/getlogin_r.m4: New files.
18584         * lib/getlogin_r.c, getlogin_r.h: New files.
18585
18586 2005-05-25  Bruno Haible  <bruno@clisp.org>
18587             Derek Price  <derek@ximbiot.com>
18588
18589         * lib/getlogin_r.h: Simplify API documentation.
18590
18591 2005-05-23  Derek Price  <derek@ximbiot.com>
18592
18593         * modules/minmax (Files): Add m4/minmax.m4.
18594         (configure.ac): Add gl_MINMAX.
18595
18596 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18597
18598         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
18599         so that unistd-safer.h (GPL'ed code) need not be included.
18600
18601 2005-05-22  Bruno Haible  <bruno@clisp.org>
18602
18603         * m4/minmax.m4: New file.
18604         Based on a patch by Derek Price <derek@ximbiot.com>.
18605
18606 2005-05-22  Bruno Haible  <bruno@clisp.org>
18607
18608         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
18609         (INT64_MIN): Fix definition.
18610         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
18611
18612         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
18613         NEED_SIGNED_INT_TYPES.
18614
18615         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
18616         HAVE_SYSTEM_INTTYPES.
18617
18618 2005-05-22  Bruno Haible  <bruno@clisp.org>
18619
18620         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
18621         Also include <sys/param.h> if it defines MIN, MAX.
18622         Based on a patch by Derek Price <derek@ximbiot.com>.
18623
18624 2005-05-21  Jim Meyering  <jim@meyering.net>
18625
18626         * modules/fts (Files): Add m4/inttypes-pri.m4.
18627         (Depends-on): Add lstat and remove gettext.  Alphabetize.
18628
18629 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18630
18631         New fts module.
18632         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
18633         (setup_dir, free_dir): New functions.
18634         (enter_dir, leave_dir): Define trivial
18635         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
18636         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
18637         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
18638         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
18639         Move to fts-cycle.c.
18640         (fts_open): Use setup_dir.
18641         (fts_close): Use free_dir.
18642         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
18643         This adds a label and some gotos, but the alternatives were messier.
18644         Check for memory allocation failure when entering a dir.
18645         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
18646         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
18647         (FTS): New member fts_cycle, that is a union that contains the
18648         old active_dir_ht and cycle_state.  All uses changed to mention
18649         fts_cycle.ht and fts_cycle.state.
18650         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
18651         fts.c, with the following changes:
18652         (setup_dir, free_dir): New functions.
18653         (enter_dir): Now returns bool.  Return true if successful, false
18654         if memory exhausted.  All callers changed.
18655         Do not bother partly cleaning up on
18656         memory allocation failure; that is free_dir's job.
18657         However, free ad if hash_insert fails, to avoid memory leak.
18658         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
18659         fts->fts_options to see which union member to use.
18660
18661 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18662
18663         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
18664         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
18665
18666 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18667
18668         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
18669
18670 2005-05-20  Jim Meyering  <jim@meyering.net>
18671
18672         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
18673         Now a macro, to pacify GCC.
18674
18675 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
18676
18677         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
18678         of -1.
18679
18680 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
18681
18682         * lib/chown.c (rpl_chown): Return -1 on failure.
18683
18684 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18685
18686         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
18687         Don't check for stddef.h.
18688         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
18689         don't use its results.
18690         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
18691         since we include them unconditionally.  Don't require
18692         AM_STDBOOL_H, since stdbool is a prerequisite.
18693         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
18694         since we assume C89 or better.
18695         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
18696         as we don't use their results.
18697         Don't check for fchdir, memmove, memset, strrchr, as we use
18698         them unconditionally.
18699         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
18700         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
18701
18702 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18703
18704         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
18705         Include <stddef.h> unconditionally, since we assume C89 now.
18706         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
18707         * lib/fts.c: Include fts_.h first, to check interface.
18708         Do not include intprops.h; no longer needed.
18709         Include cycle-check.h and hash.h, since fts_.h no longer does.
18710         Remove unnecessary casts of closedir to void.
18711         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
18712         decide whether to decrement nlinks.
18713         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
18714         (FTS): Use struct hash_table * instead of Hash_table, so that
18715         we no longer need to include hash.h here.
18716
18717 2005-05-18  Jim Meyering  <jim@meyering.net>
18718
18719         * modules/dirfd (License): Change to LGPL.  Most of the code
18720         is already in the public domain.
18721
18722 2005-05-18  Jim Meyering  <jim@meyering.net>
18723
18724         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
18725         Reported by Yoann Vandoorselaere.
18726
18727 2005-05-17  Jim Meyering  <jim@meyering.net>
18728
18729         * m4/fts.m4: New file, from coreutils.
18730
18731 2005-05-17  Jim Meyering  <jim@meyering.net>
18732
18733         * lib/fts.c, lib/fts_.h: New files, from coreutils.
18734
18735 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18736
18737         Sync from coreutils.
18738         * m4/unlinkdir.m4: New file.
18739
18740 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18741
18742         Sync from coreutils.
18743         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
18744         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
18745         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
18746         White space changes only.
18747         * lib/makepath.c (make_path): Port to hosts where leading "//" is
18748         special.
18749         * lib/yesno.c: Include getline.h, not ctype.h.
18750         (yesno): Don't remove leading white space; POSIX doesn't allow it.
18751         Use getline to remove arbitrary restriction on response length.
18752
18753 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18754
18755         * config/srclist-update: Spell out "Street" in FSF postal
18756         mail address; this is the style the FSF seems to prefer.
18757
18758         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
18759         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
18760         this updates FSF postal mail address.
18761
18762         Sync from coreutils.
18763         * modules/unlinkdir: New file.
18764         * modules/yesno (Depends-on): Add getline.
18765         * MODULES.html.sh (File system functions): Add unlinkdir.
18766
18767 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18768
18769         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
18770         lib/strsep.h:
18771         Change the initial comment to refer to GPL, not LGPL.
18772         gnulib-tool will change it to LGPL as needed.
18773
18774         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
18775         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
18776         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
18777         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
18778         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
18779         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
18780         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
18781         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
18782         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
18783         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
18784         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
18785         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
18786         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
18787         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
18788         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
18789         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
18790         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
18791         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
18792         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
18793         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
18794         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
18795         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
18796         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
18797         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
18798         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
18799         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
18800         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
18801         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
18802         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
18803         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
18804         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
18805         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
18806         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
18807         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
18808         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
18809         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
18810         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
18811         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
18812         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
18813         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
18814         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
18815         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
18816         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
18817         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
18818         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
18819         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
18820         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
18821         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
18822         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
18823         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
18824         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
18825         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
18826         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
18827         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
18828         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
18829         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
18830         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
18831         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
18832         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
18833         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
18834         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
18835         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
18836         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
18837         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
18838         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
18839         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
18840         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
18841         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
18842         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
18843         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
18844         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
18845         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
18846         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
18847         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
18848         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
18849         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
18850         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
18851         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
18852         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
18853         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
18854         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
18855         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
18856         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
18857         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
18858         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
18859         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
18860         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
18861         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
18862         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
18863         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
18864         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
18865         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
18866         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
18867         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
18868         lib/yesno.c, lib/yesno.h:
18869         Update FSF postal mail address.
18870
18871 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18872
18873         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
18874         tests/test-memmem.c, tests/test-stpncpy.c:
18875         Update FSF postal mail address.
18876
18877 2005-05-13  Bruno Haible  <bruno@clisp.org>
18878
18879         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
18880         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
18881         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
18882         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
18883         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
18884         Add support for 64-bit integers in the MSVC compiler.
18885
18886 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18887
18888         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
18889
18890 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
18891
18892         * gnulib-tool (func_import): Sort and uniquify recommended includes.
18893
18894 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18895
18896         * doc/getdate.texi (General date syntax): Don't say that date
18897         date --iso-8601=ns generates acceptable dates; it doesn't yet.
18898         Problem reported by Nic Ferrier.
18899
18900 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18901
18902         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
18903         specified in ai_socktype. Fix invalid ai_protocol
18904         check. ai_protocol is usually set to 0 or depending on
18905         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
18906         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
18907         ai_socktype / ai_protocol in the returned addrinfo structure.
18908
18909 2005-05-10  Simon Josefsson  <jas@extundo.com>
18910
18911         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
18912         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18913
18914 2005-05-10  Karl Berry  <karl@gnu.org>
18915
18916         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
18917         (from http://www.gnu.org/licenses).
18918         * doc/COPYING.LIB: also rename to COPYING.LESSER.
18919         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
18920         fdl.texi suffices.
18921
18922 2005-05-10  Karl Berry  <karl@gnu.org>
18923
18924         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
18925         (COPYING.DOC): remove.
18926
18927         * config/srclist-update: new FSF address.
18928
18929 2005-05-10  Derek Price  <derek@ximbiot.com>
18930
18931         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
18932         possible.
18933
18934 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18935             Bruno Haible  <bruno@clisp.org>
18936
18937         * modules/inet_ntop: New file.
18938         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18939         inet_ntop.
18940
18941 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18942             Bruno Haible  <bruno@clisp.org>
18943
18944         * m4/inet_ntop.m4: New file.
18945
18946 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18947             Bruno Haible  <bruno@clisp.org>
18948
18949         * lib/inet_ntop.h: New file.
18950         * lib/inet_ntop.c: New file, from glibc with modifications.
18951
18952 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18953
18954         * modules/time_r (License): Change to LGPL.
18955         * modules/extensions (License): Change to LGPL.  Actually,
18956         the license is more permissive than that, but currently gnulib-tool
18957         doesn't know how to handle more-permissive licenses.
18958
18959         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
18960         Problem reported by Dave Love.
18961
18962 2005-05-08  Jim Meyering  <jim@meyering.net>
18963
18964         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
18965         blank.
18966
18967 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
18968
18969         * modules/argmatch (Depends-on): Add stdbool.
18970         * modules/backupfile (Depends-on): Likewise.
18971         * modules/chdir-long (Depends-on): Likewise.
18972         * modules/closeout (Depends-on): Likewise.
18973         * modules/cycle-check (Depends-on): Likewise.
18974         * modules/dirname (Depends-on): Likewise.
18975         * modules/fnmatch (Depends-on): Likewise.
18976         * modules/fsusage (Depends-on): Likewise.
18977         * modules/fwriteerror (Depends-on): Likewise.
18978         * modules/getcwd (Depends-on): Likewise.
18979         * modules/getloadavg (Depends-on): Likewise.
18980         * modules/hard-locale (Depends-on): Likewise.
18981         * modules/makepath (Depends-on): Likewise.
18982         * modules/mountlist (Depends-on): Likewise.
18983         * modules/nanosleep (Depends-on): Likewise.
18984         * modules/posixtm (Depends-on): Likewise.
18985         * modules/quotearg (Depends-on): Likewise.
18986         * modules/readtokens (Depends-on): Likewise.
18987         * modules/readtokens0 (Depends-on): Likewise.
18988         * modules/readutmp (Depends-on): Likewise.
18989         * modules/save-cwd (Depends-on): Likewise.
18990         * modules/strftime (Depends-on): Likewise.
18991         * modules/userspec (Depends-on): Likewise.
18992         * modules/utimecmp (Depends-on): Likewise.
18993         * modules/xgetcwd (Depends-on): Likewise.
18994         * modules/xnanosleep (Depends-on): Likewise.
18995         * modules/xstrtod (Depends-on): Likewise.
18996         * modules/yesno (Depends-on): Likewise.
18997
18998 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18999
19000         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
19001         needless checks.
19002
19003 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19004
19005         Merge from coreutils.  Among other things,
19006         add bulletproofing for cases where stdin, stdout, or stderr are closed.
19007         * lib/fd-safer.c: New file.
19008         * lib/fcntl-safer.h, open-safer.c: Remove.
19009         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
19010         * lib/dup-safer.c: Include unistd-safer.h first.
19011         Don't include errno.h.
19012         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
19013         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
19014         * lib/file-type.c: Rely on file-type.h change.
19015         * lib/getloadavg.c: Include unistd-safer.h.
19016         (getloadavg): Use safer open.
19017         * lib/getusershell.c: Include "stdio-safer.h".
19018         (getusershell): Use safer fopen.
19019         * lib/long-options.c (long_options): Use NULL rather than 0.
19020         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
19021         'free'.
19022         * lib/modechange.c: Likewise.
19023         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
19024         (MODE_DONE): New constant.
19025         (struct mode_change): Remove 'next' member.
19026         (make_node_op_equals): New function; like the old one of the
19027         same name, except it allocates an array.
19028         (mode_compile, mode_create_from_ref): Use it.
19029         (mode_compile): Allocate result as an array, not a linked list.
19030         Parse octal string ourself, so that we catch mistakes like "+0".
19031         (mode_adjust): Arg is an array, not a linked list.
19032         * lib/modechange.c: Include stat-macros.h, xalloc.h.
19033         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
19034         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
19035         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
19036         Remove.  This is now stat-macros.h's job.
19037         (talloc): Remove.  All callers replaced by xalloc, so that
19038         our invokers don't have to worry about reporting memory failures.
19039         (make_node_op_equals): Remove.
19040         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
19041         New constants.
19042         (struct mode_change): Moved here from modechange.h.
19043         (mode_append_entry): Remove.
19044         (mode_compile): Remove MASKED_OPS arg, since it encouraged
19045         apps to have incorrect behavior.  Use simpler algorithm for head
19046         and tail.  Don't futz with umask; that's now the job of mode_adjust.
19047         Detect more invalid usages rather than having somewhat-random behavior.
19048         Don't insert an "a=" action, as that leads to incorrect behavior.
19049         (mode_compile, mode_create_from_ref): Return NULL on error instead
19050         of an enum, since now there's only one way to have an error.  All
19051         callers changed.
19052         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
19053         at the correct time.  Simplify calculation of "+u" and its ilk.
19054         Don't mishandle "+X".
19055         (mode_free): Remove "register" and localize decls.
19056         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
19057         (struct mode_change): Move to modechange.c; callers don't
19058         need to see this stuff.
19059         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
19060         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
19061         (mode_change, mode_adjust): Reflect the new signatures noted above.
19062         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
19063         that might redefine system include files.
19064         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
19065         (my_usleep): Use NULL rather than (void *) 0.
19066         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
19067         Use siginterrupt to specify that system calls should be interrupted.
19068         (rpl_nanosleep): Move initialization of suspended closer to call of
19069         my_usleep.
19070         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
19071         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
19072         (desirable_utmp_entry): New function.
19073         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
19074         using x2nrealloc, to simplify logic.
19075         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
19076         size calculation.  Do not assume utmp file is a regular file.
19077         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
19078         (READ_UTMP_CHECK_PIDS): New constant.
19079         * lib/save-cwd.c: Include unistd-safer.h.
19080         (save_cwd): Use fd_safer.
19081         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
19082         [!_LIBC] Include "stat-macros.h" instead.
19083         * lib/unistd-safer.h (fd_safer): New decl.
19084
19085 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19086
19087         * modules/getloadavg (Depends-on): Add unistd-safer.
19088         * modules/getusershell (Depends-on): Add stdio-safer.
19089         * modules/lstat (Depends-on): Remove xalloc.
19090         * modules/mkstemp (Depends-on): Add stat-macros.
19091         * modules/modechange (Depends-on): Remove xstrtol.
19092         Add stat-macros, xalloc.
19093         * modules/save-cwd (Depends-on): Add unistd-safer.
19094         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
19095         * modules/unistd-safer (Files): Add lib/fd-safer.c
19096         (Makefile.am): Remove lib_SOURCES.
19097
19098         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
19099         Remove fcntl-safer; unistd-safer supersedes it.
19100
19101 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19102
19103         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
19104         AC_HEADER_STAT.
19105         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
19106         (gl_PREREQ_CHOWN): Remove.
19107         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
19108         it.  Don't require AC_HEADER_STAT.
19109         (gl_PREREQ_LSTAT): Remove.
19110         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
19111         Don't require AC_HEADER_STAT.
19112         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
19113         (gl_PREREQ_RMDIR): Remove.
19114         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
19115         mention stat-macros.h or AC_HEADER_STAT, since we'll make
19116         the stat-macros module a prerequisite.
19117         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
19118         * m4/filemode.m4 (gl_FILEMODE): Likewise.
19119         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
19120         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
19121         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
19122         variable names.
19123         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
19124         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
19125         variable prefixes.
19126         * m4/fcntl-safer.m4: Remove.
19127         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
19128         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
19129         Invoke gl_PREREQ_FD_SAFER.
19130         (gl_PREREQ_FD_SAFER): New macro.
19131         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
19132         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
19133         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
19134         Remove duplicate call to AC_LIBOBJ(readutmp).
19135         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
19136
19137         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
19138         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
19139
19140 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19141
19142         * MODULES.html.sh (Misc): Add byteswap.
19143
19144 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19145
19146         * modules/getcwd (Depends-on): Add extensions.
19147         * modules/openat (Depends-on): Likewise.
19148
19149 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19150
19151         * modules/byteswap: New file.
19152
19153 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19154
19155         * m4/byteswap.m4: New file.
19156
19157 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
19158
19159         * lib/byteswap_.h: New file.
19160
19161 2005-04-25  Karl Berry  <karl@gnu.org>
19162
19163         * m4/gettext.m4: Update from GNU gettext 0.14.4.
19164
19165 2005-04-25  Albert Chin  <china@thewrittenword.com>
19166
19167         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
19168         Toolkit C bug.
19169
19170 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
19171
19172         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
19173         (func_ln_if_changed) Remove forcibly for no error message
19174         in case file does not exist.
19175
19176 2005-04-19  Simon Josefsson  <jas@extundo.com>
19177
19178         * gnulib-tool (Options): Make --symlink mean --symbolic.
19179
19180 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
19181
19182         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
19183
19184 2005-04-16  Simon Josefsson  <jas@extundo.com>
19185
19186         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
19187
19188 2005-04-15  Simon Josefsson  <jas@extundo.com>
19189
19190         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
19191
19192 2005-04-15  Simon Josefsson  <jas@extundo.com>
19193
19194         * gnulib-tool: Rename --symlink to --symbolic.
19195
19196 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
19197
19198         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
19199         symbolic links to files instead of copying/moving.  Add --aux-dir,
19200         specifying directory relative --dir where auxiliary build tools
19201         are placed.
19202
19203 2005-04-14  Bruno Haible  <bruno@clisp.org>
19204
19205         * modules/allocsa (License): Change to LGPL.
19206         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19207
19208 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
19209
19210         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
19211         that "UTC +1 second" continues to work.  Problem reported
19212         by Dmitry V. Levin.
19213         (relunit_snumber): New rule.
19214         (relunit): Use it.
19215
19216 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19217
19218         * lib/getdate.y (universal_time_zone_table): New constant.
19219         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
19220         universal_time_zone_table.
19221         (lookup_zone): Prefer universal_time_zone_table to
19222         local_time_zone_table, so that "GMT" time stamps are allowed in
19223         London during the summer.  Problem reported by Ian Abbott.
19224
19225 2005-04-12  Jim Meyering  <jim@meyering.net>
19226
19227         * lib/human.c (humblock): Set *options even when returning due to
19228         xstrtoumax conversion failure.  Thanks to a used-uninitialized
19229         warning from gcc-4.
19230
19231 2005-04-09  Jim Meyering  <jim@meyering.net>
19232
19233         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
19234         -Wuninitialized: initialize tm0.tm_year.
19235
19236 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19237
19238         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
19239         count, since there's no maximum.  All uses changed.
19240         Add member dsts_seen.
19241         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
19242         not being INT_MAX.
19243         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
19244         Use pc_rels_seen to decide whther a date is absolute.
19245
19246         * lib/getdate.y (number): Don't overwrite year.
19247         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
19248         check.
19249
19250 2005-04-02  Simon Josefsson  <jas@extundo.com>
19251
19252         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
19253         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
19254
19255 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
19256
19257         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
19258         where no absolute path name can be longer than PATH_MAX.
19259
19260 2005-03-27  Jim Meyering  <jim@meyering.net>
19261
19262         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
19263
19264 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19265
19266         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
19267         "one's complement" -> "ones' complement" in comment, as per Knuth.
19268         "value of type" -> "type or expression" in comment.
19269         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
19270
19271 2005-03-26  Jim Meyering  <jim@meyering.net>
19272
19273         Comment nits.
19274         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
19275         Correct typos: s/or/of/.
19276
19277 2005-03-26  Jim Meyering  <jim@meyering.net>
19278
19279         * modules/check-include-files: Move to ../ and rename to...
19280         * check-module: ...this.
19281
19282 2005-03-25  Jim Meyering  <jim@meyering.net>
19283
19284         * modules/xvasprintf (Files): Add xalloc.h.
19285
19286 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19287
19288         * modules/gettext (Files): config/config.rpath ->
19289         build-aux/config.rpath
19290         * modules/iconv (Files): Likewise.
19291         Problem reported by Oskar Liljeblad.
19292
19293 2005-03-23  Jim Meyering  <jim@meyering.net>
19294
19295         * modules/check-include-files: New script to check for
19296         missing dependencies, multiple includes, etc.
19297
19298         * modules/c-strtold (Depends-on): Add xalloc.
19299         * modules/c-strtod (Depends-on): Add xalloc.
19300         * modules/hash (Depends-on): Add xalloc.
19301         (Files): Remove lib/xalloc.h.
19302
19303         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
19304         * modules/userspec (Files): Add lib/inttostr.h.
19305
19306 2005-03-23  Jim Meyering  <jim@meyering.net>
19307
19308         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
19309
19310 2005-03-22  Jim Meyering  <jim@meyering.net>
19311
19312         * modules/stat-macros: New module.
19313         * modules/canonicalize, modules/euidaccess, modules/file-type,
19314         * modules/filemode, modules/lchown, modules/makepath,
19315         * modules/rmdir, modules/stat: Depend on new stat-macros module
19316         rather than listing lib/stat-macros.h manually.
19317         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
19318
19319 2005-03-22  Jim Meyering  <jim@meyering.net>
19320
19321         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
19322
19323 2005-03-22  Bruno Haible  <bruno@clisp.org>
19324
19325         * config/srclist.txt: Replace target directory 'config' with
19326         'build-aux'.
19327         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
19328         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
19329         ../build-aux/.
19330
19331 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19332
19333         * modules/chdir-long (Depends-on): Add mempcpy.
19334
19335         * modules/acl, modules/backupfile, modules/c-strtod,
19336         modules/c-strtold, modules/canon-host, modules/canonicalize,
19337         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
19338         modules/exclude, modules/exitfail, modules/file-type,
19339         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
19340         modules/getdate, modules/getline, modules/getpagesize,
19341         modules/getpass, modules/getugroups, modules/group-member,
19342         modules/hard-locale, modules/hash, modules/human, modules/idcache,
19343         modules/inttostr, modules/long-options, modules/makepath,
19344         modules/md5, modules/memcasecmp, modules/memcoll,
19345         modules/modechange, modules/mountlist, modules/path-concat,
19346         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
19347         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
19348         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
19349         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
19350         modules/strftime, modules/strndup, modules/strverscmp,
19351         modules/timespec, modules/unlocked-io, modules/userspec,
19352         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
19353         modules/yesno:
19354         Remove lib_SOURCES line from Makefile.am section, as this is now
19355         done automatically by the corresponding Autoconf macro.
19356
19357 2005-03-21  Jim Meyering  <jim@meyering.net>
19358
19359         Changes imported from coreutils.
19360
19361         * lib/cycle-check.c: Don't include xalloc.h.
19362
19363         * lib/path-concat.c: Don't include assert.h.
19364         (path_concat): Remove assertion that would have triggered
19365         for ABASE starting with more than one slash.
19366         Reported by Andreas Schwab.
19367
19368         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
19369         properly when ABASE is an absolute file name.
19370         Correct the description of this function.
19371         Include <assert.h>.
19372         Add an assertion and a test driver.
19373         This fixes a bug introduced on 2004-07-02.
19374         Andreas Schwab reported the resulting failure of cp --parents:
19375         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
19376
19377 2005-03-21  Jim Meyering  <jim@meyering.net>
19378
19379         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
19380         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
19381
19382 2005-03-21  Jim Meyering  <jim@meyering.net>
19383         and  Paul Eggert  <eggert@cs.ucla.edu>
19384
19385         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
19386         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
19387         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
19388         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
19389         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
19390         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
19391         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
19392         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
19393         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
19394         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
19395         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
19396         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
19397         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
19398         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
19399         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
19400         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
19401         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
19402         for these modules.
19403
19404 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
19405
19406         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
19407         (which shouldn't happen), generate nothing instead of returning 0
19408         immediately, so that nstrftime (NULL, ...) doesn't return 0.
19409
19410 2005-03-16  Bruno Haible  <bruno@clisp.org>
19411
19412         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
19413         HAVE_LONGLONG_64BIT.
19414
19415 2005-03-16  Bruno Haible  <bruno@clisp.org>
19416
19417         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
19418         HAVE_LONGLONG_64BIT.
19419
19420 2005-03-16  Bruno Haible  <bruno@clisp.org>
19421
19422         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
19423         HAVE_LONGLONG_64BIT.
19424
19425 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19426
19427         * lib/strftime.c (my_strftime): Prepend space to format so that we can
19428         reliably distinguish strftime failure from empty output on POSIX
19429         hosts.
19430
19431 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19432
19433         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
19434         (iconv_string): Don't guess a size-zero buffer, as that might cause
19435         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
19436         result would be 'too large', where 'too large' is (heuristically)
19437         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
19438         overflow concerns.  This will prevent some unwanted malloc failures
19439         when the inputs are very large.
19440
19441 2005-03-15  Karl Berry  <karl@gnu.org>
19442
19443         * config/srclist.txt (config.rpath): from gettext.
19444         * config/config.rpath: update.
19445
19446 2005-03-15  Bruno Haible  <bruno@clisp.org>
19447
19448         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
19449         to 'negate'.
19450
19451         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
19452         variable.
19453
19454         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
19455         results.
19456
19457 2005-03-14  Simon Josefsson  <jas@extundo.com>
19458
19459         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
19460         <fx@gnu.org>.
19461
19462 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
19463
19464         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
19465         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
19466         intprops.h.
19467         * lib/strtol.c: Likewise.
19468
19469 2005-03-14  Jim Meyering  <jim@meyering.net>
19470
19471         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
19472         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
19473         to be nonzero so that we (and caller) can detect the difference
19474         between a valid zero-length expansion and an error return, even
19475         when the underlying strftime fails before writing anything into
19476         that location.
19477
19478 2005-03-14  Bruno Haible  <bruno@clisp.org>
19479
19480         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
19481         Update from GNU gettext 0.14.3.
19482
19483 2005-03-10  Jim Meyering  <jim@meyering.net>
19484
19485         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
19486
19487 2005-03-10  Jim Meyering  <jim@meyering.net>
19488
19489         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
19490         so that this module works on systems without fchdir.
19491
19492 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19493
19494         Factor int-properties macros into a single file, except for
19495         glibc-related files.
19496         * lib/intprops.h: New file.
19497         * lib/getloadavg.c: Include it instead of limits.h.
19498         (INT_STRLEN_BOUND): Remove.
19499         * lib/human.c: Include intprops.h.
19500         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
19501         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
19502         302/1000.
19503         * lib/inttostr.h: Include intprops.h instead of limits.h.
19504         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
19505         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
19506         for consistency with intprops.h.
19507         (time_t_is_integer, twos_complement_arithmetic): Use them.
19508         * lib/sig2str.h: Include <signal.h>, intprops.h.
19509         (INT_STRLEN_BOUND): Remove.
19510         * lib/strftime.c (TYPE_SIGNED): Remove.
19511         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
19512         * lib/strtol.c: Adjust comments to match intprops.h.
19513         * lib/userspec.c: Include intprops.h.
19514         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
19515         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
19516         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
19517         instead of rolling our own expressions.
19518         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
19519
19520         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
19521         instead of int.
19522         (my_strftime): Do not mishandle years close to INT_MAX, by doing
19523         the right thing even if adding 1900 would overflow.  Similarly
19524         for tm_mon + 1 and tm_yday + 1.
19525         Make %Y always equivalent to %C%y, and similarly for %G and %g.
19526         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
19527         (DO_SIGNED_NUMBER): New macro.
19528         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
19529
19530 2005-03-07  Bruno Haible  <bruno@clisp.org>
19531
19532         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
19533
19534 2005-03-07  Bruno Haible  <bruno@clisp.org>
19535
19536         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
19537
19538 2005-03-04  Derek R. Price  <derek@ximbiot.com>
19539
19540         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
19541         (func_import): Only replace files via --import when they have actually
19542         changed.
19543
19544 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19545
19546         * m4/mmap-anon.m4: New file.
19547         * m4/pagealign_alloc.m4: New file.
19548
19549 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19550             Bruno Haible  <bruno@clisp.org>
19551
19552         * modules/pagealign_alloc: New file.
19553         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
19554
19555 2005-03-03  Derek R. Price  <derek@ximbiot.com>
19556             Bruno Haible  <bruno@clisp.org>
19557
19558         * lib/pagealign_alloc.h: New file.
19559         * lib/pagealign_alloc.c: New file.
19560
19561 2005-03-03  Bruno Haible  <bruno@clisp.org>
19562
19563         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
19564         Use an all-permissive copyright notice, recommended by RMS.
19565
19566 2005-03-02  Bruno Haible  <bruno@clisp.org>
19567
19568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
19569         of AIX, the replacement has to be done only after <string.h> is
19570         included, therefore not in config.h. stpncpy.h does the replacement,
19571         and stpncpy.c uses it.
19572
19573 2005-03-02  Bruno Haible  <bruno@clisp.org>
19574
19575         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
19576         stpncpy.c uses it.
19577
19578 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19579
19580         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
19581         The workaround isn't strictly needed for POSIX conformance, and
19582         it's too much of a pain to configure and maintain.  We'll ask
19583         people to fix their kernels instead.
19584         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
19585         (NANOSLEEP_BUG_WORKAROUND): Remove.
19586         (xnanosleep): Remove the workaround.
19587
19588 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19589
19590         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
19591         Reported by Derek Price.
19592         (Include): Add "timespec.h".
19593
19594         * modules/xnanosleep (Depends-on): Remove gethrxtime.
19595
19596 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19597
19598         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
19599         to detect nanosleep bug.
19600
19601 2005-03-01  Bruno Haible  <bruno@clisp.org>
19602
19603         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
19604
19605 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
19606
19607         * modules/gethrxtime: New file.
19608         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
19609         (Depends-on): Add gethrxtime.
19610         (configure.ac): Add gl_XNANOSLEEP.
19611         (Makefile.am): Remove lib_SOURCES line.
19612
19613 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19614
19615         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
19616         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
19617
19618 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19619
19620         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
19621         * lib/timespec.h (gettime): Return void, since it always
19622         succeeds now.  All uses changed.
19623         * lib/gettime.c (gettime) Likewise.
19624         [HAVE_NANOTIME]: Prefer nanotime.
19625         Assume gettimeofday succeeds, as POSIX requires.
19626         Assime time () succeeds, since other code already does.
19627         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
19628         (timespec_subtract): Remove.
19629         (NANOSLEEP_BUG_WORKAROUND): New constant.
19630         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
19631         things considerably.  Use it only on GNU/Linux hosts, since the
19632         workaround shouldn't be needed elsewhere.
19633
19634 2005-02-24  Bruno Haible  <bruno@clisp.org>
19635
19636         * modules/gettext (Files): Add m4/glibc2.m4.
19637
19638 2005-02-24  Bruno Haible  <bruno@clisp.org>
19639
19640         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
19641         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
19642         * m4/progtest.m4:
19643         Update from GNU gettext 0.14.2.
19644         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
19645
19646 2005-02-24  Bruno Haible  <bruno@clisp.org>
19647
19648         * lib/localcharset.c: Update from GNU gettext 0.14.2.
19649         * lib/config.charset: Update from GNU gettext 0.14.2.
19650
19651 2005-02-24  Bruno Haible  <bruno@clisp.org>
19652
19653         * lib/gettext.h: Update from GNU gettext 0.14.2.
19654
19655 2005-02-23  Simon Josefsson  <jas@extundo.com>
19656
19657         * m4/iconvme.m4: New file.
19658
19659 2005-02-23  Jim Meyering  <jim@meyering.net>
19660
19661         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
19662         change.
19663         Thanks to Bruno Haible for catching it.
19664
19665 2005-02-22  Simon Josefsson  <jas@extundo.com>
19666
19667         * modules/iconvme: New file.
19668
19669         * MODULES.html.sh: Add iconvme.
19670
19671 2005-02-22  Simon Josefsson  <jas@extundo.com>
19672
19673         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
19674
19675 2005-02-22  Simon Josefsson  <jas@extundo.com>
19676
19677         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
19678
19679 2005-02-22  Jim Meyering  <jim@meyering.net>
19680
19681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
19682         s/ifndef/ifdef/.
19683
19684 2005-02-20  Neil Conway  <neilc@samurai.com>
19685
19686         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
19687         returned by OSX/Darwin if the specified buffer is not large
19688         enough for the hostname.
19689
19690 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19691
19692         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
19693         pass it to _help, otherwise the latter coredumps trying to
19694         dereference state.root_argp.
19695
19696 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19697
19698         * modules/chdir-long (Depends-on): Add memrchr.
19699         * modules/memrchr (Files): Add lib/memrchr.h.
19700         (Include): "memrchr.h".
19701
19702 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19703
19704         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
19705
19706 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19707
19708         * lib/memrchr.h: New file.
19709         * lib/chdir-long.c: Include it.
19710         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
19711         Don't bother including stddef.h.
19712
19713 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
19714
19715         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
19716         inclusion.
19717         Include <sys/types.h>, for dev_t.
19718         (ME_DUMMY, ME_REMOTE): Move from here....
19719         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
19720         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
19721         Dmitry V. Levin.
19722         Include mountlist.h first, to test the interface.
19723
19724 2005-01-29  Bruno Haible  <bruno@clisp.org>
19725
19726         * lib/progname.c (program_name): Initialize.
19727         Needed when linking statically on MacOS X.
19728
19729 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19730
19731         Sync from coreutils.
19732         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
19733         (Depends-on): Add c-strtod.
19734         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
19735
19736 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19737
19738         Sync from coreutils.
19739         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
19740
19741         Remove files that are specific to coreutils.
19742         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
19743
19744 2005-01-28  Bruno Haible  <bruno@clisp.org>
19745
19746         * modules/javacomp: New file.
19747         * MODULES.html.sh (Java): Add javacomp.
19748
19749 2005-01-28  Bruno Haible  <bruno@clisp.org>
19750
19751         * m4/javacomp.m4: New file, from GNU gettext.
19752
19753 2005-01-28  Bruno Haible  <bruno@clisp.org>
19754
19755         * lib/javacomp.sh.in: New file, from GNU gettext.
19756         * lib/javacomp.h: New file, from GNU gettext.
19757         * lib/javacomp.c: New file, from GNU gettext.
19758
19759 2005-01-26  Simon Josefsson  <jas@extundo.com>
19760
19761         * lib/gai_strerror.c: Use GPL in header.
19762
19763 2005-01-26  Bruno Haible  <bruno@clisp.org>
19764
19765         * modules/javaexec: New file.
19766         * MODULES.html.sh (Java): Add javaexec.
19767
19768 2005-01-26  Bruno Haible  <bruno@clisp.org>
19769
19770         * m4/javaexec.m4: New file, from GNU gettext.
19771
19772 2005-01-26  Bruno Haible  <bruno@clisp.org>
19773
19774         * lib/javaexec.sh.in: New file, from GNU gettext.
19775         * lib/javaexec.h: New file, from GNU gettext.
19776         * lib/javaexec.c: New file, from GNU gettext.
19777
19778 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19779
19780         * modules/lchown (Depends-on): Remove lchown.h
19781
19782 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19783
19784         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
19785         must be defined if the header file was not found, in order
19786         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
19787
19788 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19789
19790         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
19791         initializers for struct pentry_state.
19792         (__argp_error): Check return value of __asprintf
19793         (__argp_failure): Translate error message
19794
19795         * lib/argp-parse.c: Removed braces around the expansion of N_()
19796
19797 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19798
19799         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
19800         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
19801         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
19802         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
19803         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
19804         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
19805         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
19806         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
19807         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
19808         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
19809         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
19810         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
19811         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
19812         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
19813         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
19814         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
19815         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
19816         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
19817         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
19818         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
19819         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
19820         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
19821         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
19822         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
19823         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
19824         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
19825         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
19826         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
19827         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
19828         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
19829         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
19830         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
19831         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
19832         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
19833         xstrtol.m4, xstrtoumax.m4, yesno.m4:
19834         Use an all-permissive copyright notice, recommended by RMS.
19835
19836 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19837
19838         * modules/chdir-long (Depends-on): Remove mempcpy.
19839
19840 2005-01-21  Jim Meyering  <jim@meyering.net>
19841
19842         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
19843         same value as for Solaris 9.
19844
19845         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
19846         component length.  This included changing the parameter to be
19847         of type `char *' rather than `char const *'.
19848         * lib/chdir-long.h (chdir_long): Update prototype.
19849
19850         * lib/openat.c (fdopendir, fstatat): New functions.
19851         * lib/openat.h: Include headers required for use of DIR and struct
19852         stat.
19853         [AT_SYMLINK_NOFOLLOW]: Define.
19854         (fdopendir, fstatat): Add prototypes.
19855
19856 2005-01-21  Bruno Haible  <bruno@clisp.org>
19857
19858         * modules/classpath: New file.
19859         * MODULES.html.sh (Java): Add classpath.
19860
19861 2005-01-21  Bruno Haible  <bruno@clisp.org>
19862
19863         * lib/classpath.h: New file, from GNU gettext.
19864         * lib/classpath.c: New file, from GNU gettext.
19865
19866 2005-01-20  Simon Josefsson  <jas@extundo.com>
19867
19868         * modules/version-etc-fsf: New file.
19869
19870 2005-01-20  Simon Josefsson  <jas@extundo.com>
19871
19872         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
19873         * lib/version-etc.c: Remove version_etc_copyright.
19874         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
19875         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
19876
19877 2005-01-20  Simon Josefsson  <jas@extundo.com>
19878
19879         * lib/base64.h (isbase64): Add.
19880
19881         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
19882         using a unsigned prototype, don't inline.
19883         (base64_decode): Use it.
19884
19885 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19886
19887         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
19888         it.
19889
19890 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19891
19892         * lib/save-cwd.c (save_cwd): Remove code to support the case
19893         where fchdir is missing or flaky.
19894
19895 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19896
19897         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
19898
19899 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19900
19901         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
19902         AC_LIBSOURCES now does this.
19903         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
19904         with new ullong_max module.
19905
19906 2005-01-19  Bruno Haible  <bruno@clisp.org>
19907
19908         * modules/sh-quote: New file.
19909         * MODULES.html.sh (Executing programs): Add sh-quote.
19910
19911 2005-01-19  Bruno Haible  <bruno@clisp.org>
19912
19913         * lib/sh-quote.h: New file, from GNU gettext.
19914         * lib/sh-quote.c: New file, from GNU gettext.
19915
19916 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19917
19918         Merge from coreutils.
19919         * m4/ullong_max.m4: New file.
19920         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
19921         (gl_MACROS): Assume localeconv exists.
19922
19923 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19924
19925         Merge changes from coreutils, as described below in several
19926         changelogs dated today.
19927
19928         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
19929         (O_DIRECTORY): Remove; not needed here, since "." must be
19930         a directory.  All uses removed.
19931         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
19932         universal on Suns, and we also need to test for IRIX.
19933         Revamp code to use 'if' rather than '#if'.
19934         Avoid unnecessary comparison of cwd->desc to 0.
19935
19936         * lib/utimens.c (futimens): Robustify the previous patch, by checking
19937         for known valid error numbers rather than observed invalid ones.
19938
19939 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19940
19941         * modules/ullong_max: New file.
19942
19943         * modules/chdir-long, modules/openat: New files.
19944         * modules/save-cwd (Depends-on): Depend on chdir-long.
19945         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
19946
19947 2005-01-18  Jim Meyering  <jim@meyering.net>
19948
19949         Merge from coreutils.
19950         * m4/chdir-long.m4, m4/openat.m4: New files.
19951         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
19952         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
19953         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
19954         is sane and DOES follow symlinks.  Besides, testing 20 different
19955         systems found no broken chown implementations.
19956         Prompted by a change in rsync's copy of this macro.
19957         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
19958
19959         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
19960
19961         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
19962         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
19963         NULL-means-set-to-current-time semantics.
19964         Remove temporary file immediately, rather than waiting
19965         for configure's at-exit trap code to do it.
19966
19967 2005-01-18  Jim Meyering  <jim@meyering.net>
19968
19969         * lib/version-etc.c (version_etc_copyright): Update copyright date.
19970
19971         * lib/utimens.c (futimens): Account for the fact that futimes
19972         can also fail with errno == ENOSYS or errno == ENOENT.
19973         Patch from Dmitry V. Levin.
19974
19975         Change the name of the robust chdir function from chdir to chdir_long.
19976         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
19977         (restore_cwd): Use chdir_long, not chdir.
19978         * lib/chdir-long.c: Renamed from chdir.c.
19979         * lib/chdir-long.h: Renamed from chdir.h.
19980         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
19981         Hurd.
19982
19983 2005-01-18  Bruno Haible  <bruno@clisp.org>
19984
19985         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
19986         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
19987         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
19988         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
19989         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
19990         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
19991         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
19992         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
19993         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
19994         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
19995         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
19996         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
19997         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
19998         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
19999         Use an all-permissive copyright notice, recommended by RMS.
20000
20001 2005-01-18  Bob Proulx  <bob@proulx.com>
20002
20003         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
20004         simplify offsetof() macro construct to avoid compile failure with
20005         native HP-UX 11.0 ANSI C compiler.
20006
20007 2005-01-17  Bruno Haible  <bruno@clisp.org>
20008
20009         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
20010         redundant because stpncpy.m4 takes care of it.
20011
20012 2005-01-17  Bruno Haible  <bruno@clisp.org>
20013
20014         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
20015
20016 2005-01-17  Bruno Haible  <bruno@clisp.org>
20017
20018         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
20019         used.
20020
20021 2005-01-17  Bruno Haible  <bruno@clisp.org>
20022
20023         * lib/fwriteerror.h (fwriteerror): Change specification to include
20024         fclose.
20025         * lib/fwriteerror.c: Include <stdbool.h>.
20026         (fwriteerror): At the end, close the file stream. Record whether
20027         stdout was already closed.
20028
20029 2005-01-17  Bruno Haible  <bruno@clisp.org>
20030
20031         * lib/execute.c (environ): Declare if needed.
20032         * lib/pipe.c (environ): Likewise.
20033         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
20034
20035 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20036
20037         * modules/argp: Depend on vsnprintf
20038
20039 2005-01-10  Jim Meyering  <jim@meyering.net>
20040
20041         * modules/closeout (Depends-on): Add atexit.
20042
20043 2005-01-06  Bruno Haible  <bruno@clisp.org>
20044
20045         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
20046
20047 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20048
20049         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
20050         definitions to be after all include files, to avoid collisions.
20051         Problem reported by Bob Proulx.
20052
20053 2005-01-04  Jim Meyering  <jim@meyering.net>
20054
20055         Changes imported from coreutils.
20056         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
20057         as the mkstemp template, use a temporary directory and an
20058         8.3-friendly template to avoid trouble on systems like DJGPP.
20059         Reported by Juan M. Guerrero via Stepan Kasal.
20060         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
20061         close. Remove the temporary directory right away, rather than waiting
20062         for configure's at-exit trap code to do it.
20063         Suggestion from Stepan Kasal.
20064
20065 2005-01-01  Simon Josefsson  <jas@extundo.com>
20066
20067         * gnulib-tool: Print #include directives when --import'ing.
20068
20069 2004-12-28  Simon Josefsson  <jas@extundo.com>
20070
20071         * tests/test-base64.c: Include required header files.  Remove
20072         unused variables.
20073
20074 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20075
20076         * modules/error (Depends-on): Remove gettext.
20077
20078 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20079
20080         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
20081         not needed.  This removes a dependency on the gettext module.
20082         [defined _LIBC]: Do not include <libintl.h>; not needed.
20083
20084 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
20085
20086         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
20087         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
20088
20089 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
20090
20091         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
20092         HAVE_DECL_STRTOLD.
20093
20094 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20095
20096         * modules/getdate (Depends-on): Remove alloca-opt.
20097
20098 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20099
20100         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
20101
20102 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20103
20104         * lib/argp-parse.c: Include <stddef.h>.
20105         (alignof, alignto): New macros.
20106         (parser_init): Don't assume that void * is aligned sufficiently
20107         for struct option.
20108
20109         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
20110         need to extend the stack.
20111         (YYINITDEPTH): New macro, so that the initial stack isn't overly
20112         large.
20113
20114 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20115
20116         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
20117
20118 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20119
20120         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
20121         (2004-10-24) change.  Apparently this was a false alarm.
20122
20123         * modules/getdate: Depend on alloca-opt, not alloca.
20124
20125 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20126
20127         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
20128         Remove now-obsolete comment about AIX.
20129         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
20130         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
20131         (YYMAXDEPTH): New macro.
20132
20133 2004-12-18  Simon Josefsson  <jas@extundo.com>
20134
20135         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
20136
20137 2004-12-18  Bruno Haible  <bruno@clisp.org>
20138
20139         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
20140
20141 2004-12-18  Bruno Haible  <bruno@clisp.org>
20142
20143         * lib/fatal-signal.c (fatal_signals): Make non-const.
20144         (init_fatal_signals): New function.
20145         (uninstall_handlers, install_handlers): Ignore signals that were set to
20146         SIG_IGN.
20147         (at_fatal_signal): Call init_fatal_signals.
20148         (init_fatal_signal_set): Likewise. Ignore signals that were set to
20149         SIG_IGN.
20150         Reported by Paul Eggert.
20151
20152 2004-12-18  Bruno Haible  <bruno@clisp.org>
20153
20154         * doc/alloca.texi: New file.
20155         * doc/alloca-opt.texi: New file.
20156
20157 2004-12-17  Jim Meyering  <jim@meyering.net>
20158
20159         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
20160         Otherwise, install-sh could exit with improper exit status when
20161         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
20162
20163 2004-12-16  Simon Josefsson  <jas@extundo.com>
20164
20165         * tests/test-base64.c: Add license.
20166
20167 2004-12-15  Stepan Kasal  <address@hidden>
20168
20169         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
20170
20171 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20172
20173         * modules/getcwd (Files): Add m4/d-ino.m4.
20174         Suggested by Mark D. Baushke.
20175
20176 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
20177
20178         * lib/getdate.y (textint): New member "negative".
20179         (time_zone_hhmm): New function.
20180         Expect 14 shift-reduce conflicts, not 13.
20181         (o_colon_minutes): New rule.
20182         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
20183         (yylex): Set the "negative" member of signed numbers.
20184
20185 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
20186
20187         * doc/getdate.texi (Time of day items, Time zone items):
20188         Describe new formats +00:00, UTC+00:00.
20189
20190 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20191
20192         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
20193         spurious "-l"s.  Problem reported by Stepan Kasal.
20194
20195 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
20196
20197         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
20198         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
20199
20200 2004-12-04  Simon Josefsson  <jas@extundo.com>
20201
20202         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
20203         Vandoorselaere <yoann@prelude-ids.org>.
20204
20205 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20206
20207         Changes imported from coreutils.
20208         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
20209         exist.
20210         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
20211
20212 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20213
20214         Changes imported from coreutils.
20215         * lib/hard-locale.c: Assume <locale.h> exists.
20216         Include "strdup.h".
20217         (GLIBC_VERSION): New macro.
20218         (hard_locale): Assume setlocale exists.
20219         Rewrite to avoid #ifdef.
20220         Use strdup rather than malloc + strcpy.
20221         * lib/human.c: Assume <locale.h> exists.
20222         (human_readable): Assume localeconv exists.
20223
20224 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20225
20226         * modules/hard-locale (Depends-on): Add strdup.
20227
20228 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20229
20230         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
20231         convert T2, not T.  (Imported from libc.)
20232
20233 2004-11-30  Simon Josefsson  <jas@extundo.com>
20234
20235         * modules/restrict (License): Change to LGPL.
20236
20237 2004-11-30  Simon Josefsson  <jas@extundo.com>
20238
20239         * m4/restrict.m4: Add copyright and copying conditions.
20240
20241 2004-11-30  Simon Josefsson  <jas@extundo.com>
20242
20243         * m4/base64.m4: New file.
20244
20245 2004-11-30  Simon Josefsson  <jas@extundo.com>
20246
20247         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
20248         base64.
20249
20250         * tests/test-base64.c: New file.
20251
20252         * modules/base64: New file.
20253
20254 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
20255
20256         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
20257         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
20258
20259         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
20260
20261 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
20262
20263         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
20264         (__getcwd.c): Don't restore errno; glibc doesn't.
20265         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
20266         first, falling back to our code only if its results look suspicious.
20267         Ensure that the resulting buffer is only as large as necessary.
20268
20269         * lib/readutmp.c: Include readutmp.h first.
20270         Include <errno.h>, since readutmp.h no longer does that.
20271         * lib/readutmp.h: Don't include <errno.h>,
20272         <sys/param.h>, <time.h>; not needed to establish interface.
20273         (errno): Remove decl.
20274         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
20275         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
20276         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
20277
20278 2004-11-28  Simon Josefsson  <jas@extundo.com>
20279
20280         * lib/base64.h, base64.c: New file.
20281
20282 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
20283
20284         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
20285
20286 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20287
20288         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
20289         (Depends-on): Remove pathmax, same.  Add mempcpy.
20290         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
20291         (Makefile.am): Append getcwd.h to lib_SOURCES.
20292         (Include): Add getcwd.h.
20293         (Maintainer): Change from Jim Meyering to "all, glibc",
20294         since getdate now uses intended-for-glibc code.
20295         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
20296         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
20297
20298 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20299
20300         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
20301         HP's ANSI C compiler.
20302         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
20303         Declaring int functions causes warnings on some modern systems and
20304         shouldn't be needed to compile on ancient ones.
20305         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
20306         defined.
20307
20308         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
20309         with the following changes.
20310         (__set_errno): Parenthesize properly.
20311         Include <stdbool.h>.
20312         (MIN, MAX, MATCHING_INO): New macros.
20313         (__getcwd): Define with prototype, not K&R form.
20314         Use heuristics to allocate default buffer on stack if possible.
20315         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
20316         behavior, and to avoid the PATH_MAX limit when computing
20317         ../../../../...
20318         Use MATCHING_INO to compare inode number to file.
20319         Check for arithmetic overflow in size calculations.
20320         Fix bug in reallocation of dot array that caused getcwd to fail
20321         on directories nested deeper than 75.
20322         Be more careful about saving errno on error.
20323         Do not use realloc; use only free+malloc, as this is a bit
20324         more flexible and avoids a needless copy operation.
20325         Do not inspect st_dev and st_ino for symbolic links; POSIX
20326         doesn't specify the latter.
20327         Check for closedir errors.
20328         Avoid needless casts.
20329         Use "#ifdef weak_alias" around weak_alias, to be like other
20330         glibc code.
20331         The following changes to getcwd.c have effect only when used in
20332         gnulib; they have no effect inside glibc proper.
20333         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
20334         as alloca isn't used.
20335         (alloca, __alloca): Likewise.
20336         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
20337         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20338         unconditionally, as gnulib assumes C89 or better.
20339         Do not include <sys/param.h>.
20340         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
20341         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
20342         better.
20343         (NULL) [!defined NULL]: Remove; we assume C89 or better.
20344         Include <dirent.h> in a way that is compatible with modern Autoconf.
20345         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
20346         New macros, if not already defined.
20347         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
20348         Use "_LIBC", not "defined _LIBC", for consistency.
20349         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
20350         a mempcpy module.
20351         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
20352         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
20353         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
20354         credit only to Jim Meyering and adjust the copyright dates.
20355         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
20356         <stdlib.h>, <unistd.h>, "pathmax.h".
20357         Instead, include "xgetcwd.h" (first) and "getcwd.h".
20358         (INITIAL_BUFFER_SIZE): Remove.
20359         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
20360
20361 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20362
20363         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
20364         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
20365         Use the _ONCE methods, for efficiency.
20366         Check for fcntl.h.  In test program, include <errno.h>
20367         and <fcntl.h> if available.  Remove old K&R cruft from
20368         test program.  Check for common errors in GNU/Linux,
20369         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
20370         don't do AC_LIBOBJ, as that's getcwd.m4's job.
20371         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
20372         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
20373         name accordingly.
20374         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
20375         accommodate new getcwd.c.
20376         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
20377         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
20378         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
20379         that's all we need now.
20380
20381 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20382
20383         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
20384         argp-parse.c depends on getopt internals, that means we should
20385         always use our getopt, to be on the safe side.
20386         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
20387         order not to spoil the result of an eventual previous invocation
20388         of gl_GETOPT_SUBSTITUTE.
20389
20390 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20391
20392         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
20393         redefinition warnings. To avoid them, include the defines
20394         in `#if !defined __need_getopt ... #endif'. The only place
20395         where __getopt_argv_const is used is in definitions
20396         of getopt_long and getopt_long_only below, which are as well
20397         protected by `#ifndef __need_getopt'.
20398         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
20399         __need_getopt after including <stdio.h> and <unistd.h> These
20400         headers might have defined it.
20401
20402 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20403
20404         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
20405
20406 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20407
20408         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
20409         (futimens): New function, which uses futimes if available.
20410         (futimens, utimens): Support timespec==NULL, with same semantics
20411         as utime and utimens.
20412         * lib/utimens.h (futimens): New decl.
20413
20414 2004-11-23  Jim Meyering  <jim@meyering.net>
20415
20416         * lib/getopt_.h: Remove trailing blanks.
20417
20418 2004-11-23  Jim Meyering  <jim@meyering.net>
20419
20420         * lib/__fpending.c: Add comment.
20421
20422 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20423
20424         * modules/canonicalize (Depends-on): Add xreadlink.
20425         Problem reported by James Youngman.
20426
20427 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20428
20429         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
20430         New macros.
20431         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
20432         optopt): Use them instead of invoking ## directly; otherwise, the
20433         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
20434
20435 2004-11-19  Bruno Haible  <bruno@clisp.org>
20436
20437         * lib/strtok_r.c: Move comments from here...
20438         * lib/strtok_r.h: ... to here.
20439
20440 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20441
20442         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
20443         implementations that mishandle size_t overflow.
20444
20445 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20446
20447         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
20448         might fail.  Problem reported by Yoann Vandoorselaere.
20449         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
20450         implementations that mishandle size_t overflow.
20451
20452 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20453
20454         * modules/canon-host (Depends-on): Add strdup.
20455
20456 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20457
20458         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
20459
20460 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20461
20462         * lib/canon-host.c: Include "strdup.h".
20463         (canon_host): Use getaddrinfo if available, so that IPv6 works.
20464         Use strdup instead of malloc/strcpy to duplicate strings.
20465
20466         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
20467         (human_space_before_unit): New constant.
20468         * lib/human.c (human_readable): Support it.
20469
20470         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
20471         (xgetcwd): Set errno correctly when failing.
20472         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
20473         the failure is actually due to a PATH_MAX problem.
20474
20475         Further getopt changes to make it more likely that glibc will
20476         buy the changes back.
20477         * lib/getopt.c (POSIXLY_CORRECT): New constant.
20478         (getopt): Use it, so to preserve glibc semantic
20479         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
20480         when compiling for libc.
20481         * lib/getopt_.h (__getopt_argv_const): Bring it back.
20482         (getopt_long, getopt_long_only): Use it.
20483
20484         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20485         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
20486         (getopt): Argv is now char * const *, as per standard.
20487         (_getopt_internal_r, _getopt_internal): Argv is now char **,
20488         not char *__getopt_argv_const *.
20489         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20490         _getopt_long_only_r): Likewise.
20491         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
20492         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20493         _getopt_long_r, _getopt_long_only_r): Likewise.
20494         * lib/getopt_.h (__getopt_argv_const): Remove.
20495         (getopt): Argv is now char * const *, as per standard.
20496
20497         * lib/getdate.y (tORDINAL): New token.
20498         (day, relunit): Allow it for relative times.
20499         (relative_time_table): Use tORDINAL for ordinals.
20500
20501 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
20502
20503         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
20504         Document that "second" isn't allowed as an ordinal number.
20505
20506 2004-11-16  Jim Meyering  <jim@meyering.net>
20507
20508         * modules/closeout (Depends-on): Add fpending.
20509
20510 2004-11-15  Jim Meyering  <jim@meyering.net>
20511
20512         * lib/closeout.c: Include "__fpending.h" once again.
20513         Include <stdbool.h>.
20514         (close_stdout): Don't fail just because stdout was closed initially,
20515         since some programs don't write to stdout in the normal course of
20516         operation (other than --version and --help), and we don't want this
20517         function to make e.g. `touch file >&-' fail.
20518         But do fail if it was closed and someone has tried to write to it.
20519         E.g., `printf foo >&-' must fail.
20520
20521 2004-11-13  Jim Meyering  <jim@meyering.net>
20522
20523         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
20524
20525 2004-11-12  Simon Josefsson  <jas@extundo.com>
20526
20527         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
20528         small doc fix is still pending.
20529
20530 2004-11-11  Simon Josefsson  <jas@extundo.com>
20531
20532         * modules/strtok_r: New file.
20533
20534         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20535         strtok_r.
20536
20537 2004-11-11  Simon Josefsson  <jas@extundo.com>
20538
20539         * m4/strtok_r.m4: New file.
20540
20541         * m4/getopt.m4: Replace opterr.
20542
20543 2004-11-11  Simon Josefsson  <jas@extundo.com>
20544
20545         * lib/strtok_r.h, strtok_r.c: New file.
20546
20547 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
20550         of replacing opterr, getopt, etc.  This should handle the
20551         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
20552
20553 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20554
20555         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
20556         we can stop lying to compilers about the constness of argv when we
20557         are compiled outside glibc.
20558         (getopt, getopt_long, getopt_long_only): Use it.
20559         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20560         _getopt_internal, getopt): Likewise.
20561         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20562         _getopt_long_only_r): Likewise.
20563         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20564         _getopt_long_r, _getopt_long_only_r): Likewise.
20565
20566         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
20567         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
20568         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
20569         the other external symbols.
20570         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
20571         declaration, since the above renaming now works around collisions.
20572
20573 2004-11-11  Jim Meyering  <jim@meyering.net>
20574
20575         * lib/linebreak.c: Remove trailing blanks.
20576         * lib/alloca_.h: Likewise.
20577         * lib/acosl.c: Likewise.
20578         * lib/euidaccess.c: Likewise.
20579         * lib/allocsa.h: Likewise.
20580
20581 2004-11-10  Simon Josefsson  <jas@extundo.com>
20582
20583         * m4/getaddrinfo.m4: New file.
20584
20585 2004-11-10  Simon Josefsson  <jas@extundo.com>
20586
20587         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
20588
20589 2004-11-10  Simon Josefsson  <jas@extundo.com>
20590
20591         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20592         getaddrinfo.
20593
20594         * modules/getaddrinfo: New file.
20595
20596 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20597
20598         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
20599
20600 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20601
20602         * lib/mktime.c (SHR): New macro, which is a portable
20603         substitute for >> that should work even on Crays.
20604         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
20605         Problem reported by Mark D. Baushke in
20606         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
20607         * lib/getdate.y (SHR): Likewise.
20608         (tm_diff): Use it.
20609         * lib/strftime.c (SHR): Likewise.
20610         (tm_diff): Use it.
20611         * lib/quotearg.c (struct quoting_options): Use unsigned int for
20612         quote_these_too, so that right shifts are well defined.  All uses
20613         changed.
20614
20615 2004-11-10  Jim Meyering  <jim@meyering.net>
20616
20617         Ensure that no close failure goes unreported.
20618         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
20619         return early when it seems there's nothing to flush.
20620         Don't include __fpending.h.
20621
20622 2004-11-10  Jim Meyering  <jim@meyering.net>
20623
20624         * modules/closeout (Depends-on): Remove fpending.
20625
20626 2004-11-10  Jim Meyering  <jim@meyering.net>
20627
20628         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
20629
20630 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20631
20632         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
20633         gl_FUNC_STRFTIME.
20634         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
20635         and AC_REQUIRE when possible, to avoid duplicate checks.
20636         Check for <wchar.h>.
20637
20638 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20639
20640         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
20641
20642 2004-11-09  Bruno Haible  <bruno@clisp.org>
20643
20644         * m4/sockpfaf.m4: New file.
20645
20646 2004-11-05  Bruno Haible  <bruno@clisp.org>
20647
20648         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
20649         Reported by Mark D. Baushke <mdb@cvshome.org>.
20650
20651 2004-11-04  Bruno Haible  <bruno@clisp.org>
20652
20653         2004-09-11  Bruno Haible  <bruno@clisp.org>
20654                 * allocsa.valgrind: New file.
20655         2004-02-06  Bruno Haible  <bruno@clisp.org>
20656                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
20657                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
20658                 Reported by Christopher Seip <chris.seip@hp.com>.
20659
20660 2004-11-04  Bruno Haible  <bruno@clisp.org>
20661
20662         * modules/allocsa (Files): Add lib/allocsa.valgrind.
20663         (Makefile.am): Distribute it.
20664
20665 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20666
20667         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
20668         with errno == ERANGE if the buffer is too small.
20669         Problem reported by Mark D. Baushke.
20670
20671 2004-11-03  Albert Chin  <china@thewrittenword.com>
20672             Paul Eggert  <eggert@cs.ucla.edu>
20673
20674         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
20675         equivalent, substitute $ac_type for equivalent type rather than
20676         blindly using uint32_t *always* which won't work if uint32_t is not
20677         available.  Define _UINT32_T to work around typedef of uint32_t if
20678         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
20679         2.5.1.
20680
20681 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20682
20683         * m4/jm-macros.m4: Sync from coreutils.
20684         (gl_MACROS): Check for mbrlen, for pathchk.
20685         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
20686
20687 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20688
20689         * lib/xreadlink.c (MAXSIZE): New macro.
20690         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
20691         size does not exceed MAXSIZE.  Avoid cast.
20692         As suggested by Mark D. Baushke in
20693         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
20694         if readlink fails with buffer size just under MAXSIZE, try again
20695         with MAXSIZE.
20696
20697 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20698
20699         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
20700
20701 2004-11-02  Derek R. Price  <derek@ximbiot.com>
20702         and  Paul Eggert  <eggert@cs.ucla.edu>
20703
20704         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
20705         (get_date): Overparenthesize to avoid GCC warning.
20706
20707 2004-11-02  Bruno Haible  <bruno@clisp.org>
20708
20709         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
20710         returns void.
20711
20712 2004-11-02  Bruno Haible  <bruno@clisp.org>
20713
20714         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
20715         function returns void.
20716
20717 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20718
20719         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
20720         fflush_unlocked, flockfile, funlockfile, funlockfile,
20721         fputs_unlocked, putc_unlocked.
20722
20723 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20724
20725         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
20726         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
20727         already declared.
20728
20729 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20730
20731         * modules/getdate (Files): Add doc/getdate.texi.
20732         (Depends-on): Add setenv, xalloc.
20733
20734 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20735
20736         * lib/getdate.y: Add support for TZ="foo" within a date string.
20737         Fix some bugs near time_t boundaries.  Reject dates with
20738         out-of-range components, e.g., "Sept 31".
20739         Include <stdlib.h>, "setenv.h", "xalloc.h".
20740         (ISDIGIT_LOCALE): Remove; unused.
20741         Note that the TZ and time functions used here are not reentrant.
20742         (mktime_ok, get_tz): New functions.
20743         (TZBUFSIZE): New constant.
20744         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
20745         This requires that we sometimes generate our own TZ="XXX..." setting.
20746
20747 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20748
20749         * doc/getdate.texi: New file, from coreutils with modifications for
20750         the new TZ parsing.
20751
20752 2004-10-27  Derek R. Price  <derek@ximbiot.com>
20753
20754         * lib/mktime.c (not_equal_tm): Remove redundant check.
20755
20756 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20757
20758         * modules/regex (lib_SOURCES): Add regex.c.
20759         Reported by James Youngman in
20760         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
20761
20762 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20763
20764         * lib/getdate.y: Use Bison 1.875 features, and some minor
20765         code cleanups.  This change does not affect semantics.
20766         Don't include <stdlib.h>; no longer needed.
20767         Don't include unlocked-io.h; only the "#if TEST" code uses
20768         stdio, and performance isn't crucial there.
20769         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
20770         Bison 1.875 features as described below.
20771         All uses of "PC." replaced by "pc->".
20772         (YYSTYPE): Add a forward declaration.
20773         (yylex, yyerror): Use full prototypes in forward decls.
20774         Use "%pure-parser" rather than obsolescent "%pure_parser".
20775         Use %parse-param and %lex-param instead of obsolescent
20776         YYPARSE_PARAM and YYLEX_PARAM.
20777         (meridian_table, month_and_day_table, time_units_table,
20778         relative_time_table, time_zone_table, military_table,
20779         lookup_zone, lookup_word, get_date):
20780         Use NULL instead of 0 where appropriate.
20781         (to_hour): Avoid abort (), to avoid a dependency on
20782         stdlib.h.
20783         (yyerror, yylex): Now accepts parser_control * arg.
20784         (main) [TEST]: Use '\0' rather than 0 for char.
20785
20786 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
20787
20788         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
20789
20790 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
20791
20792         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
20793         It's now the caller's responsibility to handle the case where
20794         !HAVE_GETPAGESIZE && !defined getpagesize.
20795
20796         * lib/mktime.c (leapyear): Arg is long int, not int.
20797
20798 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20799
20800         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
20801
20802 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
20803
20804         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
20805         missing.  Problem reported by James Youngman.
20806
20807 2004-10-16  Simon Josefsson  <jas@extundo.com>
20808
20809         * gnulib-tool: Fix comments.  Fix parse problem.
20810         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
20811
20812 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20813
20814         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
20815         implementation of getopt_long.  Problem reported by Alexander Taler in:
20816         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
20817
20818 2004-10-15  Bruno Haible  <bruno@clisp.org>
20819
20820         * gnulib-tool: Untabify. Initialize supplied_libname.
20821         (func_usage): More homogenous output.
20822         (func_modules_transitive_closure, func_modules_to_filelist,
20823         func_emit_lib_Makefile_am): New functions.
20824         (func_import): New function, extracted from big case statement. Use
20825         func_get_license, func_modules_transitive_closure,
20826         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
20827         opt_lgpl. Don't use test -a, as it's not portable.
20828         (func_create_testdir): Use func_modules_transitive_closure,
20829         func_modules_to_filelist, func_emit_lib_Makefile_am.
20830
20831 2004-10-15  Bruno Haible  <bruno@clisp.org>
20832
20833         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
20834
20835 2004-10-15  Bruno Haible  <bruno@clisp.org>
20836
20837         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
20838         the portions belonging to each module.
20839         Suggested by Derek Robert Price <derek@ximbiot.com>.
20840
20841 2004-10-12  Simon Josefsson  <jas@extundo.com>
20842
20843         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
20844         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
20845         to real functions.
20846
20847 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20848
20849         * modules/vsnprintf: New file.
20850
20851 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20852
20853         * m4/vsnprintf.m4: New file.
20854
20855 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20856
20857         * lib/vsnprintf.h: New file.
20858         * lib/vsnprintf.c: New file.
20859
20860 2004-10-11  Bruno Haible  <bruno@clisp.org>
20861
20862         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
20863         vsnprintf.
20864
20865 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20866
20867         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
20868
20869 2004-10-07  Bruno Haible  <bruno@clisp.org>
20870
20871         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
20872         fits into the provided buffer.
20873
20874 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20875
20876         * lib/diacrit.c, diacrit.h: Add GPL notice.
20877
20878         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
20879         notice.
20880         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
20881         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
20882         This avoids a potential constant-folding bug.
20883
20884 2004-10-05  Bruno Haible  <bruno@clisp.org>
20885
20886         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
20887         for the declaration of strsep.
20888
20889 2004-10-05  Bruno Haible  <bruno@clisp.org>
20890
20891         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
20892
20893 2004-10-04  Simon Josefsson  <jas@extundo.com>
20894
20895         * modules/memmem: New file.
20896         * tests/test-memmem.c: New file.
20897         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
20898
20899 2004-10-04  Simon Josefsson  <jas@extundo.com>
20900
20901         * m4/memmem.m4: New file.
20902
20903 2004-10-04  Simon Josefsson  <jas@extundo.com>
20904
20905         * lib/memmem.h: New file.
20906         * lib/memmem.c: New file, taken from glibc.
20907
20908 2004-10-04  Simon Josefsson  <jas@extundo.com>
20909
20910         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
20911         '#ifdef USE_UNLOCKED_IO'.
20912
20913 2004-10-04  Simon Josefsson  <jas@extundo.com>
20914
20915         * config/srclist.txt: Add memmem from glibc.
20916
20917 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20918
20919         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
20920
20921         * modules/argmatch, modules/argp, modules/closeout, modules/error,
20922         modules/exclude, modules/getdate, modules/getline,
20923         modules/getndelim2, modules/getpass, modules/getpass-gnu,
20924         modules/getusershell, modules/linebuffer, modules/md5,
20925         modules/mountlist, modules/posixtm, modules/readtokens,
20926         modules/readutmp, modules/regex, modules/sha1,
20927         modules/version-etc, modules/yesno:
20928         Remove dependency on unlocked-io.
20929
20930 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20931
20932         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
20933
20934         * m4/unlocked-io.m4: Add copyright notice.
20935         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
20936
20937 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20938
20939         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
20940         * lib/xmalloc.c (xmemdup): Likewise.
20941         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
20942         XFREE): Remove these long-obsolescent macros.
20943         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
20944         * lib/xstrdup.c: Remove.
20945
20946         * lib/regex.c (re_comp): Cast gettext return value to char *,
20947         Problem reported by Martin Neitzel via Mark D. Baushke.
20948
20949 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20950
20951         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
20952         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
20953         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
20954         regex.c, sha1.c, version-etc.c, yesno.c:
20955         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
20956         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
20957         the includer's responsibility.
20958
20959         Sync from coreutils.
20960
20961         * lib/modechange.c (mode_compile): Don't decrement a pointer that
20962         points to the start of a string, as the C Standard says the
20963         resulting behavior is undefined.
20964
20965         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
20966         simple -> simple_backups, numbered_existing ->
20967         numbered_existing_backups, numbered -> numbered_backups
20968         to avoid shadowing problems.  All uses changed.
20969         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
20970         * lib/backupfile.c (check_extension, numbered_backup):
20971         Rename locals to avoid shadowing 'basename'.
20972         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
20973         once.
20974
20975         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
20976         * lib/.cvsignore: Add getopt.h.
20977
20978 2004-10-04  Bruno Haible  <bruno@clisp.org>
20979
20980         * modules/README: New file.
20981         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
20982         not a module.
20983
20984 2004-10-02  Jim Meyering  <jim@meyering.net>
20985
20986         * lib/dirfd.h, getpagesize.h: Add copyright notice.
20987
20988 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20989
20990         * modules/strsep: New file.
20991
20992 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20993
20994         * m4/strsep.m4: New file.
20995
20996 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20997
20998         * lib/strsep.h: New file.
20999         * lib/strsep.c: New file.
21000
21001 2004-10-01  Simon Josefsson  <jas@extundo.com>
21002
21003         * lib/snprintf.c (snprintf): Handle size==0.
21004
21005 2004-10-01  Simon Josefsson  <jas@extundo.com>
21006             Bruno Haible  <bruno@clisp.org>
21007
21008         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
21009         (snprintf): Declare 'args'.
21010
21011 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21012
21013         * lib/snprintf.c: Remove comments as to why each header is needed.
21014
21015 2004-10-01  Bruno Haible  <bruno@clisp.org>
21016
21017         * MODULES.html.sh: Add strsep.
21018
21019 2004-09-30  Simon Josefsson  <jas@extundo.com>
21020
21021         * modules/snprintf: New file.
21022
21023 2004-09-30  Simon Josefsson  <jas@extundo.com>
21024
21025         * m4/snprintf.m4: New file.
21026
21027 2004-09-30  Simon Josefsson  <jas@extundo.com>
21028
21029         * lib/snprintf.h, lib/snprintf.c: New files.
21030
21031 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21032
21033         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
21034         (hol_entry_help): Never translate an empty string.
21035         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
21036         * lib/argp.h (OPTION_NO_TRANS): New option.
21037
21038 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21039
21040         * modules/argp (Maintainer): Replace Simon Josefsson
21041         by Sergey Poznyakoff.
21042
21043 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21044
21045         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
21046         changes merged back into glibc.
21047
21048 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21049
21050         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
21051
21052 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
21053
21054         * lib/xvasprintf.c: Include xalloc.h.
21055         (xvasprintf): Use xalloc_die, not xmalloc_die.
21056
21057 2004-09-29  Bruno Haible  <bruno@clisp.org>
21058
21059         * modules/alloca-opt: New file, derived from modules/alloca.
21060         * modules/allocsa: Depend on alloca-opt instead of alloca.
21061         * modules/setenv: Likewise.
21062         * modules/vasnprintf: Likewise.
21063         * MODULES.html.sh: Add alloca-opt.
21064
21065 2004-09-28  Simon Josefsson  <jas@extundo.com>
21066
21067         * gnulib-tool: New parameter --lgpl, to asseert that modules are
21068         LGPL, and to replace license template from GPL to LGPL.
21069
21070 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
21071
21072         * modules/dummy: Change license to LGPL.
21073
21074 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
21075
21076         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
21077
21078 2004-09-24  Simon Josefsson  <jas@extundo.com>
21079
21080         * modules/minmax (License): Change from GPL to LGPL.
21081
21082 2004-09-23  Simon Josefsson  <jas@extundo.com>
21083
21084         * gnulib-tool (--import): Typo.
21085
21086 2004-09-23  Simon Josefsson  <jas@extundo.com>
21087
21088         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
21089
21090 2004-09-22  Bruno Haible  <bruno@clisp.org>
21091
21092         * modules/*: Add 'License' field.
21093         * gnulib-tool: Accept --extract-license option.
21094         (func_get_license): New function.
21095
21096 2004-09-21  Bruno Haible  <bruno@clisp.org>
21097
21098         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
21099         Reported by Simon Josefsson.
21100
21101 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21102
21103         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
21104         gl_AC_TYPE_LONG_LONG.
21105
21106 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21107
21108         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
21109
21110 2004-09-18  Simon Josefsson  <jas@extundo.com>
21111         and  Paul Eggert  <eggert@cs.ucla.edu>
21112
21113         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
21114         calls with autoreconf.  Define GL_LIB.
21115
21116 2004-09-14  Karl Berry  <karl@gnu.org>
21117
21118         * config/srclist.txt: unsync setenv.c, sigh.
21119
21120 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21121
21122         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
21123         Problem reported by Bruno Haible in:
21124         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
21125
21126 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21127
21128         * config/srclist.txt: Comment out argp-pvh.c.
21129
21130 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
21131
21132         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
21133         in case some system header has #define'd it.  Problem reported by
21134         Soeren D. Schulze in
21135         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
21136
21137 2004-09-09  Karl Berry  <karl@gnu.org>
21138
21139         * regex.[ch]: delete from the root.  These were supposed to be
21140                 synced with emacs cvs, but this has not happened for about
21141                 a year, and anyway nothing else uses emacs regex.[ch].
21142                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
21143                 lib/regex[.ch] is untouched.
21144
21145 2004-09-09  Bruno Haible  <bruno@clisp.org>
21146
21147         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
21148
21149 2004-09-09  Bruno Haible  <bruno@clisp.org>
21150
21151         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
21152         modifications.
21153         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
21154
21155 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
21156
21157         * modules/xvasprintf: New file.
21158         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
21159
21160 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
21161
21162         * lib/xvasprintf.h: New file.
21163         * lib/xvasprintf.c: New file.
21164         * lib/xasprintf.c: New file.
21165
21166 2004-09-08  Bruno Haible  <bruno@clisp.org>
21167
21168         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
21169
21170 2004-09-08  Bruno Haible  <bruno@clisp.org>
21171
21172         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
21173         length is > INT_MAX.
21174         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
21175         more.
21176
21177 2004-09-08  Bruno Haible  <bruno@clisp.org>
21178
21179         * lib/stdint_.h: New file, taken from GNU clisp.
21180
21181 2004-09-08  Bruno Haible  <bruno@clisp.org>
21182             Oskar Liljeblad  <oskar@osk.mine.nu>
21183
21184         * modules/stdint: New file.
21185         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
21186
21187 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21188
21189         Import from coreutils.
21190         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
21191         strings on unbounded length.  alloca's performance benefits aren't
21192         that important here.
21193         (V_STRDUP): Remove.
21194         (parse_with_separator): New function, with most of the internals
21195         of the old parse_user_spec.  Allow user to omit both user and group,
21196         for compatibility with FreeBSD.
21197         Clone only the user name, not the entire spec.
21198         Do not set *uid, *gid unless entirely successful.
21199         Avoid memory leak in some failing cases.
21200         Fix regression for USER.GROUP reported by Dmitry V. Levin in
21201         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
21202         (parse_user_spec): Rewrite to use parse_with_separator.
21203
21204 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21205
21206         * modules/userspec: Don't depend on alloca.
21207
21208 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21209
21210         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
21211
21212 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21213
21214         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
21215         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
21216         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
21217
21218 2004-08-16  Simon Josefsson  <jas@extundo.com>
21219
21220         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
21221         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
21222         Add --dry-run for --import.
21223         Let user provided command line parameters override configure.ac
21224         settings.
21225
21226 2004-08-12  Simon Josefsson  <jas@extundo.com>
21227
21228         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
21229         as discussed with Paul Eggert in threads rooted at
21230         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
21231         and
21232         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
21233         Before, the test was empty, and relied on ELIDE_CODE in source
21234         code.)
21235         (gl_PREREQ_GETOPT): New macro.
21236         (gl_GETOPT): Use them.
21237
21238 2004-08-12  Simon Josefsson  <jas@extundo.com>
21239
21240         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
21241         * lib/getopt_.h: Renamed from getopt.h.
21242
21243 2004-08-12  Simon Josefsson  <jas@extundo.com>
21244
21245         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
21246         Change default library name from libfoo to libgnu.
21247         Now, if you have a configure.ac that says:
21248                 gl_SOURCE_BASE(gl)
21249                 gl_M4_BASE(gl/m4)
21250                 gl_MODULES(error getopt etcetera)
21251                 gl_INIT
21252         you can import all you need by running:
21253                 ../gnulib/gnulib-tool --import
21254
21255         * modules/getopt (Files): Rename getopt.h to getopt_.h.
21256         (Makefile.am): Rewrite, use logic from argz.
21257         (Include): Use <getopt.h> instead of "getopt.h".
21258
21259 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21260
21261         * modules/argp (Files): Add m4/unlocked-io.m4.
21262         (Depends-on): Add extensions.
21263
21264 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21265
21266         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
21267         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
21268         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
21269         Check for program_invocation_name, program_invocation_short_name,
21270         flockfile, funlockfile, features.h, _getopt_long_only_r.
21271
21272 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21273
21274         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
21275         its complicated substitute.
21276         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
21277         and program_invocation_name.
21278         (__argp_basename) [!_LIBC]: Remove; the only use was
21279         replaced by its body.
21280         (__argp_short_program_name): Change condition from
21281         !defined __argp_short_program_name to
21282         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
21283         to match argp-namefrob.h.
21284         (__argp_failure): Don't assume strerror_r returns char *.
21285         * lib/argp-parse.c (N_): Define unconditionally.
21286         (argp_default_options): Fill out initializers with 0 to avoid
21287         gcc warnings.
21288
21289 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21290
21291         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
21292         getopt1.c.
21293
21294 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21295
21296         Merge from coreutils.
21297
21298         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
21299
21300         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
21301         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
21302
21303 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21304
21305         Merge from coreutils.
21306
21307         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
21308         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
21309         for Reliant Unix 5.43.
21310
21311         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
21312         (union fooround): Use uintmax_t, not long int.
21313         The rest is a merge from libc:
21314         [defined _LIBC]: Include <shlib-compat.h>.
21315         (_obstack) [defined _LIBC]: Remove after 2.3.4.
21316
21317         * lib/settime.c (settime): Recode to avoid warning with
21318         Sun Forte C 6U2.
21319
21320         * lib/strverscmp.c: Convert to UTF-8.
21321
21322 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21323
21324         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
21325         m4/uintmax_t.m4.
21326
21327 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21328
21329         * modules/xalloc-die: New file.
21330         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
21331
21332         * modules/md5 (Files): Add m4/uint32_t.m4.
21333         * modules/sha1: Renamed from modules/sha.
21334         (Files):
21335         Rename lib/sha.h to lib/sha1.h.
21336         Rename lib/sha.c to lib/sha1.c.
21337         Rename m4/sha.m4 to m4/sha1.m4.
21338         (lib_SOURCES): Likewise.
21339         (configure.ac): Rename gl_SHA to gl_SHA1.
21340         (Include): sha.h -> sha1.h.
21341
21342 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21343
21344         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
21345         * m4/sha1.m4: Renamed from sha.m4.
21346         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
21347
21348 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21349
21350         * lib/obstack.h (obstack_empty_p):
21351         Don't assume that chunk->contents is suitably aligned.
21352         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
21353         Likewise. Problem reported by Benno in
21354         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
21355
21356         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
21357         readable.  This could be improved further but it'd take some work.
21358
21359 2004-08-08  Simon Josefsson  <jas@extundo.com>
21360
21361         * modules/xgethostname (Depends-on): Remove exit and error (not
21362         used).
21363
21364         * modules/getpass-gnu: Add getpass.h.
21365         (Depends-on): Add stdbool.
21366         * modules/getpass: Add getpass.h.
21367
21368 2004-08-08  Simon Josefsson  <jas@extundo.com>
21369
21370         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
21371         Check getpass declaration.
21372
21373 2004-08-08  Simon Josefsson  <jas@extundo.com>
21374
21375         * lib/xgethostname.c: Don't include error.h (not used).
21376
21377         * lib/getpass.h: Add.
21378         * lib/getpass.c: Include getpass.h first.
21379
21380 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21381
21382         * lib/xalloc-die.c: New file.
21383         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
21384         All uses removed.
21385         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
21386         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
21387         xalloc-die.c.
21388         (_, N_, xalloc_die): Move to xalloc-die.c.
21389         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
21390         so that we needn't mess with xalloc_msg_memory_exhausted.
21391
21392         * lib/sha1.h: Renamed from sha.h.
21393         (SHA1_H): Renamed from _SHA_H.
21394         (sha1_ctx): Renamed from sha_ctx.
21395         (sha1_init_ctx): Renamed from sha_init_ctx.
21396         (sha1_process_block): Renamed from sha_process_block.
21397         (sha1_process_bytes): Renamed from sha_process_bytes.
21398         (sha1_finish_ctx): Renamed from sha_finish_ctx.
21399         (sha1_read_ctx): Renamed from sha_read_ctx.
21400         (sha1_stream): Renamed from sha_stream.
21401         (sha1_buffer): Renamed from sha_buffer.
21402         * lib/sha1.c: Likewise; renamed from sha.c.
21403         Do not include <sys/types.h>.
21404         Include <stddef.h> rather than <stdlib.h>.
21405
21406 2004-08-08  Bruno Haible  <bruno@clisp.org>
21407
21408         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
21409         FILESYSTEM_PREFIX_LEN.
21410         * lib/progreloc.c: Likewise.
21411         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
21412
21413 2004-08-06  Simon Josefsson  <jas@extundo.com>
21414
21415         * modules/progname (Depends-on): Don't depend on stdbool.
21416
21417 2004-08-06  Simon Josefsson  <jas@extundo.com>
21418
21419         * modules/getsubopt: New file.
21420         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21421         getsubopt.
21422
21423 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21424
21425         More merge from coreutils.
21426
21427         * m4/utimens.m4, m4/utimecmp.m4: New files.
21428         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
21429         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
21430         prereq.m4, sha.m4: Import changes from coreutils.
21431
21432 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21433
21434         More merge from coreutils.
21435         * modules/raise, modules/readtokens0, modules/utimens:
21436         * modules/utimecmp, module/xnanosleep: New files.
21437         * modules/strftime: Add lib/strftime.h.
21438         Change include from <time.h> to "strftime.h".
21439         * modules/yesno: Add lib/yesno.h.
21440         * modules/backupfile: Remove lib/addext.c.
21441         * modules/euidaccess: Add stat-macros.h.
21442         * modules/canonicalize, modules/euidaccess,
21443         modules/filemode, modules/lchown, modules/makepath,
21444         modules/rmdir, modules/stat: Likewise.
21445
21446 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21447
21448         Merge from tar.
21449         * lib/argp-help.c (make_hol, hol_append): Don't assume that
21450         SIZE_MAX is a valid preprocessor constant.
21451         (__argp_basename): Change from "#ifndef _LIBC"
21452         to "#ifndef __argp_short_program_name", so that
21453         we don't compile these functions for tar.
21454
21455         More merges from coreutils.
21456         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
21457         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
21458         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
21459         * lib/addext.c: Remove; no longer needed.
21460         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
21461         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
21462         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
21463         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
21464         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
21465         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
21466         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
21467         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
21468         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
21469         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
21470         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
21471         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
21472         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
21473         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
21474         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
21475         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
21476         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
21477         Import changes from coreutils.
21478
21479 2004-08-05  Simon Josefsson  <jas@extundo.com>
21480
21481         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
21482
21483 2004-08-05  Simon Josefsson  <jas@extundo.com>
21484
21485         * m4/getsubopt.m4: New file.
21486
21487 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21488
21489         Merge from coreutils.
21490
21491         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
21492         * m4/getcwd-path-max.m4: New files.
21493
21494         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
21495         FILESYSTEM_PREFIX_LEN ->
21496         FILE_SYSTEM_PREFIX_LEN.
21497         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
21498         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
21499         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
21500         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
21501
21502         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
21503         prerequisite modules now handle the DOS stuff.
21504         Don't check for unistd.h.
21505
21506 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21507
21508         Merge from coreutils.
21509
21510         * lib/.gdb-history: Remove; this doesn't belong here.
21511
21512         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
21513         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
21514         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
21515         * lib/getcwd.c: New files.
21516
21517         * lib/dirname.h: Include <stdbool.h>.
21518         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
21519         for consistency with POSIX terminology.  All uses changed.
21520         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
21521         (strip_trailing_slashes): Use bool for booleans.
21522         * lib/stripslash.c (strip_trailing_slashes): Likewise.
21523
21524         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
21525         sometimes returns a positive errno value even when it succeeds.
21526         (print_errno_message) [!LIBC]: Fall back on strerror if
21527         __strerror_r fails.
21528
21529         * lib/path-concat.c (mempcpy): Don't define if a system header defines
21530         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
21531         (longest_relative_suffix): New function.
21532         (path_concat): Use it.  Assume first argument is not NULL.
21533         Port to DOS.  Omit redundant separators.
21534         Report an error instead of returning NULL.
21535         Use mempcpy instead of memcpy.
21536         (xpath_concat): Remove: not declared or used.
21537
21538         * lib/same.h: Include <stdbool.h>
21539         (same_name): Return bool, not int.
21540         * lib/same.c (same_name): Likewise.
21541         (errno): Don't declare; we assume C89 or better now.
21542
21543         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
21544         if not already defined.
21545
21546         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
21547         * lib/dup-safer.c (errno): Likewise.
21548
21549 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21550
21551         Merge from coreutils.
21552         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
21553         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
21554         * modules/path-concat: Don't depend on strdup.
21555
21556 2004-08-03  Simon Josefsson  <jas@extundo.com>
21557
21558         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
21559         * lib/progname.h: Don't include stdbool.h.
21560
21561 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21562
21563         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
21564         * MODULES.html.sh (func_all_modules): Remove fatal.
21565
21566 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21567
21568         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
21569
21570 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21571
21572         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
21573         working.
21574
21575 2004-08-02  Simon Josefsson  <jas@extundo.com>
21576
21577         * lib/getsubopt.h: New file, with comments from Bruno Haible.
21578         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
21579         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
21580
21581 2004-08-01  Simon Josefsson  <jas@extundo.com>
21582
21583         * lib/xgetdomainname.c: Include stdlib.h, for free().
21584
21585 2004-07-19  Bruno Haible  <bruno@clisp.org>
21586
21587         * MODULES.html.sh (func_all_modules): Add dummy.
21588
21589 2004-07-16  Simon Josefsson  <jas@extundo.com>
21590
21591         * modules/dummy: New file.
21592
21593 2004-07-16  Simon Josefsson  <jas@extundo.com>
21594
21595         * lib/dummy.c: New file.
21596
21597 2004-07-16  Bruno Haible  <bruno@clisp.org>
21598
21599         * lib/backupfile.h: Add extern "C" for C++.
21600         * lib/closeout.h: Likewise.
21601         * lib/copy-file.h: Likewise.
21602         * lib/findprog.h: Likewise.
21603         * lib/full-write.h: Likewise.
21604         * lib/pathname.h: Likewise.
21605         * lib/progname.h: Likewise.
21606         * lib/stpcpy.h: Likewise.
21607         * lib/stpncpy.h: Likewise.
21608         * lib/strcase.h: Likewise.
21609         * lib/strstr.h: Likewise.
21610         * lib/xalloc.h: Likewise.
21611
21612         * lib/mbswidth.h: Add extern "C" for C++.
21613         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
21614
21615 2004-07-13  Robert Millan  <robertmh@gnu.org>
21616
21617         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
21618
21619 2004-07-09  Simon Josefsson  <jas@extundo.com>
21620
21621         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
21622         failed without this.)
21623
21624 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         * modules/chown (Files): Add lib/fchown-stub.c, since
21627         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
21628
21629 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21630
21631         * lib/fchown-stub.c: New file.
21632
21633 2004-06-24  Jim Meyering  <jim@meyering.net>
21634
21635         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
21636
21637 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21638
21639         * modules/argz: Omit "#include".
21640
21641         * MODULES.html.sh (func_all_modules): Add calloc, to match
21642         2004-06-01 addition of calloc module.
21643
21644 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21645
21646         * m4/argz.m4: New file, which is autoupdated from libtool.
21647
21648 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21649
21650         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
21651         libtool.
21652
21653 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21654
21655         * config/srclist-update: Don't insist on "USA." before the
21656         close-comment, as libtool omits the period and puts the */ on a
21657         separate line.
21658         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
21659         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
21660
21661 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
21662
21663         * modules/argz: New file.
21664         * MODULES.html.sh (func_all_modules): Add argz.
21665
21666 2004-06-12  Jim Meyering  <jim@meyering.net>
21667         and  Paul Eggert  <eggert@cs.ucla.edu>
21668
21669         * modules/hash (Files): Add lib/xalloc.h.
21670         * modules/pipe (Depends-on): Add wait-process.
21671         * modules/stat (Depends-on): Add xalloc.
21672         * modules/userspec (Files): Add lib/userspec.h.
21673         * modules/xstrto
21674
21675         Upgrade from gettext-0.13.
21676         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
21677         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
21678         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
21679
21680 2004-06-10  Jim Meyering  <jim@meyering.net>
21681
21682         * lib/calloc.c: New file.
21683
21684 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
21685
21686         * lib/getdate.y (yylex): Allow space between sign and number.
21687         Problem reported by Dan Jacobson.
21688
21689 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21690
21691         Merge from coreutils CVS.
21692
21693         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
21694         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
21695         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
21696         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
21697         xstrtol.m4: Fix copyright date and/or serial number.
21698
21699         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
21700         See if we need an fchown replacement.
21701         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
21702         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
21703         and use the replacement function if we detect either defect.
21704
21705         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
21706         gl_UTIMECMP.
21707
21708 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21709         and  Jim Meyering  <jim@meyering.net>
21710
21711         Merge from coreutils CVS.
21712
21713         * lib/stat-macros.h: New file, with contents from file-type.h
21714         and coreutils' system.h.
21715         * lib/file-type.c: Include "stat-macros.h".
21716         * lib/file-type.h (file_type): Move all macro definitions to new file,
21717         stat-macros.h.
21718
21719         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
21720         Wrap old code with this conditional.
21721         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
21722         function that does not dereference symlinks.
21723         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
21724
21725         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
21726         dependency problems.
21727         (xreadlink): Accept new arg SIZE, for efficiency.
21728         All decls and uses changed.
21729         * lib/xreadlink.h: Include <stddef.h>, for size_t.
21730
21731         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
21732         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
21733
21734         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
21735         sysexits.h.
21736
21737 2004-06-01  Jim Meyering  <jim@meyering.net>
21738
21739         * m4/calloc.m4: New file.
21740
21741 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
21742
21743         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
21744         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
21745         Also, fix a typo in a diagnostic.
21746
21747 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
21748
21749         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
21750         or AC_FUNC_REALLOC.
21751
21752 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
21753
21754         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
21755         macros to be defined.
21756         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
21757         the allocator returns NULL because the requested size is zero.
21758
21759 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21760
21761         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
21762         var.  Add comment explaining why libc still defines it.  This
21763         merges the following patch from glibc:
21764         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
21765
21766 2004-05-20  Andreas Schwab  <schwab@suse.de>
21767
21768         * m4/free.m4: Replace free if it not known to work, not the other
21769         way round.
21770
21771 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21772
21773         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
21774         present in glibc since revision 1.1 of this file.
21775         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
21776         obstack_alignment_mask, obstack_alloc, obstack_base,
21777         obstack_blank, obstack_blank_fast, obstack_chunk_size,
21778         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
21779         obstack_grow0, obstack_init, obstack_int_grow,
21780         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
21781         obstack_next_free, obstack_object_size, obstack_ptr_grow,
21782         obstack_ptr_grow_fast, obstack_room): Remove declarations of
21783         nonexistent functions.
21784
21785 2004-05-18  Karl Berry  <karl@gnu.org>
21786
21787         * config/srclist.txt: break link for vasnprintf.c.
21788
21789 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21790
21791         Port obstack to the AS/400, where pointers are 16 bytes wide and
21792         you cannot cast an integer to a valid pointer.  This patch is
21793         currently waiting to be integrated into glibc; see
21794         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
21795
21796         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
21797         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
21798         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
21799         (struct obstack): temp member is now a union of a pointer and
21800         an integer, instead of an integer.  All integer uses changed.
21801         This does not affect the physical layout of struct obstack,
21802         except on hosts (like the AS/400) where the size or alignment of
21803         void * is greater than that of ptrdiff_t.
21804         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
21805         __STDC__)]: Store temporary in pointer member of union, not
21806         integer member.
21807         * lib/obstack.c: Include <stddef.h>, for offsetof.
21808         (struct fooalign): Remove; it doesn't need a name.
21809         (union fooround): Change double to long double, and add void *.
21810         (DEFAULT_ALIGNMENT): Use offsetof to compute.
21811         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
21812         not a macro.  Hence the values are always int; so remove all
21813         casts-to-int in uses.
21814
21815 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21816
21817         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
21818         we can get this patch merged into glibc.
21819
21820 2004-05-17  Derek R. Price  <derek@ximbiot.com>
21821             Paul Eggert  <eggert@cs.ucla.edu>
21822
21823         * m4/argp: Depend on alloca.
21824
21825 2004-05-17  Derek R. Price  <derek@ximbiot.com>
21826             Paul Eggert  <eggert@cs.ucla.edu>
21827
21828         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
21829         freecoding.
21830
21831 2004-05-17  Bruno Haible  <bruno@clisp.org>
21832
21833         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
21834         precision that consists of a '.' followed by an empty digit string.
21835         Patch by Tor Lillqvist <tml@iki.fi>.
21836
21837 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21838
21839         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
21840         for backward compatibility with older code.  We need our own
21841         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
21842         it under some other name, and our alloca.h will define it.
21843
21844 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21845             Derek Price  <derek@ximbiot.com>
21846
21847         * lib/alloca.c: Include <alloca.h>, to get our interface.
21848         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
21849         include <alloca.h> first.  Use C89 prototype for alloca; this
21850         requires including <stddef.h> for size_t.  Use extern "C" if C++.
21851         Use #elif for simplicity, since we can assume C89 now.
21852         Don't try to source the system alloca.h since it will not be found
21853         and to prevent recursively including its replacement.
21854         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
21855         * lib/regex.c: Likewise.
21856
21857 2004-05-16  Derek Price  <derek@ximbiot.com>
21858             Paul Eggert  <eggert@cs.ucla.edu>
21859
21860         getline cleanup.  This changes the getndelim2 API: both order of
21861         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
21862         no delimiter).
21863
21864         * lib/getline.c: Don't include stddef.h or stdio.h, since our
21865         interface does that.
21866         (getline): Always use getdelim, so that we don't have two
21867         copies of this code.
21868         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
21869         if available.
21870         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
21871         (GETNDELIM2_MAXIMUM): New macro.
21872         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
21873         instead of the old practice of delim2==0.  All callers changed.
21874         Return -1 on overflow, instead of returning junk.
21875         Do not set *linesize unless allocation succeeds.
21876         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
21877         that we include sys/types.h.
21878         * lib/getnline.h: Likewise.
21879         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
21880         (getndelim2): Reorder arguments.
21881         * lib/getnline.c (getnline, getndelim):
21882         Don't discard the NMAX argument.
21883         (getnline): Invoke getndelim, to avoid code duplication.
21884         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
21885         of (size_t) -1 by callers of the getnline family.
21886
21887 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21888
21889         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
21890         Check for gettimeofday.
21891         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
21892         Check for settimeofday, stime.
21893
21894 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21895
21896         * lib/nanosleep.c (suspended): Change its type from int to
21897         sig_atomic_t volatile.
21898         (first_call): Make it private to rpl_nanosleep, and have it
21899         be zero initially as that's a bit faster.
21900         (my_usleep): Round up fractional times instead of truncating them,
21901         as this is the usual meaning for 'sleep'.
21902
21903         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
21904         doesn't work.
21905         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
21906         (ENOSYS): Define if not defined.
21907         (settime): Fall back on stime if it exists and settimeofday fails.
21908         But don't bother with fallbacks if a method fails with errno == EPERM.
21909
21910 2004-05-11  Jim Meyering  <jim@meyering.net>
21911
21912         Prior to this change, the save_cwd caller required read access to the
21913         current directory on most systems (ones with the fchdir function).
21914
21915         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
21916         fails, try write-only, and finally, resort to using xgetcwd.
21917
21918 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21919
21920         * lib/obstack.c, obstack.h: Import changes from libc.
21921
21922 2004-04-28  Bruno Haible  <bruno@clisp.org>
21923
21924         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
21925         also implicitly appends .exe to executables.
21926         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
21927         accepts Windows pathnames.
21928         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
21929         Treat Cygwin like Windows, since it now accepts Windows pathnames.
21930         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
21931         Treat Cygwin like Windows, since it now accepts Windows pathnames.
21932         Reported by Derek Robert Price <derek@ximbiot.com>.
21933
21934 2004-04-21  Karl Berry  <karl@gnu.org>
21935
21936         * config/srclist.txt (localcharset.c): break sync.
21937
21938 2004-04-20  Paul Eggert  <eggert@twinsun.com>
21939
21940         * m4/host-os.m4: Add a copyright notice.
21941
21942 2004-04-20  Jim Meyering  <jim@meyering.net>
21943
21944         Change UTILS_ to gl_ in AC_DEFINE'd names.
21945         Change utils_- and jm_-prefixed variables, too.
21946         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
21947         UTILS_FUNC_MKDIR_TRAILING_SLASH.
21948         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
21949
21950         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
21951         Don't emit trailing blanks.
21952         Also rename jm_-prefixed variables to have gl_ prefix.
21953
21954         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
21955         Also rename jm_-prefixed variables to have gl_ prefix.
21956
21957         * m4/jm-macros.m4: Reflect the renamings.
21958         * m4/prereq.m4: Likewise.
21959
21960 2004-04-20  Jim Meyering  <jim@meyering.net>
21961
21962         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
21963         memory.
21964
21965 2004-04-20  Jim Meyering  <jim@meyering.net>
21966             Bruno Haible  <bruno@clisp.org>
21967
21968         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
21969         memory when realloc fails.
21970
21971 2004-04-19  Jim Meyering  <jim@meyering.net>
21972
21973         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
21974         now that readutmp.c may call `free (0)'.
21975
21976 2004-04-19  Bruno Haible  <bruno@clisp.org>
21977
21978         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
21979         * m4/inttypes_h.m4: Likewise.
21980         * m4/stdint_h.m4: Likewise.
21981         * m4/intmax_t.m4: Likewise.
21982         * m4/uintmax_t.m4: Likewise.
21983
21984 2004-04-18  Jim Meyering  <jim@meyering.net>
21985
21986         * m4/prereq.m4: Don't forbid jm_ prefix.
21987
21988         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
21989         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
21990         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
21991         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
21992         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
21993         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
21994         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
21995         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
21996         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
21997         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
21998         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
21999         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
22000         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
22001         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
22002         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
22003         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
22004         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
22005         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
22006         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
22007
22008 2004-04-18  Jim Meyering  <jim@meyering.net>
22009
22010         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
22011         failure, don't leak memory and do call END_UTMP_ENT.
22012
22013 2004-04-16  Jim Meyering  <jim@meyering.net>
22014
22015         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
22016         coreutils' stat program.
22017         (gl_PREREQ): Don't require jm_PREREQ_STAT.
22018
22019 2004-04-11  Paul Eggert  <eggert@twinsun.com>
22020
22021         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
22022         C89.
22023         (CHAR_BIT): Remove, since we assume C89.
22024         Include <stdint.h> if available, as per current Autoconf CVS advice.
22025
22026 2004-03-31  Jim Meyering  <jim@meyering.net>
22027
22028         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
22029         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
22030         * m4/xalloc.m4: Likewise.
22031
22032 2004-03-30  Paul Eggert  <eggert@twinsun.com>
22033
22034         Merge from coreutils.
22035
22036         * m4/inttostr.m4: New file.
22037         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
22038         Require AM_STDBOOL_H and gl_TIMESPEC instead.
22039         Require gl_CLOCK_TIME.
22040         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
22041
22042 2004-03-30  Paul Eggert  <eggert@twinsun.com>
22043
22044         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
22045         not bool, to be more consistent with Unix conventions.
22046         Suggested by Bruno Haible.
22047
22048         Merge from coreutils.
22049
22050         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
22051         * lib/umaxtostr.c: New files.
22052
22053         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
22054         the usual <time.h> dance.
22055         (get_date): Change signature to support fractional time stamps.
22056         All callers changed.
22057         * lib/getdate.y: Include "getdate.h" first, as we can now
22058         assume C89 and don't need to worry about 'const'.
22059         Similarly, include "unlocked-io.h" near start, not in middle.
22060         Include <limits.h>.
22061         (textint.value): Use long int rather than int.
22062         (textint.digits): Use size_t rather than int.
22063         (BILLION, LOG10_BILLION): New constants.
22064         (parser_control): New member rel_ns.  Members day_ordinal,
22065         time_zone, month, day, hour, minutes, rel_year, rel_month,
22066         rel_day, rel_hour, rel_minutes, rel_seconds
22067         are now long int, not int.  Member seconds is now struct timespec,
22068         not int.  New member timespec_seen.  Members dates_seen, days_seen,
22069         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
22070         not int.
22071         (%union.intval): Now long int, not int.
22072         New member timespec.
22073         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
22074         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
22075         (spec): Now is a timespec or an item list.
22076         (timespec, items): New nonterminals.
22077         (time, rel, relunit, number, get_date):
22078         Add support for fractional seconds.
22079         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
22080         (gmtime, localtime, mktime): Remove decls; not needed with C89.
22081         (to_hour): First arg is now long int, not int.
22082         (to_year): Returns long int, not int.
22083         Don't treat year -70 like 70.
22084         (tm_diff): Returns long int, not int.
22085         (lookup_word): Use bool instead of int when appropriate.
22086         (yylex): Use size_t for count, not int.
22087         Detect overflow when parsing large integer constants.
22088         Add support for fractions.
22089         (get_date): Make pointers 'const' if possible.
22090         Use more-portable code to detect integer overflow.
22091         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
22092         Don't use ctime; it's not reliable if the year has >4 digits.
22093
22094         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
22095         This is for compatibility with BSD.
22096
22097         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
22098         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
22099         From coreutils' system.h.
22100
22101         * lib/userspec.c: Don't include "posixver.h".
22102         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
22103         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
22104         compatible extension.  Simplify code by removing a boolean int
22105         that was always nonzero if a string was nonnull.
22106
22107 2004-03-30  Jim Meyering  <jim@meyering.net>
22108
22109         Merge from coreutils.
22110
22111         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
22112         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
22113         on some systems one must include <grp.h> before it.
22114         Reported by Christian Krackowizer.
22115
22116 2004-03-30  Jim Meyering  <jim@meyering.net>
22117
22118         Merge from coreutils.
22119
22120         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
22121
22122         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
22123         an empty input stream.
22124
22125         * lib/readtokens.c: Include <stdbool.h>.
22126         (readtoken): Use `size_t' rather than int/long.
22127         All callers adjusted.
22128         Use `bool' rather than `int' where appropriate.
22129         Use memset rather than an explicit loop.
22130         Use x2nrealloc rather than xrealloc.
22131         Allow the use of `\0' as a delimiter.
22132         (readtokens): Likewise.
22133         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
22134
22135 2004-03-30  Jim Meyering  <jim@meyering.net>
22136
22137         * m4/realloc.m4: Remove file, since now it does no more than
22138         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
22139         the `configure.ac' section of module/realloc.
22140         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
22141
22142 2004-03-30  Bruno Haible  <bruno@clisp.org>
22143
22144         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
22145         nonnull.
22146
22147 2004-03-29  Paul Eggert  <eggert@twinsun.com>
22148
22149         Merge changes to getloadavg.c from coreutils and Emacs.
22150
22151         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
22152         Define to an expression, not to the empty string.
22153         Include cloexec.h and xalloc.h.
22154         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
22155         Use set_cloexec_flag rather than rolling our own.
22156         * lib/cloexec.c, lib/cloexec.h: New files.
22157
22158 2004-03-29  Paul Eggert  <eggert@twinsun.com>
22159
22160         * m4/cloexec.m4: New file.
22161
22162 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22163
22164         * lib/getopt.h: Sync with libc CVS.
22165
22166 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22167             Bruno Haible  <bruno@clisp.org>
22168
22169         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
22170         mbswidth.
22171
22172 2004-03-18  Paul Eggert  <eggert@twinsun.com>
22173             Bruno Haible  <bruno@clisp.org>
22174
22175         * lib/mbswidth.h: Include <wchar.h> only if
22176         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
22177         <wchar.h>.
22178         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
22179
22180 2004-03-09  Paul Eggert  <eggert@twinsun.com>
22181
22182         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
22183         Sync with libc CVS.
22184         * lib/getopt_int.h: New file, also synced from libc.
22185
22186 2004-03-09  Paul Eggert  <eggert@twinsun.com>
22187
22188         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
22189         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
22190         Bring back getopt.c, getopt.h, getopt1.c.
22191
22192 2004-03-07  Paul Eggert  <eggert@twinsun.com>
22193
22194         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
22195         All uses changed.  Check for sa_sigaction member; this fixes
22196         a bug first reported by Jason Andrade in
22197         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22198
22199 2004-03-07  Paul Eggert  <eggert@twinsun.com>
22200
22201         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
22202         '#if' expressions.  Unlike the code it replaces, it does not
22203         depend on (defined _SC_PAGESIZE).  However, it does depend on
22204         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
22205         first reported by Jason Andrade in
22206         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22207
22208 2004-02-25  Simon Josefsson  <jas@extundo.com>
22209
22210         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
22211
22212 2004-02-25  Simon Josefsson  <jas@extundo.com>
22213
22214         * lib/strdup.h: New file.
22215         * lib/strdup.c: Include it.
22216         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
22217         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
22218
22219 2004-02-23  Karl Berry  <karl@gnu.org>
22220
22221         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
22222         (from fencepost.gnu.org:/gd/gnuorg).
22223
22224 2004-02-23  Karl Berry  <karl@gnu.org>
22225
22226         * config/srclistvars.sh (GNUORG) [karl]: redefine.
22227         * config/srclist.txt: add maintain/standards documents.
22228
22229 2004-02-18  Bruno Haible  <bruno@clisp.org>
22230
22231         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
22232         Reported by Derek Robert Price <derek@ximbiot.com>.
22233
22234 2004-02-16  Karl Berry  <karl@gnu.org>
22235
22236         * config/mkinstalldirs, install-sh: update from automake.
22237
22238 2004-02-06  Karl Berry  <karl@gnu.org>
22239
22240         * m4/po.m4: update from gettext 0.14.1.
22241
22242 2004-02-06  Karl Berry  <karl@gnu.org>
22243
22244         * lib/config.charset: update from gettext 0.14.1.
22245
22246 2004-02-05  Paul Eggert  <eggert@twinsun.com>
22247
22248         Add comments and code, prompted by suggestions from Bruno Haible
22249         for sh-quote.
22250         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
22251         describing the enum quoting_style values.
22252         * lib/quotearg.c (quotearg_alloc): New function.
22253         (quotearg_buffer_restyled): Treat lone { and } as special.
22254         Treat = as special.  Work around bug with older shells
22255         that "see" a '\' that is really the 2nd byte of a multibyte char.
22256         Quote empty string with shell_quoting_style.
22257
22258 2004-02-03  Bruno Haible  <bruno@clisp.org>
22259
22260         * m4/pipe.m4: New file, from GNU gettext.
22261
22262 2004-02-03  Bruno Haible  <bruno@clisp.org>
22263
22264         * lib/pipe.h: New file, from GNU gettext.
22265         * lib/pipe.c: New file, from GNU gettext.
22266
22267 2004-01-27  Bruno Haible  <bruno@clisp.org>
22268
22269         * m4/execute.m4: New file, from GNU gettext.
22270
22271 2004-01-27  Bruno Haible  <bruno@clisp.org>
22272
22273         * lib/execute.h: New file, from GNU gettext.
22274         * lib/execute.c: New file, from GNU gettext.
22275         * lib/w32spawn.h: New file, from GNU gettext.
22276
22277 2004-01-24  Paul Eggert  <eggert@twinsun.com>
22278
22279         Merge from diffutils.
22280
22281         * lib/file-type.c (file_type): Add typed memory objects.
22282         * lib/file-type.h (S_TYPEISTMO): New macro.
22283
22284         * lib/c-stack.h (c_stack_action): Remove argv argument.
22285         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
22286         (die): Don't calculate message unless segv_action returns.
22287         (get_stack_location, min_address_from_argv, max_address_from_argv,
22288         volatile stack_base, volatile_stack_size): Remove.
22289         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
22290         that every segmentation violation is a stack overflow.  (Ouch!)
22291         See Debian bug 136249 (still outstanding) for more info about why
22292         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
22293
22294 2004-01-24  Paul Eggert  <eggert@twinsun.com>
22295
22296         Exit-status fix from coreutils.
22297
22298         Use exit_failure consistently in place of EXIT_FAILURE,
22299         so that program exit statuses are consistent on failure.
22300
22301         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
22302         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
22303         * lib/argmatch.h: Comment fix to match the above.
22304         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
22305         Now a macro referring to exit_failure, instead of a separate
22306         variable.  Include "exitfail.h" to get it.
22307         * lib/xstrtol.h: Include "exitfail.h".
22308         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
22309
22310         * lib/long-options.c (parse_long_options): Use prototype
22311         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
22312         for clarity.
22313
22314 2004-01-21  Jim Meyering  <jim@meyering.net>
22315
22316         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
22317         so as not to conflict with a different-sized __mktime_internal
22318         function in GNU libc.
22319         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
22320         Problem building statically-linked `ls' reported by Michael Brunnbauer.
22321
22322 2004-01-20  Karl Berry  <karl@gnu.org>
22323
22324         * config/config.guess: update from config.
22325
22326         * config/srclistvars.sh: GNUWWWLICENSES for karl.
22327
22328 2004-01-20  Bruno Haible  <bruno@clisp.org>
22329
22330         Safer stack allocation.
22331         * lib/setenv.c: Include allocsa.h.
22332         (alloca): Remove fallback definition.
22333         (freea): Remove macro.
22334         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
22335         instead of freea.
22336
22337 2004-01-20  Bruno Haible  <bruno@clisp.org>
22338
22339         * m4/eealloc.m4: New file, from GNU gettext.
22340
22341 2004-01-20  Bruno Haible  <bruno@clisp.org>
22342
22343         * m4/allocsa.m4: New file, from GNU gettext.
22344
22345 2004-01-20  Bruno Haible  <bruno@clisp.org>
22346
22347         * lib/xallocsa.h: New file, from GNU gettext.
22348         * lib/xallocsa.c: New file, from GNU gettext.
22349
22350 2004-01-20  Bruno Haible  <bruno@clisp.org>
22351
22352         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
22353
22354 2004-01-20  Bruno Haible  <bruno@clisp.org>
22355
22356         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
22357         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
22358         specially.
22359
22360 2004-01-20  Bruno Haible  <bruno@clisp.org>
22361
22362         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
22363         patch.
22364
22365 2004-01-20  Bruno Haible  <bruno@clisp.org>
22366
22367         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
22368
22369 2004-01-20  Bruno Haible  <bruno@clisp.org>
22370
22371         * lib/eealloc.h: New file.
22372
22373 2004-01-20  Bruno Haible  <bruno@clisp.org>
22374
22375         * lib/binary-io.h: Avoid warnings on Cygwin.
22376
22377 2004-01-20  Bruno Haible  <bruno@clisp.org>
22378
22379         * lib/allocsa.h: New file, from GNU gettext.
22380         * lib/allocsa.c: New file, from GNU gettext.
22381
22382 2004-01-18  Karl Berry  <karl@gnu.org>
22383
22384         * doc/gpl.texi, doc/lgpl.texi: new files.
22385
22386 2004-01-18  Karl Berry  <karl@gnu.org>
22387
22388         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
22389         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
22390
22391 2004-01-15  Paul Eggert  <eggert@twinsun.com>
22392
22393         Merge from coreutils.
22394
22395         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
22396         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
22397         (gl_DEFAULT_POSIX2_VERSION): Move
22398         the documentation from 'configure' into 'config.hin',
22399         so that 'configure --help' isn't burdened by it and
22400         we don't have to worry about its formatting there.
22401         Reword the documentation so that it's more succinct
22402         and can be run together into a single paragraph.
22403         * m4/same.m4 (gl_SAME): Check for pathconf.
22404
22405 2004-01-15  Paul Eggert  <eggert@twinsun.com>
22406
22407         Merge from coreutils.
22408
22409         * lib/posixver.c: Include posixver.h.
22410
22411         * lib/same.c: Include <stdbool.h>, <limits.h>.
22412         (_POSIX_NAME_MAX): Define if not defined.
22413         (MIN): New macro.
22414         (same_name): If file names are silently truncated, report
22415         that the file names are the same if they are the same after
22416         the silent truncation.
22417
22418         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
22419         conversion function.
22420         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
22421         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
22422         longer needed.
22423
22424 2004-01-15  Jim Meyering  <jim@meyering.net>
22425
22426         Merge from coreutils.
22427
22428         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
22429         if no library is required.
22430         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
22431         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
22432         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
22433         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
22434         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
22435         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
22436         value, $ac_cv_search_crypt, if it's "none required".
22437         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
22438         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
22439         not gl_FUNC_GETLOADAVG.
22440         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
22441         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
22442
22443 2004-01-15  Jim Meyering  <jim@meyering.net>
22444
22445         Merge from coreutils.
22446
22447         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
22448         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
22449         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
22450
22451         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
22452         optional configure-time default.
22453
22454         * lib/version-etc.c (version_etc_copyright): Update copyright date.
22455
22456         * lib/xreadlink.c (xreadlink): Correct outdated comment.
22457
22458 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
22459
22460         Merge from coreutils.
22461
22462         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
22463         value, $ac_cv_search_nanosleep, if it's "none required".
22464
22465 2004-01-14  Paul Eggert  <eggert@twinsun.com>
22466
22467         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
22468         with like-named macro in fnmatch.c.
22469         (EXT): Use an internal constant instead.
22470
22471         Merge fnmatch patches from glibc.
22472         * lib/fnmatch.c (mbsinit): Remove define.
22473         Add libc_hidden_ver (__fnmatch, fnmatch).
22474         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
22475         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
22476
22477 2004-01-14  Karl Berry  <karl@gnu.org>
22478
22479         * config/install-sh: update from automake.
22480
22481 2004-01-13  Karl Berry  <karl@gnu.org>
22482
22483         * config/install-sh: update from automake.
22484
22485 2004-01-09  Karl Berry  <karl@gnu.org>
22486
22487         * config/install-sh: update from automake.
22488
22489 2004-01-05  Karl Berry  <karl@gnu.org>
22490
22491         * config/config.{sub,guess}: update from config.
22492
22493 2003-12-31  Karl Berry  <karl@gnu.org>
22494
22495         * config/depcomp: update from automake.
22496
22497 2003-12-14  Karl Berry  <karl@gnu.org>
22498
22499         * lib/config.charset: update from gettext-runtime.
22500
22501 2003-12-03  Paul Eggert  <eggert@twinsun.com>
22502
22503         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
22504         Bug reported by Alfred M. Szmidt.
22505
22506 2003-12-03  Bruno Haible  <bruno@clisp.org>
22507
22508         * m4/gettext.m4: Upgrade from gettext-0.13.
22509         * m4/po.m4: Upgrade from gettext-0.13.
22510         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
22511         * m4/intmax.m4: New file, from gettext-0.13.
22512         * m4/printf-posix.m4: New file, from gettext-0.13.
22513
22514 2003-11-29  Karl Berry  <karl@gnu.org>
22515
22516         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
22517
22518 2003-11-25  Paul Eggert  <eggert@twinsun.com>
22519             Bruno Haible  <bruno@clisp.org>
22520
22521         * lib/printf-parse.h: Don't include sys/types.h.
22522         (ARG_NONE): New macro.
22523         (char_directive): Change type of *arg_index fields to size_t.
22524         * lib/printf-parse.c: Don't include sys/types.h.
22525         (SSIZE_MAX): Remove macro.
22526         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
22527         Remove unnecessary overflow check.
22528         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
22529         fields.
22530
22531 2003-11-25  Bruno Haible  <bruno@clisp.org>
22532
22533         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
22534
22535 2003-11-25  Bruno Haible  <bruno@clisp.org>
22536
22537         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
22538         gt_TYPE_SSIZE_T.
22539
22540 2003-11-24  Paul Eggert  <eggert@twinsun.com>
22541
22542         * modules/alloca: Remove dependency on xalloc.
22543
22544 2003-11-24  Paul Eggert  <eggert@twinsun.com>
22545
22546         * lib/alloca.c: Remove dependency on xalloc module.
22547         (xalloc_die): Remove.
22548         (memory_full) [!defined emacs]: New macro.
22549         [!defined emacs]: Don't include xalloc.h.
22550         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
22551         address arithmetic overflows.  Change datatypes a bit to avoid
22552         unnecessary casts.
22553
22554 2003-11-22  Jim Meyering  <jim@meyering.net>
22555
22556         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
22557         s/size/size_t/.
22558
22559 2003-11-21  Karl Berry  <karl@gnu.org>
22560
22561         * config/config.{sub,guess}: update from config.
22562
22563 2003-11-18  Karl Berry  <karl@gnu.org>
22564
22565         * config/config.{sub,guess}: update from config.
22566
22567         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
22568
22569 2003-11-17  Paul Eggert  <eggert@twinsun.com>
22570
22571         * README: Mention that S+T cannot overflow if S is the size of
22572         an existing object and T is sufficiently small.
22573
22574 2003-11-17  Jim Meyering  <jim@meyering.net>
22575
22576         On systems without utime and without a utimes function capable of
22577         dealing with a NULL struct utimbuf* argument, this utime replacement
22578         could -- in unusual circumstances -- leak a file descriptor.
22579         * lib/utime.c: Include <unistd.h> and <errno.h>.
22580         (utime_null): Be sure to close `fd' and to preserve errno.
22581         Reported by Geoff Collyer via Arnold Robbins.
22582
22583 2003-11-17  Bruno Haible  <bruno@clisp.org>
22584
22585         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
22586         (Depends-on): Add xsize.
22587
22588 2003-11-17  Bruno Haible  <bruno@clisp.org>
22589
22590         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
22591
22592 2003-11-17  Bruno Haible  <bruno@clisp.org>
22593
22594         * lib/vasnprintf.c (alloca): Remove fallback definition.
22595         (freea): Remove definition.
22596         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
22597         Reported by Paul Eggert.
22598
22599 2003-11-16  Paul Eggert  <eggert@twinsun.com>
22600             Bruno Haible  <bruno@clisp.org>
22601
22602         Protect against address arithmetic overflow.
22603         * lib/printf-args.h: Include stddef.h.
22604         (arguments): Change type of field 'count' to size_t.
22605         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
22606         'unsigned int' where appropriate.
22607         * lib/printf-parse.h: Include sys/types.h.
22608         (char_directive): Change type of *arg_index fields to ssize_t.
22609         (char_directives): Change type of fields 'count', max_*_length to
22610         size_t.
22611         * lib/printf-parse.c: Include sys/types.h and xsize.h.
22612         (SSIZE_MAX): Define fallback value.
22613         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
22614         instead of 'int' where appropriate. Check a_allocated, d_allocated
22615         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
22616         * lib/vasnprintf.c: Include xsize.h.
22617         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
22618         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
22619         overflow. Avoid wraparound when converting a width or precision from
22620         decimal to binary.
22621
22622 2003-11-16  Bruno Haible  <bruno@clisp.org>
22623
22624         Update from GNU gettext.
22625         * lib/printf-parse.c: Generalize to it can be compiled for wide
22626         strings.
22627         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
22628         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
22629         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
22630         SNPRINTF): New macros.
22631         Don't include <alloca.h> if the file is used inside libintl.
22632         (local_wcslen): New function, for Solaris 2.5.1.
22633         (VASNPRINTF): Use it instead of wcslen.
22634
22635 2003-11-16  Bruno Haible  <bruno@clisp.org>
22636
22637         * lib/xsize.h (xmax): New function.
22638         (xsum, xsum3, xsum4): Declare as "pure" functions.
22639
22640 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22641
22642         * modules/xalloc (Files): Undo latest change, since xalloc.h
22643         no longer needs SIZE_MAX or PTRDIFF_MAX.
22644
22645 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22646
22647         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
22648         gl_PTRDIFF_MAX.
22649
22650 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22651
22652         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
22653         "return", to pacify some unknown compiler.  Problem reported
22654         by Joerg Schilling.
22655
22656 2003-11-12  Paul Eggert  <eggert@twinsun.com>
22657
22658         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
22659         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
22660         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
22661         heuristic is just as accurate as far as we know, and it removes a
22662         dependency on size_max.m4 and ptrdiff_max.m4.
22663
22664 2003-11-11  Bruno Haible  <bruno@clisp.org>
22665
22666         * modules/xsize (Files): Add m4/size_max.m4.
22667         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
22668
22669 2003-11-11  Bruno Haible  <bruno@clisp.org>
22670
22671         * m4/size_max.m4: New file.
22672         * m4/ptrdiff_max.m4: New file.
22673         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
22674         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
22675         (gl_XALLOC): Invoke it.
22676
22677 2003-11-11  Bruno Haible  <bruno@clisp.org>
22678
22679         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
22680         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
22681         defined.
22682
22683 2003-11-10  Paul Eggert  <eggert@twinsun.com>
22684
22685         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
22686         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
22687         rejected some allocations of exactly SIZE_MAX - 2 bytes.
22688         From Bruno Haible.
22689         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
22690         not (size_t) -1, since it's defined here.
22691
22692 2003-11-09  Karl Berry  <karl@gnu.org>
22693
22694         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
22695
22696 2003-11-06  Paul Eggert  <eggert@twinsun.com>
22697
22698         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
22699         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
22700         Reject sizes of exactly SIZE_MAX bytes.
22701         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
22702         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
22703
22704 2003-11-05  Bruno Haible  <bruno@clisp.org>
22705
22706         * lib/xsize.h: Include limits.h, to avoid a possible collision with
22707         SIZE_MAX defined in <limits.h> on Solaris.
22708
22709 2003-11-04  Jim Meyering  <jim@meyering.net>
22710
22711         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
22712         variable names, rather than @VAR@.
22713         * modules/poll: Likewise.
22714
22715 2003-11-04  Bruno Haible  <bruno@clisp.org>
22716
22717         * modules/xsize: New file.
22718         * modules/linebreak: Depend on xsize.
22719         * MODULES.html.sh (func_all_modules): Add xsize.
22720
22721 2003-11-04  Bruno Haible  <bruno@clisp.org>
22722
22723         * m4/xsize.m4: New file.
22724
22725 2003-11-04  Bruno Haible  <bruno@clisp.org>
22726
22727         * lib/xsize.h: New file.
22728         * lib/linebreak.c: Include xsize.h.
22729         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
22730         argument for overflow.
22731         Suggested by Paul Eggert.
22732
22733 2003-11-03  Karl Berry  <karl@gnu.org>
22734
22735         * config/config.{guess,sub}: update from config.
22736
22737 2003-11-03  Jim Meyering  <jim@meyering.net>
22738
22739         * modules/userspec (lib_SOURCES): Add userspec.h.
22740         (Include): Add "userspec.h".
22741         Improve description.
22742
22743 2003-11-03  Jim Meyering  <jim@meyering.net>
22744
22745         * lib/userspec.c: Include "userspec.h".
22746         * lib/userspec.h: New file.
22747
22748 2003-11-03  Bruno Haible  <bruno@clisp.org>
22749
22750         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
22751
22752 2003-11-03  Bruno Haible  <bruno@clisp.org>
22753
22754         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
22755         available, to avoid (extremely rare) race condition.
22756         Suggested by Paul Eggert.
22757
22758 2003-11-02  Karl Berry  <karl@gnu.org>
22759
22760         * config/srclist.txt (vasprintf.c): sync broken, sigh.
22761
22762 2003-10-31  Paul Eggert  <eggert@twinsun.com>
22763
22764         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
22765         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
22766         (read_filesystem_list): Set and use me_type_malloced.
22767         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
22768         whatever the type happens to be), for brevity and consistency.
22769         Check for size calculation overflow on Alphas running OSF/1.
22770
22771 2003-10-31  Jim Meyering  <jim@meyering.net>
22772
22773         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
22774
22775         * lib/linebuffer.c: Include <string.h> for declaration of memset.
22776
22777 2003-10-30  Paul Eggert  <eggert@twinsun.com>
22778             Bruno Haible  <bruno@clisp.org>
22779
22780         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
22781         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
22782
22783 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
22784
22785         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
22786         netbsd*-gnu*.  Suggested by Robert Millan.
22787
22788 2003-10-29  Paul Eggert  <eggert@twinsun.com>
22789
22790         * modules/group-member: Depend on stdbool.
22791
22792 2003-10-29  Paul Eggert  <eggert@twinsun.com>
22793
22794         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
22795
22796 2003-10-29  Paul Eggert  <eggert@twinsun.com>
22797
22798         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
22799         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
22800         after the 'gnu' in these cases.  This fixes some bugs in the
22801         previous change, and is based on suggestions by Robert Millan.
22802
22803 2003-10-29  Paul Eggert  <eggert@twinsun.com>
22804
22805         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
22806         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
22807         no longer needed.
22808         * lib/quotearg.c (quotearg_n_options): Use it.
22809         * lib/group-member.c: Include <stdbool.h>.
22810         (free_group_info): Arg is now const *; don't free arg.
22811         (get_group_info): Now returns bool and accepts struct group_info *,
22812         rather than returning a malloc'ed struct group_info *.
22813         All uses changed.  Check for overflow in internal size calculation.
22814
22815         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
22816         rather than xmalloc/xrealloc.
22817         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
22818         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
22819         conformance bug: the old code used a pointer after freeing the
22820         storage that it addressed.
22821         * lib/hash.c (hash_initialize): Simplify the code by using
22822         xalloc_oversized rather than doing it by hand.
22823         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
22824         the buffer preserved.  Use free and xmalloc instead.
22825         * lib/quotearg.c (quotearg_n_options): Likewise.
22826         Use a simpler test for size overflow.  Don't use xalloc_oversized
22827         because unsigned int might be wider than size_t (!); this suggests
22828         that we should switch from unsigned int to size_t for slot numbers.
22829
22830 2003-10-28  Paul Eggert  <eggert@twinsun.com>
22831
22832         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
22833         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
22834         NetBSD kernels.  Requested by Richard Stallman.
22835
22836 2003-10-27  Paul Eggert  <eggert@twinsun.com>
22837
22838         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
22839         to allocate the returned structure.  Do not allocate a subarray,
22840         as x2nrealloc will do that.
22841         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
22842         instead of xnrealloc.
22843         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
22844
22845 2003-10-27  Bruno Haible  <bruno@clisp.org>
22846
22847         * lib/stdbool_.h: Better support for BeOS.
22848
22849 2003-10-26  Paul Eggert  <eggert@twinsun.com>
22850
22851         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
22852         now uses inline.
22853
22854 2003-10-26  Paul Eggert  <eggert@twinsun.com>
22855
22856         * lib/xalloc.h (xalloc_oversized): New static inline function, for
22857         callers that want to do their own size-overflow checking.  Include
22858         <stdbool.h>, since xalloc_oversized returns bool.
22859         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
22860         to use xalloc_oversized.
22861
22862         Add two functions x2realloc, x2nrealloc, for programs that grow
22863         arrays dynamically by doubling their sizes.
22864         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
22865         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
22866         New functions.
22867
22868         Port to C99 semantics for 'inline' of external functions.
22869         Bug reported by Bruno Haible.
22870         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
22871         with the old contents of xnmalloc.
22872         (xnmalloc, xmalloc): Use it.
22873         (xnrealloc_inline): New static inline function,
22874         with the old contents of xnrealloc.
22875         (xnrealloc, xrealloc): Use it.
22876
22877         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
22878         that.
22879
22880 2003-10-26  Karl Berry  <karl@gnu.org>
22881
22882         * config/srclist.txt (COPYING.DOC): no longer available from
22883         /gd/gnuorg; don't know where the ultimate source is.
22884
22885 2003-10-25  Paul Eggert  <eggert@twinsun.com>
22886
22887         Fix several address-calculation bugs in the hash modules,
22888         plus some minor code cleanup.
22889
22890         * lib/hash.h: Include <stdbool.h>, for bool.
22891         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
22892         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
22893         hash_get_n_entries, hash_get_max_bucket_length,
22894         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
22895         hash_rehash): Use size_t rather than unsigned.
22896         * lib/hash.c (struct hash_table, hash_get_n_buckets,
22897         hash_get_n_buckets_used, hash_get_n_entries,
22898         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
22899         hash_get_entries, hash_do_for_each, hash_string, is_prime,
22900         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
22901         Likewise.
22902         (SIZE_MAX): Define if not defined.
22903         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
22904         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
22905         hash_print):
22906         Use const * when possible.
22907         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
22908         (check_tuning): Fix bug: if tuning parameters were very close to
22909         0 or 1, rounding errors could have caused subscript violations.
22910         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
22911         (hash_initialize): Add 'fail:' label
22912         to free table and return NULL, and use it to simplify code.
22913         Use calloc rather than clearing the storage ourself.
22914         (hash_initialize, hash_rehash): Check for arithmetic overflow in
22915         buffer size calculations.
22916         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
22917         Include <stddef.h>, for size_t.
22918         * lib/hash-pjw.c (hash_pjw): Likewise.
22919         Switch to method described by Bruno Haible.
22920         Include <limits.h>, for CHAR_BIT.
22921         (SIZE_BITS): New macro.
22922
22923 2003-10-23  Paul Eggert  <eggert@twinsun.com>
22924
22925         * m4/getline.m4 (AM_FUNC_GETLINE):
22926         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
22927         hosts.  Problem reported by Derek Robert Price in
22928         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
22929         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
22930         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
22931
22932 2003-10-21  Paul Eggert  <eggert@twinsun.com>
22933
22934         * lib/getndelim2.c (getndelim2): When size calculation overflows,
22935         ceiling the allocation at NMAX bytes rather than silently
22936         discarding input bytes before NMAX is reached.  This makes
22937         a difference only if NMAX exceeds SIZE_MAX / 2.
22938
22939         * lib/obstack.c: Merge from glibc.
22940         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
22941         Add libc_hidden_def (_obstack_newchunk).
22942         (_obstack_free) [! defined _LIBC]: Remove.
22943         [defined _LIBC]: Make a strong alias from obstack_free, rather than
22944         a clone of the function body.
22945         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
22946         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
22947
22948         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
22949         glibc.
22950         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
22951         arg to memcpy.
22952
22953         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
22954         (obstack_ptr_grow_fast, obstack_int_grow_fast):
22955         Don't use lvalue casts, as GCC plans to remove support for them
22956         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
22957         was also present in the non-GCC version, indicating that this
22958         code had always been buggy and had never been widely used.
22959         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
22960         Use the fast variant of each macro, rather than copying the
22961         definiens of the fast variant; that way, we'll be more likely to
22962         catch future bugs in the fast variants.
22963
22964 2003-10-20  Bruno Haible  <bruno@clisp.org>
22965
22966         * modules/wait-process: New file.
22967         * MODULES.html.sh (func_all_modules): Add wait-process.
22968
22969 2003-10-20  Bruno Haible  <bruno@clisp.org>
22970
22971         * m4/wait-process.m4: New file.
22972
22973 2003-10-20  Bruno Haible  <bruno@clisp.org>
22974
22975         * lib/wait-process.h: New file, from GNU gettext.
22976         * lib/wait-process.c: New file, from GNU gettext.
22977
22978 2003-10-19  Jim Meyering  <jim@meyering.net>
22979
22980         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
22981         HPUX 10.20.
22982
22983 2003-10-18  Karl Berry  <karl@gnu.org>
22984
22985         * config/config.guess: update from config.
22986
22987 2003-10-16  Paul Eggert  <eggert@twinsun.com>
22988
22989         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
22990         (getgroups): First arg is int, not size_t.
22991         Don't let 'free' mangle errno.
22992
22993 2003-10-16  Paul Eggert  <eggert@twinsun.com>
22994
22995         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
22996
22997 2003-10-16  Karl Berry  <karl@gnu.org>
22998
22999         * config/config.{guess,sub}: update from config.
23000
23001 2003-10-16  Jim Meyering  <jim@meyering.net>
23002
23003         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
23004         memcpy.
23005
23006 2003-10-15  Paul Eggert  <eggert@twinsun.com>
23007
23008         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
23009         (SIZE_MAX): Remove.
23010         (new_exclude, add_exclude_file): Initial size no longer needs to
23011         be a power of 2.
23012         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
23013         our own address arithmetic overflow checking.
23014
23015         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
23016         (fnmatch): Do not alloca more than 2000 wide characters;
23017         instead, use malloc for large buffers.
23018         Check for address arithmetic overflow, and return -1
23019         with errno set to ENOMEM in that case.
23020         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
23021         (NEW_PATTERN): Do not alloca more than 8000 bytes;
23022         instead, return -1.  Check for address arithmetic overflow.
23023
23024 2003-10-14  Paul Eggert  <eggert@twinsun.com>
23025
23026         Handle invalid suffixes and overflow independently, so that
23027         callers can treat them independently as needed.  Fix some bugs in
23028         suffix handling, e.g., "100k@" was not diagnosed as an invalid
23029         suffix for a human-readable blocksize.  The major caller-visible
23030         change is the addition of a new
23031         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
23032         that both overflow and suffix chars were found.
23033
23034         * lib/human.c (humblock): Don't check separately for invalid suffix
23035         char; that is xstrtoumax's job (now that its bug is fixed).
23036         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
23037         INTMAX_MAX]: New macros.
23038         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
23039         TYPE_MAXIMUM): New macros.
23040         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
23041         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
23042         if overflow occurs, as it's what __strtol does and it's more useful
23043         in practice.
23044         (__xstrtol): If __strtol reports some error other than ERANGE,
23045         reflect it to the caller as LONGINT_INVALID.  If it reports
23046         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
23047         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
23048         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
23049         value.
23050         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
23051         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
23052         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
23053         [defined UINTMAX_MAX]: New macros.
23054
23055 2003-10-14  Bruno Haible  <bruno@clisp.org>
23056
23057         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
23058
23059 2003-10-14  Bruno Haible  <bruno@clisp.org>
23060
23061         * m4/sig_atomic_t: New file, from GNU gettext.
23062         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
23063
23064 2003-10-14  Bruno Haible  <bruno@clisp.org>
23065
23066         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
23067         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
23068         Also use volatile where needed.
23069
23070 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23071
23072         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
23073         Change maintainer from Bruno Haible to 'all'.
23074
23075 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23076
23077         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
23078
23079 2003-10-12  Paul Eggert  <eggert@twinsun.com>
23080
23081         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
23082         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
23083         and define in terms of the other primitives.
23084         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
23085         (SIZE_MAX): Define if not already defined.
23086         (array_size_overflow): New function.
23087         (xalloc_die): Abort instead of exiting if 'error' returns.
23088         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
23089         (xmalloc, xrealloc): Use them.
23090         (xcalloc): Check for address arithmetic overflow.
23091         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
23092         a bit faster than strcpy.
23093
23094 2003-10-10  Simon Josefsson  <jas@extundo.com>
23095
23096         * modules/argp (Depends-on): Add restrict and strcase.
23097
23098 2003-10-10  Simon Josefsson  <jas@extundo.com>
23099
23100         * m4/argp.m4: Add AC_C_INLINE.
23101
23102 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23103
23104         Merge getpass from libc, plus a few fixes.
23105
23106         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
23107         Include <stdbool.h>.
23108         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
23109         __fsetlocking to empty.
23110         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
23111         do include <bits/libc-lock.h>.
23112         Do not include <fcntl.h>; not needed.
23113         [_LIBC]: Include <wchar.h>.
23114         (NOTCANCEL_MODE): New macro.
23115         (flockfile, funlockfile) [_LIBC]: New macros.
23116         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
23117         [!_LIBC]: New macros.
23118         (call_fclose): New function.
23119         (getpass): Use it.  Save tty stream separately; this simplifies the
23120         code and makes it more reliable if stdin happens to equal stdout.
23121         Invoke __fsetlocking on tty.
23122         Handle thread cancellation if needed.
23123         Namespace cleanup (use __tcgetattr, __getline).
23124         Use bool for Booleans.
23125         [USE_IN_LIBIO]: Handle wide streams.
23126         [!_LIBC]: Unconditionally do the fseek, since we don't know what
23127         stream might go where.
23128
23129         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
23130         doesn't have to include <stdio.h> before us.
23131         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
23132         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
23133         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
23134         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
23135         if not declared, so that we can use getpass.c code from libc without
23136         rewriting it.
23137         (flockfile, ftrylockfile, funlockfile): New macros.
23138
23139 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23140
23141         * modules/getpass: Depend on stdbool.
23142
23143 2003-10-08  Paul Eggert  <eggert@twinsun.com>
23144
23145         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
23146
23147 2003-10-07  Karl Berry  <karl@gnu.org>
23148
23149         * config/config.{guess,sub}: update from config.
23150
23151 2003-10-06  Jim Meyering  <jim@meyering.net>
23152             Bruno Haible  <bruno@clisp.org>
23153
23154         This lets translators provide better translations for the
23155         "Written by ..." part of --version output.
23156         * lib/version-etc.h: Include stdarg.h.
23157         (version_etc_copyright): Declare as readonly.
23158         (version_etc): Make this function variadic with a NULL-terminated list
23159         of author name strings.
23160         (version_etc_va): New declaration.
23161         * lib/version-etc.c: Include stdarg.h, stdlib.h.
23162         (version_etc_copyright): Declare as readonly.
23163         (version_etc_va): New function. Provide a different translatable string
23164         for each possible number of authors < 10. Abbreviate when there are 10
23165         authors or more.
23166         (version_etc): Make this function variadic. Call version_etc_va.
23167         Suggestion from Gary V. Vaughan.
23168
23169         * lib/long-options.h (parse_long_options): Change prototype: the
23170         authors string is moved to the end and becomes variadic.
23171         * lib/long-options.c: Include stdarg.h.
23172         (parse_long_options): Make this function variadic, too.
23173         Call version_etc_va, not version_etc.
23174
23175 2003-10-06  Bruno Haible  <bruno@clisp.org>
23176
23177         * modules/version-etc-2: Remove file.
23178         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
23179
23180 2003-10-06  Bruno Haible  <bruno@clisp.org>
23181
23182         * modules/fatal-signal: New file.
23183         * MODULES.html.sh (func_all_modules): Add fatal-signal.
23184
23185 2003-10-06  Bruno Haible  <bruno@clisp.org>
23186
23187         * m4/fatal-signal.m4: New file.
23188         * m4/signalblocking.m4: New file, from GNU gettext.
23189
23190 2003-10-06  Bruno Haible  <bruno@clisp.org>
23191
23192         * lib/version-etc-2.h: Remove file.
23193         * lib/version-etc-2.c: Remove file.
23194
23195 2003-10-06  Bruno Haible  <bruno@clisp.org>
23196
23197         * lib/fatal-signal.h: New file, from GNU gettext.
23198         * lib/fatal-signal.c: New file, from GNU gettext.
23199
23200 2003-10-05  Paul Eggert  <eggert@twinsun.com>
23201
23202         * README: Rework advice for preventing empty .o files.
23203         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
23204         not <sys/types.h>.
23205
23206 2003-10-04  Karl Berry  <karl@gnu.org>
23207
23208         * lib/argp*: update from libc.
23209
23210 2003-10-04  Karl Berry  <karl@gnu.org>
23211
23212         * config/config.{guess,sub}: update from config.
23213
23214 2003-10-02  Bruno Haible  <bruno@clisp.org>
23215
23216         * modules/lchown (Include): Add lchown.h.
23217         * modules/time_r (Include): Use "..." syntax.
23218         * modules/xgetdomainname (Include): Add xgetdomainname.h.
23219
23220 2003-10-01  Simon Josefsson  <jas@extundo.com>
23221
23222         * MODULES.html.sh (func_all_modules): Move gethostname from section
23223         'based on' to section 'lacking' POSIX:2001.
23224
23225 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
23226
23227         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
23228         to output mode on the same stream.
23229
23230 2003-09-29  Paul Eggert  <eggert@twinsun.com>
23231
23232         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
23233         Fix arg typo in previous patch.
23234
23235 2003-09-28  Jim Meyering  <jim@meyering.net>
23236
23237         * lib/error.c: Correct cpp indentation.
23238
23239 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23240
23241         * modules/free: New file.
23242
23243 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23244
23245         * m4/free.m4: New file.
23246
23247 2003-09-27  Paul Eggert  <eggert@twinsun.com>
23248
23249         * lib/minmax.h (MIN, MAX)
23250         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
23251         Omit the special code that used __typeof__, since we worry that
23252         it could be more trouble than it's worth.  See:
23253         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
23254         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
23255
23256         * lib/free.c: New file.
23257
23258 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
23259
23260         Trivial fixes to Makefile.am parts of module listings.
23261         * modules/strstr: Append strstr.h to lib_SOURCES.
23262         * modules/strcase: Likewise, for strcase.h.
23263
23264 2003-09-27  Karl Berry  <karl@gnu.org>
23265
23266         * config/mkinstalldirs: update from automake.
23267
23268 2003-09-26  Paul Eggert  <eggert@twinsun.com>
23269
23270         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
23271         (error_tail): Do not loop, reallocating temporary buffer, since
23272         the output cannot contain more wide characters than the input
23273         contains bytes, the size must be big enough already.  This avoids
23274         one potential size overflow calculation.  Check for size overflow
23275         when calculating temporary buffer size.  Free temporary buffer
23276         when done, if it was allocated with malloc; this plugs a memory
23277         leak.  Remove casts from void * to pointers, that are no longer
23278         needed now that we're assuming C89 or better.
23279
23280         Merge error changes from glibc.
23281
23282         * lib/error.c, error.h: Update copyright notice header to match glibc.
23283         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
23284         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
23285         Disable cancellation while printing error.
23286         * lib/error.h: Prepend __ to parameter names.
23287
23288 2003-09-26  Jim Meyering  <jim@meyering.net>
23289
23290         * lib/error.c (error_tail): Move some declarations
23291         into inner scope where the local variables are used.
23292
23293 2003-09-26  Bruno Haible  <bruno@clisp.org>
23294
23295         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
23296         stpncpy().
23297         Don't define stpncpy through config.h; it's now done through stpncpy.h.
23298
23299 2003-09-26  Bruno Haible  <bruno@clisp.org>
23300
23301         * lib/stpncpy.h (gnu_stpncpy): New declaration.
23302         (stpncpy): Define as alias for gnu_stpncpy.
23303         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
23304
23305 2003-09-25  Simon Josefsson  <jas@extundo.com>
23306
23307         * lib/xgetdomainname.h: New file.
23308         * lib/xgetdomainname.c: New file.
23309
23310 2003-09-25  Simon Josefsson  <jas@extundo.com>
23311             Bruno Haible  <bruno@clisp.org>
23312
23313         * modules/getdomainname: New file.
23314         * modules/xgetdomainname: New file.
23315         * MODULES.html.sh (func_all_modules): Add getdomainname,
23316         xgetdomainname.
23317
23318 2003-09-25  Simon Josefsson  <jas@extundo.com>
23319             Bruno Haible  <bruno@clisp.org>
23320
23321         * m4/getdomainname.m4: New file.
23322
23323 2003-09-25  Simon Josefsson  <jas@extundo.com>
23324             Bruno Haible  <bruno@clisp.org>
23325
23326         * lib/getdomainname.h: New file.
23327         * lib/getdomainname.c: New file.
23328
23329 2003-09-25  Karl Berry  <karl@gnu.org>
23330
23331         * lib/argp-fmtstream.c, argp-help.c: update from libc.
23332
23333 2003-09-25  Karl Berry  <karl@gnu.org>
23334
23335         * config/install-sh: update from automake.
23336
23337 2003-09-25  Bruno Haible  <bruno@clisp.org>
23338
23339         * modules/version-etc-2: New file, from modules/version-etc with
23340         modifications.
23341         * MODULES.html.sh (func_all_modules): Add version-etc-2.
23342
23343 2003-09-25  Bruno Haible  <bruno@clisp.org>
23344
23345         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
23346         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
23347
23348 2003-09-24  Simon Josefsson  <jas@extundo.com>
23349
23350         * modules/xgethostname: Add xgethostname.h.
23351
23352 2003-09-24  Paul Eggert  <eggert@twinsun.com>
23353
23354         * lib/linebuffer.c (freebuffer): Don't free the argument, just
23355         the buffer associated with the argument.  Bug reported by
23356         Simon Josefsson.
23357
23358 2003-09-24  Paul Eggert  <eggert@twinsun.com>
23359
23360         * README: Document assumptions that 'int' is at least 32 bits
23361         wide, that integer arithmetic is 2's complement without overflow,
23362         that there are no holes in integer values, that adding sizes of
23363         two nonoverlapping objects can't overflow, and that all-bits-zero
23364         yields scalar zero.  Fix spelling and capitalization typos.
23365
23366 2003-09-19  Karl Berry  <karl@gnu.org>
23367
23368         * lib/argp.h: update from libc.
23369
23370 2003-09-17  Paul Eggert  <eggert@twinsun.com>
23371
23372         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
23373         to avoid spurious warnings like "AC_RUN_IFELSE was called before
23374         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
23375
23376 2003-09-17  Paul Eggert  <eggert@twinsun.com>
23377
23378         * gnulib-tool: Use "test -h", not "test -L", for portability
23379         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
23380         (tags_regexp): Remove, since \| doesn't conform to POSIX.
23381         (sed_extract_prog): Issue s commands one-by-one, rather than
23382         using \| in one s command.
23383
23384 2003-09-16  Paul Eggert  <eggert@twinsun.com>
23385
23386         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
23387         input error, instead of returning NULL the next time we are called
23388         (and therefore losing track of errno).
23389
23390 2003-09-16  Bruno Haible  <bruno@clisp.org>
23391
23392         * gnulib-tool (func_create_testdir): Warn about duplicated
23393         dependencies.
23394
23395 2003-09-15  Paul Eggert  <eggert@twinsun.com>
23396
23397         * modules/argmatch, modules/fatal, modules/obstack,
23398         modules/xalloc, modules/xgethostname: Sort dependencies by
23399         importance, not alphabetically.
23400
23401 2003-09-15  Paul Eggert  <eggert@twinsun.com>
23402
23403         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
23404         fails, so that the caller gets the proper errno.
23405
23406         * lib/readutmp.c (read_utmp): Likewise.
23407         Check for fstat error.  Close stream and free storage
23408         when failing.
23409
23410 2003-09-14  Karl Berry  <karl@gnu.org>
23411
23412         * config/srclist.txt (strdup.c): disable for c89 changes.
23413
23414 2003-09-14  Jim Meyering  <jim@meyering.net>
23415
23416         * lib/getloadavg.c: Correct cpp indentation.
23417         * lib/strdup.c: Likewise.
23418         * lib/vasnprintf.c: Likewise.
23419
23420 2003-09-14  Bruno Haible  <bruno@clisp.org>
23421
23422         * modules/fwriteerror: New file.
23423         * MODULES.html.sh (func_all_modules): Add fwriteerror.
23424
23425 2003-09-14  Bruno Haible  <bruno@clisp.org>
23426
23427         * lib/fwriteerror.h: New file.
23428         * lib/fwriteerror.c: New file.
23429
23430 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23431
23432         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
23433         modules/xgethostname, modules/xalloc: Depend on exit.
23434
23435 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23436
23437         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
23438
23439         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
23440         and AC_MINIX, too, so that their extensions are available.
23441
23442         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
23443         This macro has been superseded by gl_BACKUPFILE.
23444
23445         More patches to assume C89 or better.
23446
23447         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
23448
23449         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
23450         unconditionally.
23451         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
23452         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
23453         Include <string.h>, <stdlib.h> unconditionally.
23454         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
23455         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
23456         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
23457         headers or for string.h.
23458         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
23459         or strtoul.
23460
23461         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
23462         headers.
23463         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
23464         * m4/userspec.m4 (gl_USERSPEC): Likewise.
23465         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
23466         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
23467         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23468         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
23469         memcpy, memset.
23470         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
23471         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
23472         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
23473         strtol.
23474         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
23475         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
23476         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
23477         strtoul.
23478
23479 2003-09-12  Paul Eggert  <eggert@twinsun.com>
23480
23481         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
23482         * lib/obstack.c [!defined _LIBC]: Likewise.
23483         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
23484         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
23485         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
23486
23487         More changes to assume C89 or better.
23488
23489         * lib/error.c (error_tail): Assume vprintf.
23490
23491         * lib/argmatch.c (getenv): Remove decl.
23492         * lib/progreloc.c (get_full_program_name): Define via prototype.
23493         * lib/setenv.c (clearenv): Likewise.
23494         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
23495         needed.
23496         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
23497         (malloc, memcpy): Remove decls.
23498         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
23499         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
23500         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23501         (memcpy): Remove macro.
23502         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
23503         (__P): Remove.  All uses removed.
23504         (PTR): Remove.  All uses changed to void *.
23505         (CHAR_BIT, NULL): Remove.
23506         (spaces, zeros, memset_space, memset_zero)
23507         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
23508         Remove.
23509         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
23510         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
23511         Define with prototype.
23512         Remove now-unnecessary prototype decl.
23513         (extra_args_spec): Assume ANSI C.  All uses changed.
23514         (extra_args_spec_iso): Remove.
23515         (my_strftime, emacs_strftimeu): Define via prototype.
23516         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
23517         unconditionally.
23518         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
23519         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
23520         (strtoul, strtol): Remove decls.
23521         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
23522         LONG_MAX): Remove.
23523         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23524         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
23525         (LOCALE_PARAM_PROTO): New macro.
23526         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
23527         (INTERNAL (strtol), strtol): Define with a prototype.
23528         (PARAMS): Remove.  All uses removed.
23529         * lib/tempname.c: Include <string.h> unconditionally.
23530         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
23531         * lib/xgethostname.c (main): Define with a prototype.
23532         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
23533         Include <stdlib.h> unconditionally.
23534         (calloc, malloc, realloc, free): Remove decls.
23535         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
23536         Include <stdlib.h> unconditionally.  Sort include file names.
23537         (strtod): Remove.
23538         (xstrtod): Define with a prototype.
23539         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
23540         (strtol, strtoul): Remove decls.
23541
23542 2003-09-11  Paul Eggert  <eggert@twinsun.com>
23543
23544         More patches to assume C89 or better.
23545         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
23546         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
23547         string.h, memchr, STDC_HEADERS.
23548
23549 2003-09-11  Paul Eggert  <eggert@twinsun.com>
23550
23551         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
23552         Include <stdlib.h>, <string.h> unconditionally.
23553         Remove now-unnecessary cast to char *.
23554         * lib/strnlen.c: Include <string.h> unconditionally.
23555         * lib/yesno.c (yesno): Define with a prototype.
23556
23557 2003-09-11  Bruno Haible  <bruno@clisp.org>
23558
23559         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
23560
23561 2003-09-10  Jim Meyering  <jim@meyering.net>
23562
23563         * lib/error.c: Correct indentation of cpp directives.
23564
23565 2003-09-10  Bruno Haible  <bruno@clisp.org>
23566
23567         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
23568         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
23569         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
23570         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
23571         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
23572         <stdlib.h> and <string.h> checks.
23573         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
23574         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
23575
23576 2003-09-10  Bruno Haible  <bruno@clisp.org>
23577
23578         * lib/strcspn.c: Include <string.h> unconditionally.
23579         * lib/strpbrk.c: Include <string.h> unconditionally.
23580         * lib/strstr.c: Include <string.h> unconditionally.
23581         * lib/unicodeio.c: Include <string.h> unconditionally.
23582         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
23583         * lib/unsetenv.c: Likewise.
23584         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
23585         * lib/yesno.c: Include <stdlib.h> unconditionally.
23586         (rpmatch): Add prototype.
23587
23588 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23589
23590         More patches to assume C89 or better.
23591         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
23592         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
23593         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
23594         or for string.h.
23595         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
23596         stdlib.h.
23597         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
23598         C headers.
23599         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
23600         string.h.
23601         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
23602         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
23603         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
23604         or for string.h.
23605         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
23606         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
23607         C headers.
23608         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
23609         memcpy.
23610         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
23611         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
23612         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
23613         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
23614         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
23615         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
23616         string.h, free.
23617         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
23618         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
23619         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
23620         C headers, or for string.h.
23621         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
23622         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
23623         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
23624         headers, memory.h, stdlib.h, string.h, strings.h.
23625         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
23626         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
23627         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
23628         strchr.
23629         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
23630         headers, memory.h, string.h.
23631         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
23632         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
23633         free.
23634         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
23635         headers.
23636         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
23637         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
23638         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
23639         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
23640         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
23641
23642 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23643
23644         More K&R removal.
23645
23646         * lib/acosl.c (main): Use a prototype.
23647         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
23648         tanl.c: Likewise.
23649
23650         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
23651
23652         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
23653         (getopt, etopt_long, getopt_long_only, _getopt_internal)
23654         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
23655         with a prototype.
23656         * lib/getopt.c (const): Remove macro.
23657         Include <string.h> unconditionally.
23658         (my_index): Remove; all uses changed to strchr.
23659         (strlen): Remove decl.
23660         (exchange): Remove forward decl; no longer needed.
23661         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
23662         Define with prototype.
23663         * lib/getopt1.c (const): Remove macro.
23664         (getopt_long, getopt_long_only, main): Define with prototype.
23665
23666         * lib/getugroups.c: Include <string.h> unconditionally.
23667
23668         * lib/getusershell.c: Include <stdlib.h> unconditionally.
23669         (getusershell, setusershell, endusershell, readname, main):
23670         Define with prototypes.
23671
23672         * lib/group-member.c: Include group-member.h first.
23673         Include <stdlib.h> unconditionally.
23674
23675         * lib/hard-locale.c: Include hard-locale.h first.
23676         Include <stdlib.h>, <string.h> unconditionally.
23677
23678         * lib/hash.c (free, malloc): Remove decls.
23679         Include <stdlib.h> unconditionally.
23680
23681         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
23682         (getenv): Do not declare.
23683
23684         * lib/idcache.c: Include <string.h> unconditionally.
23685
23686         * lib/long-options.c: Include long-options.h first, to test interface.
23687         Include <stdlib.h> unconditionally.
23688
23689         * lib/makepath.c: Include makepath.h first, to test interface.
23690         Include <stdlib.h> and <string.h> unconditionally.
23691
23692         * lib/linebuffer.c: Include <stdlib.h>.
23693         (free): Remove decl.
23694
23695         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
23696         stddef.h. rpl_malloc returns void *, not char *.
23697         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
23698         prototype.
23699
23700         * lib/md5.h: Include <limits.h> unconditionally.
23701         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
23702         (__P): Remove; all uses removed.
23703         * lib/md5.c: Include "md5.h" first.
23704         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
23705         md5_buffer, md5_process_bytes, md5_process_block):
23706         Define with prototypes.
23707         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
23708         * lib/sha.c: Include "sha.h" first.
23709         Include <stdlib.h>, <string.h> unconditionally.
23710
23711         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
23712         * lib/memcmp.c (__ptr_t): Likewise.
23713         * lib/memrchr.c (__ptr_t): Likewise.
23714         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
23715         Include <string.h> unconditionally.
23716         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
23717         * lib/memchr.c: Include <stdlib.h> unconditionally.
23718         * lib/memchr.c (LONG_MAX): Remove.
23719         * lib/memrchr.c (LONG_MAX): Likewise.
23720         * lib/memchr.c (__memchr): Define via a prototype.
23721         * lib/memrchr.c (__memrchr): Likewise.
23722         * lib/memcmp.c (__P): Remove, and remove all uses.
23723         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
23724         Remove forward decls; no longer needed.
23725         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
23726         Use types required by C89 in prototype.
23727
23728         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
23729         * lib/savedir.c: Likewise.
23730         * lib/mkdir.c (free): Remove decl.
23731         * lib/rmdir.c (rmdir): Define with a prototype.
23732         * lib/savedir.c: Include savedir.h first, to test interface.
23733
23734         * lib/mktime.c (STDC_HEADERS): Remove.
23735         Include <stdlib.h>, <string.h> unconditionally.
23736
23737         * lib/modechange.c: Include <stdlib.h> unconditionally.
23738         (malloc): Remove decl.
23739
23740         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
23741         (free): Remove decl.
23742
23743         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
23744         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
23745         (This type really should be intptr_t, but that's a C99ism.)
23746         (_obstack_memcpy): Remove: all uses changed to memcpy.
23747         Include <string.h> unconditionally.
23748         (struct obstack): Assume __STDC__ for types of members
23749         chunkfun, freefun, extra_arg.
23750         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
23751         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
23752         obstack_begin, obstack_specify_allocation,
23753         obstack_specify_allocation_with_arg, obstack_chunkfun,
23754         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
23755         Remove unprototyped decls and the macros that use them.
23756         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
23757         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
23758         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
23759         (defined __STDC__ && __STDC__)]:
23760         Remove nonprototyped code.
23761         Include <stdlib.h> unconditionally.
23762         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
23763         _obstack_allocated_p, _obstack_free, obstack_free,
23764         _obstack_memory_used, print_and_abort):
23765         Define using prototypes.
23766         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
23767         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
23768         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
23769         obstack_next_free, obstack_object_size, obstack_room) [0]:
23770         Remove unused, unprototyped code.
23771
23772         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
23773
23774         * lib/physmem.c (physmem_total, physmem_available, main): Define
23775         with prototypes.
23776
23777         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
23778         (main): Define with a prototype.
23779
23780         * lib/posixver.c (getenv): Remove decl.
23781
23782         * lib/putenv.c (malloc): Returns void *, not char *.
23783         Include <string.h> unconditionally.
23784         (strchr, memcpy, NULL): Do not define.
23785
23786         * lib/readtokens.c: Include readtokens.h first, to test interface.
23787         Include <stdlib.h>, <string.h> unconditionally.
23788         (init_tokenbuffer): Define with a prototype.
23789
23790         * lib/regex.c (PARAMS): Remove.  All uses removed.
23791         All uses of _RE_ARGS removed, too.
23792         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
23793         unconditionally.
23794         (bzero): Assume memset exists.
23795         (memcmp, memcpy, NULL): Remove.
23796         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
23797         char, or assignments to local vars of type signed char.
23798         (init_syntax_once, PREFIX(extract_number_and_incr),
23799         PREFIX(print_partial_compiled_pattern),
23800         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
23801         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
23802         PREFIX(regex_grow_registers), PREFIX(regex_compile),
23803         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
23804         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
23805         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
23806         wcs_compile_range, byte_compile_range, truncate_wchar,
23807         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
23808         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
23809         count_mbs_length, wcs_re_match_2_internal,
23810         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
23811         PREFIX(alt_match_null_string_p),
23812         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
23813         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
23814         regfree, PREFIX(extract_number)): Define with prototype.  Remove
23815         now-unnecessary declaration, if any.
23816         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
23817         regcomp, regexec):
23818         Remove now-unnecessary casts among pointer types.
23819         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
23820
23821         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
23822         (free): Remove decl.
23823
23824         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
23825
23826         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
23827         (free): Remove decl.
23828
23829         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
23830         * lib/xgetcwd.c: Likewise.
23831
23832         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
23833         (free): Remove decl.
23834
23835         * lib/strchrnul.c (strchrnul): Define with a prototype.
23836         Fix bug: c_in was not converted to char before searching.
23837
23838         The following changes are not K&R related:
23839
23840         * lib/group-member.h: Include <sys/types.h>, so that this file is
23841         self-contained.
23842         * lib/makepath.h: Likewise.
23843
23844         * lib/getusershell.c (readname, default_index, line_size, readname):
23845         Use size_t, not int, for sizes.
23846         (readname): If the size overflows, report an error instead of
23847         looping forever.
23848
23849 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23850
23851         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
23852         libc.
23853
23854 2003-09-09  Paul Eggert  <eggert@twinsun.com>
23855
23856         * README: New section: portability guidelines.
23857
23858 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
23859
23860         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
23861         C89 spec.
23862
23863 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
23864
23865         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
23866
23867 2003-09-08  Paul Eggert  <eggert@twinsun.com>
23868
23869         Assume C89 or better; remove K&R cruft.
23870         A few of these changes were first proposed by Derek Robert Price
23871         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
23872
23873         * lib/addext.c: Include <string.h> unconditionally.
23874         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
23875         Don't declare getenv or malloc.
23876
23877         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
23878         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
23879         (NULL): Remove.
23880         (find_stack_direction, alloca): Use prototypes.
23881
23882         * lib/atexit.c (atexit): Define using a prototype.
23883
23884         * lib/basename.c, dirname.c, stripslash.c:
23885         Include <string.h> unconditionally.
23886
23887         * lib/bcopy.c: Include <stddef.h>.
23888         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
23889
23890         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
23891
23892         * lib/error.h (error, error_at_line, error_print_progname)
23893         [! (defined (__STDC__) && __STDC__)]: Remove decls.
23894         * lib/error.c: Include error.h first, to check interface.
23895         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
23896         (VA_START): Remove; all uses changeed to va_start.
23897         (exit, strerror): Remove decls.
23898         (error_print_progname): Prototype uncondionally.
23899         Don't include <errno.h>; no longer needed.
23900         (private_strerror): Remove.
23901         (error_tail): Always define.
23902         (error, error_at_line): Assume C89 or better; always use prototypes.
23903         * lib/fatal.c: Include "fatal.h" first, to test interface.
23904         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
23905         (VA_START): Remove; all uses changed to va_start.
23906         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
23907         this case.
23908         (exit): Remove decl.
23909         (fatal): Prototype unconditionally.  Assume va_start works.
23910         Abort at end, to pacify gcc.
23911
23912         * lib/euidaccess.c (main): Define with a prototype.
23913
23914         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
23915
23916         * lib/exitfail.c: Include <stdlib.h> unconditionally.
23917
23918         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
23919         prototypes.
23920         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
23921         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
23922         (getenv): Remove decl.
23923         (fnmatch): Define using a prototype.
23924         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
23925         (FCT): Define using a prototype.
23926
23927         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
23928
23929         * lib/gethostname.c: Include <stddef.h>.
23930         (gethostname): Define with prototype.  Length is size_t, not int.
23931
23932 2003-09-08  Paul Eggert  <eggert@twinsun.com>
23933
23934         Assume C89 or better; remove K&R cruft.
23935         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
23936         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
23937         string.h, getenv, malloc.
23938         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
23939         headers.
23940         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
23941         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
23942         do not check for strerror.
23943         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
23944         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
23945         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
23946         do not check for doprnt or vprintf.
23947         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
23948         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
23949
23950 2003-09-08  Paul Eggert  <eggert@twinsun.com>
23951
23952         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
23953         getversion.c should have been removed then, but was accidentally
23954         preserved.
23955
23956         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
23957         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
23958
23959 2003-09-08  Karl Berry  <karl@gnu.org>
23960
23961         * config/config.sub, config.guess, srclistvars.sh: update from savannah
23962                 config, forget about prep.
23963
23964         * config/depcomp, missing: update from automake.
23965
23966 2003-09-07  Paul Eggert  <eggert@twinsun.com>
23967
23968         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
23969         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
23970
23971 2003-09-07  Paul Eggert  <eggert@twinsun.com>
23972
23973         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
23974         copy_tm_result.  Bug reported by Simon Josefsson in
23975         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
23976
23977 2003-09-06  Paul Eggert  <eggert@twinsun.com>
23978
23979         * m4/time_r.m4: New file.
23980         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
23981         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
23982         is. Check for timegm declaration.
23983         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
23984         Do not check for gmtime_r.
23985         Replace mktime if __mktime_internal does not exist and if mktime
23986         hasn't been replaced already.
23987
23988 2003-09-06  Paul Eggert  <eggert@twinsun.com>
23989
23990         * lib/time_r.c, lib/time_r.h: New files.
23991
23992         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
23993         __localtime_r.
23994         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
23995         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
23996
23997         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
23998         __gmtime_r.
23999         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
24000         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
24001         Include <time_r.h>.
24002
24003         * lib/timegm.c: Switch to glibc implementation, with the following
24004         changes:
24005         [defined HAVE_CONFIG_H]: Include <config.h>.
24006         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
24007         (__mktime_internal) [!defined _LIBC]: New decl.
24008         (__gmtime_r) [!defined _LIBC]: New macro and function.
24009         (timegm): Use a prototype, since gnulib assumes C89.
24010         Do not bother declaring tmp to be const, as it's not really usefu.
24011         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
24012         (timegm): Declare only if HAVE_DECL_TIMEGM.
24013
24014 2003-09-06  Paul Eggert  <eggert@twinsun.com>
24015
24016         * MODULES.html.sh (func_all_modules): Add time_r.
24017         * modules/time_r: New file.
24018         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
24019         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
24020
24021 2003-09-03  Paul Eggert  <eggert@twinsun.com>
24022
24023         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
24024         Bug reported by Lute Kamstra in
24025         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
24026
24027         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
24028         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
24029         course with correspondingly smaller numbers for tomorrow and
24030         yesterday.  From Tadayoshi Funaba.  Originally installed into
24031         sh-utils on 1999-08-07, but the patch got lost (I guess during the
24032         coreutils merge?).
24033
24034 2003-08-31  Simon Josefsson  <jas@extundo.com>
24035
24036         * modules/timegm: New file.
24037         * MODULES.html.sh (func_all_modules): Add timegm.
24038
24039 2003-08-31  Simon Josefsson  <jas@extundo.com>
24040
24041         * m4/timegm.m4: New file.
24042
24043 2003-08-31  Simon Josefsson  <jas@extundo.com>
24044
24045         * lib/timegm.h: New file.
24046         * lib/timegm.c: New file.  Based on
24047         wget-1.8.2/src/http.c:mktime_from_utc.
24048
24049 2003-08-31  Karl Berry  <karl@gnu.org>
24050
24051         * lib/argp.h: update from libc.
24052
24053 2003-08-28  Bruno Haible  <bruno@clisp.org>
24054
24055         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
24056         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
24057         followed by '#define fnmatch fnmatch_posix' gives an error.
24058
24059 2003-08-28  Bruno Haible  <bruno@clisp.org>
24060
24061         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
24062         warning on QNX, which defines O_BINARY to 000000.
24063
24064 2003-08-27  Jim Meyering  <jim@meyering.net>
24065
24066         * m4/mkstemp.m4: Require that the system mkstemp be able to create
24067         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
24068         would fail after 32.  Reported by Danny Levinson.  Details here:
24069         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
24070
24071 2003-08-24  Bruno Haible  <bruno@clisp.org>
24072
24073         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
24074         MSVC7 <stdio.h> is included later.
24075
24076 2003-08-22  Simon Josefsson  <jas@extundo.com>
24077
24078         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
24079
24080 2003-08-20  Karl Berry  <karl@gnu.org>
24081
24082         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
24083
24084 2003-08-20  Bruno Haible  <bruno@clisp.org>
24085
24086         * modules/progname: New file.
24087         * MODULES.html.sh (func_all_modules): Add progname.
24088
24089 2003-08-20  Bruno Haible  <bruno@clisp.org>
24090
24091         * lib/progname.h: New file, from GNU gettext.
24092         * lib/progname.c: New file, from GNU gettext.
24093         * lib/progreloc.c: New file, from GNU gettext.
24094
24095 2003-08-19  Jim Meyering  <jim@meyering.net>
24096
24097         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
24098         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
24099
24100 2003-08-19  Bruno Haible  <bruno@clisp.org>
24101
24102         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
24103         more.
24104
24105 2003-08-19  Bruno Haible  <bruno@clisp.org>
24106
24107         * lib/xstrdup.c: Assume <string.h> exists.
24108
24109 2003-08-18  Paul Eggert  <eggert@twinsun.com>
24110
24111         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
24112         in makefile rules.
24113
24114 2003-08-18  Jim Meyering  <jim@meyering.net>
24115
24116         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
24117         * m4/lib-ld.m4: Likewise.
24118
24119 2003-08-18  Jim Meyering  <jim@meyering.net>
24120
24121         * lib/setenv.h: Indent nested cpp directive.
24122         * lib/vasnprintf.c: Remove trailing blanks.
24123
24124 2003-08-17  Simon Josefsson  <jas@extundo.com>
24125
24126         * modules/xstrndup: New file.
24127         * MODULES.html.sh (func_all_modules): Add xstrndup.
24128
24129 2003-08-17  Simon Josefsson  <jas@extundo.com>
24130
24131         * modules/argp: Fix autoconf macro name. Add more dependencies.
24132
24133 2003-08-17  Simon Josefsson  <jas@extundo.com>
24134
24135         * m4/xstrndup.m4: New file.
24136
24137 2003-08-17  Simon Josefsson  <jas@extundo.com>
24138
24139         * m4/argp.m4: New file.
24140
24141 2003-08-17  Simon Josefsson  <jas@extundo.com>
24142             Bruno Haible  <bruno@clisp.org>
24143
24144         * lib/xstrndup.h: New file.
24145         * lib/xstrndup.c: New file.
24146
24147 2003-08-17  Bruno Haible  <bruno@clisp.org>
24148
24149         * modules/strndup (Files, Include): Add lib/strndup.h.
24150
24151 2003-08-17  Bruno Haible  <bruno@clisp.org>
24152
24153         * modules/euidaccess (Files): Add lib/euidaccess.h.
24154
24155 2003-08-17  Bruno Haible  <bruno@clisp.org>
24156
24157         * lib/strndup.h: New file.
24158
24159 2003-08-17  Bruno Haible  <bruno@clisp.org>
24160
24161         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
24162         like AC_GNU_SOURCE.
24163         * modules/extensions (configure.ac): Comment out the invocation of
24164         gl_USE_SYSTEM_EXTENSIONS.
24165
24166 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24167
24168         Merges from coreutils, etc.
24169         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
24170         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
24171         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
24172         fixing a typo.
24173         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
24174         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
24175
24176 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24177
24178         Document merge from coreutils.
24179         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
24180         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
24181         * modules/utime: Add m4/utimes-null.m4.
24182
24183 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24184
24185         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
24186         space, undoing this 2003-08-12 change:
24187         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24188
24189 2003-08-16  Paul Eggert  <eggert@twinsun.com>
24190
24191         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
24192         strtoul.c from libc, undoing this 2003-08-12 change:
24193         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24194
24195 2003-08-16  Jim Meyering  <jim@meyering.net>
24196
24197         Merges from coreutils.
24198         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
24199         prefix.  Adjust cache variables similarly.  Create 500 rather than
24200         just 300 files, to exercise bug on Darwin6.5, too.
24201         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
24202         $missing_dir.
24203         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
24204         AM_SYS_POSIX_TERMIOS.
24205         Reported by mkc@mathdogs.com.
24206         Also change use of $am_cv_sys_posix_termios
24207         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
24208         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
24209         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
24210         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
24211         in /proc/mounts until it finds one with matching device number.  This
24212         is unnecessary when the FILE argument *is* a mount point.  No stat call
24213         is necessary in that case.  So, disable the statvfs-testing code on
24214         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
24215         as RedHat bug# 84846.
24216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24217         to 1MB, so as not to render systems with no stack size limit (e.g.,
24218         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
24219         Include <unistd.h>.  On some systems,
24220         it is required for the definition of _SC_PAGESIZE.
24221
24222 2003-08-16  Jim Meyering  <jim@meyering.net>
24223
24224         Merge from coreutils.
24225         * lib/xstrtoimax.c: #else #if -> #elif.
24226         * lib/xstrtoumax.c: Likewise.
24227
24228 2003-08-16  Jim Meyering  <jim@meyering.net>
24229
24230         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
24231         * m4/utimes.m4: Removed.
24232         * m4/utimes-null.m4: Renamed from utimes.m4.
24233
24234         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24235         to 1MB, so as not to render systems with no stack size limit (e.g.,
24236         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
24237         Include <unistd.h>.  On some systems,
24238         it is required for the definition of _SC_PAGESIZE.
24239
24240 2003-08-16  Jim Meyering  <jim@meyering.net>
24241         and Paul Eggert  <eggert@cs.ucla.edu>
24242
24243         Merges from coreutils, etc.
24244
24245         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
24246         using the latest version from cvs.  This avoids problems with #line
24247         directives using a vendor (Sun) compiler.
24248         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
24249         Don't set GETGROUPS_LIB here; now it's
24250         done via getgroups.m4's wrapper function.
24251         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
24252         rather than just in sh-util/configure.in, so that the
24253         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
24254         same.
24255         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
24256         AC_FUNC_GETLOADAVG where to find getloadavg.c.
24257         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
24258         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
24259         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
24260         Remove code that is now done by the newly-required macros.
24261         Append $(EXEEXT) to DF_PROG.
24262         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
24263         Do not invoke or require the following here,
24264         since prereq.m4 or some gnulib .m4 now does this for us:
24265         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
24266         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
24267         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
24268         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
24269         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
24270         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
24271         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
24272         AC_FUNC_OBSTACK.
24273         Do not replace the following functions, as this is now the job
24274         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
24275         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
24276         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
24277         atexit getpass, strdup, getpagesize.
24278         Replace 'raise'.
24279         Do not check for the following functions, as this is now the job
24280         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
24281         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
24282         setregid.
24283         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
24284         Check for sys/sysctl.h.
24285         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
24286         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
24287         of checking for ssize_t ourselves.
24288
24289         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
24290         Require every macro that gnulib/modules/* suggests for us.
24291         (jm_PREREQ_ADDEXT): New macro.
24292         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
24293         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
24294
24295         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
24296         (gl_PHYSMEM): Use it.
24297         Also check for `table' function.
24298         Check for new headers and functions.
24299         Add check for sys/sysmp.h.
24300         With suggestions from Kaveh Ghazi.
24301         Ignore headers that are present but cannot be compiled.  This
24302         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
24303         C 5.4.
24304
24305 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24306
24307         Document merge from coreutils.
24308         * modules/userspec: Depend on posixver.
24309         * modules/strftime: Depend on tzset.
24310
24311 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24312
24313         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
24314         rather than tab, after '#' in shell-script copyright notices.
24315         Suggested by Bruno Haible.
24316
24317 2003-08-15  Paul Eggert  <eggert@twinsun.com>
24318
24319         * config/srclist-update: Use three spaces, rather than tab, after '#'
24320         in shell-script copyright notices.  Suggested by Bruno Haible.
24321         Remove unnecessary parenthesization in regular expression.
24322
24323 2003-08-15  Jim Meyering  <jim@meyering.net>
24324
24325         Merge from coreutils.
24326         * lib/xgethostname.c: Include <stdlib.h>.
24327         (xghostname): Don't exit for anything other than memory-related
24328         failure; just return NULL.
24329         * lib/userspec.c: Include "posixver.h".
24330         (parse_user_spec): Accept `.' as a separator only
24331         in pre-POSIX-200112 mode.
24332         * lib/strtoimax.c: Use #elif rather than #else #if.
24333         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
24334         Remove function, now that we can rely on a working tzset function.
24335         [!_LIBC]: Ensure that the required autoconf test has been run.
24336         [!defined _NL_CURRENT && HAVE_STRFTIME]:
24337         Use underlying_strftime for %r.
24338         * lib/sha.c: Merge in some clean-up and optimization changes from
24339         glibc.
24340         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
24341         Ensure that it is a multiple of 64.
24342         Rearrange loop exit tests so as to avoid performing an
24343         additional fread after encountering an error or EOF.
24344         * lib/realloc.c: Update copyright date.
24345
24346 2003-08-15  Jim Meyering  <jim@meyering.net>
24347         and Paul Eggert  <eggert@twinsun.com>
24348
24349         Merge from coreutils.
24350         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
24351         member but strut utmpx does not.  Needed for AIX 4.3.3.
24352         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
24353
24354 2003-08-15  Jim Meyering  <jim@meyering.net>
24355         and Paul Eggert  <eggert@cs.ucla.edu>
24356
24357         Merges from coreutils, etc.
24358         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
24359         Require gl_FUNC_TZSET_CLOBBER.
24360         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
24361         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
24362         members.
24363
24364 2003-08-14  Paul Eggert  <eggert@twinsun.com>
24365
24366         Help the merge from coreutils.
24367         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
24368         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
24369         * m4/tzset.m4: Use it too.
24370
24371 2003-08-14  Paul Eggert  <eggert@twinsun.com>
24372
24373         * modules/tzset: New file.
24374
24375 2003-08-14  Jim Meyering  <jim@meyering.net>
24376
24377         Merges from coreutils.
24378         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
24379         variable names, rather than @FNMATCH_H@.
24380         * modules/alloca: Likewise for $(ALLOCA_H).
24381
24382         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
24383         the three copies of the literal target, `fnmatch.h'.
24384         * modules/alloca (alloca.h): Likewise.
24385
24386 2003-08-14  Jim Meyering  <jim@meyering.net>
24387
24388         Merge from coreutils.
24389         * m4/tzset.m4: New file.
24390         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
24391         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
24392         otherwise, AIX 5.1 systems would end up using the latter.
24393         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
24394         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
24395         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
24396         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
24397
24398 2003-08-14  Jim Meyering  <jim@meyering.net>
24399
24400         Merge from coreutils.
24401         * lib/obstack.h: Whitespace changes.
24402         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
24403         and xcalloc return values.
24404         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
24405         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
24406         hang on OSF/1 5.1 for DIR on both local and remote file systems.
24407         Reported by (and fix confirmed by) Nelson H. F. Beebe.
24408         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
24409         error from mntctl.
24410         Use mntctl's return value to drive the entry-processing loop, since
24411         we can't rely on the value of the vmt_length member in the last
24412         entry.  On some systems doing so could result in exhausting
24413         virtual memory.  Based in part on a patch from Mike Jetzer.
24414
24415 2003-08-14  Jim Meyering  <jim@meyering.net>
24416         and Paul Eggert  <eggert@twinsun.com>
24417
24418         Merges from coreutils, plus other fixes.
24419         * lib/physmem.c: Merge in portability changes from gcc/libiberty
24420         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
24421         for credits and details.  Thanks to Kaveh Ghazi for helping
24422         to keep these files in sync.
24423         (ARRAY_SIZE): Define it.
24424         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
24425         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
24426         (memcasecmp): Don't assume size_t fits in unsigned int.
24427         Remove casts and duplicate code.
24428         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
24429         (memcpy): Remove definition.
24430         Merge in some clean-up and optimization changes from glibc.
24431         [BLOCKSIZE]: Move definition to top of file.
24432         Ensure that it is a multiple of 64.
24433         Rearrange loop exit tests so as to avoid performing an
24434         additional fread after encountering an error or EOF.
24435         * lib/md5.h (md5_uintptr): Define.
24436         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
24437         return to the initial working directory.  Preserve errno
24438         for caller.
24439         * lib/idcache.c: Include "xalloc.h".
24440         (xmalloc, xrealloc): Remove decls.
24441         (getuser): Remove casts no longer required in C89.
24442         * lib/human.c: Include stdio.h, for sprintf.
24443         * lib/group-member.c: Include "xalloc.h".
24444         (xmalloc, xrealloc): Remove decls.
24445         (get_group_info): Remove casts no longer required in C89.
24446         * lib/getusershell.c (readname): Remove casts no longer required in
24447         C89.
24448         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
24449         * lib/getline.c: Whitespace fix, from coreutils.
24450
24451 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24452
24453         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
24454         Check for isascii.
24455
24456         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24457         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24458         Undo previous (whitespace-only) change.
24459
24460 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24461
24462         * lib/exclude.c: Include <ctype.h>
24463         (IN_CTYPE_DOMAIN): New macro.
24464         (is_space): New fn.
24465         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
24466         and empty lines.
24467
24468         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24469         Undo previous (whitespace-only) change.
24470
24471 2003-08-13  Paul Eggert  <eggert@twinsun.com>
24472
24473         * config/srclist-update: Change update back to the old behavior,
24474         leaving whitespace alone.  Use one 'sed' command rather than a
24475         pipeline.
24476         (fixlicense): Now a variable, not a function.
24477         (remove_trailing_blanks): Remove.
24478         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
24479         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24480         Undo previous (whitespace-only) change.
24481
24482 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24483
24484         Merge from coreutils.
24485         * modules/euidaccess: Add lib_SOURCES, include for new
24486         file euidaccess.h
24487
24488 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24489
24490         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24491         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24492         Normalize leading white space and remove trailing white space.
24493
24494         Merge from coreutils
24495         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
24496
24497         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
24498         0.12.1.  These files are now being upgraded automatically by
24499         ../config/srclist-update.
24500
24501 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24502
24503         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24504         Normalize leading white space and remove trailing white space.
24505         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
24506         notice, as per ../config/srclist-update.
24507
24508         Merge from coreutils.
24509         * lib/euidaccess.h: New file.
24510         * lib/euidaccess.c: Include it.
24511         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
24512         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
24513         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
24514
24515 2003-08-12  Paul Eggert  <eggert@twinsun.com>
24516
24517         * config/srclist-update: Add copyright notice.
24518         (remove_id_lines, remove_trailing_blanks): New constants.
24519         (fixfile): Use them to normalize spacing a bit in copied files.
24520         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24521         Normalize leading white space and remove trailing white space.
24522
24523         * config/texinfo.tex: Sync with texinfo.
24524
24525         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
24526         strtoul.c from libc, to merge coreutils whitespace changes.
24527
24528         * config/srclist.txt: Get the following m4 files from gettext:
24529         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
24530         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
24531         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
24532         wint_t.m4.
24533
24534 2003-08-12  Karl Berry  <karl@gnu.org>
24535
24536         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
24537         been made.
24538
24539 2003-08-11  Paul Eggert  <eggert@twinsun.com>
24540
24541         * modules/gnu-source, m4/gnu-source.m4:
24542         Remove; we're assuming Autoconf 2.54 or later now.
24543         Suggested by Bruno Haible.
24544         * MODULES.html.sh (func_all_modules): Remove gnu-source.
24545
24546 2003-08-11  Bruno Haible  <bruno@clisp.org>
24547
24548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
24549
24550 2003-08-11  Bruno Haible  <bruno@clisp.org>
24551
24552         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
24553         (vasnprintf): Use it instead of wcslen.
24554
24555 2003-08-11  Bruno Haible  <bruno@clisp.org>
24556
24557         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
24558         value to ensure that _Bool promotes to int. Use #define for _Bool when
24559         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
24560
24561 2003-08-10  Karl Berry  <karl@gnu.org>
24562
24563         * lib/regex.h: update from libc (whitespace fix).
24564
24565 2003-08-09  Paul Eggert  <eggert@twinsun.com>
24566
24567         Merge some files from coreutils.  These changes were
24568         originally made by Jim Meyering.
24569         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
24570         many older Unixes require this.
24571         * lib/alloca.c (alloca): Remove cast to argument of free;
24572         no longer needed in C89.
24573         * lib/alloca_.h, regex.h: Fix white space to match
24574         what GNU indent does.
24575
24576 2003-08-09  Paul Eggert  <eggert@twinsun.com>
24577
24578         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
24579         apparently Emacs's Unicode mode got confused before my 2003-08-05
24580         checkin.
24581
24582 2003-08-08  Paul Eggert  <eggert@twinsun.com>
24583
24584         * m4/extensions.m4: New file.
24585         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
24586         Require gl_USE_SYSTEM_EXTENSIONS.
24587         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
24588         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
24589
24590 2003-08-08  Paul Eggert  <eggert@twinsun.com>
24591
24592         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
24593         * modules/extensions, modules/gnu-source: New files.
24594         * modules/timespec, modules/unlocked-io: Depend on extensions.
24595
24596 2003-08-07  Paul Eggert  <eggert@twinsun.com>
24597
24598         * modules/restrict: New file.
24599         * MODULES.html.sh (func_all_modules): Add restrict.
24600         * modules/regex: Depend on restrict.
24601
24602 2003-08-07  Paul Eggert  <eggert@twinsun.com>
24603
24604         * m4/restrict.m4: New file.
24605         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
24606
24607 2003-08-07  Bruno Haible  <bruno@clisp.org>
24608
24609         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
24610         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
24611
24612 2003-08-07  Bruno Haible  <bruno@clisp.org>
24613
24614         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
24615         makes the module 'getndelim2' compatible with the module 'getline'.
24616
24617 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24618
24619         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
24620         byte with "\201" to avoid glitches when editing that source file
24621         with multi-gnome-terminal.
24622
24623 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24624
24625         * lib/bumpalloc.h: Remove.
24626
24627 2003-08-05  Paul Eggert  <eggert@twinsun.com>
24628
24629         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
24630         * modules/bumpalloc: Remove.
24631
24632 2003-08-04  Paul Eggert  <eggert@twinsun.com>
24633
24634         * lib/getloadavg.c: Change copyright notice and spacing to conform to
24635         GNU coding style.
24636
24637         Merge from coreutils.
24638         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
24639         1. From glibc.
24640         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
24641         from Karl Berry, implemented by Jim Meyering.
24642         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
24643         from Dmitry V. Levin.
24644         Remove anachronistic cast of xrealloc.
24645         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
24646         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
24647         type. Otherwise, it wouldn't compile with at least /bin/cc on
24648         ymp-cray-unicos9.0.2.X.
24649         Combine two mostly-identical uses of alloca into one.
24650         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
24651
24652 2003-08-04  Dave Love  <d.love@dl.ac.uk>
24653
24654         [From Emacs.]
24655
24656         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
24657         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
24658         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
24659         obsolete NLIST_NAME_UNION.
24660         [__GNU__]: Undef BSD and FSCALE.
24661         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
24662
24663 2003-08-03  Paul Eggert  <eggert@twinsun.com>
24664
24665         * lib/stdbool_.h (_Bool): Make it signed char, instead of
24666         an enum type, so that it's guaranteed to promote to int.  See:
24667         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
24668
24669 2003-08-03  Karl Berry  <karl@gnu.org>
24670
24671         * config/depcomp: update from automake.
24672
24673 2003-07-31  Paul Eggert  <eggert@twinsun.com>
24674
24675         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
24676         (strerror): Don't assume that a printable int fits in 14 bytes.
24677
24678 2003-07-31  Bruno Haible  <bruno@clisp.org>
24679
24680         * modules/getpass-gnu: New file.
24681         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
24682
24683 2003-07-31  Bruno Haible  <bruno@clisp.org>
24684
24685         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
24686
24687 2003-07-24  Karl Berry  <karl@gnu.org>
24688
24689         * config/missing: update from automake.
24690
24691 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
24692             Bruno Haible  <bruno@clisp.org>
24693
24694         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
24695         * lib/getline.c (getline, getdelim): Likewise.
24696         Remove _GNU_SOURCE define; now it's defined in config.h through
24697         m4/getline.m4.
24698
24699 2003-07-23  Karl Berry  <karl@gnu.org>
24700
24701         * config/config.sub: update from prep.
24702
24703 2003-07-22  Paul Eggert  <eggert@twinsun.com>
24704
24705         * modules/xalloc (Depends-on): Add exitfail.
24706         * modules/xmemcoll: Likewise.
24707
24708 2003-07-22  Paul Eggert  <eggert@twinsun.com>
24709
24710         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
24711         over-parenthesization in macros.
24712
24713         Sync with coreutils.
24714
24715         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
24716         required by C99.
24717
24718         Use `exit_failure' for xalloc and xmemcoll instead of their own
24719         private exit-failure variables.
24720         * lib/xalloc.h (xalloc_exit_failure): Remove.
24721         * lib/xmalloc.c: Likewise.  Include exitfail.h.
24722         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
24723         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
24724         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
24725         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
24726
24727 2003-07-20  Jim Meyering  <jim@meyering.net>
24728
24729         * modules/closeout (Depends-on): Add exitfail.
24730         Suggestion from Bruno Haible.
24731
24732 2003-07-19  Karl Berry  <karl@gnu.org>
24733
24734         * config/config.sub: update from prep.
24735
24736 2003-07-18  Paul Eggert  <eggert@twinsun.com>
24737
24738         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
24739         Remove.
24740         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
24741         to test that it can stand by itself.  Include "exitfail.h".
24742         Clients should set exit_failure instead.
24743         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
24744
24745 2003-07-18  Bruno Haible  <bruno@clisp.org>
24746
24747         * modules/getndelim2: New file.
24748         * modules/getline: Share files with module getndelim2.
24749         * modules/getnline: Depend on getndelim2 instead of sharing files with
24750         it. Add getnline.c to lib_SOURCES.
24751         * MODULES.html.sh (func_all_modules): Add getndelim2.
24752
24753 2003-07-18  Bruno Haible  <bruno@clisp.org>
24754
24755         * m4/getndelim2.m4: New file.
24756         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
24757         invoke gl_PREREQ_GETNDELIM2.
24758         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
24759         gl_PREREQ_GETNDELIM2.
24760         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
24761         gl_GETNDELIM2.
24762
24763 2003-07-18  Bruno Haible  <bruno@clisp.org>
24764
24765         * lib/getndelim2.h: New file.
24766         * lib/getndelim2.c: Make into a module of its own. Include config.h,
24767         getndelim2.h.
24768         (getndelim2): Make non-static. Change return type to ssize_t.
24769         * lib/getline.h: Change argument names.
24770         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
24771         * lib/getnline.c: Include getndelim2.h.
24772
24773 2003-07-18  Andreas Schwab  <schwab@suse.de>
24774
24775         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
24776
24777 2003-07-17  Karl Berry  <karl@gnu.org>
24778
24779         * config/config.sub: update from prep.
24780
24781 2003-07-17  Bruno Haible  <bruno@clisp.org>
24782
24783         * modules/getnline: New file.
24784         * modules/getline: Add lib/getndelim2.c to source file list.
24785         * MODULES.html.sh (func_all_modules): Add getnline.
24786
24787 2003-07-17  Bruno Haible  <bruno@clisp.org>
24788
24789         * m4/getnline.m4: New file.
24790
24791 2003-07-17  Bruno Haible  <bruno@clisp.org>
24792
24793         * m4/Makefile.am.in: Remove file.
24794         * m4/Makefile.am: Remove file.
24795         * m4/Makefile.in: Remove file.
24796
24797 2003-07-17  Bruno Haible  <bruno@clisp.org>
24798
24799         * lib/getnline.h: New file.
24800         * lib/getnline.c: New file.
24801         * lib/getndelim2.c: New file, extracted from getline.c.
24802         (getndelim2): Renamed from getdelim2, with added nmax argument.
24803         * lib/getline.c: Include getndelim2.c.
24804         (getdelim2): Moved out to getndelim2.c.
24805         (getline, getdelim): Update.
24806
24807 2003-07-17  Bruno Haible  <bruno@clisp.org>
24808
24809         * lib/Makefile.am: Remove file.
24810         * lib/Makefile.in: Remove file.
24811
24812 2003-07-17  Bruno Haible  <bruno@clisp.org>
24813
24814         * configure.in: Remove file.
24815         * Makefile.in: Remove file.
24816
24817 2003-07-17  Bruno Haible  <bruno@clisp.org>
24818
24819         * MODULES.html.sh: Put the </BODY> right before </HTML>.
24820
24821 2003-07-16  Karl Berry  <karl@gnu.org>
24822
24823         * config/srclist-update: was running fixlicense twice, which caused
24824                 texinfo.tex to be nullified for some reason.  Simplify,
24825                 $gplsrc is no longer needed as far as I can see?
24826
24827 2003-07-16  Jim Meyering  <jim@meyering.net>
24828
24829         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
24830
24831 2003-07-15  Paul Eggert  <eggert@twinsun.com>
24832
24833         * config/srclist.txt: Get the following files from gettext-runtime/intl
24834         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
24835         ref-del.sin.  From Bruno Haible.
24836         * config/srclist-update (fixfile): Change grep pattern again, since the
24837         previous fix didn't work (there was another trailing $).  Use
24838         '[$]' to escape the $s.
24839
24840 2003-07-15  Karl Berry  <karl@gnu.org>
24841
24842         * lib/vasnprintf.c: update from gettext.
24843
24844 2003-07-15  Karl Berry  <karl@gnu.org>
24845
24846         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
24847         gets expanded when surrounded by '$'.
24848
24849 2003-07-15  Jim Meyering  <jim@meyering.net>
24850
24851         * modules/save-cwd: Don't depend on error.  From Derek Price.
24852
24853 2003-07-15  Jim Meyering  <jim@meyering.net>
24854
24855         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
24856
24857 2003-07-14  Simon Josefsson  <jas@extundo.com>
24858
24859         * modules/mempcpy: New file.
24860         * MODULES.html.sh (func_all_modules): Add mempcpy.
24861
24862 2003-07-14  Simon Josefsson  <jas@extundo.com>
24863
24864         * m4/mempcpy.m4: New file.
24865
24866 2003-07-14  Simon Josefsson  <jas@extundo.com>
24867
24868         * lib/mempcpy.h: New file.
24869         * lib/mempcpy.c: New file.
24870
24871 2003-07-14  Paul Eggert  <eggert@twinsun.com>
24872
24873         * modules/getdate, modules/posixtm: Depend on mktime.
24874
24875 2003-07-14  Paul Eggert  <eggert@twinsun.com>
24876
24877         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
24878         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
24879         unicodeio.c, unicodeio.h, unlocked-io.h:
24880         Switch from LGPL to GPL.
24881
24882 2003-07-14  Paul Eggert  <eggert@twinsun.com>
24883
24884         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
24885         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
24886         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
24887         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
24888         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
24889         updated automatically by ../config/srclist-update.  This changes
24890         their license from LPGL to GPL.
24891
24892 2003-07-14  Paul Eggert  <eggert@twinsun.com>
24893
24894         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
24895         assumed to refer to the root of the most recent stable gettext version.
24896         * config/srclistvars.sh: Add defaults for eggert.
24897         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
24898         Match "This program" as well as "The program".  This is needed
24899         for gettext.
24900
24901 2003-07-14  Jim Meyering  <jim@meyering.net>
24902
24903         Don't emit diagnostics.  Let callers do that.
24904         * lib/save-cwd.c: Don't include "error.h".
24905         (save_cwd): Don't call error.  Ensure that errno is valid
24906         when returning nonzero.
24907
24908         * lib/save-cwd.h (restore_cwd): Update prototype.
24909         * lib/save-cwd.c (restore_cwd): Remove two parameters.
24910         Simplify.  Don't call error upon failure.  Let callers do that.
24911         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
24912         when auditing is enabled.  But don't bother updating the #if.
24913
24914 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
24915
24916         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
24917         it breaks C++ compilation.
24918         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
24919
24920 2003-07-10  Simon Josefsson  <jas@extundo.com>
24921
24922         * modules/strchrnul (Makefile.am): Add strchrnul.h.
24923
24924 2003-07-10  Jim Meyering  <jim@meyering.net>
24925
24926         * m4/clock_time.m4: Remove trailing blank.
24927         * m4/intmax_t.m4: Likewise.
24928
24929 2003-07-10  Jim Meyering  <jim@meyering.net>
24930
24931         * lib/vasnprintf.c: Remove trailing blanks.
24932         Make cpp indentation consistent.
24933
24934 2003-07-09  Paul Eggert  <eggert@twinsun.com>
24935
24936         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
24937         posixver.c, strftime.c, strnlen.c, strverscmp.c:
24938         Switch from LGPL to GPL.
24939
24940 2003-07-09  Paul Eggert  <eggert@twinsun.com>
24941
24942         * config/srclist.txt: Sort sublists.  Add
24943         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
24944         that differ from gnulib for one reason or another; we'd like this list
24945         to be smaller but for now let's document what we have.
24946
24947 2003-07-08  Paul Eggert  <eggert@twinsun.com>
24948
24949         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
24950         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
24951         and sweeter "eval x=$x".
24952         * config/srclist.txt: Get lib/argp* from glibc.
24953
24954 2003-07-07  Paul Eggert  <eggert@twinsun.com>
24955
24956         * lib/mktime.c: Fix some boundary cases and remove need for floating
24957         point.
24958
24959         Issue a compile-time diagnostic if time_t is floating point, or if
24960         two's complement arithmetic is not in effect, or if arithmetic
24961         right shift does not propagate the sign.  These assumptions were
24962         all in the original code but they weren't checked.
24963
24964         (TIME_T_MIDPOINT, verify): New macros.
24965         (__isleap): Remove; it has integer overflow problems.
24966         (leapyear): New function, without those problems.
24967         (ydhms_tm_diff): Remove; splitting into two parts.
24968         (ydhms_diff): New function, containing the arithmetic part of
24969         the old ydhms_tm_diff function.  Issue a compile-time
24970         diagnostic if we are not using C99 integer division.
24971         Avoid casts when possible.
24972         (guess_time_tm): New function, containing the checking part of
24973         the old ydhms_tm_diff function.  Return the new value, rather than
24974         the difference between it and the old.  Accept a new argument T
24975         so that *T specifies the old value.  Check for overflow in the result.
24976
24977         (__mktime_internal): Use a time_t offset, not a long int offset.
24978         This undoes the 2003-06-04 change, which is no longer needed now
24979         that we have better overflow checking.
24980         (localtime_offset): Likewise.
24981
24982         (__mktime_internal): Avoid harmful overflow on hosts where time_t
24983         and long are 64-bit but int is only 32-bit.
24984         (ydhms_diff): Use long int to store year1 and yday1.
24985         Issue a compile-time diagnostic if long int is not wide enough.
24986
24987         (__mktime_internal): Use long int to store adjusted year and yday.
24988         Use plain C rather than preprocessor commands, if that doesn't
24989         affect efficiency.
24990         Check for overflow (and try to repair) after each probe
24991         rather than checking only at the very end.  This avoids some bugs
24992         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
24993         does not equal GMT offset at maximum time).
24994         Use integer to check for overflow rather than floating point; this
24995         is more portable to non-IEEE hosts, and is a tad faster.
24996         When we detect that we are oscillating between two values,
24997         don't check whether tm_isdst has the requested value, since
24998         we already know the answer.  When tm_isdst has the wrong value,
24999         use a different heuristic to find the right one, based on the
25000         extreme values actually observed in practice in tz2003a,
25001         rather than the (overly optimistic) "previous 3 calendar quarters".
25002
25003         (not_equal_tm, print_tm, check_result): Use "const T" rather than
25004         "T const" to accommodate glibc style.
25005         (check_result): Use less-confusing report format.  "long" -> "long int.
25006         (main): Likewise.
25007         Don't loop if the iteration overflows time_t.
25008         Allow a negative step in the iteration.
25009
25010 2003-07-06  Karl Berry  <karl@gnu.org>
25011
25012         * config/depcomp: update from automake.
25013         * config/config.sub: update from prep.
25014
25015 2003-07-03  Karl Berry  <karl@gnu.org>
25016
25017         * config/config.guess: update from prep.
25018
25019 2003-07-01  Paul Eggert  <eggert@twinsun.com>
25020
25021         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
25022         xreadlink.c now includes it unconditionally.
25023
25024 2003-07-01  Paul Eggert  <eggert@twinsun.com>
25025
25026         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
25027         having it depend on HAVE_SYS_TYPES_H.
25028
25029 2003-07-01  Bruno Haible  <bruno@clisp.org>
25030
25031         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
25032         <sys/types.h> should be sufficient.
25033         Reported by Paul Eggert.
25034
25035 2003-06-26  Karl Berry  <karl@gnu.org>
25036
25037         * config/depcomp: update from automake.
25038
25039 2003-06-26  Bruno Haible  <bruno@clisp.org>
25040
25041         * modules/human: Depend on module stdbool.
25042
25043 2003-06-25  Bruno Haible  <bruno@clisp.org>
25044
25045         * modules/readlink: New file.
25046         * modules/xreadlink: Depend on it.
25047         * MODULES.html.sh (func_all_modules): Add readlink.
25048
25049 2003-06-25  Bruno Haible  <bruno@clisp.org>
25050
25051         * m4/readlink.m4: New file.
25052
25053 2003-06-25  Bruno Haible  <bruno@clisp.org>
25054
25055         * lib/readlink.c: New file.
25056
25057 2003-06-22  Karl Berry  <karl@gnu.org>
25058
25059         * config/srclist.txt: update mkinstalldirs from automake.
25060         * config/mkinstalldirs: update.
25061
25062 2003-06-22  Bruno Haible  <bruno@clisp.org>
25063
25064         Portability to mingw32.
25065         * m4/ssize_t.m4: New file, from GNU gettext.
25066         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
25067         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
25068
25069 2003-06-22  Bruno Haible  <bruno@clisp.org>
25070
25071         * modules/safe-read: Add m4/ssize_t.m4.
25072         * modules/xreadlink: Add m4/ssize_t.m4.
25073
25074 2003-06-20  Bruno Haible  <bruno@clisp.org>
25075
25076         Assume C89, so PARAMS isn't needed.
25077         * lib/unicodeio.h (PARAMS): Remove.
25078         * lib/unicodeio.c: Don't use PARAMS.
25079
25080 2003-06-18  Karl Berry  <karl@gnu.org>
25081
25082         * config/config.{guess,sub}: update from prep.
25083
25084 2003-06-18  Jim Meyering  <jim@meyering.net>
25085
25086         Merge changes from coreutils.
25087         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
25088         Remove explicit declarations of xmalloc and realloc.
25089         Include xalloc.h.
25090         (read_utmp): Remove anachronistic cast of xmalloc.
25091
25092 2003-06-17  Paul Eggert  <eggert@twinsun.com>
25093
25094         Assume C89, so PARAMS isn't needed.
25095         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
25096         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
25097         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
25098         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
25099         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
25100         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
25101         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
25102         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
25103         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
25104         lib/xstrtod.h, lib/xstrtol.h: Likewise.
25105         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
25106         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
25107         no longer needed. Anyway, config.h should always be included before any
25108         other file.
25109
25110 2003-06-11  Simon Josefsson  <jas@extundo.com>
25111
25112         * modules/sysexits: New file.
25113         * MODULES.html.sh (func_all_modules): Add sysexits.
25114
25115 2003-06-11  Simon Josefsson  <jas@extundo.com>
25116
25117         * lib/sysexit_.h: New file.
25118
25119 2003-06-11  Derek Price  <derek@ximbiot.com>
25120
25121         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
25122         necessary.
25123
25124 2003-06-11  Bruno Haible  <bruno@clisp.org>
25125
25126         * m4/sysexits.m4: New file.
25127
25128 2003-06-10  Simon Josefsson  <jas@extundo.com>
25129
25130         * lib/argp.h: New file, from glibc.
25131         * lib/argp-ba.c: New file, from glibc.
25132         * lib/argp-eexst.c: New file, from glibc.
25133         * lib/argp-fmtstream.c: New file, from glibc.
25134         * lib/argp-fmtstream.h: New file, from glibc.
25135         * lib/argp-fs-xinl.c: New file, from glibc.
25136         * lib/argp-help.c: New file, from glibc.
25137         * lib/argp-namefrob.h: New file, from glibc.
25138         * lib/argp-parse.c: New file, from glibc.
25139         * lib/argp-pv.c: New file, from glibc.
25140         * lib/argp-pvh.c: New file, from glibc.
25141         * lib/argp-xinl.c: New file, from glibc.
25142
25143 2003-06-10  Simon Josefsson  <jas@extundo.com>
25144
25145         * modules/strchrnul: New file.
25146
25147 2003-06-10  Simon Josefsson  <jas@extundo.com>
25148
25149         * modules/argp: New file.
25150
25151 2003-06-10  Simon Josefsson  <jas@extundo.com>
25152
25153         * m4/strchrnul.m4: New file.
25154
25155 2003-06-10  Simon Josefsson  <jas@extundo.com>
25156
25157         * lib/strchrnul.h: New file.
25158         * lib/strchrnul.c: New file.
25159
25160 2003-06-10  Bruno Haible  <bruno@clisp.org>
25161
25162         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
25163
25164 2003-06-07  Karl Berry  <karl@gnu.org>
25165
25166         * config/config.{guess,sub}: update from prep.
25167
25168 2003-06-07  Jim Meyering  <jim@meyering.net>
25169
25170         * modules/strtod: Use $(...) notation, not @...@ for
25171         AC_REPLACE'd variables.
25172         * modules/localcharset: Likewise.
25173
25174 2003-06-07  Jim Meyering  <jim@meyering.net>
25175
25176         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
25177         in place of my name in the copyright comment.
25178         Remove definition and uses of __P.
25179
25180         From coreutils.
25181         * lib/stat.c: Don't declare xmalloc explicitly.
25182         Instead, include "xalloc.h".
25183         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
25184         xrealloc, and xcalloc return values.
25185         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
25186         Improve comment.
25187         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
25188
25189 2003-06-07  Bruno Haible  <bruno@clisp.org>
25190
25191         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
25192         avoid AC_CONFIG_LINKS.
25193         * modules/fnmatch (Makefile.am): Use explicit creation rule for
25194         fnmatch.h, to avoid AC_CONFIG_LINKS.
25195         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
25196
25197 2003-06-07  Bruno Haible  <bruno@clisp.org>
25198
25199         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
25200         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
25201         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25202         directory.
25203         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
25204         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25205         directory.
25206
25207 2003-06-06  Jim Meyering  <jim@meyering.net>
25208
25209         Merge from coreutils.
25210         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
25211         Consolidate declarations and initializations of *_base* locals.
25212
25213         Merge from coreutils.
25214         This avoids a core dump on systems without GNU putenv,
25215         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
25216         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
25217         (unsetenv): New static function, from GNU libc.
25218         (rpl_putenv): Use it.
25219
25220         * lib/modechange.c: Remove trailing blanks.
25221
25222         Merge from coreutils.
25223         * lib/fsusage.c: Remove declaration of statfs.
25224         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
25225
25226         * lib/posixtm.c: Include <stdbool.h> unconditionally.
25227
25228 2003-06-06  Jim Meyering  <jim@meyering.net>
25229
25230         * lib/stdbool_.h: Renamed from stdbool.h.in.
25231
25232 2003-06-06  Jim Meyering  <jim@meyering.net>
25233             Bruno Haible  <bruno@clisp.org>
25234
25235         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
25236         Adjust Makefile.am snippet not to redirect directly to target.
25237         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
25238
25239 2003-06-05  Paul Eggert  <eggert@twinsun.com>
25240
25241         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
25242         mismatch, look in future quarters as well as past.  This fixes a
25243         bug when processing fall-backwards gaps immediately after a long
25244         period of daylight-saving time.
25245
25246         * lib/mktime.c: Assume freestanding C89 or better.
25247         (HAVE_LIMITS_H): Remove.  Assume it's 1.
25248         (__P): Remove; not used.
25249         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
25250         (mktime, not_equal_tm, print_tm, check_result,
25251         main): Use prototypes.  Use const * where appropriate.
25252         (main): Fix typo in testing code that uncovered by above changes.
25253         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
25254
25255 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25256
25257         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
25258         locale.h, localeconv.  This merges changes from coreutils.
25259
25260         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
25261         It can be removed after the next Autoconf is released.
25262         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
25263         needed.
25264
25265 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25266
25267         * lib/mktime.c: Fix Debian bug 177940
25268         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
25269         (localtime_offset): Now long int, not time_t, because we want it
25270         to be guaranteed to be signed.  All uses changed.
25271         (__mktime_internal): If overflow would occur when adding offset,
25272         don't add it.
25273
25274         Merge 'human' changes from coreutils.  Rewrite to support
25275         locale-specific notations like thousands separators.
25276         * lib/human.c: Simplify authorship notice.
25277         Include human.h immediately after config.h.
25278         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
25279         <limits.h>: Do not include, since human.h does.
25280         (SIZE_MAX, UINTMAX_MAX): New macros.
25281         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
25282         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
25283         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
25284         (power_letter): Renamed from suffixes.
25285         (generate_suffix_backwards): Remove.
25286         (adjust_value): Now takes int style (because of human.h changes)
25287         and long double value (for greater precision on some platforms).
25288         (group_number): New function.
25289         (human_readable): Use it.  Use integer options, not enum.
25290         Put the options before the sizes in the arg list.
25291         Support all the new options.
25292         The old human_readable function has been removed;
25293         use inttostr.h instead.
25294         (human_readable, default_block_size, humblock):
25295         Use uintmax_t, not int, for block sizes.
25296         (human_readable_inexact, block_size_types): Remove.
25297         (block_size_opts): New constant.
25298         (human_options): Renamed from human_block_size, with new signature
25299         that allows block sizes up to UINTMAX_MAX.  All callers changed.
25300         * lib/human.h: Add copyright and authorship notice.
25301         Include <limits.h> and <stdbool.h> unconditionally.
25302         (PARAMS): Remove.  All uses removed.
25303         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
25304         (enum human_inexact_style): Remove tag; now a nameless enum.
25305         (human_floor, human_ceiling, human_round_to_even): Now have
25306         values 2, 0, 1 rather than -1, 1, 0.
25307         (human_group_digits, human_suppress_point_zero, human_autoscale,
25308         human_base_1024, human_SI, human_B): New constants.
25309         (human_readable_inexact, human_block_size): Remove.
25310         (human_readable): Size args are now uintmax_t, not int.
25311         (human_options): New decl.
25312
25313         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
25314         unnecessary now that we assume C89 or better.  This change
25315         imported from coreutils.
25316
25317         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25318         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
25319         in the 2003-05-30 sync from glibc.
25320
25321         .h files should stand alone, but we shouldn't include <sys/types.h>
25322         if we can get away with just <stddef.h>.
25323
25324         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
25325         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
25326         rather than <sys/types.h>, as we merely need size_t.
25327         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
25328         to get size_t.
25329         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
25330         Include <stdio.h>, to get FILE.
25331         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
25332         memcasecmp.h has included <stddef.h> and all we need is size_t.
25333         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
25334         our interface, instead of including <sys/types.h>
25335
25336 2003-06-04  Paul Eggert  <eggert@twinsun.com>
25337
25338         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
25339         now, as glibc mktime is buggy on non-glibc systems.
25340
25341 2003-06-03  Karl Berry  <karl@gnu.org>
25342
25343         * config/config.sub: update from prep.
25344
25345 2003-06-02  Paul Eggert  <eggert@twinsun.com>
25346
25347         [from coreutils]
25348         Fix some minor time-related bugs with POSIX time arguments.
25349         Some valid time stamps were being rejected (notably -1, and
25350         time stamps before 1900 on 64-bit hosts).  And some invalid
25351         time stamps were being accepted, e.g. September 31.
25352
25353         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
25354         that we can return (time_t) -1 successfully.
25355         * lib/posixtm.c: Likewise.
25356         [HAVE_STDBOOL_H]: Include <stdbool.h>.
25357         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
25358         (t): Remove static var.
25359         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
25360         of static var.  All uses changed.
25361         (year): Do not reject years before 1900; they can occur with
25362         64-bit time_t.
25363         (posix_time_parse): Do not check for out-of-range components;
25364         that is now the caller's responsibility, since our checks were
25365         only approximations.
25366         (posixtime): Use mktime to check for out-of-range components,
25367         since it knows them exactly.
25368         If mktime returns (time_t) -1, check whether an error actually occurred
25369         by invoking localtime on -1.
25370         (main) [TEST_POSIXTIME]: Check for input data errors, and report
25371         posixtime failures better.
25372         Improve the test data (in comments only).
25373
25374 2003-06-02  Karl Berry  <karl@gnu.org>
25375
25376         * config/mkinstalldirs (version): new variable.
25377         (--version): new option.
25378         (usage): improve message.
25379
25380 2003-05-30  Karl Berry  <karl@gnu.org>
25381
25382         * lib/mktime.c: update from libc.
25383
25384 2003-05-30  Bruno Haible  <bruno@clisp.org>
25385
25386         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
25387         * config/config.rpath: Upgrade to gettext-0.12.1.
25388
25389 2003-05-30  Bruno Haible  <bruno@clisp.org>
25390
25391         * m4/gettext.m4: Upgrade to gettext-0.12.1.
25392         * m4/nls.m4: New file, from gettext-0.12.1.
25393         * m4/po.m4: New file, from gettext-0.12.1.
25394         * m4/progtest.m4: Upgrade to gettext-0.12.1.
25395
25396 2003-05-30  Bruno Haible  <bruno@clisp.org>
25397
25398         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
25399         * lib/localcharset.h: Likewise.
25400         * lib/localcharset.c: Likewise.
25401
25402 2003-05-29  Karl Berry  <karl@gnu.org>
25403
25404         * config/config.rpath: update from gettext.
25405
25406 2003-05-28  Paul Eggert  <eggert@twinsun.com>
25407
25408         Assume the headers required for C89 freestanding compilers.
25409         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
25410         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
25411         * m4/human.m4 (gl_HUMAN): Likewise.
25412         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
25413         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
25414         * m4/userspec.m4 (gl_USERSPEC): Likewise.
25415         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
25416         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25417         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
25418
25419 2003-05-28  Paul Eggert  <eggert@twinsun.com>
25420
25421         Assume the headers required for C89 freestanding compilers.
25422         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
25423         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
25424         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
25425         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
25426         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
25427         define, since <limits.h> is guaranteed to do that.
25428         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
25429         * lib/exclude.c: Include <stdbool.h> unconditionally.
25430         * lib/tempname.c: Include <stddef.h> unconditionally.
25431         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
25432         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
25433         <stddef.h> does that.
25434         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
25435         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
25436         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
25437         needed.
25438         * lib/xstrtol.c: Likewise.
25439         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
25440         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
25441
25442         * lib/addext.c (addext): Use assignment rather than cast, to avoid
25443         warnings on some platforms.
25444
25445         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25446         arbitrarily.
25447
25448 2003-05-26  Jim Meyering  <jim@meyering.net>
25449
25450         Merge in a change from coreutils:
25451         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
25452         that is guaranteed to be `no'.  Use `no_such_member' to indicate
25453         that condition, rather than `-1' which is slightly misleading.
25454         Change the name of the cache variable to have the gl_ prefix.
25455         Prompted by a patch from Richard Dawe for DJGPP.
25456
25457 2003-05-24  Karl Berry  <karl@gnu.org>
25458
25459         * config/config.guess: update from prep.
25460
25461 2003-05-22  Karl Berry  <karl@gnu.org>
25462
25463         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
25464
25465 2003-05-20  Karl Berry  <karl@gnu.org>
25466
25467         * config/config.guess: update from prep.
25468
25469 2003-05-18  Karl Berry  <karl@gnu.org>
25470
25471         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
25472         might actually be set by the user.
25473
25474         * config/depcomp, install-sh, mdate-sh: update from automake.
25475
25476 2003-05-17  Bruno Haible  <bruno@clisp.org>
25477
25478         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
25479         invalid expansion for AC_EGREP_CPP.
25480         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25481         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25482         Suggested by Akim Demaille <akim@epita.fr> in
25483         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
25484
25485 2003-05-12  Jim Meyering  <jim@meyering.net>
25486
25487         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
25488         the space-padded-by-default conversion specifiers, %e, %k, %l.
25489
25490 2003-05-12  Bruno Haible  <bruno@clisp.org>
25491
25492         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
25493         the string is longer than 4 KB.
25494
25495 2003-05-11  Karl Berry  <karl@gnu.org>
25496
25497         * config/config.{guess,sub}: update from prep.
25498
25499 2003-05-09  Bruno Haible  <bruno@clisp.org>
25500
25501         * modules/error: Add m4/strerror_r.m4 to file list.
25502
25503 2003-05-03  Bruno Haible  <bruno@clisp.org>
25504
25505         Upgrade to Unicode-4.0.
25506         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
25507         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
25508         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
25509         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
25510         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
25511         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
25512         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
25513         Change width of U+E0100..U+E01EF from 1 to 0.
25514
25515 2003-04-25  Jim Meyering  <jim@meyering.net>
25516
25517         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
25518         of type size_t, not int.
25519
25520 2003-04-25  Bruno Haible  <bruno@clisp.org>
25521
25522         * lib/copy-file.c: Include <stddef.h>, for size_t.
25523
25524 2003-04-21  Paul Eggert  <eggert@twinsun.com>
25525
25526         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
25527         code which expansion is under static control.  Patch imported from
25528         Akim Demaille's patch to Bison; see
25529         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
25530
25531 2003-04-14  Bruno Haible  <bruno@clisp.org>
25532
25533         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
25534
25535 2003-04-11  Jim Meyering  <jim@meyering.net>
25536
25537         Merge changes from Coreutils.
25538
25539         2003-03-22  Jim Meyering  <jim@meyering.net>
25540
25541         * lib/strftime.c (widen): Cast alloca return value to proper type.
25542
25543         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
25544
25545         From GNU libc.
25546         * lib/strftime.c (my_strftime): Handle very large width
25547         specifications for numeric values correctly.  Improve checks for
25548         overflow.
25549
25550         2003-01-19  Jim Meyering  <jim@meyering.net>
25551
25552         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
25553         definitions.
25554         (nl_get_alt_digit) [! defined my_strftime]: Define.
25555         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
25556         _nl_get_alt_digit and _nl_get_walt_digit.
25557
25558         * lib/strftime.c (my_strftime): Merge in locale-related changes from
25559         libc. These changes have no effect outside of _LIBC.
25560
25561 2003-04-10  Bruno Haible  <bruno@clisp.org>
25562
25563         * modules/findprog: New file.
25564         * MODULES.html.sh (func_all_modules): Add it.
25565
25566 2003-04-10  Bruno Haible  <bruno@clisp.org>
25567
25568         * m4/findprog.m4: New file.
25569         * m4/eaccess.m4: New file.
25570
25571 2003-04-10  Bruno Haible  <bruno@clisp.org>
25572
25573         * lib/findprog.h: New file, from GNU gettext.
25574         * lib/findprog.c: New file, from GNU gettext.
25575
25576 2003-04-05  Jim Meyering  <jim@meyering.net>
25577
25578         Merge changes from Coreutils.
25579
25580         * lib/exclude.h (PARAMS): Remove definition and uses.
25581         * lib/exclude.c: Remove uses of `PARAMS'.
25582
25583         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
25584         Add test-cases for DOS filenames. Declare program_name.
25585         (main): Set up program_name.  Patch by Rich Dawe.
25586
25587         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25588         error from mntctl.
25589         Use mntctl's return value to drive the entry-processing loop, since
25590         we can't rely on the value of the vmt_length member in the last
25591         entry.  On some systems doing so could result in exhausting
25592         virtual memory.  Based in part on a patch from Mike Jetzer.
25593
25594 2003-04-04  Bruno Haible  <bruno@clisp.org>
25595
25596         * modules/linebreak: New file.
25597         * MODULES.html.sh (func_all_modules): Add it.
25598
25599 2003-04-04  Bruno Haible  <bruno@clisp.org>
25600
25601         * m4/linebreak.m4: New file.
25602
25603 2003-04-04  Bruno Haible  <bruno@clisp.org>
25604
25605         * lib/linebreak.h: New file, from GNU gettext.
25606         * lib/linebreak.c: New file, from GNU gettext with slight
25607         modifications.
25608         * lib/lbrkprop.h: New file, from GNU gettext.
25609
25610 2003-04-03  Bruno Haible  <bruno@clisp.org>
25611
25612         * modules/utf8-ucs4: New file.
25613         * modules/utf16-ucs4: New file.
25614         * modules/ucs4-utf8: New file.
25615         * modules/ucs4-utf16: New file.
25616         * MODULES.html.sh (func_all_modules): Add them.
25617
25618 2003-04-03  Bruno Haible  <bruno@clisp.org>
25619
25620         * m4/utf-ucs4.m4: New file.
25621         * m4/ucs4-utf.m4: New file.
25622
25623 2003-04-03  Bruno Haible  <bruno@clisp.org>
25624
25625         * lib/utf8-ucs4.h: New file, from GNU gettext.
25626         * lib/utf16-ucs4.h: New file, from GNU gettext.
25627         * lib/ucs4-utf8.h: New file, from GNU gettext.
25628         * lib/ucs4-utf16.h: New file, from GNU gettext.
25629
25630 2003-04-02  Bruno Haible  <bruno@clisp.org>
25631
25632         * modules/binary-io: New file.
25633         * MODULES.html.sh (func_all_modules): Add it.
25634
25635 2003-04-02  Bruno Haible  <bruno@clisp.org>
25636
25637         * lib/binary-io.h: New file, from GNU gettext.
25638
25639 2003-04-01  Bruno Haible  <bruno@clisp.org>
25640
25641         * modules/pathname: New file.
25642         * MODULES.html.sh (func_all_modules): Add it.
25643
25644 2003-04-01  Bruno Haible  <bruno@clisp.org>
25645
25646         * lib/pathname.h: New file, from GNU gettext.
25647         * lib/concatpath.c: New file, from GNU gettext.
25648
25649 2003-03-30  Bruno Haible  <bruno@clisp.org>
25650
25651         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
25652
25653 2003-03-30  Bruno Haible  <bruno@clisp.org>
25654
25655         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
25656         function chown() doesn't exist.
25657
25658 2003-03-28  Bruno Haible  <bruno@clisp.org>
25659
25660         * modules/copy-file: New file.
25661         * MODULES.html.sh (func_all_modules): Add it.
25662
25663 2003-03-28  Bruno Haible  <bruno@clisp.org>
25664
25665         * m4/copy-file.m4: New file.
25666
25667 2003-03-28  Bruno Haible  <bruno@clisp.org>
25668
25669         * lib/copy-file.h: New file, from GNU gettext.
25670         * lib/copy-file.c: New file, from GNU gettext.
25671
25672 2003-03-18  Jim Meyering  <jim@meyering.net>
25673
25674         * lib/quote.c (quote_n): Fix typo in comment.
25675
25676 2003-03-18  Bruno Haible  <bruno@clisp.org>
25677
25678         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
25679         checking.
25680         * m4/onceonly_2_57.m4: Likewise.
25681
25682 2003-03-17  Bruno Haible  <bruno@clisp.org>
25683
25684         * m4/onceonly.m4: Require autoconf 2.54 or newer.
25685         (m4_quote): Remove macro.
25686         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
25687
25688 2003-03-14  Jim Meyering  <jim@meyering.net>
25689
25690         Merge changes from Coreutils.
25691         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
25692         to be const, in order to avoid warnings.
25693         (obstack_room): Likewise.
25694         (obstack_empty_p): Likewise.
25695
25696 2003-03-14  Bruno Haible  <bruno@clisp.org>
25697
25698         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
25699         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
25700
25701 2003-03-13  Paul Eggert  <eggert@twinsun.com>
25702
25703         Merge changes from Bison.
25704         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
25705         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
25706         when compiling Bison 1.875's `bitset bset = obstack_alloc
25707         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
25708         * lib/hash.c: Include <stdbool.h> unconditionally.
25709
25710 2003-03-13  Paul Eggert  <eggert@twinsun.com>
25711
25712         * m4/onceonly.m4 (m4_quote): New macro.
25713         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
25714         Quote AC_FOREACH variable-expansions properly.
25715
25716 2003-03-13  Paul Eggert  <eggert@twinsun.com>
25717
25718         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
25719
25720 2003-03-09  Paul Eggert  <eggert@twinsun.com>
25721
25722         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
25723         Reported by Bruce Becker; see:
25724         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
25725
25726 2003-03-03  Paul Eggert  <eggert@twinsun.com>
25727             Bruno Haible  <bruno@clisp.org>
25728
25729         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
25730         Reported by John Hughes, see
25731         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
25732
25733 2003-02-20  Bruno Haible  <bruno@clisp.org>
25734
25735         * MODULES.html.sh (func_all_modules): Add poll.
25736
25737 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
25738
25739         * modules/poll: New file.
25740
25741 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
25742
25743         * lib/poll_.h: New file.
25744         * lib/poll.c: New file.
25745
25746 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
25747
25748         * m4/poll.m4: New file.
25749
25750 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
25751
25752         * modules/mathl: New file.
25753
25754 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
25755
25756         * lib/mathl.h: New file.
25757         * lib/acosl.c: New file.
25758         * lib/asinl.c: New file.
25759         * lib/atanl.c: New file.
25760         * lib/ceill.c: New file.
25761         * lib/cosl.c: New file.
25762         * lib/expl.c: New file.
25763         * lib/floorl.c: New file.
25764         * lib/frexpl.c: New file.
25765         * lib/ldexpl.c: New file.
25766         * lib/logl.c: New file.
25767         * lib/sincosl.c: New file.
25768         * lib/sinl.c: New file.
25769         * lib/sqrtl.c: New file.
25770         * lib/tanl.c: New file.
25771         * lib/trigl.c: New file.
25772         * lib/trigl.h: New file.
25773
25774 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
25775
25776         * m4/mathl.m4: New file.
25777
25778 2003-02-18  Bruno Haible  <bruno@clisp.org>
25779
25780         * MODULES.html.sh (func_all_modules): Add mathl.
25781
25782 2003-02-17  Bruno Haible  <bruno@clisp.org>
25783
25784         * modules/mkdtemp: New module.
25785         * MODULES.html.sh (func_all_modules): Add it.
25786
25787 2003-02-17  Bruno Haible  <bruno@clisp.org>
25788
25789         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
25790
25791 2003-02-17  Bruno Haible  <bruno@clisp.org>
25792
25793         * lib/mkdtemp.h: New file, from GNU gettext.
25794         * lib/mkdtemp.c: New file, from GNU gettext.
25795
25796 2003-02-02  Jim Meyering  <jim@meyering.net>
25797
25798         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
25799         e.g. glibc-2.2.93.
25800
25801 2003-01-31  Bruno Haible  <bruno@clisp.org>
25802
25803         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
25804         'rpl_rename'.
25805         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
25806         'rpl_strnlen'.
25807         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
25808         'rpl_strtod'.
25809         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
25810         'rpl_utime'.
25811
25812 2003-01-31  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/rename.c: #undef rename before defining rpl_rename.
25815         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
25816
25817 2003-01-30  Bruno Haible  <bruno@clisp.org>
25818
25819         * modules/vasnprintf, modules/vasprintf: New modules.
25820         * MODULES.html.sh (func_all_modules): Add them.
25821
25822 2003-01-30  Bruno Haible  <bruno@clisp.org>
25823
25824         * m4/signed.m4: New file, from GNU gettext.
25825         * m4/longdouble.m4: New file, from GNU gettext.
25826         * m4/wchar_t.m4: New file, from GNU gettext.
25827         * m4/wint_t.m4: New file, from GNU gettext.
25828         * m4/vasnprintf.m4: New file.
25829         * m4/vasprintf.m4: New file.
25830
25831 2003-01-30  Bruno Haible  <bruno@clisp.org>
25832
25833         * lib/printf-args.h: New file, from GNU gettext.
25834         * lib/printf-args.c: New file, from GNU gettext.
25835         * lib/printf-parse.h: New file, from GNU gettext.
25836         * lib/printf-parse.c: New file, from GNU gettext.
25837         * lib/vasnprintf.h: New file, from GNU gettext.
25838         * lib/vasnprintf.c: New file, from GNU gettext.
25839         * lib/asnprintf.c: New file, from GNU gettext.
25840         * lib/vasprintf.h: New file, from GNU gettext with modifications.
25841         * lib/vasprintf.c: New file, from GNU gettext.
25842         * lib/asprintf.c: New file, from GNU gettext.
25843
25844 2003-01-29  Bruno Haible  <bruno@clisp.org>
25845
25846         * modules/stpncpy: New module.
25847         * MODULES.html.sh (func_all_modules): Add it.
25848
25849 2003-01-29  Bruno Haible  <bruno@clisp.org>
25850
25851         * m4/stpncpy.m4: New file.
25852
25853 2003-01-29  Bruno Haible  <bruno@clisp.org>
25854
25855         * lib/stpncpy.h: New file, from GNU gettext with modifications.
25856         * lib/stpncpy.c: New file, from GNU gettext with modifications.
25857
25858 2003-01-28  Bruno Haible  <bruno@clisp.org>
25859
25860         * modules/c-ctype: New module.
25861         * MODULES.html.sh (func_all_modules): Add it.
25862
25863 2003-01-28  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
25866         Paul Eggert.
25867         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
25868         Paul Eggert.
25869
25870 2003-01-27  Bruno Haible  <bruno@clisp.org>
25871
25872         * modules/xsetenv: New module.
25873         * MODULES.html.sh (func_all_modules): Add it.
25874
25875 2003-01-27  Bruno Haible  <bruno@clisp.org>
25876
25877         * lib/xsetenv.h: New file, from GNU gettext.
25878         * lib/xsetenv.c: New file, from GNU gettext.
25879
25880 2003-01-23  Jim Meyering  <jim@meyering.net>
25881
25882         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
25883         from working on systems without dirfd (at least Irix and OSF1/Tru64).
25884
25885 2003-01-23  Bruno Haible  <bruno@clisp.org>
25886
25887         * modules/minmax: New module.
25888         * MODULES.html.sh (func_all_modules): Add it.
25889
25890 2003-01-23  Bruno Haible  <bruno@clisp.org>
25891
25892         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
25893         Eggert.
25894
25895 2003-01-22  Bruno Haible  <bruno@clisp.org>
25896
25897         * modules/exit: New module.
25898         * MODULES.html.sh (func_all_modules): Add it.
25899
25900 2003-01-22  Bruno Haible  <bruno@clisp.org>
25901
25902         * lib/exit.h: New file, from GNU gettext.
25903
25904 2003-01-19  Bruno Haible  <bruno@clisp.org>
25905
25906         * gnulib-tool: Recognize option --extract-maintainer.
25907         (func_get_maintainer): New function.
25908         * modules/*: Add Maintainer entry.
25909
25910 2003-01-16  Jim Meyering  <jim@meyering.net>
25911
25912         * m4/regex.m4: The `regex' struct is both input and output.
25913         Initialize it before each use.  Patch by Tim Waugh.
25914
25915 2003-01-16  Bruno Haible  <bruno@clisp.org>
25916
25917         * MODULES.html.sh: Add a table of contents. Add the module name as
25918         leftmost column. Add hyperlinks.
25919
25920 2003-01-15  Bruno Haible  <bruno@clisp.org>
25921
25922         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
25923
25924 2003-01-15  Bruno Haible  <bruno@clisp.org>
25925
25926         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
25927         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
25928         suffix.
25929
25930 2003-01-15  Bruno Haible  <bruno@clisp.org>
25931
25932         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
25933
25934 2003-01-15  Bruno Haible  <bruno@clisp.org>
25935
25936         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
25937         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
25938
25939 2003-01-14  Jim Meyering  <jim@meyering.net>
25940
25941         * lib/same.c (same_name): Tweak a comment.
25942
25943 2003-01-14  Bruno Haible  <bruno@clisp.org>
25944
25945         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
25946         when a string comparison is sufficient.
25947
25948 2003-01-14  Bruno Haible  <bruno@clisp.org>
25949
25950         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
25951         'unsigned int'.
25952
25953 2003-01-14  Bruno Haible  <bruno@clisp.org>
25954
25955         * lib/hash-pjw.c: Add comment about low quality of this function.
25956
25957 2003-01-13  Bruno Haible  <bruno@clisp.org>
25958
25959         * modules/stpcpy: Distribute lib/stpcpy.h.
25960         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
25961
25962 2003-01-13  Bruno Haible  <bruno@clisp.org>
25963
25964         * modules/*: Add a description.
25965         * modules/strpbrk: Fix Makefile.am snippet.
25966         * modules/strtoimax: Fix dependencies.
25967         * modules/strtoumax: Likewise.
25968
25969 2003-01-13  Bruno Haible  <bruno@clisp.org>
25970
25971         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
25972         * modules/alloca (Makefile.am): All object files depend on alloca.h.
25973         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
25974
25975 2003-01-13  Bruno Haible  <bruno@clisp.org>
25976
25977         * gnulib-tool (func_create_testdir): Store config/* files in the main
25978         directory.
25979         * config.rpath: Move to ...
25980         * config/config.rpath: ... here.
25981         * modules/gettext: Contains config/config.rpath, not config.rpath.
25982         * modules/iconv: Likewise.
25983
25984 2003-01-12  Paul Eggert  <eggert@twinsun.com>
25985
25986         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
25987         to avoid collisions with libcurses and libreadline.
25988
25989         * m4/getstr.m4: Remove.
25990         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
25991
25992 2003-01-12  Paul Eggert  <eggert@twinsun.com>
25993
25994         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
25995         to avoid collisions with libcurses and libreadline.
25996
25997         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
25998         * lib/getstr.h, getstr.c: Remove.
25999         * lib/getline.c: Include "getline.h", to check interface.
26000         Move body of old getstr.c here: this defines MIN_CHUNK and
26001         declares getdelim2, which is renamed from getstr.
26002         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
26003
26004         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
26005         All uses changed.
26006         * lib/linebuffer.h: Likewise.
26007         (readline): Remove backward-compatibility macro.
26008
26009 2003-01-12  Paul Eggert  <eggert@twinsun.com>
26010
26011         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26012         to avoid collisions with libcurses and libreadline.
26013         * getstr: Remove.
26014         * MODULES.html.sh: Remove getstr.
26015         * modules/getline: Depend on unlocked-io, not getstr.
26016
26017 2003-01-12  Jim Meyering  <jim@meyering.net>
26018
26019         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
26020
26021 2003-01-10  Bruno Haible  <bruno@clisp.org>
26022
26023         * modules/alloca: Change Makefile.am requirements. Simplify Include
26024         requirements. Add lib/alloca_.h to file list.
26025
26026 2003-01-10  Bruno Haible  <bruno@clisp.org>
26027
26028         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
26029
26030 2003-01-10  Bruno Haible  <bruno@clisp.org>
26031
26032         * lib/alloca_.h: New file.
26033         * lib/getdate.y: Unconditionally include alloca.h.
26034         * lib/makepath.c: Likewise.
26035         * lib/setenv.c: Likewise.
26036         * lib/userspec.c: Likewise.
26037
26038 2003-01-09  Karl Berry  <karl@gnu.org>
26039
26040         * MODULES.html.sh: include `dirname $0` in PATH, to find
26041         gnulib-tool.
26042
26043 2003-01-09  Bruno Haible  <bruno@clisp.org>
26044
26045         * modules/stdbool: Change configure.ac, Makefile.am requirements.
26046         Simplify Include requirements. Add lib/stdbool.h.in to file list.
26047
26048 2003-01-09  Bruno Haible  <bruno@clisp.org>
26049
26050         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
26051
26052 2003-01-09  Bruno Haible  <bruno@clisp.org>
26053
26054         * lib/stdbool.h.in: New file.
26055
26056 2003-01-09  Bruno Haible  <bruno@clisp.org>
26057
26058         * gnulib-tool (func_all_modules): Ignore files ending in ~.
26059         * MODULES.html.sh: Likewise.
26060
26061 2003-01-08  Jim Meyering  <jim@meyering.net>
26062
26063         * lib/full-write.c: Undefine and define-away `const' after inclusion
26064         of errno.h, not before.  Suggestion from Bruno Haible.
26065
26066 2003-01-08  Bruno Haible  <bruno@clisp.org>
26067
26068         * modules/full-read: Depend on full-write.
26069
26070 2003-01-08  Bruno Haible  <bruno@clisp.org>
26071
26072         * lib/safe-read.c: Include specification header first, to ensure its
26073         selfcontainedness.
26074         * lib/full-write.c: Likewise.
26075
26076 2003-01-07  Jim Meyering  <jim@meyering.net>
26077
26078         * lib/full-write.c: Rework so that it may serve to define full_read,
26079         too.
26080         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
26081
26082 2003-01-07  Bruno Haible  <bruno@clisp.org>
26083
26084         * lib/strtoimax.c: Include <stdint.h> as an alternative to
26085         <inttypes.h>.
26086         * lib/xstrtol.h: Likewise.
26087         * lib/xstrtoimax.c: Likewise.
26088         * lib/xstrtoumax.c: Likewise.
26089         * lib/human.h: Likewise.
26090
26091         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
26092         on systems that have <inttypes.h> but not <stdint.h>.
26093
26094 2003-01-07  Bruno Haible  <bruno@clisp.org>
26095
26096         * MODULES.html.sh: Add copyright notice.
26097         (missed_files): Omit CVS directory entries.
26098         (func_module): Make it work with sed-3.02.
26099         * MODULES.txt: Remove file.
26100
26101 2003-01-06  Jim Meyering  <jim@meyering.net>
26102
26103         * lib/version-etc.c: Update year in translatable copyright string.
26104
26105 2003-01-03  Karl Berry  <karl@gnu.org>
26106
26107         * config/config.{guess,sub}: update from prep.
26108
26109 2003-01-02  Karl Berry  <karl@gnu.org>
26110
26111         * doc/COPYING.DOC: belatedly updated to 1.2.
26112
26113 2003-01-01  Karl Berry  <karl@gnu.org>
26114
26115         * gnulib-tool (func_verify_module): report module name $module in
26116         error message, not $1.
26117         * gnulib-tool (create-testdir): don't complain if destdir couldn't
26118         be created, only if it doesn't exist.
26119         * gnulib-tool (last_checkin_date): don't expand the $Date here.
26120
26121 2002-12-31  Paul Eggert  <eggert@twinsun.com>
26122
26123         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
26124
26125 2002-12-31  Paul Eggert  <eggert@twinsun.com>
26126
26127         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
26128         memcmp if strcoll doesn't work.
26129
26130 2002-12-31  Bruno Haible  <bruno@clisp.org>
26131
26132         * lib/utime.c (utime_null): No need to call ftruncate if the file was
26133         nonempty.
26134
26135 2002-12-31  Bruno Haible  <bruno@clisp.org>
26136
26137         * lib/memcoll.c (STRCOLL): New macro.
26138         (memcoll): Use it.
26139
26140 2002-12-31  Bruno Haible  <bruno@clisp.org>
26141
26142         * lib/localcharset.h: New file.
26143         * lib/localcharset.c: Include it.
26144         * lib/unicodeio.c: Likewise.
26145
26146 2002-12-31  Bruno Haible  <bruno@clisp.org>
26147
26148         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
26149         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
26150
26151 2002-12-31  Bruno Haible  <bruno@clisp.org>
26152
26153         * lib/getline.h: Include <stddef.h>, for size_t.
26154
26155         * lib/unicodeio.h: Include <stddef.h>, for size_t.
26156         * lib/unicodeio.c: Don't include <stddef.h>.
26157
26158 2002-12-31  Bruno Haible  <bruno@clisp.org>
26159
26160         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
26161         HAVE_TM_ZONE.
26162
26163 2002-12-24  Karl Berry  <karl@gnu.org>
26164
26165         * config/config.guess: update from prep.
26166
26167 2002-12-24  Bruno Haible  <bruno@clisp.org>
26168
26169         General infrasructure.
26170         * m4/README: Rewritten.
26171         * m4/onceonly.m4: New file.
26172         * m4/onceonly_2_57.m4: New file.
26173
26174         Module atexit.
26175         * m4/atexit.m4: New file.
26176
26177         Module strtod.
26178         * m4/strtod.m4: New file.
26179
26180         Module strtol.
26181         * m4/strtol.m4: New file.
26182
26183         Module strtoul.
26184         * m4/strtoul.m4: New file.
26185
26186         Module memchr.
26187         * m4/memchr.m4: New file.
26188
26189         Module memcmp.
26190         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
26191         (jm_FUNC_MEMCMP): Invoke it.
26192
26193         Module memcpy.
26194         * m4/memcpy.m4: New file.
26195
26196         Module memmove.
26197         * m4/memmove.m4: New file.
26198
26199         Module memset.
26200         * m4/memset.m4: New file.
26201
26202         Module strcspn.
26203         * m4/strcspn.m4: New file.
26204
26205         Module strpbrk.
26206         * m4/strpbrk.m4: New file.
26207
26208         Module strstr.
26209         * m4/strstr.m4: New file.
26210
26211         Module strerror.
26212         * m4/strerror.m4: New file.
26213
26214         Module mktime.
26215         * m4/mktime.m4: Renamed from jm-mktime.m4.
26216         (gl_PREREQ_MKTIME): New macro.
26217         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
26218
26219         Module malloc.
26220         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
26221         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
26222         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
26223
26224         Module realloc.
26225         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
26226         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
26227         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
26228
26229         Module strftime.
26230         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
26231         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
26232         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
26233         gl_TM_GMTOFF.
26234         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
26235
26236         Module xalloc.
26237         * m4/xalloc.m4: New file.
26238
26239         Module alloca.
26240         * m4/alloca.m4: New file.
26241
26242         Module putenv.
26243         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
26244         (jm_FUNC_PUTENV): Invoke it.
26245
26246         Module setenv.
26247         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
26248         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
26249         when invoked twice.
26250         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
26251         gt_FUNC_SETENV.
26252
26253         Module memrchr.
26254         * m4/memrchr.m4: New file.
26255
26256         Module stpcpy.
26257         * m4/stpcpy.m4: New file.
26258
26259         Module strcase.
26260         * m4/strcase.m4: New file.
26261
26262         Module strdup.
26263         * m4/strdup.m4: New file.
26264
26265         Module strnlen.
26266         * m4/strnlen.m4: New file.
26267
26268         Module strndup.
26269         * m4/strndup.m4: New file.
26270
26271         Module xstrtod.
26272         * m4/xstrtod.m4: New file.
26273
26274         Module xstrtol.
26275         * m4/xstrtol.m4: New file.
26276
26277         Module getdate.
26278         * m4/getdate.m4: New file.
26279
26280         Module unlocked-io.
26281         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
26282         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
26283         * m4/jm-glibc-io.m4n: Remove file.
26284
26285         Module long-options.
26286         * m4/long-options.m4: New file.
26287
26288         Module md5.
26289         * m4/md5.m4: New file.
26290
26291         Module sha.
26292         * m4/sha.m4: New file.
26293
26294         Module getstr.
26295         * m4/getstr.m4: New file.
26296
26297         Module getline.
26298         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
26299         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
26300         <sys/types.h>, for size_t. Use the function name gnu_getline, not
26301         simply getline. Infoke gl_PREREQ_GETLINE.
26302
26303         Module obstack.
26304         * m4/obstack.m4: New file.
26305
26306         Module hash.
26307         * m4/hash.m4: New file.
26308
26309         Module readtokens.
26310         * m4/readtokens.m4: New file.
26311
26312         Module strverscmp.
26313         * m4/strverscmp.m4: New file.
26314
26315         Module stdbool.
26316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
26317         OSF/1.
26318
26319         Module strtoll.
26320         * m4/strtoll.m4: New file.
26321
26322         Module strtoull.
26323         * m4/strtoull.m4: New file.
26324
26325         Module strtoimax.
26326         * m4/strtoimax.m4: New file.
26327
26328         Module strtoumax.
26329         * m4/strtoumax.m4: New file.
26330
26331         Module xstrtoimax.
26332         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
26333         jm_AC_PREREQ_XSTRTOIMAX.
26334         Moved the strtol prerequisites to strtol.m4.
26335         Moved the strtoll prerequisites to strtoll.m4.
26336         Moved the strtoimax prerequisites to strtoimax.m4.
26337
26338         Module xstrtoumax.
26339         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
26340         jm_AC_PREREQ_XSTRTOUMAX.
26341         Moved the strtoul prerequisites to strtoul.m4.
26342         Moved the strtoull prerequisites to strtoull.m4.
26343         Moved the strtoumax prerequisites to strtoumax.m4.
26344
26345         Module chown.
26346         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
26347         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
26348
26349         Module dup2.
26350         * m4/dup2.m4: New file.
26351
26352         Module ftruncate.
26353         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
26354         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
26355
26356         Module getgroups.
26357         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
26358         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
26359
26360         Module gettimeofday.
26361         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
26362         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
26363         gl_PREREQ_GETTIMEOFDAY.
26364
26365         Module mkdir.
26366         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
26367         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
26368
26369         Module mkstemp.
26370         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
26371         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
26372         jm_AC_TYPE_UINTMAX_T.
26373         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
26374
26375         Module stat.
26376         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
26377         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
26378
26379         Module lstat.
26380         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
26381         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
26382
26383         Module timespec.
26384         * m4/timespec.m4 (gl_TIMESPEC): New macro.
26385         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
26386         * m4/st_mtim.m4: Indentation.
26387
26388         Module nanosleep.
26389         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
26390         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
26391         gl_PREREQ_NANOSLEEP.
26392
26393         Module regex.
26394         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
26395         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
26396         (gl_REGEX): New macro.
26397
26398         Module rename.
26399         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
26400         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
26401
26402         Module rmdir.
26403         * m4/rmdir.m4: New file.
26404
26405         Module utime.
26406         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
26407         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
26408         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
26409
26410         Module dirname.
26411         * m4/dirname.m4: New file.
26412
26413         Module getopt.
26414         * m4/getopt.m4: New file.
26415
26416         Module unistd-safer.
26417         * m4/unistd-safer.m4: New file.
26418
26419         Module fnmatch.
26420         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
26421         declaration.
26422         (gl_PREREQ_FNMATCH_EXTRA): New macro.
26423         (gl_FUNC_FNMATCH_POSIX): New macro.
26424         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
26425         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
26426         simply fnmatch.
26427
26428         Module exclude.
26429         * m4/exclude.m4: New file.
26430
26431         Module human.
26432         * m4/human.m4: New file.
26433
26434         Module acl.
26435         * m4/acl.m4: Nop.
26436
26437         Module backupfile.
26438         * m4/backupfile.m4: New file.
26439         * m4/d-ino.m4: Indentation.
26440
26441         Module fsusage.
26442         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
26443         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
26444         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
26445
26446         Module dirfd.
26447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
26448         requirements.
26449
26450         Module euidaccess.
26451         * m4/euidaccess.m4: New file.
26452
26453         Module file-type.
26454         * m4/file-type.m4: New file.
26455
26456         Module fileblocks.
26457         * m4/fileblocks.m4: New file.
26458
26459         Module filemode.
26460         * m4/filemode.m4: New file.
26461
26462         Module isdir.
26463         * m4/isdir.m4: New file.
26464
26465         Module lchown.
26466         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
26467         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
26468
26469         Module makepath.
26470         * m4/makepath.m4: New file.
26471
26472         Module modechange.
26473         * m4/modechange.m4: New file.
26474
26475         Module mountlist.
26476         * m4/mountlist.m4: New file.
26477         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
26478         Indentation.
26479
26480         Module path-concat.
26481         * m4/path-concat.m4: New file.
26482
26483         Module pathmax.
26484         * m4/pathmax.m4: New file.
26485
26486         Module same.
26487         * m4/same.m4: New file.
26488
26489         Module save-cwd.
26490         * m4/save-cwd.m4: New file.
26491
26492         Module savedir.
26493         * m4/savedir.m4: New file.
26494
26495         Module xgetcwd.
26496         * m4/xgetcwd.m4: New file.
26497         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
26498
26499         Module xreadlink.
26500         * m4/xreadlink.m4: New file.
26501
26502         Module safe-read.
26503         * m4/safe-read.m4: New file.
26504
26505         Module safe-write.
26506         * m4/safe-write.m4: New file.
26507
26508         Module closeout.
26509         * m4/closeout.m4: New file.
26510
26511         Module stdio-safer.
26512         * m4/stdio-safer.m4: New file.
26513
26514         Module getpass.
26515         * m4/getpass.m4: New file.
26516
26517         Module getugroups.
26518         * m4/getugroups.m4: New file.
26519
26520         Module group-member.
26521         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
26522         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
26523
26524         Module idcache.
26525         * m4/idcache.m4: New file.
26526
26527         Module userspec.
26528         * m4/userspec.m4: New file.
26529
26530         Module gettime.
26531         * m4/clock_time.m4: New file.
26532         * m4/gettime.m4: New file.
26533
26534         Module settime.
26535         * m4/settime.m4: New file.
26536
26537         Module posixtm.
26538         * m4/posixtm.m4: New file.
26539
26540         Module gethostname.
26541         * m4/gethostname.m4: New file.
26542
26543         Module canon-host.
26544         * m4/canon-host.m4: New file.
26545
26546         Module gettext.
26547         * m4/codeset.m4: New file, from gettext-0.11.5.
26548         * m4/gettext.m4: New file, from gettext-0.11.5.
26549         * m4/glibc21.m4: New file, from gettext-0.11.5.
26550         * m4/iconv.m4: New file, from gettext-0.11.5.
26551         * m4/intdiv0.m4: New file, from gettext-0.11.5.
26552         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
26553         * m4/inttypes.m4: New file, from gettext-0.11.5.
26554         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
26555         * m4/isc-posix.m4: New file, from gettext-0.11.5.
26556         * m4/lcmessage.m4: New file, from gettext-0.11.5.
26557         * m4/lib-ld.m4: New file, from gettext-0.11.5.
26558         * m4/lib-link.m4: New file, from gettext-0.11.5.
26559         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
26560         * m4/progtest.m4: New file, from gettext-0.11.5.
26561         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
26562         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
26563         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
26564
26565         Module localcharset.
26566         * m4/localcharset.m4: New file.
26567
26568         Module hard-locale.
26569         * m4/hard-locale.m4: New file.
26570
26571         Module mbswidth.
26572         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
26573         onceonly macros.
26574         * m4/mbrtowc.m4: Add comment.
26575
26576         Module memcasecmp.
26577         * m4/memcasecmp.m4: New file.
26578
26579         Module memcoll.
26580         * m4/memcoll.m4: New file.
26581
26582         Module unicodeio.
26583         * m4/unicodeio.m4: New file.
26584
26585         Module rpmatch.
26586         * m4/rpmatch.m4: New file.
26587
26588         Module yesno.
26589         * m4/yesno.m4: New file.
26590
26591         Module exitfail.
26592         * m4/exitfail.m4: New file.
26593
26594         Module c-stack.
26595         * m4/c-stack.m4 (gl_C_STACK): New macro.
26596         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
26597
26598         Module error.
26599         * m4/error.m4 (gl_ERROR): New macro.
26600         (jm_PREREQ_ERROR): Use onceonly macros.
26601
26602         Module fatal.
26603         * m4/fatal.m4: New file.
26604
26605         Module getloadavg.
26606         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
26607         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
26608
26609         Module getpagesize.
26610         * m4/getpagesize.m4: New file.
26611
26612         Module getusershell.
26613         * m4/getusershell.m4: New file.
26614
26615         Module physmem.
26616         * m4/physmem.m4: New file.
26617
26618         Module posixver.
26619         * m4/posixver.m4: New file.
26620
26621         Module quotearg.
26622         * m4/quotearg.m4: New file.
26623
26624         Module quote.
26625         * m4/quote.m4: New file.
26626
26627         Module readutmp.
26628         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
26629
26630         Module sig2str.
26631         * m4/sig2str.m4: New file.
26632
26633         Other.
26634         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
26635         ulonglong.m4.
26636         * m4/intmax_t.m4: New file.
26637         * m4/d-type.m4: Indentation.
26638         * m4/jm-macros.m4: Update.
26639         * m4/prereq.m4 (jm_PREREQ): Update.
26640         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
26641         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
26642         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
26643         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
26644         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
26645         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
26646         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
26647         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
26648         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
26649         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
26650         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
26651         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
26652         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
26653         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
26654         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
26655         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
26656         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
26657         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
26658         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
26659
26660 2002-12-24  Bruno Haible  <bruno@clisp.org>
26661
26662         * MODULES.txt: Update according to m4/ changes.
26663
26664         Module gettext.
26665         * config.rpath: New file, from gettext-0.11.5.
26666
26667         * modules/*: New module descriptions.
26668         * gnulib-tool: New file.
26669         * MODULES.html.sh: New file.
26670
26671 2002-12-21  Karl Berry  <karl@gnu.org>
26672
26673         * doc/fdl.texi: update to version 1.2.
26674
26675 2002-12-19  Karl Berry  <karl@gnu.org>
26676
26677         * config/config.guess: update from prep.
26678
26679 2002-12-18  Bruno Haible  <bruno@clisp.org>
26680
26681         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
26682         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
26683
26684 2002-12-17  Bruno Haible  <bruno@clisp.org>
26685
26686         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
26687         stdlib.h, string.h.
26688
26689 2002-12-17  Bruno Haible  <bruno@clisp.org>
26690
26691         * lib/canon-host.c (strdup): Remove unused declaration.
26692
26693         * lib/fsusage.c: Include full_read.h.
26694         (get_fs_usage): Use full_read instead of safe_read.
26695
26696         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
26697
26698 2002-12-12  Karl Berry  <karl@gnu.org>
26699
26700         * config/config.guess: update from prep.
26701
26702 2002-12-11  Bruno Haible  <bruno@clisp.org>
26703
26704         * m4/setenv.m4: New file, from gettext-0.11.5.
26705
26706 2002-12-11  Bruno Haible  <bruno@clisp.org>
26707
26708         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
26709         not unsetenv().
26710         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
26711         modifications:
26712
26713         2002-12-11  Bruno Haible  <bruno@clisp.org>
26714
26715                 * setenv.c (alloca): Fall back to malloc.
26716                 (freea): New macro.
26717                 (setenv): Use freea() to free memory allocated with alloca().
26718
26719         2002-11-13  Bruno Haible  <bruno@clisp.org>
26720
26721                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
26722                 function declarations.
26723                 * unsetenv.c (unsetenv): Likewise.
26724
26725         2002-03-04  Bruno Haible  <bruno@clisp.org>
26726
26727                 Portability to AIX 4.3.3.
26728                 * unsetenv.c: New file, extracted from setenv.c.
26729                 * setenv.c: Move the unsetenv() function to unsetenv.c.
26730
26731         2001-12-20  Bruno Haible  <bruno@clisp.org>
26732
26733                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
26734                 use malloc instead. For SunOS 4.
26735
26736         2001-12-11  Bruno Haible  <bruno@clisp.org>
26737
26738                 * setenv.c: Declare alloca.
26739                 (compar_fn_t): New typedef.
26740                 (KNOWN_VALUE, STORE_VALUE): Use it.
26741
26742         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
26743         setenv.h.
26744
26745 2002-12-10  Paul Eggert  <eggert@twinsun.com>
26746
26747         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
26748         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
26749         Choose values that are less likely to collide with system fnmatch
26750         options.
26751         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
26752         defined (e.g., a pure POSIX system).
26753         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
26754         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
26755
26756 2002-12-06  Paul Eggert  <eggert@twinsun.com>
26757
26758         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
26759         a pain in practice to deal with generated m4 files.  This change
26760         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
26761
26762         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
26763         and jm-glibc-io.m4, as they are no longer a special case.
26764         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
26765         kludge and the auto-generation stuff.  Check only whether the
26766         functions are declared, not whether they exist, since older hosts
26767         that don't declare the functions can't use the optimization anyway.
26768
26769 2002-12-06  Jim Meyering  <jim@meyering.net>
26770
26771         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
26772
26773         Merge in changes from libc's misc/error.c, in preparation
26774         for the merge of gnulib's changes back into libc.
26775
26776         * lib/error.c (_): Define only if not already defined.
26777         Move definition to follow all #include directives.
26778         Include unlocked-io.h only if !_LIBC.
26779         [_LIBC]: Include <libio/libioP.h>.
26780         [USE_IN_LIBIO]: Include <libio/iolibio.h>
26781         (fflush): Tweak definition to use INTUSE.
26782         (putc): Define.
26783
26784 2002-12-05  Paul Eggert  <eggert@twinsun.com>
26785
26786         * lib/alloca.c [defined emacs]: Include "lisp.h".
26787         (xalloc_die) [defined emacs]: New macro.
26788         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
26789         [! defined emacs]: Include <xalloc.h>.
26790         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
26791         (pointer): Typedef to POINTER_TYPE *.
26792         (malloc): Remove decl; we now always use xmalloc.
26793         (alloca): Use old-style definition, since Emacs needs this.
26794         Check for arithmetic overflow when computing combined size.
26795
26796 2002-12-04  Paul Eggert  <eggert@twinsun.com>
26797
26798         Do not generate unlocked-io.h automatically, since it's easier to
26799         maintain it by hand.
26800
26801         * lib/unlocked-io.h: New file, from GNU diffutils,
26802         but with proper copyright notice and attribution.
26803         * lib/gen-uio: Remove.
26804         * lib/Makefile.am: Add copyright notice.
26805         (libfetish_a_SOURCES): Add unlocked-io.h.
26806         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
26807         (DISTCLEANFILES, io_functions): Remove macros.
26808         (EXTRA_DIST): Remove gen_uio.
26809         (unlocked-io.h): Remove rule.
26810
26811 2002-12-04  Jim Meyering  <jim@meyering.net>
26812
26813         Reflect the fact that stat.c and lstat.c are no longer generated.
26814         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
26815         (DISTCLEANFILES): Likewise.
26816         (EXTRA_DIST): Likewise.
26817         (all_local): Don't depend on stat.c or lstat.c.
26818         (stat.c, lstat.c): Remove rules.
26819         (EXTRA_DIST): Remove xstat.in.
26820
26821         * lib/xstat.in: Remove file.  Contents moved into stat.c.
26822         * lib/stat.c: New file.  Contents mostly from xstat.in.
26823         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
26824         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
26825
26826         * lib/safe-read.c: Rework so that it may serve to define safe_write,
26827         too.
26828         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
26829
26830 2002-12-03  Jim Meyering  <jim@meyering.net>
26831
26832         * lib/safe-read.c, safe-write.c: Change variable names and comments,
26833         but not semantics, to minimize the differences between these two files.
26834         (safe_read): Change comment to mention SAFE_READ_ERROR.
26835
26836         * lib/safe-read.c (IS_EINTR): Define.
26837         (safe_read): Use IS_EINTR in place of in-function cpp directives.
26838
26839 2002-12-02  Jim Meyering  <jim@meyering.net>
26840
26841         * lib/safe-read.c (EINTR): Define.
26842         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
26843         (INT_MAX): Provide fallback.
26844         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
26845
26846         * lib/safe-read.h (SAFE_READ_ERROR): Define.
26847
26848 2002-12-02  Bruno Haible  <bruno@clisp.org>
26849
26850         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
26851         Define, taken from safe-read.c.
26852         (INT_MAX): Provide fallback.
26853         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
26854         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
26855
26856         * lib/safe-read.c (EINTR): Remove definition.
26857         (safe_read): Don't use EINTR if it is absent.
26858
26859 2002-12-01  Jim Meyering  <jim@meyering.net>
26860
26861         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
26862         zero.
26863         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
26864
26865 2002-11-27  Paul Eggert  <eggert@twinsun.com>
26866
26867         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
26868         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
26869         with `if (! (value < limit)) abort ();', for readability.
26870
26871 2002-11-26  Karl Berry  <karl@gnu.org>
26872
26873         * lib/strdup.c: copy from libc again, with jim's ok.
26874         * lib/.cppi-disable: re-add strdup.c
26875
26876 2002-11-25  Karl Berry  <karl@gnu.org>
26877
26878         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
26879         instead of "strtol.c".
26880
26881 2002-11-25  Karl Berry  <karl@gnu.org>
26882
26883         * config/install-sh: update from automake for variable quoting, $0 in
26884         error msgs, etc.
26885
26886         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
26887         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
26888         entry.
26889
26890 2002-11-25  Jim Meyering  <jim@meyering.net>
26891
26892         * lib/mktime.c: Sync from libc, now that it has the latest fix.
26893
26894 2002-11-24  Karl Berry  <karl@gnu.org>
26895
26896         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
26897         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
26898
26899 2002-11-24  Jim Meyering  <jim@meyering.net>
26900
26901         Update from coreutils:
26902
26903         * lib/mktime.c: Merge in changes from libc.
26904
26905         Avoid a link-time failure on some Linux systems.
26906         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
26907         (otherwise).
26908         (__mon_yday): Declare with the STATIC attribute.
26909         (__mktime_internal): Likewise.
26910         Based on a report from Greg Schafer.
26911
26912 2002-11-23  Jim Meyering  <jim@meyering.net>
26913
26914         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
26915         Use `unsigned', not `int', as type of index.
26916
26917         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
26918
26919         * lib/fsusage.c: Remove unneeded parentheses around operands of
26920         `defined'.
26921
26922 2002-11-22  Paul Eggert  <eggert@twinsun.com>
26923
26924         * lib/quotearg.h: Allow multiple inclusion by surrounding with
26925         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
26926         so that we can be included first.
26927         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
26928         * lib/quotearg.c: Include quotearg.h immediately after config.h.
26929         No need to include stddef.h or sys/types.h any more.
26930         Surround local include files with "", not "<>".
26931         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
26932         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
26933         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
26934         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
26935         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
26936         (ISPRINT): Remove; no longer needed now that we assume C89.
26937
26938         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
26939         Preserve errno.
26940
26941         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
26942         quotearg_char): Use SIZE_MAX rather than
26943         (size_t) -1 when we are talking about "infinity".
26944
26945         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
26946
26947 2002-11-22  Paul Eggert  <eggert@twinsun.com>
26948
26949         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
26950         hint that one should use `if (! x) abort ();' rather than `assert
26951         (x);', and anyway it's one less thing to worry about configuring.
26952         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
26953         hash_rehash, hash_insert): Use abort rather than assert.
26954
26955 2002-11-22  Bruno Haible  <bruno@clisp.org>
26956
26957         * lib/safe-read.h: Assume C89. Add comments.
26958         (safe_read): Change return type to size_t.
26959         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
26960         byte counts > SSIZE_MAX correctly.
26961         * lib/safe-write.h: New file.
26962         * lib/safe-write.c: New file.
26963         * lib/full-read.h: New file.
26964         * lib/full-read.c: New file.
26965         * lib/full-write.h: Assume C89. Add comments.
26966         * lib/full-write.c: Include safe-write.h.
26967         (full_write): Rewritten to use safe_write.
26968         Suggested by Jim Meyering and Paul Eggert.
26969
26970 2002-11-21  Jim Meyering  <jim@meyering.net>
26971
26972         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
26973
26974         Merge in changes from the coreutils.
26975
26976         2002-09-25  Paul Eggert  <eggert@twinsun.com>
26977         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
26978         <stdint.h>.
26979         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
26980         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
26981         int.  Work more efficiently if X is the same width as uintmax_t.
26982         Do not compare X to -1, to avoid bogus compiler warning.
26983         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
26984         Don't assume that f_frsize and f_bsize are the same type.
26985
26986         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
26987         warning on FreeBSD.
26988
26989         * lib/makepath.c (make_path): Restore umask *before* creating the final
26990         component.
26991         (make_path): Minor reformatting.
26992
26993         * lib/xmalloc.c: Adjust to work with new autoconf macros,
26994         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
26995         HAVE_MALLOC/HAVE_REALLOC.
26996
26997         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
26998         dummy ones.  At least on GNU/Linux systems, `auto' means something
26999         else.
27000         From Michael Stone.
27001
27002 2002-11-21  Bruno Haible  <bruno@clisp.org>
27003
27004         Remove case insensitive option matching.
27005         * lib/argmatch.h (argcasematch): Remove declaration.
27006         (ARGCASEMATCH): Remove macro.
27007         (__xargmatch_internal): Remove case_sensitive argument.
27008         (XARGMATCH): Update.
27009         (XARGCASEMATCH): Remove macro.
27010         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
27011         case_sensitive argument.
27012         (argcasematch): Remove function.
27013         (__xargmatch_internal): Remove case_sensitive argument.
27014         (main): Use XARGMATCH instead of XARGCASEMATCH.
27015
27016         * lib/xmalloc.c: Change compile-time error message. Add comment about
27017         required autoconf version.
27018
27019 2002-11-20  Paul Eggert  <eggert@twinsun.com>
27020
27021         Merge argmatch cleanups from Bison.  Assume C89.
27022
27023         * lib/argmatch.c: Include config.h here, not in argmatch.h.
27024         Include stdlib.h, for EXIT_FAILURE.
27025         Always include <string.h>, since we assume C89.
27026         (EXIT_FAILURE): Remove pre-C89 bug workaround.
27027         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
27028         Include <stddef.h> instead, since it's all we need for size_t.
27029         (PARAMS): Remove.  All uses removed.
27030         (ARRAY_CARDINALITY): Do not bother to #undef.
27031         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
27032         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
27033         Remove unnecessary parentheses.
27034         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
27035         Insert necessary parentheses.
27036         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
27037         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
27038
27039 2002-11-19  Bruno Haible  <bruno@clisp.org>
27040
27041         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
27042         * lib/mbswidth.h: Include <stddef.h>, for size_t.
27043
27044         * lib/mbswidth.h (PARAMS): Remove macro.
27045         (mbswidth, mbsnwidth): Use ANSI C function declarations.
27046         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
27047
27048         * lib/gcd.h (PARAMS): Remove macro.
27049         (gcd): Use ANSI C function declarations.
27050         * lib/gcd.c (gcd): Likewise.
27051
27052 2002-11-15  Bruno Haible  <bruno@clisp.org>
27053
27054         * lib/strcspn.c: Include <stddef.h>.
27055         (strcspn): Use ANSI C function declaration. Change return type to
27056         size_t. Use NULL.
27057         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
27058         (strpbrk): Use NULL.
27059         * lib/strpbrk.h (PARAMS): Remove macro.
27060         (strpbrk): Use ANSI C function declaration.
27061         * lib/strstr.c: Don't include <sys/types.h>.
27062         * lib/strstr.h (PARAMS): Remove macro.
27063         (strstr): Use ANSI C function declarations.
27064
27065 2002-11-14  Karl Berry  <karl@gnu.org>
27066
27067         * config/mkinstalldirs: `do' on separate line, instead of
27068         `for var; do'.
27069
27070 2002-11-06  Bruno Haible  <bruno@clisp.org>
27071
27072         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
27073         * lib/gcd.c (gcd): Likewise.
27074
27075 2002-11-05  Bruno Haible  <bruno@clisp.org>
27076
27077         * lib/gcd.h: New file, from gettext-0.11.5.
27078         * lib/gcd.c: New file, from gettext-0.11.5.
27079
27080 2002-11-05  Bruno Haible  <bruno@clisp.org>
27081
27082         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27083         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27084         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27085         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27086
27087         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
27088         <libintl.h>.
27089         * lib/makepath.c: Include gettext.h instead of <locale.h> and
27090         <libintl.h>.
27091
27092         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
27093         * lib/human.c: Include gettext.h instead of <libintl.h>.
27094         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
27095         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
27096         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
27097         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
27098         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
27099         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
27100         (textdomain): Remove definition.
27101         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
27102
27103         * lib/long-options.c: Remove include of <libintl.h> and definition of
27104         _.
27105         * lib/same.c: Remove include of <libintl.h> and definition of _.
27106
27107 2002-11-04  Owen Taylor  <otaylor@redhat.com>
27108
27109         * lib/config.charset: A few additions for Solaris.
27110
27111 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
27112
27113         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
27114         * lib/localcharset.c (locale_charset): Declare as extern "C".
27115
27116 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
27117
27118         * lib/config.charset: msdos in uk_UA uses CP1125.
27119
27120 2002-11-04  Bruno Haible  <bruno@clisp.org>
27121
27122         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
27123         * lib/strcase.h: New file, from GNU gettext-0.11.5.
27124         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
27125         * lib/strstr.h: New file, from GNU gettext-0.11.5.
27126         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
27127
27128 2002-11-04  Bruno Haible  <bruno@clisp.org>
27129
27130         * lib/localcharset.c (locale_charset): Don't return an empty string.
27131
27132 2002-11-04  Bruno Haible  <bruno@clisp.org>
27133
27134         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
27135         aliases.
27136
27137 2002-11-04  Bruno Haible  <bruno@clisp.org>
27138
27139         * lib/config.charset: Update for newest glibc. Add canonical names
27140         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
27141
27142 2002-11-04  Bruno Haible  <bruno@clisp.org>
27143
27144         * lib/config.charset: Add support for NetBSD.
27145
27146 2002-11-04  Bruno Haible  <bruno@clisp.org>
27147
27148         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
27149
27150 2002-11-01  Bruno Haible  <bruno@clisp.org>
27151
27152         * configure.in: Add AC_CONFIG_AUX_DIR call.
27153         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
27154         test/Makefile.
27155         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
27156
27157 2002-09-28  Karl Berry  <karl@gnu.org>
27158
27159         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
27160         installed automake until the next release, since changes have been
27161         made.
27162
27163 2002-09-25  Karl Berry  <karl@gnu.org>
27164
27165         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
27166         * lib/getopt*: copy from libc/posix.
27167         * lib/gettext.h: copy from gettext.
27168         * lib/.cppi-disable: add strdup.c, gettext.h.
27169
27170 2002-09-25  Karl Berry  <karl@gnu.org>
27171
27172         * config/srclist.txt: enable gettext.h check.
27173         * config/config.{guess,sub}: update from prep.
27174         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
27175                 from automake 1.6.3.
27176         See srclist*.
27177
27178 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
27179
27180         * regex.c (PATFETCH): Remove the translating fetch.
27181         (PATFETCH_RAW): Rename to PATFETCH.
27182         (set_image_of_range): New fun.
27183         (SET_RANGE_TABLE_WORK_AREA): Use it.
27184         (regex_compile): Don't translate the pattern chars so eagerly.
27185         Only do it when inserting an `exactn' bytecode or when handling
27186         a char-range.
27187         (mutually_exclusive_p): Avoid empty statement.
27188
27189 2002-07-06  Jim Meyering  <meyering@lucent.com>
27190
27191         * m4/README: Don't mention Makefile.am.in.
27192         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
27193
27194 2002-07-01  Jim Meyering  <meyering@lucent.com>
27195
27196         * lib/c-stack.c: Include sys/time.h.
27197         From Volker Borchert.
27198
27199 2002-06-26  Paul Eggert  <eggert@twinsun.com>
27200
27201         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
27202
27203 2002-06-26  Paul Eggert  <eggert@twinsun.com>
27204
27205         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
27206         New macro.  Use it uniformly instead of
27207         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
27208         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
27209         reported by Vin Shelton.
27210
27211 2002-06-22  Paul Eggert  <eggert@twinsun.com>
27212
27213         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
27214         Do not assume SA_SIGINFO behavior.
27215         Bug reported by Jim Meyering on NetBSD 1.5.2.
27216
27217 2002-06-22  Jim Meyering  <meyering@lucent.com>
27218
27219         * m4/c-stack.m4: New file, from diffutils-2.8.2.
27220         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
27221
27222         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
27223         now that configure.ac uses AC_GNU_SOURCE.
27224         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
27225         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
27226
27227         Update to latest tools.  Suggestions from Paul Eggert.
27228         * m4/stdbool.m4: New file, from diffutils-2.8.2.
27229         * m4/gnu-source.m4: Update from diffutils-2.8.2.
27230         * m4/fnmatch.m4: Likewise.
27231         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
27232         to AC_HEADER_STDBOOL
27233
27234 2002-06-22  Jim Meyering  <meyering@lucent.com>
27235
27236         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
27237         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
27238
27239 2002-06-22  Jim Meyering  <meyering@lucent.com>
27240
27241         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
27242
27243         * lib/exitfail.c, exitfail.h: Likewise.
27244         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
27245
27246         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
27247         of fnmatch.h.
27248         (EXTRA_DIST): Add fnmatch_loop.c.
27249         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
27250
27251         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
27252         * lib/fnmatch.c: Update from diffutils-2.8.2.
27253         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
27254         * lib/fnmatch.h: Remove file.
27255
27256 2002-06-21  Jim Meyering  <meyering@lucent.com>
27257
27258         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
27259         * m4/mbrtowc.m4: Likewise.
27260
27261         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
27262         * m4/mbswidth.m4: Reflect name change:
27263         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
27264         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27265
27266         * m4/lib-link.m4: Update from gettext-0.11.2.
27267         * m4/gettext.m4: Likewise.
27268
27269         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
27270         From Alfred M. Szmidt.
27271
27272 2002-06-18  Paul Eggert  <eggert@twinsun.com>
27273
27274         * lib/file-type.h: Report an error if neither S_ISREG nor
27275         S_IFREG is defined, instead of using a test specific to glibc
27276         2.2.  This should be safe, since POSIX requires S_ISREG and
27277         Unix Version 7 had S_IFREG.  We don't need to check for
27278         <sys/types.h> since we don't use any symbols that it defines.
27279
27280 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
27281
27282         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
27283         $@-t, so that each temporary file name is unique and valid in the first
27284         8 characters, for operation under DOS.
27285
27286 2002-06-15  Paul Eggert  <eggert@twinsun.com>
27287
27288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
27289
27290 2002-06-15  Jim Meyering  <meyering@lucent.com>
27291
27292         Work even with DJGPP 2.03, which lacks support for symlinks.
27293         From Richard Dawe.
27294         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
27295         is defined.
27296         * lib/lchown.c (S_ISLNK): Likewise.
27297
27298 2002-06-15  Jim Meyering  <meyering@lucent.com>
27299
27300         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
27301         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
27302         have been included before this file.
27303
27304 2002-06-14  Jim Meyering  <meyering@lucent.com>
27305
27306         * lib/file-type.h: Use the version from diffutils-2.8.2.
27307         * lib/file-type.c: Likewise.
27308
27309 2002-06-07  Jim Meyering  <meyering@lucent.com>
27310
27311         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
27312         They're needed at least for NetBSD 1.5.2.
27313         ($statxfs_includes): Include those same headers.
27314         ($statxfs_includes): Include sys/vfs.h if available.
27315         ($statxfs_includes): Likewise for sys/statvfs.h.
27316         Check for the following members in both structs statfs and statvfs:
27317         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
27318
27319 2002-06-01  Jim Meyering  <meyering@lucent.com>
27320
27321         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
27322         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
27323
27324 2002-05-28  Jim Meyering  <meyering@lucent.com>
27325
27326         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
27327         Reported by Volker Borchert.
27328
27329 2002-05-27  Jim Meyering  <meyering@lucent.com>
27330
27331         Fix a problem seen only on nonconforming systems whereby ls.c's
27332         use of localtime, and then of gettimeofday would cause trouble:
27333         the localtime call used to initialize rpl_gettimeofday's save
27334         mechanism would clobber ls's current local time information so
27335         that in any long listing the first file would always be listed
27336         with date 1970-01-01.  Analysis by Volker Borchert.
27337
27338         * lib/gettimeofday.c (localtime): Undefine.
27339         (rpl_localtime): New function.
27340
27341 2002-05-27  Jim Meyering  <meyering@lucent.com>
27342
27343         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
27344         localtime.
27345
27346         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
27347         use the replacement function; it wouldn't resolve at link time.
27348         Reported by Volker Borchert.
27349
27350 2002-05-22  Jim Meyering  <meyering@lucent.com>
27351
27352         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
27353         file-type.h.
27354         * lib/file-type.h: New file.
27355         * lib/file-type.c (file_type): New file/function.  Extracted from
27356         diffutils.
27357
27358 2002-04-30  Jim Meyering  <meyering@lucent.com>
27359
27360         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
27361
27362 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27363
27364         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
27365
27366 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27367
27368         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
27369         Do not check for alloca.h (no longer used) or stdbool.h (was never
27370         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
27371
27372 2002-04-29  Paul Eggert  <eggert@twinsun.com>
27373
27374         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
27375
27376 2002-04-29  Jim Meyering  <meyering@lucent.com>
27377
27378         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
27379         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
27380         Use AC_FUNC_STRNLEN here instead.
27381
27382         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
27383         With autoconf-2.53a, it's part of AC_PROG_CC.
27384
27385 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27386
27387         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
27388         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
27389
27390 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27391
27392         * lib/sig2str.h, lib/sig2str.c: New files.
27393         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
27394
27395 2002-04-28  Paul Eggert  <eggert@twinsun.com>
27396
27397         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
27398         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
27399         of 127, since 64 is the largest conceivable number for ancient
27400         nonstandard hosts.
27401         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
27402
27403 2002-04-28  Jim Meyering  <meyering@lucent.com>
27404
27405         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
27406
27407 2002-04-24  Jim Meyering  <meyering@lucent.com>
27408
27409         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
27410         (jm_PREREQ): Use it.
27411
27412         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
27413         mach/mach.h fcntl.h.
27414         Check for this function: setlocale.
27415
27416 2002-04-24  Jim Meyering  <meyering@lucent.com>
27417
27418         * lib/gettext.h: New file, from Gettext.
27419         * lib/Makefile.am (INCLUDES): Remove -I../intl.
27420         (libfetish_a_SOURCES): Add gettext.h.
27421
27422 2002-04-16  Jim Meyering  <meyering@lucent.com>
27423
27424         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
27425         ut_pid, ut_id, ut_exit.
27426
27427 2002-04-16  Jim Meyering  <meyering@lucent.com>
27428
27429         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
27430         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
27431         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
27432
27433 2002-04-12  Jim Meyering  <meyering@lucent.com>
27434
27435         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
27436         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
27437         existence of the getmntinfo function.  Needed for Darwin 5.3.
27438
27439         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
27440         This is necessary at least on Darwin 5.3.
27441
27442         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
27443         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
27444         strnlen.o in the library, and that makes some versions of ranlib
27445         object.
27446
27447 2002-04-12  Jim Meyering  <meyering@lucent.com>
27448
27449         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
27450
27451 2002-04-09  Jim Meyering  <meyering@lucent.com>
27452
27453         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
27454         to be more precise.  Rather than saying we're checking whether the
27455         function `works', say what we're testing.
27456         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
27457         Reported by Bruno Haible.
27458
27459 2002-03-10  Jim Meyering  <meyering@lucent.com>
27460
27461         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
27462         Suggestion from Santiago Vila.
27463
27464 2002-03-08  Jim Meyering  <meyering@lucent.com>
27465
27466         * lib/rename.c: Mention that this wrapper is needed also on
27467         mips-dec-ultrix4.4 systems.
27468
27469 2002-03-02  Jim Meyering  <meyering@lucent.com>
27470
27471         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
27472         not HAVE_CLOCK_SETTIME.
27473
27474 2002-02-27  Paul Eggert  <eggert@twinsun.com>
27475
27476         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
27477         Check for clock_settime.
27478
27479 2002-02-27  Paul Eggert  <eggert@twinsun.com>
27480
27481         * lib/nanosleep.h: Rename to....
27482         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
27483
27484         * lib/gettime.c: New file.
27485         * lib/settime.c: New file.
27486         * lib/stime.c: Remove.
27487
27488         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
27489         timespec.h.  Remove nanosleep.h.
27490
27491 2002-02-25  Paul Eggert  <eggert@twinsun.com>
27492
27493         * m4/acl.m4: New file.
27494         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
27495         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
27496
27497 2002-02-25  Paul Eggert  <eggert@twinsun.com>
27498
27499         * lib/acl.c, lib/acl.h: New files.
27500         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
27501
27502 2002-02-24  Jim Meyering  <meyering@lucent.com>
27503
27504         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
27505         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
27506         cause trouble.  Reported by Nelson Beebe.
27507
27508 2002-02-23  Paul Eggert  <eggert@twinsun.com>
27509
27510         * lib/path-concat.c (xpath_concat): Reorder code to pacify
27511         compilers that don't know that xalloc_die never returns.
27512
27513 2002-02-20  Jim Meyering  <meyering@lucent.com>
27514
27515         * lib/getdate.c: Regenerate using bison-1.33.
27516
27517 2002-02-17  Jim Meyering  <meyering@lucent.com>
27518
27519         * config/config.guess (main): Don't use `head -1'; it's no longer
27520         portable. Use `sed 1q' instead.
27521
27522 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
27523
27524         * m4/codeset.m4: Upgrade to gettext-0.11.
27525         * m4/gettext.m4: Upgrade to gettext-0.11.
27526         * m4/glibc21.m4: Upgrade to gettext-0.11.
27527         * m4/iconv.m4: Upgrade to gettext-0.11.
27528         * m4/isc-posix.m4: Upgrade to gettext-0.11.
27529         * m4/lcmessage.m4: Upgrade to gettext-0.11.
27530         * m4/lib-ld.m4: New file, from gettext-0.11.
27531         * m4/lib-link.m4: New file, from gettext-0.11.
27532         * m4/lib-prefix.m4: New file, from gettext-0.11.
27533         * m4/progtest.m4: Upgrade to gettext-0.11.
27534
27535 2002-02-15  Paul Eggert  <eggert@twinsun.com>
27536
27537         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
27538         (jm_PREREQ): Use it.
27539
27540 2002-02-15  Paul Eggert  <eggert@twinsun.com>
27541
27542         * lib/posixver.c, lib/posixver.h: New files.
27543         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27544
27545 2002-02-02  Paul Eggert  <eggert@twinsun.com>
27546             Bruno Haible  <bruno@clisp.org>
27547
27548         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
27549         (fwrite_success_callback): New declaration.
27550         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
27551         print_unicode_char. Call failure callback instead of error.
27552         (fwrite_success_callback): New function.
27553         (exit_failure_callback): New function.
27554         (fallback_failure_callback): New function.
27555         (print_unicode_char): Call unicode_to_mb.
27556
27557 2002-01-26  Jim Meyering  <meyering@lucent.com>
27558
27559         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
27560         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
27561
27562 2002-01-26  Jim Meyering  <meyering@lucent.com>
27563
27564         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
27565
27566 2002-01-22  Paul Eggert  <eggert@twinsun.com>
27567
27568         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
27569
27570 2002-01-22  Jim Meyering  <meyering@lucent.com>
27571
27572         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
27573         Otherwise, some versions of automake would omit the rule that makes
27574         Makefile from Makefile.in.
27575
27576 2002-01-21  Paul Eggert  <eggert@twinsun.com>
27577
27578         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
27579         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27580         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
27581         (memcoll): Set errno to zero if there is no error.
27582
27583         * lib/quotearg.c (quotearg_buffer_restyled):
27584         Fix bug with quoting buffers containing NUL when backslashing escapes.
27585         This bug was exposed by the other changes in this patch.
27586         (quotearg_n_options): New arg ARGSIZE.
27587         All callers changed.
27588         (quoting_options_from_style): New function.
27589         (quotearg_n_style): Use it.
27590         (quotearg_n_style_mem): New function.
27591
27592         * lib/quotearg.h (quotearg_n_style_mem): New function.
27593
27594 2002-01-19  Jim Meyering  <meyering@lucent.com>
27595
27596         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
27597         Remove useless quotes: DF_PROG="df".
27598         * m4/strnlen.m4: New file.
27599
27600 2002-01-16  Paul Eggert  <eggert@twinsun.com>
27601
27602         * lib/backupfile.c (ISDIGIT): Comment fix.
27603         * lib/getdate.y (ISDIGIT): Likewise.
27604         * lib/posixtm.c (ISDIGIT, year): Likewise.
27605         * lib/strverscmp.c (ISDIGIT): Likewise.
27606         * lib/userspec.c (ISDIGIT): Likewise.
27607
27608 2002-01-16  Jim Meyering  <meyering@lucent.com>
27609
27610         * lib/getdate.y: Add three semicolons, each just before a closing
27611         brace. Bison (as of version 1.31) no longer papers over that mistake.
27612
27613 2002-01-05  Jim Meyering  <meyering@lucent.com>
27614
27615         * lib/version-etc.c (version_etc_copyright): Update copyright year.
27616
27617 2001-12-19  Paul Eggert  <eggert@twinsun.com>
27618
27619         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
27620         not silently exit merely because the output buffer happens to
27621         have nothing pending.
27622
27623 2001-12-18  Paul Eggert  <eggert@twinsun.com>
27624
27625         See the big note in ../ChangeLog.
27626         * lib/human.c (suffixes): Prefer K to k for 1024.
27627         (generate_suffix_backwards): New function.
27628         (human_readable_inexact): Use it.
27629         * lib/xstrtol.c (__xstrtol): If there is no number but there
27630         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
27631         Accept 'K' as well as 'k'.
27632
27633 2001-12-15  Jim Meyering  <meyering@lucent.com>
27634
27635         * lib/regex.h (__restrict_arr): Update from libc.
27636
27637         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
27638         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
27639         (STREQ): Define.
27640
27641 2001-12-14  Jim Meyering  <meyering@lucent.com>
27642
27643         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
27644         Suggestion from Bruno Haible.
27645
27646 2001-12-10  Jim Meyering  <meyering@lucent.com>
27647
27648         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
27649         xrealloc, Instead, include "xalloc.h".
27650         (initbuffer): Don't cast xmalloc return value to char*.
27651         (readline): Reword comment.
27652         Don't cast xrealloc return value to char*
27653         Return NULL, not 0.
27654
27655 2001-12-09  Jim Meyering  <meyering@lucent.com>
27656
27657         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
27658         about `signed and unsigned type in conditional expression'.
27659         * lib/posixtm.c (posix_time_parse): Likewise.
27660
27661         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
27662
27663         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
27664         to avoid a pedantic warning.
27665
27666         * lib/getstr.c: Don't include assert.h.
27667         (getstr): Remove warning-evoking assertions.
27668         Return -1 if offset parameter is out of bounds.
27669         Change the type of a local from int to size_t.
27670
27671         * lib/strftime.c (my_strftime_localtime_r): Include this function
27672         definition in the `#if ! HAVE_TM_GMTOFF' block.
27673
27674         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
27675         Include xalloc.h instead.
27676
27677 2001-12-02  Jim Meyering  <meyering@lucent.com>
27678
27679         * lib/tempname.c: Don't declare getenv, thus reverting the change of
27680         2001-11-18.  It's no longer necessary, now that stdlib.h is always
27681         included.
27682
27683         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
27684         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
27685
27686 2001-11-30  Akim Demaille  <akim@epita.fr>
27687
27688         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
27689         before being defined.
27690
27691 2001-11-27  Paul Eggert  <eggert@twinsun.com>
27692
27693         * lib/quotearg.h (quotearg_n, quotearg_n_style):
27694         First arg is int, not unsigned.
27695         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
27696         (SIZE_MAX, UINT_MAX): New macros.
27697         (quotearg_n_options): Abort if N is negative.
27698         Avoid overflow check on hosts where size_t is 64 bits and int
27699         is 32 bits, as overflow is impossible there.
27700         Fix off-by-one typo that caused unnecessary reallocation.
27701
27702 2001-11-27  Jim Meyering  <meyering@lucent.com>
27703
27704         * lib/tempname.c: Merge with version from libc.
27705         * lib/regex.c: Likewise.
27706
27707         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
27708         systems for which STDC_HEADERS is 0, it was not included, resulting in
27709         a warning about an integer-to-pointer conversion problem with getenv.
27710         Reported by Volker Borchert.
27711
27712 2001-11-26  Jim Meyering  <meyering@lucent.com>
27713
27714         * lib/gtod.h: Remove file.
27715         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
27716         * lib/gettimeofday.c: Don't include gtod.h.
27717         (GTOD_init): Remove function.
27718         (rpl_gettimeofday): Do its job here instead, rather than aborting.
27719         Suggestion from Volker Borchert.
27720
27721 2001-11-23  Jim Meyering  <meyering@lucent.com>
27722
27723         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
27724         it.
27725         * lib/hash.c (struct hash_table): Define it here instead.
27726
27727 2001-11-22  Jim Meyering  <meyering@lucent.com>
27728
27729         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
27730
27731 2001-11-20  Jim Meyering  <meyering@lucent.com>
27732
27733         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
27734         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
27735
27736 2001-11-19  Jim Meyering  <meyering@lucent.com>
27737
27738         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
27739         directory.  Use "conftestXXXXXX" as the template.
27740         Suggestion from Paul Eggert.
27741
27742         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
27743         immediately, so the test doesn't mistakenly hit the max-open-files
27744         limit.
27745
27746 2001-11-18  Paul Eggert  <eggert@twinsun.com>
27747
27748         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
27749         (TEMPORARIES): New macro.
27750         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
27751         removes an artificial limitation (e.g. HP-UX 10.20, where
27752         TMP_MAX is 17576).
27753
27754 2001-11-18  Jim Meyering  <meyering@lucent.com>
27755
27756         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
27757
27758 2001-11-18  Jim Meyering  <meyering@lucent.com>
27759
27760         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
27761         on SunOS 4.
27762
27763         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
27764         files will be created before anything else.
27765
27766 2001-11-17  Paul Eggert  <eggert@twinsun.com>
27767
27768         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
27769         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
27770
27771 2001-11-17  Jim Meyering  <meyering@lucent.com>
27772
27773         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
27774         Prompted by a report from Bob Proulx.
27775
27776         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
27777         Instead, require UTILS_FUNC_MKSTEMP.
27778
27779 2001-11-17  Jim Meyering  <meyering@lucent.com>
27780
27781         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
27782         Now, that's done as part of AC_FUNC_STRTOD.
27783
27784 2001-11-17  Jim Meyering  <meyering@lucent.com>
27785
27786         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
27787         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
27788         rather than group writable.  Patch by Juan F. Codagnone.
27789
27790         * lib/readtokens.c: Remove explicit declarations of xmalloc and
27791         xrealloc, Instead, include "xalloc.h".
27792
27793         * lib/mountlist.c: Include unlocked-io.h after all system headers.
27794         Remove explicit declarations of xmalloc, xrealloc,
27795         and xstrdup.  Instead, include "xalloc.h".
27796
27797         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
27798         unlocked-io.h.
27799         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
27800         Likewise.
27801         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
27802
27803         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
27804         Reported by Padraig Brady.
27805
27806         * lib/mkstemp.c: #undef mkstemp.
27807         Include config.h.
27808         (rpl_mkstemp): Rename from mkstemp.
27809         Protoize.
27810
27811 2001-11-16  Jim Meyering  <meyering@lucent.com>
27812
27813         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
27814         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
27815         determine the amount of total physical memory, use pstat_getstatic.
27816         HPUX-11 doesn't define _SC_PHYS_PAGES.
27817         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
27818         If sysconf couldn't be used to determine the amount of available
27819         physical memory, use both pstat_getstatic and pstat_getdynamic.
27820         Based on a patch from Bob Proulx.
27821
27822 2001-11-10  Jim Meyering  <meyering@lucent.com>
27823
27824         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
27825         (jm_PREREQ): Use it.
27826
27827 2001-11-09  Jim Meyering  <meyering@lucent.com>
27828
27829         * m4/jm-macros.m4: Require autoconf-2.52f.
27830         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
27831         Use these AC_-prefixed names, not the AM_-prefixed ones.
27832
27833         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
27834
27835 2001-11-05  Jim Meyering  <meyering@lucent.com>
27836
27837         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
27838
27839 2001-11-04  Jim Meyering  <meyering@lucent.com>
27840
27841         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
27842         $DEFS.
27843
27844 2001-11-03  Jim Meyering  <meyering@lucent.com>
27845
27846         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
27847         of AC_DEFUN.
27848
27849         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
27850         know the name of the variable in the macro definition.
27851
27852 2001-11-03  Jim Meyering  <meyering@lucent.com>
27853
27854         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
27855         in argmatch_to_argument call.
27856
27857         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
27858         argument.
27859
27860         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
27861         e.g., a fault due to an attempt to free a NULL pointer.
27862
27863 2001-11-01  Jim Meyering  <meyering@lucent.com>
27864
27865         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
27866         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
27867
27868 2001-11-01  Jim Meyering  <meyering@lucent.com>
27869
27870         * lib/dirfd.c, lib/dirfd.h: New files.
27871         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
27872
27873         * lib/hash.c (hash_print) [TESTING]: Clean up.
27874
27875 2001-10-22  Paul Eggert  <eggert@twinsun.com>
27876
27877         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
27878         to avoid a warning if -Wall.
27879
27880 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
27881
27882         * README: New file
27883         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
27884         (per RMS's instructions, this is now the canonical source)
27885         * lgpl/, gpl/: New directories.
27886
27887 2001-10-21  Paul Eggert  <eggert@twinsun.com>
27888
27889         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
27890
27891 2001-10-21  Jim Meyering  <meyering@lucent.com>
27892
27893         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
27894         this code would end up calling gettext even in packages built
27895         with --disable-nls.
27896         * lib/getopt.c (_): Likewise.
27897         * lib/regex.c (_): Likewise.
27898
27899 2001-10-20  Paul Eggert  <eggert@twinsun.com>
27900
27901         * m4/error.m4 (jm_PREREQ_ERROR):
27902         Do not invoke AC_CHECK_FUNCS with strerror_r, as
27903         AC_FUNC_STRERROR_R does that.
27904         Check for strerror declaration.
27905
27906         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
27907         are supposed to have them these days.
27908         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
27909         Merge changes from latest Autoconf CVS.
27910         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
27911         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
27912         POSIX decided to standardize on the int flavor of strerror_r.
27913
27914 2001-10-20  Paul Eggert  <eggert@twinsun.com>
27915
27916         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
27917         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
27918         Use strerror_r that is only a macro, even if it is not a function.
27919         (strerror): Check for HAVE_DECL_STRERROR before declaring.
27920         (private_strerror): Use prototypes, not old-style function definition.
27921         (print_errno_message): New function.
27922         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
27923         char*-flavored one.
27924         (error_tail, error, error_at_line): Use it.
27925
27926 2001-10-11  Jim Meyering  <meyering@lucent.com>
27927
27928         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
27929         and quote_n (1, ... to avoid clobbering a buffer.
27930
27931 2001-10-05  Jim Meyering  <meyering@lucent.com>
27932
27933         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
27934         hash-pjw.h.
27935         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
27936         * lib/hash-pjw.h: New file.
27937
27938 2001-09-30  Jim Meyering  <meyering@lucent.com>
27939
27940         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
27941         `struct fsstat' has the `f_fstypename' member.
27942         Use that to define FS_TYPE, which is now used to make
27943         the getfsstat link test tighter.
27944
27945 2001-09-30  Jim Meyering  <meyering@lucent.com>
27946
27947         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
27948         Include <sys/ucred.h>, for Apple Darwin.
27949         Include sys/mount.h and sys/fs_types.h only if available.
27950         (FS_TYPE): Define.
27951         (read_filesystem_list): Use FS_TYPE.
27952
27953 2001-09-29  Paul Eggert  <eggert@twinsun.com>
27954
27955         * lib/exclude.c (excluded_filename): 0 -> false, since it's
27956         a boolean context.
27957
27958 2001-09-29  Jim Meyering  <meyering@lucent.com>
27959
27960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
27961         [one-argument getmntent function]): Include stdio.h before mntent.h.
27962         SunOS 4.1.x needs it for the declaration of `FILE'.
27963         Patch by Volker Borchert.
27964
27965         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
27966         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
27967         sys/fs_types.h, and make the link-test for getfsstat guard #include
27968         directives with appropriate #if HAVE_*_H tests so that we can
27969         detect getfsstat on Apple Darwin1.3.7 systems.
27970         Reported by Nelson Beebe.
27971         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
27972
27973 2001-09-28  Paul Eggert  <eggert@twinsun.com>
27974
27975         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
27976         #defines strtoimax.  Also treat the other strto* functions
27977         like strtoimax.
27978
27979         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
27980         Check for strtoul and strtoumax,
27981         as those declarations are made even in the signed case.
27982         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
27983         Likewise, for strtol and strtoimax.
27984
27985 2001-09-28  Paul Eggert  <eggert@twinsun.com>
27986
27987         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
27988         #defines strtoimax.  Also treat the other strto* functions
27989         like strtoimax.
27990
27991         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
27992         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
27993         (strtoimax, strtoumax): Do not declare if already defined as a macro.
27994
27995 2001-09-26  Jim Meyering  <meyering@lucent.com>
27996
27997         Most macros in unlocked-io.h had the wrong number of arguments.
27998         * lib/gen-uio: New script.
27999         (USE_UNLOCKED_IO): Define to 1 if not already defined.
28000         * lib/unlocked-io.hin: Remove file.
28001         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
28002         rather than trying to embed it here.
28003         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
28004         Reported by Padraig Brady.
28005
28006 2001-09-25  Volker Borchert  <bt@teknon.de>
28007
28008         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
28009         `result'.
28010
28011 2001-09-24  Jim Meyering  <meyering@lucent.com>
28012
28013         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
28014
28015 2001-09-23  Jim Meyering  <meyering@lucent.com>
28016
28017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
28018         instead of the mere test for existence of mntent.h.  The latter
28019         would get a false-positive on AIX 3.4 systems.
28020         In the outer getmntent if-block, don't die if neither of the getmntent
28021         tests succeeds.  Instead, just fall through and continue with the
28022         remaining tests.
28023
28024 2001-09-23  Jim Meyering  <meyering@lucent.com>
28025
28026         * lib/mountlist.c: Remove useless parentheses in #if directives.
28027         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
28028         the deprecated MOUNTED symbol is no longer defined in mntent.h.
28029
28030 2001-09-22  Jim Meyering  <meyering@lucent.com>
28031
28032         * m4/gettext.m4: New file.  From gettext.
28033         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
28034         * m4/progtest.m4: Likewise
28035         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
28036         * m4/glibc21.m4: Likewise.
28037
28038         * m4/libintl.m4: Remove.  No longer used.
28039
28040 2001-09-22  Jim Meyering  <meyering@lucent.com>
28041
28042         * lib/localcharset.c: Update from latest gettext.
28043         * lib/config.charset: Likewise.
28044
28045 2001-09-20  Jim Meyering  <meyering@lucent.com>
28046
28047         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
28048         strtoimax.
28049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
28050         strtoumax.
28051
28052 2001-09-20  Jim Meyering  <meyering@lucent.com>
28053
28054         * lib/xstrtol.c (strtoimax): Guard declaration with
28055         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
28056         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
28057         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
28058         (strtoumax): Likewise, for completeness (it wasn't necessary).
28059
28060 2001-09-17  Paul Eggert  <eggert@twinsun.com>
28061
28062         * lib/strtoimax.c (HAVE_LONG_LONG):
28063         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
28064         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
28065         to work around bug in IBM C compiler.
28066
28067 2001-09-17  Jim Meyering  <meyering@lucent.com>
28068
28069         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
28070         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
28071         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
28072         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
28073         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
28074         whenever the right hand side need not be expanded by the shell.
28075
28076 2001-09-16  Paul Eggert  <eggert@twinsun.com>
28077
28078         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
28079         library.  It's not correct, as some older glibcs are buggy.
28080         fnmatch wasn't fixed until glibc 2.2.
28081
28082         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
28083         special shell magic here.
28084
28085 2001-09-16  Jim Meyering  <meyering@lucent.com>
28086
28087         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
28088         * m4/jm-macros.m4: Require it.
28089
28090 2001-09-16  Jim Meyering  <meyering@lucent.com>
28091
28092         * lib/mkdir.c: New file.
28093
28094 2001-09-15  Jim Meyering  <meyering@lucent.com>
28095
28096         * m4/jm-macros.m4: Check for help2man.
28097
28098 2001-09-11  Jim Meyering  <meyering@lucent.com>
28099
28100         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
28101         The body, by Paul Eggert, was moved here from configure.in.
28102         * m4/jm-macros.m4: Require UTILS_HOST_OS.
28103
28104 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28105
28106         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
28107         (jm_PREREQ): Use it.
28108
28109 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28110
28111         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
28112         Use ssize_t, not int, to store result of readlink.
28113         Check for ssize_t overflow as well as size_t overflow,
28114         as POSIX says the result of readlink is implementation-defined
28115         when ssize_t overflows.
28116         Remove unnecessary cast to char*.
28117         Use free+malloc instead of realloc, as the storage doesn't need
28118         to be preserved and it's clearer and can be more efficient that way.
28119         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
28120         * lib/xreadlink.h (xreadlink): Update prototype.
28121
28122 2001-09-04  Paul Eggert  <eggert@twinsun.com>
28123
28124         * lib/xgetcwd.c: Revert some of the previous change; intead,
28125         fix the HAVE_GETCWD_NULL code to behave more like the
28126         !HAVE_GETCWD_NULL code used to.
28127
28128         Include "xalloc.h".
28129         (xgetcwd): Do not return NULL when memory is exhausted; instead,
28130         invoke xalloc_die.
28131
28132 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28133
28134         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
28135         sys/param.h, as pathmax.h includes them.
28136
28137 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28138
28139         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
28140         (jm_PREREQ_XGETCWD): New macro.
28141
28142         * m4/getcwd.m4: New file.
28143
28144 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28145
28146         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
28147         like the HAVE_GETCWD_NULL code.
28148         Include pathmax.h if not HAVE_GETCWD.
28149         Do not include xalloc.h.
28150         (INITIAL_BUFFER_SIZE): New symbol.
28151         Do not use xmalloc / xrealloc, since the caller is responsible for
28152         handling errors.  Preserve errno around `free' during failure.
28153         Do not overrun buffer when using getwd.
28154
28155 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28156
28157         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
28158         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
28159         getcwd (NULL, 0).
28160
28161 2001-09-03  Paul Eggert  <eggert@twinsun.com>
28162
28163         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
28164         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
28165         spotted by Jim Meyering.
28166
28167 2001-09-03  Jim Meyering  <meyering@lucent.com>
28168
28169         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
28170         failure.
28171
28172 2001-09-02  Jim Meyering  <meyering@lucent.com>
28173
28174         * lib/error.c: Update from GNU libc.
28175
28176 2001-09-01  Jim Meyering  <meyering@lucent.com>
28177
28178         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
28179         Used by df.
28180
28181 2001-09-01  Jim Meyering  <meyering@lucent.com>
28182
28183         * lib/xreadlink.c: New file.
28184         * lib/xreadlink.h: New file.
28185         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
28186         xreadlink.h.
28187
28188         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
28189         doesn't conflict with sparc Solaris 7's definition in
28190         /usr/include/sys/int_types.h.
28191
28192         * lib/exclude.c: Use `""', not `<>' to #include non-system header
28193         files.
28194         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
28195         and strncasecmp as r-values.  Unixware didn't have declarations.
28196
28197 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28198
28199         * lib/xstrtol.h: Add copyright notice.
28200         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
28201         LONGINT_INVALID_SUFFIX_CHAR.
28202
28203 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28204
28205         * lib/xstrtol.c (strtoimax): New decl.
28206
28207 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28208
28209         * lib/xgetcwd.c: Don't include pathmax.h.
28210         Include stdlib.h and unistd.h if available.
28211         Include xalloc.h.
28212         (xmalloc, xstrdup, free): Remove decls.
28213         (xgetcwd): Don't assume sizes fit in unsigned.
28214         Check for overflow when computing sizes.
28215         Simplify reallocation code.
28216
28217 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28218
28219         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
28220         a directory's st_size can have an arbitrary value, so the old
28221         usage could waste an arbitrary amount of memory.  All uses
28222         changed.
28223         * lib/savedir.h: Update prototype.
28224
28225 2001-08-31  Paul Eggert  <eggert@twinsun.com>
28226
28227         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
28228
28229         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
28230         old strtoimax.c.
28231
28232         Also, make the following further changes to make this file's
28233         configuration more similar to that of strtol.c:
28234         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
28235         (strtoumax, uintmax_t, strtoull, strtol): Remove.
28236         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
28237         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
28238         changed to signed values.
28239
28240         And make the following changes as well:
28241         Fix copyright notice, as 1999 was missing.
28242         (verify): New macro.
28243         (strtoimax): Check sizes at compile-time, not run-time.
28244         Prefer strtol to strtoll if both work.
28245         (main): Remove; it was not that useful and was a pain to maintain.
28246
28247         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
28248
28249 2001-08-31  Jim Meyering  <meyering@lucent.com>
28250
28251         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
28252         Use an initial, malloc'd, buffer of length 128 rather than
28253         a statically allocated one of length 1024.
28254
28255 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28256
28257         Simplify code, partly by assuming autoconf 2.52 semantics.
28258
28259         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
28260
28261         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
28262         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
28263         All uses removed.
28264         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
28265         Move AC_REQUIRE to next-to-top level, to avoid confusion.
28266         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
28267         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
28268         jm_AC_HEADER_INTTYPES_H.
28269         * m4/jm-macros.m4 (jm_MACROS): Likewise.
28270
28271         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
28272
28273         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28274         Quote first arg of AC_DEFUN.
28275         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
28276         since they are needed to parse the include file even if we need
28277         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
28278         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
28279         but with opposite signedness.
28280
28281 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28282
28283         Merge 'exclude' changes from tar 1.13.22.
28284         This fixes one or two unlikely storage allocation overflow bugs,
28285         but doesn't change user-visible behavior otherwise.
28286
28287 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28288
28289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
28290         (jm_PREREQ_EXCLUDE): New macro.
28291
28292 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28293
28294         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
28295         tm to be declared.
28296
28297 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28298
28299         * lib/hash.c: Remove '2001' from copyright notice.
28300
28301 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28302
28303         * lib/full-write.h: New file.
28304         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
28305         * lib/full-write.c: Correct credits, as cccp.c no longer
28306         exists and anyway it was so heavily changed from the old cccp
28307         code as to be unrecognizable.  Include full-write.h.
28308         (full_write) Return size_t, with short writes meaning failure.
28309         All callers changed.  This fixes a bug with large buffers
28310         on 64-bit hosts.
28311         * lib/utime.c: Include full-write.h.
28312
28313 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28314
28315         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
28316         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
28317         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
28318         Include if available.
28319         (<xalloc.h>): Include
28320         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
28321         (verify): New macro.  Use it to verify that EXCLUDE macros do not
28322         collide with FNM macros.
28323         (struct patopts): New struct.
28324         (struct exclude): Use it, as exclude patterns now come with options.
28325         (new_exclude): Support above changes.
28326         (new_exclude, add_exclude_file):
28327         Initial size must now be a power of two to simplify overflow checking.
28328         (free_exclude, fnmatch_no_wildcards): New function.
28329         (excluded_filename): No longer requires options arg, as the options
28330         are determined by add_exclude.  Now returns bool, not int.
28331         (excluded_filename, add_exclude):
28332         Add support for the fancy new exclusion options.
28333         (add_exclude, add_exclude_file): Now takes int options arg.
28334         Check for arithmetic overflow when computing sizes.
28335         (add_exclude_file): xrealloc might modify errno, so don't
28336         realloc until after errno might be used.
28337
28338         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
28339         New macros.
28340         (free_exclude): New decl.
28341         (add_exclude, add_exclude_file): Now takes int options arg.
28342         (excluded_filename): No longer requires options arg, as the options
28343         are determined by add_exclude.  Now returns bool, not int.
28344
28345 2001-08-30  Paul Eggert  <eggert@twinsun.com>
28346
28347         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
28348
28349 2001-08-27  Jim Meyering  <meyering@lucent.com>
28350
28351         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
28352
28353         * lib/version-etc.c (N_): Remove definition.
28354         Revert most of last change.
28355         Instead, simply don't mark the `Copyright...' string for translation.
28356         Based on advice from Paul Eggert.
28357
28358         * lib/strtoxmax.c: Tweak comment.
28359
28360 2001-08-26  Jim Meyering  <meyering@lucent.com>
28361
28362         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
28363
28364         * m4/xstrtoimax.m4: New file.
28365         * m4/xstrtoumax.m4: Add comments explaining why we
28366         AC_REPLACE_FUNCS(strtol).
28367
28368 2001-08-26  Jim Meyering  <meyering@lucent.com>
28369
28370         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
28371         of copyright with `%s' so translators don't get an untranslated
28372         message in 2002.
28373         (COPYRIGHT_YEAR): Define.
28374         (version_etc): Use fprintf rather than fputs.
28375         Suggestion from Ulrich Drepper.
28376
28377         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
28378
28379         * lib/strtoll.c: New file, from GNU libc.
28380         * lib/xstrtoimax.c: New file.
28381
28382         * lib/xstrtol.h: Add xstrtoimax.
28383         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
28384         * lib/strtoimax.c: New file.  Likewise, but first define
28385         STRTOUXMAX_SIGNED.
28386
28387         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
28388         ...
28389         * lib/strtoxmax.c: ... then renamed to this.
28390
28391 2001-08-18  Paul Eggert  <eggert@twinsun.com>
28392
28393         * m4/inttypes.m4: Add AC_PREREQ(2.13).
28394         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
28395         (jm_AC_TYPE_INTMAX_T): New macro.
28396         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
28397
28398         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
28399
28400         * m4/longlong.m4: Renamed from ulonglong.m4.
28401         * m4/inttypes.m4: Renamed from inttypes_h.m4.
28402         * m4/uintmax_t.m4: Removed.
28403
28404 2001-08-13  Paul Eggert  <eggert@twinsun.com>
28405
28406         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
28407         Port to Solaris 8, where 'sed' requires a space after the 'r'
28408         command, and where sh dislikes "$/".  Clean up the spacing a bit.
28409         Redirect output to $tmp just once.
28410
28411 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
28412
28413         * lib/addext.c (<errno.h>): Include.
28414         (errno): Declare if not defined.
28415         (addext): Work correctly when pathconf returns -1 and leaves
28416         errno alone because there is no limit.  Also, work even if
28417         pathconf returns a value greater than SIZE_MAX.
28418
28419 2001-08-12  Jim Meyering  <meyering@lucent.com>
28420
28421         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
28422         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
28423         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
28424         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
28425         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
28426         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
28427         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
28428         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
28429         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
28430         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
28431         utime.m4, utimes.m4, xstrtoumax.m4:
28432         Quote the first argument in each use of AC_DEFUN.
28433
28434 2001-08-12  Jim Meyering  <meyering@lucent.com>
28435
28436         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
28437         Simply `return getcwd (NULL, 0);'.
28438         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
28439         Use 1300 as initial value for length, not PATH_MAX.
28440
28441         * lib/pathmax.h: Clean up cpp syntax.
28442
28443 2001-08-12  Jim Meyering  <meyering@lucent.com>
28444
28445         * lib/gettimeofday.c: New file.
28446         * lib/gtod.h: New file.
28447         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
28448
28449 2001-08-05  Jim Meyering  <meyering@lucent.com>
28450
28451         * m4/jm-macros.m4: Require autoconf-2.52.
28452
28453 2001-08-04  Jim Meyering  <meyering@lucent.com>
28454
28455         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
28456         stmt, to get in sync with glibc.
28457
28458 2001-08-03  Paul Eggert  <eggert@twinsun.com>
28459
28460         The following changes are from gettext 0.10.39 as maintained by
28461         Bruno Haible.
28462
28463         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
28464         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
28465         with inverted sense.  All uses changed.
28466
28467         * lib/mbswidth.c: Don't include <limits.h>.
28468         Include <stdlib.h> and <string.h> unconditionally.
28469         (iswcntrl, mbsinit, ISCNTRL): New macros.
28470         (mbsnwidth): Use K&R style function declarations.
28471         Don't bother checking for MB_LEN_MAX == 1, since the compiler
28472         can optimize it when MB_CUR_MAX == 1.
28473         The width of control characters is zero, not 1.
28474
28475 2001-08-03  Paul Eggert  <eggert@twinsun.com>
28476
28477         The following changes are from gettext 0.10.39 as maintained by
28478         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
28479
28480         * m4/codeset.m4: Upgrade to serial AM1.
28481         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
28482         all uses changed.  Quote first arg of AC_DEFUN.
28483         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
28484
28485         * m4/iconv.m4: Upgrade to serial AM2.
28486         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
28487         Add --with-libconv-prefix.
28488         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
28489         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
28490         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
28491         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
28492         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
28493
28494         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
28495         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
28496         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
28497         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
28498         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
28499         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
28500         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28501         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
28502         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
28503
28504         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
28505         string.h any more.
28506
28507         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
28508         not the default value.
28509
28510         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
28511         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
28512         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
28513         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
28514         Also check for iswcntrl, used for wcwidth fallback.
28515         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
28516         to Autoconf 2.13.
28517
28518 2001-08-03  Jim Meyering  <meyering@lucent.com>
28519
28520         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
28521         as it was in the original.  Reported by Paul Eggert.
28522
28523 2001-07-16  Jim Meyering  <meyering@lucent.com>
28524
28525         * m4/gettimeofday.m4: New file.
28526         Prompted by a report from Bernhard Baehr.
28527
28528 2001-07-15  Jim Meyering  <meyering@lucent.com>
28529
28530         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
28531         stuff. Now it's in ../Makefile.cfg.
28532
28533 2001-07-15  Jim Meyering  <meyering@lucent.com>
28534
28535         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
28536         (BUILT_SOURCES): Add unlocked-io.h.
28537         (io_functions): Define.
28538         (unlocked-io.h): New rule.
28539         (DISTCLEANFILES): Add unlocked-io.h.
28540         (all-local): Depend on unlocked-io.h, to ensure it is created.
28541
28542         * lib/unlocked-io.hin: New file
28543
28544         * lib/regex.c: Update from glibc.
28545
28546 2001-07-05  Jim Meyering  <meyering@lucent.com>
28547
28548         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
28549         recommendation.
28550         (libfetish_a_SOURCES): Put all .h files here instead.
28551         Remove a thus-exposed (better checks in automake) duplicate and
28552         two unnecessary .h files.
28553
28554 2001-07-04  Jim Meyering  <meyering@lucent.com>
28555
28556         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
28557         that generates jm-glibc-io.m4 so that it doesn't trigger any make
28558         distcheck failure.
28559
28560 2001-07-02  Jim Meyering  <meyering@lucent.com>
28561
28562         The following changes were prompted by suggestions from Bruno Haible.
28563
28564         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
28565         is now generated.
28566         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
28567         definition of EXTRA_DIST.
28568         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
28569         ensure that the generated file is created/updated whenever the list
28570         of $(unlocked_functions) is changed.
28571         (jm-glibc-io.m4): New rule.
28572         (unlocked-io.h): New rule -- currently unused.
28573
28574 2001-06-24  Jim Meyering  <meyering@lucent.com>
28575
28576         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
28577         unmatched right bracket, rather than kludging it with an extra,
28578         falsely-matching quote in a comment.  Patch by Akim Demaille.
28579
28580 2001-06-11  Jim Meyering  <meyering@lucent.com>
28581
28582         * lib/regex.c: Update from GNU libc.
28583
28584 2001-05-27  Jim Meyering  <meyering@lucent.com>
28585
28586         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
28587         Check for ut_type in struct utmp.
28588
28589 2001-05-27  Jim Meyering  <meyering@lucent.com>
28590
28591         * lib/readutmp.h (UT_TYPE): Define.
28592
28593 2001-05-24  Jim Meyering  <meyering@lucent.com>
28594
28595         * lib/argmatch.c: Include "quote.h".
28596         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
28597         quote function.  Reported by Göran Uddeborg.
28598
28599 2001-05-22  Jim Meyering  <meyering@lucent.com>
28600
28601         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
28602         now that we use the package-supplied version unconditionally.
28603         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
28604
28605 2001-05-21  Jim Meyering  <meyering@lucent.com>
28606
28607         * m4/regex.m4: Change a couple backticks to single quotes to avoid
28608         shell syntax errors.
28609
28610 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
28611
28612         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
28613
28614 2001-05-20  Paul Eggert  <eggert@twinsun.com>
28615
28616         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
28617         Don't bother to check library strftime, since
28618         we'll be using our own my_strftime function anyway.
28619         Define my_strftime instead of strftime.
28620
28621 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
28622
28623         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
28624         which is not yet declared.
28625
28626 2001-05-15  Jim Meyering  <meyering@lucent.com>
28627
28628         * m4/regex.m4: Use proper quoting so brackets appear in the test
28629         program.
28630         Reported by, and with help from, Bruno Haible.
28631
28632 2001-05-13  Jim Meyering  <meyering@lucent.com>
28633
28634         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
28635         undefined.
28636
28637 2001-05-11  Paul Eggert  <eggert@twinsun.com>
28638
28639         dirname code cleanup.  base_name now behaves more compatibly
28640         with POSIX basename when given file names that have trailing
28641         slashes, and similarly for dir_name.  Add new primitives
28642         base_len and dir_len.  Put the directory-name-related decls
28643         into dirname.h.
28644
28645         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
28646         * lib/backupfile.c (base_name): Likewise.
28647         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
28648         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
28649         * lib/makepath.c (strip_trailing_slashes): Likewise.
28650         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
28651         ISSLASH): Likewise.
28652         * lib/rename.c (strip_trailing_slashes): Likewise.
28653         * lib/same.c (base_name): Likewise.
28654         * lib/stripslash.c (ISSLASH): Likewise.
28655
28656         * lib/addext.c: Include <dirname.h> after size_t is defined.
28657         * lib/backupfile.c: Likewise.
28658
28659         * lib/addext.c (addext): Use base_len to trim redundant
28660         trailing slashes instead of doing it ourselves.
28661         But do not trim the last slash if it is not redundant.
28662
28663         * lib/backupfile.c (find_backup_file_name,
28664         max_backup_version): Use base_len instead of rolling it ourselves.
28665         Handle the case of "" and (on DOS) "C:" correctly.
28666
28667         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
28668         needed. Include <string.h>, <dirname.h>.
28669         (base_name): Allow file names ending in slashes, other than names
28670         that are all slashes.  In this case, return the basename followed
28671         by the slashes.  This is more general, and can be used in places
28672         where the original base_name purposely had an assertion failure.
28673         (base_len): New function.
28674
28675         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
28676         Do not include <assert.h>; no longer needed.
28677         Include xalloc.h.
28678         (memrchr): Remove decl.
28679         (dir_name_r): Remove.
28680         (dir_len): Renamed from dirlen.  All callers changed.
28681         Rewrite in terms of base_name, for simplicity and consistency.
28682         (dir_name): Never return NULL.  All callers changed.
28683         Do not include <stdlib.h> in test program; no longer needed.
28684         return 0; is fine for test program.
28685
28686         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
28687         New macros.
28688         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
28689
28690         * lib/path-concat.c (path_concat): Use base_len to compute
28691         base length, not strlen; this means we cannot rely on memcpy
28692         to null-terminate.
28693
28694         * lib/same.c (STREQ): Remove.
28695         (same_name): Handle the case where the basename ends in trailing '/'.
28696
28697         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
28698         a slash was stripped.  Do not strip the last slash after a
28699         file system prefix.
28700
28701 2001-05-11  Paul Eggert  <eggert@twinsun.com>
28702
28703         * lib/Makefile.am (libfetish_a_SOURCES):
28704         Add strftime.c, since we now compile it on all hosts.
28705
28706         * lib/strftime.c (my_strftime):
28707         Define to nstrftime if emacs, but only if my_strftime is not defined.
28708         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
28709         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
28710         Add one more extra argument: a nanoseconds value.
28711         All uses changed.
28712         (ns): New macro.
28713         (my_strftime function): Add %N format.
28714         (emacs_strftimeu): Renamed from emacs_strftime,
28715         with extra ut argument.
28716
28717 2001-05-09  Paul Eggert  <eggert@twinsun.com>
28718
28719         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
28720
28721 2001-04-21  Jim Meyering  <meyering@lucent.com>
28722
28723         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
28724         doesn't interfere.
28725
28726 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
28727
28728         * m4/ftruncate.m4: Check for chsize.
28729         Link with ftruncate.o unconditionally if ftruncate is missing.
28730         This was required when cross-compiling to i586-mingw32msvc.
28731
28732 2001-04-08  Jim Meyering  <meyering@lucent.com>
28733
28734         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
28735         recomputed; that's necessary when the offset spans a DST transition.
28736         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
28737
28738 2001-04-02  Jim Meyering  <meyering@lucent.com>
28739
28740         * lib/regex.h, regex.c: Update from GNU libc.
28741
28742 2001-03-24  Jim Meyering  <meyering@lucent.com>
28743
28744         * m4/jm-macros.m4: Require autoconf-2.49d.
28745
28746 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
28747
28748         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
28749
28750 2001-03-19  Paul Eggert  <eggert@twinsun.com>
28751
28752         * lib/version-etc.c (version_etc_copyright): Update to 2001.
28753
28754 2001-03-17  Jim Meyering  <meyering@lucent.com>
28755
28756         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
28757         now that the version in autoconf is equivalent.
28758         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
28759
28760         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
28761         Suggestion from Akim Demaille.
28762
28763         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
28764         (jm_PREREQ_TEMPNAME): New function.
28765
28766 2001-03-16  Paul Eggert  <eggert@twinsun.com>
28767
28768         * lib/tempname.c (uint64_t): Define to uintmax_t if
28769         not defined, and if UINT64_MAX is not defined.
28770         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
28771         Reported by John David Anglin.
28772
28773 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
28774
28775         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
28776         resolve alias if codeset is empty.
28777         * lib/config.charset (BeOS): Use wildcard syntax.
28778
28779 2001-03-13  Jim Meyering  <meyering@lucent.com>
28780
28781         * lib/path-concat.c (path_concat)
28782         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
28783         concatenating e.g., `C:' and `foo'.
28784         From Bruno Haible.
28785
28786 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
28787
28788         * lib/localcharset.c (locale_charset): Don't use
28789         setlocale(LC_CTYPE,NULL). Don't return NULL.
28790         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
28791
28792 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
28793
28794         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
28795         support for DOS/DJGPP.
28796
28797 2001-03-01  Paul Eggert  <eggert@twinsun.com>
28798
28799         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
28800         lacks mkstemp.  Compile our own tempname.c if we compile our own
28801         mkstemp.c, as mkstemp relies on tempname.
28802
28803 2001-03-01  Jim Meyering  <meyering@lucent.com>
28804
28805         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
28806         AH_VERBATIM really does output its argument verbatim.
28807
28808 2001-02-28  Paul Eggert  <eggert@twinsun.com>
28809
28810         * lib/Makefile.am (libfetish_a_SOURCES):
28811         Add dup-safer.c, fopen-safer.c.
28812         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
28813
28814         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
28815         * lib/unistd-safer.h: New files.
28816
28817 2001-02-25  Paul Eggert  <eggert@twinsun.com>
28818
28819         The mkstemp replacement is taken from glibc 2.2.2, with some
28820         portability fixes for use outside glibc, as follows:
28821
28822         * lib/tempname.c (struct_stat64): New macro.
28823         (direxists, __gen_tempname): Use it.
28824         This avoids a portability problem with Solaris 8.
28825
28826         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
28827         (<stddef.h>, <stdint.h>, <string.h>):
28828         Include only if STDC_HEADERS || _LIBC.
28829         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
28830         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
28831         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
28832         (__set_errno): Define this macro if <errno.h> doesn't.
28833         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
28834         Define these macros if <stdio.h> doesn't.
28835         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
28836         Define these macros if <sys/stat.h>
28837         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
28838         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
28839         __xstat64): Define if not _LIBC.
28840         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
28841         (__gen_tempname): Invoke gettimeofday only if
28842         HAVE_GETTIMEOFDAY || _LIBC;
28843         otherwise, fall back on plain "time".
28844         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
28845
28846         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
28847
28848         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
28849
28850 2001-02-18  Paul Eggert  <eggert@twinsun.com>
28851
28852         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
28853
28854 2001-02-17  Paul Eggert  <eggert@twinsun.com>
28855
28856         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
28857         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
28858         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
28859         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28860
28861 2001-02-17  Paul Eggert  <eggert@twinsun.com>
28862
28863         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
28864         Remove workaround macros for hosts that have mbrtowc but not
28865         mbstate_t, as we now insist on proper declarations for both
28866         before using mbrtowc.
28867
28868 2001-02-17  Jim Meyering  <meyering@lucent.com>
28869
28870         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
28871         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
28872         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
28873         UnixWare 7.1.1.
28874
28875         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
28876         rather than AC_CACHE_VAL.
28877
28878 2001-02-17  Jim Meyering  <meyering@lucent.com>
28879
28880         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
28881         around included file name.
28882
28883         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
28884
28885         * lib/strftime.c: Update from GNU libc (the only changes were to
28886         comments).
28887
28888 2001-02-17  Jim Meyering  <meyering@lucent.com>
28889
28890         * lib/regex.c: Update from libc.
28891
28892 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
28893
28894         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
28895         clash.
28896
28897 2001-02-16  Paul Eggert  <eggert@twinsun.com>
28898
28899         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
28900         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
28901         Reported by Mark Hounschell via Paul Eggert.
28902
28903 2001-02-07  Jim Meyering  <meyering@lucent.com>
28904
28905         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
28906
28907 2001-02-05  Jim Meyering  <meyering@lucent.com>
28908
28909         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
28910         it includes the patch required for `large file' support with at least
28911         HP-UX's 10.20 /bin/cc.
28912
28913 2001-02-03  Jim Meyering  <meyering@lucent.com>
28914
28915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
28916         AS_IF, now that it works once again (mysteriously).
28917         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
28918
28919 2001-01-30  Jim Meyering  <meyering@lucent.com>
28920
28921         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
28922         * m4/chown.m4: Rename conftestchown to conftest.chown.
28923         * m4/rename.m4: s/conftestdir/conftest.d1/ and
28924         s/conftestdir2/conftest.d2/.
28925         * m4/utimes.m4: s/conftestdata/conftest.data/
28926         Inspired by Pavel Roskin's change in autoconf.
28927
28928 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
28929
28930         * lib/config.charset: Update for FreeBSD 4.2.
28931
28932 2001-01-27  Jim Meyering  <meyering@lucent.com>
28933
28934         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
28935         a use of AS_IF.
28936         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
28937
28938 2001-01-26  Jim Meyering  <meyering@lucent.com>
28939
28940         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
28941         quotearg.c includes it.
28942
28943 2001-01-26  Jim Meyering  <meyering@lucent.com>
28944
28945         * lib/quotearg.c: Include stddef.h.
28946         * lib/quote.c: Include stddef.h.
28947         Reported by Axel Kittenberger.
28948
28949         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
28950         line in double quotes so that it evokes a better diagnostic.
28951         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
28952         Reported by Axel Kittenberger.
28953
28954 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
28955
28956         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
28957         as if it was a `charset'.
28958
28959 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
28960
28961         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
28962         has const.
28963
28964 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
28965
28966         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
28967         to avoid a warning.  Add back 'const' to inptr.
28968
28969 2001-01-20  Jim Meyering  <meyering@lucent.com>
28970
28971         Be sure that headers are checked before used in code compiled
28972         for the type checks.
28973         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
28974         In place of that, invoke jm_CHECK_ALL_TYPES.
28975         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
28976         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
28977         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
28978         The check for ssize_t was mistakenly run before the test for unistd.h.
28979
28980         The configure-time check for stdbool.h was missing.
28981         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
28982         (jm_PREREQ_HASH): New function.
28983
28984 2001-01-17  Jim Meyering  <meyering@lucent.com>
28985
28986         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
28987         for autoconf-2.49c.
28988         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
28989
28990 2001-01-16  Jim Meyering  <meyering@lucent.com>
28991
28992         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
28993         From Bruno Haible.
28994
28995 2001-01-14  Jim Meyering  <meyering@lucent.com>
28996
28997         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
28998         foo and bar.  Create conftestdir/ in the script, not in the C code.
28999         Remove directories in the script, not in the C code.
29000         Remove conftestdir{,2} before trying to create the directory.
29001         Make the entire configure script fail if the mkdir fails.
29002
29003 2001-01-14  Jim Meyering  <meyering@lucent.com>
29004
29005         * lib/rename.c: New file.  From Volker Borchert.
29006         Include stdlib.h, string.h or strings.h, and xalloc.h.
29007         Use strip_trailing_slashes rather than open-coding it.
29008
29009 2001-01-03  Paul Eggert  <eggert@twinsun.com>
29010
29011         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
29012
29013 2001-01-03  Jim Meyering  <meyering@lucent.com>
29014
29015         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
29016         of local `inptr' to avoid warning with some system declarations of
29017         iconv.
29018
29019 2001-01-02  Volker Borchert  <bt@teknon.de>
29020
29021         * m4/rename.m4: New file.
29022         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
29023
29024 2001-01-01  Jim Meyering  <meyering@lucent.com>
29025
29026         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
29027         even on systems with utmpx.h.  It's necessary for the declaration of
29028         utmp's ut_user member.  Reported by Andreas Jaeger.
29029
29030         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
29031         available. They are required for the declarations of getgrgid and
29032         getpwuid resp.
29033         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
29034         Reported by Andreas Jaeger.
29035
29036 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
29037
29038         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
29039         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
29040         so `make install' also works in VPATH builds.
29041
29042 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
29043
29044         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
29045         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
29046         can be used in subdirectories.
29047
29048 2000-12-29  Paul Eggert  <eggert@twinsun.com>
29049
29050         * lib/modechange.c: Do not assume that mode_t uses the
29051         traditional octal encoding.  E.g. "chmod 1 FOO" should set
29052         the other-execute bit of FOO even if S_IXOTH != 1.
29053
29054         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
29055         WOTH, XOTH, ALLM): New macros.
29056         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
29057          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
29058         Use them.
29059         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
29060         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
29061         (mode_compile):
29062         No need to use uintmax_t; unsigned long is long enough.
29063         Don't bother to get suffix since we don't use it.
29064
29065 2000-12-26  Jim Meyering  <meyering@lucent.com>
29066
29067         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
29068         better with autoheader.
29069
29070 2000-12-24  Jim Meyering  <meyering@lucent.com>
29071
29072         * lib/hash.c (is_prime): Return explicit boolean values.
29073         (hash_get_first): Return NULL to appease Irix5.6's 89.
29074         Reported by Nelson Beebe.
29075
29076 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
29077
29078         * lib/localcharset.c (locale_charset): Add support for Win32.
29079
29080 2000-12-18  Paul Eggert  <eggert@twinsun.com>
29081
29082         * lib/physmem.h, lib/physmem.c: New files.
29083
29084         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
29085         (noinst_HEADERS): Add physmem.h.
29086
29087         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
29088         't' for compatibility with Solaris 8 sort.
29089
29090 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
29091
29092         * lib/config.charset: Add support for BeOS.
29093
29094 2000-12-17  Jim Meyering  <meyering@lucent.com>
29095
29096         * m4/dos.m4 (jm_AC_DOS): New file and macro.
29097         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
29098
29099 2000-12-16  Jim Meyering  <meyering@lucent.com>
29100
29101         This bug had a serious impact on chown: `chown N:M FILE' (for integer
29102         N and M) would have treated it like `chown N:N FILE'.
29103
29104         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
29105
29106 2000-12-16  Jim Meyering  <meyering@lucent.com>
29107
29108         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
29109         SHELLS_FILE to a file name that's useful on djgpp systems.
29110         Include stdlib.h.
29111         (ADDITIONAL_DEFAULT_SHELLS): Define.
29112         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
29113         Based mostly on a patch from Prashant TR.
29114
29115 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
29116
29117         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
29118         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
29119         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
29120
29121 2000-12-08  Andreas Schwab  <schwab@suse.de>
29122
29123         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
29124         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
29125
29126 2000-12-07  Jim Meyering  <meyering@lucent.com>
29127
29128         * lib/stripslash.c (ISSLASH): Define.
29129         (strip_trailing_slashes): Use ISSLASH rather than comparing against
29130         `/'.
29131         From Prashant TR.
29132
29133         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
29134         (dir_name_r): Declare this function as static.
29135         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
29136         manifest itself on a name containing a mix of slashes and
29137         backslashes.
29138         Make this function work with names starting with a DOS-style
29139         drive letter and colon prefix.
29140         (dir_name): Append `.' if necessary.
29141         Based mostly on patches from Prashant TR and Eli Zaretskii.
29142
29143         * lib/dirname.h (dir_name_r): Remove prototype.
29144
29145 2000-12-06  Paul Eggert  <eggert@twinsun.com>
29146
29147         * m4/off_t-format.m4: Remove this file.
29148         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
29149
29150 2000-12-06  Jim Meyering  <meyering@lucent.com>
29151
29152         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
29153         replacement strtoull, we may well need the replacement strtoul, too.
29154         Check for declarations of strtoul and strtoull.
29155         Check for strtol.  Mainly as a cue to cause automake to include
29156         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
29157         Check for limits.h -- strtol.c needs it.
29158
29159 2000-12-05  Jim Meyering  <meyering@lucent.com>
29160
29161         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
29162
29163 2000-12-04  Jim Meyering  <meyering@lucent.com>
29164
29165         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
29166         Also include memory.h, stdlib.h, unistd.h if appropriate.
29167         Reported by Andreas Jaeger (conflicting declaration of malloc).
29168
29169 2000-12-02  Jim Meyering  <meyering@lucent.com>
29170
29171         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
29172         * m4/jm-macros.m4 (jm_MACROS): require it.
29173
29174 2000-12-02  Jim Meyering  <meyering@lucent.com>
29175
29176         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
29177
29178 2000-12-01  Paul Eggert  <eggert@twinsun.com>
29179
29180         * lib/memrchr.c: Include <config.h> before any system include file.
29181
29182 2000-11-30  Jim Meyering  <meyering@lucent.com>
29183
29184         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
29185
29186 2000-11-30  Jim Meyering  <meyering@lucent.com>
29187
29188         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
29189
29190 2000-11-29  Paul Eggert  <eggert@twinsun.com>
29191
29192         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
29193
29194 2000-11-26  Jim Meyering  <meyering@lucent.com>
29195
29196         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
29197
29198 2000-11-22  Paul Eggert  <eggert@twinsun.com>
29199
29200         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
29201         size of (size_t) -1; it's not portable.
29202
29203 2000-11-17  Jim Meyering  <meyering@lucent.com>
29204
29205         * lib/strstr.c: Update from GNU libc.
29206
29207 2000-11-17  Akim Demaille  <akim@epita.fr>
29208
29209         * lib/obstack.h: Formatting changes.
29210         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
29211         prevent type checking.
29212         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
29213         cast the value to (void *): assigning a `foo *' to a `void *'
29214         variable is valid.
29215         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
29216
29217 2000-11-16  Jim Meyering  <meyering@lucent.com>
29218
29219         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
29220
29221 2000-11-11  Jim Meyering  <meyering@lucent.com>
29222
29223         * lib/error.c: Add a couple #includes, merging from GNU libc version.
29224
29225 2000-11-10  Jim Meyering  <meyering@lucent.com>
29226
29227         * lib/obstack.h: Update from GNU libc.
29228         * lib/obstack.c: Likewise.
29229
29230 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
29231
29232         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
29233
29234 2000-11-06  Paul Eggert  <eggert@twinsun.com>
29235
29236         * lib/getusershell.c (setusershell): Use rewind rather than
29237         fseek/fseeko, to avoid configuration hassles with fseeko.
29238         Don't bother opening SHELLS_FILE if shellstream is NULL;
29239         it's not necessary.
29240
29241 2000-11-05  Jim Meyering  <meyering@lucent.com>
29242
29243         * lib/makepath.h (make_dir): Declare.
29244         * lib/makepath.c (make_dir): Remove `static' attribute.
29245         Tweak a comment.
29246
29247 2000-11-04  Jim Meyering  <meyering@lucent.com>
29248
29249         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
29250
29251 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
29252
29253         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
29254         last one in a bucket, advance to the next bucket.
29255
29256 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
29257
29258         * lib/fnmatch.c: Do not comment out all the code if we are using
29259         the GNU C library, because in some cases we are replacing buggy
29260         code in the GNU C library itself.
29261
29262 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
29263
29264         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
29265         (regex_compile): Catch bogus \(\1\).
29266
29267 2000-10-30  Paul Eggert  <eggert@twinsun.com>
29268
29269         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
29270         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
29271         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
29272
29273 2000-10-30  Paul Eggert  <eggert@twinsun.com>
29274
29275         * lib/error.h, getline.h, modechange.h:
29276         Remove "2000" from Copyright line, as the file hasn't been
29277         changed this year other than in the copyright notice.
29278
29279         * lib/xalloc.h: Add "2000" to Copyright line, as this file
29280         was changed this year.
29281
29282 2000-10-29  Jim Meyering  <meyering@lucent.com>
29283
29284         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
29285         renaming.
29286         * m4/ls-mntd-fs.m4: Likewise
29287
29288 2000-10-29  Jim Meyering  <meyering@lucent.com>
29289
29290         * lib/xstat.in: Fix grammar in comment.
29291
29292 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
29293
29294         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
29295         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
29296         doesn't define __restrict_arr.
29297
29298 2000-10-28  Jim Meyering  <meyering@lucent.com>
29299
29300         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
29301         (jm_PREREQ_MEMCHR): New function.
29302
29303 2000-10-28  Jim Meyering  <meyering@lucent.com>
29304
29305         * lib/memchr.c: Update from libc.
29306         Adjust for portability:
29307         [HAVE_STDLIB_H]: Include stdlib.h.
29308         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
29309         Undef __memchr, too.
29310         [!weak_alias]: Define __memchr to memchr.
29311
29312         * lib/regex.c: Update from libc.
29313         * lib/regex.h: Likewise.
29314         * lib/getopt1.c: Likewise.
29315         * lib/memcmp.c: Likewise.
29316
29317         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
29318         Avoid using fseek, when possible -- it's broken by design.
29319         Patch by Ulrich Drepper.
29320
29321 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
29322
29323         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
29324         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
29325         Giving in to popular pressure to shut up the compiler with casts.
29326
29327 2000-10-26  Jim Meyering  <meyering@lucent.com>
29328
29329         * lib/strftime.c: Update from libc.
29330
29331 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
29332
29333         * regex.c: More `unsigned char' -> `re_char' changes.
29334         Also change several `int' into `re_wchar_t'.
29335         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
29336         (PUSH_FAILURE_POINTER): Don't cast any more.
29337         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
29338         We want GCC to complain, since this piece of code makes
29339         re_match non-reentrant, which *should* be fixed.
29340         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
29341         (EXTEND_BUFFER): Use RETALLOC.
29342         (SET_LIST_BIT): Don't cast.
29343         (re_wchar_t): New type.
29344         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
29345         that those two functions will always properly return.
29346         (IMMEDIATE_QUIT_CHECK): Cast to void.
29347         (analyse_first): Use recursion rather than an explicit stack.
29348         (re_compile_fastmap): Can't fail anymore.
29349         (re_search_2): Don't check re_compile_fastmap for failure.
29350         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
29351         Now also sets the new value (passed in a new argument).
29352         (re_match_2_internal): Use it.
29353         Also, use a new var `reg' of type size_t when looping through regs
29354         rather than reuse the inappropriate `mcnt'.
29355
29356 2000-10-25  Jim Meyering  <meyering@lucent.com>
29357
29358         * lib/obstack.c: Update from libc.
29359
29360 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
29361
29362         * regex.c (regex_compile): Change the way of handling a range from
29363         a char less than 256 to a char not less than 256.
29364
29365 2000-10-24  Andrew Innes  <andrewi@gnu.org>
29366
29367         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
29368         NT-Emacs only.
29369         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
29370         so that re_search functions only quit when callers expect them to.
29371
29372 2000-10-23  Jim Meyering  <meyering@lucent.com>
29373
29374         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
29375         wrong.  That set_locale call must not have any side effects.
29376         From Paul Eggert.
29377
29378 2000-10-22  Jim Meyering  <meyering@lucent.com>
29379
29380         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
29381         [CYCLIC]: Remove now-unused definition.
29382
29383         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
29384         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
29385         Suggestion from Ulrich Drepper.
29386
29387 2000-10-21  Jim Meyering  <meyering@lucent.com>
29388
29389         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
29390         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
29391         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
29392
29393 2000-10-21  Jim Meyering  <meyering@lucent.com>
29394
29395         * lib/dirname.c (memrchr): Declare if necessary.
29396         (dir_name): Remove the restriction that there be no
29397         trailing slashes.  Now, this code skips past them, effectively
29398         ignoring them.
29399         [TEST_DIRNAME] (main): New unit tests.
29400
29401         * lib/memrchr.c: New file from GNU libc.
29402         Undef __memrchr, too.
29403         [!weak_alias]: Define __memrchr to memrchr.
29404         Guard weak_alias use with `#ifdef weak_alias'.
29405
29406 2000-10-21  Jim Meyering  <meyering@lucent.com>
29407
29408         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
29409         (dir_name): Use dir_name_r.
29410         * lib/dirname.h (dir_name_r): Declare it.
29411
29412 2000-10-17  Jim Meyering  <meyering@lucent.com>
29413
29414         * lib/quote.h (PARAMS): Define and use.
29415         Reported by Akim Demaille.
29416
29417         * lib/getopt.c: Update from libc.
29418
29419 2000-10-16  Jim Meyering  <meyering@lucent.com>
29420
29421         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
29422         setlocale.
29423         From Jan Fedak.
29424
29425 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
29426
29427         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
29428
29429 2000-09-25  Jim Meyering  <meyering@lucent.com>
29430
29431         * lib/md5.h (rol): Define (from GnuPG).
29432
29433         * lib/sha.c: Give credit (GnuPG) where due.
29434         (M): Use rol rather than open-coding it.
29435         Add a FIXME comment.
29436
29437 2000-09-21  Jim Meyering  <meyering@lucent.com>
29438
29439         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
29440         Reported by Michael Stone.
29441
29442 2000-09-20  Jim Meyering  <meyering@lucent.com>
29443
29444         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
29445         (noinst_HEADERS): Add sha.h.
29446         Based on code from Scott G. Miller and from GnuPG.
29447
29448 2000-09-18  Jim Meyering  <meyering@lucent.com>
29449
29450         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
29451         LIBS. Otherwise, everyone ends up linking with -lelf for some
29452         configurations.
29453         Reported by Mike Stone.
29454
29455 2000-09-15  Jim Meyering  <meyering@lucent.com>
29456
29457         * lib/regex.c: Update from libc.
29458
29459 2000-09-10  Jim Meyering  <meyering@lucent.com>
29460
29461         * lib/getopt.c (_getopt_internal): Update from glibc.
29462
29463 2000-09-09  Jim Meyering  <meyering@lucent.com>
29464
29465         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
29466         think it should be used as a general replacement for isascii.
29467         * lib/fnmatch.c: Likewise.
29468         * lib/mbswidth.c: Likewise
29469         * lib/regex.c: Likewise.
29470
29471         Don't use atoi.
29472         * lib/userspec.c: Include sys/param.h and limits.h.
29473         Include xstrtol.h.
29474         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
29475         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
29476         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
29477         UID, GID.  Check range.
29478
29479 2000-09-06  Jim Meyering  <meyering@lucent.com>
29480
29481         * lib/getopt.c (_getopt_internal): Update from glibc.
29482
29483 2000-08-30  Jim Meyering  <meyering@lucent.com>
29484
29485         * lib/strftime.c: Merge in changes from GNU libc.
29486
29487 2000-08-26  Jim Meyering  <meyering@lucent.com>
29488
29489         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
29490         * m4/fpending.m4: New file.
29491
29492 2000-08-26  Jim Meyering  <meyering@lucent.com>
29493
29494         * lib/closeout.c: Include "__fpending.h".
29495         (close_stdout_status): Return right away if there's nothing to flush.
29496
29497         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
29498         * lib/__fpending.c: New file.
29499         * lib/__fpending.h: New file.
29500
29501 2000-08-20  Jim Meyering  <meyering@lucent.com>
29502
29503         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
29504         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
29505         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
29506
29507 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
29508
29509         Improve fileutils installation on systems where running
29510         programs (like install) can't be unlinked.
29511         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
29512         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
29513
29514 2000-08-07  Paul Eggert  <eggert@twinsun.com>
29515
29516         Standardize on "memory exhausted" instead of "Memory exhausted"
29517         or "virtual memory exhausted".
29518         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
29519         "virtual memory exhausted".
29520         * lib/same.c (same_name): Invoke xalloc_die instead of printing
29521         our own message.
29522         * lib/userspec.c (parse_user_spec): Likewise.
29523         * lib/bumpalloc.h: comment fix
29524         * lib/same.c, userspec.c: Include xalloc.h.
29525
29526         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
29527         not char *const and pointing to a constant array.
29528         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
29529         (xrealloc): Comment fix.
29530
29531         * lib/userspec.c (parse_user_spec):
29532         Don't translate a message until just before returning,
29533         to avoid unnecessary translation.
29534
29535 2000-08-07  Jim Meyering  <meyering@lucent.com>
29536
29537         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
29538         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
29539         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
29540         getgroups.c, gethostname.c, getopt.h, group-member.c,
29541         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
29542         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
29543         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
29544         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
29545         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
29546         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
29547         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
29548         yesno.c: Back out Copyright date changes for each file with no change
29549         this year.  This eases coordination with other programs using the same
29550         source code modules.  From Paul Eggert.
29551
29552 2000-08-06  Paul Eggert  <eggert@twinsun.com>
29553
29554         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
29555         not char, for compatibility with glibc 2.1.3 strftime.c.
29556
29557 2000-08-03  Greg McGary  <greg@mcgary.org>
29558
29559         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
29560         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
29561         (EXTEND_BUFFER): Use them.
29562
29563 2000-08-01  Jim Meyering  <meyering@lucent.com>
29564
29565         * lib/dirname.c (ISSLASH): Define.
29566         (BACKSLASH_IS_PATH_SEPARATOR): Define.
29567         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
29568         both `\' and `/' may be use as path separators.
29569         Based on a patch from Prashant TR.
29570
29571 2000-07-31  Paul Eggert  <eggert@twinsun.com>
29572
29573         * lib/quotearg.c (quotearg_n_options): Don't make the initial
29574         slot vector a constant, since it might get modified.
29575
29576 2000-07-31  Jim Meyering  <meyering@lucent.com>
29577
29578         * lib/xmalloc.c: Use `virtual memory exhausted', not
29579         `Memory exhausted'.
29580         * lib/obstack.c (print_and_abort): Likewise.
29581
29582 2000-07-30  Paul Eggert  <eggert@twinsun.com>
29583
29584         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
29585         buffer, so that the caller can always quote one small
29586         component of a "memory exhausted" message in slot 0.
29587         From a suggestion by Jim Meyering.
29588
29589 2000-07-30  Jim Meyering  <meyering@lucent.com>
29590
29591         * lib/makepath.c (make_path): Quote the other instance, too.
29592
29593         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
29594         (STATIC_BUF_SIZE): Define.
29595         (quotearg_n_options): Use only statically allocated storage when
29596         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
29597         than STATIC_BUF_SIZE.
29598
29599 2000-07-29  Jim Meyering  <meyering@lucent.com>
29600
29601         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
29602         * lib/dirname.c (dir_name): Likewise.
29603
29604         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
29605         `/'.
29606
29607         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
29608         (dir_name): Assert that there are no trailing slashes.
29609
29610 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
29611
29612         * lib/mbswidth.h (mbswidth): Add a flags argument.
29613         (mbswidth): New declaration.
29614         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
29615         * lib/mbswidth.c (mbswidth): Add a flags argument.
29616         (mbsnwidth): New function.
29617
29618 2000-07-24  Jim Meyering  <meyering@lucent.com>
29619
29620         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
29621
29622 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29623
29624         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
29625
29626 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29627
29628         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
29629         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
29630         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
29631         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
29632         invoke multibyte primitives.
29633
29634 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29635
29636         * lib/quotearg.c:
29637         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
29638         so that mbstate_t is always defined.
29639
29640         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
29641         be 1 in at least one GCC installation, and this configuration
29642         error is likely to be common.  Ignoring MB_LEN_MAX hurts
29643         performance on hosts that have mbrtowc but have only unibyte
29644         locales, but I assume these hosts are rare.
29645
29646 2000-07-23  Paul Eggert  <eggert@twinsun.com>
29647
29648         * lib/mbswidth.c (_XOPEN_SOURCE):
29649         Don't define; this causes problems on Solaris 7.
29650         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
29651
29652 2000-07-23  Jim Meyering  <meyering@lucent.com>
29653
29654         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
29655         too: getgrgid, getpwuid, getuid.
29656
29657 2000-07-23  Jim Meyering  <meyering@lucent.com>
29658
29659         * lib/basename.c (base_name): Add an assertion.
29660
29661 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
29662
29663         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
29664         shadow its mbsinit function.
29665
29666 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
29667
29668         * lib/mbswidth.h: New file.
29669         * lib/mbswidth.c: New file.
29670         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
29671         (noinst_HEADERS): Add mbswidth.h.
29672
29673 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
29674
29675         * lib/config.charset: Add support for FreeBSD. Improve support for
29676         HP-UX and IRIX 6.
29677
29678 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
29679
29680         * m4/mbswidth.m4: New file.
29681         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
29682
29683 2000-07-15  Jim Meyering  <meyering@lucent.com>
29684
29685         * lib/makepath.c: Include quote.h.
29686         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
29687         corresponding argument in a `quote (...)' call.
29688         Give better diagnostics.
29689
29690         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
29691         (noinst_HEADERS): Add quote.h.
29692
29693         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
29694         from tar's src/misc.c.
29695         * lib/quote.h: New file.  Prototypes for same.
29696
29697 2000-07-14  Paul Eggert  <eggert@twinsun.com>
29698
29699         From a suggestion by Bruno Haible.
29700         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
29701         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
29702         to decide whether to define the BeOS workaround macro;
29703         this adjusts to the change to AC_MBSTATE_T.
29704
29705 2000-07-14  Jim Meyering  <meyering@lucent.com>
29706
29707         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
29708         jm_AC_TYPE_UINTMAX_T.
29709
29710 2000-07-13  Paul Eggert  <eggert@twinsun.com>
29711
29712         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
29713
29714         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
29715         quotearg_buffer_restyled): Add support for
29716         clocale_quoting_style.  Undo previous change to
29717         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
29718         and "{RIGHT QUOTATION MARK}" msgids.
29719
29720 2000-07-10  Paul Eggert  <eggert@twinsun.com>
29721
29722         From a suggestion by Bruno Haible.
29723         * m4/mbstate_t.m4 (AC_MBSTATE_T):
29724         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
29725         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
29726         and mbstate_t, to a single-part test that simply defines mbstate_t.
29727         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
29728         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
29729
29730 2000-07-10  Jim Meyering  <meyering@lucent.com>
29731
29732         * m4/strerror_r.m4: Mirror the correction made in autoconf.
29733
29734         * m4/gnu-source.m4: Output to confdefs.h directly.
29735         Suggestion from Akim Demaille.
29736
29737 2000-07-09  Paul Eggert  <eggert@twinsun.com>
29738
29739         The old behavior of quoting `like this' doesn't look good with
29740         newer, ISO-style fonts.  See:
29741         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
29742
29743         Instead, quote "like this" by default.  Let the translator
29744         tailor the locale-specific quoting behavior by providing
29745         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
29746
29747         * lib/quotearg.c (N_): New macro.
29748         (gettext_default): New function.
29749         (quotearg_buffer_restyled): Use
29750         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
29751         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
29752
29753 2000-07-09  Jim Meyering  <meyering@lucent.com>
29754
29755         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
29756         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
29757
29758         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
29759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
29760
29761 2000-07-09  Jim Meyering  <meyering@lucent.com>
29762
29763         * lib/Most files: Update copyright dates to include 2000.
29764
29765 2000-07-08  Jim Meyering  <meyering@lucent.com>
29766
29767         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
29768         if not defined.
29769         (xgethostname): Remove now-unnecessary #ifdef.
29770         Move declaration of `err' into loop where it's used.
29771
29772 2000-07-05  Paul Eggert  <eggert@twinsun.com>
29773         and Bruno Haible  <haible@clisp.cons.org>
29774
29775         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
29776         only if the test for an object-type mbstate_t fails.  This
29777         prevents us from mistakenly reporting that mbstate_t is a
29778         system object type after we "#define mbstate_t int" to work
29779         around its lack.
29780
29781 2000-07-05  Paul Eggert  <eggert@twinsun.com>
29782         and Bruno Haible  <haible@clisp.cons.org>
29783
29784         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
29785
29786 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
29787
29788         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
29789         to strerror_r.
29790         Include <ctype.h> for use of isalpha.
29791
29792 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
29793
29794         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
29795         by allocating a larger buffer. Test the gethostname return value for
29796         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
29797         returns an error and ENAMETOOLONG isn't defined.
29798
29799 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
29800
29801         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
29802         dimension.
29803
29804 2000-07-04  Jim Meyering  <meyering@lucent.com>
29805
29806         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
29807         of the deprecated AC_CHECKING.
29808
29809 2000-07-04  Jim Meyering  <meyering@lucent.com>
29810
29811         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
29812         Reported by Bruno Haible.
29813
29814 2000-07-04  Jim Meyering  <meyering@lucent.com>
29815
29816         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
29817         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
29818         lacks mbrtowc.
29819
29820 2000-07-03  Paul Eggert  <eggert@twinsun.com>
29821
29822         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
29823         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
29824
29825 2000-07-03  Paul Eggert  <eggert@twinsun.com>
29826         and Bruno Haible  <haible@clisp.cons.org>
29827
29828         * lib/quotearg.c (mbrtowc):
29829         Assign to *pwc, and return 1 only if result is nonzero.
29830         (iswprint): Use ISPRINT when substituting our own mbrtowc.
29831
29832 2000-07-03  Jim Meyering  <meyering@lucent.com>
29833
29834         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
29835
29836 2000-07-03  Jim Meyering  <meyering@lucent.com>
29837
29838         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
29839         This is necessary to get a definition of e.g., UTMP_FILE on
29840         HP-UX 10.20.
29841         From Bob Proulx.
29842
29843 2000-07-02  Jim Meyering  <meyering@lucent.com>
29844
29845         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
29846
29847         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
29848         AC_LIBOBJ(function_name).
29849         * m4/chown.m4: Likewise.
29850         * m4/fnmatch.m4: Likewise.
29851         * m4/ftruncate.m4: Likewise.
29852         * m4/getgroups.m4: Likewise.
29853         * m4/getline.m4: Likewise.
29854         * m4/group-member.m4: Likewise.
29855         * m4/jm-macros.m4: Likewise.
29856         * m4/lstat.m4: Likewise.
29857         * m4/malloc.m4: Likewise.
29858         * m4/memcmp.m4: Likewise.
29859         * m4/nanosleep.m4: Likewise.
29860         * m4/putenv.m4: Likewise.
29861         * m4/realloc.m4: Likewise.
29862         * m4/regex.m4: Likewise.
29863         * m4/stat.m4: Likewise.
29864         * m4/strftime.m4: Likewise.
29865
29866 2000-07-02  Jim Meyering  <meyering@lucent.com>
29867
29868         * lib/quotearg.c (mbstate_t): Don't define here.
29869
29870 2000-07-02  Jim Meyering  <meyering@lucent.com>
29871
29872         * lib/nanosleep.c (SIGCONT): Define if not already defined.
29873
29874 2000-07-01  Jim Meyering  <meyering@lucent.com>
29875
29876         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
29877
29878 2000-07-01  Jim Meyering  <meyering@lucent.com>
29879
29880         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
29881         problem.
29882
29883 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
29884
29885         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
29886         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
29887
29888 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
29889
29890         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
29891         per change in ../m4/ls-mntd-fs.m4.
29892         (read_filesystem_list): Ignore symbolic links.
29893
29894 2000-06-29  Jim Meyering  <meyering@lucent.com>
29895
29896         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
29897         for declaration of strcmp.
29898
29899         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
29900
29901         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
29902         Avoid warning by casting result to `char *' to remove `const'.
29903
29904 2000-06-28  Jim Meyering  <meyering@lucent.com>
29905
29906         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
29907         included by quotearg.c, for which we perform this test.  From
29908         Bruno Haible.
29909
29910 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
29911
29912         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
29913         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
29914         <utmpx.h> exists, put readutmp.o into LIBOBJS.
29915
29916 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
29917
29918         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
29919
29920 2000-06-26  Paul Eggert  <eggert@twinsun.com>
29921
29922         savedir now sets errno on failure and invokes xmalloc to get memory.
29923         Fix a couple of other minor bugs while we're at it.
29924
29925         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
29926         (NAMLEN): Remove macro.
29927         (malloc, realloc): Remove decls.
29928         (stpcpy): Likewise.
29929         ("xalloc.h"): Include.
29930         (NAME_SIZE_DEFAULT): New macro.
29931         (savedir): Use xmalloc / xrealloc to allocate memory.
29932         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
29933         Skip "" directory entries.
29934         Use strlen to calculate directory entry length, since the old method
29935         is rarely used these days and isn't worth supporting.
29936         Don't use a pointer after freeing it.
29937         Check for integer overflow when calculating allocation size.
29938         Use memcpy to copy entries, instead of stpcpy.
29939         Set errno properly when returning NULL.
29940         Check for readdir error.
29941
29942 2000-06-26  Jim Meyering  <meyering@lucent.com>
29943
29944         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
29945
29946 2000-06-25  Jim Meyering  <meyering@lucent.com>
29947
29948         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
29949         Linux header bug when _XOPEN_SOURCE is defined to 500.
29950
29951 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
29952
29953         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
29954         deficiency.
29955
29956 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
29957
29958         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
29959         Include xalloc.h.
29960         Don't include <stdlib.h>.  Don't declare malloc, realloc.
29961
29962 2000-06-24  Jim Meyering  <meyering@lucent.com>
29963
29964         * m4/strerror_r.m4: Revive this file -- to try out an experimental
29965         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
29966         for which strerror does return char*, but which lacks a conveniently
29967         accessible declaration of the function.  If the compile-test says
29968         strerror_r doesn't work, then resort to a `run'-test that works on
29969         BeOS and segfaults on DEC Unix.
29970
29971 2000-06-24  Jim Meyering  <meyering@lucent.com>
29972
29973         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
29974
29975 2000-06-23  Paul Eggert  <eggert@twinsun.com>
29976
29977         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
29978         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
29979
29980 2000-06-23  Paul Eggert  <eggert@twinsun.com>
29981
29982         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
29983         (mbrtowc, mbstate_t): Define substitutes if
29984         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
29985         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
29986         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
29987
29988 2000-06-23  Jim Meyering  <meyering@lucent.com>
29989
29990         * m4/afs.m4: Add missing AC_MSG_RESULT.
29991         Reported by Bruno Haible.
29992
29993         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
29994         Suggestion from Bruno Haible.
29995
29996 2000-06-23  Jim Meyering  <meyering@lucent.com>
29997
29998         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
29999
30000 2000-06-21  Jim Meyering  <meyering@lucent.com>
30001
30002         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
30003
30004 2000-06-21  Jim Meyering  <meyering@lucent.com>
30005
30006         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
30007         (noinst_HEADERS): Add getstr.h.
30008
30009         * lib/getline.c (getstr): Move into a separate file.
30010         * lib/getstr.c (getstr): New file, extracted from getline.c, with
30011         the following changes: new parameter, delim2; both delim[12]
30012         parameters have type `int', not `char'.  The latter would lose
30013         with 8-bit delimiters.
30014         * lib/getstr.h: New file.
30015
30016 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30017
30018         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
30019         than 1024, return a memory chunk of least possible size, instead
30020         of size PATH_MAX + 2. In the loop, increment the size proportionally.
30021         Use free/xmalloc instead of xrealloc to avoid copying for very long
30022         paths.
30023
30024 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30025
30026         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
30027         the empty string.
30028
30029 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
30030
30031         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
30032         address, not strdup.  Include <stdlib.h> and don't declare free().
30033
30034 2000-06-19  Jim Meyering  <meyering@lucent.com>
30035
30036         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
30037
30038 2000-06-18  Jim Meyering  <meyering@lucent.com>
30039
30040         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
30041
30042         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
30043         `checking whether...' message to be consistent with that of the
30044         lstat test.
30045
30046 2000-06-18  Jim Meyering  <meyering@lucent.com>
30047
30048         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
30049         Besides, these days every porting target provides a mkdir function.
30050
30051         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
30052         needed. (this snippet comes from src/system.h).
30053
30054 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
30055
30056         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
30057
30058 2000-06-15  Paul Eggert  <eggert@twinsun.com>
30059
30060         * lib/human.c (adjust_value): New function.
30061         (human_readable_inexact): Apply rounding style even when
30062         printing approximate values.
30063
30064 2000-06-14  Paul Eggert  <eggert@twinsun.com>
30065
30066         * lib/human.c (human_readable_inexact): Allow an input block
30067         size that is not a multiple of the output block size, and vice versa.
30068         Reported by Piergiorgio Sartor.
30069
30070 2000-06-14  Paul Eggert  <eggert@twinsun.com>
30071
30072         * lib/getdate.y (get_date): Apply relative times after time
30073         zone indicator, not before.  Reported by Todd A. Jacobs.
30074
30075 2000-06-13  Jim Meyering  <meyering@lucent.com>
30076
30077         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
30078
30079         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
30080
30081 2000-06-12  Paul Eggert  <eggert@twinsun.com>
30082
30083         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
30084
30085 2000-06-12  Jim Meyering  <meyering@lucent.com>
30086
30087         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
30088         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
30089         optional argument.
30090         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
30091         the optional argument, `lib'.
30092
30093 2000-06-08  Jim Meyering  <meyering@lucent.com>
30094
30095         * m4/largefile.m4: Remove file (now that it's part of autoconf).
30096
30097 2000-06-04  Paul Eggert  <eggert@twinsun.com>
30098
30099         Rewrite largefile configuration so that we don't need to run
30100         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
30101         AC_CANONICAL_HOST in configure.in -- jmm]
30102
30103         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
30104         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
30105         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
30106         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
30107         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
30108         All uses changed.
30109         Instead of inspecting the output of getconf, try to compile the
30110         test program without and with the macro definition.
30111         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
30112         for getconf.  Instead, check for the needed flags by compiling
30113         test programs.
30114
30115 2000-06-04  Paul Eggert  <eggert@twinsun.com>
30116
30117         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
30118
30119 2000-06-04  Jim Meyering  <meyering@lucent.com>
30120
30121         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
30122         SunOS 4.1.4 for which gid_t is an unsigned type.
30123
30124 2000-06-03  Jim Meyering  <meyering@lucent.com>
30125
30126         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
30127         now that autoconf requires that.
30128
30129         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
30130         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
30131         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
30132
30133 2000-06-03  Jim Meyering  <meyering@lucent.com>
30134
30135         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
30136
30137 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
30138
30139         * m4/glibc21.m4: New file.
30140         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
30141
30142 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
30143
30144         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
30145         newer, don't install charset.alias.
30146         * lib/config.charset: Change the Linux/glibc rules so they become empty
30147         on glibc-2.1 or newer.
30148
30149 2000-06-02  Jim Meyering  <meyering@lucent.com>
30150
30151         * lib/mountlist.c: Back out last change.  Instead, do this...
30152         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
30153         me_dummy member using the same `ignore'-testing code.
30154         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
30155         fs_type strings.
30156         From Mark D. Roth.
30157
30158 2000-05-29  Jim Meyering  <meyering@lucent.com>
30159
30160         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
30161         mounts with the `ignore' attribute.  Based on a patch from
30162         Mark D. Roth.
30163
30164 2000-05-28  Jim Meyering  <meyering@lucent.com>
30165
30166         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
30167         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30168         * m4/stat.m4: Likewise.
30169         * m4/lstat.m4: Likewise.
30170         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
30171
30172         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
30173         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
30174
30175 2000-05-26  Jim Meyering  <meyering@lucent.com>
30176
30177         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
30178
30179 2000-05-24  Jim Meyering  <meyering@lucent.com>
30180
30181         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
30182         autoconf requires that.
30183         * m4/lib-check.m4: Likewise.
30184         * m4/jm-macros.m4: Likewise.
30185         * m4/strftime.m4: Likewise.
30186
30187         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
30188         AC_CHECK_DECLS, now that autoconf requires that.
30189
30190 2000-05-22  Jim Meyering  <meyering@lucent.com>
30191
30192         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30193         * m4/lstat.m4: Likewise.
30194
30195 2000-05-22  Jim Meyering  <meyering@lucent.com>
30196
30197         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
30198
30199 2000-05-20  Jim Meyering  <meyering@lucent.com>
30200
30201         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
30202         (jm_PREREQ): Use it.
30203
30204 2000-05-18  Jim Meyering  <meyering@lucent.com>
30205
30206         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
30207         back, too, since it may have been modified by allocate_entry.
30208         (hash_delete): Rewrite to use neither the assignment operator
30209         nor the comma operator in an if-expression.
30210
30211 2000-05-15  Paul Eggert  <eggert@twinsun.com>
30212
30213         * lib/closeout.c:
30214         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
30215         Remove; no longer needed.
30216         "quotearg.h": Add include.
30217         (file_name): Do not bother to explicitly initialize to NULL; it's less
30218         efficient on some hosts.
30219         (close_stdout_status): Remove test as to whether stdout was already
30220         closed; it breaks for the case "echo x | sort >&-".
30221         Quote file name colons.
30222         Do not assume that _("write error") lacks format strings.
30223
30224 2000-05-15  Jim Meyering  <meyering@lucent.com>
30225
30226         * lib/version-etc.c (version_etc_copyright): Update the copyright
30227         string used in all --version output.
30228
30229 2000-05-14  Jim Meyering  <meyering@lucent.com>
30230
30231         * lib/closeout.c (close_stdout_set_file_name): New function.
30232         (close_stdout_status): Use new file-scoped global.
30233         Return right away if fstat says the stdout file descriptor is invalid.
30234         * lib/closeout.h (close_stdout_set_file_name): Declare.
30235
30236 2000-05-10  Jim Meyering  <meyering@lucent.com>
30237
30238         * lib/closeout.c [default_exit_status]: New file-scoped variable.
30239         (close_stdout_set_status): New function.
30240         * lib/closeout.h (close_stdout_set_status): Declare.
30241
30242 2000-05-09  Jim Meyering  <meyering@lucent.com>
30243
30244         * m4/gettext.m4: Rename this...
30245         * m4/libintl.m4: ...to this.
30246
30247 2000-05-08  Jim Meyering  <meyering@lucent.com>
30248
30249         * lib/long-options.c: Don't include closeout.h.
30250         (parse_long_options): Don't call close_stdout for --version.
30251
30252 2000-05-06  Paul Eggert  <eggert@twinsun.com>
30253
30254         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
30255         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
30256         2.1.3 bug.  This avoids a clash when files like regex.c define
30257         _GNU_SOURCE.
30258
30259 2000-05-06  Jim Meyering  <meyering@lucent.com>
30260
30261         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
30262         (AC_REPLACE_FUNCS): Add strnlen.
30263
30264         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
30265         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
30266
30267         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
30268         AC_SEARCH_LIBS call for nanosleep.
30269         (LIB_NANOSLEEP): Set and AC_SUBST.
30270
30271 2000-05-06  Jim Meyering  <meyering@lucent.com>
30272
30273         * lib/strnlen.c: Undefine __strnlen and strnlen.
30274         [!weak_alias]: Define __strnlen to strnlen.
30275
30276         * lib/atexit.c: New file, from libiberty.
30277
30278 2000-05-06  Jim Meyering  <meyering@lucent.com>
30279
30280         * lib/closeout.c (close_stdout_status): Also check for errors on the
30281         stderr stream.
30282
30283 2000-05-05  Jim Meyering  <meyering@lucent.com>
30284
30285         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
30286         AC_SEARCH_LIBS call for clock_gettime.
30287         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
30288
30289         * m4/search-libs.m4: Update from autoconf.
30290
30291         su doesn't work on Solaris 2.6.
30292         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
30293         <shadow.h>.  Reported by Dragos Harabor.
30294
30295 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
30296
30297         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
30298         memcpy instead of xmalloc, xrealloc, path_concat.
30299         (locale_charset): Treat empty environment variables as absent.
30300         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
30301
30302 2000-05-04  Jim Meyering  <meyering@lucent.com>
30303
30304         * lib/getopt.c: Update from glibc.
30305         * lib/obstack.c: Likewise.
30306         * lib/obstack.h: Likewise.
30307         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
30308         file
30309
30310         * lib/regex.h: Likewise.
30311         * lib/strndup.c: Likewise.
30312         * lib/strnlen.c: New file, from glibc.
30313
30314 2000-05-03  Jim Meyering  <meyering@lucent.com>
30315
30316         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
30317
30318 2000-05-02  Paul Eggert  <eggert@twinsun.com>
30319
30320         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
30321         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
30322         compile-time test, rather than inspecting host and OS, to
30323         decide whether to define _LARGEFILE_SOURCE.
30324
30325 2000-05-01  Jim Meyering  <meyering@lucent.com>
30326
30327         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
30328
30329         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
30330         Based on a patch from Bruno Haible.
30331
30332 2000-05-01  Jim Meyering  <meyering@lucent.com>
30333
30334         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
30335
30336 2000-04-29  Jim Meyering  <meyering@lucent.com>
30337
30338         * lib/path-concat.c: Declare strdup only if it's not defined.
30339         * lib/canon-host.c: Likewise.
30340
30341 2000-04-28  Jim Meyering  <meyering@lucent.com>
30342
30343         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
30344         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
30345         is included first, then limits.h is included by locale.h by libintl.h.
30346         From John David Anglin.
30347
30348 2000-04-25  Jim Meyering  <meyering@lucent.com>
30349
30350         * lib/makepath.c (S_IRWXUGO): Define.
30351         (make_path): Always perform explicit chmod if MODE specifies any
30352         of the `special' permission bits.  Prompted by a bug report against
30353         install from Mate Wierdl and Joost van Baal.
30354
30355 2000-04-18  Jim Meyering  <meyering@lucent.com>
30356
30357         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
30358         (jm_PREREQ): Use it.
30359
30360 2000-04-18  Jim Meyering  <meyering@lucent.com>
30361
30362         * lib/README: New file.
30363
30364         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
30365         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
30366
30367 2000-04-17  Jim Meyering  <meyering@lucent.com>
30368
30369         Get it right :-)
30370         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
30371         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
30372         Suggestion from Akim Demaille.
30373
30374 2000-04-17  Jim Meyering  <meyering@lucent.com>
30375
30376         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
30377         the definition of it to rpl_strftime also defined-away the system's
30378         declaration.
30379
30380 2000-04-15  Jim Meyering  <meyering@lucent.com>
30381
30382         Use `C' to denote so-called `contiguous' files, the same way
30383         that tar does.
30384         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
30385         (ftypelet): Use S_ISCTG.
30386         From Michael Deutschmann.
30387
30388 2000-04-14  Jim Meyering  <meyering@lucent.com>
30389
30390         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
30391         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
30392         clobbered.
30393
30394 2000-04-14  Jim Meyering  <meyering@lucent.com>
30395
30396         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
30397
30398 2000-04-13  Jim Meyering  <meyering@lucent.com>
30399
30400         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
30401         AH_VERBATIM to insert required #ifndef into config.h.in.
30402         Suggestion from Akim Demaille.
30403
30404 2000-04-12  Jim Meyering  <meyering@lucent.com>
30405
30406         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
30407         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
30408         Christian Krackowizer.
30409
30410         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
30411         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
30412         (AC_SYS_LARGEFILE): Require.
30413         (AM_C_PROTOTYPES): Require.
30414
30415 2000-04-08  Jim Meyering  <meyering@lucent.com>
30416
30417         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
30418         names don't conflict.  Reported by Eli Zaretskii.
30419
30420 2000-04-07  Jim Meyering  <meyering@lucent.com>
30421
30422         * lib/putenv.c: Move inclusion of errno.h so it follows that of
30423         sys/types.h, to work around system header problems on AIX 3.2.5.
30424         From Bruno Haible.
30425
30426 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
30427
30428         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
30429         bug.  Deal with the different error behavior of Irix iconv.
30430
30431 2000-04-05  Paul Eggert  <eggert@twinsun.com>
30432
30433         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
30434         IRIX if the installer said otherwise.
30435
30436 2000-04-05  Jim Meyering  <meyering@lucent.com>
30437
30438         Portability tweaks required for ultrix4.3.
30439         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
30440         (jm_CHECK_DECLS): Add getutent to the list of functions.
30441         (_jm_DECL_HEADERS): Add utmpx.h.
30442         From John David Anglin.
30443
30444         * m4/strftime.m4: Back out the 2000-04-02 change.
30445         Instead of that change, simply undefine putenv in the test program.
30446
30447 2000-04-05  Jim Meyering  <meyering@lucent.com>
30448
30449         Portability tweaks required for ultrix4.3.
30450         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
30451         getutent.
30452         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
30453         * lib/canon-host.c: Declare strdup.
30454         * lib/path-concat.c: Likewise.
30455         From John David Anglin.
30456
30457 2000-04-04  Jim Meyering  <meyering@lucent.com>
30458
30459         Be more DOS 8.3-friendly.
30460         * lib/ref-add.sin: Renamed from ref-add.sed.in.
30461         * lib/ref-del.sin: Renamed from ref-del.sed.in.
30462         * lib/Makefile.am: Reflect renaming.
30463         Reported by Eli Zaretskii.
30464
30465         Use a temporary file name that won't clash with `charset.alias'
30466         in the DOS 8.3 name space.
30467         * lib/Makefile.am (charset_tmp): Define.
30468         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
30469         (uninstall-local): Likewise.
30470         Reported by Eli Zaretskii.
30471
30472 2000-04-03  Jim Meyering  <meyering@lucent.com>
30473
30474         * m4/gettext.m4: Fix typo in comment.
30475
30476         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
30477         textutils/configure.in).  Suggestion from Paul Eggert.
30478         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
30479
30480 2000-04-02  Paul Eggert  <eggert@twinsun.com>
30481
30482         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
30483         variable in the shell rather than using putenv, which isn't
30484         portable.  This avoids the configure-time inter-test dependency
30485         on the potentially-renamed putenv function.
30486
30487 2000-03-30  Paul Eggert  <eggert@twinsun.com>
30488
30489         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
30490         before checking struct stat.st_blksize, so that
30491         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
30492
30493 2000-03-29  Paul Eggert  <eggert@twinsun.com>
30494
30495         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
30496         since strftime.c uses HAVE_STRFTIME to decide whether to use
30497         the underlying strftime.
30498
30499 2000-03-29  Paul Eggert  <eggert@twinsun.com>
30500
30501         * lib/time/strftime.c (my_strftime): Make sure we call the system
30502         strftime, not ourselves, when invoking the underlying strftime.
30503
30504 2000-03-24  Jim Meyering  <meyering@lucent.com>
30505
30506         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
30507         (charset_alias): Define.
30508         (install-exec-local): Factor out common code.
30509         (uninstall-local): Split lines longer than 80.
30510         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
30511         (SUFFIXES): Define.
30512         (.sed.in.sed): New rule.  Don't redirect directly to $@.
30513         (CLEANFILES): Add ref-add.sed and ref-del.sed.
30514
30515 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
30516
30517         * lib/config.charset: Output a line containing "Packages using this
30518         file".
30519         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
30520         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
30521         ref-del.sed): New rules.
30522
30523 2000-03-17  Jim Meyering  <meyering@lucent.com>
30524
30525         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
30526         Otherwise, include <strings.h>
30527
30528 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
30529
30530         * lib/unicodeio.c (utf8_wctomb): New function.
30531         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
30532         format instead of in UCS-4 with platform dependent endianness.
30533
30534 2000-03-10  Jim Meyering  <meyering@lucent.com>
30535
30536         * m4/lib-check.m4: Look for getspnam in -lgen, too.
30537         From Marco Franzen.
30538
30539 2000-03-07  Paul Eggert  <eggert@twinsun.com>
30540
30541         * lib/savedir.c (savedir): Work even if directory size is
30542         negative; this can happen with some screwy NFS configurations.
30543
30544 2000-03-06  Jim Meyering  <meyering@lucent.com>
30545
30546         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
30547         if it's NULL (because we ran out of memory).  From Bruno Haible.
30548
30549 2000-03-05  Jim Meyering  <meyering@lucent.com>
30550
30551         * lib/localcharset.c ("path-concat.h"): Include.
30552         (get_charset_aliases): Use path_concat instead of ANSI string
30553         concatenation.
30554
30555         * lib/unicodeio.h (PARAMS): Define.
30556         Use it to guard prototype.
30557
30558 2000-03-04  Jim Meyering  <meyering@lucent.com>
30559
30560         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
30561         for lib/localcharset.c.
30562
30563 2000-03-04  Jim Meyering  <meyering@lucent.com>
30564
30565         * lib/Makefile.am (install-exec-local): Create $(libdir) before
30566         installing into it.
30567         (uninstall-local): Uncomment this rule so `make distcheck' works
30568         once again.
30569
30570         * lib/unicodeio.c (<errno.h>): Include it.
30571         (errno): Declare if not defined.
30572
30573         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
30574
30575         * lib/config.charset: New version, incorporating remarks from a linux
30576         i18n mailing list.  From Bruno Haible.
30577
30578 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
30579
30580         * m4/codeset.m4: New file.
30581         * m4/iconv.m4: New file.
30582         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
30583
30584 2000-03-03  Jim Meyering  <meyering@lucent.com>
30585
30586         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
30587
30588 2000-03-02  Jim Meyering  <meyering@lucent.com>
30589
30590         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
30591         the messages come out on separate lines.
30592
30593         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
30594         rather than jm_CHECK_DECLARATIONS.
30595         * m4/decl.m4: Remove now-unused file.
30596
30597         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
30598         geteuid.
30599
30600 2000-03-02  Jim Meyering  <meyering@lucent.com>
30601
30602         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
30603
30604 2000-03-01  Jim Meyering  <meyering@lucent.com>
30605
30606         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
30607         * lib/unicodeio.c: Likewise.
30608
30609 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
30610
30611         * lib/config.charset: New file.
30612         * lib/localcharset.c: New file.
30613         * lib/unicodeio.h, lib/unicodeio.c: New files.
30614         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
30615         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
30616         (noinst_HEADERS): Add unicodeio.h.
30617         (all-local, install-exec-local, charset.alias): New targets.
30618
30619 2000-02-28  Paul Eggert  <eggert@twinsun.com>
30620
30621         * lib/quotearg.c (ALERT_CHAR): New macro.
30622         (quotearg_buffer_restyled): Use it.
30623
30624 2000-02-27  Jim Meyering  <meyering@lucent.com>
30625
30626         * m4/check-decl.m4: Add getenv to the list.
30627
30628 2000-02-27  Jim Meyering  <meyering@lucent.com>
30629
30630         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
30631         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
30632
30633         * lib/backupfile.c: Guard inclusion of stdlib.h with
30634         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
30635         Declare malloc if needed.
30636
30637         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
30638         `#ifndef HAVE_DECL..'
30639         now that autoconf always defines the HAVE_DECL_ symbols.
30640         * lib/human.c: Likewise.
30641         * lib/same.c: Likewise.
30642         * lib/strtoumax.c: Likewise.
30643
30644         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
30645         declaration check was not run.
30646         * lib/hash.c: Likewise.
30647         * lib/human.c: Likewise.
30648         * lib/same.c: Likewise.
30649         * lib/strtoumax.c: Likewise.
30650
30651         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
30652         `.', then first look up the entire `.'-containing string as a login
30653         name.
30654
30655 2000-02-23  Jim Meyering  <meyering@lucent.com>
30656
30657         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
30658         in place of my hack.
30659
30660 2000-02-18  Paul Eggert  <eggert@twinsun.com>
30661
30662         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
30663         (textint): New typedef.
30664         (parser_control): Member year changed from int to textint.
30665         All uses changed.
30666         (YYSTYPE): Removed; replaced by %union with int and textint members.
30667         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
30668         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
30669         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
30670         (tSNUMBER, tUNUMBER): Now of type <textintval>.
30671         (date, number, to_year): Use width of number in digits, not its value,
30672         to determine whether it's a 2-digit year, or a 2-digit time.
30673         (yylex): Store number of digits of numeric tokens.
30674         Reported by John Kendall.
30675
30676         (parser_control): Changed from struct parser_control to typedef (for
30677         consistency).  All uses changed.
30678
30679         (tID): Removed; not used.
30680         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
30681
30682 2000-02-14  Paul Eggert  <eggert@twinsun.com>
30683
30684         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
30685         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
30686
30687 2000-02-12  Jim Meyering  <meyering@lucent.com>
30688
30689         * lib/userspec.c (ISDIGIT): Define it.
30690         (isdigit): Remove definition.
30691         (is_number): Use ISDIGIT, not isdigit.
30692         <libintl.h>: Include.
30693         (_ and N_): Define.
30694         (parse_user_spec): Mark translatable strings.
30695
30696 2000-02-10  Jim Meyering  <meyering@lucent.com>
30697
30698         With these changes, nanosleep.[ch] are finally enough like the other
30699         lib/* replacement files to compile on a few more losing systems.
30700
30701         * lib/nanosleep.h: Don't include config.h.
30702         Remove prototype from declaration of nanosleep.
30703         (PARAMS): Remove now-unneeded definition.
30704         * lib/nanosleep.c: #undef nanosleep.
30705         (rpl_nanosleep): Rename from nanosleep.
30706
30707 2000-02-10  Jim Meyering  <meyering@lucent.com>
30708
30709         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
30710         gnu_nanosleep to rpl_nanosleep.
30711
30712 2000-02-09  Jim Meyering  <meyering@lucent.com>
30713
30714         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
30715         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
30716
30717 2000-02-08  Akim Demaille  <akim@epita.fr>
30718
30719         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
30720         `[' and `]' and remove uses of `changequote'.
30721         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
30722         (AC_SYS_LARGEFILE): Likewise.
30723         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30724         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
30725         of changequote.
30726         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
30727         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
30728         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
30729         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
30730
30731 2000-02-05  Jim Meyering  <meyering@lucent.com>
30732
30733         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
30734         Remove explicit use of AC_HEADER_TIME.  It is required by
30735         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
30736         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
30737         in autoconf whereby the expansion of the latter ended up preceding
30738         the expansion of its prerequisite, AC_HEADER_TIME.
30739         Reported by Volker Borchert.
30740
30741 2000-02-03  Jim Meyering  <meyering@lucent.com>
30742
30743         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
30744
30745 2000-02-03  Jim Meyering  <meyering@lucent.com>
30746
30747         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
30748         rather than with `#if HAVE_UTMPNAME'.
30749
30750 2000-02-02  Jim Meyering  <meyering@lucent.com>
30751
30752         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
30753         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
30754         Reported by Eli Zaretskii.
30755
30756 2000-02-01  Jim Meyering  <meyering@lucent.com>
30757
30758         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
30759
30760 2000-01-31  Jim Meyering  <meyering@lucent.com>
30761
30762         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
30763         functions.  Add the time.h and sys/time.h headers along with the
30764         AC_REQUIRE'ment of AC_HEADER_TIME.
30765
30766 2000-01-31  Jim Meyering  <meyering@lucent.com>
30767
30768         * lib/nanosleep.h (nanosleep): Guard declaration with
30769         `#if ! HAVE_DECL_NANOSLEEP'.
30770         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
30771         the declaration in that vendor's sys/timers.h.
30772         Reported by Christian Krackowizer.
30773
30774         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
30775         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
30776         (ISPRINT): Likewise.
30777         Reported by Tom Tromey.
30778
30779 2000-01-30  Jim Meyering  <meyering@lucent.com>
30780
30781         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
30782
30783         * m4/prereq.m4 (utmp_includes): Define.
30784         Check for ut_user and ut_name members in both struct utmpx
30785         and struct utmp.
30786
30787 2000-01-30  Jim Meyering  <meyering@lucent.com>
30788
30789         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
30790         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
30791         header files where only utmpx.ut_user is declared.
30792
30793         * lib/readutmp.h (UT_USER): Define.
30794
30795 2000-01-29  Jim Meyering  <meyering@lucent.com>
30796
30797         * m4/lib-check.m4: New file containing library-related checks from
30798         fileutils and sh-utils (textutils had none).
30799
30800 2000-01-28  Jim Meyering  <meyering@lucent.com>
30801
30802         * m4/perl.m4: Change format of warning message to look more like that
30803         from the missing script.  Suggestion from François Pinard.
30804
30805 2000-01-25  Jim Meyering  <meyering@lucent.com>
30806
30807         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
30808         well as time.h in the compile check.
30809         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
30810         Fix typo in cross-compiling case: s/yes/no/.
30811
30812 2000-01-23  Jim Meyering  <meyering@lucent.com>
30813
30814         * m4/jm-macros.m4: Move df-related tests here from
30815         fileutils/configure.in
30816
30817         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
30818         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
30819
30820         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
30821         s/space/ac_fsusage_space/.
30822         (jm_FILE_SYSTEM_USAGE): Take two parameters.
30823
30824         * m4/ftruncate.m4: New file (derived from part of
30825         fileutils/configure.in).
30826         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
30827         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
30828
30829         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
30830         AC_SUBST these here, rather than just in sh-util/configure.in, so
30831         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
30832         all the same.
30833         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
30834         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
30835         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
30836         (AC_SUBST(POW_LIBM)): Likewise.
30837         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
30838
30839 2000-01-23  Jim Meyering  <meyering@lucent.com>
30840
30841         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
30842         obstack.c.
30843
30844 2000-01-22  Jim Meyering  <meyering@lucent.com>
30845
30846         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
30847
30848         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
30849
30850         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
30851         configure.in
30852         (AC_CHECK_HEADERS): Likewise for sh-utils.
30853         (AC_CHECK_HEADERS): Likewise for textutils.
30854         Merge the three lists of headers.
30855
30856         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
30857         from fileutils' configure.in.
30858
30859         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
30860         code. Moved tests into their own function (_jm_DECL_HEADERS) in
30861         check-decl.m4.
30862
30863         * m4/check-decl.m4: Use #if rather than #ifdef.
30864         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
30865         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
30866         (_jm_DECL_HEADERS): Define new function.
30867         (jm_CHECK_DECLARATIONS): Require it.
30868
30869 2000-01-22  Jim Meyering  <meyering@lucent.com>
30870
30871         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
30872         [! HAVE_DECL_STRTOULL]: Declare strtoull.
30873         Required for some AIX systems.  Reported by Christian Krackowizer.
30874         [TESTING] (main): New function.
30875
30876         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
30877         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
30878         letters.
30879
30880         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
30881         iswprint.
30882
30883         * lib/strverscmp.c (ISDIGIT): Define.
30884         (strverscmp): Use ISDIGIT, not isdigit.
30885
30886 2000-01-19  Jim Meyering  <meyering@lucent.com>
30887
30888         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
30889         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
30890         defines `struct timespec' in <sys/time.h>
30891
30892         * m4/c-bs-a.m4: Remove uses of changequote altogether.
30893         Thanks to Akim for explaining.
30894
30895 2000-01-17  Paul Eggert  <eggert@twinsun.com>
30896
30897         * lib/nanosleep.c (nanosleep):
30898         Don't use SA_INTERRUPT to decide whether to call sigaction, as
30899         POSIX.1 doesn't require SA_INTERRUPT and some systems
30900         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
30901         it's been part of POSIX.1 since day 1 (in 1988).
30902
30903 2000-01-17  Jim Meyering  <meyering@lucent.com>
30904
30905         * lib/interlock: Remove unused file.  Reported by François Pinard.
30906
30907 2000-01-16  Paul Eggert  <eggert@twinsun.com>
30908
30909         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
30910         alert, backslash, formfeed, and vertical tab unnecessarily in
30911         shell quoting style.
30912
30913 2000-01-16  Jim Meyering  <meyering@lucent.com>
30914
30915         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
30916         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
30917         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
30918         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
30919
30920 2000-01-16  Jim Meyering  <meyering@lucent.com>
30921
30922         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
30923         because the latter didn't work.
30924
30925 2000-01-15  Jim Meyering  <meyering@lucent.com>
30926
30927         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
30928         (AC_REPLACE_FUNCS): Add memcpy and memset.
30929         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
30930         Add strpbrk.
30931         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
30932
30933 2000-01-12  Jim Meyering  <meyering@lucent.com>
30934
30935         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
30936         (jm_PREREQ): Use it.
30937         (jm_PREREQ_READUTMP): New macro.
30938         (jm_PREREQ): Use it.
30939
30940 2000-01-11  Paul Eggert  <eggert@twinsun.com>
30941
30942         Quote multibyte characters correctly.
30943         * m4/c-bs-a.m4: New file.
30944         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
30945         (jm_PREREQ): Use it.
30946
30947 2000-01-11  Paul Eggert  <eggert@twinsun.com>
30948
30949         * m4/uintmax_t.m4: Port to autoconf 2.13.
30950
30951 2000-01-08  Jim Meyering  <meyering@ascend.com>
30952
30953         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
30954         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
30955
30956 2000-01-04  Jim Meyering  <meyering@ascend.com>
30957
30958         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
30959         jm_STRUCT_DIRENT_D_TYPE.
30960         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
30961         jm_STRUCT_DIRENT_D_INO.
30962         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
30963         jm_STRUCT_UTIMBUF.
30964         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
30965         renamings.
30966         * m4/utime.m4: Likewise.
30967
30968         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
30969         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
30970
30971 2000-01-03  Paul Eggert  <eggert@twinsun.com>
30972
30973         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
30974         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
30975
30976 2000-01-02  Jim Meyering  <meyering@ascend.com>
30977
30978         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
30979         remember if this is necessary.
30980
30981 1999-12-26  Jim Meyering  <meyering@ascend.com>
30982
30983         * m4/jm-macros.m4: Use it here.
30984         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
30985
30986 1999-12-23  Jim Meyering  <meyering@ascend.com>
30987
30988         * m4/jm-macros.m4: Check for clock_gettime (moved from
30989         fileutils/configure.in)
30990         Check for gettimeofday.
30991
30992 1999-12-20  Jim Meyering  <meyering@ascend.com>
30993
30994         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
30995         autoconf-2.14a-1999-12-20.
30996
30997 1999-12-19  Jim Meyering  <meyering@ascend.com>
30998
30999         * m4/lstat-slash.m4: New file.
31000         * m4/jm-macros.m4: Use the new macro:
31001         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31002
31003 1999-12-07  Jim Meyering  <meyering@ascend.com>
31004
31005         * m4/perl.m4: Require that File::Compare be available, too.
31006         Too many systems seem to lack it.
31007
31008         * m4/strftime.m4: Add checks for most of the cpp macros tested in
31009         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
31010
31011 1999-11-18  Paul Eggert  <eggert@twinsun.com>
31012
31013         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
31014         problem with the QNX 4.25 shell, which doesn't propagate exit
31015         status of failed commands inside shell assignments.
31016
31017 1999-11-17  Jim Meyering  <meyering@ascend.com>
31018
31019         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
31020
31021 1999-11-07  Jim Meyering  <meyering@ascend.com>
31022
31023         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
31024
31025 1999-11-06  Jim Meyering  <meyering@ascend.com>
31026
31027         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
31028         * m4/jm-macros.m4 (jm_MACROS): Use it here.
31029
31030 1999-11-05  Jim Meyering  <meyering@ascend.com>
31031
31032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
31033         configure.in of textutils, fileutils, and sh-utils into this one
31034         (shared between those packages) file.
31035         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
31036         AC_STRUCT_ST_BLKSIZE.
31037
31038 1999-11-03  Jim Meyering  <meyering@ascend.com>
31039
31040         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
31041         of AC_CHECK_TYPE checks includes unistd.h.
31042         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
31043         Suggestion from Akim Demaille.
31044
31045 1999-10-30  Jim Meyering  <meyering@ascend.com>
31046
31047         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
31048         m4-quoted string.
31049         * m4/ls-mntd-fs.m4: Likewise.
31050         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
31051         * m4/jm-winsz1.m4: Likewise.
31052
31053         * m4/const.m4: Remove file, since the fix made it into the experimental
31054         version of autoconf.
31055         * m4/mktime.m4: Likewise.
31056
31057         * m4/check-type.m4: Remove file, now that the latest version of
31058         AC_CHECK_TYPE takes a third arg to specify additional #includes.
31059
31060         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
31061         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
31062         AC_CHECK_TYPE.
31063
31064 1999-10-04  Jim Meyering  <meyering@ascend.com>
31065
31066         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
31067
31068 1999-09-22  Paul Eggert  <eggert@twinsun.com>
31069
31070         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
31071         2.95.1 bug with HP-UX 10.20.
31072
31073 1999-09-17  Jim Meyering  <meyering@ascend.com>
31074
31075         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
31076         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
31077         due to missing strdup (against sh-utils-2.0).
31078
31079 1999-08-29  Jim Meyering  <meyering@ascend.com>
31080
31081         * m4/jm-macros.m4: Require jm_BISON.
31082         * m4/bison.m4: New file.
31083
31084 1999-08-17  Paul Eggert  <eggert@twinsun.com>
31085
31086         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
31087         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
31088
31089 1999-08-05  Jim Meyering  <meyering@ascend.com>
31090
31091         * m4/getline.m4: Rename test file from conftestdata to conftest.data
31092         to avoid conflicts with `conftest' on 8+3 filesystems.
31093         Suggestion from Eli Zaretskii.
31094
31095 1999-08-04  Jim Meyering  <meyering@ascend.com>
31096
31097         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
31098         fileutils and sh-utils (textutils's getline test was inadequate).
31099         (AM_FUNC_GETLINE): Run this test.
31100         (AC_CHECK_FUNCS): Check for getdelim.
31101         Reported by Bob Proulx.
31102
31103 1999-08-02  Jim Meyering  <meyering@ascend.com>
31104
31105         * m4/jm-macros.m4: Add a comment.
31106
31107 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31108
31109         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
31110         <inttypes.h> defines strtoumax as a macro (and not as a
31111         function).
31112
31113 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31114
31115         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
31116         that we can shift, multiply and divide unsigned long long
31117         values; Ultrix cc can't do it.
31118
31119 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31120
31121         * m4/mktime.m4: New file, which is a preview of what should appear
31122         in the next public autoconf release.
31123
31124 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31125
31126         * m4/lfs.m4: Remove this file.
31127         * m4/largefile.m4: New file.  It contains the old contents of
31128         lfs.m4, except that all names with prefix AC_LFS have been
31129         changed to use the prefix AC_SYS_LARGEFILE instead, to be
31130         compatible with future autoconf versions.  Also, some minor m4
31131         quoting problems have been fixed.
31132
31133 1999-08-01  Paul Eggert  <eggert@twinsun.com>
31134
31135         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
31136         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
31137         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
31138         and simplify the shell code.
31139
31140 1999-08-01  Jim Meyering  <meyering@ascend.com>
31141
31142         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
31143         m4.
31144
31145 1999-07-20  Jim Meyering  <meyering@ascend.com>
31146
31147         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
31148
31149 1999-07-15  Jim Meyering  <meyering@ascend.com>
31150
31151         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
31152
31153 1999-05-22  Jim Meyering  <meyering@ascend.com>
31154
31155         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
31156
31157 1999-05-20  Jim Meyering  <meyering@ascend.com>
31158
31159         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
31160         Add a colon after each `then' in case $4 is empty.
31161
31162 1999-05-16  Jim Meyering  <meyering@ascend.com>
31163
31164         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
31165
31166 1999-05-10  Jim Meyering  <meyering@ascend.com>
31167
31168         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
31169
31170         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
31171         AC_FUNC_MKTIME.
31172
31173 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
31174
31175         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
31176
31177 1999-05-04  Paul Eggert  <eggert@twinsun.com>
31178
31179         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
31180         not CPPFLAGS, so that linking works correctly in IRIX.
31181
31182 1999-04-30  Paul Eggert  <eggert@twinsun.com>
31183
31184         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
31185
31186 1999-04-20  Paul Eggert  <eggert@twinsun.com>
31187
31188         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
31189         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
31190         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
31191         jm_AC_TYPE_UNSIGNED_LONG_LONG.
31192         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
31193
31194         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
31195
31196 1999-04-20  Jim Meyering  <meyering@ascend.com>
31197
31198         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
31199         AC_REPLACE xstroull if necessary.  From Paul Eggert.
31200         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
31201
31202 1999-04-18  Jim Meyering  <meyering@ascend.com>
31203
31204         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
31205         * m4/jm-macros.m4: Use it.
31206
31207 1999-04-06  Jim Meyering  <meyering@ascend.com>
31208
31209         * m4/strftime.m4: Remove test for %f.
31210
31211 1999-03-29  Jim Meyering  <meyering@ascend.com>
31212
31213         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
31214         superset of the AC_TYPE_* checks in the textutils, fileutils,
31215         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
31216         AC_TYPE_PID_T.
31217
31218 1999-03-28  Jim Meyering  <meyering@ascend.com>
31219
31220         * m4/jm-macros.m4: Define GNU_PACKAGE here.
31221         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
31222         replaced e.g., in the *.sh files of the sh-utils.
31223
31224 1999-03-20  Jim Meyering  <meyering@ascend.com>
31225
31226         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
31227         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
31228         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
31229
31230 1999-03-19  Jim Meyering  <meyering@ascend.com>
31231
31232         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
31233
31234 1999-03-12  Jim Meyering  <meyering@ascend.com>
31235
31236         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
31237
31238 1999-03-07  Jim Meyering  <meyering@ascend.com>
31239
31240         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
31241         declared.
31242
31243 1999-02-17  Jim Meyering  <meyering@ascend.com>
31244
31245         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
31246         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
31247
31248 1999-02-07  Jim Meyering  <meyering@ascend.com>
31249
31250         * m4/group-member.m4: New file -- extracted from sh-utils'
31251         configure.in.
31252
31253         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
31254         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
31255
31256 1999-02-06  Jim Meyering  <meyering@ascend.com>
31257
31258         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
31259         * m4/fnmatch.m4: Likewise.
31260         * m4/getgroups.m4: Likewise.
31261         * m4/lstat.m4: Likewise.
31262         * m4/malloc.m4: Likewise.
31263         * m4/putenv.m4: Likewise.
31264         * m4/realloc.m4: Likewise.
31265         * m4/regex.m4: Likewise.
31266         * m4/stat.m4: Likewise.
31267         * m4/strftime.m4: Likewise.
31268         Suggestion from Alain Magloire.
31269
31270         * m4/chown.m4: Use `.$ac_objext', not `.o'.
31271         * m4/fnmatch.m4: Likewise.
31272         * m4/getgroups.m4: Likewise.
31273         * m4/getline.m4: Likewise.
31274         * m4/lstat.m4: Likewise.
31275         * m4/malloc.m4: Likewise.
31276         * m4/memcmp.m4: Likewise.
31277         * m4/putenv.m4: Likewise.
31278         * m4/realloc.m4: Likewise.
31279         * m4/regex.m4: Likewise.
31280         * m4/stat.m4: Likewise.
31281         * m4/strftime.m4: Likewise.
31282         Suggestion from Alain Magloire.
31283
31284         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
31285         an argument.
31286
31287         * m4/regex.m4: Add a run-time Test for proper operation of
31288         re_compile_pattern.
31289
31290 1999-01-31  Jim Meyering  <meyering@ascend.com>
31291
31292         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
31293
31294 1999-01-30  Jim Meyering  <meyering@ascend.com>
31295
31296         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
31297
31298         * m4/jm-mktime.m4: Make this a wrapper around the official
31299         AM_FUNC_MKTIME rather than my private copy, now that the official one
31300         is up to date.
31301         * m4/mktime.m4: Remove file.
31302
31303         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
31304         * m4/uptime.m4: Likewise.
31305         * m4/uintmax_t.m4: Likewise.
31306
31307 1999-01-28  Jim Meyering  <meyering@ascend.com>
31308
31309         * m4/jm-macros.m4: Use jm_AFS.
31310         * m4/afs.m4: New file (from fileutils' configure.in).
31311
31312         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
31313         * m4/chown.m4: Likewise.
31314         * m4/d-ino.m4: Likewise.
31315         * m4/d-type.m4: Likewise.
31316         * m4/fnmatch.m4: Likewise.
31317         * m4/getgroups.m4: Likewise.
31318         * m4/gettext.m4: Likewise.
31319         * m4/jm-mktime.m4: Likewise.
31320         * m4/jm-winsz2.m4: Likewise.
31321         * m4/lcmessage.m4: Likewise.
31322         * m4/ls-mntd-fs.m4: Likewise.
31323         * m4/malloc.m4: Likewise.
31324         * m4/memcmp.m4: Likewise.
31325         * m4/putenv.m4: Likewise.
31326         * m4/realloc.m4: Likewise.
31327         * m4/st_mtim.m4: Likewise.
31328         * m4/strftime.m4: Likewise.
31329
31330 1999-01-16  Jim Meyering  <meyering@ascend.com>
31331
31332         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
31333         (ARGMATCH_DIE_DECL): Define.
31334
31335 1999-01-12  Jim Meyering  <meyering@ascend.com>
31336
31337         * m4/Makefile.am.in: Rewrite to avoid using fmt.
31338         Reported by Lars Hecking.
31339
31340 1999-01-10  Jim Meyering  <meyering@ascend.com>
31341
31342         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
31343         gross kludge.
31344         * m4/inttypes_h.m4: Likewise.
31345         * m4/lstat.m4: Likewise.
31346         * m4/malloc.m4: Likewise.
31347         * m4/readdir.m4: Likewise.
31348         * m4/realloc.m4: Likewise.
31349         * m4/st_dm_mode.m4: Likewise.
31350         * m4/stat.m4: Likewise.
31351         * m4/utimbuf.m4: Likewise.
31352         * m4/utimes.m4: Likewise.
31353
31354         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
31355         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
31356         comments in config.h.in are meaningful.
31357
31358         * m4/jm-macros.m4: Require autoconf-2.13 here.
31359
31360         * m4/regex.m4: By default, don't use the included regex.c on systems
31361         with glibc 2.  Suggestion from Uli Drepper.
31362
31363 1999-01-02  Jim Meyering  <meyering@ascend.com>
31364
31365         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
31366
31367 1998-12-18  Jim Meyering  <meyering@ascend.com>
31368
31369         * m4/Makefile.am.in (Makefile.am): Simplify rule.
31370         Based on a suggestion from Lars Hecking.
31371
31372 1998-11-16  Paul Eggert  <eggert@twinsun.com>
31373
31374         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
31375
31376 1998-11-16  Jim Meyering  <meyering@ascend.com>
31377
31378         * m4/lfs.m4: Double-quote the `uname...` expression.
31379
31380 1998-11-14  Jim Meyering  <meyering@ascend.com>
31381
31382         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
31383         * m4/stat.m4: Likewise.
31384
31385 1998-11-03  Jim Meyering  <meyering@ascend.com>
31386
31387         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
31388         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
31389
31390 1998-10-18  Jim Meyering  <meyering@ascend.com>
31391
31392         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
31393
31394 1998-10-17  Jim Meyering  <meyering@ascend.com>
31395
31396         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
31397         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
31398         calls for those previously hard-coded headers.  Instead, take a new
31399         parameter.
31400         (jm_CHECK_DECLARATIONS): Reflect interface change.
31401         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
31402         (jm_CHECK_DECL_LOCALTIME_R): New macro.
31403
31404         * m4/mktime.m4: Test for spring-forward gap before long-running test.
31405
31406 1998-10-14  Jim Meyering  <meyering@ascend.com>
31407
31408         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
31409         instead of "TZ=America/Vancouver".  From Paul Eggert.
31410
31411 1998-10-11  Jim Meyering  <meyering@ascend.com>
31412
31413         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
31414         This adds a test for a recently added compatibility fix for mktime.c.
31415         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
31416
31417 1998-09-27  Jim Meyering  <meyering@ascend.com>
31418
31419         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
31420
31421         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
31422         ../configure.in, including a change from Gordon Matzigkeit to allow
31423         cross-compiling for the Hurd.
31424
31425         * m4/glibc.m4: New file/macro to test for the GNU C Library
31426         versions 1 and 2.  From Gordon Matzigkeit.
31427         Indent.
31428
31429 1998-09-21  Jim Meyering  <meyering@ascend.com>
31430
31431         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
31432
31433 1998-08-18  Paul Eggert  <eggert@twinsun.com>
31434
31435         Port nanosecond-resolution times to UnixWare 2.1.2 and
31436         pedantic Solaris 2.6.
31437
31438         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
31439         AC_STRUCT_ST_MTIM.
31440         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
31441         Generate name of ns member, instead of just 1 or undef.
31442         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
31443
31444 1998-08-15  Jim Meyering  <meyering@ascend.com>
31445
31446         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
31447         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
31448         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
31449         instead of jm_TYPE_SSIZE_T.
31450
31451 1998-08-12  Jim Meyering  <meyering@ascend.com>
31452
31453         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
31454
31455 1998-08-02  Jim Meyering  <meyering@ascend.com>
31456
31457         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
31458         in acconfig.h manually.
31459
31460 1998-07-31  Paul Eggert  <eggert@twinsun.com>
31461
31462         * m4/st_mtim.m4: New file.
31463
31464 1998-07-28  Jim Meyering  <meyering@ascend.com>
31465
31466         * m4/utimes.m4: Undef stat.
31467
31468 1998-07-25  Jim Meyering  <meyering@ascend.com>
31469
31470         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
31471         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
31472
31473 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
31474
31475         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
31476         uid and gid actually remain unchanged.
31477
31478 1998-07-07  Jim Meyering  <meyering@ascend.com>
31479
31480         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
31481
31482 1998-07-04  Jim Meyering  <meyering@ascend.com>
31483
31484         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
31485         to prove that this macro can be used in packages without regex.c.
31486
31487 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
31488
31489         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
31490         is to be used.
31491
31492 1998-07-03  Jim Meyering  <meyering@ascend.com>
31493
31494         * m4/gettext.m4: Add -lintl if it's found to be necessary.
31495
31496         * m4/gettext.m4: New file -- from gettext-0.10.35.
31497         * m4/lcmessage.m4: Likewise.
31498         * m4/progtest.m4: Likewise.
31499
31500         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
31501         * m4/jm-macros.m4: Require the new macro.
31502
31503 1998-06-29  Jim Meyering  <meyering@ascend.com>
31504
31505         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
31506         for the definition of NGROUPS (used in a system header included
31507         by sys/mount.h).
31508
31509 1998-06-28  Jim Meyering  <meyering@ascend.com>
31510
31511         * m4/ls-mntd-fs.m4: New file.
31512         * m4/fstypename.m4: New file.
31513
31514         * m4/jm-macros.m4: Require the new macro.
31515         * m4/jm-glibc-io.m4: New file.
31516
31517 1998-05-19  Jim Meyering  <meyering@ascend.com>
31518
31519         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
31520         * m4/lchown.m4: New file.
31521
31522         * m4/Makefile.am.in: New file.
31523         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
31524
31525 1998-05-14  Jim Meyering  <meyering@ascend.com>
31526
31527         * m4/Makefile.am (EXTRA_DIST): Add them.
31528         * m4/jm-macros.m4: New file.
31529         * m4/utimbuf.m4: New file.
31530
31531 1998-05-12  Jim Meyering  <meyering@ascend.com>
31532
31533         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
31534
31535 1998-05-11  Jim Meyering  <meyering@ascend.com>
31536
31537         * m4/isc-posix.m4: New file.
31538
31539 1998-05-10  Jim Meyering  <meyering@ascend.com>