1 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
3 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
6 2007-06-11 Bruno Haible <bruno@clisp.org>
8 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
10 Reported by Eric Blake.
12 2007-06-10 Bruno Haible <bruno@clisp.org>
14 Prepare vasnprintf code for use with Unicode strings.
15 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
16 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
18 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19 a_u32_string variants.
20 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
21 * lib/printf-args.c: Don't include config.h and the specification
22 header if PRINTF_FETCHARGS is already defined.
23 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
25 TYPE_U16_STRING, TYPE_U32_STRING.
26 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
27 u16_directive, u16_directives, u32_directive, u32_directives): New
29 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31 * lib/printf-parse.c: Don't include config.h and the specification
32 header if PRINTF_PARSE is already defined. Eliminate the set of
33 parameters for WIDE_CHAR_VERSION; the user of this file must provide
34 them now. Include c-ctype.h.
35 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
36 directive and CHAR_T_ONLY_ASCII.
37 * lib/vasnprintf.c: Don't include config.h and the specification header
38 if VASNPRINTF is already defined.
39 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
42 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
44 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47 pad_ourselves also in this case, with the 'c' and 's' directives, and
48 with a different notion of "width".
49 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51 2007-06-10 Bruno Haible <bruno@clisp.org>
53 * modules/unistr/u32-mbsnlen: New file.
54 * lib/unistr/u32-mbsnlen.c: New file.
56 * modules/unistr/u16-mbsnlen: New file.
57 * lib/unistr/u16-mbsnlen.c: New file.
59 * modules/unistr/u8-mbsnlen: New file.
60 * lib/unistr/u8-mbsnlen.c: New file.
62 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65 2007-06-10 Bruno Haible <bruno@clisp.org>
67 * lib/string_.h (mbsnlen): New declaration.
68 * lib/mbsnlen.c: New file.
69 * m4/mbsnlen.m4: New file.
70 * modules/mbsnlen: New file.
71 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
72 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
73 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
75 2007-06-10 Bruno Haible <bruno@clisp.org>
77 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
79 2007-06-10 Bruno Haible <bruno@clisp.org>
81 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
82 * lib/mbuiter.h: Likewise.
84 2007-06-10 Bruno Haible <bruno@clisp.org>
86 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
89 2007-06-10 Karl Berry <karl@gnu.org>
91 * config/srclist.txt: remove gettext entries, Bruno prefers
92 to update individually.
94 2007-06-10 Bruno Haible <bruno@clisp.org>
96 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
97 'maxlen'. Ensure only length + width bytes are allocated, not
100 2007-06-09 Bruno Haible <bruno@clisp.org>
102 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
103 (CHAR_T): Remove macro.
104 (VASNPRINTF): Update.
106 2007-06-09 Bruno Haible <bruno@clisp.org>
108 * MODULES.html.sh (Unicode string functions): Add the new modules.
110 * modules/uniconv/u32-conv-to-enc: New file.
111 * lib/uniconv/u32-conv-to-enc.c: New file.
112 * modules/uniconv/u32-conv-to-enc-tests: New file.
113 * tests/uniconv/test-u32-conv-to-enc.c: New file.
115 * modules/uniconv/u16-conv-to-enc: New file.
116 * lib/uniconv/u16-conv-to-enc.c: New file.
117 * lib/uniconv/u-conv-to-enc.h: New file.
118 * modules/uniconv/u16-conv-to-enc-tests: New file.
119 * tests/uniconv/test-u16-conv-to-enc.c: New file.
121 * modules/uniconv/u8-conv-to-enc: New file.
122 * lib/uniconv/u8-conv-to-enc.c: New file.
123 * modules/uniconv/u8-conv-to-enc-tests: New file.
124 * tests/uniconv/test-u8-conv-to-enc.c: New file.
126 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
127 u32_conv_to_encoding): New declarations.
129 2007-06-09 Bruno Haible <bruno@clisp.org>
131 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
133 2007-06-09 Bruno Haible <bruno@clisp.org>
135 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
136 * modules/malloca: Renamed from modules/allocsa, updated.
137 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
138 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
139 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
140 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
141 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
142 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
143 * modules/xmalloca: Renamed from modules/xallocsa, updated.
144 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
145 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
146 * modules/c-strcasestr (Depends-on): Update.
147 * lib/c-strcasestr.c: Update.
148 * modules/c-strstr (Depends-on): Update.
149 * lib/c-strstr.c: Update.
150 * modules/canonicalize-lgpl (Depends-on): Update.
151 * lib/canonicalize-lgpl.c: Update.
152 * modules/clean-temp (Depends-on): Update.
153 * lib/clean-temp.c: Update.
154 * modules/csharpcomp (Depends-on): Update.
155 * lib/csharpcomp.c: Update.
156 * modules/csharpexec (Depends-on): Update.
157 * lib/csharpexec.c: Update.
158 * modules/javacomp (Depends-on): Update.
159 * lib/javacomp.c: Update.
160 * modules/javaexec (Depends-on): Update.
161 * lib/javaexec.c: Update.
162 * modules/mbscasestr (Depends-on): Update.
163 * lib/mbscasestr.c: Update.
164 * modules/mbsstr (Depends-on): Update.
165 * lib/mbsstr.c: Update.
166 * modules/setenv (Depends-on): Update.
167 * lib/setenv.c: Update.
168 * modules/strcasestr (Depends-on): Update.
169 * lib/strcasestr.c: Update.
170 * modules/striconveha (Depends-on): Update.
171 * lib/striconveha.c: Update.
172 * modules/relocatable-prog-wrapper (Files): Update.
173 * lib/relocwrapper.c: Update.
174 * build-aux/install-reloc: Update.
175 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
177 2007-06-08 Bruno Haible <bruno@clisp.org>
180 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
181 * lib/fpurge.c (fpurge): Likewise.
182 * lib/freading.c (freading): Likewise.
183 * lib/fseeko.c (rpl_fseeko): Likewise.
184 * lib/fseterr.c (fseterr): Likewise.
185 * lib/fwriting.c (fwriting): Likewise.
186 * tests/test-fflush.c (main): Avoid a failure on uClibc.
188 2007-06-08 Bruno Haible <bruno@clisp.org>
190 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
191 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
192 * modules/gettext (Files): Add m4/intlmacosx.m4.
194 2007-06-07 Bruno Haible <bruno@clisp.org>
196 * modules/localename-tests: New file.
197 * tests/test-localename.c: New file.
199 New module 'localename'.
200 * lib/localename.h: New file.
201 * lib/localename.c: New file, from GNU gettext.
202 * m4/localename.m4: New file.
203 * modules/localename: New file.
205 2007-06-07 Bruno Haible <bruno@clisp.org>
207 Work around the lack of <wchar.h> on some builds of uClibc.
208 * doc/headers/wchar.texi: Update.
209 * lib/wchar_.h: Include <wchar.h> only if it exists.
210 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
211 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
212 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
214 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
215 * modules/mbfile (Depends-on): Add wchar.
216 * modules/mbiter (Depends-on): Likewise.
217 * modules/mbuiter (Depends-on): Likewise.
218 Reported by Simon Josefsson.
220 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
222 Work around problem reported by Steven M. Schweda in
223 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
224 Tru64 5.1B with the Compaq compiler environment installed declares
225 an 'isblank' function but does not define it in the C library.
226 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
227 * lib/regex_internal.h (isblank): Likewise.
228 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
229 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
231 2007-06-05 Bruno Haible <bruno@clisp.org>
233 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
235 * modules/printf-safe: New file.
236 * modules/fprintf-posix (Depends-on): Add printf-safe.
237 * modules/printf-posix (Depends-on): Likewise.
238 * modules/snprintf-posix (Depends-on): Likewise.
239 * modules/sprintf-posix (Depends-on): Likewise.
240 * modules/vasnprintf-posix (Depends-on): Likewise.
241 * modules/vasprintf-posix (Depends-on): Likewise.
242 * modules/vfprintf-posix (Depends-on): Likewise.
243 * modules/vprintf-posix (Depends-on): Likewise.
244 * modules/vsnprintf-posix (Depends-on): Likewise.
245 * modules/vsprintf-posix (Depends-on): Likewise.
246 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
247 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
248 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
249 "no" on i386, x86_64, ia64.
250 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
251 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
252 on i386, x86_64, ia64.
253 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
254 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
255 on i386, x86_64, ia64.
256 * tests/test-vasnprintf-posix.c: Include float.h.
257 (LDBL80_WORDS): New macro.
258 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
259 on i386, x86_64, ia64.
260 * tests/test-vasprintf-posix.c: Include float.h.
261 (LDBL80_WORDS): New macro.
262 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
263 on i386, x86_64, ia64.
264 * tests/test-snprintf-posix.c: Include float.h.
265 * tests/test-sprintf-posix.c: Likewise.
266 * tests/test-vsnprintf-posix.c: Likewise.
267 * tests/test-vsprintf-posix.c: Likewise.
269 2007-06-05 Bruno Haible <bruno@clisp.org>
271 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
272 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
273 non-IEEE numbers on i386, x86_64, ia64.
274 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
275 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
276 * tests/test-isnanl.h: Include float.h.
277 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
279 2007-06-05 Bruno Haible <bruno@clisp.org>
281 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
282 also the %a / %A. Handle the %a / %A code before this extra handling.
284 2007-06-05 Bruno Haible <bruno@clisp.org>
286 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
287 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
289 2007-06-05 Bruno Haible <bruno@clisp.org>
291 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
292 typo in variable name.
294 2007-06-05 Eric Blake <ebb9@byu.net>
296 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
297 Reported by Simon Josefsson.
299 2007-06-04 Bruno Haible <bruno@clisp.org>
301 Avoid test failures on some PowerPC platforms.
302 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
303 Define differently for PowerPC.
304 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
305 Reported by Gary V. Vaughan <gary@gnu.org>.
307 2007-06-02 Bruno Haible <bruno@clisp.org>
309 Fix test-stdint failure on FreeBSD/ia64.
310 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
311 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
312 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
313 * doc/headers/stdint.texi: Update.
315 2007-06-01 Bruno Haible <bruno@clisp.org>
317 * tests/test-binary-io.c (main): Pass a third argument to open().
318 Reported by Gary V. Vaughan <gary@gnu.org>.
320 2007-06-01 Bruno Haible <bruno@clisp.org>
322 * doc/functions/frexpl.texi: Update for mingw.
324 2007-06-01 Bruno Haible <bruno@clisp.org>
326 * tests/test-lseek.c (main): Disable test of errno for invalid third
328 * doc/functions/lseek.texi: Update.
329 Reported by Gary V. Vaughan <gary@gnu.org>.
331 2007-05-28 Bruno Haible <bruno@clisp.org>
333 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
335 2007-05-31 Eric Blake <ebb9@byu.net>
337 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
340 2007-05-30 Eric Blake <ebb9@byu.net>
341 and Bruno Haible <bruno@clisp.org>
343 Work around mingw test failures exposed by m4-1.4.9b.
344 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
345 * tests/test-unistd.c: Disable uid_t and git_t tests for the
348 2007-05-30 Bruno Haible <bruno@clisp.org>
350 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
351 assuming that they are closed. Needed on HP-UX 11.
353 2007-05-29 Bruno Haible <bruno@clisp.org>
355 Fix a problem with #include_next.
356 * lib/dirent_.h: Split the double-inclusion guard.
357 * lib/fcntl_.h: Likewise.
358 * lib/float_.h: Likewise.
359 * lib/iconv_.h: Likewise.
360 * lib/inttypes_.h: Likewise.
361 * lib/locale_.h: Likewise.
362 * lib/math_.h: Likewise.
363 * lib/netinet_in_.h: Likewise.
364 * lib/search_.h: Likewise.
365 * lib/signal_.h: Likewise.
366 * lib/stdint_.h: Likewise.
367 * lib/stdio_.h: Likewise.
368 * lib/stdlib_.h: Likewise.
369 * lib/string_.h: Likewise.
370 * lib/sys_select_.h: Likewise.
371 * lib/sys_socket_.h: Likewise.
372 * lib/sys_stat_.h: Likewise.
373 * lib/sys_time_.h: Likewise.
374 * lib/sysexits_.h: Likewise.
375 * lib/time_.h: Likewise.
376 * lib/unistd_.h: Likewise.
377 * lib/wchar_.h: Likewise.
378 * lib/wctype_.h: Likewise.
380 2007-05-29 Bruno Haible <bruno@clisp.org>
382 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
385 2007-05-29 Bruno Haible <bruno@clisp.org>
387 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
389 Reported by Eric Blake.
391 2007-05-29 Bruno Haible <bruno@clisp.org>
393 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
396 2007-05-29 Eric Blake <ebb9@byu.net>
397 Bruno Haible <bruno@clisp.org>
399 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
402 2007-05-28 Eric Blake <ebb9@byu.net>
404 * modules/closein-tests (test_closein_LDADD): Support test on
407 2007-05-28 Bruno Haible <bruno@clisp.org>
409 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
410 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
411 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
412 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
413 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
414 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
415 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
416 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
417 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
419 2007-05-28 Eric Blake <ebb9@byu.net>
421 Unconditionally include <config.h> in unit tests.
422 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
423 * tests/test-allocsa.c, tests/test-arcfour.c,
424 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
425 tests/test-array_list.c, tests/test-array_oset.c,
426 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
427 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
428 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
429 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
430 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
431 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
432 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
433 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
434 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
435 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
436 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
437 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
438 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
439 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
440 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
441 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
442 test-md5.c, test-memmem.c, test-printf-posix.c,
443 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
444 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
445 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
446 test-strcasestr.c, test-striconv.c, test-striconveh.c,
447 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
448 test-vasnprintf-posix2.c, test-vasnprintf.c,
449 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
450 test-vfprintf-posix.c, test-vprintf-posix.c,
451 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
452 test-xvasprintf.c: Likewise.
454 2007-05-28 Bruno Haible <bruno@clisp.org>
456 * gnulib-tool (func_import): Remember the --with-tests command-line
457 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
458 Reported by Eric Blake.
460 2007-05-28 Bruno Haible <bruno@clisp.org>
462 * modules/ftell-tests: New file.
463 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
464 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
466 * lib/ftell.c: New file.
467 * modules/ftell: New file.
468 * m4/ftell.m4: New file.
469 * doc/functions/ftell.texi: Update.
470 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
472 * lib/stdio_.h (rpl_ftell): New declaration.
473 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
476 2007-05-28 Eric Blake <ebb9@byu.net>
478 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
480 2007-05-28 Bruno Haible <bruno@clisp.org>
482 * modules/fseek-tests: New file.
483 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
484 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
486 * lib/fseek.c: New file.
487 * modules/fseek: New file.
488 * m4/fseek.m4: New file.
489 * doc/functions/fseek.texi: Update.
490 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
492 * lib/stdio_.h (rpl_fseek): New declaration.
493 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
496 2007-05-28 Bruno Haible <bruno@clisp.org>
498 * lib/stdio_.h (fflush): More comments.
500 2007-05-28 Bruno Haible <bruno@clisp.org>
502 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
505 2007-05-28 Eric Blake <ebb9@byu.net>
507 Improve lseek module.
508 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
509 * lib/unistd_.h (lseek): Scale back link warning message.
510 * tests/test-lseek.c: Beef up test.
511 * tests/test-lseek.sh: Exercise more facets of lseek.
512 Reported by Bruno Haible.
514 2007-05-28 Bruno Haible <bruno@clisp.org>
516 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
519 2007-05-27 Bruno Haible <bruno@clisp.org>
521 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
523 2007-05-27 Bruno Haible <bruno@clisp.org>
525 * modules/openmp: New file.
526 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
529 2007-05-26 Bruno Haible <bruno@clisp.org>
531 * modules/chdir-long (Depends-on): Add fchdir.
532 * modules/chdir-safer (Depends-on): Likewise.
533 * modules/fts (Depends-on): Likewise.
534 * modules/fts-lgpl (Depends-on): Likewise.
535 * modules/openat (Depends-on): Likewise.
536 * modules/savewd (Depends-on): Likewise.
538 2007-05-24 Eric Blake <ebb9@byu.net>
541 * modules/lseek: New module.
542 * m4/lseek.m4: New file.
543 * lib/lseek.c: New file.
544 * modules/lseek-tests: New file.
545 * tests/test-lseek.c: New file.
546 * tests/test-lseek.sh: New file.
547 * MODULES.html.sh: Document lseek module.
548 * modules/fflush (Depends-on): Add lseek, fseeko.
549 * modules/fseeko (Depends-on): Likewise.
550 * modules/ftello (Depends-on): Likewise.
551 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
553 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
555 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
556 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
557 * lib/ftello.c (rpl_ftello): Likewise.
558 * tests/test-fseeko.c (main): Test this.
559 * tests/test-fseeko.sh: Likewise.
560 * tests/test-ftello.c (main): Likewise.
561 * tests/test-ftello.sh: Likewise.
562 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
563 implies replacing fseek.
564 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
566 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
567 * modules/unistd (Makefile.am): Likewise.
568 * lib/unistd_.h (lseek): Declare a replacement.
569 * doc/functions/lseek.texi (lseek): Document this fix.
570 * doc/functions/fseek.texi (fseek): Likewise.
571 * doc/functions/ftell.texi (ftell): Likewise.
573 2007-05-24 Bruno Haible <bruno@clisp.org>
575 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
576 in the printed representation of a NaN.
577 * tests/test-vasprintf-posix.c (test_function): Likewise.
578 * tests/test-snprintf-posix.h (test_function): Likewise.
579 * tests/test-sprintf-posix.h (test_function): Likewise.
580 Reported by Eric Blake.
582 2007-05-23 Eric Blake <ebb9@byu.net>
584 Fix fseeko/ftello on cygwin 1.5.24.
585 * doc/functions/fseeko.texi (fseeko): Document the fix.
586 * doc/functions/ftello.texi (ftello): Document the fix.
587 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
588 * doc/functions/stdout.text (stdout): New file.
589 * doc/functions/stderr.text (stderr): New file.
590 * doc/gnulib.texi (Function Substitutes): Use new files.
591 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
593 * tests/test-ftello.c (main): Likewise for ftello.
594 * tests/test-fseeko.sh: New file.
595 * tests/test-ftello.sh: New file.
596 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
598 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
599 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
600 (gl_REPLACE_FSEEKO): New macro.
601 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
602 * modules/fseeko (Files): Distribute fseeko.c.
603 * modules/ftello (Files): Distribute ftello.c.
604 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
606 * lib/ftello.c (rpl_ftello): New file.
607 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
609 (gl_STDIN_LARGE_OFFSET): New macro.
610 * modules/stdio (Makefile.am): Perform the replacement.
611 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
613 2007-05-23 Bruno Haible <bruno@clisp.org>
615 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
616 GNULIB_POSIXCHECK is defined.
618 2007-05-21 Bruno Haible <bruno@clisp.org>
620 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
621 Check also the output for NaN arguments. When cross-compiling, guess
623 * lib/vasnprintf.c: Update comments.
624 * tests/test-vasnprintf-posix.c (strisnan): New function.
625 (test_function): Use it.
626 * tests/test-vasprintf-posix.c (strisnan): New function.
627 (test_function): Use it.
628 * tests/test-snprintf-posix.h (strisnan): New function.
629 (test_function): Use it.
630 * tests/test-sprintf-posix.h (strisnan): New function.
631 (test_function): Use it.
632 Reported by Eric Blake.
634 2007-05-20 Bruno Haible <bruno@clisp.org>
636 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
637 numbers that fails on BeOS.
638 * doc/functions/frexpl.texi: Update.
640 2007-05-20 Jim Meyering <jim@meyering.net>
642 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
643 forced upon us by glibc-2.6.
645 2007-05-20 Bruno Haible <bruno@clisp.org>
647 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
648 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
649 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
650 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
651 NEED_PRINTF_INFINITE.
652 (is_infinitel): New function.
653 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
654 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
655 gl_PREREQ_VASNPRINTF_INFINITE.
656 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
657 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
658 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
659 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
660 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
661 gl_PREREQ_VASNPRINTF_INFINITE.
662 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
663 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
664 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
665 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
666 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
667 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
668 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
669 * doc/functions/fprintf.texi: Update.
670 * doc/functions/printf.texi: Update.
671 * doc/functions/snprintf.texi: Update.
672 * doc/functions/sprintf.texi: Update.
673 * doc/functions/vfprintf.texi: Update.
674 * doc/functions/vprintf.texi: Update.
675 * doc/functions/vsnprintf.texi: Update.
676 * doc/functions/vsprintf.texi: Update.
678 2007-05-20 Bruno Haible <bruno@clisp.org>
680 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
681 was not found in libc.
682 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
684 2007-05-20 Bruno Haible <bruno@clisp.org>
686 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
687 printed as "-nan" instead of "nan".
688 * tests/test-vasprintf-posix.c (test_function): Likewise.
689 * tests/test-snprintf-posix.h (test_function): Likewise.
690 * tests/test-sprintf-posix.h (test_function): Likewise.
693 2007-05-20 Jim Meyering <jim@meyering.net>
695 Fix buggy test for the fchownat-deref bug.
696 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
697 symlink required for the run-test. Without it, this test would
698 always declare that fchownat doesn't work, and client code would
699 unnecessarily use the replacement function with fixed libc.
700 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
701 Reported by Greg Schafer.
703 2007-05-19 Bruno Haible <bruno@clisp.org>
705 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
706 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
707 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
708 Needed for IRIX 6.5 and Solaris 2.5.1.
710 2007-05-19 Bruno Haible <bruno@clisp.org>
712 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
713 (test_function): Skip tests involving -0.0 on platforms where
715 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
716 (test_function): Skip tests involving -0.0 on platforms where
718 * tests/test-snprintf-posix.h (have_minus_zero): New function.
719 (test_function): Skip tests involving -0.0 on platforms where
721 * tests/test-sprintf-posix.h (have_minus_zero): New function.
722 (test_function): Skip tests involving -0.0 on platforms where
724 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
726 * tests/test-printf-posix.h (test_function): Likewise.
727 * tests/test-printf-posix.output: Remove all -0.0 related results.
730 2007-05-19 Bruno Haible <bruno@clisp.org>
732 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
733 printed as "nan0x7fffffff" instead of "nan".
734 * tests/test-vasprintf-posix.c (test_function): Likewise.
735 * tests/test-snprintf-posix.h (test_function): Likewise.
736 * tests/test-sprintf-posix.h (test_function): Likewise.
737 * tests/test-fprintf-posix.h (NaN): Remove macro.
738 (test_function): Remove all NaN related tests.
739 * tests/test-printf-posix.h (NaN): Remove macro.
740 (test_function): Remove all NaN related tests.
741 * tests/test-printf-posix.output: Remove all NaN related results.
744 2007-05-19 Bruno Haible <bruno@clisp.org>
746 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
747 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
749 2007-05-19 Bruno Haible <bruno@clisp.org>
751 * lib/float_.h: New file.
752 * m4/float_h.m4: New file.
753 * modules/float: New file.
754 * modules/isnanl (Dependencies): Add float.
755 * modules/isnanl-nolibm (Dependencies): Likewise.
756 * modules/mathl (Dependencies): Likewise.
757 * modules/printf-frexpl (Dependencies): Likewise.
758 * modules/signbit (Dependencies): Likewise.
759 * modules/vasnprintf (Dependencies): Likewise.
760 * doc/headers/float.texi: Update.
762 2007-05-19 Jim Meyering <jim@meyering.net>
764 * lib/utimens.c (gl_futimens): Rename from futimens,
765 now that glibc-2.6 declares futimens.
766 * lib/utimens.h: Likewise.
768 2007-05-19 Bruno Haible <bruno@clisp.org>
770 Avoid test failures on mingw.
771 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
772 * tests/test-printf-posix.sh: Likewise.
773 * tests/test-vfprintf-posix.sh: Likewise.
774 * tests/test-vprintf-posix.sh: Likewise.
776 2007-05-19 Bruno Haible <bruno@clisp.org>
778 Fix *printf result for NaN, Inf, -0.0 on mingw.
779 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
780 * lib/vasnprintf.c: Include math.h and isnan.h.
781 (is_infinite_or_zero): New function.
782 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
783 values in the %f, %F, %e, %E, %g, %G directives.
784 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
785 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
786 gl_PRINTF_INFINITE and test its result. Invoke
787 gl_PREREQ_VASNPRINTF_INFINITE.
788 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
789 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
790 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
791 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
792 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
793 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
794 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
795 * doc/functions/fprintf.texi: Update.
796 * doc/functions/printf.texi: Update.
797 * doc/functions/snprintf.texi: Update.
798 * doc/functions/sprintf.texi: Update.
799 * doc/functions/vfprintf.texi: Update.
800 * doc/functions/vprintf.texi: Update.
801 * doc/functions/vsnprintf.texi: Update.
802 * doc/functions/vsprintf.texi: Update.
804 2007-05-19 Bruno Haible <bruno@clisp.org>
806 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
807 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
808 Instead of multiplying with 10^k, set extra_zeroes to k.
809 (scale10_round_long_double): Remove function.
811 2007-05-18 Bruno Haible <bruno@clisp.org>
813 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
814 introduced on 2007-05-06.
816 2007-05-18 Bruno Haible <bruno@clisp.org>
818 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
820 * tests/test-vasprintf-posix.c (test_function): Likewise.
821 * tests/test-snprintf-posix.h (test_function): Likewise.
822 * tests/test-sprintf-posix.h (test_function): Likewise.
824 2007-05-18 Bruno Haible <bruno@clisp.org>
826 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
827 (strmatch): New function.
828 (test_function): Test the %f directive on numbers of various exponents.
829 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
830 (strmatch): New function.
831 (test_function): Test the %f directive on numbers of various exponents.
832 * tests/test-snprintf-posix.h (strmatch): New function.
833 (test_function): Test the %f directive on numbers of various exponents.
834 * tests/test-sprintf-posix.h (strmatch): New function.
835 (test_function): Test the %f directive on numbers of various exponents.
836 * tests/test-snprintf-posix.c (SIZEOF): New macro.
837 * tests/test-sprintf-posix.c (SIZEOF): New macro.
838 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
839 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
841 2007-05-18 Bruno Haible <bruno@clisp.org>
843 Add support for 'long double' number output.
844 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
845 * lib/vasnprintf.c: Include math.h and float+.h.
846 (mp_limb_t): New type.
847 (GMP_LIMB_BITS): New macro.
848 (mp_twolimb_t): New type.
849 (GMP_TWOLIMB_BITS): New macro.
851 (multiply, divide, convert_to_decimal, decode_long_double,
852 scale10_round_long_double, scale10_round_decimal_long_double,
853 floorlog10l): New functions.
854 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
855 for the %f, %F, %e, %E, %g, %G directives.
856 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
857 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
858 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
859 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
860 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
861 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
862 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
863 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
864 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
865 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
866 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
867 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
868 * modules/snprintf-posix (Depends-on): Likewise.
869 * modules/sprintf-posix (Depends-on): Likewise.
870 * modules/vasnprintf-posix (Depends-on): Likewise.
871 * modules/vasprintf-posix (Depends-on): Likewise.
872 * modules/vfprintf-posix (Depends-on): Likewise.
873 * modules/vsnprintf-posix (Depends-on): Likewise.
874 * modules/vsprintf-posix (Depends-on): Likewise.
875 * modules/vasnprintf (Files): Add lib/float+.h.
876 * doc/functions/fprintf.texi: Update.
877 * doc/functions/printf.texi: Update.
878 * doc/functions/snprintf.texi: Update.
879 * doc/functions/sprintf.texi: Update.
880 * doc/functions/vfprintf.texi: Update.
881 * doc/functions/vprintf.texi: Update.
882 * doc/functions/vsnprintf.texi: Update.
883 * doc/functions/vsprintf.texi: Update.
885 2007-05-18 Bruno Haible <bruno@clisp.org>
887 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
889 2007-05-18 Bruno Haible <bruno@clisp.org>
891 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
892 for printing 64-bit integers. Needed for mingw.
894 2007-05-18 Bruno Haible <bruno@clisp.org>
896 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
897 gl_FUNC_FREXPL_WORKS.
898 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
900 2007-05-18 Bruno Haible <bruno@clisp.org>
902 * modules/frexpl-nolibm-tests: New file.
904 * modules/frexpl-nolibm: New file.
905 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
907 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
909 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
910 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
911 GCC 4.2, which otherwise issues a lot of warnings.
912 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
913 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
915 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
916 * modules/iconv_open (iconv.h): Likewise.
917 * modules/locale (locale.h): Likewise.
918 * modules/netinet_in (netinet/in.h): Likewise.
919 * modules/sys_select (sys_select.h): Likewise.
920 * modules/sys_socket (sys/socket.h): Likewise.
921 * modules/sys_stat (sys/stat.h): Likewise.
922 * modules/sysexits (sysexits.h): Likewise.
923 * modules/unistd (unistd.h): Likewise.
925 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
927 * modules/closein-tests (Makefile.am): Distribute
930 2007-05-17 Bruno Haible <bruno@clisp.org>
932 * tests/test-printf-posix.output: Renamed from
933 tests/test-fprintf-posix.out.
934 * modules/fprintf-posix-tests: Update.
935 * modules/printf-posix-tests: Update.
936 * modules/vfprintf-posix-tests: Update.
937 * modules/vprintf-posix-tests: Update.
938 * tests/test-fprintf-posix.sh: Update.
939 * tests/test-printf-posix.sh: Update.
940 * tests/test-vfprintf-posix.sh: Update.
941 * tests/test-vprintf-posix.sh: Update.
942 Reported by Ralf Wildenhues.
944 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
946 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
947 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
948 GCC 4.2, which otherwise issues a lot of warnings.
949 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
950 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
951 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
952 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
953 it should no longer be needed.
954 * lib/string_.h: Likewise.
955 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
956 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
957 * modules/inttypes (inttypes.h): Likewise.
958 * modules/math (math.h): Likewise.
959 * modules/search (search.h): Likewise.
960 * modules/signal (signal.h): Likewise.
961 * modules/stdint (stdint.h): Likewise.
962 * modules/stdio (stdio.h): Likewise.
963 * modules/stdlib (stdlib.h): Likewise.
964 * modules/string (string.h): Likewise.
965 * modules/sys_time (sys/time.h): Likewise.
966 * modules/time (time.h): Likewise.
967 * modules/wchar (wchar.h): Likewise.
968 * modules/wctype (wtype.h): Likewise.
970 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
972 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
974 2007-05-13 Bruno Haible <bruno@clisp.org>
976 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
977 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
978 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
979 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
980 (gl_PREREQ_STRTOK_R): Don't require it here.
982 2007-05-13 Bruno Haible <bruno@clisp.org>
984 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
985 when used in C++ mode.
987 2007-05-12 Bruno Haible <bruno@clisp.org>
989 * lib/linebuffer.h: Tweak doc.
990 * lib/linebuffer.c: Likewise.
992 2007-05-12 James Youngman <jay@gnu.org>
994 * lib/linebuffer.c (readlinebuffer_delim): New function,
995 like readlinebuffer, but use a caller-specified delimiter.
996 (readlinebuffer): Just call readlinebuffer_delim with '\n'
998 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
1000 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
1002 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
1003 * modules/openat (Files): Remove openat-die.c.
1004 (Depends-on): Add openat-die.
1005 * modules/openat-die: New module.
1007 2007-05-06 Bruno Haible <bruno@clisp.org>
1009 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
1010 Update with info about Cygwin.
1011 * doc/functions/fprintf.texi: Update.
1012 * doc/functions/printf.texi: Update.
1013 * doc/functions/snprintf.texi: Update.
1014 * doc/functions/sprintf.texi: Update.
1015 * doc/functions/vfprintf.texi: Update.
1016 * doc/functions/vprintf.texi: Update.
1017 * doc/functions/vsnprintf.texi: Update.
1018 * doc/functions/vsprintf.texi: Update.
1019 Reported by Eric Blake.
1021 2007-05-06 Bruno Haible <bruno@clisp.org>
1023 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
1024 padding ourselves for the floating-point directives.
1025 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
1026 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
1027 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1028 gl_PRINTF_FLAG_ZERO and test its result. Invoke
1029 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
1030 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1031 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1032 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1033 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1034 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1035 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1036 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1037 * tests/test-snprintf-posix.h (test_function): Also check the width
1038 and some flags in the %f directive.
1039 * tests/test-sprintf-posix.h (test_function): Likewise.
1040 * tests/test-vasnprintf-posix.c (test_function): Likewise.
1041 * tests/test-vasprintf-posix.c (test_function): Likewise.
1042 * doc/functions/fprintf.texi: Update.
1043 * doc/functions/printf.texi: Update.
1044 * doc/functions/snprintf.texi: Update.
1045 * doc/functions/sprintf.texi: Update.
1046 * doc/functions/vfprintf.texi: Update.
1047 * doc/functions/vprintf.texi: Update.
1048 * doc/functions/vsnprintf.texi: Update.
1049 * doc/functions/vsprintf.texi: Update.
1051 2007-05-06 Bruno Haible <bruno@clisp.org>
1053 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
1054 pass the ' flag character to sprintf or snprintf.
1055 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
1056 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
1057 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1058 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
1059 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
1060 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1061 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1062 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1063 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1064 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1065 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1066 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1067 * tests/test-snprintf-posix.h (test_function): Also check the grouping
1069 * tests/test-sprintf-posix.h (test_function): Likewise.
1070 * tests/test-vasnprintf-posix.c (test_function): Likewise.
1071 * tests/test-vasprintf-posix.c (test_function): Likewise.
1072 * doc/functions/fprintf.texi: Update.
1073 * doc/functions/printf.texi: Update.
1074 * doc/functions/snprintf.texi: Update.
1075 * doc/functions/sprintf.texi: Update.
1076 * doc/functions/vfprintf.texi: Update.
1077 * doc/functions/vprintf.texi: Update.
1078 * doc/functions/vsnprintf.texi: Update.
1079 * doc/functions/vsprintf.texi: Update.
1081 2007-05-01 Bruno Haible <bruno@clisp.org>
1083 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
1085 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
1087 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
1088 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
1090 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
1092 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
1093 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
1094 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
1096 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
1098 * lib/argp-help.c (struct hol_entry): New member `ord'.
1099 (HOL_ENTRY_PTRCMP): Use ord for comparison
1100 (hol_sort): Initialize ord.
1102 2007-05-01 Bruno Haible <bruno@clisp.org>
1104 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
1105 Reported by Eric Blake.
1106 * doc/gnulib.texi (Function Substitutes): Update.
1108 2007-05-01 Bruno Haible <bruno@clisp.org>
1110 * doc/functions.texi: Remove file, now redundant through
1111 doc/functions/*.texi.
1113 2007-05-01 Bruno Haible <bruno@clisp.org>
1115 * modules/argp (Depends-on): Add sleep.
1117 2007-05-01 Bruno Haible <bruno@clisp.org>
1119 * modules/sleep-tests: New file.
1120 * tests/test-sleep.c: New file.
1122 * modules/sleep: New file.
1123 * lib/sleep.c: New file.
1124 * m4/sleep.m4: New file.
1125 * lib/unistd_.h (sleep): New declaration.
1126 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
1128 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
1129 * doc/functions/sleep.texi: Document the sleep module.
1131 2007-05-01 Bruno Haible <bruno@clisp.org>
1133 * lib/sigprocmask.h: Remove file.
1134 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
1135 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
1136 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
1137 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
1138 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1139 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
1140 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
1141 HAVE_SIGSET_T as a shell variable.
1142 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
1143 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
1144 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
1145 (Depends-on): Add signal. Remove verify.
1146 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
1147 (Include): Mention <signal.h> instead of sigprocmask.h.
1148 * NEWS: Mention the change.
1149 * lib/fatal-signal.c: Don't include sigprocmask.h.
1151 2007-05-01 Bruno Haible <bruno@clisp.org>
1153 * modules/signal: New file.
1154 * lib/signal_.h: New file.
1155 * m4/signal_h.m4: New file.
1157 2007-05-01 Bruno Haible <bruno@clisp.org>
1159 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
1160 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
1161 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
1162 HAVE_WCTYPE_CTMP_BUG into wctype.h.
1164 2007-05-01 Bruno Haible <bruno@clisp.org>
1166 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
1168 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
1169 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
1170 * modules/sys_stat (Makefile.am): Substitute their values into
1173 2007-05-01 Bruno Haible <bruno@clisp.org>
1175 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
1176 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
1177 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
1179 2007-05-01 Bruno Haible <bruno@clisp.org>
1181 * doc/header/assert.texi: Undo last change: don't mention the gnulib
1182 'assert' module here.
1184 2007-05-01 Bruno Haible <bruno@clisp.org>
1186 * doc/functions/*.texi: New files.
1187 * doc/functions/google-ranking.txt: New file.
1188 * doc/gnulib.texi (Function Substitutes): New chapter.
1189 (ctime, inet_ntoa): Remove sections.
1190 * doc/ctime.texi: Remove file.
1191 * doc/inet_ntoa.texi: Remove file.
1192 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
1194 (%.info): New rule, specifying a --reference-limit.
1196 2007-05-01 Bruno Haible <bruno@clisp.org>
1198 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
1200 2007-05-01 Bruno Haible <bruno@clisp.org>
1202 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
1203 the portability of 'mkdir' to mingw systems.
1205 2007-05-01 Bruno Haible <bruno@clisp.org>
1207 * doc/headers/google-ranking.txt: New file.
1209 2007-04-30 Eric Blake <ebb9@byu.net>
1211 Prefer fseeko to fseek.
1212 * modules/getpass (Depends-on): Add fseeko.
1213 * lib/getpass.c (getpass): Use fseeko, not fseek.
1215 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
1217 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
1218 assumes the sorting is stable, while most qsort implementations
1219 are not. Use argument addresses to ensure they never compare as
1222 * tests/test-argp-2.sh (usage-indent test): Fix output
1223 (func_compare): Restore diff options
1224 * tests/test-argp.c: Restore #include "progname.h"
1226 2007-04-29 Bruno Haible <bruno@clisp.org>
1228 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
1229 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1230 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
1231 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1232 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
1233 (configure.ac): Define CHECK_SNPRINTF_POSIX.
1234 (TESTS, check_PROGRAMS): Add test-snprintf.
1235 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
1236 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
1237 (TESTS, check_PROGRAMS): Add test-vsnprintf.
1238 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
1239 assertions that fail on HP-UX, OSF/1, or IRIX.
1240 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
1242 2007-04-29 Bruno Haible <bruno@clisp.org>
1244 * MODULES.html.sh (posix_functions): Remove 'contents'.
1246 2007-04-29 Karl Berry <karl@gnu.org>
1248 * config/srclist.txt (gendocs_template_min): new entry.
1250 2007-04-29 Bruno Haible <bruno@clisp.org>
1252 Work around fpurge bug on BSD systems.
1253 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
1254 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
1255 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
1256 fpurge to rpl_fpurge if the system already has this function.
1257 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
1258 the case where the system already has this function. Correct invariants
1260 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
1263 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
1265 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
1266 proposed by Sven Verdoolaege.
1268 * tests/test-argp.c: Fix option ordering. Test deeply clustered
1270 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
1271 (usage and help tests): Update
1273 2007-04-29 Bruno Haible <bruno@clisp.org>
1275 * tests/test-fflush.c (main): Use a file of size 17, not 10.
1276 Print more information in case of failure. Disable a test on BeOS.
1278 2007-04-29 Bruno Haible <bruno@clisp.org>
1280 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
1281 This helps debugging on systems on which no gdb is available.
1283 2007-04-29 Bruno Haible <bruno@clisp.org>
1285 * lib/freading.h: Improve comments.
1286 * lib/fwriting.h: Likewise.
1287 * tests/test-freading.c (main): Don't check freading immediately after
1288 repositioning. Needed for glibc.
1290 2007-04-29 Bruno Haible <bruno@clisp.org>
1292 * lib/freading.c (freading): Trivial simplification.
1294 2007-04-28 Bruno Haible <bruno@clisp.org>
1296 * tests/test-fwriting.c (main): Also test the interaction between
1297 fflush and fwriting.
1298 * modules/fwriting-tests (Depends-on): Add fflush.
1300 * tests/test-freading.c (main): Also test the interaction between
1301 fflush and freading.
1302 * modules/freading-tests (Depends-on): Add fflush.
1304 2007-04-28 Bruno Haible <bruno@clisp.org>
1306 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
1308 Suggested by Eric Blake.
1310 2007-04-28 Jim Meyering <jim@meyering.net>
1312 Avoid false-negative in gl_STDINT_H's C99 conformance test.
1313 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
1314 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
1316 2007-04-27 Eric Blake <ebb9@byu.net>
1318 * doc/headers/assert.texi (assert.h): Document assert module use.
1320 2007-04-27 Bruno Haible <bruno@clisp.org>
1322 * doc/headers/*.texi: New files.
1323 * doc/gnulib.texi (Header File Substitutes): New chapter.
1324 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
1326 (standards.info ,standards.html, standards.dvi): Update dependencies.
1327 (mostlyclean, clean): New targets.
1329 2007-04-27 Bruno Haible <bruno@clisp.org>
1331 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
1332 * modules/sysexits (Files, Makefile.am): Update.
1334 * lib/sys_socket_.h: Renamed from lib/socket_.h.
1335 * modules/sys_socket (Files, Makefile.am): Update.
1337 * lib/sys_stat_.h: Renamed from lib/stat_.h.
1338 * modules/sys_stat (Files, Makefile.am): Update.
1340 2007-04-27 Eric Blake <ebb9@byu.net>
1342 * lib/freading.h: Improve comments.
1343 * lib/fwriting.h: Likewise.
1344 * lib/fflush.c: Likewise.
1346 Fix closein for mingw.
1347 * modules/closein-tests: Add tests for closein.
1348 * tests/test-closein.c: New file.
1349 * tests/test-closein.sh: Likewise.
1350 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
1351 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
1353 2007-04-27 Bruno Haible <bruno@clisp.org>
1355 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
1357 * lib/math_.h [__DECC]: Likewise.
1358 * lib/stdio_.h [__DECC]: Likewise.
1359 * lib/stdlib_.h [__DECC]: Likewise.
1360 * lib/string_.h [__DECC]: Likewise.
1361 * lib/time_.h [__DECC]: Likewise.
1362 * lib/wchar_.h [__DECC]: Likewise.
1363 * lib/wctype_.h [__DECC]: Likewise.
1365 2007-04-27 Bruno Haible <bruno@clisp.org>
1367 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
1369 2007-04-27 Bruno Haible <bruno@clisp.org>
1371 * lib/fflush.c: Add comments.
1372 * modules/fpurge-tests (Depends-on): Add fflush.
1373 * modules/freadable-tests (Depends-on): Likewise.
1374 * modules/fwritable-tests (Depends-on): Likewise.
1376 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
1378 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
1379 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
1380 Report by Bruno Haible <bruno@clisp.org>.
1382 2007-04-26 Eric Blake <ebb9@byu.net>
1384 Fix fflush on mingw.
1385 * modules/fflush (Depends-on): Add freading.
1386 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
1389 2007-04-26 Eric Blake <ebb9@byu.net>
1390 and Bruno Haible <bruno@clisp.org>
1392 Implement freading and fwriting.
1393 * lib/freading.c: New file.
1394 * lib/freading.h: Likewise.
1395 * m4/freading.m4: Likewise.
1396 * modules/freading: Likewise.
1397 * modules/freading-tests: Likewise.
1398 * tests/test-freading.c: Likewise.
1399 * lib/fwriting.c: New file.
1400 * lib/fwriting.h: Likewise.
1401 * m4/fwriting.m4: Likewise.
1402 * modules/fwriting: Likewise.
1403 * modules/fwriting-tests: Likewise.
1404 * tests/test-fwriting.c: Likewise.
1405 * MODULES.html.sh (File stream based Input/Output): Mention them.
1407 2007-04-26 Bruno Haible <bruno@clisp.org>
1409 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
1410 'long' when we assume it.
1411 Suggested by Eric Blake.
1413 2007-04-26 Bruno Haible <bruno@clisp.org>
1415 Ensure fseeko, ftello are declared on glibc systems.
1416 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
1417 * modules/fseeko (configure.ac-early): Likewise.
1418 * modules/ftello (configure.ac-early): Likewise.
1419 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
1420 AC_FUNC_FSEEKO for this.
1421 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
1422 (gl_CHECK_FSEEKO): Remove macro.
1424 2007-04-26 Bruno Haible <bruno@clisp.org>
1426 * tests/test-fflush.c (main): Also check the ftell result after
1427 fflush and fseek/fseeko.
1428 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
1429 file descriptor position cache in the stream.
1430 * lib/fseeko.c (rpl_fseeko): Likewise.
1432 2007-04-26 Bruno Haible <bruno@clisp.org>
1434 * modules/fflush-tests (Depends-on): Add fseeko.
1436 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
1437 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1439 * lib/argz_.h: ensure error_t definition is obtained in same
1440 mechanism system argz.h would have.
1441 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
1442 argz facilities are known bad. Err on the side of caution if
1445 2007-04-25 Eric Blake <ebb9@byu.net>
1447 * lib/fpurge.c (includes): Use stdlib.h for free.
1448 * tests/test-fflush.c (main): Also test fflush-fseeko.
1450 2007-04-25 Bruno Haible <bruno@clisp.org>
1452 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
1453 * lib/fseeko.c: New file.
1454 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
1455 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
1456 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
1458 (gl_FUNC_FSEEKO): Invoke it.
1459 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
1460 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
1461 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
1463 2007-04-25 Bruno Haible <bruno@clisp.org>
1465 * modules/fflush (Depends-on): Add ftello.
1467 2007-04-25 Bruno Haible <bruno@clisp.org>
1469 * modules/ftello-tests: New file.
1470 * tests/test-ftello.c: New file.
1472 * modules/ftello: New file.
1473 * m4/ftello.m4: New file.
1474 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
1476 * lib/stdio_.h (ftello): New declaration.
1477 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
1480 2007-04-25 Bruno Haible <bruno@clisp.org>
1482 * modules/fseeko-tests: New file.
1483 * tests/test-fseeko.c: New file.
1485 * modules/fseeko: New file.
1486 * m4/fseeko.m4: New file.
1487 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
1489 * lib/stdio_.h (fseeko): New declaration.
1490 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
1493 2007-04-25 Bruno Haible <bruno@clisp.org>
1495 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
1497 2007-04-25 Bruno Haible <bruno@clisp.org>
1499 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
1500 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
1501 * tests/test-unistd.c: Likewise.
1502 * tests/test-fcntl.c: Likewise.
1504 2007-04-23 Eric Blake <ebb9@byu.net>
1506 * lib/fflush.c: Fix missing include.
1507 Reported by Bruno Haible.
1509 2007-04-23 Bruno Haible <bruno@clisp.org>
1511 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
1512 Reported by Eric Blake.
1514 2007-04-23 Bruno Haible <bruno@clisp.org>
1516 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
1518 2007-04-23 Bruno Haible <bruno@clisp.org>
1520 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
1522 2007-04-23 Bruno Haible <bruno@clisp.org>
1524 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
1527 2007-04-16 Eric Blake <ebb9@byu.net>
1529 Make fflush rely on fpurge.
1530 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
1531 open coding all variants.
1532 * modules/fflush (Depends-on): Add fpurge and unistd.
1533 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
1534 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
1536 Fix --with-tests compilation on cygwin.
1537 * modules/argmatch-tests (Makefile.am): List gnulib library first
1539 * modules/argp-tests (Makefile.am): Likewise.
1540 * modules/array-list-tests (Makefile.am): Likewise.
1541 * modules/array-oset-tests (Makefile.am): Likewise.
1542 * modules/avltree-list-tests (Makefile.am): Likewise.
1543 * modules/avltree-oset-tests (Makefile.am): Likewise.
1544 * modules/avltreehash-list-tests (Makefile.am): Likewise.
1545 * modules/carray-list-tests (Makefile.am): Likewise.
1546 * modules/dirname-tests (Makefile.am): Likewise.
1547 * modules/frexp-tests (Makefile.am): Likewise.
1548 * modules/isnanl-tests (Makefile.am): Likewise.
1549 * modules/linked-list-tests (Makefile.am): Likewise.
1550 * modules/linkedhash-list-tests (Makefile.am): Likewise.
1551 * modules/lock-tests (Makefile.am): Likewise.
1552 * modules/rbtree-list-tests (Makefile.am): Likewise.
1553 * modules/rbtree-oset-tests (Makefile.am): Likewise.
1554 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
1555 * modules/tls-tests (Makefile.am): Likewise.
1556 * modules/tsearch-tests (Makefile.am): Likewise.
1557 * modules/xvasprintf-tests (Makefile.am): Likewise.
1559 Fix fpurge for cygwin.
1560 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
1562 * modules/fpurge-tests (Depends-on): Clean up trash.
1564 2007-04-16 Simon Josefsson <simon@josefsson.org>
1566 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
1568 * m4/autobuild.m4: Re-indent.
1570 2007-04-13 Bruno Haible <bruno@clisp.org>
1572 * modules/fpurge-tests: New file.
1573 * tests/test-fpurge.c: New file.
1575 * modules/fpurge: New file.
1576 * lib/fpurge.h: New file.
1577 * lib/fpurge.c: New file.
1578 * m4/fpurge.m4: New file.
1580 2007-04-13 Bruno Haible <bruno@clisp.org>
1582 * modules/fbufmode-tests: New file.
1583 * tests/test-fbufmode.c: New file.
1585 * modules/fbufmode: New file.
1586 * lib/fbufmode.h: New file.
1587 * lib/fbufmode.c: New file.
1588 * m4/fbufmode.m4: New file.
1590 2007-04-13 Bruno Haible <bruno@clisp.org>
1592 * modules/fwritable-tests: New file.
1593 * tests/test-fwritable.c: New file.
1595 * modules/fwritable: New file.
1596 * lib/fwritable.h: New file.
1597 * lib/fwritable.c: New file.
1598 * m4/fwritable.m4: New file.
1600 2007-04-13 Bruno Haible <bruno@clisp.org>
1602 * modules/freadable-tests: New file.
1603 * tests/test-freadable.c: New file.
1605 * modules/freadable: New file.
1606 * lib/freadable.h: New file.
1607 * lib/freadable.c: New file.
1608 * m4/freadable.m4: New file.
1610 2007-04-13 Bruno Haible <bruno@clisp.org>
1612 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
1615 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
1617 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
1618 gzip bootstrap.conf to avoid dragging in i18n machinery.
1619 (gnulib_tool_option): Use it.
1621 2007-04-13 Bruno Haible <bruno@clisp.org>
1623 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
1625 * tests/test-vasprintf-posix.c (test_function): Likewise.
1626 * tests/test-snprintf-posix.h (test_function): Likewise.
1627 * tests/test-sprintf-posix.h (test_function): Likewise.
1628 * tests/test-fprintf-posix.h (test_function): Likewise.
1629 * tests/test-printf-posix.h (test_function): Likewise.
1630 * tests/test-fprintf-posix.out: Likewise.
1632 2007-04-13 Bruno Haible <bruno@clisp.org>
1634 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
1635 * modules/tls-tests (configure.ac): Likewise.
1636 Reported by Arto C. Nirkko <anirkko@insel.ch>.
1638 2007-04-13 Bruno Haible <bruno@clisp.org>
1640 * lib/tls.c (glthread_tls_get): Fix return type.
1641 Patch by Arto C. Nirkko <anirkko@insel.ch>.
1643 2007-04-12 Eric Blake <ebb9@byu.net>
1645 * modules/gettime (Depends-on): Remove gettime.
1646 Reported by Dmitry V. Levin.
1648 2007-04-12 Bruno Haible <bruno@clisp.org>
1650 * modules/fflush (Include): Mention <stdio.h>.
1651 * modules/strtoimax (Include): Mention <inttypes.h>.
1652 * modules/strtoumax (Include): Likewise.
1654 2007-04-12 Eric Blake <ebb9@byu.net>
1656 * .cvsignore: New file.
1657 * .gitignore: Likewise.
1659 2007-04-12 Bruno Haible <bruno@clisp.org>
1661 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
1662 not before, since $(LDADD) often contains libgnu.a.
1663 * modules/striconv-tests (test_striconv_LDADD): Likewise.
1664 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
1665 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
1668 2007-04-12 Eric Blake <ebb9@byu.net>
1670 Work around glibc's failure to flush stdin on fclose.
1671 * lib/closein.c (close_stdin): Flush stdin before closing.
1673 Work around glibc's failure to reset seekable stdin on exit.
1674 * modules/closein: New module.
1675 * lib/closein.c: New file.
1676 * lib/closein.h: Likewise.
1677 * m4/closein.m4: Likewise.
1678 * MODULES.html.sh (File stream based Input/Output): Document it.
1680 2007-04-12 Simon Josefsson <simon@josefsson.org>
1682 * gnulib-tool: Rename generated 'autobuild' script to
1683 'do-autobuild' in --create-megatestdir output.
1685 * doc/gnulib.texi (Build robot for gnulib): Fix.
1687 2007-04-12 Simon Josefsson <simon@josefsson.org>
1689 * modules/sysexits (Depends-on): Add absolute-header.
1691 2007-04-12 Eric Blake <ebb9@byu.net>
1693 No need to preserve errno on success.
1694 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
1695 Reported by Bruno Haible.
1697 2007-04-12 Simon Josefsson <simon@josefsson.org>
1699 * MODULES.html.sh (Support for maintaining and releasing
1700 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
1702 2007-04-12 Simon Josefsson <simon@josefsson.org>
1704 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
1706 2007-04-12 Simon Josefsson <simon@josefsson.org>
1708 * modules/autobuild: New module.
1710 * m4/autobuild.m4: New file.
1712 2007-04-11 Bruno Haible <bruno@clisp.org>
1714 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
1715 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
1716 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
1717 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
1718 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1719 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1720 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1721 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1722 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1723 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1724 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
1725 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1726 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1727 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
1728 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1729 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1730 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
1731 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1732 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1733 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
1734 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1735 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1736 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
1737 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1738 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1739 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
1740 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
1741 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
1742 Reported by Eric Blake.
1744 2007-04-11 Bruno Haible <bruno@clisp.org>
1746 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
1748 2007-04-10 Bruno Haible <bruno@clisp.org>
1750 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
1751 for NaN and Infinity. Needed on FreeBSD 6.1.
1752 * tests/test-vasnprintf-posix.c (test_function): Undo last change
1753 regarding results for "%010a" of Infinity and NaN.
1754 * tests/test-vasprintf-posix.c (test_function): Likewise.
1755 * tests/test-snprintf-posix.h (test_function): Likewise.
1756 * tests/test-sprintf-posix.h (test_function): Likewise.
1757 * tests/test-fprintf-posix.h (test_function): Likewise.
1758 * tests/test-printf-posix.h (test_function): Likewise.
1759 * tests/test-fprintf-posix.out: Likewise.
1761 2007-04-10 Bruno Haible <bruno@clisp.org>
1763 * modules/locale-tests: New file.
1764 * tests/test-locale.c: New file.
1766 * modules/locale: New file.
1767 * lib/locale_.h: New file.
1768 * m4/locale_h.m4: New file.
1770 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
1771 Bruno Haible <bruno@clisp.org>
1773 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
1774 be determined, test for availability of the copysignf, copysign,
1775 copysignl functions.
1776 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
1777 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
1778 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
1780 2007-04-09 Eric Blake <ebb9@byu.net>
1782 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
1783 * modules/stdio (Makefile.am): Support fflush.
1784 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1785 * modules/fflush: New file.
1786 * lib/fflush.c: Likewise.
1787 * m4/fflush.m4: Likewise.
1788 * modules/fflush-tests: New test.
1789 * tests/test-fflush.c: Likewise.
1790 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
1792 2007-04-06 Bruno Haible <bruno@clisp.org>
1794 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
1795 (VASNPRINTF): Use signbit for faster determination whether to print a
1797 * modules/vasnprintf (Files): Remove lib/float+.h.
1798 * modules/fprintf-posix (Depends-on): Add signbit.
1799 * modules/snprintf-posix (Depends-on): Likewise.
1800 * modules/sprintf-posix (Depends-on): Likewise.
1801 * modules/vasnprintf-posix (Depends-on): Likewise.
1802 * modules/vasprintf-posix (Depends-on): Likewise.
1803 * modules/vfprintf-posix (Depends-on): Likewise.
1804 * modules/vsnprintf-posix (Depends-on): Likewise.
1805 * modules/vsprintf-posix (Depends-on): Likewise.
1807 2007-04-06 Bruno Haible <bruno@clisp.org>
1809 * tests/test-frexp.c (main): Test also the sign bit of zero results.
1810 * tests/test-frexpl.c (main): Likewise.
1811 * tests/test-ldexpl.c (main): Likewise.
1812 * modules/frexp-tests (Depends-on): Add signbit.
1813 * modules/frexpl-tests (Depdends-on): Likewise.
1814 * modules/ldexpl-tests (Depdends-on): Likewise.
1816 2007-04-06 Bruno Haible <bruno@clisp.org>
1818 * modules/signbit-tests: New file.
1819 * tests/test-signbit.c: New file.
1821 * modules/signbit: New file.
1822 * lib/signbitf.c: New file.
1823 * lib/signbitd.c: New file.
1824 * lib/signbitl.c: New file.
1825 * m4/signbit.m4: New file.
1826 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
1827 (signbit): New macro.
1828 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
1830 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
1831 REPLACE_FREXPL into math.h.
1833 2007-04-06 Bruno Haible <bruno@clisp.org>
1835 * modules/isnanf-nolibm-tests: New file.
1836 * tests/test-isnanf.c: New file.
1838 * modules/isnanf-nolibm: New file.
1839 * lib/isnanf.h: New file.
1840 * lib/isnanf.c: New file.
1841 * lib/isnan.c: Consider the USE_FLOAT macro.
1842 * m4/isnanf.m4: New file.
1844 2007-04-06 Bruno Haible <bruno@clisp.org>
1846 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
1847 (Link): New section.
1849 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
1851 2007-04-06 Bruno Haible <bruno@clisp.org>
1853 Assume the 'long double' type.
1854 * m4/longdouble.m4: Remove file.
1855 * config/srclist.txt: Don't mention longdouble.m4.
1856 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
1857 * lib/float+.h: Likewise.
1858 * lib/frexp.c: Likewise.
1859 * lib/printf-args.h: Likewise.
1860 * lib/printf-args.c: Likewise.
1861 * lib/printf-frexp.c: Likewise.
1862 * lib/printf-parse.c: Likewise.
1863 * lib/vasnprintf.c: Likewise.
1864 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
1865 * m4/intl.m4: Likewise.
1866 * m4/isnanl.m4: Likewise.
1867 * m4/printf.m4: Likewise.
1868 * m4/printf-frexpl.m4: Likewise.
1869 * m4/vasnprintf.m4: Likewise.
1870 * modules/allocsa (Files): Remove m4/longdouble.m4.
1871 * modules/gettext (Files): Likewise.
1872 * modules/relocatable-prog-wrapper (Files): Likewise.
1873 * modules/vasnprintf (Files): Likewise.
1874 * modules/isnanl (Files): Likewise.
1875 (Include): Simplify.
1876 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
1877 (Include): Simplify.
1878 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
1879 (Include): Simplify.
1880 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
1881 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1882 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
1883 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1884 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
1885 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1886 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
1887 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1888 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
1889 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1890 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
1891 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
1892 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
1893 * tests/test-isnanl.c: Likewise.
1894 * tests/test-snprintf-posix.h: Likewise.
1895 * tests/test-sprintf-posix.h: Likewise.
1896 * tests/test-vasnprintf-posix.c: Likewise.
1897 * tests/test-vasnprintf-posix2.c: Likewise.
1898 * tests/test-vasprintf-posix.c: Likewise.
1900 2007-04-06 Bruno Haible <bruno@clisp.org>
1902 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
1903 * lib/math_.h [__DECC]: Include the overridden include file through
1904 #include_next, outside the double-inclusion guard.
1905 * lib/stdio_.h [__DECC]: Likewise.
1906 * lib/stdlib_.h [__DECC]: Likewise.
1907 * lib/string_.h [__DECC]: Likewise.
1908 * lib/time_.h [__DECC]: Likewise.
1909 * lib/wchar_.h [__DECC]: Likewise.
1910 * lib/wctype_.h [__DECC]: Likewise.
1911 * lib/inttypes_.h [__DECC]: Likewise.
1912 Reported by Albert Chin <china@thewrittenword.com> in
1913 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
1915 2007-04-04 Eric Blake <ebb9@byu.net>
1917 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
1920 2007-04-04 Bruno Haible <bruno@clisp.org>
1922 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
1923 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
1925 2007-04-04 Bruno Haible <bruno@clisp.org>
1927 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
1928 results for "%010a" of Infinity and NaN.
1929 * tests/test-vasprintf-posix.c (test_function): Likewise.
1930 * tests/test-snprintf-posix.h (test_function): Likewise.
1931 * tests/test-sprintf-posix.h (test_function): Likewise.
1932 * tests/test-fprintf-posix.h (test_function): Remove these tests.
1933 * tests/test-printf-posix.h (test_function): Likewise.
1934 * tests/test-fprintf-posix.out: Update.
1935 Needed for FreeBSD 6.1.
1937 2007-04-04 Bruno Haible <bruno@clisp.org>
1939 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
1940 directly used by the gnulib modules nor by gnulib-tool.
1942 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
1944 * DEPENDENCIES: Give overall description of version dependency
1945 desirability. Use more-typical names for apps.
1946 Add shell, coreutils, diffutils, grep, tar, gzip.
1948 2007-04-04 Simon Josefsson <simon@josefsson.org>
1950 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
1952 2007-04-04 Karl Berry <karl@gnu.org>
1954 * MODULES.html.sh (func_module): missing '.
1956 2007-04-03 Bruno Haible <bruno@clisp.org>
1958 * modules/argmatch-tests (Makefile.am): New variable
1959 test_argmatch_LDADD.
1960 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
1961 * modules/array-list-tests (Makefile.am): New variable
1962 test_array_list_LDADD.
1963 * modules/array-oset-tests (Makefile.am): New variable
1964 test_array_oset_LDADD.
1965 * modules/avltree-list-tests (Makefile.am): New variable
1966 test_avltree_list_LDADD.
1967 * modules/avltree-oset-tests (Makefile.am): New variable
1968 test_avltree_oset_LDADD.
1969 * modules/avltreehash-list-tests (Makefile.am): New variable
1970 test_avltreehash_list_LDADD.
1971 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
1972 test_canonicalize_lgpl_LDADD.
1973 * modules/carray-list-tests (Makefile.am): New variable
1974 test_carray_list_LDADD.
1975 * modules/dirname-tests (Makefile.am): New variable
1977 * modules/linked-list-tests (Makefile.am): New variable
1978 test_linked_list_LDADD.
1979 * modules/linkedhash-list-tests (Makefile.am): New variable
1980 test_linkedhash_list_LDADD.
1981 * modules/rbtree-list-tests (Makefile.am): New variable
1982 test_rbtree_list_LDADD.
1983 * modules/rbtree-oset-tests (Makefile.am): New variable
1984 test_rbtree_oset_LDADD.
1985 * modules/rbtreehash-list-tests (Makefile.am): New variable
1986 test_rbtreehash_list_LDADD.
1987 * modules/xvasprintf-tests (Makefile.am): New variable
1988 test_xvasprintf_LDADD.
1989 Reported by Eric Blake.
1991 2007-04-03 Eric Blake <ebb9@byu.net>
1993 * DEPENDENCIES: Weaken m4 requirements.
1995 2007-04-03 Bruno Haible <bruno@clisp.org>
1997 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
1998 * modules/isnanl-tests (configure.ac): Likewise.
2000 2007-04-03 Ben Pfaff <blp@gnu.org>
2002 * modules/iconv_open: Add $(srcdir)/ to source directory
2003 references in Makefile fragments that call gperf, to fix VPATH
2006 2007-04-03 Bruno Haible <bruno@clisp.org>
2008 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
2009 * lib/ldexpl.c: Undo last change.
2011 2007-04-03 Bruno Haible <bruno@clisp.org>
2013 * modules/printf-frexpl (Depends-on): Undo last change.
2014 (Files): Add m4/ldexpl.m4.
2016 2007-04-03 Bruno Haible <bruno@clisp.org>
2018 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
2019 * modules/isnanl (Link): New section.
2021 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
2022 * modules/frexp (Link): New section.
2024 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
2025 * modules/frexpl (Link): New section.
2027 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
2028 * modules/ldexpl (Link): New section.
2030 2007-04-03 Bruno Haible <bruno@clisp.org>
2032 * modules/TEMPLATE-EXTENDED: New file.
2033 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
2035 2007-04-03 Bruno Haible <bruno@clisp.org>
2037 * DEPENDENCIES: New file.
2038 Suggested by Simon Josefsson.
2040 2007-04-03 Bruno Haible <bruno@clisp.org>
2042 * doc/gnulib.texi: Escape @.
2044 2007-04-03 James Youngman <jay@gnu.org>
2045 and Paul Eggert <eggert@cs.ucla.edu>
2047 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
2048 birthtime on all systems that have birthtime, not just those which
2049 use st_birthtimensec rather than st_birthtim. Putting zero in
2050 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
2051 that the birth time is not available for files on an NFS mount.
2053 2007-04-03 Simon Josefsson <simon@josefsson.org>
2055 * modules/memxor: Move back from crypto/, suggested by Bruno.
2056 * modules/crypto/hmac-sha1: Fix memxor dependency.
2058 * modules/crypto/gc: Moved from ../.
2060 2007-04-02 Eric Blake <ebb9@byu.net>
2062 * lib/ldexpl.c (includes): Avoid libm.
2064 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
2066 2007-04-02 Bruno Haible <bruno@clisp.org>
2068 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
2071 2007-04-02 Bruno Haible <bruno@clisp.org>
2073 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
2074 x86 or x86_64 platforms running MacOS X.
2075 Reported by Ryan Schmidt <@ryandesign.com>.
2077 2007-04-02 Bruno Haible <bruno@clisp.org>
2079 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
2082 2007-04-01 Simon Josefsson <simon@josefsson.org>
2084 * modules/crypto/arcfour: Moved from ../.
2085 * modules/crypto/arcfour-tests: Moved from ../.
2086 * modules/crypto/arctwo: Moved from ../.
2087 * modules/crypto/arctwo-tests: Moved from ../.
2088 * modules/crypto/des: Moved from ../.
2089 * modules/crypto/des-tests: Moved from ../.
2090 * modules/crypto/gc-arcfour: Moved from ../.
2091 * modules/crypto/gc-arcfour-tests: Moved from ../.
2092 * modules/crypto/gc-arctwo: Moved from ../.
2093 * modules/crypto/gc-arctwo-tests: Moved from ../.
2094 * modules/crypto/gc-des: Moved from ../.
2095 * modules/crypto/gc-des-tests: Moved from ../.
2096 * modules/crypto/gc-hmac-md5: Moved from ../.
2097 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
2098 * modules/crypto/gc-hmac-sha1: Moved from ../.
2099 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
2100 * modules/crypto/gc-md2: Moved from ../.
2101 * modules/crypto/gc-md2-tests: Moved from ../.
2102 * modules/crypto/gc-md4: Moved from ../.
2103 * modules/crypto/gc-md4-tests: Moved from ../.
2104 * modules/crypto/gc-md5: Moved from ../.
2105 * modules/crypto/gc-md5-tests: Moved from ../.
2106 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
2107 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
2108 * modules/crypto/gc-random: Moved from ../.
2109 * modules/crypto/gc-rijndael: Moved from ../.
2110 * modules/crypto/gc-rijndael-tests: Moved from ../.
2111 * modules/crypto/gc-sha1: Moved from ../.
2112 * modules/crypto/gc-sha1-tests: Moved from ../.
2113 * modules/crypto/gc-tests: Moved from ../.
2114 * modules/crypto/hmac-md5: Moved from ../.
2115 * modules/crypto/hmac-md5-tests: Moved from ../.
2116 * modules/crypto/hmac-sha1: Moved from ../.
2117 * modules/crypto/hmac-sha1-tests: Moved from ../.
2118 * modules/crypto/md2: Moved from ../.
2119 * modules/crypto/md2-tests: Moved from ../.
2120 * modules/crypto/md4: Moved from ../.
2121 * modules/crypto/md4-tests: Moved from ../.
2122 * modules/crypto/md5: Moved from ../.
2123 * modules/crypto/md5-tests: Moved from ../.
2124 * modules/crypto/memxor: Moved from ../.
2125 * modules/crypto/rijndael: Moved from ../.
2126 * modules/crypto/rijndael-tests: Moved from ../.
2127 * modules/crypto/sha1: Moved from ../.
2129 2007-03-30 James Youngman <jay@gnu.org>
2131 * tests/test-stat-time.c (prepare_test): use chmod() rather than
2132 rename() to change the ctime of a file (because ctime is unaffected
2133 by rename on jfs2 on AIX 5.1).
2134 (main): Start by doing cleanup, in case a previous run failed leaving
2137 2007-03-31 Bruno Haible <bruno@clisp.org>
2139 Support old proprietary implementations of iconv.
2140 * modules/iconv_open: New file.
2141 * lib/iconv_.h: New file.
2142 * m4/iconv_h.m4: New file.
2143 * lib/iconv_open.c: New file.
2144 * lib/iconv_open-aix.gperf: New file.
2145 * lib/iconv_open-hpux.gperf: New file.
2146 * lib/iconv_open-irix.gperf: New file.
2147 * lib/iconv_open-osf.gperf: New file.
2148 * m4/iconv_open.m4: New file.
2149 * modules/linebreak (Depends-on): Add iconv_open.
2150 * modules/striconv (Depends-on): Likewise.
2151 * modules/striconveh (Depends-on): Likewise.
2152 * modules/unicodeio (Depends-on): Likewise.
2153 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
2155 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
2156 conversion if cd is (iconv_t)(-1).
2157 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
2160 2007-03-31 Bruno Haible <bruno@clisp.org>
2162 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2163 work on Solaris either. Protect also second use of "autodetect_jp".
2165 2007-03-31 Bruno Haible <bruno@clisp.org>
2167 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
2168 the function is not present.
2170 2007-03-31 Bruno Haible <bruno@clisp.org>
2172 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
2173 the function is not present.
2175 2007-03-31 Bruno Haible <bruno@clisp.org>
2177 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
2178 a bug in HP-UX iconv_open().
2180 2007-03-31 Bruno Haible <bruno@clisp.org>
2182 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
2183 (Mathematics <math.h>): New section, add fpieee.
2184 (Input/output <stdio.h>): Add fseterr.
2185 (Mathematics <math.h>): New section, add printf-frexp.
2186 (Container data structures): Add sublist.
2187 (Core language properties): Add fpucw, inline.
2188 (Functions for greatest-width integer types <inttypes.h>): Add
2189 imaxabs, imaxdiv, inttypes.
2190 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
2191 isnanl-nolibm, ldexp.
2192 (Mathematics <math.h>): New section, add printf-frexpl.
2193 (Support for systems lacking POSIX:2001): Add fprintf-posix,
2194 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
2195 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
2196 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
2197 (Unicode string functions): Add unistr/u*-mbtoucr.
2198 (Java): Add javacomp-script, javaexec-script.
2199 (C#): Add csharpcomp-script, csharpexec-script.
2200 (Support for building libraries and executables): Add havelib,
2202 (Support for maintaining and releasing projects): Renamed from
2203 'Support for maintaining and release projects'. Add announce-gen.
2205 2007-03-31 Bruno Haible <bruno@clisp.org>
2207 * README: Talk primarily about git.
2208 (git and CVS): Renamed from CVS.
2209 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
2210 gnulib is available through git.
2211 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
2213 2007-03-30 Bruno Haible <bruno@clisp.org>
2215 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
2216 * lib/poll_.h: Likewise.
2217 * lib/stat_.h: Likewise.
2218 * lib/sys_time_.h: Likewise.
2219 * lib/sysexit_.h: Likewise.
2220 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
2221 * lib/stdbool_.h: Likewise.
2222 * lib/byteswap_.h: Add double-inclusion guard.
2224 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
2226 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
2228 2007-03-30 Karl Berry <karl@gnu.org>
2230 * config/srclist-update: double space after USA in the license
2231 substitution, since that's how it's usually (?) written.
2233 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
2235 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
2236 reported by Bruno Haible.
2238 2007-03-29 Bruno Haible <bruno@clisp.org>
2240 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
2241 a bug in AIX iconv().
2243 2007-03-29 Bruno Haible <bruno@clisp.org>
2245 * modules/ldexpl-tests: New file.
2246 * tests/test-ldexpl.c: New file.
2248 2007-03-29 Bruno Haible <bruno@clisp.org>
2250 * lib/ldexpl.c: Include fpucw.h.
2251 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
2253 * modules/ldexpl (Depends-on): Add fpucw.
2255 2007-03-29 Bruno Haible <bruno@clisp.org>
2257 * modules/ldexpl: New file.
2258 * m4/ldexpl.m4: New file.
2259 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
2261 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
2263 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
2265 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2266 gl_FUNC_LDEXPL_WORKS.
2267 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
2268 * modules/mathl (Files): Remove lib/ldexpl.c.
2269 (Depends-on): Add ldexpl.
2271 2007-03-29 Bruno Haible <bruno@clisp.org>
2273 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
2275 2007-03-29 Bruno Haible <bruno@clisp.org>
2277 * tests/test-striconveh.c (main): Don't assume that a direct conversion
2278 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
2279 and possibly also HP-UX.
2280 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2281 work on AIX, IRIX, HP-UX, OSF/1.
2282 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2283 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2284 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2285 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2286 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
2287 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2289 2007-03-29 Bruno Haible <bruno@clisp.org>
2291 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
2293 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
2295 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
2296 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
2298 2007-03-29 Eric Blake <ebb9@byu.net>
2300 * lib/acl-internal.h: Remove redundant include.
2301 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
2302 Cygwin when a file is locked.
2304 2007-03-29 Bruno Haible <bruno@clisp.org>
2306 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
2308 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
2310 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
2312 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
2313 try to remove a parent directory if the child couldn't be removed
2314 (except for the first rmdir, which could fail because the child
2315 doesn't exist). Problem reported by Jeff Blaine in
2316 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
2318 2007-03-28 Bruno Haible <bruno@clisp.org>
2320 * lib/striconveh.c (utf8conv_carefully): New function.
2321 (mem_cd_iconveh_internal): Invoke it.
2323 2007-03-28 Bruno Haible <bruno@clisp.org>
2325 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
2326 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
2328 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
2329 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
2332 2007-03-28 Bruno Haible <bruno@clisp.org>
2334 * modules/unistr/u8-mbtoucr: New file.
2335 * lib/unistr/u8-mbtoucr.c: New file.
2336 * modules/unistr/u16-mbtoucr: New file.
2337 * lib/unistr/u16-mbtoucr.c: New file.
2338 * modules/unistr/u16-mbtoucr: New file.
2339 * lib/unistr/u16-mbtoucr.c: New file.
2340 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
2342 2007-03-27 Simon Josefsson <simon@josefsson.org>
2343 Bruno Haible <bruno@clisp.org>
2345 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
2346 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
2347 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
2349 * m4/stdio_h.m4: Add stubs for vasprintf too.
2351 * modules/stdio: Support vasprintf in sed command.
2353 * modules/vasprintf: Depend on stdio for prototypes. Remove
2354 vasprintf.h. Add stdio module indicator.
2356 * lib/stdio_.h: Declare asprintf and vasprintf, based on
2359 * lib/vasprintf.h: File removed.
2361 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
2362 * lib/vasprintf.c: Ditto.
2363 * lib/xvasprintf.c: Ditto.
2364 * tests/test-vasprintf-posix.c: Ditto.
2365 * tests/test-vasprintf.c: Ditto.
2367 2007-03-27 Bruno Haible <bruno@clisp.org>
2369 Make vasnprintf multithread-safe.
2370 * lib/vasnprintf.c (decimal_point_char): New function.
2371 (VASNPRINTF): Use it.
2372 Suggested by Simon Josefsson.
2374 2007-03-27 Eric Blake <ebb9@byu.net>
2376 Support sub-second birthtime on cygwin.
2377 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
2378 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
2379 (get_stat_birthtime): Also work with st_birthtim.
2381 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
2383 * lib/stat-time.h (USE_BIRTHTIME): Remove.
2384 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
2385 (get_stat_birthtime_ns): Do not try to use "spare" fields.
2386 (get_stat_birthtime_ns): Simplify compile-time tests.
2387 (get_stat_birthtime): Change the API to look like
2388 get_stat_mtime etc., except return a negative tv_nsec on error.
2389 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2390 Don't check for "spare" fields.
2391 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
2392 or for struct stat.st_birthtime, as these tests aren't used.
2393 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
2395 2007-03-27 Bruno Haible <bruno@clisp.org>
2397 * lib/stat-time.h: Include <sys/stat.h>.
2399 2007-03-27 James Youngman <jay@gnu.org>
2401 * lib/stat-time.h (get_stat_birthtime): New function for
2402 retrieving st_birthtime as provided by UFS2 (hence *BSD).
2403 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
2405 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
2406 * modules/stat-time-test: New file.
2407 * tests/test-stat-time.c: New test, devised by Bruno Haible.
2409 2007-03-26 Bruno Haible <bruno@clisp.org>
2411 Better support of signalling NaNs.
2412 * lib/atanl.c: Include isnanl.h.
2413 (atanl): Perform test for NaN at the beginning of the function and
2414 through a call to isnanl.
2415 * lib/cosl.c: Include isnanl.h.
2416 (cosl): Perform test for NaN at the beginning of the function and
2417 through a call to isnanl.
2418 * lib/ldexpl.c: Include isnanl.h.
2419 (ldexpl): Perform test for NaN through a call to isnanl.
2420 * lib/logl.c: Include isnanl.h.
2421 (logl): Perform test for NaN at the beginning of the function and
2422 through a call to isnanl.
2423 * lib/sinl.c: Include isnanl.h.
2424 (sinl): Perform test for NaN at the beginning of the function and
2425 through a call to isnanl.
2426 * lib/sqrtl.c: Include isnanl.h.
2427 (sqrtl): Perform test for NaN at the beginning of the function and
2428 through a call to isnanl.
2429 * lib/tanl.c: Include isnanl.h.
2430 (tanl): Perform test for NaN at the beginning of the function and
2431 through a call to isnanl.
2432 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
2433 * modules/mathl (Depends-on): Add isnanl.
2435 2007-03-26 Eric Blake <ebb9@byu.net>
2437 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
2438 regression in logic sense of previous patch.
2440 2007-03-26 Bruno Haible <bruno@clisp.org>
2442 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
2443 unportable shell command "if ! ...".
2444 Reported by Ralf Wildenhues.
2446 2007-03-25 Bruno Haible <bruno@clisp.org>
2448 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
2449 <sysexits.h> file, and only add EX_CONFIG.
2450 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
2451 absolute file name and whether it is sufficient. Substitute also
2452 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
2453 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
2454 ABSOLUTE_SYSEXITS_H into sysexits.h.
2456 2007-03-25 Bruno Haible <bruno@clisp.org>
2458 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
2461 2007-03-25 Bruno Haible <bruno@clisp.org>
2463 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
2464 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
2466 2007-03-25 Bruno Haible <bruno@clisp.org>
2468 * lib/vasnprintf.c: Include langinfo.h.
2469 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
2471 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
2472 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
2473 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2474 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2475 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2476 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2477 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2478 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
2479 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2480 Reported by Simon Josefsson.
2482 2007-03-25 Bruno Haible <bruno@clisp.org>
2484 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
2485 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
2486 * modules/vasnprintf (Depends-on): Add stdint.
2488 2007-03-25 Bruno Haible <bruno@clisp.org>
2490 * modules/fpieee: New file.
2491 * m4/fpieee.m4: New file.
2492 * modules/isnan-nolibm (Depends-on): Add fpieee.
2493 * modules/isnanl-nolibm (Depends-on): Add fpieee.
2494 * modules/isnanl (Depends-on): Add fpieee.
2496 2007-03-25 Bruno Haible <bruno@clisp.org>
2498 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
2500 2007-03-25 Bruno Haible <bruno@clisp.org>
2502 Avoid test failures on IRIX 6.5.
2503 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
2505 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
2509 2007-03-25 Bruno Haible <bruno@clisp.org>
2511 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
2512 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
2513 exists but doesn't work.
2514 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
2515 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
2516 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
2517 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
2519 2007-03-25 Bruno Haible <bruno@clisp.org>
2521 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
2522 returns inf. Needed on IRIX 6.5.
2524 2007-03-25 Bruno Haible <bruno@clisp.org>
2526 * tests/test-frexpl.c: Include isnanl-nolibm.h.
2527 (main): Use isnanl instead of x != x idiom.
2528 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
2530 * tests/test-frexp.c: Include isnan.h.
2531 (main): Use isnan instead of x != x idiom.
2532 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
2534 2007-03-25 Bruno Haible <bruno@clisp.org>
2536 * tests/test-frexp.c (NaN): New function/macro.
2537 (main): Use it instead of 0.0 / 0.0.
2538 * tests/test-isnan.c (NaN): New function/macro.
2539 (main): Use it instead of 0.0 / 0.0.
2540 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
2541 (test_function): Use it instead of 0.0 / 0.0.
2542 * tests/test-vasprintf-posix.c (NaN): New function/macro.
2543 (test_function): Use it instead of 0.0 / 0.0.
2544 * tests/test-snprintf-posix.h (NaN): New function/macro.
2545 (test_function): Use it instead of 0.0 / 0.0.
2546 * tests/test-sprintf-posix.h (NaN): New function/macro.
2547 (test_function): Use it instead of 0.0 / 0.0.
2548 * tests/test-fprintf-posix.h (NaN): New function/macro.
2549 (test_function): Use it instead of 0.0 / 0.0.
2550 * tests/test-printf-posix.h (NaN): New function/macro.
2551 (test_function): Use it instead of 0.0 / 0.0.
2553 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
2555 2007-03-25 Bruno Haible <bruno@clisp.org>
2557 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
2559 2007-03-25 Bruno Haible <bruno@clisp.org>
2561 * lib/regexec.c (merge_state_with_log): Make static.
2563 2007-03-25 Bruno Haible <bruno@clisp.org>
2565 * lib/trigl.c (kernel_rem_pio2): Make static.
2567 2007-03-25 Bruno Haible <bruno@clisp.org>
2569 * lib/sincosl.c (sincosl_table): Make static.
2571 2007-03-25 Bruno Haible <bruno@clisp.org>
2573 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
2574 if the compiler does not support C99.
2576 2007-03-25 Bruno Haible <bruno@clisp.org>
2578 * modules/time (Makefile.am): Ensure all rule action lines start with a
2581 2007-03-24 Bruno Haible <bruno@clisp.org>
2583 * modules/tsearch-tests: New file.
2584 * tests/test-tsearch.sh: New file.
2585 * tests/test-tsearch.c: New file, mostly copied from glibc.
2587 * modules/search-tests: New file.
2588 * tests/test-search.c: New file.
2590 * modules/search: New file.
2591 * lib/search_.h: New file, incorporating lib/tsearch.h.
2592 * m4/search_h.m4: New file.
2593 * lib/tsearch.h: Remove file.
2594 * lib/tsearch.c: Include search.h instead of tsearch.h.
2595 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
2597 * modules/tsearch (Files): Remove lib/tsearch.h.
2598 (Depends-on): Add search.
2599 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
2600 (Include): Change tsearch.h into search.h.
2602 2007-03-24 Bruno Haible <bruno@clisp.org>
2604 * modules/fpucw: New file.
2605 * lib/fpucw.h: New file.
2606 * lib/frexp.c: Include fpucw.h.
2607 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
2609 * lib/printf-frexp.c: Include fpucw.h.
2610 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
2612 * lib/vasnprintf.c: Include fpucw.h.
2613 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
2614 'long double' calculations.
2615 * tests/test-frexpl.c: Include fpucw.h.
2616 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
2617 * tests/test-printf-frexpl.c: Include fpucw.h.
2618 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
2619 * modules/frexpl (Depends-on): Add fpucw.
2620 * modules/printf-frexpl (Depends-on): Likewise.
2621 * modules/fprintf-posix (Depends-on): Likewise.
2622 * modules/snprintf-posix (Depends-on): Likewise.
2623 * modules/sprintf-posix (Depends-on): Likewise.
2624 * modules/vasnprintf-posix (Depends-on): Likewise.
2625 * modules/vasprintf-posix (Depends-on): Likewise.
2626 * modules/vfprintf-posix (Depends-on): Likewise.
2627 * modules/vsnprintf-posix (Depends-on): Likewise.
2628 * modules/vsprintf-posix (Depends-on): Likewise.
2629 * modules/frexpl-tests (Depends-on): Likewise.
2630 * modules/printf-frexpl-tests (Depends-on): Likewise.
2632 2007-03-24 Bruno Haible <bruno@clisp.org>
2634 * lib/float+.h: New file.
2635 * lib/isnan.c: Include float+.h.
2637 (FUNC): Compare only SIZE bytes of the value.
2638 * lib/vasnprintf.c: Include float+.h.
2639 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
2640 SIZEOF_LDBL or SIZEOF_DBL bytes.
2641 * modules/isnan-nolibm (Files): Add lib/float+.h.
2642 * modules/isnanl-nolibm (Files): Add lib/float+.h.
2643 * modules/isnanl (Files): Add lib/float+.h.
2644 * modules/vasnprintf (Files): Add lib/float+.h.
2646 2007-03-24 Bruno Haible <bruno@clisp.org>
2648 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
2649 include isnanl-nolibm.h.
2651 2007-03-24 Bruno Haible <bruno@clisp.org>
2653 * tests/test-read-file.c (main): Don't produce spurious output for
2654 expected situations. Make the test fail if it encountered unexpected
2657 2007-03-24 Bruno Haible <bruno@clisp.org>
2659 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
2660 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
2662 2007-03-24 Bruno Haible <bruno@clisp.org>
2664 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
2666 2007-03-24 Bruno Haible <bruno@clisp.org>
2668 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
2669 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
2671 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
2672 * modules/utf8-ucs4: Turn into a symbolic link to module
2675 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
2677 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
2678 unistr/u8-mbtouc-unsafe.
2680 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
2681 * modules/utf16-ucs4: Turn into a symbolic link to module
2684 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
2686 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
2687 unistr/u16-mbtouc-unsafe.
2689 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
2690 * modules/ucs4-utf8: Turn into a symbolic link to module
2693 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
2694 * modules/ucs4-utf16: Turn into a symbolic link to module
2697 2007-03-24 Bruno Haible <bruno@clisp.org>
2699 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
2700 Enable the function only if HAVE_INLINE.
2701 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
2702 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
2703 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
2704 Enable the function only if HAVE_INLINE.
2705 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
2706 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
2707 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
2708 Enable the function only if HAVE_INLINE.
2709 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
2710 Enable the function only if HAVE_INLINE.
2711 * modules/utf8-ucs4: Update.
2712 * modules/utf8-ucs4-unsafe: Update.
2713 * modules/utf16-ucs4: Update.
2714 * modules/utf16-ucs4-unsafe: Update.
2715 * modules/ucs4-utf8: Update.
2716 * modules/ucs4-utf16: Update.
2718 2007-03-24 Bruno Haible <bruno@clisp.org>
2720 * lib/utf8-ucs4.h: Remove file.
2721 * lib/utf8-ucs4-unsafe.h: Remove file.
2722 * lib/utf16-ucs4.h: Remove file.
2723 * lib/utf16-ucs4-unsafe.h: Remove file.
2724 * lib/ucs4-utf8.h: Remove file.
2725 * lib/ucs4-utf16.h: Remove file.
2726 * lib/unistr.h: Include their previous contents.
2727 * m4/utf-ucs4.m4: Remove file.
2728 * m4/ucs4-utf.m4: Remove file.
2729 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
2730 (Depends-on): Add unistr/base.
2731 (configure.ac): Remove gl_UTF_UCS4.
2732 (Makefile.am): Update.
2733 (Include): Change to unistr.h.
2734 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
2735 (Depends-on): Add unistr/base.
2736 (configure.ac): Remove gl_UTF_UCS4.
2737 (Makefile.am): Update.
2738 (Include): Change to unistr.h.
2739 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
2740 (Depends-on): Add unistr/base.
2741 (configure.ac): Remove gl_UTF_UCS4.
2742 (Makefile.am): Update.
2743 (Include): Change to unistr.h.
2744 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
2745 (Depends-on): Add unistr/base.
2746 (configure.ac): Remove gl_UTF_UCS4.
2747 (Makefile.am): Update.
2748 (Include): Change to unistr.h.
2749 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
2750 (Depends-on): Add unistr/base.
2751 (configure.ac): Remove gl_UCS4_UTF.
2752 (Makefile.am): Update.
2753 (Include): Change to unistr.h.
2754 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
2755 (Depends-on): Add unistr/base.
2756 (configure.ac): Remove gl_UCS4_UTF.
2757 (Makefile.am): Update.
2758 (Include): Change to unistr.h.
2759 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
2760 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
2762 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
2763 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
2764 utf16-ucs4-unsafe.h.
2765 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
2766 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
2767 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
2768 * lib/unistr/u8-strchr.c: Likewise.
2769 * lib/unistr/u8-strrchr.c: Likewise.
2770 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
2771 * lib/unistr/u16-strchr.c: Likewise.
2772 * lib/unistr/u16-strrchr.c: Likewise.
2773 * lib/striconveh.c: Update.
2774 * lib/linebreak.c: Update.
2776 2007-03-24 Bruno Haible <bruno@clisp.org>
2778 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
2779 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
2781 2007-03-22 Bruno Haible <bruno@clisp.org>
2783 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
2785 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
2787 * MODULES.html.sh (File system functions): New module write-any-file.
2788 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
2789 * m4/write-any-file.m4: New files.
2791 2007-03-23 Eric Blake <ebb9@byu.net>
2793 * gnulib-tool: Rearrange space-tab sequences, since some editors
2796 2007-03-23 Eric Blake <ebb9@byu.net>
2798 * lib/version-etc.c (version_etc_va): Update license wording to
2799 be more concise. Recommended by Richard Stallman.
2801 2007-03-22 Bruno Haible <bruno@clisp.org>
2803 * lib/poll.c (MSG_PEEK): New fallback definition.
2805 2007-03-22 Bruno Haible <bruno@clisp.org>
2807 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
2808 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
2810 Fixes a compilation error on BeOS.
2812 2007-03-22 Bruno Haible <bruno@clisp.org>
2814 * modules/frexpl-tests: New file.
2815 * tests/test-frexpl.c: New file.
2817 * modules/frexpl: New file.
2818 * m4/frexpl.m4: New file.
2819 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
2820 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
2821 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
2822 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
2823 (Depends-on): Add frexpl. Remove isnanl-nolibm.
2824 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
2826 2007-03-22 Bruno Haible <bruno@clisp.org>
2828 * lib/frexpl.c: Share code with lib/frexp.c.
2829 * modules/mathl (Files): Add lib/frexp.c.
2830 (Depends-on): Add isnanl-nolibm.
2832 2007-03-22 Bruno Haible <bruno@clisp.org>
2834 * modules/printf-frexp (Files): Add m4/frexp.m4.
2835 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
2836 only if the found frexp function actually works.
2838 2007-03-22 Bruno Haible <bruno@clisp.org>
2840 * lib/frexp.c: Remove older implementation that uses divisions.
2842 2007-03-21 Bruno Haible <bruno@clisp.org>
2844 * modules/frexp-tests: New file.
2845 * tests/test-frexp.c: New file.
2847 * modules/frexp: New file.
2848 * lib/frexp.c: New file.
2849 * m4/frexp.m4: New file.
2850 * lib/math_.h (frexp): New declaration.
2851 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
2853 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
2855 2007-03-21 Bruno Haible <bruno@clisp.org>
2857 * modules/isnanl-tests: New file.
2858 * tests/test-isnanl.c: New file.
2860 * modules/isnanl: New file.
2861 * lib/isnanl.h: New file.
2862 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
2863 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
2864 gl_FUNC_ISNANL_WORKS.
2865 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
2868 2007-03-21 Bruno Haible <bruno@clisp.org>
2870 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
2873 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
2874 * lib/vasnprintf.c: Update.
2875 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
2876 tests/test-isnanl.h, remove tests/test-isnanl.c.
2877 (Makefile.am): Update.
2878 * tests/test-isnanl-nolibm.c: New file.
2879 * tests/test-isnanl.h: New file.
2880 * tests/test-isnanl.c: Remove file.
2882 2007-03-21 Jim Meyering <jim@meyering.net>
2884 When trying to open ".", treat ESTALE like EACCES.
2885 * lib/savewd.c (savewd_save): Resort to forking not just upon
2886 failure with EACCES, but also when errno is ESTALE.
2888 2007-03-20 Bruno Haible <bruno@clisp.org>
2890 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
2891 Needed on AIX 5.1. Reported by Matthew Woehlke.
2893 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
2895 Suggestions by Bruno Haible:
2896 * lib/acl-internal.h: Include "gettext.h" rather than rolling
2898 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
2899 * modules/acl (Depends-on): Add gettext.
2901 2007-03-19 Bruno Haible <bruno@clisp.org>
2903 * modules/iconvme: Remove file.
2904 * lib/iconvme.h: Remove file.
2905 * lib/iconvme.c: Remove file.
2906 * m4/iconvme.m4: Remove file.
2908 2007-03-19 Bruno Haible <bruno@clisp.org>
2910 * doc/relocatable-maint.texi: Break long shell script line.
2911 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
2913 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
2915 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
2916 handle file_has_acl.
2917 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
2918 * lib/acl.c: Move header inclusions and related macro defns into
2920 (S_ISLNK): Remove defn, since that's now done for us.
2921 (file_has_acl): Move to lib/file-has-acl.c.
2922 Call acl_trivial if available. This is the crucial part of the fix.
2923 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
2924 shared within the library. Rewrite a bit, partly to make it compatible
2925 with the GNU coding style.
2926 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
2927 Remove unnecessary double-quotes.
2928 Don't test for acl_to_text; the build will catch that.
2929 Replace acl_entries if it doesn't exist and it is needed.
2930 Check for -lsec and acl_trivial (as used on Solaris 10).
2931 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
2933 (Depends-on): Add sys_stat, for S_ISLNK.
2935 2007-03-19 Ben Pfaff <blp@gnu.org>
2937 * doc/gnulib.texi: Fix typos.
2938 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
2940 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
2942 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
2943 If size is zero here, buf must be zero.
2945 2007-03-19 Simon Josefsson <simon@josefsson.org>
2947 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
2950 2007-03-18 Bruno Haible <bruno@clisp.org>
2952 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
2953 Suggested by Eric Blake.
2955 2007-03-18 Ben Pfaff <blp@gnu.org>
2957 * doc/relocatable.texi: Recommend using as prefix a directory
2958 that does not exist and will never be created. Based on
2959 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
2962 2007-03-17 Bruno Haible <bruno@clisp.org>
2964 * lib/fchownat.c: Include lchown.h.
2966 2007-03-17 Bruno Haible <bruno@clisp.org>
2968 Fix endless loop when the given allocated size was > INT_MAX.
2969 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
2970 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
2971 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
2972 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
2973 * lib/sprintf.c (sprintf): Likewise.
2975 2007-03-17 Bruno Haible <bruno@clisp.org>
2977 * tests/test-argp-2.sh (func_compare): Output a context diff.
2979 2007-03-17 Bruno Haible <bruno@clisp.org>
2981 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
2982 locale's decimal-point character.
2984 2007-03-17 Bruno Haible <bruno@clisp.org>
2986 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
2987 before comparing it. Needed because on some platforms (e.g. x86) a
2988 'long double' occupies less bytes than sizeof (long double).
2990 2007-03-17 Bruno Haible <bruno@clisp.org>
2992 * tests/test-crc.c (main): Make printf statements 64-bit clean.
2993 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
2994 * tests/test-getaddrinfo.c (simple): Likewise.
2995 * tests/test-read-file.c (main): Likewise.
2997 2007-03-17 Bruno Haible <bruno@clisp.org>
2999 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
3001 2007-03-17 Bruno Haible <bruno@clisp.org>
3003 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
3006 2007-03-17 Bruno Haible <bruno@clisp.org>
3008 * tests/test-c-strcasecmp.c: Include c-strcase.h.
3009 * tests/test-c-strncasecmp.c: Likewise.
3011 2007-03-17 Bruno Haible <bruno@clisp.org>
3013 * modules/stdlib (Depends-on): Add unistd.
3014 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
3015 Needed for MacOS X 10.3.
3017 2007-03-17 Bruno Haible <bruno@clisp.org>
3019 * lib/unistr/u-strdup.h: Include <stdlib.h>.
3021 2007-03-17 Bruno Haible <bruno@clisp.org>
3023 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
3025 2007-03-17 Bruno Haible <bruno@clisp.org>
3027 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
3028 to reflect files copied from gnulib (with or without modifications).
3029 Suggested by Jim Meyering.
3031 2007-03-17 Eric Blake <ebb9@byu.net>
3033 * NEWS: Document stdlib change from 2007-02-18.
3035 2007-03-17 Jim Meyering <jim@meyering.net>
3037 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
3038 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
3039 someone uses a name containing shell meta-characters.
3040 Reported by Alfred M. Szmidt.
3042 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
3044 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
3046 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
3047 and copy gettext configuration files only if configure.ac contains
3048 a use of AM_GNU_GETTEXT_VERSION.
3050 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
3052 * build-aux/bootstrap (gnulib_name): New variable.
3053 (gnulib_tool_options): Use it.
3055 2007-03-13 Simon Josefsson <simon@josefsson.org>
3057 * tests/test-des.c: Use new namespace.
3059 2007-03-15 Bruno Haible <bruno@clisp.org>
3061 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
3062 Reported by James Youngman <jay@gnu.org>.
3064 2007-03-15 Bruno Haible <bruno@clisp.org>
3066 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
3067 declared prototype. Needed with cc on OSF/1 5.1.
3069 2007-03-15 Bruno Haible <bruno@clisp.org>
3071 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
3072 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
3073 (struct gl_list_implementation): Add dispose_fn argument to the
3074 'create_empty', 'create' methods.
3075 (struct gl_list_impl_base): Add field 'dispose_fn'.
3076 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
3078 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
3079 dispose_fn argument.
3080 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
3081 dispose_fn on the dropped values.
3082 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
3083 dispose_fn argument.
3084 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
3086 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
3087 (gl_tree_remove_node): Call dispose_fn on the dropped value.
3088 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
3089 (gl_tree_remove_node): Call dispose_fn on the dropped value.
3090 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
3092 (gl_tree_list_free): Call dispose_fn on the dropped values.
3093 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
3095 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3096 Add dispose_fn argument.
3097 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
3098 Call dispose_fn on the dropped values.
3099 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
3100 Add dispose_fn argument.
3101 (gl_sublist_create): Initialize the 'dispose_fn' field.
3102 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
3103 * tests/test-array_list.c (main): Update.
3104 * tests/test-carray_list.c (main): Update.
3105 * tests/test-avltree_list.c (main): Update.
3106 * tests/test-rbtree_list.c (main): Update.
3107 * tests/test-avltreehash_list.c (main): Update.
3108 * tests/test-rbtreehash_list.c (main): Update.
3109 * tests/test-linked_list.c (main): Update.
3110 * tests/test-linkedhash_list.c (main): Update.
3111 * tests/test-array_oset.c (main): Update.
3113 2007-03-15 Bruno Haible <bruno@clisp.org>
3115 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
3116 (gl_oset_create_empty): Add dispose_fn argument.
3117 (struct gl_oset_implementation): Add dispose_fn argument to
3118 'create_empty' method.
3119 (struct gl_oset_impl_base): Add dispose_fn field.
3120 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
3121 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
3122 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
3124 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
3125 (gl_tree_oset_free): Call dispose_fn on the dropped values.
3126 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3128 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3130 * tests/test-array_oset.c (main): Update.
3131 * tests/test-avltree_oset.c (main): Update.
3132 * tests/test-rbtree_oset.c (main): Update.
3133 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
3135 2007-03-13 Bruno Haible <bruno@clisp.org>
3137 * tests/test-stdbool.c (i): Update after last patch.
3139 2007-03-12 Bruno Haible <bruno@clisp.org>
3141 * lib/quotearg.c: Include <wctype.h> early, before the definition of
3142 the iswprint macro. Needed on Solaris 2.5.1.
3144 2007-03-12 Bruno Haible <bruno@clisp.org>
3146 * tests/test-printf-frexp.c (main): Declare x as volatile.
3148 2007-03-12 Simon Josefsson <simon@josefsson.org>
3150 * doc/gnulib.texi (Build robot for gnulib): New section.
3152 2007-03-12 Jim Meyering <jim@meyering.net>
3154 * build-aux/bootstrap: New file.
3155 * build-aux/bootstrap.conf: New file, from coreutils.
3157 2007-03-11 Bruno Haible <bruno@clisp.org>
3159 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
3161 2007-03-12 Simon Josefsson <simon@josefsson.org>
3163 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
3164 avoid collisions with 'des_setkey'. Reported by Bruno Haible
3165 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
3167 2007-03-11 Bruno Haible <bruno@clisp.org>
3169 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
3170 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
3172 2007-03-11 Bruno Haible <bruno@clisp.org>
3174 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
3175 formula. Needed for SunPRO C 5.0.
3177 2007-03-11 Bruno Haible <bruno@clisp.org>
3179 * modules/long-options (Depends-on): Add getopt.
3181 2007-03-11 Bruno Haible <bruno@clisp.org>
3183 * modules/modechange (Depends-on): Add stdbool.
3185 2007-03-11 Bruno Haible <bruno@clisp.org>
3187 * modules/i-ring (Depends-on): Add stdbool.
3189 2007-03-11 Bruno Haible <bruno@clisp.org>
3191 * modules/gc-des (Depends-on): Add stdbool.
3193 2007-03-11 Bruno Haible <bruno@clisp.org>
3195 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
3197 2007-03-11 Bruno Haible <bruno@clisp.org>
3199 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
3201 2007-03-11 Bruno Haible <bruno@clisp.org>
3203 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
3205 2007-03-11 Bruno Haible <bruno@clisp.org>
3207 * lib/vasnprintf.c (sprintf): Undefine.
3209 2007-03-11 Bruno Haible <bruno@clisp.org>
3211 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
3212 initializers in SunPRO C and Compaq C compilers.
3214 2007-03-11 Bruno Haible <bruno@clisp.org>
3216 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
3217 decrementing code ANSI C compliant.
3219 2007-03-11 Bruno Haible <bruno@clisp.org>
3221 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
3222 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
3224 2007-03-11 Bruno Haible <bruno@clisp.org>
3226 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
3227 <stdbool.h> substitute doesn't pass.
3229 2007-03-11 Bruno Haible <bruno@clisp.org>
3231 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
3233 2007-03-11 Bruno Haible <bruno@clisp.org>
3235 * gnulib-tool (func_create_megatestdir): Create also an autobuild
3236 script, for submission to autobuild.josefsson.org.
3238 2007-03-10 Bruno Haible <bruno@clisp.org>
3240 * modules/canonicalize-lgpl-tests: New file.
3241 * tests/test-canonicalize-lgpl.sh: New file.
3242 * tests/test-canonicalize-lgpl.c: New file.
3244 * modules/c-strcase-tests: New file.
3245 * tests/test-c-strcase.sh: New file.
3246 * tests/test-c-strcasecmp.c: New file.
3247 * tests/test-c-strncasecmp.c: New file.
3249 * modules/atexit-tests: New file.
3250 * tests/test-atexit.sh: New file.
3251 * tests/test-atexit.c: New file.
3253 2007-03-10 Bruno Haible <bruno@clisp.org>
3255 * tests/test-binary-io.sh: Use temporary filenames that are not so
3256 likely to clash with those of other tests (in a parallel make).
3257 * tests/test-binary-io.c: Likewise.
3259 2007-03-10 Bruno Haible <bruno@clisp.org>
3261 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
3262 fallback; use #error instead.
3263 Suggested by Simon Josefsson.
3265 2007-03-10 Bruno Haible <bruno@clisp.org>
3267 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
3268 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
3271 2007-03-10 Bruno Haible <bruno@clisp.org>
3273 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
3275 2007-03-10 Bruno Haible <bruno@clisp.org>
3277 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
3279 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
3280 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
3281 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
3283 2007-03-10 Bruno Haible <bruno@clisp.org>
3285 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
3287 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
3290 2007-03-09 Eric Blake <ebb9@byu.net>
3291 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
3293 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
3294 types are not being provided by gnulib.
3295 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
3296 types are supported.
3298 2007-03-10 Bruno Haible <bruno@clisp.org>
3300 * lib/stdio_.h (__attribute__): New macro.
3301 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
3302 vsprintf): Specify __attribute__ __format__ for GCC.
3303 Suggested by Eric Blake.
3305 2007-03-09 Bruno Haible <bruno@clisp.org>
3307 * modules/printf-posix-tests: New file.
3308 * tests/test-printf-posix.sh: New file.
3309 * tests/test-printf-posix.c: New file.
3311 * modules/printf-posix: New file.
3312 * lib/printf.c: New file.
3313 * m4/printf-posix-rpl.m4: New file.
3314 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
3316 * lib/stdio_.h (printf): New declaration.
3317 (format, __format__, ____printf____, ____scanf____, ____strftime____,
3318 ____strfmon____): New macros.
3319 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
3322 2007-03-09 Bruno Haible <bruno@clisp.org>
3324 * tests/test-vasnprintf-posix2.sh: New file.
3325 * tests/test-vasnprintf-posix2.c: New file.
3326 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
3327 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
3328 (Makefile.am): Activate test-vasnprintf-posix2.sh.
3330 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
3331 a locale dependent decimal point, rather than always '.'.
3333 2007-03-09 Eric Blake <ebb9@byu.net>
3335 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
3336 spite of platforms like Tandem/NSK that define it to -1.
3338 2007-03-08 Bruno Haible <bruno@clisp.org>
3340 * modules/vprintf-posix-tests: New file.
3341 * tests/test-vprintf-posix.sh: New file.
3342 * tests/test-vprintf-posix.c: New file.
3343 * tests/test-printf-posix.h: New file.
3345 * modules/vprintf-posix: New file.
3346 * lib/vprintf.c: New file.
3347 * m4/vprintf-posix.m4: New file.
3348 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
3350 * lib/stdio_.h (vprintf): New declaration.
3351 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
3354 2007-03-08 Bruno Haible <bruno@clisp.org>
3356 * modules/fprintf-posix-tests: New file.
3357 * tests/test-fprintf-posix.sh: New file.
3358 * tests/test-fprintf-posix.c: New file.
3360 * modules/fprintf-posix: New file.
3361 * lib/fprintf.c: New file.
3362 * m4/fprintf-posix.m4: New file.
3363 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
3365 * lib/stdio_.h (fprintf): New declaration.
3366 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
3369 2007-03-08 Bruno Haible <bruno@clisp.org>
3371 * modules/vfprintf-posix-tests: New file.
3372 * tests/test-vfprintf-posix.sh: New file.
3373 * tests/test-vfprintf-posix.c: New file.
3374 * tests/test-fprintf-posix.h: New file.
3375 * tests/test-fprintf-posix.out: New file.
3377 * modules/vfprintf-posix: New file.
3378 * lib/vfprintf.c: New file.
3379 * m4/vfprintf-posix.m4: New file.
3380 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
3382 * lib/stdio_.h (vfprintf): New declaration.
3383 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
3386 2007-03-08 Bruno Haible <bruno@clisp.org>
3388 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
3390 2007-03-08 Bruno Haible <bruno@clisp.org>
3392 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
3393 instead of 'expr' invocations.
3394 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3395 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3396 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3397 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3398 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3399 Suggested by Paul Eggert.
3401 2007-03-08 Bruno Haible <bruno@clisp.org>
3403 * modules/fseterr-tests: New file.
3404 * tests/test-fseterr.c: New file.
3406 * modules/fseterr: New file.
3407 * lib/fseterr.h: New file.
3408 * lib/fseterr.c: New file.
3410 2007-03-08 Bruno Haible <bruno@clisp.org>
3412 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
3413 * lib/getopt_.h: Likewise.
3414 * lib/mbswidth.h: Likewise.
3415 * lib/setenv.h: Likewise.
3416 * lib/vasnprintf.h: Likewise.
3417 * lib/vasprintf.h: Likewise.
3418 * lib/verror.h: Likewise.
3419 * lib/xsetenv.h: Likewise.
3420 * lib/xvasprintf.h: Likewise.
3422 2007-03-08 Jim Meyering <jim@meyering.net>
3424 * users.txt: Add parted.
3426 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
3428 2007-03-07 Bruno Haible <bruno@clisp.org>
3430 * m4/printf.m4: Make the shell script snippets copy&pastable.
3432 2007-03-02 Bruno Haible <bruno@clisp.org>
3434 * lib/netinet_in_.h: New file.
3435 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
3436 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
3437 * modules/netinet_in (Files): Add lib/netinet_in_.h.
3438 (Depends-on): Add absolute-header.
3439 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
3442 2007-03-03 Bruno Haible <bruno@clisp.org>
3444 * lib/sys_select_.h: New file.
3445 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
3446 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
3447 * modules/sys_select (Files): Add lib/sys_select_.h.
3448 (Depends-on): Add absolute-header.
3449 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
3452 2007-03-02 Bruno Haible <bruno@clisp.org>
3454 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
3455 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
3457 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
3458 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
3459 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
3460 * modules/sys_socket (Depends-on): Add absolute-header.
3461 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
3462 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
3463 (Include): Remove requirement of inclusion of <sys/types.h>.
3465 2007-03-02 Bruno Haible <bruno@clisp.org>
3467 * lib/byteswap_.h (bswap_32): Fix formula.
3469 2007-03-06 Bruno Haible <bruno@clisp.org>
3471 * modules/sprintf-posix-tests: New file.
3472 * tests/test-sprintf-posix.c: New file.
3474 * modules/sprintf-posix: New file.
3475 * lib/sprintf.c: New file.
3476 * m4/sprintf-posix.m4: New file.
3477 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
3479 * lib/stdio_.h (sprintf): New declaration.
3480 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
3483 2007-03-06 Bruno Haible <bruno@clisp.org>
3485 * modules/vsprintf-posix-tests: New file.
3486 * tests/test-vsprintf-posix.c: New file.
3487 * tests/test-sprintf-posix.h: New file.
3489 * modules/vsprintf-posix: New file.
3490 * lib/vsprintf.c: New file.
3491 * m4/vsprintf-posix.m4: New file.
3492 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
3494 * lib/stdio_.h (vsprintf): New declaration.
3495 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
3498 2007-03-06 Bruno Haible <bruno@clisp.org>
3500 * modules/vsnprintf (Depend-on): Remove minmax.
3502 2007-03-06 Bruno Haible <bruno@clisp.org>
3504 * modules/snprintf-posix-tests: New file.
3505 * tests/test-snprintf-posix.c: New file.
3507 * modules/snprintf-posix: New file.
3508 * m4/snprintf-posix.m4: New file.
3509 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
3511 (gl_FUNC_SNPRINTF): Invoke it.
3512 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
3513 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
3515 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
3517 2007-03-06 Bruno Haible <bruno@clisp.org>
3519 * modules/vsnprintf-posix-tests: New file.
3520 * tests/test-vsnprintf-posix.c: New file.
3521 * tests/test-snprintf-posix.h: New file.
3523 * modules/vsnprintf-posix: New file.
3524 * m4/vsnprintf-posix.m4: New file.
3525 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
3527 (gl_FUNC_VSNPRINTF): Invoke it.
3528 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
3529 * lib/stdio_.h (vsnprintf): Define as a replacement if
3530 REPLACE_VSNPRINTF is set.
3531 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
3533 2007-03-06 Bruno Haible <bruno@clisp.org>
3535 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
3536 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
3538 2007-03-06 Bruno Haible <bruno@clisp.org>
3540 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
3541 (asinl): Declare also if HAVE_DECL_ASINL is set.
3542 (atanl): Declare also if HAVE_DECL_ATANL is set.
3543 (ceill): Declare also if HAVE_DECL_CEILL is set.
3544 (cosl): Declare also if HAVE_DECL_COSL is set.
3545 (expl): Declare also if HAVE_DECL_EXPL is set.
3546 (floorl): Declare also if HAVE_DECL_FLOORL is set.
3547 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
3548 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
3549 (logl): Declare also if HAVE_DECL_LOGL is set.
3550 (sinl): Declare also if HAVE_DECL_SINL is set.
3551 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
3552 (tanl): Declare also if HAVE_DECL_TANL is set.
3553 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
3554 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
3555 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
3556 declaration of frexpl, ldexpl.
3557 * modules/printf-frexpl (Depends-on): Add math.
3558 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
3560 2007-03-05 Bruno Haible <bruno@clisp.org>
3562 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
3563 frexpl and ldexpl are declared.
3564 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
3566 2007-03-05 Bruno Haible <bruno@clisp.org>
3568 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
3569 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
3571 2007-03-05 Bruno Haible <bruno@clisp.org>
3573 * lib/stdio_.h: Include <stddef.h>.
3575 2007-03-05 Bruno Haible <bruno@clisp.org>
3577 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
3579 2007-03-05 Bruno Haible <bruno@clisp.org>
3581 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
3582 NetBSD 4, from Ralf Wildenhues.
3584 2007-03-04 Bruno Haible <bruno@clisp.org>
3586 * lib/vasprintf.h: Update #if logic for the case when the functions
3587 exist but are overridden.
3589 2007-03-04 Bruno Haible <bruno@clisp.org>
3591 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
3592 implementations: glibc-2.4 and MacOS X 10.3.
3593 * tests/test-vasnprintf-posix.c (test_function): Test also the case
3594 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
3595 * tests/test-vasprintf-posix.c (test_function): Likewise.
3597 2007-03-04 Bruno Haible <bruno@clisp.org>
3599 * modules/vasprintf-posix-tests: New file.
3600 * tests/test-vasprintf-posix.c: New file.
3602 * modules/vasprintf-posix: New file.
3603 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
3605 * m4/vasprintf-posix.m4: New file.
3606 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
3608 (gl_FUNC_VASPRINTF): Invoke it.
3609 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
3611 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
3613 2007-03-04 Bruno Haible <bruno@clisp.org>
3615 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
3616 REPLACE_GETTIMEOFDAY.
3617 * modules/sys_time (Makefile.am): Likewise.
3618 * m4/sys_time_h.m4: Likewise.
3619 * m4/gettimeofday.m4: Likewise.
3621 2007-03-04 Bruno Haible <bruno@clisp.org>
3623 * modules/vasnprintf-posix-tests: New file.
3624 * tests/test-vasnprintf-posix.c: New file.
3626 * modules/vasnprintf-posix: New file.
3627 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
3629 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
3630 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
3631 REPLACE_VASNPRINTF is defined.
3632 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
3634 (gl_FUNC_VASNPRINTF): Invoke it.
3635 * m4/vasnprintf-posix.m4: New file.
3636 * m4/printf.m4: New file.
3638 2007-03-04 Bruno Haible <bruno@clisp.org>
3640 Compile progreloc.c only if --enable-relocatable is specified.
3641 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
3642 if --enable-relocatable was specified.
3643 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
3646 2007-03-04 Jim Meyering <jim@meyering.net>
3648 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
3649 Use it consistently, rather than enumerating errno constants.
3651 2007-03-04 Bruno Haible <bruno@clisp.org>
3653 * modules/xvasprintf-tests: New file.
3654 * tests/test-xvasprintf.c: New file.
3656 * modules/vasprintf-tests: New file.
3657 * tests/test-vasprintf.c: New file.
3659 * modules/vasnprintf-tests: New file.
3660 * tests/test-vasnprintf.c: New file.
3662 * modules/vsnprintf-tests: New file.
3663 * tests/test-vsnprintf.c: New file.
3665 * modules/snprintf-tests: New file.
3666 * tests/test-snprintf.c: New file.
3668 2007-03-04 Bruno Haible <bruno@clisp.org>
3670 Compile relocatable.c only if --enable-relocatable is specified.
3671 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
3672 gl_RELOCATABLE_LIBRARY.
3673 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
3674 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
3675 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
3676 gl_RELOCATABLE_LIBRARY.
3677 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
3678 (Makefile.am): Remove lib_SOURCES.
3679 * modules/relocatable-lib-lgpl (configure.ac): Invoke
3680 gl_RELOCATABLE_LIBRARY.
3681 (Makefile.am): Remove lib_SOURCES.
3682 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
3684 * modules/relocatable-prog-wrapper (configure.ac): Invoke
3685 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
3687 2007-03-04 Bruno Haible <bruno@clisp.org>
3689 * modules/argmatch-tests: New file.
3690 * tests/test-argmatch.c: New file.
3692 * tests/test-allocsa.c (main): Halve the number of loop runs.
3694 * modules/alloca-opt-tests: New file.
3695 * tests/test-alloca-opt.c: New file.
3697 2007-03-04 Jim Meyering <jim@meyering.net>
3699 Work around difference between Linux ACLs and Solaris 10 ZFS.
3700 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
3703 2007-03-03 Bruno Haible <bruno@clisp.org>
3705 * modules/relocatable-prog (Depends-on): Add back progreloc's
3706 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
3708 2007-03-03 Bruno Haible <bruno@clisp.org>
3710 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
3711 * modules/relocatable-lib: New file.
3713 2007-03-03 Bruno Haible <bruno@clisp.org>
3715 * modules/relocatable-prog: Renamed from modules/relocatable.
3716 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
3718 2007-03-03 Bruno Haible <bruno@clisp.org>
3720 * modules/relocatable-script (Files): Add doc/relocatable.texi,
3721 m4/relocatable-lib.m4.
3722 (Depends-on): Remove 'relocatable'.
3723 (configure.ac): Add gl_RELOCATABLE_NOP.
3725 2007-03-03 Bruno Haible <bruno@clisp.org>
3727 * modules/relocatable-prog-wrapper: New file.
3728 * modules/relocatable (Depends-on): Add it. Remove all other
3729 dependencies except progname.
3730 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
3732 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
3733 (gl_FUNC_STRERROR): Nop.
3734 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
3736 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
3737 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
3739 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
3740 (gl_FUNC_READLINK): Update.
3742 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
3744 2007-03-03 Bruno Haible <bruno@clisp.org>
3746 * lib/xreadlink.c: Include <unistd.h> unconditionally.
3747 * modules/xreadlink (Depends-on): Add unistd.
3748 * modules/xreadlink-with-size (Depends-on): Likewise.
3750 2007-03-03 Bruno Haible <bruno@clisp.org>
3752 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
3753 extracted from gt_FUNC_SETENV.
3754 (gt_FUNC_SETENV): Remove macro.
3755 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
3756 remove gt_FUNC_SETENV.
3758 2007-03-03 Bruno Haible <bruno@clisp.org>
3760 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
3761 ENABLE_RELOCATABLE here.
3762 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
3764 2007-03-03 Bruno Haible <bruno@clisp.org>
3766 * modules/rbtreehash-list-tests (Depends-on): Add progname.
3767 * tests/test-rbtreehash_list.c: Include progname.h.
3768 (main): Call set_program_name.
3770 * modules/rbtree-oset-tests (Depends-on): Add progname.
3771 * tests/test-rbtree_oset.c: Include progname.h.
3772 (main): Call set_program_name.
3774 * modules/rbtree-list-tests (Depends-on): Add progname.
3775 * tests/test-rbtree_list.c: Include progname.h.
3776 (main): Call set_program_name.
3778 * modules/linked-list-tests (Depends-on): Add progname.
3779 * tests/test-linked_list.c: Include progname.h.
3780 (main): Call set_program_name.
3782 2007-03-03 Bruno Haible <bruno@clisp.org>
3784 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
3785 All uses of __restrict changed to _Restrict_.
3786 * lib/glob_.h (__restrict): Remove macro.
3788 2007-03-02 Bruno Haible <bruno@clisp.org>
3790 * modules/gettext (configure.ac): Require gettext infrastructure
3791 from version 0.16.1.
3793 2007-03-02 Bruno Haible <bruno@clisp.org>
3795 * modules/linkedhash-list-tests (Depends-on): Add progname.
3796 * tests/test-linkedhash_list.c: Include progname.h.
3797 (main): Call set_program_name.
3799 * modules/carray-list-tests (Depends-on): Add progname.
3800 * tests/test-carray_list.c: Include progname.h.
3801 (main): Call set_program_name.
3803 * modules/avltreehash-list-tests (Depends-on): Add progname.
3804 * tests/test-avltreehash_list.c: Include progname.h.
3805 (main): Call set_program_name.
3807 * modules/avltree-oset-tests (Depends-on): Add progname.
3808 * tests/test-avltree_oset.c: Include progname.h.
3809 (main): Call set_program_name.
3811 * modules/avltree-list-tests (Depends-on): Add progname.
3812 * tests/test-avltree_list.c: Include progname.h.
3813 (main): Call set_program_name.
3815 * modules/array-oset-tests (Depends-on): Add progname.
3816 * tests/test-array_oset.c: Include progname.h.
3817 (main): Call set_program_name.
3819 * modules/array-list-tests (Depends-on): Add progname.
3820 * tests/test-array_list.c: Include progname.h.
3821 (main): Call set_program_name.
3823 * modules/argp-tests (Depends-on): Add progname.
3824 * tests/test-argp.c: Include argp.h first. Include progname.h.
3825 (main): Call set_program_name.
3827 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
3829 * doc/gnulib-tool.texi (Initial import): Reword description of
3830 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
3831 limited effect even if defined after the first system include.
3833 2007-03-01 Bruno Haible <bruno@clisp.org>
3835 * build-aux/config.libpath: Update to libtool-1.5.22.
3836 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3838 2007-03-01 Bruno Haible <bruno@clisp.org>
3840 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
3842 Reported by Ralf Wildenhues.
3844 2007-03-01 Bruno Haible <bruno@clisp.org>
3846 * build-aux/install-reloc: Remove object files left over by some
3848 Reported by Ralf Wildenhues.
3850 2007-03-01 Bruno Haible <bruno@clisp.org>
3852 * build-aux/install-reloc: Break long lines.
3854 2007-03-01 Bruno Haible <bruno@clisp.org>
3856 * doc/relocatable.texi: Document that it may not work on OpenBSD.
3857 Reported by Ralf Wildenhues.
3859 2007-03-01 Bruno Haible <bruno@clisp.org>
3861 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
3862 include ordering constraints.
3864 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
3866 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
3867 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
3868 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
3870 * lib/time_.h: Fix misspelling.
3871 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
3872 Require gl_HEADER_TIME_H_DEFAULTS.
3873 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
3874 * m4/time_r.m4 (gl_TIME_R): Likewise.
3875 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
3877 2007-03-01 Bruno Haible <bruno@clisp.org>
3879 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
3880 * m4/utimens.m4 (gl_UTIMENS): Likewise.
3882 2007-03-01 Jim Meyering <jim@meyering.net>
3884 * modules/xreadlink (Maintainer): Add my name.
3885 * modules/xreadlink-with-size (Depends-on): Alphabetize.
3887 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
3888 Bruno Haible <bruno@clisp.org>
3890 * build-aux/install-reloc: Compile also c-ctype.c.
3891 * build-aux/relocatable.sh.in: New file.
3892 * doc/relocatable.texi: New file.
3893 * doc/relocatable-maint.texi: New file.
3894 * doc/gnulib.texi: Include relocatable-maint.texi.
3895 * lib/progreloc.c: Include unistd.h unconditionally.
3896 * lib/relocwrapper.c: Include unistd.h unconditionally.
3898 (add_dotbin): Use c_tolower.
3899 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
3900 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
3901 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
3902 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
3903 to m4/relocatable-lib.m4.
3904 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
3905 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
3906 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
3907 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
3908 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
3909 * modules/relocatable: New file.
3910 * modules/relocatable-lib: New file.
3911 * modules/relocatable-script: New file.
3913 2007-02-28 Bruno Haible <bruno@clisp.org>
3915 Import --enable-relocatable infrastructure.
3916 * build-aux/config.libpath: New file, from GNU gettext.
3917 * build-aux/install-reloc: New file, from GNU gettext.
3918 * build-aux/reloc-ldflags: New file, from GNU gettext.
3919 * lib/relocatable.h: New file, from GNU gettext.
3920 * lib/relocatable.c: New file, from GNU gettext.
3921 * lib/relocwrapper.c: New file, from GNU gettext.
3922 * m4/relocatable.m4: New file, from GNU gettext.
3924 2007-02-28 Bruno Haible <bruno@clisp.org>
3926 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
3928 * modules/xreadlink: New file, from GNU gettext with modifications.
3929 * lib/xreadlink.c: New file, from GNU gettext.
3930 * lib/xreadlink.h: Add comments.
3931 (xreadlink): New declaration.
3933 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
3934 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
3935 lib/xreadlink-with-size.c.
3936 (configure.ac): Remove gl_XREADLINK invocation.
3937 (Makefile.am): Augment lib_SOURCES.
3938 * m4/xreadlink.m4: Remove file.
3939 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
3940 (xreadlink_with_size): Renamed from xreadink.
3941 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
3942 * modules/canonicalize (Depends-on): Replace xreadlink with
3943 xreadlink-with-size.
3944 * lib/canonicalize.c (canonicalize_filename_mode): Update.
3946 2007-02-25 Jim Meyering <jim@meyering.net>
3948 * build-aux/announce-gen: When complaining about excess arguments,
3951 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
3953 * README: Document signed integer overflow situation more
3956 2007-02-25 Bruno Haible <bruno@clisp.org>
3958 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
3959 'a' or 'A' conversion.
3961 2007-02-25 Bruno Haible <bruno@clisp.org>
3963 * modules/filename: Renamed from modules/pathname.
3964 (Files): Replace lib/pathname.h with lib/filename.h. Replace
3965 lib/concatpath.c with lib/concat-filename.c.
3966 (Makefile.am): Update.
3967 (Include): Replace pathname.h with filename.h.
3968 * lib/filename.h: Renamed from lib/pathname.h.
3969 (concatenated_filename): Renamed from concatenated_pathname.
3970 * lib/concat-filename.c: Renamed from lib/concatpath.c.
3971 (concatenated_filename): Renamed from concatenated_pathname.
3972 * lib/findprog.c: Include filename.h instead of pathname.h.
3973 (find_in_path): Update.
3974 * lib/javacomp.c: Include filename.h instead of pathname.h.
3975 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3976 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3977 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3978 is_oldgcj_14_13_usable, is_javac_usable): Update.
3979 * lib/javaexec.c: Include filename.h instead of pathname.h.
3980 (execute_java_class): Update.
3981 * modules/findprog: Update.
3982 * modules/javacomp: Update.
3983 * modules/javaexec: Update.
3984 * MODULES.html.sh (File system functions): Add 'filename', remove
3987 2007-02-25 Bruno Haible <bruno@clisp.org>
3989 * modules/printf-frexpl-tests: New file.
3990 * tests/test-printf-frexpl.c: New file.
3992 * modules/printf-frexpl: New file.
3993 * lib/printf-frexpl.h: New file.
3994 * lib/printf-frexpl.c: New file.
3995 * m4/printf-frexpl.m4: New file.
3997 2007-02-25 Bruno Haible <bruno@clisp.org>
3999 * modules/printf-frexp-tests: New file.
4000 * tests/test-printf-frexp.c: New file.
4002 * modules/printf-frexp: New file.
4003 * lib/printf-frexp.h: New file.
4004 * lib/printf-frexp.c: New file.
4005 * m4/printf-frexp.m4: New file.
4007 2007-02-25 Bruno Haible <bruno@clisp.org>
4009 Assume automake >= 1.10 for the tests.
4010 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
4011 * modules/arctwo-tests: Likewise.
4012 * modules/argp-tests: Likewise.
4013 * modules/avltree-list-tests: Likewise.
4014 * modules/avltree-oset-tests: Likewise.
4015 * modules/avltreehash-list-tests: Likewise.
4016 * modules/carray-list-tests: Likewise.
4017 * modules/crc-tests: Likewise.
4018 * modules/des-tests: Likewise.
4019 * modules/gc-arcfour-tests: Likewise.
4020 * modules/gc-arctwo-tests: Likewise.
4021 * modules/gc-des-tests: Likewise.
4022 * modules/gc-hmac-md5-tests: Likewise.
4023 * modules/gc-hmac-sha1-tests: Likewise.
4024 * modules/gc-md2-tests: Likewise.
4025 * modules/gc-md4-tests: Likewise.
4026 * modules/gc-md5-tests: Likewise.
4027 * modules/gc-pbkdf2-sha1-tests: Likewise.
4028 * modules/gc-rijndael-tests: Likewise.
4029 * modules/gc-sha1-tests: Likewise.
4030 * modules/gc-tests: Likewise.
4031 * modules/getaddrinfo-tests: Likewise.
4032 * modules/hmac-md5-tests: Likewise.
4033 * modules/hmac-sha1-tests: Likewise.
4034 * modules/linked-list-tests: Likewise.
4035 * modules/linkedhash-list-tests: Likewise.
4036 * modules/lock-tests: Likewise.
4037 * modules/md2-tests: Likewise.
4038 * modules/md4-tests: Likewise.
4039 * modules/md5-tests: Likewise.
4040 * modules/rbtree-list-tests: Likewise.
4041 * modules/rbtree-oset-tests: Likewise.
4042 * modules/rbtreehash-list-tests: Likewise.
4043 * modules/read-file-tests: Likewise.
4044 * modules/rijndael-tests: Likewise.
4045 * modules/stdint-tests: Likewise.
4046 * modules/tls-tests: Likewise.
4048 2007-02-24 Bruno Haible <bruno@clisp.org>
4050 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
4051 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
4052 function; instead check whether isnan with a double argument links.
4053 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
4054 function; instead check whether isnan with a 'long double' argument
4056 Reported by Eric Blake <ebb9@byu.net>.
4058 2007-02-24 Bruno Haible <bruno@clisp.org>
4060 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
4062 * lib/isnanl.c: Remove all code. Just include isnan.c.
4063 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
4065 2007-02-25 Jim Meyering <jim@meyering.net>
4067 Avoid conflicting types for 'unsetenv' on FreeBSD.
4068 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
4069 conflicting with FreeBSD's (5.0 and 6.1) function declaration
4072 2007-02-24 Bruno Haible <bruno@clisp.org>
4074 * modules/isnanl-nolibm-tests: New file.
4075 * tests/test-isnanl.c: New file.
4077 * modules/isnanl-nolibm: New file.
4078 * lib/isnanl.h: New file.
4079 * lib/isnanl.c: New file.
4080 * m4/isnanl.m4: New file.
4082 2007-02-24 Bruno Haible <bruno@clisp.org>
4084 * modules/isnan-nolibm-tests: New file.
4085 * tests/test-isnan.c: New file.
4087 * modules/isnan-nolibm: New file.
4088 * lib/isnan.h: New file.
4089 * lib/isnan.c: New file.
4090 * m4/isnan.m4: New file.
4092 2007-02-24 Bruno Haible <bruno@clisp.org>
4094 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
4095 assume that an exponent fits in 20 bits.
4097 2007-02-24 Jim Meyering <jim@meyering.net>
4099 * m4/regex.m4: Update the description of the configure-time option,
4100 --without-included-regex, to state accurately what the defaults are,
4101 and perhaps to give people an idea why using this option is risky.
4103 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
4105 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
4106 loops on small arguments. This attempts to avoid the problem
4107 Bruno Haible reported for AIX 4.3.2 in
4108 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
4110 2007-02-23 Bruno Haible <bruno@clisp.org>
4112 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
4113 Needed for help2man.
4115 2007-02-23 Karl Berry <karl@gnu.org>
4117 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
4118 exists, foo.h should be cvs-ignored, not committed.
4120 2007-02-23 Eric Blake <ebb9@byu.net>
4122 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
4123 * lib/stat-time.h (includes): Likewise.
4124 * lib/utimecmp.c (includes): Likewise.
4125 * lib/utimens.h (includes): Likewise.
4126 * lib/getdate.y (includes): Also include "timespec.h" for use
4127 internal to the module.
4128 * modules/utimens (Depends-on): Revert yesterday's patch.
4129 * modules/nanosleep (Depends-on): Add missing dependency.
4131 2007-02-22 Bruno Haible <bruno@clisp.org>
4133 * lib/glob.c: Don't include getlogin_r.h.
4135 2007-02-22 Jim Meyering <jim@meyering.net>
4137 * modules/utimens (Depends-on): Add timespec, required for
4138 utimens.h's inclusion of timespec.h.
4140 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
4142 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
4143 long unreadable paths in GNU/Linux. Problem reported by Andreas
4145 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
4146 I'll try to think of a better way to fix the Solaris problem.
4148 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
4149 like glibc; on Solaris 10, it fails with errno == EINVAL.
4150 POSIX says the behavior is unspecified if the first argument is NULL,
4151 so play it safe and never pass NULL to the system getcwd.
4153 2007-02-21 Jim Meyering <jim@meyering.net>
4155 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
4156 of gettimeofday. It would conflict with the one now always
4157 provided via sys_time_.h. Reported by Matthew Woehlke, as
4158 an IRIX 6.5 build failure.
4160 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
4162 Minor fixups to port to Solaris 10 with Sun C 5.8.
4163 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
4164 * modules/getcwd (Depends-on): Add dirfd.
4165 * lib/putenv.c (putenv): #undef it.
4166 (rpl_putenv): New decl.
4167 (malloc, free): Include <stdlib.h> rather than prototyping separately.
4169 2007-02-20 Bruno Haible <bruno@clisp.org>
4171 * modules/stdio-tests: New file.
4172 * tests/test-stdio.c: New file.
4174 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
4175 (Depends-on): Add stdio.
4176 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4177 (Include): Use <stdio.h> instead of vsnprintf.h.
4178 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4179 HAVE_DECL_VSNPRINTF.
4180 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
4182 * modules/snprintf (Files): Remove lib/snprintf.h.
4183 (Depends-on): Add stdio.
4184 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4185 (Include): Use <stdio.h> instead of snprintf.h.
4186 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
4188 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
4189 * lib/getaddrinfo.c: Likewise.
4191 * modules/stdio: New file.
4192 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
4193 * lib/snprintf.h: Remove file.
4194 * lib/vsnprintf.h: Remove file.
4195 * lib/.cppi-disable: Remove snprintf.h.
4196 * m4/stdio_h.m4: New file.
4197 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
4199 2007-02-20 Jim Meyering <jim@meyering.net>
4201 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
4202 used by e.g., mingw. From Bruno Haible.
4204 2007-02-19 Bruno Haible <bruno@clisp.org>
4206 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
4208 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4210 2007-02-19 Bruno Haible <bruno@clisp.org>
4212 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
4215 2007-02-19 Bruno Haible <bruno@clisp.org>
4217 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
4219 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
4221 2007-02-19 Jim Meyering <jim@meyering.net>
4223 Don't use FD after a successful "fdopendir (fd)".
4224 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
4225 Reset it by calling dirfd on the just-obtained DIR*.
4227 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
4228 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
4230 2007-02-18 Bruno Haible <bruno@clisp.org>
4232 * lib/readlink.c: Include <unistd.h>.
4233 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
4235 * modules/readlink (Depends-on): Add unistd.
4236 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4237 (Include): Add <unistd.h>.
4239 * lib/getlogin_r.h: Remove file.
4240 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
4241 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
4242 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
4243 HAVE_DECL_GETLOGIN_R.
4244 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
4245 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4246 (Include): Use <unistd.h> instead of getlogin_r.h.
4248 * lib/getcwd.h: Remove file.
4249 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
4250 * lib/xgetcwd.c: Likewise.
4251 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
4252 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
4253 * modules/getcwd (Files): Remove lib/getcwd.h.
4254 (Depends-on): Add unistd.
4255 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4256 (Include): Use <unistd.h> instad of getcwd.h.
4258 * lib/ftruncate.c: Include <unistd.h> first.
4259 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
4261 * modules/ftruncate (Depends-on): Add unistd.
4262 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4264 * lib/fchdir.c: Include <unistd.h> first.
4265 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
4266 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
4267 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
4268 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4269 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
4271 * lib/dup2.c: Include <unistd.h> first.
4272 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
4274 * modules/dup2 (Depends-on): Add unistd.
4275 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4277 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
4278 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
4279 REPLACE_CHOWN. Don't define chown as a macro here.
4280 * modules/chown (Depends-on): Add unistd.
4281 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4283 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
4284 Add definition for GL_LINK_WARNING.
4285 (chown, dup2): New declarations.
4286 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
4288 (ftruncate): New declaration.
4289 (getcwd): New declaration, taken from old getcwd.h.
4290 (getlogin_r): New declaration, taken from old getlogin_r.h.
4291 (readlink): New declaration.
4292 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
4293 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
4294 (gl_PREREQ_UNISTD): Remove macro.
4295 (gl_UNISTD_MODULE_INDICATOR): New macro.
4296 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
4297 many new variables. Don't set UNISTD_H.
4298 * modules/unistd (Description): Change.
4299 (Depends-on): Add link-warning.
4300 (configure.ac): Update.
4301 (Makefile.am): Create unistd.h always. Substitute many new variables
4304 2007-02-18 Bruno Haible <bruno@clisp.org>
4306 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
4307 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
4309 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
4310 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
4311 * lib/getsubopt.h: Remove file.
4312 * modules/getsubopt (Files): Remove lib/getsubopt.h.
4313 (Depends-on): Add stdlib.
4314 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4315 (Includes): Use <stdlib.h> instead of getsubopt.h.
4316 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
4318 * lib/getsubopt.c: Don't include getsubopt.h.
4320 2007-02-18 Bruno Haible <bruno@clisp.org>
4322 * modules/fchdir (Depends-on): Add dup2.
4324 2007-02-18 Bruno Haible <bruno@clisp.org>
4326 * lib/stdlib_.h: Handle glibc's special invocation convention
4329 2007-02-18 Bruno Haible <bruno@clisp.org>
4331 * modules/stdlib-tests: New file.
4332 * tests/test-stdlib.c: New file.
4334 * modules/mkstemp (Files): Remove lib/mkstemp.h.
4335 (Depends-on): Add stdlib.
4336 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4337 (Includes): Use <stdlib.h> instead of mkstemp.h.
4338 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4339 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
4340 * lib/mkstemp.c: Don't include mkstemp.h.
4341 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
4342 * lib/stdlib--.h: Don't include mkstemp.h.
4344 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
4345 (Depends-on): Add stdlib.
4346 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4347 (Includes): Use <stdlib.h> instead of mkdtemp.h.
4348 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
4350 * lib/mkdtemp.c: Don't include mkdtemp.h.
4351 * lib/clean-temp.c: Don't include mkdtemp.h.
4353 * modules/exit (Files): Remove lib/exit.h.
4354 (Depends-on): Add stdlib.
4355 (Makefile.am): Remove lib_SOURCES.
4356 (Include): Use <stdlib.h> instead of exit.h.
4357 * lib/argmatch.c: Don't include exit.h.
4358 * lib/execute.c: Likewise.
4359 * lib/pagealign_alloc.c: Likewise.
4360 * lib/pipe.c: Likewise.
4361 * lib/wait-process.c: Likewise.
4362 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
4363 * lib/exitfail.c: Likewise.
4364 * lib/savewd.c: Likewise.
4365 * lib/xsetenv.c: Likewise.
4367 * modules/stdlib: New file.
4368 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
4369 and extra comments about mkstemp().
4370 * lib/exit.h: Remove file.
4371 * lib/mkdtemp.h: Remove file.
4372 * lib/mkstemp.h: Remove file.
4373 * m4/stdlib_h.m4: New file.
4374 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
4376 2007-02-18 Bruno Haible <bruno@clisp.org>
4378 * modules/math-tests: New file.
4379 * tests/test-math.c: New file.
4381 * modules/math: New file.
4382 * modules/mathl (Files): Remove lib/mathl.h.
4383 (Depends-on): Add math.
4384 (Makefile.am): Don't mention mathl.h.
4385 (Include): Use <math.h> instead of mathl.h.
4386 * lib/math_.h: New file.
4387 * lib/mathl.h: Remove file.
4388 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
4390 * lib/asinl.c: Likewise.
4391 * lib/atanl.c: Likewise.
4392 * lib/ceill.c: Likewise.
4393 * lib/cosl.c: Likewise.
4394 * lib/expl.c: Likewise.
4395 * lib/floorl.c: Likewise.
4396 * lib/frexpl.c: Likewise.
4397 * lib/ldexpl.c: Likewise.
4398 * lib/logl.c: Likewise.
4399 * lib/sincosl.c: Likewise.
4400 * lib/sinl.c: Likewise.
4401 * lib/sqrtl.c: Likewise.
4402 * lib/tanl.c: Likewise.
4403 * lib/trigl.c: Likewise.
4404 * m4/math_h.m4: New file.
4405 * MODULES.html.sh (Mathematics): Add math.
4407 2007-02-17 Bruno Haible <bruno@clisp.org>
4409 * modules/wctype-tests: New file.
4410 * tests/test-wctype.c: New file.
4412 * modules/wchar-tests: New file.
4413 * tests/test-wchar.c: New file.
4415 * modules/unistd-tests: New file.
4416 * tests/test-unistd.c: New file.
4418 * modules/time-tests: New file.
4419 * tests/test-time.c: New file.
4421 * modules/sysexits-tests: New file.
4422 * tests/test-sysexits.c: New file.
4424 * modules/sys_time-tests: New file.
4425 * tests/test-sys_time.c: New file.
4427 * modules/sys_stat-tests: New file.
4428 * tests/test-sys_stat.c: New file.
4430 * modules/sys_socket-tests: New file.
4431 * tests/test-sys_socket.c: New file.
4433 * modules/sys_select-tests: New file.
4434 * tests/test-sys_select.c: New file.
4436 * modules/string-tests: New file.
4437 * tests/test-string.c: New file.
4439 * modules/stdbool-tests: New file.
4440 * tests/test-stdbool.c: New file.
4442 * modules/netinet_in-tests: New file.
4443 * tests/test-netinet_in.c: New file.
4445 * modules/inttypes-tests: New file.
4446 * tests/test-inttypes.c: New file.
4448 * modules/fcntl-tests: New file.
4449 * tests/test-fcntl.c: New file.
4451 * modules/byteswap-tests: New file.
4452 * tests/test-byteswap.c: New file.
4454 * modules/arpa_inet-tests: New file.
4455 * tests/test-arpa_inet.c: New file.
4457 2007-02-17 Bruno Haible <bruno@clisp.org>
4459 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
4460 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
4461 if the corresponding module is not enabled. Emit link warnings if
4462 the function is used nevertheless.
4463 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
4464 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
4465 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
4466 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
4467 * modules/inttypes (Depends-on): Add link-warning.
4468 (Makefile.am): Copy the contents of build-aux/link-warning.h into
4469 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
4470 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
4471 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
4472 * modules/imaxdiv (configure.ac): Likewise.
4473 * modules/strtoimax (configure.ac): Likewise.
4474 * modules/strtoumax (configure.ac): Likewise.
4476 2007-02-17 Bruno Haible <bruno@clisp.org>
4478 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
4479 gl_STRING_MODULE_INDICATOR_DEFAULTS.
4480 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
4481 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
4483 2007-02-17 Bruno Haible <bruno@clisp.org>
4485 * modules/link-warning: New file.
4486 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
4487 * lib/string_.h (GL_LINK_WARNING): Remove definition.
4488 * modules/string (Depends-on): Add link-warning.
4489 (Makefile.am): Copy the contents of build-aux/link-warning.h into
4491 * MODULES.html.sh (Support for building libraries and executables): Add
4494 2007-02-17 Bruno Haible <bruno@clisp.org>
4496 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
4497 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
4498 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
4501 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
4502 Bruno Haible <bruno@clisp.org>
4504 * modules/tmpfile: New file.
4505 * lib/tmpfile.c: New file.
4506 * m4/tmpfile.m4: New file.
4507 * MODULES.html.sh (func_all_modules): New section "Input/output".
4509 2007-02-15 Bruno Haible <bruno@clisp.org>
4511 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
4512 (supports_delete_on_close): New function.
4513 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
4515 2007-02-14 Bruno Haible <bruno@clisp.org>
4517 * modules/mbspcasecmp-tests: New file.
4518 * tests/test-mbspcasecmp.sh: New file.
4519 * tests/test-mbspcasecmp.c: New file.
4521 New module mbspcasecmp.
4522 * modules/mbspcasecmp: New file.
4523 * lib/mbspcasecmp.c: New file.
4524 * lib/string_.h (strncasecmp): Change warning message.
4525 (mbspcasecmp): New declaration.
4526 * m4/mbspcasecmp.m4: New file.
4527 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4529 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
4530 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
4532 2007-02-14 Bruno Haible <bruno@clisp.org>
4534 * modules/mbsncasecmp-tests: New file.
4535 * tests/test-mbsncasecmp.sh: New file.
4536 * tests/test-mbsncasecmp.c: New file.
4538 New module mbsncasecmp.
4539 * modules/mbsncasecmp: New file.
4540 * lib/mbsncasecmp.c: New file.
4541 * lib/string_.h (mbsncasecmp): New declaration.
4542 * m4/mbsncasecmp.m4: New file.
4543 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4545 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
4546 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
4548 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
4550 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
4551 Verify that it doesn't overlap with our flags.
4552 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
4553 do not have the desired effect in multibyte locales; instead, use
4555 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
4556 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
4557 we don't require GNU fnmatch ourselves (if our users require it, they
4558 should do so explicitly).
4560 Fix regex code so it doesn't rely on strcasecmp.
4561 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
4562 Otherwise, include gnulib's langinfo.h.
4563 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
4564 undesirable behavior in non-C locales. Instead, rely on localecharset.
4565 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
4566 * modules/regex (FILES): Remove m4/codeset.m4.
4567 (Depends-on): Add localcharset. Remove strcase.
4569 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4571 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
4572 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4574 2007-02-13 Bruno Haible <bruno@clisp.org>
4576 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
4577 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4579 2007-02-12 Bruno Haible <bruno@clisp.org>
4581 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
4582 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
4583 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
4584 time warning rather than a link error.
4586 2007-02-12 Bruno Haible <bruno@clisp.org>
4588 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
4589 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4590 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4592 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
4594 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
4597 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
4599 New module 'time', so that apps can include <time.h> as per
4600 POSIX and GNU instead of separate include files like time_r.h
4601 and timegm.h. This implementation tries out a simpler approach
4602 for replacing decls in standard include files (as compared to
4603 the string module), somewhat as an experiment.
4605 * config/srclist.txt: Comment out mktime.c for now.
4606 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
4607 since it doesn't apply any more. Use generic wording instead.
4608 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
4610 * lib/time_.h, m4/time_h.m4, modules/time: New files.
4611 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
4612 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
4613 Don't include <sys/types.h>; no longer needed since we assume C89.
4614 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
4615 * lib/strftime.c: Likewise.
4616 * lib/time_r.c: Likewise.
4617 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
4618 * lib/nanosleep.c: Include <time.h> first, to check interface.
4619 * lib/strptime.c: Likewise.
4620 * lib/time_r.c: Likewise.
4621 * lib/timegm.c: Likewise.
4622 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
4624 * lib/timegm.c: Don't include timegm.h; no longer needed.
4625 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
4626 time.h now handles any problems in that area.
4627 (struct timespec, nanosleep): Remove; time.h now arranges for these.
4628 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
4629 that time.h defines struct timespec.
4630 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
4631 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
4633 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
4634 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
4635 needed. Set REPLACE_LOCALTIME.
4636 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
4637 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
4638 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
4639 nanosleep; time_h.m4 now does that. Don't require
4640 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
4641 module handles this now.
4642 * modules/getdate (Depends-on): Remove timespec. Add time.
4643 * modules/nanosleep (Depends-on): Likewise.
4644 * modules/stat-time (Depends-on): Likewise.
4645 * modules/nanosleep (Include): Include time.h, not timespec.h.
4646 * modules/strptime (Files): Remove lib/strptime.h.
4647 (Depends-on): Add extensions, time.
4648 (Include): Include time.h, not strptime.h.
4649 * modules/time_r (Files): Remove lib/time_r.h.
4650 (Depends-on): Add time.
4651 (Include): Include time.h, not time_r.h.
4652 * modules/timegm: Likewise.
4653 * modules/timespec (Description): Now does timespec-related decls
4654 of our own, instead of struct timespec itself.
4655 (Depends-on): Add time; remove extensions.
4656 (Maintainer): Add self.
4657 * modules/utimecmp (Depends-on): Add time; remove timespec.
4658 * modules/utimens (Depends-on): Likewise.
4659 * modules/xnanosleep (Depends-on): Likewise.
4661 2007-02-11 Bruno Haible <bruno@clisp.org>
4663 * lib/c-strstr.c: Include allocsa.h.
4664 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4665 * lib/c-strcasestr.c: Include allocsa.h.
4666 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4667 * lib/strcasestr.c: Include allocsa.h.
4668 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
4669 * lib/mbsstr.c: Include allocsa.h.
4670 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
4671 allocsa/freesa instead of malloc/free.
4672 * lib/mbscasestr.c: Include allocsa.h.
4673 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
4674 allocsa/freesa instead of malloc/free.
4675 * modules/c-strstr (Depends-on): Add allocsa.
4676 * modules/c-strcasestr (Depends-on): Likewise.
4677 * modules/strcasestr (Depends-on): Likewise.
4678 * modules/mbsstr (Depends-on): Likewise.
4679 * modules/mbscasestr (Depends-on): Likewise.
4681 2007-02-11 Bruno Haible <bruno@clisp.org>
4683 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
4685 * modules/mbsspn-tests: New file.
4686 * tests/test-mbsspn.sh: New file.
4687 * tests/test-mbsspn.c: New file.
4689 2007-02-11 Bruno Haible <bruno@clisp.org>
4691 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
4693 * modules/mbspbrk-tests: New file.
4694 * tests/test-mbspbrk.sh: New file.
4695 * tests/test-mbspbrk.c: New file.
4697 2007-02-11 Bruno Haible <bruno@clisp.org>
4699 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
4702 * modules/mbscspn-tests: New file.
4703 * tests/test-mbscspn.sh: New file.
4704 * tests/test-mbscspn.c: New file.
4706 2007-02-11 Bruno Haible <bruno@clisp.org>
4708 * modules/mbscasecmp-tests: New file.
4709 * tests/test-mbscasecmp.sh: New file.
4710 * tests/test-mbscasecmp.c: New file.
4712 2007-02-11 Bruno Haible <bruno@clisp.org>
4714 Ensure O(n) worst-case complexity of mbscasestr.
4715 * lib/mbscasestr.c: Include stdbool.h.
4716 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
4718 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
4719 the bookkeeping indicates that it's worth it.
4720 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
4722 * modules/mbscasestr-tests: New file.
4723 * tests/test-mbscasestr1.c: New file.
4724 * tests/test-mbscasestr2.sh: New file.
4725 * tests/test-mbscasestr2.c: New file.
4726 * tests/test-mbscasestr3.sh: New file.
4727 * tests/test-mbscasestr3.c: New file.
4728 * tests/test-mbscasestr4.sh: New file.
4729 * tests/test-mbscasestr4.c: New file.
4730 * m4/locale-tr.m4: New file.
4732 2007-02-11 Bruno Haible <bruno@clisp.org>
4734 Ensure O(n) worst-case complexity of mbsstr.
4735 * lib/mbsstr.c: Include stdbool.h.
4736 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
4738 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
4739 bookkeeping indicates that it's worth it.
4740 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
4742 * modules/mbsstr-tests: New file.
4743 * tests/test-mbsstr1.c: New file.
4744 * tests/test-mbsstr2.sh: New file.
4745 * tests/test-mbsstr2.c: New file.
4746 * tests/test-mbsstr3.sh: New file.
4747 * tests/test-mbsstr3.c: New file.
4748 * m4/locale-fr.m4: New file.
4750 2007-02-11 Bruno Haible <bruno@clisp.org>
4752 * lib/mbsrchr.c (mbsrchr): Fix bug.
4754 * modules/mbsrchr-tests: New file.
4755 * tests/test-mbsrchr.sh: New file.
4756 * tests/test-mbsrchr.c: New file.
4758 2007-02-11 Bruno Haible <bruno@clisp.org>
4760 * lib/mbschr.c (mbschr): Fix bug.
4762 * modules/mbschr-tests: New file.
4763 * tests/test-mbschr.sh: New file.
4764 * tests/test-mbschr.c: New file.
4765 * m4/locale-zh.m4: New file.
4767 2007-02-11 Bruno Haible <bruno@clisp.org>
4769 Support for copying multibyte string iterators.
4770 * lib/mbiter.h: Include <string.h>.
4771 (mbiter_multi_copy): New function.
4772 (mbi_copy): New macro.
4773 * lib/mbuiter.h: Include <string.h>.
4774 (mbuiter_multi_copy): New function.
4775 (mbui_copy): New macro.
4777 2007-02-11 Bruno Haible <bruno@clisp.org>
4780 * modules/mbslen: New file.
4781 * lib/mbslen.c: New file.
4782 * lib/string_.h (mbslen): New declaration.
4783 * m4/mbslen.m4: New file.
4784 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4786 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
4787 * MODULES.html.sh (Internationalization functions): Add mbslen.
4789 2007-02-11 Bruno Haible <bruno@clisp.org>
4791 Ensure O(n) worst-case complexity of strcasestr substitute.
4792 * lib/strcasestr.c: Include stdbool.h.
4793 (knuth_morris_pratt): New function.
4794 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
4795 bookkeeping indicates that it's worth it.
4796 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
4798 * modules/strcasestr-tests: New file.
4799 * tests/test-strcasestr.c: New file.
4801 2007-02-11 Bruno Haible <bruno@clisp.org>
4803 Ensure O(n) worst-case complexity of c_strcasestr.
4804 * lib/c-strcasestr.c: Include stdbool.h, string.h.
4805 (knuth_morris_pratt): New function.
4806 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
4807 the bookkeeping indicates that it's worth it.
4808 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
4810 * modules/c-strcasestr-tests: New file.
4811 * tests/test-c-strcasestr.c: New file.
4813 2007-02-11 Bruno Haible <bruno@clisp.org>
4815 Ensure O(n) worst-case complexity of c_strstr.
4816 * lib/c-strstr.c: Include stdbool.h, string.h.
4817 (knuth_morris_pratt): New function.
4818 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
4819 bookkeeping indicates that it's worth it.
4820 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
4822 * lib/c-strstr.c: Complete rewrite for maintainability.
4824 * modules/c-strstr-tests: New file.
4825 * tests/test-c-strstr.c: New file.
4827 2007-02-11 Bruno Haible <bruno@clisp.org>
4829 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
4830 5.2.1 and earlier, whereby \055 was treated just like the range
4832 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
4834 2007-02-08 Bruno Haible <bruno@clisp.org>
4836 * modules/regex (Depends-on): Add stdbool.
4837 Reported by Dalibor Topic <robilad@kaffe.org>.
4839 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
4841 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
4842 Prefer returning from main to exiting from it.
4843 Remove unnecessary parens after sizeof.
4845 2007-02-05 Bruno Haible <bruno@clisp.org>
4848 * modules/mbssep: New file.
4849 * lib/mbssep.c: New file.
4850 * lib/string_.h (strsep): Add a conditional link warning.
4851 (mbssep): New declaration.
4852 * m4/mbssep.m4: New file.
4853 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4855 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
4856 * MODULES.html.sh (Internationalization functions): Add mbssep.
4858 2007-02-05 Bruno Haible <bruno@clisp.org>
4860 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
4861 Optimize search in case of 1 delimiter.
4863 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
4865 * lib/acl.h: Include sys/types.h before sys/acl.h.
4867 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
4869 Merge upstream fix for glibc bugzilla #3957:
4871 2007-02-05 Jakub Jelinek <jakub@redhat.com>
4873 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
4874 bit for RE_HAT_LISTS_NOT_NEWLINE.
4875 (build_charclass_op): Remove bogus comment.
4877 2007-02-05 Simon Josefsson <simon@josefsson.org>
4879 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
4881 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
4883 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
4884 * lib/memmem.c [!defined _LIBC]: Include config.h.
4886 2007-02-04 Bruno Haible <bruno@clisp.org>
4888 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
4891 2007-02-04 Bruno Haible <bruno@clisp.org>
4893 New module mbstok_r.
4894 * modules/mbstok_r: New file.
4895 * lib/mbstok_r.c: New file.
4896 * lib/string_.h (strtok_r): Change argument names to match the
4897 comments. Add a conditional link warning.
4898 (mbstok_r): New declaration.
4899 * m4/mbstok_r.m4: New file.
4900 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4902 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
4903 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
4905 2007-02-04 Bruno Haible <bruno@clisp.org>
4908 * modules/mbsspn: New file.
4909 * lib/mbsspn.c: New file.
4910 * lib/string_.h (strspn): Add a conditional link warning.
4911 (mbsspn): New declaration.
4912 * m4/mbsspn.m4: New file.
4913 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4915 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
4916 * MODULES.html.sh (Internationalization functions): Add mbsspn.
4918 2007-02-04 Bruno Haible <bruno@clisp.org>
4921 * modules/mbspbrk: New file.
4922 * lib/mbspbrk.c: New file.
4923 * lib/string_.h (strpbrk): Add a conditional link warning.
4924 (mbspbrk): New declaration.
4925 * m4/mbspbrk.m4: New file.
4926 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4928 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
4929 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
4931 2007-02-04 Bruno Haible <bruno@clisp.org>
4934 * modules/mbscspn: New file.
4935 * lib/mbscspn.c: New file.
4936 * lib/string_.h (strcspn): Add a conditional link warning.
4937 (mbscspn): New declaration.
4938 * m4/mbscspn.m4: New file.
4939 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4941 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
4942 * MODULES.html.sh (Internationalization functions): Add mbscspn.
4944 2007-02-04 Bruno Haible <bruno@clisp.org>
4946 New module mbscasestr, reduced goal of strcasestr.
4947 * modules/mbscasestr: New file.
4948 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
4949 (mbscasestr): Renamed from strcasestr.
4950 * lib/strcasestr.c: Don't include mbuiter.h.
4951 (strcasestr): Remove support for multibyte locales.
4952 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
4953 Change the conditional link warning.
4954 (mbscasestr): New declaration.
4955 * m4/mbscasestr.m4: New file.
4956 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
4957 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
4959 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
4960 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4961 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
4962 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
4963 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
4964 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
4965 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
4966 (Depends-on): Remove mbuiter.
4967 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
4969 2007-02-04 Bruno Haible <bruno@clisp.org>
4971 Simplify handling of strncasecmp.
4972 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
4973 the conditional link warning.
4974 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4975 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
4976 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
4977 * modules/strcase (configure.ac): Don't invoke
4978 gl_STRING_MODULE_INDICATOR.
4979 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
4981 2007-02-04 Bruno Haible <bruno@clisp.org>
4983 New module mbscasecmp, reduced goal of strcasecmp.
4984 * modules/mbscasecmp: New file.
4985 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
4986 (mbscasecmp): Renamed from strcasecmp.
4987 * lib/strcasecmp.c: Don't include mbuiter.h.
4988 (strcasecmp): Remove support for multibyte locales.
4989 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
4990 Change the conditional link warning.
4991 (mbscasecmp): New declaration.
4992 * m4/mbscasecmp.m4: New file.
4993 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
4994 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
4996 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
4997 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4999 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
5000 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
5001 * modules/strcase (Files): Remove m4/mbrtowc.m4.
5002 (Depends-on): Remove mbuiter.
5003 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
5005 2007-02-04 Bruno Haible <bruno@clisp.org>
5007 New module mbsstr. Remove module strstr.
5008 * modules/mbsstr: New file.
5009 * modules/strstr: Remove file.
5010 * lib/mbsstr.c: Renamed from lib/strstr.c.
5011 (mbsstr): Renamed from strstr.
5012 * lib/string_.h (strstr): Remove declaration. Change the conditional
5014 (mbsstr): New declaration.
5015 * m4/mbsstr.m4: New file.
5016 * m4/strstr.m4: Remove file.
5017 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5019 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
5020 Don't initialize GNULIB_STRSTR.
5021 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
5022 substitute GNULIB_STRSTR and REPLACE_STRSTR.
5023 * MODULES.html.sh (Internationalization functions): Add mbsstr.
5024 (Support for systems lacking ANSI C 89): Remove strstr.
5026 2007-02-04 Bruno Haible <bruno@clisp.org>
5029 * modules/mbsrchr: New file.
5030 * lib/mbsrchr.c: New file.
5031 * lib/string_.h (strrchr): Add a conditional link warning.
5032 (mbsrchr): New declaration.
5033 * m4/mbsrchr.m4: New file.
5034 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5036 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
5037 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
5039 2007-02-04 Bruno Haible <bruno@clisp.org>
5042 * modules/mbschr: New file.
5043 * lib/mbschr.c: New file.
5044 * lib/string_.h (strchr): Add a conditional link warning.
5045 (mbschr): New declaration.
5046 * m4/mbschr.m4: New file.
5047 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5049 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
5050 * MODULES.html.sh (Internationalization functions): Add mbschr.
5052 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
5054 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
5056 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
5058 2007-02-04 Bruno Haible <bruno@clisp.org>
5060 New module description section 'configure.ac-early'.
5061 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
5062 (func_get_autoconf_early_snippet): New function.
5063 (func_import, func_create_testdir): Use it. Remove special cases for
5064 modules 'extensions' and 'lock'.
5065 * modules/extensions (configure.ac-early): Require
5066 gl_USE_SYSTEM_EXTENSIONS.
5067 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
5069 2007-02-04 Bruno Haible <bruno@clisp.org>
5071 Make use of gcj-4.3's -fsource and -ftarget option.
5072 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
5073 and if so try the options -fsource and -ftarget.
5074 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
5075 source_version, ftarget_option, target_version arguments.
5076 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
5077 (is_envjavac_oldgcj_14_14_usable): Renamed from
5078 is_envjavac_gcj_14_14_usable.
5079 (is_envjavac_oldgcj_14_13_usable): Renamed from
5080 is_envjavac_gcj_14_13_usable.
5081 (is_gcj_present): Update.
5082 (is_gcj_43, is_gcj43_usable): New functions.
5083 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
5084 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
5085 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
5086 try the options -fsource and -ftarget.
5088 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
5090 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
5091 checking code. Set N = ceil (1.5 * N) rather than to a slightly
5094 2007-02-03 Jim Meyering <jim@meyering.net>
5096 Give tools a better chance to allocate space for very large buffers.
5097 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
5099 Make pwd and readlink work also when run with an unreadable parent dir
5100 on systems with openat support.
5101 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
5102 provided getcwd function, even when we have openat support.
5103 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
5105 2007-02-02 Bruno Haible <bruno@clisp.org>
5107 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5108 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
5109 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
5110 portability problems if one of these functions is only used on specific
5112 Reported by Paul Eggert.
5114 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
5116 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
5117 is causing more trouble than it's curing.
5118 * lib/regex_internal.h (__mempcpy): Remove.
5119 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
5120 (and make the code a tad smaller to boot).
5121 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
5123 2007-02-02 Jim Meyering <jim@meyering.net>
5125 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
5126 section, not in the Makefile.am: one.
5128 2007-02-02 Eric Blake <ebb9@byu.net>
5130 * lib/strchrnul.c: Always include config.h first.
5132 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
5133 gnulib strstr is not necessary here.
5135 2007-02-02 Simon Josefsson <simon@josefsson.org>
5137 * m4/socklen.m4: Fix typo.
5139 2007-02-02 Eric Blake <ebb9@byu.net>
5141 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
5142 * modules/netinet_in (Makefile.am): Likewise.
5144 2007-02-01 Bruno Haible <bruno@clisp.org>
5146 * lib/string_.h (GL_LINK_WARNING): New macro.
5147 (strcasecmp, strstr, strcasestr): If provided by the system,
5148 conditionally define as a macro that leads to a warning instead of to
5150 (strncasecmp): Conditionally define as a macro that leads to a warning.
5152 2007-02-01 Karl Berry <karl@gnu.org>
5154 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
5156 2007-02-01 Bruno Haible <bruno@clisp.org>
5158 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
5161 2007-02-01 Eric Blake <ebb9@byu.net>
5163 * modules/regex (Depends-on): Revert dependence on mempcpy.
5164 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
5165 module's definition of mempcpy.
5166 Reported by Paul Eggert.
5168 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
5170 * lib/string_.h: If the gnulib module XYZ is not present, undefine
5171 the symbol XYZ before redefining it. This fixes a problem with
5172 programs that don't use XYZ, when compiled on systems that define
5173 XYZ to something else.
5175 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
5177 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
5178 occurs when "mkdir -m foo" creates a setgid directory that is (1)
5179 writeable to group or other and (2) is intended to have a special
5180 mode bit that is set or cleared. In such a case, the directory
5181 should be neither group- nor other-writeable until the special
5182 mode bits are right.
5184 2007-01-31 Eric Blake <ebb9@byu.net>
5186 * modules/mountlist (Depends-on): Add strstr.
5188 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
5190 * modules/string (Makefile.am): Remove redundant replacement.
5191 * modules/regex (Depends-on): Add mempcpy.
5193 2007-01-31 Bruno Haible <bruno@clisp.org>
5195 New module description field 'Link'.
5196 * gnulib-tool (func_usage): Document --extract-link-directive.
5197 (sed_extract_prog): Recognize 'Link' directive.
5198 (func_get_link_directive): New function.
5199 (func_import): Show summary of link directives.
5200 Handle --extract-link-directive option.
5201 * modules/acl (Link): New section.
5202 * modules/clock-time (Link): New section.
5203 * modules/euidaccess (Link): New section.
5204 * modules/gettext (Link): New section.
5205 * modules/iconv (Link): New section.
5206 * modules/lock (Link): New section.
5207 * modules/nanosleep (Link): New section.
5208 * modules/readline (Link): New section.
5210 2007-01-27 Bruno Haible <bruno@clisp.org>
5212 Enforce the use of gnulib modules for unportable <string.h> functions.
5213 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
5214 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
5215 (gl_HEADER_STRING_H_BODY): Require it.
5216 * lib/string_.h: If the gnulib module XYZ is not present, redefine
5217 the symbol XYZ to one that gives a link error.
5218 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
5219 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
5220 * modules/mempcpy (configure.ac): Likewise.
5221 * modules/memrchr (configure.ac): Likewise.
5222 * modules/stpcpy (configure.ac): Likewise.
5223 * modules/stpncpy (configure.ac): Likewise.
5224 * modules/strcase (configure.ac): Likewise.
5225 * modules/strcasestr (configure.ac): Likewise.
5226 * modules/strchrnul (configure.ac): Likewise.
5227 * modules/strdup (configure.ac): Likewise.
5228 * modules/strndup (configure.ac): Likewise.
5229 * modules/strnlen (configure.ac): Likewise.
5230 * modules/strpbrk (configure.ac): Likewise.
5231 * modules/strsep (configure.ac): Likewise.
5232 * modules/strstr (configure.ac): Likewise.
5233 * modules/strtok_r (configure.ac): Likewise.
5235 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
5237 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
5239 2007-01-30 Jim Meyering <jim@meyering.net>
5241 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
5243 2007-01-29 Bruno Haible <bruno@clisp.org>
5245 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
5246 * lib/execute.c: Likewise.
5247 * lib/pipe.c: Likewise.
5248 * lib/printf-args.h: Likewise.
5249 * lib/printf-args.c: Likewise.
5250 * lib/printf-parse.c: Likewise.
5251 * lib/vasnprintf.c: Likewise.
5253 2007-01-29 Eric Blake <ebb9@byu.net>
5255 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
5258 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
5260 * lib/strptime.h (strptime): Use 'restrict' for args where
5261 POSIX requires this.
5262 * lib/strptime.c (strptime): Likewise.
5263 Change license notice from LGPL to GPL, since gnulib-tool will
5264 change this as needed.
5265 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
5267 Include "strptime.h" first, to check interface.
5268 Do not #undef _LIBC and _NL_CURRENT.
5269 Do not include <stdlib.h>; no longer needed.
5270 Include "time_r.h" and declare ptime_locale_status
5271 only if _LIBC is not defined.
5272 (__P): Remove unused macro.
5273 (match_string): Bring back glibc version, but use it only if _LIBC
5275 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
5276 Remove unnecessary assertion and abort() call.
5277 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
5278 * m4/strptime.m4: Fix serial number comment.
5279 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
5280 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
5281 (Depends-on): Add time_r.
5283 2007-01-29 Bruno Haible <bruno@clisp.org>
5285 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5287 * modules/strptime (Depends-on): Add stdbool.
5288 * lib/strptime.h: Include <time.h> always. Add comments.
5290 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
5292 * modules/strptime: New file.
5293 * lib/strptime.h: New file.
5294 * lib/strptime.c: New file.
5295 * m4/strptime.m4: New file.
5297 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
5299 * MODULES.html.sh: New module mpsort.
5300 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
5302 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
5303 a circularity problem with HP-UX ia64 reported by Bob Proulx in
5304 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
5306 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
5308 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
5310 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
5311 the parameter matches the prototype.
5313 2007-01-28 Jim Meyering <jim@meyering.net>
5315 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
5316 sys/time.h here, reverting that part of the previous patch:
5317 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
5319 2007-01-28 Bruno Haible <bruno@clisp.org>
5321 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
5322 value of $(SYS_TIME_H).
5323 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
5324 remove it conditionally, too. [added by Jim Meyering]
5325 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
5326 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
5327 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
5328 GETTIMEOFDAY_REPLACEMENT to 1.
5330 2007-01-28 Bruno Haible <bruno@clisp.org>
5332 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
5333 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
5334 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
5335 Set UNISTD_H instead of UNISTD_H2.
5336 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
5338 2007-01-28 Bruno Haible <bruno@clisp.org>
5340 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
5341 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
5343 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5345 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
5346 (func_create_testdir): Ensure C locale for `grep' and `tr'
5348 (func_create_megatestdir): Avoid one `grep'. Fix bug in
5349 ACLOCAL_AMFLAGS parsing state machine.
5351 2007-01-27 Bruno Haible <bruno@clisp.org>
5353 * modules/unistr/base: Update.
5355 2007-01-27 Bruno Haible <bruno@clisp.org>
5357 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
5358 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
5359 * modules/unistr/u32-mbtouc-unsafe: Renamed from
5360 modules/unistr/u32-mbtouc.
5361 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
5362 * lib/unistr.h: Update.
5363 * lib/linebreak.c: Update.
5364 * modules/unistr/u32-mbtouc: Renamed from
5365 modules/unistr/u32-mbtouc-safe.
5366 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
5367 * lib/unistr.h: Update.
5368 * lib/unistr/u32-to-u8.c: Update.
5369 * lib/unistr/u32-to-u16.c: Update.
5371 2007-01-27 Bruno Haible <bruno@clisp.org>
5373 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
5374 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
5375 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
5376 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
5377 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
5378 * modules/unistr/u16-mbtouc-unsafe: Renamed from
5379 modules/unistr/u16-mbtouc.
5380 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
5381 * lib/unistr.h: Update.
5382 * lib/linebreak.c: Update.
5383 * modules/linebreak: Update.
5384 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
5385 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
5386 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
5387 * modules/unistr/u16-mbtouc: Renamed from
5388 modules/unistr/u16-mbtouc-safe.
5389 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
5390 * lib/unistr.h: Update.
5391 * lib/unistr/u16-to-u8.c: Update.
5392 * modules/unistr/u16-to-u8: Update.
5393 * lib/unistr/u16-to-u32.c: Update.
5394 * modules/unistr/u16-to-u32: Update.
5396 2007-01-27 Bruno Haible <bruno@clisp.org>
5398 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
5399 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
5400 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
5401 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
5402 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
5403 * modules/unistr/u8-mbtouc-unsafe: Renamed from
5404 modules/unistr/u8-mbtouc.
5405 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
5406 * lib/unistr.h: Update.
5407 * lib/striconveh.c: Update.
5408 * modules/striconveh: Update.
5409 * lib/linebreak.c: Update.
5410 * modules/linebreak: Update.
5411 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
5412 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
5413 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
5414 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
5415 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
5416 * lib/unistr.h: Update.
5417 * lib/striconveh.c: Update.
5418 * modules/striconveh: Update.
5419 * lib/unistr/u8-to-u16.c: Update.
5420 * modules/unistr/u8-to-u16: Update.
5421 * lib/unistr/u8-to-u32.c: Update.
5422 * modules/unistr/u8-to-u32: Update.
5424 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5427 * lib/argz.c: Do not include strings.h nor memory.h, include
5428 string.h unconditionally. Patch by Simon Josefsson.
5430 2007-01-27 Bruno Haible <bruno@clisp.org>
5432 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
5433 from gl_HEADER_STRING_H_BODY.
5434 (gl_HEADER_STRING_H_BODY): Require it.
5435 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
5436 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
5437 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
5438 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
5439 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5440 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
5441 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5442 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
5443 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
5444 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
5445 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
5446 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
5447 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
5448 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5449 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5451 2007-01-27 Bruno Haible <bruno@clisp.org>
5453 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
5454 check_PROGRAMS into noinst_PROGRAMS.
5455 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
5456 check_PROGRAMS in this case.
5457 (func_import): Set for_test to false.
5458 (func_create_testdir): Set for_test to true.
5460 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5461 Bruno Haible <bruno@clisp.org>
5463 * modules/strcasestr (Files): Remove lib/strcasestr.h.
5464 (Depends-on): Add string.
5465 (Includes): Use <string.h> instead of strcasestr.h.
5466 * modules/string (Makefile.am): Also substitute the value of
5468 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
5469 assume strcasestr is declared in <string.h> not <strings.h>. Also
5470 set REPLACE_STRCASESTR.
5471 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
5473 * lib/strcasestr.h: Remove file.
5474 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
5475 * lib/string_.h (strcasestr): New declaration.
5477 2007-01-27 Bruno Haible <bruno@clisp.org>
5479 * lib/string_.h: Use 'extern'.
5481 2007-01-27 Jim Meyering <jim@meyering.net>
5483 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
5484 of set-but-not-used local, "q".
5486 * lib/mempcpy.c: Include <config.h> before <string.h>.
5487 This fixes a compilation error on HP-UX, due to the system's
5488 "restrict"-using mempcpy prototype.
5490 2007-01-26 Bruno Haible <bruno@clisp.org>
5493 * lib/javacomp.c: Include c-strstr.h.
5494 (is_envjavac_gcj): Use c_strstr instead of strstr.
5495 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
5497 2007-01-26 Bruno Haible <bruno@clisp.org>
5499 * MODULES.html.sh (Unicode string functions): Add the new modules.
5501 * modules/uniconv/u32-strconv-to-locale: New file.
5502 * lib/uniconv/u32-strconv-to-locale.c: New file.
5504 * modules/uniconv/u16-strconv-to-locale: New file.
5505 * lib/uniconv/u16-strconv-to-locale.c: New file.
5507 * modules/uniconv/u8-strconv-to-locale: New file.
5508 * lib/uniconv/u8-strconv-to-locale.c: New file.
5510 * modules/uniconv/u32-strconv-from-locale: New file.
5511 * lib/uniconv/u32-strconv-from-locale.c: New file.
5513 * modules/uniconv/u16-strconv-from-locale: New file.
5514 * lib/uniconv/u16-strconv-from-locale.c: New file.
5516 * modules/uniconv/u8-strconv-from-locale: New file.
5517 * lib/uniconv/u8-strconv-from-locale.c: New file.
5519 * modules/uniconv/u32-strconv-to-enc: New file.
5520 * lib/uniconv/u32-strconv-to-enc.c: New file.
5521 * modules/uniconv/u32-strconv-to-enc-tests: New file.
5522 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
5524 * modules/uniconv/u16-strconv-to-enc: New file.
5525 * lib/uniconv/u16-strconv-to-enc.c: New file.
5526 * lib/uniconv/u-strconv-to-enc.h: New file.
5527 * modules/uniconv/u16-strconv-to-enc-tests: New file.
5528 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
5530 * modules/uniconv/u8-strconv-to-enc: New file.
5531 * lib/uniconv/u8-strconv-to-enc.c: New file.
5532 * modules/uniconv/u8-strconv-to-enc-tests: New file.
5533 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
5535 * modules/uniconv/u32-strconv-from-enc: New file.
5536 * lib/uniconv/u32-strconv-from-enc.c: New file.
5537 * modules/uniconv/u32-strconv-from-enc-tests: New file.
5538 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
5540 * modules/uniconv/u16-strconv-from-enc: New file.
5541 * lib/uniconv/u16-strconv-from-enc.c: New file.
5542 * modules/uniconv/u16-strconv-from-enc-tests: New file.
5543 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
5545 * modules/uniconv/u8-strconv-from-enc: New file.
5546 * lib/uniconv/u8-strconv-from-enc.c: New file.
5547 * lib/uniconv/u-strconv-from-enc.h: New file.
5548 * modules/uniconv/u8-strconv-from-enc-tests: New file.
5549 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
5551 * modules/uniconv/u32-conv-from-enc: New file.
5552 * lib/uniconv/u32-conv-from-enc.c: New file.
5553 * modules/uniconv/u32-conv-from-enc-tests: New file.
5554 * tests/uniconv/test-u32-conv-from-enc.c: New file.
5556 * modules/uniconv/u16-conv-from-enc: New file.
5557 * lib/uniconv/u16-conv-from-enc.c: New file.
5558 * lib/uniconv/u-conv-from-enc.h: New file.
5559 * modules/uniconv/u16-conv-from-enc-tests: New file.
5560 * tests/uniconv/test-u16-conv-from-enc.c: New file.
5562 * modules/uniconv/u8-conv-from-enc: New file.
5563 * lib/uniconv/u8-conv-from-enc.c: New file.
5564 * modules/uniconv/u8-conv-from-enc-tests: New file.
5565 * tests/uniconv/test-u8-conv-from-enc.c: New file.
5567 * modules/uniconv/base: New file.
5568 * lib/uniconv.h: New file.
5570 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
5572 * doc/gnulib-tool.texi (Initial import): Update to match current
5573 behavior with strdup module.
5574 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
5575 * lib/memmem.h: Remove; all uses removed. This is now done
5577 * lib/mempcpy.h: Likewise.
5578 * lib/memrchr.h: Likewise.
5579 * lib/stpcpy.h: Likewise.
5580 * lib/stpncpy.h: Likewise.
5581 * lib/strcase.h: Likewise.
5582 * lib/strchrnul.h: Likewise.
5583 * lib/strdup.h: Likewise.
5584 * lib/strndup.h: Likewise.
5585 * lib/strnlen.h: Likewise.
5586 * lib/strpbrk.h: Likewise.
5587 * lib/strsep.h: Likewise.
5588 * lib/strstr.h: Likewise.
5589 * lib/strtok_r.h: Likewise.
5590 * lib/string_.h: New file.
5591 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
5592 Rely on <string.h> instead.
5593 * lib/canon-host.c: Likewise.
5594 * lib/chdir-long.c: Likewise.
5595 * lib/concatpath.c: Likewise.
5596 * lib/exclude.c: Likewise.
5597 * lib/fchdir.c: Likewise.
5598 * lib/getaddrinfo.c: Likewise.
5599 * lib/getcwd.c: Likewise.
5600 * lib/getsubopt.c: Likewise.
5601 * lib/glob.c: Likewise.
5602 * lib/hard-locale.c: Likewise.
5603 * lib/iconvme.c: Likewise.
5604 * lib/javacomp.c: Likewise.
5605 * lib/mempcpy.c: Likewise.
5606 * lib/memrchr.c: Likewise.
5607 * lib/regex_internal.h: Likewise.
5608 * lib/stpncpy.c: Likewise.
5609 * lib/strcasecmp.c: Likewise.
5610 * lib/strchrnul.c: Likewise.
5611 * lib/strdup.c: Likewise.
5612 * lib/striconv.c: Likewise.
5613 * lib/striconveh.c: Likewise.
5614 * lib/striconveha.c: Likewise.
5615 * lib/strncasecmp.c: Likewise.
5616 * lib/strndup.c: Likewise.
5617 * lib/strnlen.c: Likewise.
5618 * lib/strsep.c: Likewise.
5619 * lib/strstr.c: Likewise.
5620 * lib/strtok_r.c: Likewise.
5621 * lib/userspec.c: Likewise.
5622 * lib/w32spawn.h: Likewise.
5623 * lib/xstrndup.c: Likewise.
5624 * lib/mountlist.c (strstr): Remove decl.
5625 * m4/string_h.m4: New file.
5626 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
5627 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
5628 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
5629 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
5630 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
5631 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
5632 Set REPLACE_STRCASECMP if necessary.
5633 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
5634 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
5635 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
5636 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
5637 HAVE_DECL_STRDUP if necessary.
5638 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
5639 since gl_FUNC_STRNDUP does that now.
5640 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
5641 Check for decl here...
5642 (gl_PREREQ_STRNLEN): ... not here.
5643 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
5644 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
5645 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
5646 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
5648 * modules/string: New file.
5649 * modules/memmem (Files): Remove special-purpose include file.
5650 (Depends-on): Add string.
5651 (Include): Include <string.h>, not the removed file.
5652 * modules/mempcpy: Likewise.
5653 * modules/memrchr: Likewise.
5654 * modules/stpcpy: Likewise.
5655 * modules/stpncpy: Likewise.
5656 * modules/strcase: Likewise.
5657 * modules/strchrnul: Likewise.
5658 * modules/strdup: Likewise.
5659 * modules/strndup: Likewise.
5660 * modules/strnlen: Likewise.
5661 * modules/strpbrk: Likewise.
5662 * modules/strsep: Likewise.
5663 * modules/strstr: Likewise.
5664 * modules/strtok_r: Likewise.
5665 * tests/test-dirname.c: Don't include "strdup.h", since
5666 <string.h> now suffices.
5667 * tests/test-memmem.c: Don't include "memmem.h", since
5668 <string.h> now suffices.
5670 2007-01-25 Bruno Haible <bruno@clisp.org>
5672 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
5675 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
5676 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
5677 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
5678 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
5680 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
5681 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
5682 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
5683 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
5684 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
5685 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
5687 2007-01-24 Bruno Haible <bruno@clisp.org>
5689 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
5690 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
5691 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
5692 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
5694 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
5695 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
5696 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5697 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
5698 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
5699 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
5701 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
5703 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
5704 Reported by Ralf Wildenhues.
5706 2007-01-24 Bruno Haible <bruno@clisp.org>
5708 Drop AC_REQUIRE calls that are redundant with the module dependencies.
5709 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
5711 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
5712 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
5713 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
5715 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
5717 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
5718 Don't use 'exit'; just return from 'main'.
5719 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
5721 * lib/fnmatch_.h: Readjust white space and comments to match
5722 glibc, to avoid spurious diffs.
5724 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
5726 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
5727 2004-12-01 change by Jakub Jelinek, since this code won't compile
5728 if !LIBC. Problem reported by Bob Proulx.
5730 2007-01-23 Bruno Haible <bruno@clisp.org>
5732 * lib/striconveh.c: Include c-strcaseeq.h.
5733 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
5734 * modules/striconveh (Depends-on): Add c-strcaseeq.
5736 2007-01-23 Bruno Haible <bruno@clisp.org>
5738 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
5740 * modules/c-strcaseeq: New file.
5741 * lib/c-strcaseeq.h: New file.
5743 * modules/streq: New file.
5744 * lib/streq.h: New file.
5746 2007-01-23 Bruno Haible <bruno@clisp.org>
5748 * modules/striconveha-tests: New file.
5749 * tests/test-striconveha.c: New file.
5751 * lib/striconveha.h: Include <stdbool.h>.
5752 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
5753 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
5754 (mem_iconveha_notranslit): Renamed from mem_iconveha.
5755 (mem_iconveha): New function.
5756 (str_iconveha_notranslit): Renamed from str_iconveha.
5757 (str_iconveha): New function.
5758 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
5761 2007-01-23 Bruno Haible <bruno@clisp.org>
5763 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
5764 encodings without forgiving before trying any encoding with handler.
5765 (str_iconveha): Try all encodings without forgiving before trying any
5766 encoding with handler.
5768 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
5770 Import the following changes from libc.
5772 2005-10-14 Ulrich Drepper <drepper@redhat.com>
5774 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
5776 2004-12-01 Jakub Jelinek <jakub@redhat.com>
5778 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
5779 normal_bracket label.
5781 2004-09-01 Jakub Jelinek <jakub@redhat.com>
5784 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
5785 to normal_bracket after fetching the next character.
5787 2007-01-22 Bruno Haible <bruno@clisp.org>
5789 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
5791 * lib/striconveh.c (iconv_carefully_1): New function.
5792 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
5794 (str_cd_iconveh): Update.
5795 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
5796 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
5797 * tests/test-striconveh.c (MAGIC): New macro.
5798 (new_offsets): New function.
5799 (main): Test call with and without offsets.
5801 2007-01-22 Bruno Haible <bruno@clisp.org>
5803 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
5804 * modules/sys_select (Makefile.am): Likewise.
5805 * modules/sys_socket (Makefile.am): Likewise.
5806 * modules/sys_time (Makefile.am): Likewise.
5808 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
5810 * modules/gettimeofday (License): Change from GPL to LGPL, since
5811 gettimeofday is a library function.
5813 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5815 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
5817 2007-01-21 Bruno Haible <bruno@clisp.org>
5819 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
5821 2007-01-21 Bruno Haible <bruno@clisp.org>
5823 * modules/striconveha: New file.
5824 * lib/striconveha.h: New file.
5825 * lib/striconveha.c: New file.
5826 * MODULES.html.sh (Internationalization functions): Add striconveha.
5827 * lib/striconv.c (str_iconv): Optimize the case of an empty input
5829 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
5831 2007-01-21 Bruno Haible <bruno@clisp.org>
5833 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
5834 * lib/striconveh.c (str_iconveh): Likewise.
5836 2007-01-21 Bruno Haible <bruno@clisp.org>
5838 * lib/striconveh.h (mem_iconveh): New declaration.
5839 * lib/striconveh.c (mem_iconveh): New function.
5840 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
5842 2007-01-21 Bruno Haible <bruno@clisp.org>
5844 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
5846 * lib/striconveh.h (mem_cd_iconveh): Change specification.
5847 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
5848 original result buffer.
5849 (str_cd_iconveh): Update.
5850 * tests/test-striconveh.c (main): Update.
5852 * lib/striconv.h (mem_cd_iconv): Change specification.
5853 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
5855 (str_cd_iconv): Update.
5856 * tests/test-striconv.c (main): Update.
5858 2007-01-21 Bruno Haible <bruno@clisp.org>
5860 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
5862 2007-01-20 Jim Meyering <jim@meyering.net>
5864 * lib/userspec.c (parse_with_separator): If a user or group string
5865 starts with "+", skip the corresponding name-to-ID look-up, since
5866 such a look-up must fail: user and group names may not include "+".
5868 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
5870 * lib/poll.c: Include sys/time.h and time.h unconditionally,
5871 since we now assume the sys_time module.
5872 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
5873 check for sys/time.h; no longer needed.
5874 * modules/poll (Depends-on): Depend on sys_time.
5876 2007-01-18 Bruno Haible <bruno@clisp.org>
5878 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
5879 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
5881 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
5884 * tests/test-gettimeofday.c: Include <time.h>.
5885 (dummy): Remove variable.
5887 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
5888 gl_HEADER_SYS_TIME_H.
5889 (gl_HEADER_SYS_TIME_H): New macro.
5891 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
5892 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5893 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5894 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
5895 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5896 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
5897 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
5898 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5899 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
5900 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
5901 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5903 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
5904 last change; it caused a compilation error when cross-compiling to
5907 2007-01-18 Jim Meyering <jim@meyering.net>
5909 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
5910 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
5911 than the race-prone "test -d sys || mkdir sys".
5912 (configure.ac): Use AC_PROG_MKDIR_P.
5913 * modules/sys_select: Likewise.
5914 * modules/sys_socket: Likewise.
5915 * modules/sys_time: Likewise.
5917 2007-01-18 Eric Blake <ebb9@byu.net>
5919 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
5920 replace gettimeofday.
5921 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
5922 name, to avoid infinite recursion.
5924 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
5926 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
5928 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
5929 assume timespec.h defines struct timeval.
5930 * lib/settime.c: Likewise.
5931 * lib/utimens.c: Likewise.
5932 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
5933 since we now assume the gettimeofday module.
5934 * lib/tempname.c (__gen_tempname): Likewise.
5935 * lib/gettimeofday.h: Remove.
5936 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
5937 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
5938 Include <time.h>, for 'time()'.
5939 (localtime_buffer_addr): Also use this workaround if
5940 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
5941 to simplify the uses. All uses changed.
5942 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
5943 that #undef is inside {}, and 'const' follows type name consistently.
5944 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
5945 (gettimeofday): Do not use the maximum possible value for
5946 tv->tv_usec, since that might break usages other than ls.c.
5947 Instead, we'll leave ls.c alone. This undoes today's patch
5948 by Bruno. Add a compile-time warning for 1s-clock resolution;
5949 we've never observed the problem but might as well keep the
5951 * lib/nanosleep.c: Include timespec.h first, for interface check.
5952 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
5953 now assume the sys_time module.
5954 * lib/tempname.c: Likewise.
5955 * lib/timespec.h: Likewise.
5956 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
5958 * lib/strftime.c: Likewise.
5959 * lib/timespec.h: Likewise.
5960 * lib/posixtm.c: Include posixtm.h first, for interface check.
5961 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
5962 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
5963 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
5964 * lib/sys_time_.h: New file.
5965 * lib/timespec.h (struct timespec): Use long int, not long.
5966 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
5967 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
5968 Remove obsolescent call to AC_HEADER_TIME.
5969 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5970 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5971 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
5972 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
5974 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
5975 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
5976 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
5977 into the sys_time module. Check for gettimeofday just once.
5978 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
5979 for gettimeofday signature to just check the signature. Merely
5980 compile it, since linking doesn't test signature. Improve test for
5981 whether gettimeofday.o is actually needed.
5982 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
5983 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
5984 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
5985 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5986 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
5987 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
5988 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
5989 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
5990 than worrying about sys/time.h.
5991 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5992 Don't bother worrying about TIME_WITH_SYS_TIME.
5993 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
5994 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
5995 * m4/sys_time_h.m4: New file.
5996 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
5997 Don't include sys/time.h. Return from main rather than exiting.
5998 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
6000 * modules/gethrxtime (Depends-on): Add sys_time.
6001 * modules/gettime (Depends-on): Likewise.
6002 * modules/gettimeofday (Depends-on): Likewise.
6003 * modules/nanosleep (Depends-on): Likewise.
6004 * modules/settime (Depends-on): Likewise.
6005 * modules/tempname (Depends-on): Likewise.
6006 * modules/utimens (Depends-on): Likewise.
6007 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
6008 (Include:) Change back to <sys/time.h>.
6009 (Maintainer:) Add self.
6010 * modules/sys_time: New file.
6011 * modules/tempname (Depends-on): Add gettimeofday.
6012 * tests/test-gettimeofday.c: Include <sys/time.h>
6013 rather than gettimeofday.h.
6015 2007-01-17 Bruno Haible <bruno@clisp.org>
6017 * gnulib-tool (func_get_license): Revert last patch. Instead, let
6018 the license default to GPL.
6019 (func_create_testdir): Don't complain if a module is LGPL and its
6020 tests module depends on GPLed modules.
6022 2007-01-17 Bruno Haible <bruno@clisp.org>
6024 * lib/gettimeofday.c (gettimeofday): Add code for the case
6025 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
6026 maximum possible value for tv->tv_usec, rather than the minimum one.
6028 2005-10-08 Martin Lambers <marlam@marlam.de>
6029 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
6030 2007-01-16 Bruno Haible <bruno@clisp.org>
6032 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
6033 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
6034 gl_FUNC_GETTIMEOFDAY.
6035 (Include): Add gettimeofday.h.
6036 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
6037 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
6038 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
6039 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
6040 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
6041 * lib/gettimeofday.h: New file.
6042 * lib/gettimeofday.c: Include <sys/timeb.h>.
6043 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
6044 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6045 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
6046 fall back on time().
6048 * tests/test-gettimeofday.c: New file.
6049 * modules/gettimeofday-tests: New file.
6051 2007-01-16 Eric Blake <ebb9@byu.net>
6053 * modules/fnmatch (Depends-on): Depend on wchar.
6054 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
6055 * m4/fnmatch.m4: Likewise.
6056 * modules/mbchar (Makefile.am): Assume <wchar.h>.
6057 * m4/mbchar.m4: Likewise.
6058 * modules/mbswidth (Depends-on): Depend on wchar.
6059 * lib/mbswidth.c: Assume <wchar.h>.
6060 * m4/mbswidth.m4: Likewise.
6061 * modules/quotearg (Depends-on): Depend on wchar.
6062 * lib/quotearg.c: Assume <wchar.h>.
6063 * m4/quotearg.m4: Likewise.
6064 * modules/regex (Depends-on): Depend on wchar.
6065 * lib/regex_internal.h: Assume <wchar.h>.
6066 * m4/regex.m4: Likewise.
6067 * modules/stdint (Depends-on): Depend on wchar.
6068 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
6069 * m4/stdint.m4: Likewise.
6070 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
6071 * modules/strftime (Depends-on): Depend on wchar.
6072 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
6073 * modules/strtol (Depends-on): Depend on wchar.
6074 * lib/strtol.c: Assume <wchar.h>.
6075 * modules/wcwidth (Depends-on): Depend on wchar.
6076 * lib/wcwidth.h: Assume <wchar.h>.
6077 * m4/wcwidth.m4: Likewise.
6079 2007-01-16 Bruno Haible <bruno@clisp.org>
6081 * modules/csharpexec-script: New, created from...
6082 * modules/csharpexec: ... this.
6084 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
6086 * modules/javaexec-script: New, created from...
6087 * modules/javaexec: ... this.
6089 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6091 * modules/poll (Dependencies): Add sys_select.
6093 2007-01-15 Jim Meyering <jim@meyering.net>
6095 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
6096 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
6097 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
6098 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
6100 2007-01-15 Bruno Haible <bruno@clisp.org>
6102 * modules/striconveh: New file.
6103 * lib/striconveh.h: New file.
6104 * lib/striconveh.c: New file.
6105 * MODULES.html.sh (Internationalization functions): Add striconveh.
6107 * modules/striconveh-tests: New file.
6108 * tests/test-striconveh.c: New file.
6110 2007-01-15 Bruno Haible <bruno@clisp.org>
6112 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
6113 not from GNU libiconv or GNU libc.
6115 2007-01-15 Bruno Haible <bruno@clisp.org>
6117 * doc/gnulib-intro.texi (Copyright): Explain the different license
6118 terms for module descriptions, autoconf macros, tests, documentation.
6120 2007-01-14 Bruno Haible <bruno@clisp.org>
6122 * modules/striconv-tests: New file.
6123 * tests/test-striconv.c: New file.
6125 2007-01-14 Bruno Haible <bruno@clisp.org>
6127 * modules/iconv-tests: New file.
6128 * tests/test-iconv.c: New file.
6130 2007-01-14 Bruno Haible <bruno@clisp.org>
6132 * gnulib-tool (func_get_license): For test modules, use the license of
6135 2007-01-14 Bruno Haible <bruno@clisp.org>
6137 * modules/iconv (Include): Clarify that <iconv.h> can only be included
6138 if iconv is found to exist.
6140 2007-01-14 Bruno Haible <bruno@clisp.org>
6142 * modules/c-ctype-tests: New file.
6143 * tests/test-c-ctype.c: New file.
6145 2007-01-14 Bruno Haible <bruno@clisp.org>
6147 * modules/binary-io-tests: New file.
6148 * tests/test-binary-io.sh: New file.
6149 * tests/test-binary-io.c: New file.
6151 2007-01-14 Bruno Haible <bruno@clisp.org>
6153 * modules/array-oset-tests: New file.
6154 * tests/test-array_oset.c: New file.
6156 2007-01-14 Bruno Haible <bruno@clisp.org>
6158 * modules/array-list-tests: New file.
6159 * tests/test-array_list.c: New file.
6161 2007-01-14 Bruno Haible <bruno@clisp.org>
6163 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
6165 Reported by Simon Josefsson in
6166 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
6168 2007-01-14 Bruno Haible <bruno@clisp.org>
6170 * modules/allocsa-tests: New file.
6171 * tests/test-allocsa.c: New file.
6173 2007-01-14 Bruno Haible <bruno@clisp.org>
6175 * modules/fchdir (Depends-on): Add absolute-header.
6176 * modules/unistd (Depends-on): Likewise.
6178 2006-12-30 Bruno Haible <bruno@clisp.org>
6180 * modules/fchdir: New file.
6181 * modules/unistd (Files): Add lib/unistd_.h.
6182 (Makefile.am): Generate unistd.h from unistd_.h.
6183 * lib/fchdir.c: New file.
6184 * lib/dirent_.h: New file.
6185 * lib/unistd_.h: New file.
6186 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
6187 * m4/fchdir.m4: New file.
6188 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
6189 (gl_HEADER_UNISTD): Invoke it.
6190 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
6192 * lib/backupfile.c (opendir, closedir): Undefine.
6193 * lib/chown.c (open, close): Undefine.
6194 * lib/clean-temp.c (open, close): Undefine.
6195 * lib/copy-file.c (open, close): Undefine.
6196 * lib/execute.c (open, close): Undefine.
6197 * lib/fsusage.c (open, close): Undefine.
6198 * lib/gc-gnulib.c (open, close): Undefine.
6199 * lib/getcwd.c (opendir, closedir): Undefine.
6200 * lib/glob.c (opendir, closedir): Undefine.
6201 * lib/javacomp.c (open, close): Undefine.
6202 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
6203 * lib/openat-proc.c (open, close): Undefine.
6204 * lib/pagealign_alloc.c (open, close): Undefine.
6205 * lib/pipe.c (open, close): Undefine.
6206 * lib/progreloc.c (open, close): Undefine.
6207 * lib/savedir.c (opendir, closedir): Undefine.
6208 * lib/utime.c (open, close): Undefine.
6209 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
6211 2007-01-10 Bruno Haible <bruno@clisp.org>
6213 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
6215 2007-01-12 Eric Blake <ebb9@byu.net>
6217 Provide a robust <wchar.h>. Further simplifications are now
6218 possible in other modules, but not included here.
6219 * modules/wchar: New module.
6220 * m4/wchar.m4: New file.
6221 * lib/wchar_.h: Likewise.
6222 * modules/mbchar (Depends-on): Depend on wchar, as the first use
6224 * MODULES.html.sh (Extended multibyte and wide character utilities):
6227 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
6229 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
6230 to a reasonable default for memory allocation.
6231 (xreadlink): Don't allocate a huge buffer, to work around a buggy
6232 file system that reports garbage st_size values for symlinks.
6233 Problem reported by Liyang Hu.
6235 2007-01-11 Simon Josefsson <simon@josefsson.org>
6237 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
6238 Emacs .#* auto-save files).
6240 2007-01-11 Bruno Haible <bruno@clisp.org>
6242 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
6245 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
6247 Use @...@ consistently in lib/wctype_.h.
6248 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
6249 on it being set to 1 or 0.
6250 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
6251 go back to AC_SUBSTing it.
6252 * modules/wctype (Makefile.am): Undo previous change.
6254 2007-01-10 Eric Blake <ebb9@byu.net>
6256 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
6257 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
6258 * modules/wctype (Makefile.am): Likewise.
6259 Reported by Chris McGuire.
6261 2007-01-10 Jim Meyering <jim@meyering.net>
6263 fts.c: a small readability/maintainability improvement
6264 * lib/fts.c (fts_read): Make this code slightly more readable and
6265 maintainable by hoisting the "sp->fts_cur = p" assignments to
6266 immediately follow the statements that set P. Derived from
6267 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
6269 2007-01-10 Eric Blake <ebb9@byu.net>
6271 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
6272 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
6273 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6274 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6275 Reported by Chris McGuire.
6277 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6279 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
6282 2007-01-09 Bruno Haible <bruno@clisp.org>
6284 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
6285 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
6287 (func_module): Use them.
6289 2007-01-09 Bruno Haible <bruno@clisp.org>
6291 * modules/unistr/base: New file.
6292 * lib/unistr.h: New file.
6294 * modules/unistr/u8-to-u16: New file.
6295 * lib/unistr/u8-to-u16.c: New file.
6297 * modules/unistr/u8-to-u32: New file.
6298 * lib/unistr/u8-to-u32.c: New file.
6300 * modules/unistr/u16-to-u8: New file.
6301 * lib/unistr/u16-to-u8.c: New file.
6303 * modules/unistr/u16-to-u32: New file.
6304 * lib/unistr/u16-to-u32.c: New file.
6306 * modules/unistr/u32-to-u8: New file.
6307 * lib/unistr/u32-to-u8.c: New file.
6309 * modules/unistr/u32-to-u16: New file.
6310 * lib/unistr/u32-to-u16.c: New file.
6312 * modules/unistr/u8-check: New file.
6313 * modules/unistr/u16-check: New file.
6314 * modules/unistr/u32-check: New file.
6315 * lib/unistr/u8-check.c: New file.
6316 * lib/unistr/u16-check.c: New file.
6317 * lib/unistr/u32-check.c: New file.
6319 * modules/unistr/u8-chr: New file.
6320 * modules/unistr/u16-chr: New file.
6321 * modules/unistr/u32-chr: New file.
6322 * lib/unistr/u8-chr.c: New file.
6323 * lib/unistr/u16-chr.c: New file.
6324 * lib/unistr/u32-chr.c: New file.
6326 * modules/unistr/u8-cmp: New file.
6327 * modules/unistr/u16-cmp: New file.
6328 * modules/unistr/u32-cmp: New file.
6329 * lib/unistr/u8-cmp.c: New file.
6330 * lib/unistr/u16-cmp.c: New file.
6331 * lib/unistr/u32-cmp.c: New file.
6333 * modules/unistr/u8-cpy: New file.
6334 * modules/unistr/u16-cpy: New file.
6335 * modules/unistr/u32-cpy: New file.
6336 * lib/unistr/u8-cpy.c: New file.
6337 * lib/unistr/u16-cpy.c: New file.
6338 * lib/unistr/u32-cpy.c: New file.
6339 * lib/unistr/u-cpy.h: New file.
6341 * modules/unistr/u8-cpy-alloc: New file.
6342 * modules/unistr/u16-cpy-alloc: New file.
6343 * modules/unistr/u32-cpy-alloc: New file.
6344 * lib/unistr/u8-cpy-alloc.c: New file.
6345 * lib/unistr/u16-cpy-alloc.c: New file.
6346 * lib/unistr/u32-cpy-alloc.c: New file.
6347 * lib/unistr/u-cpy-alloc.h: New file.
6349 * modules/unistr/u8-endswith: New file.
6350 * modules/unistr/u16-endswith: New file.
6351 * modules/unistr/u32-endswith: New file.
6352 * lib/unistr/u8-endswith.c: New file.
6353 * lib/unistr/u16-endswith.c: New file.
6354 * lib/unistr/u32-endswith.c: New file.
6355 * lib/unistr/u-endswith.h: New file.
6357 * modules/unistr/u8-mblen: New file.
6358 * modules/unistr/u16-mblen: New file.
6359 * modules/unistr/u32-mblen: New file.
6360 * lib/unistr/u8-mblen.c: New file.
6361 * lib/unistr/u16-mblen.c: New file.
6362 * lib/unistr/u32-mblen.c: New file.
6364 * modules/unistr/u8-mbtouc: New file.
6365 * modules/unistr/u16-mbtouc: New file.
6366 * modules/unistr/u32-mbtouc: New file.
6367 * lib/unistr/u8-mbtouc.c: New file.
6368 * lib/unistr/u16-mbtouc.c: New file.
6369 * lib/unistr/u32-mbtouc.c: New file.
6371 * modules/unistr/u8-mbtouc-safe: New file.
6372 * modules/unistr/u16-mbtouc-safe: New file.
6373 * modules/unistr/u32-mbtouc-safe: New file.
6374 * lib/unistr/u8-mbtouc-safe.c: New file.
6375 * lib/unistr/u16-mbtouc-safe.c: New file.
6376 * lib/unistr/u32-mbtouc-safe.c: New file.
6378 * modules/unistr/u8-move: New file.
6379 * modules/unistr/u16-move: New file.
6380 * modules/unistr/u32-move: New file.
6381 * lib/unistr/u8-move.c: New file.
6382 * lib/unistr/u16-move.c: New file.
6383 * lib/unistr/u32-move.c: New file.
6384 * lib/unistr/u-move.h: New file.
6386 * modules/unistr/u8-next: New file.
6387 * modules/unistr/u16-next: New file.
6388 * modules/unistr/u32-next: New file.
6389 * lib/unistr/u8-next.c: New file.
6390 * lib/unistr/u16-next.c: New file.
6391 * lib/unistr/u32-next.c: New file.
6393 * modules/unistr/u8-prev: New file.
6394 * modules/unistr/u16-prev: New file.
6395 * modules/unistr/u32-prev: New file.
6396 * lib/unistr/u8-prev.c: New file.
6397 * lib/unistr/u16-prev.c: New file.
6398 * lib/unistr/u32-prev.c: New file.
6400 * modules/unistr/u8-set: New file.
6401 * modules/unistr/u16-set: New file.
6402 * modules/unistr/u32-set: New file.
6403 * lib/unistr/u8-set.c: New file.
6404 * lib/unistr/u16-set.c: New file.
6405 * lib/unistr/u32-set.c: New file.
6406 * lib/unistr/u-set.h: New file.
6408 * modules/unistr/u8-startswith: New file.
6409 * modules/unistr/u16-startswith: New file.
6410 * modules/unistr/u32-startswith: New file.
6411 * lib/unistr/u8-startswith.c: New file.
6412 * lib/unistr/u16-startswith.c: New file.
6413 * lib/unistr/u32-startswith.c: New file.
6414 * lib/unistr/u-startswith.h: New file.
6416 * modules/unistr/u8-stpcpy: New file.
6417 * modules/unistr/u16-stpcpy: New file.
6418 * modules/unistr/u32-stpcpy: New file.
6419 * lib/unistr/u8-stpcpy.c: New file.
6420 * lib/unistr/u16-stpcpy.c: New file.
6421 * lib/unistr/u32-stpcpy.c: New file.
6422 * lib/unistr/u-stpcpy.h: New file.
6424 * modules/unistr/u8-stpncpy: New file.
6425 * modules/unistr/u16-stpncpy: New file.
6426 * modules/unistr/u32-stpncpy: New file.
6427 * lib/unistr/u8-stpncpy.c: New file.
6428 * lib/unistr/u16-stpncpy.c: New file.
6429 * lib/unistr/u32-stpncpy.c: New file.
6430 * lib/unistr/u-stpncpy.h: New file.
6432 * modules/unistr/u8-strcat: New file.
6433 * modules/unistr/u16-strcat: New file.
6434 * modules/unistr/u32-strcat: New file.
6435 * lib/unistr/u8-strcat.c: New file.
6436 * lib/unistr/u16-strcat.c: New file.
6437 * lib/unistr/u32-strcat.c: New file.
6438 * lib/unistr/u-strcat.h: New file.
6440 * modules/unistr/u8-strchr: New file.
6441 * modules/unistr/u16-strchr: New file.
6442 * modules/unistr/u32-strchr: New file.
6443 * lib/unistr/u8-strchr.c: New file.
6444 * lib/unistr/u16-strchr.c: New file.
6445 * lib/unistr/u32-strchr.c: New file.
6447 * modules/unistr/u8-strcmp: New file.
6448 * modules/unistr/u16-strcmp: New file.
6449 * modules/unistr/u32-strcmp: New file.
6450 * lib/unistr/u8-strcmp.c: New file.
6451 * lib/unistr/u16-strcmp.c: New file.
6452 * lib/unistr/u32-strcmp.c: New file.
6454 * modules/unistr/u8-strcpy: New file.
6455 * modules/unistr/u16-strcpy: New file.
6456 * modules/unistr/u32-strcpy: New file.
6457 * lib/unistr/u8-strcpy.c: New file.
6458 * lib/unistr/u16-strcpy.c: New file.
6459 * lib/unistr/u32-strcpy.c: New file.
6460 * lib/unistr/u-strcpy.h: New file.
6462 * modules/unistr/u8-strcspn: New file.
6463 * modules/unistr/u16-strcspn: New file.
6464 * modules/unistr/u32-strcspn: New file.
6465 * lib/unistr/u8-strcspn.c: New file.
6466 * lib/unistr/u16-strcspn.c: New file.
6467 * lib/unistr/u32-strcspn.c: New file.
6468 * lib/unistr/u-strcspn.h: New file.
6470 * modules/unistr/u8-strdup: New file.
6471 * modules/unistr/u16-strdup: New file.
6472 * modules/unistr/u32-strdup: New file.
6473 * lib/unistr/u8-strdup.c: New file.
6474 * lib/unistr/u16-strdup.c: New file.
6475 * lib/unistr/u32-strdup.c: New file.
6476 * lib/unistr/u-strdup.h: New file.
6478 * modules/unistr/u8-strlen: New file.
6479 * modules/unistr/u16-strlen: New file.
6480 * modules/unistr/u32-strlen: New file.
6481 * lib/unistr/u8-strlen.c: New file.
6482 * lib/unistr/u16-strlen.c: New file.
6483 * lib/unistr/u32-strlen.c: New file.
6484 * lib/unistr/u-strlen.h: New file.
6486 * modules/unistr/u8-strmblen: New file.
6487 * modules/unistr/u16-strmblen: New file.
6488 * modules/unistr/u32-strmblen: New file.
6489 * lib/unistr/u8-strmblen.c: New file.
6490 * lib/unistr/u16-strmblen.c: New file.
6491 * lib/unistr/u32-strmblen.c: New file.
6493 * modules/unistr/u8-strmbtouc: New file.
6494 * modules/unistr/u16-strmbtouc: New file.
6495 * modules/unistr/u32-strmbtouc: New file.
6496 * lib/unistr/u8-strmbtouc.c: New file.
6497 * lib/unistr/u16-strmbtouc.c: New file.
6498 * lib/unistr/u32-strmbtouc.c: New file.
6500 * modules/unistr/u8-strncat: New file.
6501 * modules/unistr/u16-strncat: New file.
6502 * modules/unistr/u32-strncat: New file.
6503 * lib/unistr/u8-strncat.c: New file.
6504 * lib/unistr/u16-strncat.c: New file.
6505 * lib/unistr/u32-strncat.c: New file.
6506 * lib/unistr/u-strncat.h: New file.
6508 * modules/unistr/u8-strncmp: New file.
6509 * modules/unistr/u16-strncmp: New file.
6510 * modules/unistr/u32-strncmp: New file.
6511 * lib/unistr/u8-strncmp.c: New file.
6512 * lib/unistr/u16-strncmp.c: New file.
6513 * lib/unistr/u32-strncmp.c: New file.
6515 * modules/unistr/u8-strncpy: New file.
6516 * modules/unistr/u16-strncpy: New file.
6517 * modules/unistr/u32-strncpy: New file.
6518 * lib/unistr/u8-strncpy.c: New file.
6519 * lib/unistr/u16-strncpy.c: New file.
6520 * lib/unistr/u32-strncpy.c: New file.
6521 * lib/unistr/u-strncpy.h: New file.
6523 * modules/unistr/u8-strnlen: New file.
6524 * modules/unistr/u16-strnlen: New file.
6525 * modules/unistr/u32-strnlen: New file.
6526 * lib/unistr/u8-strnlen.c: New file.
6527 * lib/unistr/u16-strnlen.c: New file.
6528 * lib/unistr/u32-strnlen.c: New file.
6529 * lib/unistr/u-strnlen.h: New file.
6531 * modules/unistr/u8-strpbrk: New file.
6532 * modules/unistr/u16-strpbrk: New file.
6533 * modules/unistr/u32-strpbrk: New file.
6534 * lib/unistr/u8-strpbrk.c: New file.
6535 * lib/unistr/u16-strpbrk.c: New file.
6536 * lib/unistr/u32-strpbrk.c: New file.
6537 * lib/unistr/u-strpbrk.h: New file.
6539 * modules/unistr/u8-strrchr: New file.
6540 * modules/unistr/u16-strrchr: New file.
6541 * modules/unistr/u32-strrchr: New file.
6542 * lib/unistr/u8-strrchr.c: New file.
6543 * lib/unistr/u16-strrchr.c: New file.
6544 * lib/unistr/u32-strrchr.c: New file.
6546 * modules/unistr/u8-strspn: New file.
6547 * modules/unistr/u16-strspn: New file.
6548 * modules/unistr/u32-strspn: New file.
6549 * lib/unistr/u8-strspn.c: New file.
6550 * lib/unistr/u16-strspn.c: New file.
6551 * lib/unistr/u32-strspn.c: New file.
6552 * lib/unistr/u-strspn.h: New file.
6554 * modules/unistr/u8-strstr: New file.
6555 * modules/unistr/u16-strstr: New file.
6556 * modules/unistr/u32-strstr: New file.
6557 * lib/unistr/u8-strstr.c: New file.
6558 * lib/unistr/u16-strstr.c: New file.
6559 * lib/unistr/u32-strstr.c: New file.
6560 * lib/unistr/u-strstr.h: New file.
6562 * modules/unistr/u8-strtok: New file.
6563 * modules/unistr/u16-strtok: New file.
6564 * modules/unistr/u32-strtok: New file.
6565 * lib/unistr/u8-strtok.c: New file.
6566 * lib/unistr/u16-strtok.c: New file.
6567 * lib/unistr/u32-strtok.c: New file.
6568 * lib/unistr/u-strtok.h: New file.
6570 * modules/unistr/u8-uctomb: New file.
6571 * modules/unistr/u16-uctomb: New file.
6572 * modules/unistr/u32-uctomb: New file.
6573 * lib/unistr/u8-uctomb.c: New file.
6574 * lib/unistr/u16-uctomb.c: New file.
6575 * lib/unistr/u32-uctomb.c: New file.
6577 * MODULES.html.sh (Unicode string functions): Add the new modules.
6579 2007-01-08 Bruno Haible <bruno@clisp.org>
6581 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
6582 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
6585 2007-01-08 Karl Berry <karl@gnu.org>
6587 * doc/error.texi: mention that main() fns must set program_name
6588 when progname is used.
6590 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
6592 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
6593 WCTYPE_H is empty, for the benefit of builds from non-distclean
6594 directories. Problem reported by Eric Blake in
6595 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
6597 2007-01-08 Bruno Haible <bruno@clisp.org>
6599 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
6600 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
6601 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
6602 PROVIDE_CANONICALIZE_FILENAME_MODE.
6603 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
6605 2007-01-08 Bruno Haible <bruno@clisp.org>
6607 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
6608 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
6609 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
6610 * lib/fts.c: Likewise.
6611 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
6613 2006-12-25 Bruno Haible <bruno@clisp.org>
6615 * modules/utf8-ucs4-safe: New file.
6616 * lib/utf8-ucs4-safe.h: New file.
6617 * lib/unistr/utf8-ucs4-safe.c: New file.
6619 * modules/utf16-ucs4-safe: New file.
6620 * lib/utf16-ucs4-safe.h: New file.
6621 * lib/unistr/utf16-ucs4-safe.c: New file.
6623 * MODULES.html.sh (Unicode string functions): Add the new modules.
6625 2007-01-08 Bruno Haible <bruno@clisp.org>
6627 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
6628 (Depends-on): Add unitypes.
6629 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
6630 (u8_mbtouc_aux): Move out to separate file.
6631 (u8_mbtouc): Use ucs4_t, uint8_t types.
6632 * lib/unistr/utf8-ucs4.c: New file.
6634 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
6635 (Depends-on): Add unitypes.
6636 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
6637 (u16_mbtouc_aux): Move out to separate file.
6638 (u16_mbtouc): Use ucs4_t, uint16_t types.
6639 * lib/unistr/utf16-ucs4.c: New file.
6641 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
6642 (Depends-on): Add unitypes.
6643 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
6644 (u8_uctomb_aux): Move out to separate file.
6645 (u8_uctomb): Use ucs4_t, uint8_t types.
6646 * lib/unistr/ucs4-utf8.c: New file.
6648 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
6649 (Depends-on): Add unitypes.
6650 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
6651 (u16_uctomb_aux): Move out to separate file.
6652 (u16_uctomb): Use ucs4_t, uint16_t types.
6653 * lib/unistr/ucs4-utf16.c: New file.
6655 2006-12-25 Bruno Haible <bruno@clisp.org>
6657 * modules/unitypes: New file.
6658 * lib/unitypes.h: New file.
6659 * MODULES.html.sh (func_all_modules): New section "Unicode string
6660 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
6661 this section. Add unitypes.
6663 2007-01-08 Bruno Haible <bruno@clisp.org>
6665 Avoid variable names that conflict with those from libtool.
6666 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
6667 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
6668 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
6669 library_names_spec to acl_library_names_spec, hardcode_* to
6671 Reported by Ralf Wildenhues.
6673 2007-01-08 Bruno Haible <bruno@clisp.org>
6675 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
6677 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
6679 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
6680 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
6682 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
6684 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
6685 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
6686 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
6687 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
6689 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
6691 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
6692 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
6694 * lib/gc-libgcrypt.c: Likewise.
6695 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
6696 * modules/gc-arctwo (configure.ac): Likewise.
6697 * modules/gc-des (configure.ac): Likewise.
6698 * modules/gc-hmac-md5 (configure.ac): Likewise.
6699 * modules/gc-hmac-sha1 (configure.ac): Likewise.
6700 * modules/gc-md2 (configure.ac): Likewise.
6701 * modules/gc-md4 (configure.ac): Likewise.
6702 * modules/gc-md5 (configure.ac): Likewise.
6703 * modules/gc-random (configure.ac): Likewise.
6704 * modules/gc-rijndael (configure.ac): Likewise.
6705 * modules/gc-sha1 (configure.ac): Likewise.
6707 2007-01-08 Bruno Haible <bruno@clisp.org>
6709 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
6711 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
6713 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
6715 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
6716 * modules/fcntl-safer (configure.ac): Likewise.
6717 * modules/fopen-safer (configure.ac): Likewise.
6718 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
6719 GNULIB_FWRITEERROR macro definition.
6721 2007-01-08 Bruno Haible <bruno@clisp.org>
6723 * m4/gnulib-common.m4: New file.
6724 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
6725 (func_get_filelist): Add m4/gnulib-common.m4.
6727 2007-01-08 Bruno Haible <bruno@clisp.org>
6729 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
6732 2007-01-08 Jim Meyering <jim@meyering.net>
6734 Use a more robust test for a "can't happen" condition.
6735 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
6736 narrowed the st_size value. Presuming the "can't happen" condition
6737 is true, that narrowing could conceivably convert an invalid st_size
6738 value into a valid one. Instead, use a change based on Matthew
6739 Woehlke's original patch.
6741 Slight readability improvement: use an assert-like macro
6742 in place of literal "abort ()" uses.
6743 * lib/fts.c (fts_assert): Define.
6744 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
6745 Use this macro instead of a bare 'abort'.
6747 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
6749 Don't worry about using IRIX 5.3's wctype.h broken definitions;
6750 simply work around them.
6751 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
6752 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
6753 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
6755 Don't bother to define as macros, since the standard doesn't require it.
6756 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
6757 longer worry about IRIX 5.3.
6758 (HAVE_WCTYPE_CTMP_BUG): Remove.
6760 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
6762 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
6763 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
6764 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6765 Problems reported by Georg Schwarz for IRIX 5.3.
6767 * gnulib-tool (autoconf_minversion): Take the maximum version number
6768 found, not the minimum. Problem reported by James Youngman.
6770 2007-01-03 Karl Berry <karl@gnu.org>
6772 * doc/error.texi: new file, explaining interaction with progname.
6773 * doc/gnulib.texi: include it. Update copyright.
6775 2007-01-03 Simon Josefsson <simon@josefsson.org>
6777 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
6778 AC_CANONICAL_HOST, to improve autobuild outputs.
6780 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
6781 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6783 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
6784 sockets, server sockets, and other file descriptors. Count errors
6785 to compute the return value. Reorder the code a bit to be easier
6786 to follow. Don't set event bits that were not requested (except
6787 POLLERR and POLLHUP).
6789 2007-01-01 Bruno Haible <bruno@clisp.org>
6791 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
6793 2007-01-03 Jim Meyering <jim@meyering.net>
6795 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
6797 2007-01-02 Bruno Haible <bruno@clisp.org>
6799 * modules/settime (Include): Require timespec.h.
6800 * modules/nanosleep (Include): Likewise.
6802 2007-01-01 Bruno Haible <bruno@clisp.org>
6804 * gnulib-tool (func_emit_copyright_notice): Bump year.
6805 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
6807 2007-01-01 Bruno Haible <bruno@clisp.org>
6809 Improve support for OpenBSD.
6810 * build-aux/config.rpath (libname_spec): Export.
6811 (library_names_spec): New variable. Export.
6812 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
6813 library_names_spec from the config.rpath output. Locate shared library
6814 through the name pattern in library_names_spec.
6816 2007-01-01 Eric Blake <ebb9@byu.net>
6818 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
6820 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
6822 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
6823 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
6824 assume the C locale, and avoid an "eval" that could cause trouble.
6825 Problem with SORT reported by Bob Proulx.
6827 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
6828 Define. Trivial patch from Henning Nielsen Lund, originally
6829 sent to bug-grep@gnu.org today.
6831 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
6833 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
6834 struct stat. Problem reported by Henning Nielsen Lund.
6835 * lib/acl.c: Include acl.h first, to check interface. Don't
6836 bother to include sys/types.h and sys/stat.h again.
6838 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
6840 Import the following change from libc; problem reported by
6843 2005-10-13 Ulrich Drepper <drepper@redhat.com>
6846 * lib/argp.h: Remove __NTH for __argp_usage inline function.
6848 2006-12-28 Jim Meyering <jim@meyering.net>
6850 * build-aux/announce-gen: Do not assume that the package
6851 builds any of tar.gz, tar.bz2, and .xdelta files.
6852 Suggestion from Simon Josefsson.
6854 2006-12-28 Simon Josefsson <simon@josefsson.org>
6856 * modules/announce-gen: New file.
6858 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
6860 * lib/mbchar.h: Just include <wctype.h>; the wctype module
6861 handles its gotchas now.
6862 * lib/mbswidth.c: Likewise.
6863 * lib/wcwidth.h: Likewise.
6864 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
6865 and iswcntrl; the wctype module does this stuff now.
6866 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6867 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6868 * modules/mbchar (Depends-on): Add wctype.
6869 * modules/mbswidth (Depends-on): Likewise.
6870 * modules/wcwidth (Depends-on): Likewise.
6872 2006-12-27 Eric Blake <ebb9@byu.net>
6874 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
6875 module uses more than what <wctype.h> is required to provide.
6877 2006-12-26 Eric Blake <ebb9@byu.net>
6879 * gnulib-tool (sed_extract_prog): Avoid space-tab.
6881 2006-12-26 Eric Blake <ebb9@byu.net>
6883 * modules/absolute-header: New module.
6884 * modules/fcntl (Depends-on): Depend on it.
6885 * modules/inttypes (Depends-on): Likewise.
6886 * modules/stdint (Depends-on): Likewise.
6887 * modules/sys_stat (Depends-on): Likewise.
6888 * modules/wctype (Depends-on): Likewise.
6889 * MODULES.html.sh (Support for building libraries and
6890 executables): Document it.
6892 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
6894 * gnulib-tool (SED): Remove, undoing previous change.
6895 The problem was that it broke coreutils on Solaris, because
6896 "sed --posix" leaked into a makefile.
6897 (sed): New alias, if 'alias' and GNU sed.
6899 2006-12-24 Jim Meyering <jim@meyering.net>
6901 Work around an fchownat bug in glibc-2.4:
6902 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
6903 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
6904 in spite of the -P option.
6905 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
6907 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
6908 * modules/openat (Files): Add lib/fchownat.c.
6909 * lib/openat.c (fchownat): Don't define here. Move to...
6910 * lib/fchownat.c: ...this new file.
6912 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
6914 Fix bug reported by Bruno Haible in
6915 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
6916 where quotearg.c didn't compile on Mac OS X 10.2 because it
6917 lacks <wchar.h> and wint_t.
6918 * lib/wctype_.h (__wctype_wint_t): New type.
6919 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
6920 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
6921 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
6922 Arg is now of type __wctype_wint_t, not wint_t.
6923 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
6924 substitute HAVE_WINT_T.
6925 * modules/wctype (Files): Add m4/wint_t.m4.
6926 (wctype.h): Substitute HAVE_WINT_T.
6928 2006-12-23 Bruno Haible <bruno@clisp.org>
6930 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
6932 2006-12-23 Bruno Haible <bruno@clisp.org>
6934 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
6936 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
6939 2006-12-22 Bruno Haible <bruno@clisp.org>
6941 * lib/copy-file.c: Include acl.h.
6942 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
6943 Close the file descriptors only after being done with copy_acl.
6944 * modules/copy-file (Depends-on): Add acl.
6946 2006-12-22 Bruno Haible <bruno@clisp.org>
6948 * gnulib-tool (SED): New variable.
6949 Use $SED instead of sed everywhere.
6951 2006-12-22 Bruno Haible <bruno@clisp.org>
6953 * modules/no-c++: New file.
6954 * m4/no-c++.m4: New file.
6955 * MODULES.html.sh (Support for building libraries and executables):
6958 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
6960 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
6961 Include <limits.h>, and use its INT_MAX to rewrite the
6962 j loop so that it does not overflow 'int'. Problem reported by
6964 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
6965 Play it safe by shifting left by 1 rather than multiplying by 2,
6966 as GCC is less likely to optimize this away when the value
6967 is signed (when it assumes overflow leads to undefined behavior).
6968 Also, don't assume time_t uses two's complement.
6970 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
6972 * MODULES.html.sh: New module wctype.
6973 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
6974 * lib/fnmatch.c: Don't bother to include <wchar.h> before
6975 <wctype.h>, since the new wctype module should fix this.
6976 * lib/quotearg.c: Include <wctype.h> unconditionally, since
6977 the wctype module should arrange for it.
6978 * lib/regex_internal.h: Likewise.
6979 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
6980 since the wctype module should handle this now.
6981 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
6982 * modules/fnmatch (Depends-on): Add wctype.
6983 * modules/quotearg (Depends-on): Likewise.
6984 * modules/regex (Depends-on): Likewise.
6986 2006-12-19 Bruno Haible <bruno@clisp.org>
6988 * lib/strdup.h [C++]: Wrap definitions in extern "C".
6989 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
6991 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6993 * modules/savewd (Depends-on): Fix dependency on fcntl.
6995 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
6997 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
6998 conforms to C99, rather than relying on the user's environment
6999 setting of STDINT_H.
7001 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
7002 and Eric Blake <ebb9@byu.net>
7004 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
7005 This is more consistent with the other defines here.
7006 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
7007 Port to z/OS. Problem reported by Paul Gilmartin.
7008 Change local vars to use gl_ prefix rather than ac_.
7009 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
7011 * modules/double-slash-root: New module.
7012 * modules/dirname (Files): Remove m4/double-slash-root.m4.
7013 (Depends-on): Add double-slash-root.
7014 * MODULES.html.sh (File system functions): Mention new module.
7016 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
7018 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
7019 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
7020 This is for the benefit of gzip, which doesn't do i18n.
7022 2006-12-12 Jim Meyering <jim@meyering.net>
7024 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
7025 Reported by Andreas Schwab <schwab@suse.de>.
7027 2006-12-12 Bruno Haible <bruno@clisp.org>
7029 Merge these changes.
7030 2006-09-05 Bruno Haible <bruno@clisp.org>
7031 * lib/iconvme.c (iconv_string): No need to save and restore errno when
7032 iconv_alloc succeeded.
7033 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
7034 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
7035 test for " && dest " at the end - dest is always != NULL there. Call
7036 iconv with 4xNULL arguments initially, to reset the state. Call iconv
7037 with 2xNULL arguments, also to flush the state storage. Handle the
7038 IRIX iconv behaviour. Realloc the final result, to throw away unused
7041 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
7043 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
7044 and fchmodat unconditionally, since glibc 2.4 has them.
7045 Problem reported by Arkadiusz Miskiewicz.
7047 2006-12-10 Bruno Haible <bruno@clisp.org>
7049 * gnulib-tool (func_import): Show the include files only for those
7050 modules that are copied and specified.
7051 Reported by Karl Berry.
7053 2006-12-08 Jim Meyering <jim@meyering.net>
7055 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
7056 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
7058 * build-aux/announce-gen: Add two new options, both optional:
7059 --bootstrap-tools=TOOL_LIST
7060 a comma-separated list of tools, e.g.,
7061 autoconf,automake,bison,gnulib
7062 --gnulib-snapshot-date=DATE
7063 if gnulib is in the bootstrap tool list,
7064 then report this as the snapshot date.
7065 If not specified, use the current date/time.
7066 If you specify a date here, be sure it's UTC.
7068 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7070 * tests/test-argp-2.sh: Fix test to match actual output.
7071 (func_compare): Fix sed script to be portable.
7073 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
7075 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
7076 workaround for this case. It is not autoconfigured now; offhand
7077 it's hard to see how to autoconfigure it.
7079 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
7081 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
7082 a directory that is about to be chowned. Such a directory's
7083 initial file permissions should permit the owner only and this
7084 should not be changed until after the chown, since the group and
7085 other bits would be incorrect if they granted permission before
7088 Fix porting problem for iswctype reported by Georg Schwarz in:
7089 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
7090 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
7091 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
7092 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
7093 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7095 2006-12-03 Jim Meyering <jim@meyering.net>
7097 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
7098 p->fts_statp may not yet be defined.
7099 (fts_read): Instead, set it in the caller, once p->fts_statp is
7100 sure to be defined, and corresponds to a top-level directory.
7101 This bug made du -x fail. Here's the coreutils test case:
7102 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
7103 Reported by Mike Frysinger.
7105 2006-12-01 Jim Meyering <jim@meyering.net>
7107 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
7108 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
7109 Reported by Simon Josefsson.
7111 2006-11-30 Jim Meyering <jim@meyering.net>
7113 * m4/warning.m4: Use the all-permissive copyright notice
7114 recommended by RMS (rather than LGPL).
7115 * m4/vararrays.m4: Likewise.
7116 * m4/flexmember.m4: Likewise.
7118 2006-11-29 Bruno Haible <bruno@clisp.org>
7120 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7121 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
7123 Reported by Simon Josefsson <simon@josefsson.org>.
7125 2006-11-28 James Youngman <jay@gnu.org>
7127 * README: Advise users that they might find the bug-gnulib@gnu.org
7128 and autotools-announce@gnu.org mailing lists useful.
7130 2006-11-28 Bruno Haible <bruno@clisp.org>
7132 * m4/ptrdiff_max.m4: Remove file.
7134 2006-11-21 Bruno Haible <bruno@clisp.org>
7136 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
7138 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7139 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
7141 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7142 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
7144 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7146 2006-11-28 Jim Meyering <jim@meyering.net>
7148 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
7149 warning from "gcc -Wshadow" about shadowing the builtin.
7151 2006-11-27 Bruno Haible <bruno@clisp.org>
7153 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
7155 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7157 2006-11-27 Bruno Haible <bruno@clisp.org>
7158 Paul Eggert <eggert@cs.ucla.edu>
7160 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
7162 2006-11-26 Bruno Haible <bruno@clisp.org>
7164 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7167 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
7168 Bruno Haible <bruno@clisp.org>
7170 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
7171 if compiling with "gcc -ansi".
7173 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
7175 Fix some incompatibilities with gcc -ansi -pedantic.
7176 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
7177 if compiling pedantically with GCC, unless it's C99 or later.
7178 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
7179 it mishandles gcc -ansi -pedantic as well.
7180 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
7182 * lib/regexec.c (check_node_accept_bytes): Don't use auto
7183 initializers for struct if -pedantic, unless it's C99 or later.
7185 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
7187 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
7188 Don't close an fd more than once. Identical atimes indicate
7189 success, not failure.
7191 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
7193 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
7195 2006-11-23 Jim Meyering <jim@meyering.net>
7197 * build-aux/announce-gen: New file. From coreutils.
7199 2006-11-22 Jim Meyering <jim@meyering.net>
7201 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
7202 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
7203 (fts_read): Use a temporary to narrow the overused st_size member
7204 before using it in a switch statement. Reported by Matthew Woehlke.
7206 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
7207 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7209 2006-11-20 Bruno Haible <bruno@clisp.org>
7211 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
7212 changequote instead of pairs of brackets.
7213 Reported by Andreas Schwab <schwab@suse.de>.
7215 2006-11-21 Jim Meyering <jim@meyering.net>
7217 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
7218 so as to remain compatible with older compilers.
7219 Patch from Michael Deutschmann.
7221 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
7223 * MODULES.html.sh (File system functions): Add openat.
7225 * lib/openat.h (rpl_fstatat): New macro, if
7226 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
7227 (fstatat): Define to rpl_fstatat under the same conditions,
7228 unless COMPILING_FSTATAT.
7229 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
7230 seems to have the bug.
7231 * lib/fstatat.c: New file.
7232 * modules/openat (Files): Add it.
7234 2006-11-20 Bruno Haible <bruno@clisp.org>
7236 * Makefile: New file.
7238 2006-11-20 Jim Meyering <jim@meyering.net>
7240 The beginnings of syntax-related checks for gnulib.
7241 * lib/Makefile: New file.
7242 * lib/t-idcache: New script. Ensure that the two halves of
7243 idcache.c stay in sync.
7245 * lib/idcache.c: Adjust comments in user- and group- portions to
7246 be more accurate, and to be consistent with one another.
7248 2006-11-20 Jim Meyering <jim@meyering.net>
7250 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
7251 continue using the flexible array member (thus, this module performs
7252 half as many malloc calls), with the addition that...
7253 (getgroup, getuser): Consistently record a non-match via an empty
7254 "name" string, and map an empty string match to a NULL return value.
7255 * modules/idcache (Depends-on): Re-add flexmember.
7257 * lib/idcache.c (getuser): Remove all uses of the register keyword.
7258 (getuidbyname, getgroup, getgidbyname): Likewise.
7260 Use cleaner syntax: NULL rather than 0.
7261 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
7263 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
7265 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
7266 It mishandled the case where the group was missing.
7267 Problem reported by Greg Schafer.
7268 * modules/idcache: Likewise.
7270 2006-11-18 Jim Meyering <jim@meyering.net>
7272 * check-module (%exempt_header): Add exception for some
7273 conditionally-included headers.
7275 * modules/i-ring (Depends-on): Add verify.
7276 (License): Change to LGPL.
7278 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
7280 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
7281 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
7282 and inttostr.h. Use snprintf rather than uinttostr, so that
7283 LGPLed code doesn't depend on GPLed.
7285 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
7287 * modules/inline (License): Change from GPL to LGPL.
7289 2006-11-17 Jim Meyering <jim@meyering.net>
7291 * modules/d-type (License): Switch to LGPL.
7293 2006-11-15 Bruno Haible <bruno@clisp.org>
7295 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
7297 2006-11-15 Eric Blake <ebb9@byu.net>
7299 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
7300 the module dependency.
7302 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7303 Bruno Haible <bruno@clisp.org>
7305 * gnulib-tool (func_create_testdir): Add license consistency check.
7307 2006-11-15 Eric Blake <ebb9@byu.net>
7309 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
7310 random "(cached)" in configure output.
7312 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7314 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
7315 test for conforming inttypes.h is both announced and cached.
7317 * MODULES.html.sh (seen_modules, seen_files): New variables.
7318 (func_module): Rewrite to use a few less gnulib-tool and sed
7319 invocations. Avoid a couple of quadratic algorithms for ...
7320 (missed_modules, missed_files): ... these, with ...
7321 (func_append, func_tmpdir): ... these new functions, from
7322 gnulib-tool. Analogously, install traps for cleanup.
7324 * tests/test-gc.c (main): Remove unused variables.
7325 * tests/test-read-file.c: Include stdlib.h, for 'free'.
7327 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
7329 * modules/inttostr (License): Change to LGPL.
7331 2006-11-14 Eric Blake <ebb9@byu.net>
7333 * modules/tempname (License): Change to LGPL.
7335 2006-11-14 Eric Blake <ebb9@byu.net>
7337 * doc/functions.texi (Function Portability): *printf functions on
7338 Cygwin now understand all POSIX size specifiers.
7340 2006-11-14 Bruno Haible <bruno@clisp.org>
7342 * modules/c-ctype (License): Change to LGPL.
7344 2006-11-12 Bruno Haible <bruno@clisp.org>
7346 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7347 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
7348 for GNOME libraries, for which the include files are installed in
7349 subdirectories of $prefix/include.
7351 2006-11-12 Bruno Haible <bruno@clisp.org>
7353 * m4/lib-link.m4: Require at least autoconf-2.54.
7354 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
7355 name to underscores for the --with option.
7357 2006-11-13 Bruno Haible <bruno@clisp.org>
7359 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
7360 the tests directory.
7361 Reported by Ralf Wildenhues.
7363 2006-11-13 Bruno Haible <bruno@clisp.org>
7365 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
7366 (func_emit_initmacro_end): Undo the override here.
7367 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
7368 Works around the famous automake error in coreutils.
7370 2006-11-13 Eric Blake <ebb9@byu.net>
7372 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
7373 element, not its node.
7375 2006-11-12 Bruno Haible <bruno@clisp.org>
7377 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
7378 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
7380 2006-11-12 Bruno Haible <bruno@clisp.org>
7382 * gnulib-tool: New option --local-symlink.
7383 (func_usage): Document it.
7384 (lsymbolic): New variable.
7385 (func_import, func_create_testdir): If --symlink was not specified,
7386 test whether --local-symlink was specified and the file comes from
7387 the local_gnulib_dir.
7389 2006-11-12 Bruno Haible <bruno@clisp.org>
7391 * gnulib-tool (func_ln): New function.
7392 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
7394 2006-11-12 Bruno Haible <bruno@clisp.org>
7396 Finish support for source files in subdirectories.
7397 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
7398 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
7400 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
7402 2006-11-12 Bruno Haible <bruno@clisp.org>
7404 * gnulib-tool (func_get_automake_snippet): Synthesize also an
7405 EXTRA_lib_SOURCES augmentation.
7406 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
7408 2006-11-12 Jim Meyering <jim@meyering.net>
7410 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
7411 file descriptors. This also averts a failure on systems with
7412 native openat support when a traversed directory lacks "x" access.
7413 * lib/fts_.h: Include "i-ring.h"
7414 (struct FTS) [fts_fd_ring]: New member.
7415 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
7416 (FCHDIR): Add parentheses.
7417 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
7418 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
7419 When descending, rather than simply closing the previous
7420 fts_cwd_fd value, push that file descriptor onto the ring.
7421 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
7422 (fts_open): Initialize the new fd_ring member.
7423 (fts_close): Clear the ring.
7424 (fts_safe_changedir): When possible, use our new fd_ring to skip
7425 the diropen and fstat and dev/ino comparison that would normally
7426 accompany a virtual `chdir ("..")'.
7428 * modules/fts (Depends-on): Add i-ring.
7429 * modules/i-ring: New module.
7430 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
7431 * m4/i-ring.m4: New file.
7433 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7435 * gnulib-tool (func_create_testdir): Fix replacement of
7436 `build-aux' in configure.ac. Run autotools in gltests
7438 (func_create_testdir, func_create_megatestdir, test): There is
7439 no need for '--force' in most autotool invocations in a new
7440 tree. Actually fail the whole test if any of the tools, or the
7441 configure or make stages fail.
7444 * build-aux/gnupload: Revert last change. Add pointer to upload
7445 instructions of the GNU Maintenance Instructions.
7446 Suggestion by Karl Berry.
7448 2006-11-10 Jim Meyering <jim@meyering.net>
7450 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
7452 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
7454 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
7455 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
7456 (bind_textdomain_codeset) [! ENABLE_NLS]:
7457 Evaluate all the arguments. That way, callers get compatible behavior
7458 if the arguments have side effects. Also, it avoids some GCC
7459 diagnostics in some cases; Joel E. Denny reported problems when Bison
7460 was configured with --enable-gcc-warnigs.
7462 2006-11-10 Jim Meyering <jim@meyering.net>
7464 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
7465 relevant options in CFLAGS (like -O, -fno-inline) are taken into
7468 2006-11-10 Jim Meyering <jim@meyering.net>
7470 * modules/inline: New file/module.
7471 * modules/xalloc (Files): Remove m4/inline.m4.
7472 (Depends-on): Add inline, instead.
7473 * modules/oset: Likewise.
7474 * modules/list: Likewise.
7476 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
7478 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
7479 Problem reported by Matthew Woehlke.
7481 2006-11-09 Bruno Haible <bruno@clisp.org>
7483 * lib/tempname.c (gen_tempname): Remove variant that invokes
7485 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
7488 2006-11-08 Bruno Haible <bruno@clisp.org>
7490 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
7491 to 'yes' instead of 'cross-compiling'.
7493 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
7495 * lib/quotearg.h (quotearg_free): New decl.
7496 * lib/quotearg.c (quotearg_free): New function.
7497 (slot0, nslots, slotvec0, slotvec):
7498 Now file-scope so that quotearg_free can get at them.
7500 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7503 * build-aux/gnupload: Add missing 'gnu' to example URL.
7504 Report by Karl Berry.
7506 2006-11-08 Bruno Haible <bruno@clisp.org>
7508 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
7509 Suggested by Paul Eggert.
7511 2006-11-08 Jim Meyering <jim@meyering.net>
7513 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
7514 It's already included if !_LIBC.
7515 (fts_safe_changedir): Add a comment.
7517 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
7519 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
7520 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
7523 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
7524 definitions up, to avoid colliding with change below.
7525 (static_inline) [HAVE_INLINE]: New macro.
7526 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
7527 Provide extern decls when !HAVE_INLINE. Do not define unless
7528 static_inline is defined, either by us or by xmalloc.c. Use
7529 static_inline rather than static inline.
7530 (XCALLOC): Optimize sizeof(T) = 1 case.
7531 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
7533 2006-11-07 Bruno Haible <bruno@clisp.org>
7535 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
7536 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
7538 * modules/xalloc (Files): Add m4/inline.m4.
7540 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7543 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
7544 (Miscellanous Notes): ...from this.
7546 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
7548 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7549 Mention that offsetof should be used instead of sizeof.
7552 2006-11-07 Bruno Haible <bruno@clisp.org>
7554 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
7556 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
7558 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
7559 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
7560 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
7561 (gl_tree_add_before, gl_tree_add_after):
7562 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
7563 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
7564 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
7565 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
7566 (gl_linked_add_after, gl_linked_add_at): Likewise.
7567 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
7568 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
7569 (gl_tree_add_before, gl_tree_add_after): Likewise.
7570 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
7571 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
7572 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7574 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7576 * lib/gl_oset.h: Use C comment style, not C++ comment style.
7578 2006-11-06 Bruno Haible <bruno@clisp.org>
7580 * m4/inline.m4: New file.
7581 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
7582 * modules/list (Files): Add m4/inline.m4.
7583 * modules/oset (Files): Likewise.
7585 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
7587 * lib/idcache.c: Include <stddef.h>, for offsetof.
7588 (struct userid.name): Change from char * to a flexible array member.
7590 * modules/idcache (Depends-on): Add flexmember.
7592 * MODULES.html.sh (Core language properties): New module flexmember.
7593 * modules/flexmember, m4/flexmember.m4: New files.
7595 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
7596 inline functions that are identical with the old xnmalloc_inline,
7597 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
7598 that we can avoid some unnecessary integer multiplications and
7599 divisions in the common case where the element size is known at
7601 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
7603 (xnboundedmalloc): Remove.
7604 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
7605 arguments, for consistency with rest of this header.
7606 (xcharalloc): Rewrite using XNMALLOC.
7607 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
7608 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
7609 versions have been moved to lib/xalloc.h and renamed to be the
7610 non-*_inline versions.
7611 (xmalloc, xrealloc): Implement without reference to the xnmalloc
7612 and xnrealloc functions, since those functions are now inline and
7614 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
7615 renaming described above.
7616 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
7617 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
7618 captures the dependency in AC_C_INLINE.
7620 New module canonicalize-lgpl, proposed by Charles Wilson in
7621 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
7622 with a few small changes afterwards.
7623 * MODULES.html.sh (File system functions): New module
7625 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
7626 and canonicalize_file_name.
7627 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
7628 * modules/canonicalize-lgpl: New files.
7630 2006-11-05 Bruno Haible <bruno@clisp.org>
7632 * gnulib-tool (func_import, func_create_testdir): Create directories
7633 also for files in subdirectories of lib/.
7635 2006-11-05 Bruno Haible <bruno@clisp.org>
7637 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
7640 2006-11-03 Bruno Haible <bruno@clisp.org>
7642 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
7643 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
7644 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
7645 (xnboundedmalloc): New inline function.
7646 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
7647 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
7649 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
7651 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
7652 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
7653 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
7655 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
7656 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
7658 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
7659 gl_tree_add_after): Use XMALLOC instead of xmalloc.
7660 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
7662 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
7663 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
7664 gl_tree_add_after): Use XMALLOC instead of xmalloc.
7665 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
7666 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
7667 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
7668 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
7670 2006-11-03 Bruno Haible <bruno@clisp.org>
7672 * lib/c-ctype.h [C++]: Define functions without name mangling.
7673 * lib/fwriteerror.h [C++]: Likewise.
7674 * lib/gcd.h [C++]: Likewise.
7675 * lib/linebreak.h [C++]: Likewise.
7677 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
7679 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
7680 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
7681 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
7682 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
7683 Check for functions and headers just once.
7684 Check for declaration of canonicalize_file_name.
7685 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
7687 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
7689 * gnulib-tool (func_import): Fix typo in actioncmd.
7691 2006-11-02 Bruno Haible <bruno@clisp.org>
7693 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
7694 newline sequence in the Makefile.am snippet as a space, like "make"
7696 Reported by Roger Persson <perrog@gmail.com>.
7698 2006-11-01 Bruno Haible <bruno@clisp.org>
7700 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
7701 already declared in <string.h>.
7702 * lib/strcase.h (strncasecmp): Don't declare it if yes.
7704 2006-11-01 Bruno Haible <bruno@clisp.org>
7706 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
7707 * lib/strcase.h: Include <string.h>.
7708 (strcasecmp): Define to rpl_strcasecmp here.
7710 2006-11-01 Bruno Haible <bruno@clisp.org>
7712 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
7714 2006-11-01 Eric Blake <ebb9@byu.net>
7716 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
7718 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
7720 2006-10-29 Bruno Haible <bruno@clisp.org>
7722 Make it compile in C++ mode.
7723 * lib/full-write.c (full_rw): Add a cast.
7725 2006-11-01 Bruno Haible <bruno@clisp.org>
7727 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
7729 Reported by Roger Persson <perrog@gmail.com>.
7731 2006-11-01 Eric Blake <ebb9@byu.net>
7733 * lib/getopt_.h: Fix comments.
7735 2006-10-31 Eric Blake <ebb9@byu.net>
7737 * modules/tmpdir (Depends-on): Add sys_stat.
7738 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
7739 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
7740 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
7741 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
7744 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
7746 Avoid some C++ diagnostics reported by Bruno Haible.
7747 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
7749 (quotearg_alloc): Use xcharalloc rather than xmalloc.
7750 (struct slotvec): Move to top level.
7751 (quotearg_n_options): Rewrite to avoid xmalloc.
7752 * lib/xalloc.h (xcharalloc): New function.
7753 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
7754 [defined __cplusplus]: Add function template that provides result
7755 type propagation. This part of the change is from Bruno Haible.
7757 2006-10-29 Bruno Haible <bruno@clisp.org>
7759 Make it compile in C++ mode.
7760 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
7761 * lib/strnlen1.c (strnlen1): Cast memchr result.
7762 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
7763 * lib/clean-temp.c (string_equals, string_hash): Add casts.
7764 (create_temp_dir): Rename local variable 'template'.
7765 (compile_csharp_using_sscli): Add cast.
7766 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
7767 * lib/findprog.c (find_in_path): Likewise.
7768 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
7769 * lib/wait-process.c (register_slave_subprocess): Likewise.
7771 2006-10-22 Bruno Haible <bruno@clisp.org>
7773 * modules/tsearch: New file.
7774 * lib/tsearch.h: New file.
7775 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
7776 * m4/tsearch.m4: New file.
7777 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
7779 2006-10-29 Eric Blake <ebb9@byu.net>
7781 * lib/arcfour.c: Assume config.h.
7782 * lib/arctwo.c: Likewise.
7783 * lib/base64.c: Likewise.
7784 * lib/check-version.c: Likewise.
7785 * lib/crc.c: Likewise.
7786 * lib/des.c: Likewise.
7787 * lib/gc-gnulib.c: Likewise.
7788 * lib/gc-libgcrypt.c: Likewise.
7789 * lib/gc-pbkdf2-sha1.c: Likewise.
7790 * lib/getaddrinfo.c: Likewise.
7791 * lib/getdelim.c: Likewise.
7792 * lib/getline.c: Likewise.
7793 * lib/hmac-md5.c: Likewise.
7794 * lib/hmac-sha1.c: Likewise.
7795 * lib/iconvme.c: Likewise.
7796 * lib/md2.c: Likewise.
7797 * lib/md4.c: Likewise.
7798 * lib/memxor.c: Likewise.
7799 * lib/read-file.c: Likewise.
7800 * lib/readline.c: Likewise.
7801 * lib/rijndael-alg-fst.c: Likewise.
7802 * lib/rijndael-api-fst.c: Likewise.
7803 * lib/xgetdomainname.c: Likewise.
7805 2006-10-28 Eric Blake <ebb9@byu.net>
7807 * lib/xstrndup.c: Assume config.h.
7809 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
7811 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
7812 stat-macros.h is now for our own macros, whereas stat_h is for
7813 macros in the <sys/stat.h> name space.
7814 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
7815 (STAT_MACROS_H): Remove.
7816 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
7817 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
7818 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
7819 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
7820 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
7821 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
7822 Move these macros to ...
7823 * lib/stat_.h: here. Don't include stat-macros.h.
7824 * lib/canonicalize.c: Don't include stat-macros.h.
7825 * lib/chown.c: Likewise.
7826 * lib/euidaccess.c: Likewise.
7827 * lib/file-type.c: Likewise.
7828 * lib/filemode.c: Likewise.
7829 * lib/glob.c: Likewise.
7830 * lib/isapipe.c: Likewise.
7831 * lib/lchown.c: Likewise.
7832 * lib/lstat.c: Likewise.
7833 * lib/mkdir-p.c: Likewise.
7834 * lib/rmdir.c: Likewise.
7835 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
7836 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
7837 unless mkdir isn't declared, to speed up 'configure'.
7838 Always create sys/stat.h, since it's unlikely any real sys/stat.h
7839 would define all the S_* symbols.
7840 * modules/canonicalize (Depends-on):
7841 Depend on sys_stat, not stat-macros.
7842 * modules/chown: Likewise.
7843 * modules/euidaccess: Likewise.
7844 * modules/filemode: Likewise.
7845 * modules/file-type: Likewise.
7846 * modules/glob: Likewise.
7847 * modules/isapipe: Likewise.
7848 * modules/lchown: Likewise.
7849 * modules/lstat: Likewise.
7850 * modules/mkancesdirs: Likewise.
7851 * modules/rmdir: Likewise.
7852 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
7853 * modules/modechange: Likewise.
7854 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
7855 (configure.ac): Remove gl_STAT_MACROS.
7856 * modules/sys_stat (Depends-on): Remove stat-macros.
7858 2006-10-27 Bruno Haible <bruno@clisp.org>
7860 * m4/signed.m4: Remove file.
7861 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
7863 * modules/vasnprintf (Files): Remove m4/signed.m4.
7865 2006-10-27 Bruno Haible <bruno@clisp.org>
7867 Update to GNU gettext 0.16.
7868 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
7869 m4/inttypes-h.m4, m4/signed.m4.
7870 * m4/gettext.m4: Update to GNU gettext 0.16.
7871 * m4/intl.m4: New file, from GNU gettext.
7872 * m4/intldir.m4: New file, from GNU gettext.
7873 * config/srclist.txt: Update
7875 2006-10-27 Eric Blake <ebb9@byu.net>
7877 * MODULES.html.sh: Document tempname.
7878 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
7880 (Files): Move lib/tempname.c...
7881 * modules/tempname: ...to this new module.
7882 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
7883 (gl_PREREQ_TEMPNAME): Move...
7884 * m4/tempname.m4: ...to this new file.
7885 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
7886 * modules/sys_stat (Depends-on): Add stat-macros.
7887 * lib/stat_.h (includes): Pick up stat macros.
7888 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
7889 if stat macros are broken.
7890 * lib/tempname.c (includes): No need to include "stat-macros.h".
7891 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
7892 (direxists, __path_search) [!_LIBC]: Don't compile these in
7893 gnulib; the tmpdir module covers that.
7894 * lib/tempname.h: New file.
7896 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
7898 * COPYING: Explain how gnulib-tool converts licence headers.
7899 Almost all wording by Eric Blake.
7901 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
7903 * lib/mbchar.h (is_basic_table): Make read-only.
7904 * lib/mbchar.c (is_basic_table): Likewise.
7905 Reported by John Darrington.
7907 2006-10-25 Bruno Haible <bruno@clisp.org>
7909 * lib/progname.h (set_program_name): Undefine before defining.
7911 2006-10-25 Bruno Haible <bruno@clisp.org>
7913 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
7914 false for non-gcc C++ compilers.
7915 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7917 2006-10-24 Bruno Haible <bruno@clisp.org>
7919 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
7920 iconv implementations like Irix iconv.
7922 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
7924 * modules/vararrays: New file.
7925 * m4/vararrays.m4: New file, taken from diffutils.
7926 * MODULES.html.sh: New module vararrays.
7928 2006-10-24 Karl Berry <karl@gnu.org>
7930 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
7931 Don't call GNU Unix.
7933 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7935 * users.txt: Add Libtool.
7939 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
7941 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
7942 to gnulib's policy of including config.h unconditionally.
7944 2006-10-24 Bruno Haible <bruno@clisp.org>
7946 * modules/wcwidth (Files): Add m4/wint_t.m4.
7947 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
7948 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
7950 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
7952 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
7953 to pacify GCC with some -W flags enabled. Problem reported by
7956 2006-10-24 Jim Meyering <jim@meyering.net>
7958 * MODULES.html.sh: Remove uinttostr. It's not a module.
7959 Reported by Karl Berry.
7961 2006-10-23 Bruno Haible <bruno@clisp.org>
7963 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
7965 2006-10-24 Bruno Haible <bruno@clisp.org>
7967 * lib/gl_list.h: Use C comment style, not C++ comment style.
7969 2006-10-23 Eric Blake <ebb9@byu.net>
7971 * lib/getaddrinfo.c (includes): Add missing include.
7973 2006-10-23 Bruno Haible <bruno@clisp.org>
7974 Paul Eggert <eggert@cs.ucla.edu>
7976 Ability to rename obstack_free.
7977 * lib/obstack.h (__obstack_free): New macro. Declare instead of
7979 (obstack_free): Invoke the __obstack_free macro.
7980 * lib/obstack.c (obstack_free): Use __obstack_free macro.
7982 2006-10-23 Bruno Haible <bruno@clisp.org>
7983 Paul Eggert <eggert@cs.ucla.edu>
7985 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
7986 __argc, __argv from the declaration. (They are defined as macros on
7989 2006-10-22 Bruno Haible <bruno@clisp.org>
7991 * doc/gnulib-intro.texi: New file.
7992 * doc/gnulib.texi: Include it.
7994 2006-10-21 Bruno Haible <bruno@clisp.org>
7996 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
7997 "Introduction", "Miscellanous Notes", "Particular Modules".
7999 2006-10-21 Bruno Haible <bruno@clisp.org>
8001 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8002 Change mostlyclean-local rule to avoid sh syntax error from bash
8003 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
8005 2006-10-23 Jim Meyering <jim@meyering.net>
8007 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
8008 in place of snprintf.
8010 * modules/inttostr (Files): Add lib/uinttostr.c.
8011 * lib/uinttostr.c (inttostr): New file/function.
8012 * lib/inttostr.h (uinttostr): Declare.
8013 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
8014 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8016 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
8018 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
8020 * lib/canonicalize.c (ELOOP): Define if not already defined.
8021 Problem reported by Bruno Haible in
8022 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
8024 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
8026 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
8027 Problem reported by Perry Smith and Ville Laurikari.
8029 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
8032 2006-10-19 Bruno Haible <bruno@clisp.org>
8034 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
8037 2006-10-19 Bruno Haible <bruno@clisp.org>
8039 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
8042 2006-10-19 Bruno Haible <bruno@clisp.org>
8044 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
8046 2006-10-19 Bruno Haible <bruno@clisp.org>
8048 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
8051 2006-10-19 Bruno Haible <bruno@clisp.org>
8053 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
8056 2006-10-19 Bruno Haible <bruno@clisp.org>
8058 * gnulib-tool (func_create_testdir): Don't include ftruncate and
8059 mountlist by default.
8061 2006-10-16 Bruno Haible <bruno@clisp.org>
8063 * lib/c-strstr.c: Include c-strstr.h.
8065 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
8067 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
8070 2006-10-18 Bruno Haible <bruno@clisp.org>
8072 * lib/lock.h [C++]: Wrap definitions in extern "C".
8074 2006-10-18 Bruno Haible <bruno@clisp.org>
8076 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
8079 2006-10-18 Bruno Haible <bruno@clisp.org>
8081 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
8083 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
8085 * lib/xstrtol.h: Include gettext.h.
8086 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
8087 Problem reported by Eric Blake.
8088 * modules/xstrtol (Depends-on): Add gettext-h.
8090 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
8092 * lib/strftime.c (advance): New macro.
8093 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
8094 incomplete type, so you can't add 0 to it. Problem and patch
8095 reported by Eelco Dolstra for dietlibc.
8097 2006-10-18 Jim Meyering <jim@meyering.net>
8099 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
8100 type for a local, and rename it: s/up/user_proc/.
8102 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
8104 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
8105 READ_UTMP_USER_PROCESS.
8106 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
8108 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
8110 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
8111 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
8113 2006-10-17 Eric Blake <ebb9@byu.net>
8115 * lib/sigprocmask.c (sigprocmask): Fix typo.
8117 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
8119 * modules/clean-temp (Makefile.am): Don't add to make output...
8120 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
8123 2006-10-17 Bruno Haible <bruno@clisp.org>
8125 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
8126 differently if DEFAULT_TEXT_DOMAIN is set.
8128 2006-10-16 Bruno Haible <bruno@clisp.org>
8130 * lib/clean-temp.c: Include fwriteerror.h.
8132 2006-10-16 Bruno Haible <bruno@clisp.org>
8134 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
8136 2006-10-16 Bruno Haible <bruno@clisp.org>
8138 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
8139 * lib/sigprocmask.h: Include <sys/types.h>.
8140 (sigset_t): Use the system's definition if present.
8142 2006-10-17 Eric Blake <ebb9@byu.net>
8144 * lib/xvasprintf.c (includes): Assume config.h.
8145 * lib/xasprintf.c (includes): Likewise.
8147 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
8149 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
8150 at least as wide as intmax_t.
8152 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
8154 (Imported from Automake.)
8155 * build-aux/gnupload: Update to version 1.1 of directive file.
8157 2006-10-16 Eric Blake <ebb9@byu.net>
8159 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
8160 match Automake 1.10a.
8162 2006-10-14 Bruno Haible <bruno@clisp.org>
8164 * modules/sigprocmask: New file.
8165 * lib/sigprocmask.h: New file.
8166 * lib/sigprocmask.c: New file.
8167 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
8168 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
8169 request sigprocmask.o.
8170 (gl_PREREQ_SIGPROCMASK): New macro.
8171 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
8172 (Depends-on): Add sigprocmask.
8173 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
8174 gt_SIGNALBLOCKING. Test for 'raise' only once.
8175 * lib/fatal-signal.c: Include sigprocmask.h.
8176 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
8177 unblock_fatal_signals): Define always.
8178 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8181 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
8184 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
8185 which incorrectly sets the mode of an existing destination
8186 directory. In some cases the unpatched install-sh could do the
8187 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
8188 system. We hope this is rare in practice, but it's clearly worth
8189 fixing. Problem reported by Alex Unleashed in
8190 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
8191 Also, don't bother to check for -m bugs unless we're using -m;
8192 suggested by Stepan Kasal.
8194 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8197 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
8198 `-c' flag, so they appear at the same position as in %FASTDEP%
8199 mode in depend2.am. Fixes build failure for FreeBSD's c89,
8200 which ignores unknown options only after the first non-option.
8201 Bug report against M4 by Nelson H. F. Beebe.
8203 2006-10-13 Jim Meyering <jim@meyering.net>
8205 Fix a bug in yesterday's change.
8206 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
8207 p->fts_statp->st_dev would be used uninitialized.
8208 Ensures that we always call fts_stat on the very first entry.
8209 Miklos Szeredi reported that find -xdev stopped working.
8211 2006-10-12 Bruno Haible <bruno@clisp.org>
8213 * gnulib-tool (func_get_automake_snippet): Append an automatically
8214 computed EXTRA_DIST augmentation.
8215 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
8216 * modules/alloca-opt (Makefile.am): Likewise.
8217 * modules/allocsa (Makefile.am): Likewise.
8218 * modules/arcfour (Makefile.am): Likewise.
8219 * modules/arctwo (Makefile.am): Likewise.
8220 * modules/argmatch (Makefile.am): Likewise.
8221 * modules/argz (Makefile.am): Likewise.
8222 * modules/atexit (Makefile.am): Likewise.
8223 * modules/backupfile (Makefile.am): Likewise.
8224 * modules/byteswap (Makefile.am): Likewise.
8225 * modules/c-strtod (Makefile.am): Likewise.
8226 * modules/c-strtold (Makefile.am): Likewise.
8227 * modules/calloc (Makefile.am): Likewise.
8228 * modules/canon-host (Makefile.am): Likewise.
8229 * modules/canonicalize (Makefile.am): Likewise.
8230 * modules/chdir-long (Makefile.am): Likewise.
8231 * modules/chdir-safer (Makefile.am): Likewise.
8232 * modules/check-version (Makefile.am): Likewise.
8233 * modules/chown (Makefile.am): Likewise.
8234 * modules/cloexec (Makefile.am): Likewise.
8235 * modules/close-stream (Makefile.am): Likewise.
8236 * modules/closeout (Makefile.am): Likewise.
8237 * modules/crc (Makefile.am): Likewise.
8238 * modules/csharpexec (Makefile.am): Likewise.
8239 * modules/cycle-check (Makefile.am): Likewise.
8240 * modules/des (Makefile.am): Likewise.
8241 * modules/dev-ino (Makefile.am): Likewise.
8242 * modules/dirfd (Makefile.am): Likewise.
8243 * modules/dirname (Makefile.am): Likewise.
8244 * modules/dup2 (Makefile.am): Likewise.
8245 * modules/eealloc (Makefile.am): Likewise.
8246 * modules/error (Makefile.am): Likewise.
8247 * modules/euidaccess (Makefile.am): Likewise.
8248 * modules/exclude (Makefile.am): Likewise.
8249 * modules/exitfail (Makefile.am): Likewise.
8250 * modules/fcntl-safer (Makefile.am): Likewise.
8251 * modules/fcntl (Makefile.am): Likewise.
8252 * modules/file-type (Makefile.am): Likewise.
8253 * modules/fileblocks (Makefile.am): Likewise.
8254 * modules/filemode (Makefile.am): Likewise.
8255 * modules/filenamecat (Makefile.am): Likewise.
8256 * modules/fnmatch (Makefile.am): Likewise.
8257 * modules/fopen-safer (Makefile.am): Likewise.
8258 * modules/fpending (Makefile.am): Likewise.
8259 * modules/fprintftime (Makefile.am): Likewise.
8260 * modules/free (Makefile.am): Likewise.
8261 * modules/fsusage (Makefile.am): Likewise.
8262 * modules/ftruncate (Makefile.am): Likewise.
8263 * modules/fts (Makefile.am): Likewise.
8264 * modules/gc-arcfour (Makefile.am): Likewise.
8265 * modules/gc-des (Makefile.am): Likewise.
8266 * modules/gc-hmac-md5 (Makefile.am): Likewise.
8267 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
8268 * modules/gc-md4 (Makefile.am): Likewise.
8269 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
8270 * modules/gc-sha1 (Makefile.am): Likewise.
8271 * modules/gc (Makefile.am): Likewise.
8272 * modules/getaddrinfo (Makefile.am): Likewise.
8273 * modules/getcwd (Makefile.am): Likewise.
8274 * modules/getdelim (Makefile.am): Likewise.
8275 * modules/getdomainname (Makefile.am): Likewise.
8276 * modules/getgroups (Makefile.am): Likewise.
8277 * modules/gethostname (Makefile.am): Likewise.
8278 * modules/gethrxtime (Makefile.am): Likewise.
8279 * modules/getline (Makefile.am): Likewise.
8280 * modules/getloadavg (Makefile.am): Likewise.
8281 * modules/getlogin_r (Makefile.am): Likewise.
8282 * modules/getndelim2 (Makefile.am): Likewise.
8283 * modules/getopt (Makefile.am): Likewise.
8284 * modules/getpagesize (Makefile.am): Likewise.
8285 * modules/getpass-gnu (Makefile.am): Likewise.
8286 * modules/getpass (Makefile.am): Likewise.
8287 * modules/getsubopt (Makefile.am): Likewise.
8288 * modules/gettime (Makefile.am): Likewise.
8289 * modules/gettimeofday (Makefile.am): Likewise.
8290 * modules/getugroups (Makefile.am): Likewise.
8291 * modules/getusershell (Makefile.am): Likewise.
8292 * modules/glob (Makefile.am): Likewise.
8293 * modules/group-member (Makefile.am): Likewise.
8294 * modules/hard-locale (Makefile.am): Likewise.
8295 * modules/hash (Makefile.am): Likewise.
8296 * modules/hmac-md5 (Makefile.am): Likewise.
8297 * modules/hmac-sha1 (Makefile.am): Likewise.
8298 * modules/human (Makefile.am): Likewise.
8299 * modules/idcache (Makefile.am): Likewise.
8300 * modules/imaxabs (Makefile.am): Likewise.
8301 * modules/imaxdiv (Makefile.am): Likewise.
8302 * modules/inet_ntop (Makefile.am): Likewise.
8303 * modules/inet_pton (Makefile.am): Likewise.
8304 * modules/intprops (Makefile.am): Likewise.
8305 * modules/inttostr (Makefile.am): Likewise.
8306 * modules/inttypes (Makefile.am): Likewise.
8307 * modules/isapipe (Makefile.am): Likewise.
8308 * modules/javaversion (Makefile.am): Likewise.
8309 * modules/lchmod (Makefile.am): Likewise.
8310 * modules/lchown (Makefile.am): Likewise.
8311 * modules/localcharset (Makefile.am): Likewise.
8312 * modules/long-options (Makefile.am): Likewise.
8313 * modules/lstat (Makefile.am): Likewise.
8314 * modules/malloc (Makefile.am): Likewise.
8315 * modules/mathl (Makefile.am): Likewise.
8316 * modules/mbchar (Makefile.am): Likewise.
8317 * modules/md2 (Makefile.am): Likewise.
8318 * modules/md4 (Makefile.am): Likewise.
8319 * modules/md5 (Makefile.am): Likewise.
8320 * modules/memcasecmp (Makefile.am): Likewise.
8321 * modules/memchr (Makefile.am): Likewise.
8322 * modules/memcmp (Makefile.am): Likewise.
8323 * modules/memcoll (Makefile.am): Likewise.
8324 * modules/memcpy (Makefile.am): Likewise.
8325 * modules/memmem (Makefile.am): Likewise.
8326 * modules/memmove (Makefile.am): Likewise.
8327 * modules/mempcpy (Makefile.am): Likewise.
8328 * modules/memrchr (Makefile.am): Likewise.
8329 * modules/memset (Makefile.am): Likewise.
8330 * modules/memxor (Makefile.am): Likewise.
8331 * modules/mkancesdirs (Makefile.am): Likewise.
8332 * modules/mkdir-p (Makefile.am): Likewise.
8333 * modules/mkdir (Makefile.am): Likewise.
8334 * modules/mkdtemp (Makefile.am): Likewise.
8335 * modules/mkstemp (Makefile.am): Likewise.
8336 * modules/mktime (Makefile.am): Likewise.
8337 * modules/modechange (Makefile.am): Likewise.
8338 * modules/mountlist (Makefile.am): Likewise.
8339 * modules/nanosleep (Makefile.am): Likewise.
8340 * modules/obstack (Makefile.am): Likewise.
8341 * modules/openat (Makefile.am): Likewise.
8342 * modules/pagealign_alloc (Makefile.am): Likewise.
8343 * modules/pathmax (Makefile.am): Likewise.
8344 * modules/physmem (Makefile.am): Likewise.
8345 * modules/poll (Makefile.am): Likewise.
8346 * modules/posixtm (Makefile.am): Likewise.
8347 * modules/posixver (Makefile.am): Likewise.
8348 * modules/putenv (Makefile.am): Likewise.
8349 * modules/quote (Makefile.am): Likewise.
8350 * modules/quotearg (Makefile.am): Likewise.
8351 * modules/raise (Makefile.am): Likewise.
8352 * modules/read-file (Makefile.am): Likewise.
8353 * modules/readline (Makefile.am): Likewise.
8354 * modules/readlink (Makefile.am): Likewise.
8355 * modules/readtokens (Makefile.am): Likewise.
8356 * modules/readutmp (Makefile.am): Likewise.
8357 * modules/realloc (Makefile.am): Likewise.
8358 * modules/regex (Makefile.am): Likewise.
8359 * modules/rename-dest-slash (Makefile.am): Likewise.
8360 * modules/rename (Makefile.am): Likewise.
8361 * modules/rijndael (Makefile.am): Likewise.
8362 * modules/rmdir (Makefile.am): Likewise.
8363 * modules/rpmatch (Makefile.am): Likewise.
8364 * modules/safe-read (Makefile.am): Likewise.
8365 * modules/safe-write (Makefile.am): Likewise.
8366 * modules/same-inode (Makefile.am): Likewise.
8367 * modules/same (Makefile.am): Likewise.
8368 * modules/save-cwd (Makefile.am): Likewise.
8369 * modules/savedir (Makefile.am): Likewise.
8370 * modules/setenv (Makefile.am): Likewise.
8371 * modules/settime (Makefile.am): Likewise.
8372 * modules/sha1 (Makefile.am): Likewise.
8373 * modules/sig2str (Makefile.am): Likewise.
8374 * modules/snprintf (Makefile.am): Likewise.
8375 * modules/stat-macros (Makefile.am): Likewise.
8376 * modules/stat-time (Makefile.am): Likewise.
8377 * modules/stdbool (Makefile.am): Likewise.
8378 * modules/stdint (Makefile.am): Likewise.
8379 * modules/stdlib-safer (Makefile.am): Likewise.
8380 * modules/stpcpy (Makefile.am): Likewise.
8381 * modules/stpncpy (Makefile.am): Likewise.
8382 * modules/strcase (Makefile.am): Likewise.
8383 * modules/strcasestr (Makefile.am): Likewise.
8384 * modules/strchrnul (Makefile.am): Likewise.
8385 * modules/strcspn (Makefile.am): Likewise.
8386 * modules/strdup (Makefile.am): Likewise.
8387 * modules/strerror (Makefile.am): Likewise.
8388 * modules/strftime (Makefile.am): Likewise.
8389 * modules/strndup (Makefile.am): Likewise.
8390 * modules/strnlen (Makefile.am): Likewise.
8391 * modules/strpbrk (Makefile.am): Likewise.
8392 * modules/strsep (Makefile.am): Likewise.
8393 * modules/strstr (Makefile.am): Likewise.
8394 * modules/strtod (Makefile.am): Likewise.
8395 * modules/strtoimax (Makefile.am): Likewise.
8396 * modules/strtok_r (Makefile.am): Likewise.
8397 * modules/strtol (Makefile.am): Likewise.
8398 * modules/strtoll (Makefile.am): Likewise.
8399 * modules/strtoul (Makefile.am): Likewise.
8400 * modules/strtoull (Makefile.am): Likewise.
8401 * modules/strtoumax (Makefile.am): Likewise.
8402 * modules/strverscmp (Makefile.am): Likewise.
8403 * modules/sys_socket (Makefile.am): Likewise.
8404 * modules/sys_stat (Makefile.am): Likewise.
8405 * modules/sysexits (Makefile.am): Likewise.
8406 * modules/time_r (Makefile.am): Likewise.
8407 * modules/timegm (Makefile.am): Likewise.
8408 * modules/timespec (Makefile.am): Likewise.
8409 * modules/tmpfile-safer (Makefile.am): Likewise.
8410 * modules/trim (Makefile.am): Likewise.
8411 * modules/unistd-safer (Makefile.am): Likewise.
8412 * modules/unlinkdir (Makefile.am): Likewise.
8413 * modules/unlocked-io (Makefile.am): Likewise.
8414 * modules/userspec (Makefile.am): Likewise.
8415 * modules/utime (Makefile.am): Likewise.
8416 * modules/utimecmp (Makefile.am): Likewise.
8417 * modules/utimens (Makefile.am): Likewise.
8418 * modules/vasnprintf (Makefile.am): Likewise.
8419 * modules/vasprintf (Makefile.am): Likewise.
8420 * modules/vsnprintf (Makefile.am): Likewise.
8421 * modules/xalloc (Makefile.am): Likewise.
8422 * modules/xgetcwd (Makefile.am): Likewise.
8423 * modules/xnanosleep (Makefile.am): Likewise.
8424 * modules/xreadlink (Makefile.am): Likewise.
8425 * modules/xstrtod (Makefile.am): Likewise.
8426 * modules/xstrtol (Makefile.am): Likewise.
8427 * modules/xstrtold (Makefile.am): Likewise.
8428 * modules/yesno (Makefile.am): Likewise.
8429 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
8431 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
8433 * modules/error (Makefile.am): Distribute files through
8434 EXTRA_DIST, not lib_SOURCES.
8436 2006-10-12 Eric Blake <ebb9@byu.net>
8438 * modules/error (Makefile.am): Distribute files in /lib.
8439 * modules/obstack (Makefile.am): Likewise.
8441 2006-10-12 Bruno Haible <bruno@clisp.org>
8443 * modules/acl (Makefile.am): Distribute all files in lib/ through
8445 * modules/arcfour (Makefile.am): Likewise.
8446 * modules/arctwo (Makefile.am): Likewise.
8447 * modules/argmatch (Makefile.am): Likewise.
8448 * modules/argz (Makefile.am): Likewise.
8449 * modules/atexit (Makefile.am): Likewise.
8450 * modules/backupfile (Makefile.am): Likewise.
8451 * modules/c-strtod (Makefile.am): Likewise.
8452 * modules/c-strtold (Makefile.am): Likewise.
8453 * modules/calloc (Makefile.am): Likewise.
8454 * modules/canon-host (Makefile.am): Likewise.
8455 * modules/canonicalize (Makefile.am): Likewise.
8456 * modules/chdir-long (Makefile.am): Likewise.
8457 * modules/chdir-safer (Makefile.am): Likewise.
8458 * modules/check-version (Makefile.am): Likewise.
8459 * modules/chown (Makefile.am): Likewise.
8460 * modules/cloexec (Makefile.am): Likewise.
8461 * modules/close-stream (Makefile.am): Likewise.
8462 * modules/closeout (Makefile.am): Likewise.
8463 * modules/crc (Makefile.am): Likewise.
8464 * modules/cycle-check (Makefile.am): Likewise.
8465 * modules/des (Makefile.am): Likewise.
8466 * modules/dirfd (Makefile.am): Likewise.
8467 * modules/dirname (Makefile.am): Likewise.
8468 * modules/dup2 (Makefile.am): Likewise.
8469 * modules/euidaccess (Makefile.am): Likewise.
8470 * modules/exclude (Makefile.am): Likewise.
8471 * modules/exitfail (Makefile.am): Likewise.
8472 * modules/fcntl-safer (Makefile.am): Likewise.
8473 * modules/file-type (Makefile.am): Likewise.
8474 * modules/fileblocks (Makefile.am): Likewise.
8475 * modules/filemode (Makefile.am): Likewise.
8476 * modules/filenamecat (Makefile.am): Likewise.
8477 * modules/fnmatch (Makefile.am): Likewise.
8478 * modules/fopen-safer (Makefile.am): Likewise.
8479 * modules/fpending (Makefile.am): Likewise.
8480 * modules/fprintftime (Makefile.am): Likewise.
8481 * modules/free (Makefile.am): Likewise.
8482 * modules/fsusage (Makefile.am): Likewise.
8483 * modules/ftruncate (Makefile.am): Likewise.
8484 * modules/fts (Makefile.am): Likewise.
8485 * modules/gc (Makefile.am): Likewise.
8486 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
8487 * modules/getaddrinfo (Makefile.am): Likewise.
8488 * modules/getcwd (Makefile.am): Likewise.
8489 * modules/getdelim (Makefile.am): Likewise.
8490 * modules/getdomainname (Makefile.am): Likewise.
8491 * modules/getgroups (Makefile.am): Likewise.
8492 * modules/gethostname (Makefile.am): Likewise.
8493 * modules/gethrxtime (Makefile.am): Likewise.
8494 * modules/getline (Makefile.am): Likewise.
8495 * modules/getloadavg (Makefile.am): Likewise.
8496 * modules/getlogin_r (Makefile.am): Likewise.
8497 * modules/getopt (Makefile.am): Likewise.
8498 * modules/getpass (Makefile.am): Likewise.
8499 * modules/getpass-gnu (Makefile.am): Likewise.
8500 * modules/getsubopt (Makefile.am): Likewise.
8501 * modules/gettime (Makefile.am): Likewise.
8502 * modules/gettimeofday (Makefile.am): Likewise.
8503 * modules/getugroups (Makefile.am): Likewise.
8504 * modules/getusershell (Makefile.am): Likewise.
8505 * modules/glob (Makefile.am): Likewise.
8506 * modules/group-member (Makefile.am): Likewise.
8507 * modules/hard-locale (Makefile.am): Likewise.
8508 * modules/hash (Makefile.am): Likewise.
8509 * modules/hmac-md5 (Makefile.am): Likewise.
8510 * modules/hmac-sha1 (Makefile.am): Likewise.
8511 * modules/human (Makefile.am): Likewise.
8512 * modules/idcache (Makefile.am): Likewise.
8513 * modules/imaxabs (Makefile.am): Likewise.
8514 * modules/imaxdiv (Makefile.am): Likewise.
8515 * modules/inet_ntop (Makefile.am): Likewise.
8516 * modules/inet_pton (Makefile.am): Likewise.
8517 * modules/inttostr (Makefile.am): Likewise.
8518 * modules/isapipe (Makefile.am): Likewise.
8519 * modules/lchown (Makefile.am): Likewise.
8520 * modules/long-options (Makefile.am): Likewise.
8521 * modules/lstat (Makefile.am): Likewise.
8522 * modules/malloc (Makefile.am): Likewise.
8523 * modules/mathl (Makefile.am): Likewise.
8524 * modules/mbchar (Makefile.am): Likewise.
8525 * modules/md2 (Makefile.am): Likewise.
8526 * modules/md4 (Makefile.am): Likewise.
8527 * modules/md5 (Makefile.am): Likewise.
8528 * modules/memcasecmp (Makefile.am): Likewise.
8529 * modules/memchr (Makefile.am): Likewise.
8530 * modules/memcmp (Makefile.am): Likewise.
8531 * modules/memcoll (Makefile.am): Likewise.
8532 * modules/memcpy (Makefile.am): Likewise.
8533 * modules/memmem (Makefile.am): Likewise.
8534 * modules/memmove (Makefile.am): Likewise.
8535 * modules/mempcpy (Makefile.am): Likewise.
8536 * modules/memrchr (Makefile.am): Likewise.
8537 * modules/memset (Makefile.am): Likewise.
8538 * modules/memxor (Makefile.am): Likewise.
8539 * modules/mkancesdirs (Makefile.am): Likewise.
8540 * modules/mkdir (Makefile.am): Likewise.
8541 * modules/mkdir-p (Makefile.am): Likewise.
8542 * modules/mkdtemp (Makefile.am): Likewise.
8543 * modules/mkstemp (Makefile.am): Likewise.
8544 * modules/mktime (Makefile.am): Likewise.
8545 * modules/modechange (Makefile.am): Likewise.
8546 * modules/mountlist (Makefile.am): Likewise.
8547 * modules/nanosleep (Makefile.am): Likewise.
8548 * modules/openat (Makefile.am): Likewise.
8549 * modules/pagealign_alloc (Makefile.am): Likewise.
8550 * modules/physmem (Makefile.am): Likewise.
8551 * modules/poll (Makefile.am): Likewise.
8552 * modules/posixtm (Makefile.am): Likewise.
8553 * modules/posixver (Makefile.am): Likewise.
8554 * modules/putenv (Makefile.am): Likewise.
8555 * modules/quote (Makefile.am): Likewise.
8556 * modules/quotearg (Makefile.am): Likewise.
8557 * modules/raise (Makefile.am): Likewise.
8558 * modules/read-file (Makefile.am): Likewise.
8559 * modules/readline (Makefile.am): Likewise.
8560 * modules/readlink (Makefile.am): Likewise.
8561 * modules/readtokens (Makefile.am): Likewise.
8562 * modules/readutmp (Makefile.am): Likewise.
8563 * modules/realloc (Makefile.am): Likewise.
8564 * modules/regex (Makefile.am): Likewise.
8565 * modules/rename (Makefile.am): Likewise.
8566 * modules/rename-dest-slash (Makefile.am): Likewise.
8567 * modules/rijndael (Makefile.am): Likewise.
8568 * modules/rmdir (Makefile.am): Likewise.
8569 * modules/rpmatch (Makefile.am): Likewise.
8570 * modules/safe-read (Makefile.am): Likewise.
8571 * modules/safe-write (Makefile.am): Likewise.
8572 * modules/same (Makefile.am): Likewise.
8573 * modules/save-cwd (Makefile.am): Likewise.
8574 * modules/savedir (Makefile.am): Likewise.
8575 * modules/setenv (Makefile.am): Likewise.
8576 * modules/settime (Makefile.am): Likewise.
8577 * modules/sha1 (Makefile.am): Likewise.
8578 * modules/sig2str (Makefile.am): Likewise.
8579 * modules/snprintf (Makefile.am): Likewise.
8580 * modules/stdlib-safer (Makefile.am): Likewise.
8581 * modules/stpcpy (Makefile.am): Likewise.
8582 * modules/stpncpy (Makefile.am): Likewise.
8583 * modules/strcase (Makefile.am): Likewise.
8584 * modules/strcasestr (Makefile.am): Likewise.
8585 * modules/strchrnul (Makefile.am): Likewise.
8586 * modules/strcspn (Makefile.am): Likewise.
8587 * modules/strdup (Makefile.am): Likewise.
8588 * modules/strerror (Makefile.am): Likewise.
8589 * modules/strftime (Makefile.am): Likewise.
8590 * modules/strndup (Makefile.am): Likewise.
8591 * modules/strnlen (Makefile.am): Likewise.
8592 * modules/strpbrk (Makefile.am): Likewise.
8593 * modules/strsep (Makefile.am): Likewise.
8594 * modules/strstr (Makefile.am): Likewise.
8595 * modules/strtod (Makefile.am): Likewise.
8596 * modules/strtoimax (Makefile.am): Likewise.
8597 * modules/strtok_r (Makefile.am): Likewise.
8598 * modules/strtol (Makefile.am): Likewise.
8599 * modules/strtoll (Makefile.am): Likewise.
8600 * modules/strtoul (Makefile.am): Likewise.
8601 * modules/strtoull (Makefile.am): Likewise.
8602 * modules/strtoumax (Makefile.am): Likewise.
8603 * modules/strverscmp (Makefile.am): Likewise.
8604 * modules/time_r (Makefile.am): Likewise.
8605 * modules/timegm (Makefile.am): Likewise.
8606 * modules/tmpfile-safer (Makefile.am): Likewise.
8607 * modules/unistd-safer (Makefile.am): Likewise.
8608 * modules/unlinkdir (Makefile.am): Likewise.
8609 * modules/userspec (Makefile.am): Likewise.
8610 * modules/utime (Makefile.am): Likewise.
8611 * modules/utimecmp (Makefile.am): Likewise.
8612 * modules/utimens (Makefile.am): Likewise.
8613 * modules/vasnprintf (Makefile.am): Likewise.
8614 * modules/vasprintf (Makefile.am): Likewise.
8615 * modules/vsnprintf (Makefile.am): Likewise.
8616 * modules/xalloc (Makefile.am): Likewise.
8617 * modules/xgetcwd (Makefile.am): Likewise.
8618 * modules/xnanosleep (Makefile.am): Likewise.
8619 * modules/xreadlink (Makefile.am): Likewise.
8620 * modules/xstrtod (Makefile.am): Likewise.
8621 * modules/xstrtol (Makefile.am): Likewise.
8622 * modules/xstrtold (Makefile.am): Likewise.
8623 * modules/yesno (Makefile.am): Likewise.
8625 2006-10-12 Jim Meyering <jim@meyering.net>
8627 * m4/getloadavg.m4: Revert the change below.
8629 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
8630 lib/getloadavg.c using "ls -L", not "test -f". The latter would
8631 fail with a symlink, which is what coreutils' ./bootstrap now
8634 2006-10-12 Bruno Haible <bruno@clisp.org>
8636 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
8638 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
8639 MSVC and mingw explicitly.
8641 2006-10-11 Simon Josefsson <jas@extundo.com>
8642 Bruno Haible <bruno@clisp.org>
8644 Add support for multiple gnulib-tool invocations in the scope of a
8645 single configure.ac file.
8646 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
8647 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
8648 with the same contents as the _LIBADD variable.
8649 (func_emit_initmacro_start, func_emit_initmacro_end,
8650 func_emit_initmacro_done): New functions.
8651 (func_import, func_create_testdir): Invoke them. Allow the identifiers
8652 gl_LIBOBJS and gl_LTLIBOBJS.
8654 2006-10-11 Bruno Haible <bruno@clisp.org>
8656 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
8657 (func_create_testdir): Don't create po/Makefile.am, don't invoke
8658 autoreconf. Instead, invoke autopoint explicitly but move back the
8659 *.m4 files from gnulib.
8661 2006-10-11 Bruno Haible <bruno@clisp.org>
8663 * gnulib-tool (func_usage): Make module names after --create-testdir
8665 (func_create_testdir): If no module was specified, use nearly all
8668 2006-10-12 Jim Meyering <jim@meyering.net>
8670 Big performance improvement for fts-based tools that use FTS_NOSTAT.
8671 Avoid spurious inode-mismatch problems on non-POSIX file systems.
8672 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
8673 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
8674 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
8675 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
8676 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
8677 (fts_set_stat_required): New function.
8678 (fts_open): Defer the calls to fts_stat, if possible or requested.
8679 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
8680 into fts_stat itself.
8681 (fts_read): Perform any required (deferred) fts_stat call.
8682 (fts_build): Likewise, for the directory we're about to open and read.
8683 In the readdir loop, carefully decide whether each entry will require
8684 an eventual call to fts_stat, using dirent.d_type info if available.
8685 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
8686 a command line argument into this function. Update all callers.
8687 Map a return value of FTS_DOT to FTS_D for a command line argument.
8688 * modules/fts (Depends-on): Add d-type. Alphabetize.
8689 Thanks to Miklos Szeredi for his tenacity and for the initial
8690 bug report about "find" failing on a FUSE-based file system.
8692 * lib/fts.c (fts_open): Use consistent indentation.
8694 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
8696 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
8697 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
8698 reported by Jim Meyering. All uses of cache variables renamed
8699 to match Autoconf's.
8700 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
8703 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
8704 Fix misspelling in diagnostic.
8706 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
8708 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
8709 defined. Problem reported by Matthew Woehlke.
8711 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
8712 Add support for Tandem NonStop R series.
8713 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
8716 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
8717 (has_trailing_slash): Omit size arg; all callers changed.
8718 Omit 'inline', since it doesn't help performance and we'd
8719 need to configure it.
8720 Don't count //, ///, etc. as having a trailing slash.
8721 As a side effect, this removes a C99ism reported by Matthew Woehlke.
8722 (rpl_rename_dest_slash): On failure, use rename's errno rather
8723 than (in some cases) an incorrect or junk errno.
8724 Simplify code by removing need to compute length; this does
8725 cause it to make two passes instead of one over the file name,
8728 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
8729 change, since Autoconf's version may no longer be appropriate now
8730 that we are using CVS Autoconf's version. Add support for Tandem.
8732 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
8733 Bruno Haible <bruno@clisp.org>
8735 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
8736 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
8737 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
8738 gl_AC_TYPE_LONG_LONG.
8740 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
8741 instead of HAVE_LONG_LONG.
8742 * lib/printf-args.c (printf_fetchargs): Likewise.
8743 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8744 * lib/vasnprintf.c (VASNPRINTF): Likewise.
8745 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
8746 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
8747 gl_AC_TYPE_LONG_LONG.
8749 2006-10-11 Bruno Haible <bruno@clisp.org>
8751 * m4/longlong.m4: Add comments.
8752 * m4/ulonglong.m4: Likewise.
8754 2006-10-10 Bruno Haible <bruno@clisp.org>
8756 Make it possible to #define stpcpy, strdup to aliases.
8757 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
8758 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
8760 2006-10-10 Bruno Haible <bruno@clisp.org>
8762 Make it possible to #define gcd to an alias.
8763 * lib/gcd.c: Include config.h.
8765 2006-10-10 Bruno Haible <bruno@clisp.org>
8767 Make it possible to #define c_isascii to an alias.
8768 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
8769 defined. Undefine the macros before defining them, to avoid gcc
8771 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
8772 define NO_C_CTYPE_MACROS early.
8774 2006-10-10 Bruno Haible <bruno@clisp.org>
8776 Make it possible to #define set_program_name to an alias.
8777 * lib/progname.c: Don't undefine set_program_name; instead, undefine
8778 ENABLE_RELOCATABLE early.
8780 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
8782 Port to Tandem NSK OSS, which has 64-bit signed int but at most
8783 32-bit unsigned int. Problem reported by Matthew Woehlke in:
8784 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
8785 More generally, don't assume that 64-bit signed int is available
8786 if unsigned int is, and vice versa.
8787 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
8788 unsigned symbols, not on their signed counterparts.
8789 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
8790 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
8791 (UINT64_C, UINTMAX_C):
8793 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
8794 unsigned counterparts.
8795 (Have_long_long, Unsigned): New macros.
8796 (Int): Renamed from INT.
8797 (strtoimax): Use the new macros.
8798 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
8799 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
8800 * modules/inttypes (inttypes.h): Substitute
8801 HAVE_UNSIGNED_LONG_LONG_INT.
8802 * modules/stdint (stdint.h): Likewise.
8803 (Files): Add m4/ulonglong.m4.
8805 2006-10-10 Bruno Haible <bruno@clisp.org>
8807 Fix a gcc -Wshadow warning.
8808 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
8810 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
8811 gl_linked_indexof_from_to): Likewise.
8812 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
8814 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
8816 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
8817 Reported by Eric Blake.
8819 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
8821 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
8822 for NetBSD. Problem reported by Bruno Haible.
8824 2006-10-09 Jim Meyering <jim@meyering.net>
8826 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
8827 Patch from Bruno Haible.
8829 2006-10-09 Jim Meyering <jim@meyering.net>
8831 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
8832 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
8833 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
8835 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
8837 Don't include <config.h> twice; this doesn't work in some cases,
8838 e.g., when config.h has "#define intmax_t long long int" and
8839 we include <config.h>, <inttypes.h>, <config.h> in that order.
8840 Problem reported by Matthew Woehlke in:
8841 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
8842 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
8843 * lib/fts-cycle.c: Don't include config.h.
8844 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
8845 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
8846 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
8847 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
8849 * lib/xstrtoumax.c: Likewise.
8850 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
8851 __strtol and the like, so that this module is more like its siblings.
8852 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
8853 Remove; no longer needed now that we assume gnulib inttypes.h.
8855 2006-10-08 Bruno Haible <bruno@clisp.org>
8857 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
8860 2006-10-07 Jim Meyering <jim@meyering.net>
8862 * modules/inttypes (inttypes.h): Revert what seems to have been
8863 an inadvertent part of today's change: use "|", not "/" in the
8864 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
8866 2006-10-07 Bruno Haible <bruno@clisp.org>
8868 * modules/sublist: New file.
8870 2006-10-07 Bruno Haible <bruno@clisp.org>
8872 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
8873 * modules/argz (argz.h): Likewise.
8874 * modules/arpa_inet (arpa/inet.h): Likewise.
8875 * modules/byteswap (byteswap.h): Likewise.
8876 * modules/configmake (configmake.h): Likewise.
8877 * modules/fcntl (fcntl.h): Likewise.
8878 * modules/fnmatch (fnmatch.h): Likewise.
8879 * modules/getopt (getopt.h): Likewise.
8880 * modules/glob (glob.h): Likewise.
8881 * modules/inttypes (inttypes.h): Likewise.
8882 * modules/netinet_in (netinet/in.h): Likewise.
8883 * modules/poll (poll.h): Likewise.
8884 * modules/stdbool (stdbool.h): Likewise.
8885 * modules/stdint (stdint.h): Likewise.
8886 * modules/sys_select (sys/select.h): Likewise.
8887 * modules/sys_socket (sys/socket.h): Likewise.
8888 * modules/sys_stat (sys/stat.h): Likewise.
8889 * modules/sysexits (sysexits.h): Likewise.
8890 * modules/unistd (unistd.h): Likewise.
8891 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8892 Add a "DO NOT EDIT" comment to the generated file.
8893 (func_import): Likewise for gnulib-comp.m4.
8895 2006-10-07 Bruno Haible <bruno@clisp.org>
8897 * lib/gl_sublist.h: New file.
8898 * lib/gl_sublist.c: New file.
8900 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
8902 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
8903 name (relative to the original working directory) and the file
8904 name component (relative to the temporary working directory). All
8906 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
8907 * lib/mkdir-p.c (make_dir_parents): Likewise.
8908 * lib/mkdir-p.h (make_dir_parents): Likewise.
8910 2006-10-06 Eric Blake <ebb9@byu.net>
8912 Define several macros for use by the clean-temp module.
8913 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
8914 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
8915 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
8917 * lib/clean-temp.h (close_stream_temp): New declaration.
8918 * lib/clean-temp.c (includes): Pull in headers according to what
8919 other modules are in use.
8920 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
8922 2006-10-06 Bruno Haible <bruno@clisp.org>
8924 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
8925 instead of fopen, fwriteerror.
8927 2006-10-06 Bruno Haible <bruno@clisp.org>
8929 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
8930 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
8932 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
8933 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
8934 Return an error indicator.
8935 Suggested by Eric Blake.
8937 2006-10-06 Bruno Haible <bruno@clisp.org>
8939 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
8940 Reported by Eric Blake.
8942 2006-10-06 Bruno Haible <bruno@clisp.org>
8944 * modules/closeout (Description): Mention stderr too.
8946 2006-10-06 Bruno Haible <bruno@clisp.org>
8947 and Paul Eggert <eggert@cs.ucla.edu>
8949 * lib/closeout.c (close_stdout): Also close stderr.
8950 * lib/closeout.h: Update comment.
8952 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
8954 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
8955 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
8956 * lib/dirchownmod.c: Include lchown.h.
8957 * lib/lchown.c: Don't include files that lchown.h now includes.
8958 Don't declare chown, since lchown.h now does that.
8959 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
8960 (lchown): Define to rpl_chown if lchown is declared but
8961 does not exist. Declare using a prototype if lchown is not
8962 declared. Add a copyright notice.
8963 * lib/mkstemp.h: Include <unistd.h>.
8964 * lib/openat.c: Include lchown.h.
8966 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
8967 we now test for that separately.
8968 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
8969 rather than O_NOFOLLOW, when testing whether it's possible to
8970 avoid a race condition reliably.
8971 * lib/savewd.c (savewd_chdir): Likewise.
8973 Remove macros that are no longer needed now that stdint.h is
8975 * lib/fsusage.c (UINTMAX_MAX): Remove.
8976 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
8977 * lib/utimecmp.c (SIZE_MAX): Remove.
8979 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
8981 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
8982 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
8985 2006-10-05 Bruno Haible <bruno@clisp.org>
8987 * lib/gl_list.h (gl_sortedlist_search_from_to,
8988 gl_sortedlist_indexof_from_to): New declarations.
8989 (gl_list_implementation): New fields sortedlist_search_from_to,
8990 sortedlist_indexof_from_to.
8991 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
8993 * lib/gl_list.c (gl_sortedlist_search_from_to,
8994 gl_sortedlist_indexof_from_to): New functions.
8995 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
8997 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
8998 (gl_array_sortedlist_search_from_to): New function.
8999 (gl_array_list_implementation): Update.
9000 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
9002 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
9003 (gl_carray_sortedlist_search_from_to): New function.
9004 (gl_carray_list_implementation): Update.
9005 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
9006 gl_linked_sortedlist_indexof_from_to): New functions.
9007 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9008 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9009 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
9010 gl_tree_sortedlist_indexof_from_to): New functions.
9011 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9012 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9014 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9015 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
9018 2006-10-05 Bruno Haible <bruno@clisp.org>
9020 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
9021 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
9022 (struct gl_list_implementation): Add fields search_from_to,
9023 indexof_from_to. Remove fields search, indexof.
9024 (gl_list_search): Use the search_from_to method.
9025 (gl_list_search_from, gl_list_search_from_to): New functions.
9026 (gl_list_indexof): Use the indexof_from_to method.
9027 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9028 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
9029 (gl_list_search_from, gl_list_search_from_to): New functions.
9030 (gl_list_indexof): Use the indexof_from_to method.
9031 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9032 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
9033 gl_array_indexof. Add start_index, end_index arguments.
9034 (gl_array_search_from_to): Renamed from gl_array_search. Add
9035 start_index, end_index arguments.
9036 (gl_array_remove, gl_array_list_implementation): Update.
9037 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
9038 gl_carray_indexof. Add start_index, end_index arguments.
9039 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
9040 start_index, end_index arguments.
9041 (gl_carray_remove, gl_carray_list_implementation): Update.
9042 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
9043 gl_linked_search. Add start_index, end_index arguments.
9044 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
9045 start_index, end_index arguments.
9046 (gl_linked_remove): Update.
9047 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9048 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9049 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
9051 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
9052 gl_tree_search. Add start_index, end_index arguments.
9053 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9054 start_index, end_index arguments.
9055 (gl_tree_remove): Update.
9056 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9057 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9058 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
9060 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
9061 gl_tree_search. Add start_index, end_index arguments.
9062 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9063 start_index, end_index arguments.
9064 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9066 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
9068 2006-10-05 Bruno Haible <bruno@clisp.org>
9070 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
9072 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
9073 fwriteerror_temp): New declarations.
9074 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
9075 (descriptors): New variable.
9076 (cleanup): First, close the descriptors.
9077 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
9078 fclose_temp, fwriteerror_temp): New functions.
9080 2006-10-04 Jim Meyering <jim@meyering.net>
9082 * lib/fts.c (fts_open): Tiny comment change.
9084 2006-10-04 Bruno Haible <bruno@clisp.org>
9086 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
9087 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
9089 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
9090 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
9092 (gl_LOCK): Require gl_LOCK_BODY.
9094 2006-10-04 Bruno Haible <bruno@clisp.org>
9096 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
9097 (gl_oset_search_atleast): New declaration.
9098 (struct gl_oset_implementation): Add field 'search_atleast'.
9099 (gl_oset_search_atleast): New inline function.
9100 * lib/gl_oset.c (gl_oset_search_atleast): New function.
9101 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
9102 (gl_array_oset_implementation): Update.
9103 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
9104 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
9105 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
9107 2006-10-04 Bruno Haible <bruno@clisp.org>
9109 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
9111 2006-10-03 Bruno Haible <bruno@clisp.org>
9113 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
9114 from gl_avltreehash_list_implementation.
9116 2006-10-03 Bruno Haible <bruno@clisp.org>
9118 * lib/gl_oset.c (gl_oset_add): Fix return type.
9120 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
9122 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
9124 2006-10-02 Eric Blake <ebb9@byu.net>
9126 * modules/strnlen (Depends-on): Add extensions.
9128 2006-10-02 Eric Blake <ebb9@byu.net>
9130 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
9131 definition in 2.60+.
9133 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9135 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
9138 2006-10-02 Bruno Haible <bruno@clisp.org>
9140 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
9141 to the AUTOMAKE_OPTIONS.
9142 Reported by Jim Meyering.
9144 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
9146 Work around bug in Solaris 10 /proc file system:
9147 /proc/self/fd/NNN/.. isn't the parent directory of
9148 the directory whose file descriptor is NNN. This needs to
9149 be worked around at run time, not compile time, since a
9150 program might be built on Solaris 8, where things work, and
9152 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
9153 to use the following interface instead:
9154 (OPENAT_BUFFER_SIZE): New macro.
9155 (openat_proc_name): New function.
9156 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
9157 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
9159 * lib/openat-proc.c: New file.
9160 * modules/openat (Files): Add lib/openat-proc.c.
9161 (Depends-on): Add same-inode, stdbool.
9162 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
9164 2006-09-29 Bruno Haible <bruno@clisp.org>
9166 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
9167 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
9168 argument. Set stdout_closed before testing for ferror, not after.
9169 (fwriteerror, fwriteerror_no_ebadf): New functions.
9171 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9173 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
9175 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
9177 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
9178 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
9180 2006-09-28 Jim Meyering <jim@meyering.net>
9182 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
9185 2006-09-28 Bruno Haible <bruno@clisp.org>
9187 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
9188 * modules/linkedhash-list (Depends-on): Likewise.
9189 * modules/rbtreehash-list (Depends-on): Likewise.
9191 2006-09-28 Bruno Haible <bruno@clisp.org>
9193 * lib/strndup.h: Simplify the redefinition of strndup.
9194 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
9195 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
9197 2006-09-28 Bruno Haible <bruno@clisp.org>
9199 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
9200 * lib/gl_linkedhash_list.c: Likewise.
9201 * lib/gl_rbtreehash_list.c: Likewise.
9203 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
9205 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
9208 * lib/__fpending.h: Don't include <stdio_ext.h> unless
9209 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
9210 it causes <stdio_ext.h> to cause a compile-time error.
9211 Problem reported by Nelson H. F. Beebe.
9212 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
9213 of HAVE_DECL___PENDING.
9215 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
9216 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
9219 2006-09-27 Jim Meyering <jim@meyering.net>
9221 This file could end up with a definition for a function
9222 named __strndup, rather than rpl_strndup on a system with
9223 incomplete weak_alias support.
9224 * lib/strndup.c (strndup): Rename from __strndup.
9225 Remove #defines that used to map __strndup to strndup.
9226 Don't use K&R prototypes.
9227 Remove LIBC-related code, since this file is not sync'd with glibc.
9228 * lib/strndup.h: Revamp, accordingly.
9229 * m4/strndup.m4: Modernize.
9231 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
9233 * modules/savewd (Depends-on): Add 'raise'.
9234 * lib/savewd.c: Include <signal.h>, for 'raise'.
9236 2006-09-26 Jim Meyering <jim@meyering.net>
9238 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
9239 when we detect Darwin 8.7.0's acl_get_file bug.
9240 Rearrange to perform the new (below) run-test while $LIBS
9241 contains any acl-related library. Set USE_ACL at the end.
9242 (gl_ACL_GET_FILE): New function.
9244 2006-09-26 Eric Blake <ebb9@byu.net>
9246 * lib/verror.c: Include <config.h> unconditionally.
9248 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
9250 * modules/clock-time (Maintainer): Add self.
9251 * modules/getlogin_r (Depends-on): Add extensions.
9253 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9255 * modules/clock-time: New module.
9256 * modules/nanosleep (Depends-on): Add clock-time.
9257 * modules/gethrxtime (Depends-on): Likewise.
9258 * modules/gettime (Depends-on): Likewise.
9259 * modules/settime (Depends-on): Likewise.
9261 * modules/fts-lgpl: Depend on openat.
9262 * modules/mkancesdirs: Depend on savewd.
9263 * modules/mkdir-p: Likewise.
9265 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9267 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
9269 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
9270 `gl_have_arbitrary_file_name_length_limit' to
9271 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
9272 actually works between configure runs.
9274 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9275 Bruno Haible <bruno@clisp.org>
9277 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
9279 2006-09-25 Jim Meyering <jim@meyering.net>
9281 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
9282 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
9284 2006-09-25 Eric Blake <ebb9@byu.net>
9286 * gnulib-tool (func_import, func_create_testdir): Fix typos in
9287 exec's in 2006-09-18 patch when shuffling fds.
9289 2006-09-25 Bruno Haible <bruno@clisp.org>
9291 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
9292 Reported by Jim Meyering.
9294 2006-09-24 Jim Meyering <jim@meyering.net>
9296 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
9297 compare a pointer against a literal "0". That caused failures with
9298 at least HP-UX's hpcc.
9300 2006-09-22 Simon Josefsson <jas@extundo.com>
9304 * modules/gc-hmac-sha1:
9305 * modules/gc-hmac-md5:
9307 * modules/gc-arcfour: Distribute more files.
9309 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9311 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
9312 (gl_linked_iterator_from_to): Initialize struct completely.
9313 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
9314 (gl_tree_iterator_from_to): Likewise
9315 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
9316 * lib/gl_array_list.c [lint] (gl_array_iterator)
9317 (gl_array_iterator_from_to): Likewise.
9318 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
9319 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
9320 (gl_carray_iterator_from_to): Likewise.
9322 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
9323 * lib/md4.c (md4_process_block): Remove unused variable.
9324 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
9325 parentheses for clarity.
9327 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9329 * modules/bison-i18n (Depends-on): Add gettext.
9331 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9333 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
9334 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9335 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
9336 also add missing comma that caused broken test.
9337 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
9338 stdlib.h, for `abort'.
9339 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
9341 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
9342 include unistd.h if present, for `rmdir'.
9343 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
9345 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
9346 in the process include standard headers for prototypes.
9347 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
9348 gets declared on GNU/Linux.
9349 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
9350 unistd.h, for `rmdir'.
9351 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
9353 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
9355 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
9357 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
9359 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9361 * gnulib-tool (func_version): Create output all at once. This
9362 may help avoid triggering unnecessary SIGPIPEs, and at any
9363 rate it doesn't hurt.
9365 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9366 Bruno Haible <bruno@clisp.org>
9368 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
9369 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9370 * m4/signed.m4 (bh_C_SIGNED): Likewise.
9372 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
9373 (gl_FUNC_VASPRINTF): Invoke it.
9375 2006-09-22 Bruno Haible <bruno@clisp.org>
9377 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
9378 getloadavg.c as first argument.
9380 2006-09-22 Bruno Haible <bruno@clisp.org>
9382 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
9383 at the beginning of the gl_INIT macro.
9384 * modules/getloadavg (configure.ac): Pass $gl_source_base to
9387 2006-09-22 Bruno Haible <bruno@clisp.org>
9389 * gnulib-tool (func_create_megatestdir): Don't include the config-h
9391 Suggested by Ralf Wildenhues.
9393 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
9395 Import this patch from libc:
9397 2006-09-06 Jakub Jelinek <jakub@redhat.com>
9399 * lib/regex_internal.c (re_string_reconstruct): Handle
9400 offset < pstr->valid_raw_len && pstr->offsets_needed case.
9401 Ensure no bytes read before raw_mbs array. Pass a saved copy of
9402 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9403 re_string_context_at.
9405 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
9407 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
9408 gl_REGEX now does it for us.
9409 (gl_REGEX): Add test taken from
9410 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
9412 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
9413 Check that large offsets work. Modernize Autoconf usages.
9414 Prefer "yes" to mean a good thing rather than a bad.
9415 Don't put "#define mkstemp" in config.h, as this might interfere
9416 with standard system headers that "#define mkstemp mkstemp64".
9418 * modules/mkstemp (Depends-on): Add extensions, so that
9419 mkstemp is visible on some platforms.
9420 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
9421 (Include): Change to "mkstemp.h" from <stdlib.h>.
9422 (Files): Add mkstemp.h.
9424 * lib/mkstemp.h: New file, since some standard headers
9426 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
9427 Include "mkstemp.h".
9428 Make the _LIBC code resemble glibc original more,
9429 e.g., use K&R style.
9430 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
9431 (mkstemp): Remove, since mkstemp.h does this for us.
9432 * lib/stdlib--.h: Include mkstemp.h.
9434 Import this patch from libc:
9436 2006-04-07 Ulrich Drepper <drepper@redhat.com>
9438 * lib/tempname.c (__gen_tempname): Change attempts_min
9439 into a macro. Use preprocessor to decide how to initialize
9440 attempts [Coverity CID 67].
9442 2006-09-20 Bruno Haible <bruno@clisp.org>
9444 * lib/mkdtemp.c: Import from libc.
9445 2006-04-07 Ulrich Drepper <drepper@redhat.com>
9446 * sysdeps/posix/tempname.c (__gen_tempname): Change
9447 attempts_min into a macro. Use preprocessor to decide how to
9448 initialize attempts [Coverity CID 67].
9449 2001-11-27 Paul Eggert <eggert@twinsun.com>
9450 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
9451 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
9453 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9455 * gnulib-tool (func_exit): New function, to allow to pass the
9456 exit status portably through the trap. Use everywhere.
9457 (--help, --version): Signal a write error.
9458 (trap): catch SIGPIPE, for write errors.
9459 Exit at the end of the trap, with the correct exit status.
9461 2006-09-19 Karl Berry <karl@gnu.org>
9463 * doc/gnulib.texi: note about the license texinfo files.
9465 2006-09-19 Eric Blake <ebb9@byu.net>
9467 * gnulib-tool: Avoid space-tab.
9469 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
9471 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
9472 that prevented coreutils 6.1 from building. Problem reported
9473 by Petter Reinholdtsen.
9475 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
9477 * gnulib-tool (avoidlist): Fix typo that broke options like
9478 --avoid=lock that are used by coreutils bootstrap.
9480 2006-09-18 Mark D. Baushke <mdb@gnu.org>
9482 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
9483 more systematically.
9485 2006-09-18 Jim Meyering <jim@meyering.net>
9487 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
9489 2006-09-18 Bruno Haible <bruno@clisp.org>
9491 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
9493 2006-09-18 Bruno Haible <bruno@clisp.org>
9495 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
9496 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
9497 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
9498 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
9499 * m4/gettext.m4: Require autoconf >= 2.52.
9500 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
9501 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
9502 of gl_cv_header_inttypes_h.
9504 2006-09-18 Bruno Haible <bruno@clisp.org>
9506 * lib/javaversion.c: Include configmake.h.
9508 2006-09-18 Bruno Haible <bruno@clisp.org>
9510 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
9511 avoid that the while loops be executed in a subshell.
9513 2006-09-18 Bruno Haible <bruno@clisp.org>
9515 * MODULES.html.sh (func_module): Break long lines.
9516 Suggested by Bruce Korb <bkorb@gnu.org>.
9518 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9520 Speed up by a factor of 1.12.
9521 * gnulib-tool (nl): New variable.
9522 (func_import): Rewrite include directive extraction to only read each
9525 2006-09-17 Bruno Haible <bruno@clisp.org>
9527 * modules/javaversion (Makefile.am): Remove DEFS setting.
9528 (Depends-on): Add configmake, for PKGDATADIR definition.
9530 2006-09-17 Bruno Haible <bruno@clisp.org>
9532 * gnulib-tool (func_create_testdir): Rewrite all files at once.
9534 2006-09-17 Bruno Haible <bruno@clisp.org>
9536 * gnulib-tool (func_append): New function, stolen from libtool.m4.
9537 (func_modules_transitive_closure, func_modules_add_dummy,
9538 func_modules_to_filelist, func_import, func_create_testdir,
9539 func_create_megatestdir, ...): Use it wherever possible.
9540 Suggested by Ralf Wildenhues.
9542 2006-09-16 Karl Berry <karl@gnu.org>
9544 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
9545 to avoid sectioning errors.
9546 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
9547 [ifinfo]: blank line after @center-ed titles.
9548 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
9549 Spell FSF address consistently with others.
9550 (These changes approved by rms.)
9552 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9554 Speed up by a factor of 1.61.
9555 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
9556 already checked module names again.
9558 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9560 Speed up by a factor of 1.13.
9561 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
9562 for new_files, and the input to func_add_or_update.
9564 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9566 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
9567 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
9569 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
9571 * modules/mkancesdirs (Depends-on): Add fcntl.
9572 * modules/savewd: New file.
9573 * MODULES.html.sh (File system functions): Add savewd.
9575 * modules/configmake (Makefile.am): Add support for the
9576 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
9578 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
9580 * m4/savewd.m4: New file.
9582 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
9584 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
9585 (dirchownmod): New arg FD. All callers changed.
9586 Use FD rather than opening the directory ourself, as opening is
9587 now the caller's responsibility.
9588 * lib/dirchownmod.h: Likewise.
9589 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
9590 hosts that require <sys/types.h> before <sys/stat.h>. Include
9591 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
9593 (mkancesdirs): Return length of prefix of FILE that has already
9594 been made, or -2 if there is a child doing the work. Redo
9595 algorithm so that it is O(N) rather than O(N**2). Optimize away
9596 ".", and treat ".." specially since it might stray back into
9597 already-created areas. Use a subprocess if necessary. New arg
9598 WD; all users changed. MAKE_DIR function should now return 1
9599 if it creates a directory that is not readable. Return -2 if
9600 a child process is spun off.
9601 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
9602 Adjust signature to match code.
9603 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
9604 (make_dir_parents): Use a subprocess if necessary. New arg WD;
9606 * lib/savewd.c, lib/savewd.h: New files.
9608 2006-09-15 Jim Meyering <jim@meyering.net>
9610 * modules/rename-dest-slash: New module.
9611 * MODULES.html.sh (posix_compat): Add it here.
9613 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
9615 2006-09-15 Jim Meyering <jim@meyering.net>
9617 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
9620 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
9622 2006-09-15 Jim Meyering <jim@meyering.net>
9624 * lib/rename-dest-slash.c (has_trailing_slash): Use
9625 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
9626 (rpl_rename_dest_slash): Perform the cheaper trailing slash
9627 test before testing whether SRC is a directory.
9628 Suggestions from Bruno Haible.
9630 Avoid a warning about an unused variable.
9631 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
9632 into the #ifdef block where it's used.
9634 * lib/rename-dest-slash.c: New file.
9636 2006-09-14 Bruno Haible <bruno@clisp.org>
9638 * lib/allocsa.c: Include <config.h> unconditionally.
9639 * lib/asnprintf.c: Likewise.
9640 * lib/asprintf.c: Likewise.
9641 * lib/c-strcasecmp.c: Likewise.
9642 * lib/c-strcasestr.c: Likewise.
9643 * lib/c-strncasecmp.c: Likewise.
9644 * lib/c-strstr.c: Likewise.
9645 * lib/classpath.c: Likewise.
9646 * lib/clean-temp.c: Likewise.
9647 * lib/concatpath.c: Likewise.
9648 * lib/copy-file.c: Likewise.
9649 * lib/csharpcomp.c: Likewise.
9650 * lib/csharpexec.c: Likewise.
9651 * lib/execute.c: Likewise.
9652 * lib/fatal-signal.c: Likewise.
9653 * lib/findprog.c: Likewise.
9654 * lib/fwriteerror.c: Likewise.
9655 * lib/gl_array_list.c: Likewise.
9656 * lib/gl_array_oset.c: Likewise.
9657 * lib/gl_avltree_list.c: Likewise.
9658 * lib/gl_avltree_oset.c: Likewise.
9659 * lib/gl_avltreehash_list.c: Likewise.
9660 * lib/gl_carray_list.c: Likewise.
9661 * lib/gl_linked_list.c: Likewise.
9662 * lib/gl_linkedhash_list.c: Likewise.
9663 * lib/gl_list.c: Likewise.
9664 * lib/gl_oset.c: Likewise.
9665 * lib/gl_rbtree_list.c: Likewise.
9666 * lib/gl_rbtree_oset.c: Likewise.
9667 * lib/gl_rbtreehash_list.c: Likewise.
9668 * lib/imaxabs.c: Likewise.
9669 * lib/imaxdiv.c: Likewise.
9670 * lib/javacomp.c: Likewise.
9671 * lib/javaexec.c: Likewise.
9672 * lib/javaversion.c: Likewise.
9673 * lib/linebreak.c: Likewise.
9674 * lib/localcharset.c: Likewise.
9675 * lib/lock.c: Likewise.
9676 * lib/mbchar.c: Likewise.
9677 * lib/mbswidth.c: Likewise.
9678 * lib/mkdtemp.c: Likewise.
9679 * lib/pipe.c: Likewise.
9680 * lib/printf-args.c: Likewise.
9681 * lib/printf-parse.c: Likewise.
9682 * lib/progname.c: Likewise.
9683 * lib/progreloc.c: Likewise.
9684 * lib/readlink.c: Likewise.
9685 * lib/sh-quote.c: Likewise.
9686 * lib/stpcpy.c: Likewise.
9687 * lib/stpncpy.c: Likewise.
9688 * lib/strcasecmp.c: Likewise.
9689 * lib/strcasestr.c: Likewise.
9690 * lib/strcspn.c: Likewise.
9691 * lib/striconv.c: Likewise.
9692 * lib/strncasecmp.c: Likewise.
9693 * lib/strnlen1.c: Likewise.
9694 * lib/strstr.c: Likewise.
9695 * lib/strtok_r.c: Likewise.
9696 * lib/tls.c: Likewise.
9697 * lib/tmpdir.c: Likewise.
9698 * lib/unicodeio.c: Likewise.
9699 * lib/unsetenv.c: Likewise.
9700 * lib/vasnprintf.c: Likewise.
9701 * lib/vasprintf.c: Likewise.
9702 * lib/wait-process.c: Likewise.
9703 * lib/xallocsa.c: Likewise.
9704 * lib/xsetenv.c: Likewise.
9705 * lib/xstriconv.c: Likewise.
9707 2006-09-13 Simon Josefsson <jas@extundo.com>
9709 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
9710 that internally, suggested by Ralf Wildenhues
9711 <Ralf.Wildenhues@gmx.de>.
9713 2006-09-13 Simon Josefsson <jas@extundo.com>
9715 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
9717 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9719 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
9721 * lib/_fpending.c: Include <config.h> unconditionally, since we no
9722 longer worry about uses that don't define HAVE_CONFIG_H.
9723 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
9724 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
9725 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
9726 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
9727 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
9728 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
9729 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
9730 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
9731 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
9732 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
9733 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
9734 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
9735 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
9736 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
9737 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
9738 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
9739 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
9740 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
9741 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
9742 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
9743 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
9744 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
9745 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
9746 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
9747 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
9748 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
9749 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
9750 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
9751 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
9752 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
9753 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
9754 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
9755 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
9756 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
9757 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
9758 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
9759 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
9760 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
9761 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
9762 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
9763 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
9766 2006-09-13 Eric Blake <ebb9@byu.net>
9768 * lib/getopt.c: Fix typo in last commit.
9770 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
9772 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
9775 2006-09-12 Jim Meyering <jim@meyering.net>
9777 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
9778 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
9779 Reported by Nelson H. F. Beebe.
9781 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
9783 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
9784 program_invocation_name and program_invocation_short_name are
9786 * lib/argp-namefrob.h: Move declarations of program_invocation_name
9787 and program_invocation_short_name to argp.h, so they are visible
9789 * lib/argp.h: Likewise
9791 2006-09-10 Bruno Haible <bruno@clisp.org>
9793 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
9794 m4/inttypes_h.m4, m4/uintmax_t.m4.
9796 2006-09-10 Bruno Haible <bruno@clisp.org>
9798 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
9799 gl_AC_TYPE_UINTMAX_T.
9801 2006-09-10 Bruno Haible <bruno@clisp.org>
9803 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
9805 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
9807 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
9808 convention. Text proposed by Bruno Haible.
9809 (struct argp_option): Document the use of N_() wrappers.
9811 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
9812 '\v', and translate the two parts separately, instead of feeding
9813 the whole string to gettext. This allows to exclude
9814 '\v' from the strings visible to the translator by writing doc
9815 strings as N_("..") "\v" N_("..").
9817 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
9819 * config/srclist.txt: Undo latest change; the bug was fixed.
9821 2006-09-09 Bruno Haible <bruno@clisp.org>
9823 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
9824 assignments if building a library without libtool.
9825 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
9826 in func_emit_lib_Makefile_am.
9827 (func_import): When building a static library libfoo.a, arrange to
9828 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
9829 (func_create_testdir): Likewise.
9830 * modules/gc (configure.ac, Makefile.am): If building statically,
9831 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
9832 * modules/iconvme (configure.ac, Makefile.am): Likewise.
9833 * modules/striconv (configure.ac, Makefile.am): Likewise.
9834 Based on a suggestion by Ralf Wildenhues.
9836 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
9838 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
9839 Check for unistd.h too, since Autoconf doesn't assume POSIX.
9842 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
9843 Add year_2050_test to catch glibc bug 2821
9844 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
9846 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
9847 Prefer #ifdef to #if.
9849 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
9850 Return from 'main' instead of calling 'exit'.
9852 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
9854 * lib/mktime.c (guess_time_tm): Fix bug where mktime
9855 returned the maximum time_t value rather than (time_t) -1.
9856 Problem originally reported by William Bardwell
9857 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
9859 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
9861 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
9864 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
9866 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
9869 2006-09-08 Jim Meyering <jim@meyering.net>
9871 Don't make generated files read-only. That would bother too many
9872 people. However, do retain the ability to work when targets are
9873 read-only: remove the destination and temporary files before writing
9874 them (when generated via sed or echo), or by using the -f option for
9875 both cp and mv commands. Suggestion to use -f from Paul Eggert.
9876 * modules/alloca-opt, modules/argz, modules/arpa_inet:
9877 * modules/byteswap, modules/configmake, modules/fcntl:
9878 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
9879 * modules/localcharset, modules/netinet_in, modules/poll:
9880 * modules/stdbool, modules/stdint, modules/sys_select:
9881 * modules/sys_socket, modules/sys_stat, modules/sysexits:
9883 2006-09-08 Jim Meyering <jim@meyering.net>
9885 Avoid new build failure on FreeBSD 6.0.
9886 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
9887 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
9888 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
9890 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9892 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
9894 2006-09-07 Jim Meyering <jim@meyering.net>
9896 Fix global typo in last change: use chmod u-w, not chmod u-x.
9897 Spotted by Paul Eggert and Bruce Korb.
9898 * modules/alloca-opt, modules/argz, modules/arpa_inet:
9899 * modules/byteswap, modules/configmake, modules/fcntl:
9900 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
9901 * modules/localcharset, modules/netinet_in, modules/poll:
9902 * modules/stdbool, modules/stdint, modules/sys_select:
9903 * modules/sys_socket, modules/sys_stat, modules/sysexits:
9905 2006-09-06 Jim Meyering <jim@meyering.net>
9907 Make generated files be read-only.
9908 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
9909 Ensure that each generated file is now read-only.
9910 * modules/argz: Likewise.
9911 * modules/arpa_inet: Likewise.
9912 * modules/byteswap: Likewise.
9913 * modules/configmake: Likewise.
9914 * modules/fcntl: Likewise.
9915 * modules/fnmatch: Likewise.
9916 * modules/getopt: Likewise.
9917 * modules/glob: Likewise.
9918 * modules/inttypes: Likewise.
9919 * modules/netinet_in: Likewise.
9920 * modules/poll: Likewise.
9921 * modules/stdbool: Likewise.
9922 * modules/stdint: Likewise.
9923 * modules/sys_select: Likewise.
9924 * modules/sys_socket: Likewise.
9925 * modules/sys_stat: Likewise.
9926 * modules/sysexits: Likewise.
9927 * modules/localcharset: Same as above, but continue using temporary
9928 file named "t-$@" (why different?) rather than the "$@-t" used
9931 * modules/sysexits (Makefile.am): Replace literal occurrences
9932 of "sysexit.h" more readable, and more consistent, "$@".
9934 2006-09-06 Bruno Haible <bruno@clisp.org>
9936 * modules/striconv: New file.
9937 * modules/xstriconv: New file.
9938 * MODULES.html.sh (Internationalization functions): Add striconv,
9941 2006-09-06 Bruno Haible <bruno@clisp.org>
9943 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
9944 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
9945 not using libtool correctly.
9947 2006-09-06 Bruno Haible <bruno@clisp.org>
9949 * lib/striconv.h: New file.
9950 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
9952 * lib/xstriconv.h: New file.
9953 * lib/xstriconv.c: New file.
9955 2006-09-06 Bruno Haible <bruno@clisp.org>
9957 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
9960 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9962 * lib/argz_.h: Sync from Libtool.
9964 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
9965 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9967 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
9969 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
9971 * modules/trim: New file.
9973 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
9975 * lib/trim.h: New file.
9976 * lib/trim.c: New file.
9978 2006-09-05 Bruno Haible <bruno@clisp.org>
9980 * MODULES.html.sh (String handling): Add trim.
9982 2006-09-04 Karl Berry <karl@gnu.org>
9984 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
9987 2006-09-03 Bruno Haible <bruno@clisp.org>
9989 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
9992 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
9994 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
9995 not gl_GETLOADAVG. Omit unneeded semicolons.
9996 Problems reported by Ralf Wildenhues in
9997 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
9998 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
9999 at the end, which is the usual gnulib style.
10001 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
10002 of doing all the work ourselves.
10003 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
10004 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
10006 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
10008 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
10009 Problem reported by Ralf Wildenhues in
10010 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10012 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
10013 HAVE_STRUCT_STATFS_F_FSTYPENAME.
10015 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
10017 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
10018 yesterday's patch by changing test -n to test -z.
10020 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
10022 * modules/getloadavg (Files): Add m4/getloadavg.m4.
10023 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
10024 the former is now obsolescent.
10026 * modules/chdir-long (Depends-on): Add fcntl.
10028 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
10030 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
10031 obsolescent, and programs should use gnulib instead.
10032 * m4/getloadavg.m4: New file, with contents taken from Autoconf
10033 but with prefixes changed.
10035 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
10037 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
10038 or stdbool.h, because they might not exist while configuring.
10040 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
10041 Don't include unistd.h or limits.h; not needed, since chdir-long.h
10043 (O_DIRECTORY): Remove.
10045 2006-08-31 Eric Blake <ebb9@byu.net>
10047 * gnulib-tool: Don't let emacs change spaces to TAB.
10049 2006-08-31 Bruno Haible <bruno@clisp.org>
10051 * gnulib-tool: When calling func_import more than once, do it in a
10053 Reported by Eric Blake <ebb9@byu.net>.
10055 2006-08-31 Bruno Haible <bruno@clisp.org>
10057 * gnulib-tool (nl): Remove variable.
10058 (sed_transform_lib_file): Use more robust test for config-h module.
10059 (func_import): Fix typo in 2006-08-25 patch.
10061 2006-08-31 Bruno Haible <bruno@clisp.org>
10063 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
10064 specified, augment Makefile.am variables instead of assigning them.
10066 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
10068 Work around a bug in both the Linux and SunOS 64-bit kernels:
10069 nanosleep mishandles sleeps for longer than 2**31 seconds.
10070 Problem reported by Frank v Waveren in
10071 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10072 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
10073 Check for nanosleep bug.
10074 (LIB_NANOSLEEP): Append clock_gettime library if needed.
10076 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
10078 Work around a bug in both the Linux and SunOS 64-bit kernels:
10079 nanosleep mishandles sleeps for longer than 2**31 seconds.
10080 Problem reported by Frank v Waveren in
10081 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10082 * lib/nanosleep.c (BILLION): New constant.
10083 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
10084 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
10087 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
10089 * modules/nanosleep (Depends-on): Add gettime.
10091 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
10092 and Simon Josefsson <jas@extundo.com>
10093 and Oskar Liljeblad <oskar@osk.mine.nu>
10095 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
10096 * gnulib-tool (func_import): New license type 'unmodifiable license
10098 * modules/fdl: Use it. Longer description.
10099 * module/gpl, module/lgpl: New files.
10101 2006-08-30 Jim Meyering <jim@meyering.net>
10103 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
10104 shadowing the parameter.
10106 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10110 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10112 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
10113 sharing with gnulib. Report by Eric Blake.
10115 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
10117 * modules/isapipe: New file.
10118 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
10120 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
10122 * modules/configmake (Makefile.am): Add a comment, and omit
10123 the CONFIGMAKE_ prefix from generated macro names. Suggested
10126 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
10128 * m4/isapipe.m4: New file.
10130 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
10132 * lib/isapipe.c, lib/isapipe.h: New files.
10134 2006-08-29 Jim Meyering <jim@meyering.net>
10136 * modules/configmake (Makefile.am): Make configmake.h depend on
10137 Makefile. Otherwise, a stale configmake.h could hang around.
10139 2006-08-29 Eric Blake <ebb9@byu.net>
10141 * lib/error.c (error_at_line, print_errno_message): Match libc, after
10142 resolution of upstream bug 3044.
10144 2006-08-29 Bruno Haible <bruno@clisp.org>
10146 * modules/localcharset (Depends-on): Add configmake.
10147 (Makefile.am): Remove setting of LIBDIR through DEFS.
10149 2006-08-29 Bruno Haible <bruno@clisp.org>
10151 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
10154 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
10156 * modules/fcntl: New file.
10157 * modules/chdir-safer (Depends-on): Add fcntl.
10158 * modules/fts: Likewise.
10159 * modules/mkdir-p: Likewise.
10161 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
10162 This undoes the most recent change, since we're now addressing the
10163 problem in a different way.
10165 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
10166 into output, since the output might be called Makefile.am even
10167 if $makefile_name is something different.
10168 (func_import): Use $makefile_am rather than
10169 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
10172 * modules/inttypes (Files): Add m4/inttypes-h.m4.
10174 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
10176 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
10177 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
10178 recent change to stdint.m4, since we're now addressing the problem in a
10181 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
10183 * m4/fcntl_h.m4: New file.
10185 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
10187 * lib/fcntl_.h: New file.
10188 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
10190 * lib/dirchownmod.c: Likewise.
10191 * lib/fts.c: Likewise.
10193 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
10194 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
10195 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
10196 just before including <inttypes.h>, to avoid circular inclusion.
10198 2006-08-28 Jim Meyering <jim@meyering.net>
10200 * doc/visibility.texi: Actually read and correct the grammar of the
10201 sentence affected by yesterday's change.
10203 2006-08-28 Eric Blake <ebb9@byu.net>
10205 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
10208 2006-08-28 Eric Blake <ebb9@byu.net>
10210 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
10212 2006-08-28 Eric Blake <ebb9@byu.net>
10214 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
10216 2006-08-28 Bruno Haible <bruno@clisp.org>
10218 * modules/c-strstr: New file, from GNU gettext.
10219 * MODULES.html.sh (String handling): Add c-strstr.
10221 2006-08-28 Bruno Haible <bruno@clisp.org>
10223 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
10225 Reported by Eric Blake.
10227 2006-08-28 Bruno Haible <bruno@clisp.org>
10229 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
10230 (VASNPRINTF): Return a string of length > INT_MAX without failing.
10231 * lib/vasprintf.c: Include errno.h, limits.h.
10232 (EOVERFLOW): New fallback definition.
10233 (vasprintf): Test here whether the string length is > INT_MAX.
10234 * lib/vsnprintf.c: Include errno.h, limits.h.
10235 (EOVERFLOW): New fallback definition.
10236 (vsnprintf): Fix bug when generated string was too long for the buffer.
10237 Test here whether the string length is > INT_MAX.
10239 2006-08-28 Bruno Haible <bruno@clisp.org>
10241 * lib/inttypes_.h (SCNX*): Remove definitions.
10242 Reported by Eric Blake.
10244 2006-08-28 Bruno Haible <bruno@clisp.org>
10246 * lib/c-strstr.h: New file, from GNU gettext.
10247 * lib/c-strstr.c: New file, from GNU gettext.
10249 2006-08-28 Bruno Haible <bruno@clisp.org>
10251 * gnulib-tool: Reorder some statements.
10253 2006-08-28 Bruno Haible <bruno@clisp.org>
10255 * gnulib-tool: New option --makefile-name.
10256 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
10258 (func_import): Write $makefile_name to the cache file, and read it from
10259 there unless explicitly specified. Use $makefile_name as file name
10260 instead of Makefile.am. Adjust the recommendations accordingly.
10262 2006-08-28 Bruno Haible <bruno@clisp.org>
10264 * gnulib-tool (func_verify_module): Check against misapplying patch.
10266 2006-08-28 Bruno Haible <bruno@clisp.org>
10268 * gnulib-tool (func_relativize, func_relconcat): New functions.
10269 Give an error if --local-dir is given with --update.
10270 Remove trailing slashes from $local_gnulib_dir.
10271 (func_import): Store the relativized $local_gnulib_dir in
10272 gnulib-cache.m4, and read it from there if not specified explicitly.
10274 2006-08-28 Bruno Haible <bruno@clisp.org>
10276 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
10277 is the current directory. Respect also $local_gnulib_dir.
10279 2006-08-28 Bruno Haible <bruno@clisp.org>
10280 Simon Josefsson <jas@extundo.com>
10283 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
10285 2006-08-27 Jim Meyering <jim@meyering.net>
10287 * doc/visibility.texi: Remove duplicate word: "pointer".
10289 2006-08-26 Bruno Haible <bruno@clisp.org>
10291 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
10292 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
10293 (Makefile.am): Create inttypes.h from inttypes_.h.
10294 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
10296 * modules/imaxabs: New file.
10298 * modules/imaxdiv: New file.
10300 2006-08-26 Bruno Haible <bruno@clisp.org>
10302 * m4/inttypes.m4: New file.
10303 * m4/_inttypes_h.m4: Remove file.
10304 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
10306 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
10308 * m4/imaxabs.m4: New file.
10310 * m4/imaxdiv.m4: New file.
10312 2006-08-26 Bruno Haible <bruno@clisp.org>
10314 * lib/inttypes_.h: New file.
10315 * lib/inttypes.h: Remove file.
10316 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
10318 * lib/imaxabs.c: New file.
10320 * lib/imaxdiv.c: New file.
10322 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
10324 New config-h module, so that "make" output needn't be cluttered
10325 by -DHAVE_CONFIG_H.
10326 * MODULES.html.sh (Support for building libraries and executables):
10328 * modules/config-h: New file.
10329 * gnulib-tool (nl, sed_transform_lib_file): New vars.
10330 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
10331 the config-h module is used.
10333 New configmake module, so that "make" output needn't be cluttered
10334 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
10335 * MODULES.html.sh (Support for building libraries and executables):
10337 * modules/configmake: New file.
10339 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
10341 * m4/config-h.m4: New file.
10343 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
10345 * config/srclist.txt: Add elisp-comp.
10347 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
10349 * MODULES.html.sh (Support for building libraries and executables):
10351 * build-aux/elisp-comp: New file.
10352 * modules/elisp-comp: New file.
10354 2006-08-24 Bruno Haible <bruno@clisp.org>
10356 * gnulib-tool (func_create_testdir): Use non-default values of
10357 sourcebase and m4base.
10359 2006-08-24 Bruno Haible <bruno@clisp.org>
10361 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
10364 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
10366 * modules/openat (Depends-on): Add lchown.
10368 2006-08-23 Bruno Haible <bruno@clisp.org>
10370 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
10371 of gl_LOCK_EARLY instead of gl_LOCK.
10373 2006-08-23 Bruno Haible <bruno@clisp.org>
10375 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
10377 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
10379 2006-08-23 Bruno Haible <bruno@clisp.org>
10381 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
10384 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
10385 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
10386 (gl_LOCK): New macro.
10388 2006-08-22 Simon Josefsson <jas@extundo.com>
10390 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
10393 2006-08-22 Simon Josefsson <jas@extundo.com>
10395 * MODULES.html.sh: Add "Support for maintaining and release
10398 * build-aux/gnupload: New file, from coreutils.
10400 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
10402 Avoid the need for AC_LIBSOURCES in m4 macros.
10403 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
10404 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
10405 * modules/check-version (EXTRA_DIST): Add check-version.h.
10406 * modules/crc (EXTRA_DIST): Add crc.h.
10407 * modules/des (EXTRA_DIST): Add des.h.
10408 * modules/gc (EXTRA_DIST): Add gc.h.
10409 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
10410 * modules/getline (EXTRA_DIST): Add getline.h.
10411 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
10412 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
10413 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
10414 * modules/md2 (EXTRA_DIST): Add md2.h.
10415 * modules/md4 (EXTRA_DIST): Add md4.h.
10416 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
10417 * modules/read-file (EXTRA_DIST): Add read-file.h.
10418 * modules/readline (EXTRA_DIST): Add readline.h.
10419 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
10420 rijndael-api-fst.h.
10422 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
10424 * m4/rijndael.m4 (gl_ARCFOUR):
10425 * m4/arctwo.m4 (gl_ARCTWO):
10426 * m4/check-version.m4 (gl_CHECK_VERSION):
10427 * m4/crc.m4 (gl_CRC):
10428 * m4/des.m4 (gl_DES):
10429 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
10430 * m4/gc.m4 (gl_GC):
10431 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10432 * m4/getline.m4 (gl_FUNC_GETLINE):
10433 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
10434 * m4/hmac-md5.m4 (gl_HMAC_MD5):
10435 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
10436 * m4/md2.m4 (gl_MD2):
10437 * m4/md4.m4 (gl_MD4):
10438 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
10439 * m4/read-file.m4 (gl_FUNC_READ_FILE):
10440 * m4/readline.m4 (gl_FUNC_READLINE):
10441 * m4/rijndael.m4 (gl_RIJNDAEL):
10442 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
10443 to get the necessary .h files and whatnot.
10445 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
10447 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
10448 gnulib rather than the other way around.
10449 * config/srclistvars.sh (COREUTILS): Remove.
10451 2006-08-22 Jim Meyering <jim@meyering.net>
10453 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
10455 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
10457 2006-08-22 Eric Blake <ebb9@byu.net>
10459 * modules/regexprops-generic: New file.
10460 * MODULES.html.sh (Support for building documentation): List it.
10462 2006-08-22 Eric Blake <ebb9@byu.net>
10464 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
10465 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10466 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
10467 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10469 2006-08-22 Bruno Haible <bruno@clisp.org>
10471 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
10472 and lib_LTLIBRARIES like the other lib_* variables.
10474 2006-08-22 Bruno Haible <bruno@clisp.org>
10476 * build-aux/x-to-1.in: New file, from GNU gettext.
10478 2006-08-22 Bruno Haible <bruno@clisp.org>
10480 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
10483 2006-08-22 Bruno Haible <bruno@clisp.org>
10485 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
10488 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
10491 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
10493 Problem reported by Bruno Haible.
10495 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
10497 Avoid the need for AC_LIBSOURCES in m4 macros.
10498 * modules/acl (EXTRA_DIST): Add acl.h.
10499 * modules/argmatch (Files): Add m4/argmatch.m4.
10500 (configure.ac): Add gl_ARGMATCH.
10501 (EXTRA_DIST): Renamed from lib_SOURCES, for
10502 consistency with the other modules. Remove argmatch.c.
10503 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
10504 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
10505 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
10506 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
10507 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
10508 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
10509 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
10510 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
10511 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
10512 * modules/closeout (EXTRA_DIST): Add closeout.h.
10513 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
10514 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
10515 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
10516 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
10517 dirname.h; remove basename.c and stripslash.c.
10518 * modules/exclude (EXTRA_DIST): Add exclude.h.
10519 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
10520 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
10521 * modules/file-type (EXTRA_DIST): Add file-type.h.
10522 * modules/filemode (EXTRA_DIST): Add filemode.h.
10523 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
10524 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
10525 * modules/fpending (EXTRA_DIST): Add __fpending.h.
10526 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
10527 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
10528 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
10529 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
10530 * modules/getdate (EXTRA_DIST): Add getdate.c.
10531 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
10532 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
10533 * modules/getpass (EXTRA_DIST): Add getpass.h.
10534 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
10535 * modules/group-member (EXTRA_DIST): Add group-member.h.
10536 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
10537 * modules/hash (EXTRA_DIST): Add hash.h.
10538 * modules/human (EXTRA_DIST): Add human.h.
10539 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
10540 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
10541 * modules/lchown (EXTRA_DIST): Add lchown.h.
10542 * modules/long-options (EXTRA_DIST): Add long-options.h.
10543 * modules/lstat (EXTRA_DIST): Add lstat.h.
10544 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
10545 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
10546 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
10547 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
10548 * modules/memxor (EXTRA_DIST): Add memxor.h.
10549 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
10550 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
10551 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
10552 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
10553 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
10554 * modules/physmem (EXTRA_DIST): Add physmem.h.
10555 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
10556 * modules/posixver (EXTRA_DIST): Add posixver.h.
10557 * modules/quote (EXTRA_DIST): Add quote.h.
10558 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
10559 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
10560 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
10561 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
10562 regex_internal.h regexec.c.
10563 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
10564 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
10565 * modules/same (EXTRA_DIST): Add same.h.
10566 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
10567 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
10568 * modules/savedir (EXTRA_DIST): Add savedir.h.
10569 * modules/sha1 (EXTRA_DIST): Add sha1.h.
10570 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
10571 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
10572 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
10573 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
10574 * modules/strdup (EXTRA_DIST): Add strdup.h.
10575 * modules/strftime (EXTRA_DIST): Add strftime.h.
10576 * modules/strndup (EXTRA_DIST): Add strndup.h.
10577 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
10578 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
10579 * modules/time_r (EXTRA_DIST): Add time_r.h.
10580 * modules/timespec (EXTRA_DIST): Add timespec.h.
10581 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
10582 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
10583 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
10584 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
10585 * modules/userspec (EXTRA_DIST): Add userspec.h.
10586 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
10587 * modules/utimens (EXTRA_DIST): Add utimens.h.
10588 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
10589 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
10590 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
10591 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
10592 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
10593 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
10594 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
10595 * modules/yesno (EXTRA_DIST): Add yesno.h.
10597 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
10599 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
10601 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
10602 * m4/dev-ino.m4, same-inode.m4: Remove.
10604 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
10605 * m4/acl.m4 (AC_FUNC_ACL):
10606 * m4/backupfile.m4 (gl_BACKUPFILE):
10607 * m4/c-strtod.m4 (gl_C99_STRTOLD):
10608 * m4/canon-host.m4 (gl_CANON_HOST):
10609 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
10610 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
10611 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
10612 * m4/cloexec.m4 (gl_CLOEXEC):
10613 * m4/close-stream.m4 (gl_CLOSE_STREAM):
10614 * m4/closeout.m4 (gl_CLOSEOUT):
10615 * m4/dirfd.m4 (gl_FUNC_DIRFD):
10616 * m4/dirname.m4 (gl_DIRNAME):
10617 * m4/exclude.m4 (gl_EXCLUDE):
10618 * m4/exitfail.m4 (gl_EXITFAIL):
10619 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
10620 * m4/file-type.m4 (gl_FILE_TYPE):
10621 * m4/filemode.m4 (gl_FILEMODE):
10622 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
10623 * m4/fpending.m4 (gl_FUNC_FPENDING):
10624 * m4/fprintftime.m4 (gl_FPRINTFTIME):
10625 * m4/fts.m4 (gl_FUNC_FTS):
10626 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
10627 * m4/getdate.m4 (gl_GETDATE):
10628 * m4/gethrxtime.m4 (gl_GETHRXTIME):
10629 * m4/getpagesize.m4 (gl_GETPAGESIZE):
10630 * m4/getpass.m4 (gl_FUNC_GETPASS):
10631 * m4/gettime.m4 (gl_GETTIME):
10632 * m4/getugroups.m4 (gl_GETUGROUPS):
10633 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
10634 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
10635 * m4/hard-locale.m4 (gl_HARD_LOCALE):
10636 * m4/hash.m4 (gl_HASH):
10637 * m4/idcache.m4 (gl_IDCACHE):
10638 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
10639 * m4/lchown.m4 (gl_FUNC_LCHOWN):
10640 * m4/long-options.m4 (gl_LONG_OPTIONS):
10641 * m4/lstat.m4 (gl_FUNC_LSTAT):
10642 * m4/md5.m4 (gl_MD5):
10643 * m4/memcasecmp.m4 (gl_MEMCASECMP):
10644 * m4/memcoll.m4 (gl_MEMCOLL):
10645 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
10646 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
10647 * m4/memxor.m4 (gl_MEMXOR):
10648 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
10649 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
10650 * m4/modechange.m4 (gl_MODECHANGE):
10651 * m4/mountlist.m4 (gl_MOUNTLIST):
10652 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
10653 * m4/openat.m4 (gl_FUNC_OPENAT):
10654 * m4/pathmax.m4 (gl_PATHMAX):
10655 * m4/physmem.m4 (gl_PHYSMEM):
10656 * m4/posixtm.m4 (gl_POSIXTM):
10657 * m4/posixver.m4 (gl_POSIXVER):
10658 * m4/quote.m4 (gl_QUOTE):
10659 * m4/quotearg.m4 (gl_QUOTEARG):
10660 * m4/readtokens.m4 (gl_READTOKENS):
10661 * m4/readutmp.m4 (gl_READUTMP):
10662 * m4/regex.m4 (gl_REGEX):
10663 * m4/safe-read.m4 (gl_SAFE_READ):
10664 * m4/safe-write.m4 (gl_SAFE_WRITE):
10665 * m4/same.m4 (gl_SAME):
10666 * m4/save-cwd.m4 (gl_SAVE_CWD):
10667 * m4/savedir.m4 (gl_SAVEDIR):
10668 * m4/settime.m4 (gl_SETTIME):
10669 * m4/sha1.m4 (gl_SHA1):
10670 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
10671 * m4/stat-macros.m4 (gl_STAT_MACROS):
10672 * m4/stat-time.m4 (gl_STAT_TIME):
10673 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
10674 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
10675 * m4/strdup.m4 (gl_FUNC_STRDUP):
10676 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
10677 * m4/strndup.m4 (gl_FUNC_STRNDUP):
10678 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
10679 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
10680 * m4/time_r.m4 (gl_TIME_R):
10681 * m4/timespec.m4 (gl_TIMESPEC):
10682 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
10683 * m4/unlinkdir.m4 (gl_UNLINKDIR):
10684 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
10685 * m4/userspec.m4 (gl_USERSPEC):
10686 * m4/utimecmp.m4 (gl_UTIMECMP):
10687 * m4/utimens.m4 (gl_UTIMENS):
10688 * m4/xalloc.m4 (gl_XALLOC):
10689 * m4/xgetcwd.m4 (gl_XGETCWD):
10690 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
10691 * m4/xreadlink.m4 (gl_XREADLINK):
10692 * m4/xstrtod.m4 (gl_XSTRTOD):
10693 * m4/yesno.m4 (gl_YESNO):
10694 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
10695 to get the necessary .h files and whatnot.
10697 2006-08-21 Mark D. Baushke <mdb@gnu.org>
10698 Bruno Haible <bruno@clisp.org>
10700 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
10701 /bin/sh understanding of '!' conditional negation.
10703 2006-08-21 Jim Meyering <jim@meyering.net>
10705 * modules/openat (Depends-on): Really alphabetize.
10707 * modules/acl (Depends-on): Add error and quote.
10709 * check-module (find_included_lib_files): Add at-func.c to the
10710 ok-to-include-more-than-once white list.
10712 * modules/openat (Depends-on): Add lstat. Alphabetize.
10714 2006-08-21 Bruno Haible <bruno@clisp.org>
10716 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10717 Emit a pkgdata_DATA variable only if some snippets add contents to it.
10718 Reported by Martin Lambers <marlam@marlam.de>.
10720 2006-08-21 Bruno Haible <bruno@clisp.org>
10722 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
10723 specify an installation location, don't emit a noinst_LIBRARIES or
10724 noinst_LTLIBRARIES assignment.
10726 2006-08-21 Bruno Haible <bruno@clisp.org>
10729 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
10730 BeOS has mbrtowc() but no <wctype.h>.
10732 2006-08-21 Bruno Haible <bruno@clisp.org>
10735 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
10738 2006-08-21 Bruno Haible <bruno@clisp.org>
10741 * lib/mbchar.h: Include <wctype.h> only if it exists.
10743 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
10745 Remove files that are no longer needed by their respective modules.
10746 * m4/obstack.m4: Remove.
10747 * m4/strerror_r.m4: Remove.
10748 * m4/uint32_t.m4: Remove.
10749 * m4/uintptr_t.m4: Remove.
10750 * m4/ullong_max.m4: Remove.
10751 * m4/xstrtoimax.m4: Remove.
10752 * m4/xstrtoumax.m4: Remove.
10754 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
10755 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
10756 dependencies now capture this.
10758 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
10759 Do not use AC_LIBSOURCES, since gnulib modules now do this.
10760 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
10761 * m4/human.m4 (gl_HUMAN): Likewise.
10762 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
10763 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
10765 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
10767 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
10768 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
10770 * m4/human.m4 (gl_HUMAN): Likewise.
10771 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
10772 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
10773 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
10774 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
10775 * m4/xstrtol (gl_XSTRTOL): Likewise.
10777 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
10778 AC_TYPE_LONG_LONG_INT.
10779 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
10780 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
10781 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
10782 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
10784 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
10787 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
10788 (gl_PREREQ_XSTRTOUL): Remove.
10790 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
10792 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
10795 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
10797 Add and change modules to make it easier for coreutils to use
10799 * modules/backupfile (Files): Remove m4/d-ino.m4.
10800 (Depends-on): Add d-ino.
10801 * modules/cycle-check (Depends-on): Add stdint.
10802 (lib_SOURCES): Add cycle-check.h.
10803 * modules/d-ino: New module.
10804 * modules/d-type: New module.
10805 * modules/error (Files): Remove m4/strerror_r.m4.
10806 * modules/filemode (Files): Add m4/st_dm_mode.m4.
10807 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
10808 m4/inttypes_h.m4, m4/uintmax_t.m4.
10809 (Depends-on): Add stdint.
10810 (lib_SOURCES): Add fsusage.h.
10811 * modules/getcwd (Files): Remove d-ino.m4.
10812 (Depends-on): Add d-ino.
10813 * modules/getndelim2 (Depends-on): Add stdint.
10814 * modules/glob (Files): Remove m4/d-type.m4.
10815 (Depends-on): Add d-type.
10816 * modules/host-os: New module.
10817 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
10818 m4/inttypes_h.m4, m4/uintmax_t.m4.
10819 * Depends-on: Add stdint.
10820 (lib_SOURCES): Add human.h.
10821 * modules/inttostr (Files): Remove m4/intmax_t.m4,
10822 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
10823 m4/uintmax_t.m4, m4/ulonglong.m4.
10824 (Depends-on): Add stdint.
10825 (EXTRA_DIST): Add inttostr.h.
10826 * modules/lchmod: New module.
10827 * modules/link-follow: New module.
10828 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
10829 (Depends-on): Add lchmod.
10830 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
10831 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
10832 (Depends-on): Add stdint.
10833 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
10834 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
10835 (Depends-on): Add stdint.
10836 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
10837 * modules/perl: New module.
10838 * modules/regex (Depends-on): Add stdint.
10839 * modules/rmdir-errno: New module.
10840 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
10842 (Depends-on): Add stdint.
10843 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
10845 (Depends-on): Add stdint.
10846 * modules/unlink-busy: New module.
10847 * modules/utimecmp (Depends-on): Add stdint.
10848 * modules/uptime: New module.
10849 * modules/winsz-ioctl: New module.
10850 * modules/winsz-termios: New module.
10851 * modules/xnanosleep (Depends-on): Add nanosleep.
10852 * modules/ullong_max: Remove.
10853 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
10854 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
10855 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
10856 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
10857 (Depends-on): Add inttypes.
10858 (lib_SOURCES): Add xstrtol.h.
10859 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
10860 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
10861 * MODULES.html.sh: Move 'assert' into the assert section.
10862 Move 'dummy' into the linking section.
10864 Add section for compatibility checks for POSIX:2001 functions,
10865 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
10866 winsz-ioctl, and winsz-termios into it.
10868 Add top-level Misc section and put host-os, perl, and uptime
10871 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
10873 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
10874 now assume the stdint module. Do not include inttypes.h.
10875 * lib/fsusage.h: Likewise.
10876 * lib/getndelim2.c: Likewise.
10877 * lib/human.h: Likewise.
10878 * lib/inttostr.h: Likewise.
10879 * lib/obstack.c: Likewise.
10880 * lib/regex_internal.h: Likewise.
10881 * lib/tempname.c: Likewise.
10882 * lib/utimecmp.c: Likewise.
10883 * lib/xstrtol.h: Likewise.
10885 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
10887 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
10888 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
10889 * lib/xtime.h: Likewise.
10891 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
10893 * modules/openat (Files): Add lib/fchmodat.c.
10894 Fixes problem reported by Jay Youngman.
10896 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
10898 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
10899 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
10901 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
10902 Bruno Haible <bruno@clisp.org>
10904 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
10905 and is a script that invokes bison. Tighten the code. Add comments.
10907 2006-08-18 Jim Meyering <jim@meyering.net>
10909 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
10910 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
10911 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
10912 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
10914 2006-08-18 Bruno Haible <bruno@clisp.org>
10916 * modules/bison-i18n: New file.
10917 * MODULES.html.sh (Internationalization functions): Add it.
10919 2006-08-18 Bruno Haible <bruno@clisp.org>
10921 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
10922 sys/statvfs.h. When getmntinfo was found, check its declaration and
10923 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
10925 2006-08-18 Bruno Haible <bruno@clisp.org>
10927 * m4/bison-i18n.m4: New file, from bison.
10929 2006-08-18 Bruno Haible <bruno@clisp.org>
10931 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
10932 (ME_DUMMY): Treat "kernfs" as a dummy.
10933 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
10935 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
10937 Update from coreutils.
10939 2006-08-15 Jim Meyering <jim@meyering.net>
10941 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
10943 2006-01-17 Jim Meyering <jim@meyering.net>
10945 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
10947 2006-01-11 Jim Meyering <jim@meyering.net>
10949 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
10950 Check for the lchmod function.
10952 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
10954 Update from coreutils.
10956 * lib/__fpending.h: Add copyright notice.
10957 * lib/fprintftime.h: Likewise.
10958 * lib/savedir.c: Use (C) in copyright notice.
10959 * lib/savedir.h: Likewise.
10961 2006-08-15 Jim Meyering <jim@meyering.net>
10963 * lib/at-func.c: New file, with the logic of all emulated at-functions.
10964 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
10965 in support of the EXPECTED_ERRNO macro.
10966 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
10967 definitions. Instead, define the appropriate symbols and include
10969 * lib/mkdirat.c (mkdirat): Likewise.
10970 * lib/fchmodat.c (fchmodat): Likewise.
10971 (ENOSYS): Remove definition.
10972 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
10973 it. Don't include "unistd--.h" -- it wasn't ever used.
10975 2006-01-17 Jim Meyering <jim@meyering.net>
10977 Rewrite fts.c not to change the current working directory,
10978 by using openat, fstatat, fdopendir, etc..
10980 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
10981 (HAVE_OPENAT_SUPPORT): Define.
10982 [_LIBC] (fchdir): Don't undef or define; no longer used.
10983 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
10984 Now, this `function' always succeeds, and consumes its file descriptor
10985 parameter -- so callers must not close such FDs. Update callers.
10986 (diropen_fd, opendirat, cwd_advance_fd): New functions.
10987 (diropen): Add parameter, SP. Adjust all callers.
10988 Implement using diropen_fd, rather than open.
10989 (fts_open): Initialize new member, fts_cwd_fd.
10990 Remove fts_rft-setting code.
10991 (fts_close): Close fts_cwd_fd, if necessary.
10992 (__opendir2): Define in terms of opendir or opendirat,
10993 depending on whether the FST_NOCHDIR flag is set.
10994 (fts_build): Since fts_safe_changedir consumes its FD, and since
10995 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
10996 and close the dup'd file descriptor upon failure.
10997 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
10998 (fts_safe_changedir): Tweak semantics to reflect that this function
10999 now calls cwd_advance_fd and hence consumes its FD argument.
11000 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
11001 [struct FTS] (fts_rft): Remove now-unused member.
11002 [struct FTS] (fts_cycle.state): Improve comment.
11004 * lib/openat.c (openat_needs_fchdir): New function.
11005 * lib/openat.h (openat_needs_fchdir): Declare it.
11007 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
11009 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
11010 Problem and fix reported by Pádraig Brady in
11011 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
11013 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11015 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
11017 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11019 * lib/memcoll.c (memcoll): Optimize for the common case where the
11020 arguments are bytewise equal.
11022 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11024 * doc/regexprops-generic.texi: Add a copyright notice.
11026 2006-08-15 Bruno Haible <bruno@clisp.org>
11028 * modules/tmpdir (License): Change to LGPL.
11030 2006-08-15 Bruno Haible <bruno@clisp.org>
11032 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
11035 2006-08-14 Simon Josefsson <jas@extundo.com>
11037 * config/srclist.txt: Add gnupload.
11039 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
11041 Change copyright notice from LGPL 2 to GPL 2, since that's the
11042 standard form used in the gnulib repository.
11043 * tests/test-lock.c: Likewise.
11044 * tests/test-stdint.c: Likewise.
11045 * tests/test-tls.c: Likewise.
11047 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
11048 prelude-manager. User shorter URLs for GNU projects, without '?'.
11049 Add copyright notice.
11051 * check-module: Add copyright notice. Output a copyright
11052 notice if "--version" is specified.
11053 * modules/COPYING: New file.
11054 * tests/test-getaddrinfo.c: Add copyright notice.
11055 * tests/test-verify.c: Likewise.
11057 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
11059 Change copyright notice from LGPL 2 to GPL 2, since that's the
11060 standard form used in the gnulib repository.
11061 * lib/lock.c: LGPL -> GPL.
11062 * lib/lock.h: Likewise.
11063 * lib/strnlen1.c: Likewise.
11064 * lib/strnlen1.h: Likewise.
11065 * lib/tls.c: Likewise.
11066 * lib/tls.h: Likewise.
11067 * lib/tmpdir.c: Likewise.
11069 * lib/TODO: Remove; this belongs only in coreutils.
11071 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
11073 Add copyright notices to long-enough files that lack them, since
11074 otherwise the files aren't clearly free. Use the same notice that
11075 getdate.texi already uses.
11076 * doc/alloca-opt.texi: Add copyright notice.
11077 * doc/alloca.texi: Likewise.
11078 * doc/ctime.texi: Likewise.
11079 * doc/functions.texi: Likewise.
11080 * doc/gcd.texi: Likewise.
11081 * doc/gnulib-tool.texi: Likewise.
11082 * doc/inet_ntoa.texi: Likewise.
11083 * doc/visibility.texi: Likewise.
11085 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
11086 * doc/quote.texi: Add copyright notice.
11088 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
11089 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
11090 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
11091 Mention SunOS 5.11. Mention that everything before SunOS 5.7
11092 is now obsolete, and give a pointer to the Sun list.
11093 Add copyright notice.
11095 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
11097 * config/srclistvars.sh: Add copyright notice.
11099 2006-08-14 Eric Blake <ebb9@byu.net>
11101 Import the following change from libc:
11103 2006-08-12 Ulrich Drepper <drepper@redhat.com>
11106 * lib/misc/error.c: Add space between program name and message if file
11109 2006-08-12 Karl Berry <karl@gnu.org>
11111 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
11112 remove, these originate in gnulib now.
11114 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11116 * doc/Makefile (standards.info standards.html standards.dvi):
11117 Also depend on make-stds.texi.
11119 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
11121 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
11122 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
11124 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
11125 in wchar_t. Problem reported by Eric Blake.
11127 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
11128 LEN is smaller than SIZE. Suggested by Bruno Haible.
11129 Also, help the compiler to keep LEN in a register.
11131 2006-08-11 Eric Blake <ebb9@byu.net>
11133 * users.txt: Sort. Add tar.
11135 2006-08-11 Bruno Haible <bruno@clisp.org>
11137 * users.txt: New file.
11139 2006-08-11 Bruno Haible <bruno@clisp.org>
11141 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
11142 before <wchar.h>. Needed for OSF/1 and BSD/OS.
11144 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
11146 * modules/snprintf (Depends-on): Remove minmax.
11147 (Maintainer): Add self and Bruno.
11149 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
11151 * lib/.cppi-disable: Add snprintf.h, socket_.h.
11152 * lib/snprintf.c: Include <errno.h> and <limits.h>.
11153 (EOVERFLOW): Define if the system does not.
11154 Do not include "minmax.h"; it wasn't used.
11155 (snprintf): Don't assume size_t promotes to an unsigned type.
11156 Fix bug when generated string was too long for the buffer: the
11157 buffer's contents are supposed to be the initial prefix of the
11158 output. Don't assume vasnprintf returns EOVERFLOW if the size
11159 exceeds INT_MAX; do the check ourselves.
11161 Import the following changes from libc:
11163 2006-06-02 Jakub Jelinek <jakub@redhat.com>
11165 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
11166 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
11167 set wc to the byte which couldn't be converted.
11168 (re_string_reconstruct): Don't clear valid_raw_len before calling
11169 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11170 tip_context using re_string_context_at.
11172 2006-05-02 Ulrich Drepper <drepper@redhat.com>
11174 * lib/posix/regex.h: g++ still cannot handled [restrict].
11176 2006-04-21 Ulrich Drepper <drepper@redhat.com>
11178 * lib/posix/regex.h: Remove special handling for VMS.
11180 2006-08-10 Jim Meyering <jim@meyering.net>
11182 * modules/same-inode: New module.
11183 * modules/dev-ino: New module.
11184 * modules/cycle-check: Depend on these modules, rather than simply
11185 including their .h files.
11186 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
11187 required via m4/cycle-check.m4.
11188 * modules/same: Depend on new same-inode module, rather than
11189 including same-inode.h.
11190 * modules/chdir-safer: New file.
11192 * modules/chown (Depends-on): Add stat-macros.
11194 2006-08-10 Jim Meyering <jim@meyering.net>
11196 * m4/cycle-check.m4: New file.
11197 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
11198 * m4/dev-ino.m4, m4/same-inode.m4: New files.
11200 2006-08-10 Eric Blake <ebb9@byu.net>
11202 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
11203 in from original proposal.
11205 2006-08-10 Eric Blake <ebb9@byu.net>
11206 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11208 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
11211 2006-08-10 Bruno Haible <bruno@clisp.org>
11213 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
11216 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
11218 Sync from coreutils.
11220 2006-07-19 Mike Frysinger <vapier@gentoo.org>
11222 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
11223 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
11225 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
11227 * modules/restrict: Remove; no longer needed now that we assume
11228 Autoconf 2.59 or later.
11229 * MODULES.html.sh: Remove 'restrict'.
11230 * modules/argp (Depends-on): Remove 'restrict'.
11231 * modules/base64 (Depends-on): Likewise.
11232 * modules/gc (Depends-on): Likewise.
11233 * modules/getaddrinfo (Depends-on): Likewise.
11234 * modules/glob (Depends-on): Likewise.
11235 * modules/inet_ntop (Depends-on): Likewise.
11236 * modules/inet_pton (Depends-on): Likewise.
11237 * modules/memxor (Depends-on): Likewise.
11238 * modules/regex (Depends-on): Likewise.
11239 * modules/strtok_r (Depends-on): Likewise.
11240 * modules/time_r (Depends-on): Likewise.
11242 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
11244 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
11245 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
11246 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11247 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
11248 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11249 * m4/memxor.m4 (gl_MEMXOR): Likewise.
11250 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
11251 gl_C_RESTRICT replaced by AC_C_RESTRICT.
11253 Merge from coreutils.
11254 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
11255 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
11256 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11257 * m4/time_r.m4 (gl_TIME_R): Likewise.
11259 2006-08-09 Karl Berry <karl@gnu.org>
11261 * config/srclist.txt: no more gettext-tools, per Bruno.
11263 2006-08-08 Eric Blake <ebb9@byu.net>
11265 * modules/verror: New module.
11266 * MODULES.html.sh: Document it.
11268 2006-08-08 Eric Blake <ebb9@byu.net>
11270 * lib/verror.h, lib/verror.c: New files.
11272 2006-08-08 Eric Blake <ebb9@byu.net>
11274 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
11275 verror_at_line output complies with GNU Coding Standards even when
11278 2006-08-07 Bruno Haible <bruno@clisp.org>
11280 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
11282 Reported by Ralf Wildenhues.
11284 2006-08-07 Bruno Haible <bruno@clisp.org>
11286 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
11287 in an AC_DEFUN. Needed so that the autoconf snippets can use
11290 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11292 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11293 Initialize pkgdata_DATA.
11294 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
11297 2006-08-06 Eric Blake <ebb9@byu.net>
11299 * lib/error.h: Fold in some upstream changes from glibc.
11300 * lib/error.c: Likewise.
11302 2006-08-04 Bruno Haible <bruno@clisp.org>
11304 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11305 Make the mostlyclean-local rule depend on mostlyclean-generic.
11306 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
11308 2006-07-31 Bruno Haible <bruno@clisp.org>
11310 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
11311 <stdlib.h>, <string.h>.
11313 2006-07-30 Bruno Haible <bruno@clisp.org>
11315 * modules/readlink (License): Change to LGPL.
11317 2006-07-30 Bruno Haible <bruno@clisp.org>
11319 * modules/javaversion (Makefile.am): Distribute javaversion.java and
11320 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
11321 set PKGDATADIR to point to it.
11323 2006-07-30 Bruno Haible <bruno@clisp.org>
11325 * modules/csharpexec (configure.ac): Comment out macro invocation.
11326 * modules/javaexec (configure.ac): Likewise.
11327 * modules/javacomp-script (configure.ac): Likewise.
11329 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
11331 2006-07-30 Bruno Haible <bruno@clisp.org>
11333 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
11336 2006-07-30 Bruno Haible <bruno@clisp.org>
11338 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
11340 2006-07-30 Bruno Haible <bruno@clisp.org>
11342 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11343 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
11346 2006-07-29 Bruno Haible <bruno@clisp.org>
11348 Make it possible for gnulib-tool to work with locally modified or
11349 augmented gnulib repositories.
11350 * gnulib-tool (func_usage): Document --local-dir option.
11351 (local_gnulib_dir): New variable.
11352 Handle --local-dir option.
11353 (func_lookup_file): New function.
11354 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
11355 (func_get_description, func_get_filelist, func_get_description,
11356 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
11357 func_get_automake_snippet, func_get_include_directive,
11358 func_get_license, func_get_maintainer): Use func_lookup_file.
11359 (func_import, func_create_testdir): Use func_lookup_file.
11361 2006-07-29 Bruno Haible <bruno@clisp.org>
11363 * modules/setenv (Depends-on): Add unistd.
11365 2006-07-29 Bruno Haible <bruno@clisp.org>
11367 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
11369 2006-07-29 Bruno Haible <bruno@clisp.org>
11371 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
11373 2006-07-29 Bruno Haible <bruno@clisp.org>
11375 * gnulib-tool (import, update): If there is no Makefile.am, look at
11376 aclocal.m4, instead of bailing out.
11378 2006-07-29 Bruno Haible <bruno@clisp.org>
11380 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
11381 Categorize the options by when they are useful.
11383 2006-07-29 Bruno Haible <bruno@clisp.org>
11385 * gnulib-tool (func_usage): Document option --no-libtool.
11386 Handle option --no-libtool.
11387 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
11388 for changed semantics of $libtool variable.
11389 (func_import): Likewise. If libtool is not used, show this through
11390 an option --no-libtool.
11391 (func_create_testdir): Update.
11393 2006-07-29 Bruno Haible <bruno@clisp.org>
11395 * gnulib-tool (func_import): Extend error message about missing
11398 2006-07-29 Bruno Haible <bruno@clisp.org>
11400 * gnulib-tool (func_import): Don't create the $docbase directory if
11401 there is no file to store there.
11403 2006-07-29 Bruno Haible <bruno@clisp.org>
11405 * gnulib-tool (autoconf_minversion): If a --dir option is given and
11406 relevant, look for configure.ac there, not in the current directory.
11407 Also use a simple search for AC_PREREQ, not "autoconf --trace".
11409 2006-07-29 Bruno Haible <bruno@clisp.org>
11411 * gnulib-tool (SORT): New variable.
11412 (func_usage): Undocument --assume-autoconf option.
11413 Remove --assume-autoconf option handling.
11414 (autoconf_minversion): Determine from the contents of configure.ac.
11415 (func_import): Remove autoconf_minversion handling.
11416 Suggested by Eric Blake.
11418 2006-07-29 Bruno Haible <bruno@clisp.org>
11420 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
11422 2006-07-29 Bruno Haible <bruno@clisp.org>
11424 * config/srclist.txt (*setenv.[ch]): Remove rules.
11426 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11428 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
11430 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11432 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
11435 2006-07-28 Simon Josefsson <jas@extundo.com>
11437 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
11438 * modules/inet_pton (Depends-on): Likewise.
11440 2006-07-28 Simon Josefsson <jas@extundo.com>
11442 * m4/netinet_in_h.m4: New file.
11444 2006-07-28 Simon Josefsson <jas@extundo.com>
11446 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
11449 2006-07-28 Simon Josefsson <jas@extundo.com>
11451 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
11454 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
11456 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
11457 setgid on directories only if they set these bits.
11458 * lib/modechange.h: Remove obsolete comment about masks.
11460 2006-07-28 Eric Blake <ebb9@byu.net>
11462 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
11465 2006-07-28 Bruno Haible <bruno@clisp.org>
11467 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
11469 2006-07-28 Bruno Haible <bruno@clisp.org>
11471 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
11473 2006-07-28 Bruno Haible <bruno@clisp.org>
11475 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11476 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
11478 Avoids link error on FreeBSD 4.x.
11479 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11481 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
11483 * lib/mbswidth.c (iswcntrl): Likewise.
11485 2006-07-27 Bruno Haible <bruno@clisp.org>
11487 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
11490 2006-07-27 Bruno Haible <bruno@clisp.org>
11492 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
11493 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
11496 2006-07-26 Eric Blake <ebb9@byu.net>
11498 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
11500 2006-07-26 Eric Blake <ebb9@byu.net>
11502 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
11503 like mingw that lack mkstemp.
11504 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
11505 avoid compilation warning on mingw.
11507 2006-07-26 Bruno Haible <bruno@clisp.org>
11509 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
11510 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
11511 INT_FAST*_MIN, INTPTR_MIN.
11513 2006-07-25 Bruno Haible <bruno@clisp.org>
11515 * modules/version-etc (Depends-on): Add stdarg.
11517 2006-07-25 Bruno Haible <bruno@clisp.org>
11519 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
11522 2006-07-25 Bruno Haible <bruno@clisp.org>
11524 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
11525 defined in <stdarg.h> or config.h.
11527 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
11529 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
11530 (gl_STDIO_SAFER): Remove.
11532 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
11534 * MODULES.html.sh (File stream based Input/Output):
11535 Add fopen-safer, tmpfile-safer; remove stdio-safer.
11536 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
11537 * modules/fopen-safer, modules/tmpfile-safer: New files.
11538 * modules/stdio-safer: Remove.
11540 2006-07-24 Bruno Haible <bruno@clisp.org>
11542 * modules/tmpdir: New file.
11543 * MODULES.html.sh (File system functions): Add it.
11545 2006-07-24 Bruno Haible <bruno@clisp.org>
11547 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
11548 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
11550 2006-07-24 Bruno Haible <bruno@clisp.org>
11552 * modules/clean-temp: New file.
11554 2006-07-24 Bruno Haible <bruno@clisp.org>
11556 * m4/tmpdir.m4: New file, from GNU gettext.
11558 2006-07-24 Bruno Haible <bruno@clisp.org>
11560 * lib/tmpdir.h: New file, from GNU gettext.
11561 * lib/tmpdir.c: New file, from GNU gettext.
11563 2006-07-24 Bruno Haible <bruno@clisp.org>
11565 * lib/clean-temp.h: New file, from GNU gettext.
11566 * lib/clean-temp.c: New file, from GNU gettext.
11568 2006-07-23 Eric Blake <ebb9@byu.net>
11570 * modules/stdio-safer (Files): Add tmpfile-safer.c.
11571 (Depends-on): Add binary-io.
11573 2006-07-23 Eric Blake <ebb9@byu.net>
11575 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
11577 2006-07-23 Eric Blake <ebb9@byu.net>
11579 * lib/tmpfile-safer.c: New file.
11580 * lib/stdio-safer.h (fopen_safer): Add prototype.
11581 * lib/stdio--.h (tmpfile): Make safer.
11583 2006-07-23 Bruno Haible <bruno@clisp.org>
11585 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
11586 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
11587 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
11588 gl_linked_remove_at): Use it.
11590 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11591 and Simon Josefsson <jas@extundo.com>
11593 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
11595 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
11597 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
11599 * modules/close-stream: New file.
11600 * modules/closeout (Description): Make it clear that it exits
11601 with a diagnostic on error.
11602 (Depends-on): Add close-stream. Remove fpending, stdbool.
11603 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
11605 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
11607 * m4/close-stream.m4: New file.
11609 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
11611 * lib/close-stream.c, lib/close-stream.h: New files.
11613 2006-07-22 Bruno Haible <bruno@clisp.org>
11615 Merge from GNU gettext 0.15.
11617 2006-05-01 Bruno Haible <bruno@clisp.org>
11619 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
11621 2006-07-22 Bruno Haible <bruno@clisp.org>
11623 * modules/javaversion: New file.
11624 * MODULES.html.sh (Java): Add javaversion.
11626 2006-03-12 Bruno Haible <bruno@clisp.org>
11628 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
11630 2005-12-04 Bruno Haible <bruno@clisp.org>
11632 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
11635 2006-06-21 Bruno Haible <bruno@clisp.org>
11637 Avoid warnings from recent versions of mcs.
11638 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
11639 -o, -L, -r any more. Use options documented since mcs-1.0
11640 instead. Similarly for -g.
11642 2005-12-04 Bruno Haible <bruno@clisp.org>
11644 * build-aux/csharpcomp.sh.in: Suffix for resources is
11645 .resources, not .resource.
11647 2005-07-09 Bruno Haible <bruno@clisp.org>
11649 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
11651 Reported by Mark Junker <mjscod@gmx.de>.
11653 2006-07-22 Bruno Haible <bruno@clisp.org>
11655 * modules/gettext: Upgrade to gettext-0.15.
11656 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
11658 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
11660 2006-07-22 Bruno Haible <bruno@clisp.org>
11662 Merge from GNU gettext 0.15.
11664 2006-03-25 Bruno Haible <bruno@clisp.org>
11666 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
11668 2006-07-21 Bruno Haible <bruno@clisp.org>
11670 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
11673 2006-05-09 Bruno Haible <bruno@clisp.org>
11675 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
11676 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
11677 for the conftestver execution.
11679 2006-05-01 Bruno Haible <bruno@clisp.org>
11681 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
11682 optional target-version argument. Verify that the compiler
11683 groks source of the specified source-version, or add -source
11684 option as necessary. Verify that the compiler produces
11685 bytecode in the specified target-version, or add -target and
11686 -source options as necessary. Make the result of the test
11687 available as variable CONF_JAVAC. Also log error output in
11690 2006-03-11 Bruno Haible <bruno@clisp.org>
11692 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
11694 2006-05-09 Bruno Haible <bruno@clisp.org>
11696 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
11697 CLASSPATH_SEPARATOR to a semicolon.
11699 2006-03-12 Bruno Haible <bruno@clisp.org>
11701 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
11702 available as variable CONF_JAVA, for subsequent autoconf
11703 tests. Also log error output in config.log.
11705 2006-07-19 Bruno Haible <bruno@clisp.org>
11707 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
11708 that getline works on glibc2 systems. Needed to avoid trouble
11710 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
11712 2005-12-04 Bruno Haible <bruno@clisp.org>
11714 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
11715 launcher (untested).
11717 2005-12-04 Bruno Haible <bruno@clisp.org>
11719 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
11721 2006-07-22 Bruno Haible <bruno@clisp.org>
11723 * gettext.m4: Update from GNU gettext-0.15.
11724 * nls.m4: Likewise.
11726 * inttypes-pri.m4: Likewise.
11727 * inttypes-h.m4: Renamed from inttypes.m4.
11728 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
11730 2006-07-22 Bruno Haible <bruno@clisp.org>
11732 Merge from GNU gettext 0.15.
11734 2005-07-05 Bruno Haible <bruno@clisp.org>
11736 * printf-args.c (printf_fetchargs): Work around broken
11737 definition of wint_t on mingw.
11739 2005-02-12 Bruno Haible <bruno@clisp.org>
11741 * xallocsa.h: Add extern "C" for C++.
11743 2006-05-17 Bruno Haible <bruno@clisp.org>
11745 Cygwin portability.
11746 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
11748 2006-04-30 Bruno Haible <bruno@clisp.org>
11750 * progreloc.c: Include <mach-o/dyld.h> if available.
11751 (find_executable): Use _NSGetExecutablePath when possible.
11753 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
11755 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
11758 2005-12-29 Bruno Haible <bruno@clisp.org>
11760 * progreloc.c (set_program_name_and_installdir): Fix
11763 2005-12-04 Bruno Haible <bruno@clisp.org>
11765 Cygwin portability.
11766 * progreloc.c: Include <windows.h> also on Cygwin.
11767 (find_executable): Add support for Cygwin.
11768 (set_program_name_and_installdir): Handle also platforms with
11771 2006-07-11 Bruno Haible <bruno@clisp.org>
11773 * javacomp.c: Fix a comment.
11774 Reported by Jim Meyering.
11776 2006-04-30 Bruno Haible <bruno@clisp.org>
11778 * javacomp.h (compile_java_class): Add source_version,
11779 target_version arguments.
11780 * javacomp.c: Rewritten to choose only a compiler that
11781 respects the specified source_version and target_version.
11783 2006-06-27 Bruno Haible <bruno@clisp.org>
11785 Assume correct S_ISDIR macro.
11786 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
11788 2006-07-22 Bruno Haible <bruno@clisp.org>
11790 * javaversion.h: New file, from GNU gettext.
11791 * javaversion.c: New file, from GNU gettext.
11792 * javaversion.java: New file, from GNU gettext.
11793 * javaversion.class: New file, from GNU gettext.
11795 2006-05-17 Bruno Haible <bruno@clisp.org>
11797 Cygwin portability.
11798 * javaexec.c (execute_java_class): Test for jview program
11801 2006-04-09 Bruno Haible <bruno@clisp.org>
11803 * fatal-signal.c: Don't include string.h.
11804 (at_fatal_signal): Use a copying loop instead of memcpy.
11806 2005-12-04 Bruno Haible <bruno@clisp.org>
11808 * csharpexec.c: Add support for 'clix' launcher (untested).
11809 (execute_csharp_using_sscli): New function.
11810 (execute_csharp_program): Call it.
11812 2006-06-21 Bruno Haible <bruno@clisp.org>
11814 Avoid warnings from recent versions of mcs.
11815 * csharpcomp.c (compile_csharp_using_mono): Don't use options
11816 -o, -L, -r any more. Use options documented since mcs-1.0
11817 instead. Similarly for -g.
11819 2005-07-09 Bruno Haible <bruno@clisp.org>
11821 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
11823 Reported by Mark Junker <mjscod@gmx.de>.
11825 2006-06-17 Bruno Haible <bruno@clisp.org>
11827 * config.charset: Update for NetBSD 3.0.
11829 2006-05-17 Bruno Haible <bruno@clisp.org>
11831 Cygwin portability.
11832 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
11834 2006-05-16 Bruno Haible <bruno@clisp.org>
11836 * localcharset.c [CYGWIN]: Include <windows.h>.
11837 (get_charset_aliases): For Cygwin, return the same CPxxx
11838 aliases list as under WIN32.
11839 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
11840 the environment variables. Fall back to GetACP().
11842 2006-04-05 Bruno Haible <bruno@clisp.org>
11844 * config.charset: Update Juan Manuel Guerrero's address.
11846 2005-02-12 Bruno Haible <bruno@clisp.org>
11848 * allocsa.h: Add extern "C" for C++.
11850 2005-02-10 Bruno Haible <bruno@clisp.org>
11852 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
11853 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
11855 2006-07-22 Bruno Haible <bruno@clisp.org>
11857 * gettext.h: Update to GNU gettext-0.15.
11859 2006-07-22 Bruno Haible <bruno@clisp.org>
11861 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
11862 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
11863 lib-prefix.m4, longdouble.m4, ssize_t.m4.
11865 2006-07-21 Eric Blake <ebb9@byu.net>
11867 * modules/stdlib-safer: New file.
11868 * MODULES.html.sh (File stream based Input/Output): Add
11871 2006-07-21 Eric Blake <ebb9@byu.net>
11873 * lib/stdlib-safer.h: New file from coreutils, required by
11876 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
11878 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
11880 2006-07-20 Bruno Haible <bruno@clisp.org>
11882 * gnulib-tool: Recognize new option --assume-autoconf.
11883 (autoconf_minversion): New variable.
11884 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
11886 2006-07-20 Bruno Haible <bruno@clisp.org>
11888 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
11890 2006-07-19 Derek R. Price <derek@ximbiot.com>
11892 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
11893 Reindent and repaginate.
11895 2006-07-19 Derek Price <derek@ximbiot.com>
11897 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
11900 2006-07-17 Bruno Haible <bruno@clisp.org>
11902 * modules/list: New file.
11903 * modules/array-list: New file.
11904 * modules/carray-list, modules/carray-list-tests: New files.
11905 * modules/linked-list, modules/linked-list-tests: New files.
11906 * modules/avltree-list, modules/avltree-list-tests: New files.
11907 * modules/rbtree-list, modules/rbtree-list-tests: New files.
11908 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
11909 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
11910 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
11911 * modules/oset: New file.
11912 * modules/array-oset: New file.
11913 * modules/avltree-oset, modules/avltree-oset-tests: New files.
11914 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
11915 * tests/test-carray_list.c: New file.
11916 * tests/test-linked_list.c: New file.
11917 * tests/test-avltree_list.c: New file.
11918 * tests/test-rbtree_list.c: New file.
11919 * tests/test-linkedhash_list.c: New file.
11920 * tests/test-avltreehash_list.c: New file.
11921 * tests/test-rbtreehash_list.c: New file.
11922 * tests/test-avltree_oset.c: New file.
11923 * tests/test-rbtree_oset.c: New file.
11924 * MODULES.html.sh (Container data structures): New section.
11926 2006-07-17 Bruno Haible <bruno@clisp.org>
11928 * m4/gl_list.m4: New file.
11930 2006-07-17 Bruno Haible <bruno@clisp.org>
11932 * lib/gl_list.h: New file.
11933 * lib/gl_list.c: New file.
11934 * lib/gl_array_list.h: New file.
11935 * lib/gl_array_list.c: New file.
11936 * lib/gl_carray_list.h: New file.
11937 * lib/gl_carray_list.c: New file.
11938 * lib/gl_linked_list.h: New file.
11939 * lib/gl_linked_list.c: New file.
11940 * lib/gl_anylinked_list1.h: New file.
11941 * lib/gl_anylinked_list2.h: New file.
11942 * lib/gl_avltree_list.h: New file.
11943 * lib/gl_avltree_list.c: New file.
11944 * lib/gl_anyavltree_list1.h: New file.
11945 * lib/gl_anyavltree_list2.h: New file.
11946 * lib/gl_rbtree_list.h: New file.
11947 * lib/gl_rbtree_list.c: New file.
11948 * lib/gl_anyrbtree_list1.h: New file.
11949 * lib/gl_anyrbtree_list2.h: New file.
11950 * lib/gl_anytree_list1.h: New file.
11951 * lib/gl_anytree_list2.h: New file.
11952 * lib/gl_linkedhash_list.h: New file.
11953 * lib/gl_linkedhash_list.c: New file.
11954 * lib/gl_anyhash_list1.h: New file.
11955 * lib/gl_anyhash_list2.h: New file.
11956 * lib/gl_avltreehash_list.h: New file.
11957 * lib/gl_avltreehash_list.c: New file.
11958 * lib/gl_rbtreehash_list.h: New file.
11959 * lib/gl_rbtreehash_list.c: New file.
11960 * lib/gl_anytreehash_list1.h: New file.
11961 * lib/gl_anytreehash_list2.h: New file.
11963 * lib/gl_oset.h: New file.
11964 * lib/gl_oset.c: New file.
11965 * lib/gl_array_oset.h: New file.
11966 * lib/gl_array_oset.c: New file.
11967 * lib/gl_avltree_oset.h: New file.
11968 * lib/gl_avltree_oset.c: New file.
11969 * lib/gl_rbtree_oset.h: New file.
11970 * lib/gl_rbtree_oset.c: New file.
11971 * lib/gl_anytree_oset.h: New file.
11973 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
11975 * m4/mkancesdirs.m4: New file.
11976 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
11977 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
11978 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
11981 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
11983 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
11984 * lib/mkancesdirs.h: New files.
11985 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
11986 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
11987 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
11988 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
11989 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
11990 callers changed. Revamp internals significantly, by not
11991 attempting to create directories that are temporarily more
11992 permissive than the final results. Do not attempt to use
11993 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
11994 This removes some race conditions, fixes some bugs, and simplifies
11995 things. Use new dirchownmod function to do owner and mode changes.
11996 * lib/mkdir-p.h: Likewise.
11997 * lib/modechange.c (octal_to_mode): New function.
11998 (struct mode_change): New member mentioned.
11999 (make_node_op_equals): New arg mentioned. All callers changed.
12000 (mode_compile): Keep track of which mode bits the user has explicitly
12002 (mode_adjust): New arg DIR, so that we implement the X op correctly.
12003 New arg PMODE_BITS, to keep track of which mode bits the user
12004 mentioned; it treats S_ISUID and S_ISGID speciall.
12005 All callers changed.
12006 * lib/modechange.h: Likewise.
12008 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
12010 * MODULES.html.sh: Add mkancestors.
12011 * modules/mkancesdirs: New module.
12012 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
12013 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
12014 The chdir-safer and afs files are now orphans; I'll remove them
12015 unless someone speaks up.
12016 Add lib/dirchownmod.c, lib/dirchownmod.h.
12017 (Depends-on): Remove alloca, chown, save-cwd, dirname.
12018 Add lchown, mkancesdirs.
12019 (Maintainer): Add self.
12021 2006-07-15 Karl Berry <karl@gnu.org>
12023 * gnulib-tool: help message wording/arrangement.
12025 2006-07-14 Simon Josefsson <jas@extundo.com>
12027 * doc/gnulib.texi (Libtool and Windows): New section.
12029 2006-07-12 Simon Josefsson <jas@extundo.com>
12031 * modules/gendocs (License): Fix license, approved by Karl.
12033 2006-07-12 Eric Blake <ebb9@byu.net>
12035 * MODULES.html.sh: Add gendocs.
12037 2006-07-11 Eric Blake <ebb9@byu.net>
12039 * modules/fdl: New module, to install doc/fdl.texi.
12040 * MODULES.html.sh: Add new section for documentation modules.
12041 * gnulib-tool: Avoid space-tab.
12042 (--doc-base): New option, to manage files from doc.
12044 2006-07-11 Eric Blake <ebb9@byu.net>
12046 * m4/absolute-header.m4: Fix comments to match recent change.
12048 2006-07-11 Eric Blake <ebb9@byu.net>
12050 * gnulib-tool: List --doc-base before --tests-base.
12052 2006-07-11 Derek R. Price <derek@ximbiot.com>
12054 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
12056 2006-07-11 Bruno Haible <bruno@clisp.org>
12058 * README: Mention where to put documentation.
12060 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12062 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
12064 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
12066 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
12069 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
12071 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
12072 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
12073 "no/such/file/stdint.h" when there is no such file, so that
12074 the resulting C code can be parsed by dodgy compilers.
12075 Problems reported by Bob Proulx.
12077 2006-07-10 Derek R. Price <derek@ximbiot.com>
12079 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
12080 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
12081 macros into the GNU _D_EXACT_NAMLEN.
12082 * lib/savedir.c: Likewise.
12083 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
12085 2006-07-10 Derek R. Price <derek@ximbiot.com>
12086 and Paul Eggert <eggert@cs.ucla.edu>
12088 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
12090 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
12091 macros into the GNU _D_EXACT_NAMLEN.
12093 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
12095 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
12096 around the absolute name, to work around a problem with the HP-UX
12097 11.23 native C compiler, reported by Bob Proulx.
12099 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
12101 * doc/maintain.texi, make-stds.texi: Sync from
12102 <http://savannah.gnu.org/projects/gnustandards>.
12104 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
12106 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
12108 2006-07-09 Jim Meyering <jim@meyering.net>
12110 * m4/glob.m4: Remove a doubled word in a comment.
12112 2006-07-09 Jim Meyering <jim@meyering.net>
12114 * lib/argp-pv.c: Remove a doubled word in a comment.
12115 * lib/check-version.c (check_version): Likewise.
12116 * lib/javacomp.c (compile_java_class): Likewise.
12118 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
12120 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
12121 for the benefit of people using Autoconf 2.60. If you want to
12122 support older Autoconf versions you can copy m4/onceonly_2_57.m4
12123 (or m4/onceonly.m4, if pre-2.57) manually.
12125 2006-07-08 Jim Meyering <jim@meyering.net>
12127 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
12129 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
12130 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
12133 2006-07-08 Jim Meyering <jim@meyering.net>
12135 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
12137 2006-07-07 Simon Josefsson <jas@extundo.com>
12139 * tests/test-crc.c: Change expected crc value, the test vector
12140 were probably computed using the old broken crc.c?
12142 2006-07-06 Simon Josefsson <jas@extundo.com>
12144 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
12145 now the canonical place for the M4 file).
12147 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
12148 from the sys_socket dependency now.
12150 * modules/inet_pton (Files): Ditto.
12152 * modules/inet_ntop (Files): Ditto.
12154 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
12156 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
12157 not gl_PREREQ_GETUSERSHELL.
12159 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12161 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
12162 with only one argument, for Autoconf 2.60.
12163 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
12164 expand to nothing, so add a shell command to avoid syntax error.
12165 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12167 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12169 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
12171 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
12173 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
12174 no longer needed. Check for isblank decl.
12175 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
12176 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
12179 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
12181 * lib/getloadavg.c: Use __VMS, not VMS.
12182 * lib/getopt.c: Likewise.
12183 * lib/getpagesize.h: Likewise.
12184 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
12185 and probably does not work.
12187 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
12189 * lib/.cppi-disable: Add wcwidth.
12190 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
12191 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
12192 (ISGRAPH): Remove. All uses changed to isgraph.
12193 (FOLD) [!defined _LIBC]: Remove special case.
12194 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
12195 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
12197 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
12200 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
12202 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
12203 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
12204 brackets. Other minor changes to suppress some compiler
12207 2006-07-06 Derek R. Price <derek@ximbiot.com>
12208 and Paul Eggert <eggert@cs.ucla.edu>
12210 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
12211 of invoking obsolescent AC_HEADER_DIRENT macro.
12212 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12213 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
12214 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12215 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12216 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
12217 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12218 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
12219 * m4/readdir.m4: Remove; no longer needed.
12221 2006-07-06 Derek R. Price <derek@ximbiot.com>
12222 and Paul Eggert <eggert@cs.ucla.edu>
12224 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
12225 Don't worry about this obsolete case any more.
12226 (HAVE_DIR): Remove. All uses removed; we now assume you can read
12228 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
12229 worry about this obsolete case any more.
12230 * lib/fts.c: Likewise.
12231 * lib/getcwd.c: Likewise.
12232 * lib/glob.h: Likewise.
12233 * lib/savedir.c: Likewise.
12235 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
12237 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
12238 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
12239 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
12242 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12243 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12244 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
12246 * m4/getdate.m4 (gl_GETDATE): Likewise.
12247 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12248 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12249 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12250 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12251 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
12252 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12253 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
12256 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
12258 * lib/memcasecmp.c: Include <limits.h>.
12259 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
12260 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
12261 Don't assume isdigit succeeds only on '0' through '9'.
12263 2006-07-05 Eric Blake <ebb9@byu.net>
12265 * modules/getaddrinfo (Depends-on): Add snprintf.
12267 2006-07-05 Eric Blake <ebb9@byu.net>
12269 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
12270 to avoid 'header present but could not be compiled' on cygwin.
12272 2006-07-05 Eric Blake <ebb9@byu.net>
12274 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
12275 missing from netdb.h.
12276 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
12278 2006-07-05 Derek R. Price <derek@ximbiot.com>
12280 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
12282 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
12283 * m4/getdate.m4 (gl_GETDATE): Likewise.
12284 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
12285 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
12286 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12287 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
12288 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
12290 2006-07-05 Derek R. Price <derek@ximbiot.com>
12292 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
12293 All uses of is_space replaced by isspace.
12294 * lib/exit.h: Don't talk about STDC_HEADERS.
12295 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
12296 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
12297 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
12298 replaced by isprint etc.
12299 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
12300 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12301 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
12302 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
12303 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
12304 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
12306 2006-07-05 Bruno Haible <bruno@clisp.org>
12308 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
12309 the function exists, before testing against AIX.
12310 Reported by Martin Lambers <marlam@marlam.de>.
12312 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
12314 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
12315 From Mark D. Baushke.
12317 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
12319 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
12320 to the absolute name, not just one, to bypass Sun C 5.8's
12321 "warning: #include of /usr/include/... may be non-portable".
12323 2006-07-04 Eric Blake <ebb9@byu.net>
12325 * modules/dirname-tests: New test module.
12326 * tests/test-dirname.c: New file, replacing dirname.c
12327 TEST_DIRNAME section that was recently deleted.
12329 2006-07-04 Bruno Haible <bruno@clisp.org>
12331 Assume ANSI C header files and <ctype.h> functions.
12332 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
12333 (mbsnwidth): Use isprint, iscntrl instead.
12335 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
12337 Merge from coreutils.
12338 * MODULES.html.sh: Add xstrtold.
12339 * modules/xstrtold: New file.
12340 * modules/cycle-check (Files): Add lib/same-inode.h.
12341 * modules/dirname (Files): Add m4/double-slash-root.m4.
12342 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
12343 * modules/mkdir-p (Files): Add lib/same-inode.h.
12344 * modules/same (Files): Add lib/same-inode.h.
12346 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
12348 * m4/absolute-header.m4: Renamed from full-header-path.m4.
12349 This is to keep the terminology clean; POSIX talks about
12350 "absolute pathnames", not "full pathnames", but the GNU
12351 Coding Standards say to use "path" for something else;
12352 so use "absolute" to keep both sides happy.
12353 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
12354 Set gl_absolute_header, not gl_full_header_path.
12355 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
12356 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
12359 Merge from coreutils.
12361 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
12363 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
12364 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
12365 want to require the building of c-strtod.o.
12366 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
12367 needs -lm directly.
12368 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
12370 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
12372 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
12373 --as-needed option if available. Problem reported by Albert Chin in
12374 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
12375 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
12376 cc merely issues a bunch of annoying warnings for --as-needed
12377 (this problem was reported by Bob Proulx). Also, try linking with
12378 -lm to detect a bug in binutils 2.16 (this problem was reported
12379 by Ralf Wildenhues).
12381 2006-06-18 Jim Meyering <jim@meyering.net>
12383 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
12384 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
12386 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
12387 also check for glibc-2.4's abort-inducing bug.
12389 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
12390 Low-probability clean-up should be to use rmdir to get rid of
12391 the just-created directory, not unlink.
12393 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
12394 configure fail, and request a bug report to inform us about it.
12395 Add a comment that, barring reports to the contrary, in 2007 we'll
12396 assume ftruncate is universally available.
12398 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
12400 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
12402 2006-03-12 Jim Meyering <jim@meyering.net>
12404 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
12405 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
12406 * m4/same.m4 (gl_SAME): Likewise.
12407 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
12409 2006-03-11 Eric Blake <ebb9@byu.net>
12411 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
12412 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
12413 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
12414 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
12416 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
12418 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
12419 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
12420 reported by Mark D. Baushke, one in
12421 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
12423 Merge from coreutils.
12425 * lib/.cppi-disable: Add stdint_.h.
12426 * lib/.cvsignore: Add stdint.h.
12428 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
12430 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
12431 both double and long double versions.
12432 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
12433 * lib/xstrtold.c: New file.
12434 * lib/xstrtod.h (xstrtold): New decl.
12436 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
12438 * lib/filemode.c (setst): Remove.
12439 (strmode): Rewrite to avoid setst. This makes the code shorter,
12440 (arguably) clearer, and the generated code is a bit smaller on my
12441 Debian GNU/Linux stable x86 host.
12443 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
12445 * lib/filemode.c: Include "filemode.h" first, to test the interface.
12446 Assume that filemode.h includes sys/types.h and sys/stat.h.
12447 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
12448 (ftypelet): Reorder to put common cases first, for efficiency.
12449 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
12451 (strmode): Renamed from mode_string, and now stores 12 bytes instead
12452 of 10, for compatibility with FreeBSD. All callers changed.
12453 (filemodestring): Now stores 12 bytes instead of 10, and sets file
12454 types that can't be deduced solely from st_mode. First arg is now a
12456 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
12457 (strmode): Renamed from mode_string.
12458 (filemodestring): New decl.
12459 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
12460 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
12462 (S_ISPORT, S_ISWHT): New macros, if not already defined.
12464 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
12466 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
12467 fsusage.h now does that. Include fsusage.h first, to test interface.
12468 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
12469 at most one method (the old code could have generated decls that
12470 didn't conform to C89, not that this was ever exercised).
12471 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
12473 2006-03-19 Jim Meyering <jim@meyering.net>
12475 Work even in a chroot where d_ino values for entries in "/"
12476 don't match the stat.st_ino values for the same names.
12477 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
12478 number, iterate through all entries again, using lstat instead.
12479 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
12480 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
12482 * lib/getcwd.c (__getcwd): Clarify a comment.
12483 Use memcpy in place of a call to strcpy.
12485 2006-03-12 Jim Meyering <jim@meyering.net>
12487 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
12488 matches that of the current directory (which we're about to chdir ".."
12489 out of), then save the dev-ino of the parent, instead.
12491 * lib/same-inode.h (SAME_INODE): New file/macro.
12492 * lib/chdir-safer.c (SAME_INODE): Remove definition.
12493 Include "same-inode.h", instead.
12494 * lib/same.c: Likewise.
12495 * lib/cycle-check.h: Include "same-inode.h".
12496 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
12497 * lib/cycle-check.c (SAME_INODE): Remove definition.
12498 * lib/root-dev-ino.h: Include "same-inode.h".
12500 2006-03-11 Eric Blake <ebb9@byu.net>
12502 * lib/same.c (same_name): s/base_name/last_component/
12503 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
12504 * lib/filenamecat.c (file_name_concat): Likewise.
12506 2006-03-11 Eric Blake <ebb9@byu.net>,
12507 Paul Eggert <eggert@cs.ucla.edu>
12509 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
12510 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
12512 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
12513 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
12514 (last_component): New method.
12515 * lib/dirname.c (dir_len): Determine when drive letters need a
12516 subsequent slash. Preserve // when it is special.
12517 (dir_name): Don't append dot when drive letter is absolute.
12518 [TEST_DIRNAME]: Move into a full-blown gnulib test.
12519 * lib/basename.c (base_name): New semantics - malloc the result.
12520 Preserve // when it is special. Preserve relative files that look
12521 like drive letters.
12522 (base_len): Preserve // when it is special.
12523 (last_component): New method, similar to old base_name semantics.
12524 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
12525 base_name. Strip redundant slashes from ///.
12527 2006-07-03 Jim Meyering <jim@meyering.net>
12529 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
12530 macro is used before the first cycle_check call.
12532 2006-07-03 Eric Blake <ebb9@byu.net>
12534 * modules/dirname (Depends-on): Add xstrndup.
12536 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
12538 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
12539 test cases, so that config.log is a bit easier to follow.
12541 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
12543 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
12544 both are 64 bits, since this seems to be the tradition, and this
12545 prevents gcc -Wformat from warning about usages with PRIuMAX. If
12546 we ever run into a host that prefers long long to long in this
12547 case, we'll need another configure-time test. Problem reported by
12550 2006-07-02 Eric Blake <ebb9@byu.net>
12552 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
12554 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
12556 * modules/inttypes (Depends-on): No longer depends on stdint.
12557 * modules/stdint (Description): Say more about assumptions.
12558 Say that the fast types might differ. Say macros are used.
12559 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
12560 (Makefile.am): Revise list of substituted symbols to match
12562 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
12563 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
12564 * tests/test-stdint.c (verify_same_types)
12565 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
12566 the code conforms to C99/C89.
12567 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
12568 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
12570 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
12572 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
12573 but fix a bug, by requiring at least 64 bits.
12574 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
12575 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
12576 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
12577 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
12579 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
12580 changes. Make 2.59 a prerequisite. Check and substitute for
12581 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
12582 inttypes.h. Do not use special include files; just use the
12583 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
12584 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
12585 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
12586 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
12587 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
12588 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
12589 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
12590 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
12591 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
12592 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
12593 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
12594 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
12595 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
12596 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
12597 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
12598 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
12599 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
12600 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
12601 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
12602 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
12603 WINT_MAX. Check for C99 conformance more strictly, by detecting
12604 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
12605 not check for things that C99 does not require, e.g., int8_t. If
12606 a test isn't needed unless <stdint.h> isn't working, and is
12607 unlikely to be needed for any other reason, then don't do it
12608 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
12609 size_t, since we assume C89 freestanding at least. Do not check
12610 for sig_atomic_t, wchar_t, or wint_t, since the code now does
12611 the right thing even if the types are not defined. Instead use:
12612 (gl_STDINT_TYPE_PROPERTIES): New macro.
12613 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
12614 testing whether <sys/types.h> clashes, as Autoconf does this for
12615 us now. All uses removed.
12616 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
12617 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
12618 (gl_CHECK_TYPE_SAME):
12619 Remove; no longer needed.
12620 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
12621 exists, since we'll return 0 anyway in that case.
12622 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
12624 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
12626 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
12627 possible collision with system files.
12628 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
12629 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
12630 WCHAR_MIN and WCHAR_MAX in this case.
12631 (<stddef.h>): Do not include; no longer needed.
12632 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
12633 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
12634 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
12635 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
12636 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
12637 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
12638 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
12639 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
12640 !defined(__c99))]: Include in this case too, since it's harmless
12642 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
12643 dangerous to do so.
12644 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
12645 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
12646 (_STDINT_MIN, _STDINT_MAX): New macros.
12647 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
12648 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
12649 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
12650 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
12651 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
12652 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
12653 macros, not typedefs; this simplifies things quite a bit.
12654 Use long int for all types narrower than int64_t.
12655 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
12656 Define in terms of long long int or int64_t or long int,
12657 not int64_t or int32_t. This saves some compile-time testing.
12658 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
12659 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
12660 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
12661 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
12662 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
12663 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
12664 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
12665 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
12666 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
12667 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
12668 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
12669 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
12670 undef any previous version and define our own version, for
12671 simplicity and consistency with the new macros for types.
12672 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
12673 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
12674 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
12675 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
12676 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
12677 @WINT_T_SUFFIX@ to keep things simple here.
12678 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
12679 Simplify by assuming typical 8/16/32/64 host, since we're
12680 already doing that elsewhere anyway.
12681 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
12682 and assume long long int is 64 bits if available. This
12683 speeds up 'configure'.
12685 2006-07-01 Eric Blake <ebb9@byu.net>
12687 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
12688 Reported by Andreas Buening.
12690 2006-07-01 Eric Blake <ebb9@byu.net>
12692 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
12694 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
12696 * lib/getaddrinfo.c: fixed typo
12698 2006-06-29 Jim Meyering <jim@meyering.net>
12700 * modules/strftime (Maintainer): Add my name, since with the
12701 FPRINTFTIME changes strftime.c has forked from glibc.
12703 2006-06-29 Eric Blake <ebb9@byu.net>
12705 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
12707 2006-06-29 Eric Blake <ebb9@byu.net>
12709 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
12711 2006-06-29 Eric Blake <ebb9@byu.net>
12713 * lib/stat_.h: New file.
12715 2006-06-29 Eric Blake <ebb9@byu.net>
12717 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
12718 unused static function.
12720 2006-06-29 Eric Blake <ebb9@byu.net>
12722 * doc/functions.texi (Function Portability): Document missing lstat
12725 2006-06-29 Eric Blake <ebb9@byu.net>
12727 * MODULES.html.sh: Add sys_stat.
12728 * modules/sys_stat: New module.
12729 * modules/mkstemp (Depends-on): Add sys_stat.
12731 2006-06-29 Derek R. Price <derek@ximbiot.com>
12733 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
12735 2006-06-29 Derek R. Price <derek@ximbiot.com>
12737 * m4/c-bs-a.m4: Removed.
12739 2006-06-29 Derek R. Price <derek@ximbiot.com>
12741 * lib/strftime.c: Assume strftime() exists.
12743 2006-06-29 Derek Price <derek@ximbiot.com>
12745 * modules/c-bs-a: Removed - \a is C89.
12746 * MODULES.html.sh: Remove c-bs-a.
12748 2006-06-29 Bruno Haible <bruno@clisp.org>
12750 * modules/wcwidth (License): Change to LGPL.
12752 2006-06-28 Simon Josefsson <jas@extundo.com>
12754 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
12757 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
12760 2006-06-28 Simon Josefsson <jas@extundo.com>
12762 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
12764 2006-06-28 Simon Josefsson <jas@extundo.com>
12766 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
12767 functions there. It will succeed on Windows XP, but on Windows
12768 2000 and (presumably) earlier, it will fail, and use the internal
12770 (use_win32_p): New function.
12771 (getaddrinfo): Use strtoul on servname, to support numeric ports.
12772 Support AI_NUMERICSERV to disable getservbyname.
12773 (getnameinfo): New function, only supports
12774 NI_NUMERICHOST|NI_NUMERICSERV for now.
12776 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
12777 only have some of them. Add AI_NUMERICSERV. Add prototype for
12780 2006-06-28 Eric Blake <ebb9@byu.net>
12782 * modules/wcwidth: New file.
12783 * modules/mbchar (Depends-on): Add wcwidth.
12784 * modules/mbswidth (Depends-on): Add wcwidth.
12785 * MODULES.html.sh: Add wcwidth.
12787 2006-06-28 Eric Blake <ebb9@byu.net>
12789 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
12790 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
12792 2006-06-28 Eric Blake <ebb9@byu.net>
12794 * lib/xvasprintf.h: Fix comments.
12796 2006-06-28 Eric Blake <ebb9@byu.net>
12798 * lib/mbchar.h (wcwidth): Include wcwidth.h.
12799 * lib/mbswidth.c (wcwidth): Move from here...
12800 * lib/wcwidth.h: ...to this new file.
12802 2006-06-28 Derek R. Price <derek@ximbiot.com>
12804 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
12806 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
12808 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
12810 2006-06-28 Derek R. Price <derek@ximbiot.com>
12812 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
12813 Autoconf 2.60 says this stuff was obsolete.
12815 2006-06-28 Bruno Haible <bruno@clisp.org>
12817 * modules/wcwidth (Files): Add m4/wchar_t.m4.
12819 2006-06-28 Bruno Haible <bruno@clisp.org>
12821 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
12824 2006-06-28 Bruno Haible <bruno@clisp.org>
12826 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
12827 declaration for wcwidth.
12828 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
12830 2006-06-28 Bruno Haible <bruno@clisp.org>
12832 * lib/mkdtemp.c [MINGW]: Include <io.h>.
12833 (mkdir): Define using _mkdir.
12835 2006-06-28 Bruno Haible <bruno@clisp.org>
12837 * lib/getaddrinfo.h: Fix POSIX URL.
12838 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
12840 (use_win32_p): Make static.
12841 (getaddrinfo): Reject service name if it is empty or does not consist
12842 solely of decimal digits, or if its value is > 65535.
12843 (getnameinfo): Remove useless casts.
12845 2006-06-27 Simon Josefsson <jas@extundo.com>
12847 * modules/sys_select: New file, suggested by Bruno Haible, Paul
12848 Eggert and Martin Lambers.
12850 2006-06-27 Simon Josefsson <jas@extundo.com>
12852 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
12853 Eggert and Martin Lambers.
12855 2006-06-27 Bruno Haible <bruno@clisp.org>
12857 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
12858 result to 0, not to empty.
12859 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
12861 2006-06-27 Bruno Haible <bruno@clisp.org>
12863 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
12865 2006-06-26 Simon Josefsson <jas@extundo.com>
12867 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
12870 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
12872 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
12873 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
12874 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
12876 2006-06-26 Mark D. Baushke <mdb@gnu.org>
12878 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
12880 2006-06-26 Bruno Haible <bruno@clisp.org>
12882 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
12884 2006-06-26 Bruno Haible <bruno@clisp.org>
12886 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
12888 2006-06-26 Bruno Haible <bruno@clisp.org>
12890 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
12891 SGI C compiler in pre-C99 mode.
12892 Suggested by Mark D. Baushke and Larry Jones.
12894 2006-06-26 Bruno Haible <bruno@clisp.org>
12896 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
12898 Reported by Mark D. Baushke and Larry Jones.
12900 2006-06-26 Bruno Haible <bruno@clisp.org>
12902 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
12904 Suggested by Mark D. Baushke and Larry Jones.
12906 2006-06-23 Simon Josefsson <jas@extundo.com>
12907 Bruno Haible <bruno@clisp.org>
12909 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
12910 Emit mostlyclean-local rule.
12911 (func_emit_tests_Makefile_am): Likewise.
12912 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
12914 2006-06-23 Mark D. Baushke <mdb@gnu.org>
12916 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
12918 2006-06-23 Bruno Haible <bruno@clisp.org>
12920 * tests/test-stdint.c: Update to match ISO C 99 Technical
12923 2006-06-23 Bruno Haible <bruno@clisp.org>
12925 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
12927 2006-06-23 Bruno Haible <bruno@clisp.org>
12929 * lib/stdint_.h: Treat IRIX like OpenBSD.
12931 2006-06-23 Bruno Haible <bruno@clisp.org>
12933 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
12934 ISO C 99 Technical Corrigendum 1.
12936 2006-06-22 Simon Josefsson <jas@extundo.com>
12938 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
12941 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
12943 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
12944 needed. Some compiler complained about some of them. Problem reported
12946 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
12948 2006-06-21 Simon Josefsson <jas@extundo.com>
12950 * tests/test-getaddrinfo.c: New file.
12952 * modules/getaddrinfo-tests: New file.
12954 * MODULES.html.sh: Add inet_pton.
12956 * modules/inet_pton: New file.
12958 2006-06-21 Simon Josefsson <jas@extundo.com>
12960 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
12961 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
12962 of using the (limited) gnulib implementation on Windows XP.
12964 * m4/inet_pton.m4: New file.
12966 2006-06-21 Simon Josefsson <jas@extundo.com>
12968 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
12971 * lib/socket_.h: Don't define WINVER.
12973 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
12974 slightly modified to work in gnulib.
12976 2006-06-21 Simon Josefsson <jas@extundo.com>
12978 * doc/gnulib.texi (Windows sockets): Add.
12980 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
12982 * lib/read-file.c (fread_file): Start with buffer allocation of
12983 0 bytes rather than 1 byte; this simplifies the code.
12984 Don't invoke feof; it's not needed. Refactor to avoid duplicate
12985 code to free buffer and save/restore errno.
12986 (internal_read_file): Remove unused local.
12988 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
12990 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
12991 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
12992 Problem reported by Denis Excoffier in
12993 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
12995 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12997 * modules/sys_socket, modules/socklen: Include sys/types since
12998 FreeBSD 4.x's sys/socket.h needs it.
13000 2006-06-19 Simon Josefsson <jas@extundo.com>
13002 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
13004 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
13006 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
13008 2006-06-19 Bruno Haible <bruno@clisp.org>
13010 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
13011 and FULL_PATH_INTTYPES_H in angle brackets.
13012 Reported by Mark D. Baushke <mdb@gnu.org>.
13014 2006-06-17 Eric Blake <ebb9@byu.net>
13016 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
13019 2006-06-17 Bruno Haible <bruno@clisp.org>
13021 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
13024 2006-06-17 Bruno Haible <bruno@clisp.org>
13026 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
13027 whether errno is declared. Assume <errno.h> declares errno.
13029 2006-06-17 Bruno Haible <bruno@clisp.org>
13031 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
13033 2006-06-17 Bruno Haible <bruno@clisp.org>
13035 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
13036 problem on Solaris 2.5.1.
13038 2006-06-16 Eric Blake <ebb9@byu.net>
13040 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
13041 * lib/unicodeio.c [!defined errno]: Likewise.
13042 * lib/strtol.c [!defined errno]: Likewise.
13043 * lib/strtod.c [!defined errno]: Likewise.
13045 2006-06-15 Eric Blake <ebb9@byu.net>
13047 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
13049 2006-06-15 Eric Blake <ebb9@byu.net>
13051 * config/srclist.txt (ssize_t.m4): Lose sync.
13053 2006-06-15 Bruno Haible <bruno@clisp.org>
13055 * modules/stdint (Files): Include m4/full-header-path.m4,
13056 m4/size_max.m4, m4/wchar_t.m4.
13057 (Makefile.am): Many more substitutions.
13058 * modules/stdint-tests: New file.
13059 * tests/test-stdint.c: New file.
13061 2006-06-15 Bruno Haible <bruno@clisp.org>
13063 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
13064 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
13065 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
13066 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
13067 gl_CHECK_TYPE_SAME): New macros.
13069 2006-06-15 Bruno Haible <bruno@clisp.org>
13071 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
13073 2006-06-15 Bruno Haible <bruno@clisp.org>
13075 * lib/stdint_.h: Rewritten to be fully auto-configured.
13076 Fixes bug on HP-UX/IA64.
13078 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
13080 * lib/getdate.y (__attribute__): Don't define if already defined.
13081 Problem reported by Larry Jones.
13082 * lib/utimens.c (__attribute__): Likewise.
13084 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
13086 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
13087 reported by Andreas Schwab.
13089 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13090 Bruno Haible <bruno@clisp.org>
13092 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
13093 check for the declaration of strnlen and a run test that exposes the
13094 AIX 5.1 strnlen bug. In the failure case, #define strndup to
13097 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13098 Bruno Haible <bruno@clisp.org>
13100 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
13102 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13104 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
13105 compile test, for Tru64 4.0D.
13107 2006-05-28 Karl Berry <karl@gnu.org>
13109 * config/srclist.txt (printf-args.c): lose sync.
13111 2006-05-26 Martin Lambers <marlam@marlam.de>
13113 * lib/getpass.c: Updates the test for the native W32 API, and adds
13114 missing includes, thus fixing compilation warnings.
13116 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
13118 * lib/exclude.c (exclude_fnmatch): New function.
13119 (excluded_file_name): Call exclude_fnmatch.
13120 * lib/exclude.h (excluded_file_name): New prototype
13122 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
13124 * lib/tempname.c (small_open, large_open): New macros.
13125 (__open, __open64) [!_LIBC]: Remove.
13126 (__gen_tempname): Use small_open and large_open instead of __open
13127 and __open64. This fixes a portability bug on HP-UX 11.11i
13128 reported by Simon Wing-Tang in
13129 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
13131 2006-05-24 Bruno Haible <bruno@clisp.org>
13133 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
13134 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
13135 Reported by Thorsten Maerz <torte@netztorte.de> via
13136 Aaron Stone <aaron@serendipity.cx>.
13138 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
13140 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
13141 gl_ rather than jm_. Link, don't run, so that cross-compiles are
13142 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
13143 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
13144 not really conditional on the cache.
13145 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
13147 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
13149 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
13150 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
13151 (my_usleep): Don't mishandle maximum value.
13153 2006-05-19 Jim Meyering <jim@meyering.net>
13155 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
13157 2006-05-17 Bruno Haible <bruno@clisp.org>
13159 Cygwin portability.
13160 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
13162 2006-05-17 Bruno Haible <bruno@clisp.org>
13164 * lib/stdint_.h: Fix recognition of Cygwin.
13166 2006-05-15 Bruno Haible <bruno@clisp.org>
13168 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
13169 on libtool patch by Ralf Wildenhues.
13171 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
13173 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
13174 test for C99 conformance; (bool) 0.5 is an integer constant
13175 expression, but (bool) -0.5 is not. Problem reported by Fedor
13176 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
13178 2006-05-11 Simon Josefsson <jas@extundo.com>
13180 * m4/xvasprintf.m4: Fix obvious typo.
13182 2006-05-11 Jim Meyering <jim@meyering.net>
13184 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
13187 2006-05-10 Simon Josefsson <jas@extundo.com>
13189 * lib/md4.c: Typo fix, update copyright years.
13190 (K1, K2): Don't use L because it turn computations into 64-bit on
13193 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
13195 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
13196 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
13197 unwanted sign propagation, e.g., on hosts with 64-bit int.
13198 There still are some problems with reeelly weird theoretical hosts
13199 (e.g., 33-bit int) but it's not worth worrying about now.
13200 * lib/sha1.c (rol): Likewise.
13201 (K1, K2, K3, K4): Remove unnecessary L suffix.
13203 2006-05-10 Bruno Haible <bruno@clisp.org>
13205 * lib/des.c: Cast to avoid warnings.
13207 2006-05-09 Bruno Haible <bruno@clisp.org>
13209 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
13210 (Depends-on): Depend also on xsize, stdarg.
13211 (configure.ac): Add gl_XVASPRINTF.
13213 2006-05-09 Bruno Haible <bruno@clisp.org>
13215 * m4/xvasprintf.m4: New file.
13217 2006-05-09 Bruno Haible <bruno@clisp.org>
13219 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
13220 (EOVERFLOW): Define fallback value.
13221 (xstrcat): New function.
13222 (xvasprintf): Recognize the special case of a string concatenation.
13224 2006-05-08 Eric Blake <ebb9@byu.net>
13226 * gnulib-tool (func_version): Base copyright year on CVS date.
13227 (func_emit_copyright_notice): New function.
13228 (func_emit_lib_Makefile_am): Use it.
13229 (func_emit_tests_Makefile_am): Likewise.
13230 (func_import): Likewise.
13232 2006-05-08 Bruno Haible <bruno@clisp.org>
13234 * modules/stdarg: New file.
13235 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
13237 2006-05-08 Bruno Haible <bruno@clisp.org>
13239 * m4/stdarg.m4: New file, from GNU gettext.
13241 2006-05-08 Bruno Haible <bruno@clisp.org>
13243 * config/srclist.txt (build-aux/config.rpath): different from latest
13246 2006-05-08 Bruno Haible <bruno@clisp.org>
13248 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
13250 2006-05-05 Jim Meyering <jim@meyering.net>
13252 * m4/warning.m4: New file, derived from bison's file by the same name.
13254 2006-05-03 Bruno Haible <bruno@clisp.org>
13256 * lib/stdint_.h: Shorter URL.
13257 * lib/inttypes.h: Likewise.
13259 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
13261 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
13263 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
13265 * lib/verify.h: Document the internals better. Most of this change
13266 was written by Bruno Haible.
13268 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
13270 * doc/verify.texi: New file, partly based on a proposal by
13273 2006-05-02 Bruno Haible <bruno@clisp.org>
13275 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
13277 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
13279 2006-04-29 Bruno Haible <bruno@clisp.org>
13281 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
13282 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
13284 2006-04-29 Bruno Haible <bruno@clisp.org>
13286 * gnulib-tool: Make --update option actually work.
13288 2006-04-29 Bruno Haible <bruno@clisp.org>
13290 * doc/gcd.texi: New file.
13291 * doc/gnulib.texi: Include it.
13293 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
13295 * lib/getdate.y (get_date): When adding relative date, start with the
13296 initial time, not with the result of the first mktime call.
13298 2006-04-25 Bruno Haible <bruno@clisp.org>
13300 * gnulib-tool (func_import): Output the include directives in three
13301 blocks, sorted separately.
13302 Reported by Ben Pfaff <blp@cs.stanford.edu>.
13304 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
13306 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
13307 to define main with arguments, for C++. Reported by Eric Blake.
13308 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13309 Prefer 'int main ()' to 'int main (void)', for C++.
13310 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13311 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
13312 for 'main', for C99 and C++.
13314 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
13316 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
13317 Don't assume that exit status -1 is valid.
13318 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13319 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13320 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
13321 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
13322 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
13323 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
13324 not AC_TRY_RUN. Use return, not exit. Don't assume that
13325 functions can be used without declaring them, or that you can
13326 exit with status -1.
13327 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
13329 2006-04-24 Karl Berry <karl@gnu.org>
13331 * config/srclist.txt (longdouble.m4): sync lost.
13333 2006-04-24 Eric Blake <ebb9@byu.net>
13335 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
13337 2006-04-24 Bruno Haible <bruno@clisp.org>
13339 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
13340 poll() implementation in AIX.
13341 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13343 2006-04-24 Bruno Haible <bruno@clisp.org>
13345 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
13346 assigned exactly once.
13348 2006-04-23 Claudio Fontana <claudio@gnu.org>
13349 Bruno Haible <bruno@clisp.org>
13351 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
13352 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
13355 2006-04-23 Bruno Haible <bruno@clisp.org>
13357 * modules/copy-file: Depend on unistd.
13358 * modules/execute: Likewise.
13359 * modules/fatal-signal: Likewise.
13360 * modules/findprog: Likewise.
13361 * modules/mkdtemp : Likewise.
13362 * modules/pipe: Likewise.
13363 * modules/wait-process: Likewise.
13365 2006-04-23 Bruno Haible <bruno@clisp.org>
13367 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
13368 condition was already detected.
13369 Reported by Ben Pfaff <blp@cs.stanford.edu>.
13371 2006-04-23 Bruno Haible <bruno@clisp.org>
13373 * lib/copy-file.c: Include <unistd.h> unconditionally.
13374 * lib/execute.c: Likewise.
13375 * lib/fatal-signal.c: Likewise.
13376 * lib/findprog.c: Likewise.
13377 * lib/mkdtemp.c: Likewise.
13378 * lib/pipe.h: Likewise.
13379 * lib/pipe.c: Likewise.
13380 * lib/wait-process.h: Likewise.
13382 2006-04-23 Bruno Haible <bruno@clisp.org>
13384 * gnulib-tool (func_usage): Fix --import description. Document
13386 (func_import): Create temporary file in a temporary directory, if
13387 --dry-run is specified. Silence errors from 'grep' when there are no
13388 m4 files in $m4dir.
13389 (func_create_testdir): Silence errors from 'grep' when there are no
13390 m4 files in $m4dir.
13391 Reported by Karl Berry <karl@freefriends.org>.
13393 2006-04-20 Bruno Haible <bruno@clisp.org>
13395 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
13396 one argument, so that the code will be portable to Autoconf 2.60.
13397 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
13398 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13399 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
13401 2006-04-19 Derek Price <derek@ximbiot.com>
13402 Eric Blake <ebb9@byu.net>
13404 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
13405 rather than "/full/path.h". Update comment to match. Shorten &
13406 generalize m4_translit call via AS_TR_CPP.
13408 2006-04-19 Derek Price <derek@ximbiot.com>
13409 Eric Blake <ebb9@byu.net>
13411 * lib/inttypes.h: Correct grammar in comment.
13413 2006-04-18 Derek Price <derek@ximbiot.com>
13414 Paul Eggert <eggert@cs.ucla.edu>
13416 * modules/inttypes: New file.
13417 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
13419 2006-04-18 Derek Price <derek@ximbiot.com>
13420 Paul Eggert <eggert@cs.ucla.edu>
13422 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
13425 2006-04-18 Derek Price <derek@ximbiot.com>
13426 Paul Eggert <eggert@cs.ucla.edu>
13428 * lib/inttypes.h: New file.
13429 * lib/strtoimax.c: Assume <inttypes.h>.
13431 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
13433 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
13434 isn't mounted. Problem reported by Kir Kolyshkin.
13436 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
13438 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
13439 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
13441 * lib/regex.h (RE_DUP_MAX): Update comment to match current
13444 2006-04-12 Eric Blake <ebb9@byu.net>
13446 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
13447 is now done automatically by the corresponding Autoconf macro.
13449 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
13451 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
13454 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
13456 Merge regex changes from libc, removing some of our
13457 POSIX-conformance changes that were rejected and redoing them in a
13458 less-intrusive way.
13460 * lib/regcomp.c (re_compile_internal, init_dfa):
13461 Length arg is now size_t, not Idx. All uses changed.
13462 (peek_token): Forward decl now says internal_function.
13463 (__re_error_msgid, __re_error_msgid_idx):
13464 Now static rather than extern with attribute_hidden.
13465 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
13466 For some reason libc prefers K&R style defns for external functions.
13467 (regerror) [!defined _LIBC]: Likewise.
13468 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
13469 (seek_collating_symbol_entry, lookup_collation_sequence_value):
13470 (build_range_exp, build_collating_symbol):
13471 Use K&R-style defn.
13472 (re_compile_fastmap): Use '\0' to memset, not 0.
13473 (utf8_sb_map): Make the calculations more obvious.
13474 (init_dfa, parse_bracket_exp, build_charclass_op):
13475 Call calloc and cast result, as glibc does.
13476 (init_word_char, fetch_token, peek_token, peek_token_bracket):
13477 (build_range_exp, build_collating_symbol):
13478 Now internal functions.
13480 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
13482 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
13483 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
13484 Don't depend on VMS; depend on __VMS instead, for POSIX
13485 namespace cleanness.
13486 (regoff_t): Define to ssize_t, not long int.
13488 Remove the REG_ macros named below. Instead, make the old names
13489 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
13491 (REG_BACKSLASH_ESCAPE_IN_LISTS):
13492 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
13493 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
13494 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
13495 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
13496 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
13497 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
13498 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
13499 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
13500 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
13501 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
13502 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
13503 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
13504 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
13505 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
13506 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
13507 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
13509 Remove. All uses replaced by the old RE_* names.
13510 (RE_BACKSLASH_ESCAPE_IN_LISTS):
13511 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
13512 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
13513 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
13514 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
13515 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
13516 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
13517 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
13518 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
13519 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
13520 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
13521 Don't bother having these macros be independent of each others'
13522 values, since they no longer exist in the POSIX name space.
13524 Rename the following member names back to their old names,
13525 unless !__USE_GNU_REGEX. All uses changed back.
13526 (buffer): Renamed from re_buffer.
13527 (allocated): Renamed from re_allocated.
13528 (used): Renamed from re_used.
13529 (syntax): Renamed from re_syntax.
13530 (fastmap): Renamed from re_fastmap.
13531 (translate): Renamed from re_translate.
13532 (can_be_null): Renamed from re_can_be_null.
13533 (regs_allocated): Renamed from re_regs_allocated.
13534 (fastmap_accurate): Renamed from re_fastmap_accurate.
13535 (no_sub): Renamed from re_no_sub.
13536 (not_bol): Renamed from re_not_bol.
13537 (not_eol): Renamed from re_not_eol.
13538 (newline_anchor): Renamed from re_newline_anchor.
13539 (num_regs): Renamed from rm_num_regs.
13540 (start): Renamed from rm_start.
13541 (end): Renamed from rm_end.
13543 (free_state): Move up a bit.
13545 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
13546 #define to be empty.
13547 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
13548 when that is what is intended.
13549 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
13550 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
13552 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
13553 All uses changed back to re_malloc, etc. It's now the caller's
13554 responsibility to check for overflow; all callers changed.
13555 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
13556 (re_x2nrealloc): Remove.
13557 (free_state): Remove decl.
13559 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
13560 (re_set_registers, re_exec):
13561 Use K&R-style defn.
13563 2006-01-31 Roland McGrath <roland@redhat.com>
13565 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
13566 Reported by Mike Frysinger <vapier@gentoo.org>.
13568 2006-01-15 Andreas Jaeger <aj@suse.de>
13571 * lib/regex_internal.c (re_string_reconstruct): Adjust for
13572 build_wcs_upper_buffer change.
13573 (build_wcs_upper_buffer): Change return type.
13575 2005-12-10 Ulrich Drepper <drepper@redhat.com>
13577 * lib/regex_internal.h: Include <stdint.h> if available.
13579 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
13581 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
13583 2005-10-14 Ulrich Drepper <drepper@redhat.com>
13585 * lib/regcomp.c: Adjust for changed secondary hash function.
13587 2005-09-30 Ulrich Drepper <drepper@redhat.com>
13589 * lib/regex.h: Pretty printing.
13590 Clean up namespace a bit.
13592 2005-09-30 Jakub Jelinek <jakub@redhat.com>
13594 * lib/regexec.c (update_cur_sifted_state, check_arrival,
13595 check_arrival_add_next_nodes): Avoid using uninitialized variable.
13597 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
13598 Ulrich Drepper <drepper@redhat.com>
13601 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
13603 (bitset_word_t): Renamed from bitset_word. All uses changed.
13605 2005-09-22 Ulrich Drepper <drepper@redhat.com>
13608 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
13609 * lib/regcomp.c: Remove unnecessary uses of
13610 unsigned RE_TRANSLATE_TYPE.
13611 * lib/regex_internal.h: Likewise.
13612 * lib/regex_internal.c: Likewise.
13613 * lib/regexec.c: Likewise.
13614 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
13616 2005-09-07 Ulrich Drepper <drepper@redhat.com>
13618 * lib/regexec.c (find_recover_state): Remove unnecessary
13620 (transit_state_bkref): Make DFA a const pointer.
13621 (get_subexp): Likewise.
13622 (check_arrival): Likewise.
13623 (update_cur_sifted_state): Likewise.
13624 (re_search_internal): Likewise.
13625 (prune_impossible_nodes): Likewise.
13626 (acquire_init_state_context): Likewise.
13627 (proceed_next_node): Likewise.
13628 (set_regs): Likewise.
13629 (free_fail_stack_return): Likewise.
13630 (check_arrival_expand_ecl): Mark DFA parameter as const.
13631 (check_arrival_expand_ecl_sub): Likewise.
13632 (check_subexp_limits): Likewise.
13633 (sub_epsilon_src_nodes): Likewise.
13634 (add_epsilon_src_nodes): Likewise.
13635 (merge_state_array): Likewise.
13636 (update_regs): Likewise.
13637 (build_trtable): Likewise.
13638 (sift_states_backward): Mark MCTX parameter as const.
13639 (build_sifted_states): Likewise.
13640 (update_cur_sifted_state): Likewise.
13641 (sift_states_mkref): Likewise.
13642 (check_arrival_expand_ecl): Mark eclosure as const.
13643 (check_dst_limits_calc_pos_1): Likewise.
13644 * lib/regex_internal.h (re_match_context_t): Make dfa a const
13647 2005-09-06 Ulrich Drepper <drepper@redhat.com>
13649 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
13650 (transit_state_sb): Likewise.
13651 (transit_state_mb): Likewise.
13652 (sift_states_iter_mb): Likewise.
13653 (check_arrival_add_next_nodes): Likewise.
13654 (check_node_accept_bytes): Change first parameter to pointer-to-const.
13655 [_LIBC] (re_search_2_stub): Use mempcpy.
13657 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
13658 mbrtowc for very simple UTF-8 case.
13660 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
13661 a pointer-to-const.
13662 (re_acquire_state_context): Likewise.
13663 * lib/regex_internal.h: Adjust prototypes.
13665 * lib/regex.c: Prevent using C++ compilers.
13667 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
13668 (re_acquire_state_context): Likewise.
13670 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
13672 * modules/regex (Depends-on): Add ssize_t.
13674 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
13676 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
13679 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
13681 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
13683 2006-03-29 Mark D. Baushke <mdb@gnu.org>
13684 Bruno Haible <bruno@clisp.org>
13686 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
13687 <sys/types.h> and <inttypes.h>.
13689 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13691 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
13692 `__error_t_defined', so argp.h will not typedef the former.
13694 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
13696 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
13697 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
13698 glibc names. Even if glibc is changed to conform to POSIX, the
13699 traditional names will be available anyway, since regex depends on
13700 the extensions module. Also, fix a longstanding typo in the
13701 implementation of Spencer ERE test #75 from grep 2.3. Problems
13702 reported by Emanuele Giaquinta. Also, change sense of cached
13703 variable, so that the message makes sense.
13705 2006-03-24 Simon Josefsson <jas@extundo.com>
13707 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
13708 including some doc fixes.
13709 (base64_encode_alloc): Fix +1 bug on allocation failures.
13711 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13713 * lib/base64.c (base64_encode): Do not read past end of array with
13714 unsanitized input on systems with CHAR_BIT > 8.
13716 2006-03-24 Eric Blake <ebb9@byu.net>
13718 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
13720 2006-03-22 Karl Berry <karl@gnu.org>
13722 * config/srclist.txt (*setenv.[ch]): get from coreutils.
13723 * config/srclistvars.sh (COREUTILS): new var.
13725 2006-03-17 Jim Meyering <jim@meyering.net>
13727 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
13728 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
13730 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
13732 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
13733 no longer needs it. Instead, check that regoff_t is as least
13734 as wide as ptrdiff_t.
13736 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
13737 so that our regex.h stays compatible with the installed regex.
13738 This is helpful for installers who configure --without-included-regex.
13739 Problem reported by Emanuele Giaquinta.
13741 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
13743 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
13744 Typedef to long int, not to off_, as POSIX will likely change
13747 2006-03-15 Eric Blake <ebb9@byu.net>
13749 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
13751 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
13753 * lib/argp-help.c (validate_uparams): Fix typo
13754 * lib/argp-parse.c (argp_default_options): Consistently begin help
13755 messages with a lowercase letter.
13757 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
13759 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
13760 overrun buffers and shouldn't be used (much as gets shouldn't be
13762 * lib/time_r.c (asctime_r, ctime_r): Likewise.
13764 2006-03-08 Simon Josefsson <jas@extundo.com>
13766 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
13767 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13769 2006-03-08 Simon Josefsson <jas@extundo.com>
13771 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
13772 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13774 2006-03-08 Simon Josefsson <jas@extundo.com>
13776 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
13777 signal that configure disabled the device.
13779 2006-03-08 Simon Josefsson <jas@extundo.com>
13781 * build-aux/maint.mk: Fix refresh-po, to handle no translated
13784 2006-03-07 Simon Josefsson <jas@extundo.com>
13786 * modules/getopt (Depends-on): Add unistd.
13788 * modules/unistd: New file.
13790 2006-03-07 Simon Josefsson <jas@extundo.com>
13792 * modules/gc-random: New file.
13794 2006-03-07 Simon Josefsson <jas@extundo.com>
13796 * m4/unistd_h.m4: New file.
13798 2006-03-07 Simon Josefsson <jas@extundo.com>
13800 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
13801 test to be side-effect free by storing the result in the cache
13802 variable gl_cv_lib_readline, and moving the assignment of
13803 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
13804 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13806 2006-03-07 Simon Josefsson <jas@extundo.com>
13808 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
13809 error on missing devices (the functions will return an error).
13811 * m4/gc.m4: Move random stuff to gc-random.m4
13813 2006-03-07 Simon Josefsson <jas@extundo.com>
13815 * lib/unistd_.h: New file.
13817 2006-03-07 Simon Josefsson <jas@extundo.com>
13819 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
13821 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
13823 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
13824 Problem reported by Juan Manuel Guerrero.
13826 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
13828 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
13830 * lib/getlogin_r.c: Likewise.
13831 * lib/getlogin_r.h: Likewise.
13832 * lib/glob.c: Likewise.
13833 * lib/pagealign_alloc.c: Likewise.
13834 * lib/unistd_.h: Remove; no longer needed.
13836 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
13838 * MODULES.html.sh (Support for systems lacking POSIX:2001):
13840 * modules/c-stack (Depends-on): Add unistd.
13841 * modules/getlogin_r: Likewise.
13842 * modules/glob: Likewise.
13843 * modules/pagealign_alloc: Likewise.
13844 * modules/unistd (Files): Remove lib/unistd_.h.
13845 (EXTRA_DIST): Remove.
13846 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
13848 (MOSTLYCLEANFILES): Remove unistd.h-t.
13850 2006-03-03 Simon Josefsson <jas@extundo.com>
13852 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
13854 2006-03-03 Simon Josefsson <jas@extundo.com>
13856 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
13859 2006-03-03 Simon Josefsson <jas@extundo.com>
13861 * build-aux/maint.mk: Add indent target.
13863 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13865 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
13866 our replacement poll.h in any case, to avoid a differing
13867 declaration from a system header. Seen on AIX.
13869 2006-03-01 Simon Josefsson <jas@extundo.com>
13871 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
13874 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
13876 * modules/gettime (Depends-on): Add extensions module.
13877 * modules/nanosleep (Depends-on): Likewise.
13878 * modules/settime (Depends-on): Likewise.
13880 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
13882 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
13883 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
13885 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13886 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
13888 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
13889 not "==". Reported by Ralf Wildenhues.
13891 2006-03-01 Karl Berry <karl@gnu.org>
13893 * doc/Copyright/request-*: new files, synced from gnuorg.
13895 2006-03-01 Karl Berry <karl@gnu.org>
13897 * config/srclist.txt (Copyright/*): new entries.
13899 2006-02-28 Simon Josefsson <jas@extundo.com>
13901 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
13903 2006-02-27 Simon Josefsson <jas@extundo.com>
13905 * lib/base64.h: Indent #define's. From Jim Meyering
13906 <jim@meyering.net>.
13908 2006-02-27 Jim Meyering <jim@meyering.net>
13910 Revert the change of 2006-02-24, so these files can continue
13911 to be sync'd from gettext.
13912 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
13915 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
13917 * modules/intprops: New file.
13918 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
13920 * modules/getloadavg (Files): Remove lib/intprops.h.
13921 (Depends-on): Add intprops.
13922 * modules/human: Likewise.
13923 * modules/inttostr: Likewise.
13924 * modules/openat: Likewise.
13925 * modules/sig2str: Likewise.
13926 * modules/userspec: Likewise.
13927 * modules/utimecmp: Likewise.
13928 * modules/xnanosleep: Likewise.
13929 * modules/xstrtol: Likewise.
13931 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
13933 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
13934 * modules/lock-tests (TESTS): Use $(EXEEXT).
13935 * modules/tls-tests: Likewise.
13936 * modules/argp-tests: Likewise.
13937 (check_PROGRAMS): New var, replacing...
13938 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
13940 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13942 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
13945 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
13947 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
13949 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13951 Sync from coreutils.
13952 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
13955 2006-02-22 Jim Meyering <jim@meyering.net>
13957 Sync from coreutils.
13958 * m4/chdir-safer.m4: New file.
13960 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
13962 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
13963 AT_FDCWD exceeds INT_MAX.
13964 * lib/openat.h (AT_FDCWD): Likewise.
13966 2006-02-17 Eric Blake <address@hidden>
13968 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
13970 2006-02-16 Simon Josefsson <jas@extundo.com>
13972 * modules/getaddrinfo (Depends-on): Add sys_socket.
13974 2006-02-15 Simon Josefsson <jas@extundo.com>
13976 * build-aux/maint.mk: Add dsyntax-check rule.
13978 2006-02-15 Eric Blake <ebb9@byu.net>
13980 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
13981 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
13982 'present but cannot compile' warnings on cygwin.
13983 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
13984 use ws2tcpip.h if sys/socket.h works.
13985 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
13986 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
13988 2006-02-14 Simon Josefsson <jas@extundo.com>
13990 * modules/maintainer-makefile (Files): Rename.
13992 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
13993 and (the local) Makefile.cfg to maint-cfg.mk.
13995 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
13998 * modules/maintainer-makefile: New module.
14000 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
14001 severaly stripped to make it possible to build it up from scratch
14002 with reliable tests.
14004 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
14005 fixes to permit overriding the default actions when configure and
14006 makefile are not available.
14008 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
14010 Sync from coreutils.
14011 * modules/lstat (Depends-on): Don't depend on xalloc.
14012 (License): Change from GPL to LGPL, since this is now simply a
14013 replacement for a libc function.
14015 2006-02-14 Jim Meyering <jim@meyering.net>
14017 Sync from coreutils.
14019 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
14020 failure on deficient systems, and simplify gnulib lgpl dependencies.
14021 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
14022 xmalloc/lstat combination. Based on a patch from Bruno Haible.
14024 * lib/xalloc-die.c: Remove unused definition of N_.
14026 2006-02-14 Jim Meyering <jim@meyering.net>
14028 Sync from coreutils.
14029 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
14030 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
14031 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
14032 double-quote uses of that variable, to accommodate the rare case in
14033 which getmntent is available in none of the libraries checked. This
14034 happens at least on FreeBSD 5.0.
14036 2006-02-13 Simon Josefsson <jas@extundo.com>
14038 * gnulib-tool (Usage): Fix --import, from
14039 karl@freefriends.org (Karl Berry).
14041 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
14043 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
14045 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
14047 * lib/argp-namefrob.h: Restore changes accidentally lost during the
14048 "autoupdate" on 2005-12-12.
14050 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
14052 * modules/closeout (Depends-on): Remove atexit.
14054 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
14056 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
14057 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
14059 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
14061 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
14062 __EXTENSIONS__ if this causes compilation to fail. Problem
14063 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
14064 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
14066 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
14068 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
14069 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
14070 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
14073 2006-01-26 Simon Josefsson <jas@extundo.com>
14075 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
14076 prototype is visible on mingw32.
14078 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
14081 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
14084 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
14086 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
14087 attempt to open for write; this always fails, at least on POSIX
14088 hosts. This reinstates the 2006-01-09 change, which was
14089 inadvertently removed.
14091 2006-01-26 Bruno Haible <bruno@clisp.org>
14093 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
14094 Reported by Paul Eggert.
14096 2006-01-26 Bruno Haible <bruno@clisp.org>
14097 Paul Eggert <eggert@cs.ucla.edu>
14099 * lib/stdbool_.h (_Bool)
14100 [(! (defined __cplusplus || defined __BEOS__)
14101 && !defined __GNUC__
14102 && !(defined __HP_cc || defined __xlc__
14103 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
14104 || defined __sgi))]:
14105 #define to signed char in these cases too; this simplifies
14106 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
14107 etc., separately) and makes it more conservative.
14109 2006-01-25 Simon Josefsson <jas@extundo.com>
14111 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
14112 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
14113 ws2tcpip.h with WINVER=0x0501. All for mingw32.
14115 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
14117 * lib/argp-namefrob.h: Bugfix. Remove stray #
14119 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
14121 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
14122 so that we test the test.
14123 Check for yet another HP-UX cc bug involving *bool |= bool.
14125 2006-01-25 Karl Berry <karl@gnu.org>
14127 * config/srclist.txt (vasnprintf.c): sync lost.
14129 2006-01-25 Jim Meyering <jim@meyering.net>
14131 Sync from the stable (b5) branch of coreutils:
14133 * lib/fts.c (fts_children): Don't let close() clobber errno from
14136 * lib/fts.c (fts_stat): When following a symlink-to-directory,
14137 don't necessarily interpret stat-fails+lstat-succeeds as indicating
14138 a dangling symlink. That can also happen at least for ELOOP.
14139 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
14140 FYI, this bug predates the inclusion of fts.c in coreutils.
14142 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
14143 in their own block, so pre-c99 compilers don't object.
14145 Avoid the double-free (first in fts_read, second in fts_close) that
14146 would occur when an `active' directory is made inaccessible (e.g.,
14147 via chmod a-x) during a traversal.
14148 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14149 before returning. Reproduce this failure by
14150 mkdir -p a/b; cd a; chmod a-x . b
14151 Reported by Stavros Passas.
14153 2006-01-25 Jim Meyering <jim@meyering.net>
14155 * lib/fileblocks.c: Remove more useless parentheses.
14156 * lib/readutmp.h: Likewise.
14158 2006-01-25 Bruno Haible <bruno@clisp.org>
14160 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
14162 Reported by Paul Eggert.
14164 2006-01-25 Bruno Haible <bruno@clisp.org>
14166 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
14167 rid of a trap command. For Solaris sh.
14168 Reported by Mark D. Baushke <mdb@gnu.org>.
14170 2006-01-24 Simon Josefsson <jas@extundo.com>
14172 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
14175 2006-01-24 Karl Berry <karl@gnu.org>
14177 * config/srclist.txt (argp-namefrob.h): sync lost.
14179 2006-01-24 Jim Meyering <jim@meyering.net>
14181 * modules/openat (Files): Add lib/intprops.h.
14182 From Mark D. Baushke.
14184 2006-01-24 Jim Meyering <jim@meyering.net>
14186 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
14187 Reported by Mark D. Baushke.
14189 2006-01-24 Jim Meyering <jim@meyering.net>
14191 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
14193 2006-01-24 Bruno Haible <bruno@clisp.org>
14195 * modules/strnlen (Maintainer): Change from glibc to all.
14197 2006-01-24 Bruno Haible <bruno@clisp.org>
14199 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
14200 Patch by Paul Eggert.
14202 2006-01-24 Bruno Haible <bruno@clisp.org>
14204 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
14206 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
14209 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
14210 'signed char' to avoid problems with the built-in _Bool type.
14211 Reported by Paul Eggert on 2005-11-26.
14213 2006-01-24 Bruno Haible <bruno@clisp.org>
14215 * gnulib-tool (func_import): Avoid constructing complicated sed
14216 expressions inside backquote.
14217 Report and solution by Mark D. Baushke <mdb@gnu.org>.
14219 2006-01-23 Ulrich Drepper <drepper@redhat.com>
14221 These changes imported from libc.
14222 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
14223 test and two separate function calls.
14224 * lib/strndup.c (__strndup): Add libc_hidden_def.
14226 2006-01-23 Simon Josefsson <jas@extundo.com>
14228 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
14229 Remove the test_*_SOURCES variable: automake infers it by default.
14230 * modules/tls-tests: Likewise.
14232 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
14234 Work around porting bugs reported by Dieter in
14235 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
14236 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
14237 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
14238 Include "getopt.h" first, to check interface.
14239 (getenv): Declare only if defined HAVE_DECL_GETENV &&
14241 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
14242 (__strndup): Revert to K&R-style function dfns, the glibc style.
14243 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
14244 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
14245 Include strnlen.h first, to get prototype properly.
14246 (strnlen): Renamed from __strnlen.
14249 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
14251 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
14253 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
14255 * config/srclist.txt: Adjust to reflect glibc reorganization.
14256 This affects only comments.
14258 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
14260 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
14261 Reported by Bruce Korb <bkorb@gnu.org>.
14263 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
14265 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
14266 to pacify gcc -Wswitch-default.
14268 2006-01-22 Bruno Haible <bruno@clisp.org>
14270 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
14271 temporary buffer for sprintf, take into account the precision also
14272 for 'd', 'i', 'u', 'o', 'x', 'X'.
14274 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
14276 * modules/argp-tests: New module
14277 * tests/test-argp.c: New file
14278 * tests/test-argp-2.sh: New file
14280 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
14282 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
14283 (__argp_base_name): Removed
14284 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
14286 (__argp_base_name): Provide macro definition or extern declaration
14287 depending on the configuration
14289 2006-01-20 Simon Josefsson <jas@extundo.com>
14291 * modules/inet_ntop (Depends-on): Depend on sys_socket.
14293 2006-01-20 Simon Josefsson <jas@extundo.com>
14295 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
14297 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
14299 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
14300 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
14301 Suggested by Bruno Haible.
14303 2006-01-20 Karl Berry <karl@gnu.org>
14305 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
14306 until changes propagate, I guess.
14308 2006-01-19 Simon Josefsson <jas@extundo.com>
14310 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
14312 2006-01-19 Simon Josefsson <jas@extundo.com>
14314 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
14316 2006-01-19 Simon Josefsson <jas@extundo.com>
14318 * gnulib-tool: Set check_PROGRAMS.
14320 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14321 modules/des-tests, modules/gc-arcfour-tests,
14322 modules/gc-arctwo-tests, modules/gc-des-tests,
14323 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14324 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14325 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14326 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14327 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14328 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
14329 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
14332 2006-01-18 Simon Josefsson <jas@extundo.com>
14334 * modules/socklen (Depends-on): Depend on sys_socket.
14336 2006-01-18 Simon Josefsson <jas@extundo.com>
14338 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
14339 modules/des-tests, modules/gc-arcfour-tests,
14340 modules/gc-arctwo-tests, modules/gc-des-tests,
14341 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
14342 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
14343 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
14344 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
14345 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
14346 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
14347 $(EXEEXT) to automake TESTS variable, for mingw32.
14349 2006-01-17 Simon Josefsson <jas@extundo.com>
14351 * modules/socklen (Include): Need sys/socket.h.
14353 2006-01-17 Bruno Haible <bruno@clisp.org>
14355 * modules/ssize_t (Include): Add <sys/types.h>.
14357 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
14359 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
14360 it's not portable and it doesn't work with cross-compiles.
14361 Problem reported by Bruno Haible. Fix missing-$ typo in
14362 'test "gl_cv_ignore_unused_libraries" ...' that prevented
14363 -zignore from being used with Sun's C compiler.
14365 2006-01-12 Simon Josefsson <jas@extundo.com>
14367 * lib/base64.c: Fix warning, reported by Bruno Haible
14368 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
14370 2006-01-12 Bruno Haible <bruno@clisp.org>
14372 * modules/ldd: New file.
14373 * build-aux/ldd.sh.in: New file.
14374 * MODULES.html.sh (Support for building libraries and executables): Add
14377 2006-01-12 Bruno Haible <bruno@clisp.org>
14379 * m4/ldd.m4: New file.
14381 2006-01-12 Bruno Haible <bruno@clisp.org>
14383 * gnulib-tool (func_import, func_create_testdir): Don't go into an
14384 endless loop while replacing $auxdir with build-aux.
14386 2006-01-11 Simon Josefsson <jas@extundo.com>
14388 * lib/stdint_.h (SIZE_MAX): Add missing (.
14390 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
14392 Sync from coreutils.
14393 * lib/md5.c: Fix commentary typos.
14394 (alignof, UNALIGNED_P): No need for a GCC-specific version.
14395 * lib/md5.h (__attribute__): Remove; unused.
14396 * lib/sha1.c: Fix commentary to match md5 better.
14397 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
14398 so that we don't need to worry about alignment. All uses changed.
14399 This merges the 2005-10-28 md5 change into sha1.
14401 2006-01-11 Jim Meyering <jim@meyering.net>
14403 Sync from coreutils.
14404 * lib/md5.c (OP): Fix spacing.
14406 2006-01-11 Bruno Haible <bruno@clisp.org>
14408 Ensure automatic ordering between gl_LOCK and gl_ARGP.
14409 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
14410 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
14412 2006-01-11 Bruno Haible <bruno@clisp.org>
14414 Ensure automatic ordering between gl_LOCK and gl_ARGP.
14415 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
14416 the "early" section as well.
14418 2006-01-11 Bruno Haible <bruno@clisp.org>
14420 Avoid "ar: no archive members specified" error on MacOS X.
14421 * gnulib-tool (func_modules_add_dummy): New function.
14422 (func_import, func_create_testdir): Invoke it.
14424 2006-01-11 Bruno Haible <bruno@clisp.org>
14426 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
14427 with $auxdir in AC_CONFIG_FILES statements.
14429 2006-01-11 Bruno Haible <bruno@clisp.org>
14431 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14432 Initialize also noinst_HEADERS to empty.
14434 2006-01-11 Bruno Haible <bruno@clisp.org>
14436 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
14438 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
14441 2006-01-11 Bruno Haible <bruno@clisp.org>
14443 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
14444 overridable by the user.
14445 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14447 2006-01-10 Simon Josefsson <jas@extundo.com>
14449 * modules/sys_socket: New file.
14451 2006-01-10 Simon Josefsson <jas@extundo.com>
14453 * m4/sys_socket_h.m4: New file.
14455 2006-01-10 Simon Josefsson <jas@extundo.com>
14457 * lib/socket_.h: New file.
14459 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
14461 * modules/readutmp (Maintainer): Add myself.
14463 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
14465 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
14466 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
14467 People who are still concerned with buggy memcmp implementations
14468 can invoke gl_FUNC_MEMCMP themselves.
14470 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
14472 * lib/regex_internal.h (BITSET_WORD_BITS):
14473 Work around a bug in 64-bit PGC (before version 6.1-2), where the
14474 preprocessor mishandles large unsigned values as if they were signed.
14475 Problem reported by Claudio Fontana in
14476 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
14478 2006-01-10 Jim Meyering <jim@meyering.net>
14480 Avoid the double-free (first in fts_read, second in fts_close) that
14481 would occur when an `active' directory is made inaccessible (e.g.,
14482 via chmod a-x) during a traversal.
14483 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14484 before returning. Reproduce this failure by
14485 mkdir -p a/b; cd a; chmod a-x . b
14486 Reported by Stavros Passas.
14488 Sync from coreutils.
14489 * lib/sha1.c: Tweak grammar in a comment.
14491 2006-01-10 Jim Meyering <jim@meyering.net>
14493 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
14494 Patch by Joerg Sonnenberger.
14496 2006-01-10 Bruno Haible <bruno@clisp.org>
14498 * modules/readutmp: Depend on module free.
14499 * modules/strtok_r: Depend on module restrict.
14501 2006-01-10 Bruno Haible <bruno@clisp.org>
14503 * modules/gettext (configure.ac): Add an invocation of
14504 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
14506 2006-01-10 Bruno Haible <bruno@clisp.org>
14508 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
14509 Reported by Werner Lemberg <wl@gnu.org>.
14511 2006-01-10 Bruno Haible <bruno@clisp.org>
14513 * lib/localcharset.c: Update from GNU gettext.
14515 2006-01-10 Bruno Haible <bruno@clisp.org>
14517 * lib/argp.h (__const): Remove macro. Use const instead.
14518 * lib/argp-fmtstream.h (__const): Likewise.
14519 * lib/glob_.h (__const): Remove macro.
14520 * lib/glob-libc.h: Use const instead of __const.
14522 2006-01-10 Bruno Haible <bruno@clisp.org>
14524 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
14526 Needed to avoid an automake error regarding the 'gettext' module.
14528 2006-01-09 Simon Josefsson <jas@extundo.com>
14530 * modules/inet_ntop (Depends-on): Add restrict.
14532 2006-01-09 Simon Josefsson <jas@extundo.com>
14534 * modules/gc-rijndael-tests (License): Put under LGPL.
14536 * modules/gc-des-tests (License): Likewise.
14538 * modules/gc-arcfour-tests (License): Likewise.
14540 * modules/gc-arctwo-tests (License): Likewise.
14542 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
14544 * modules/gc-hmac-sha1-tests (Files): Likewise.
14546 * modules/gc-hmac-md5-tests (License): Likewise.
14548 * modules/gc-sha1-tests (License): Likewise.
14550 * modules/gc-md5-tests (License): Likewise.
14552 * modules/gc-md4-tests (License): Likewise.
14554 * modules/gc-md2-tests (License): Likewise.
14556 * modules/gc-tests (License): Likewise.
14558 * modules/des-tests (License): Likewise.
14560 * modules/md4-tests (License): Likewise.
14562 * modules/md2-tests (License): Likewise.
14564 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
14566 Sync from coreutils:
14568 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
14569 * modules/lib-ignore: New file.
14570 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
14571 chdir-safer.m4, lchmod.m4.
14572 * modules/openat: Add mkdirat.c, openat-priv.h.
14574 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
14576 Sync from coreutils.
14577 * m4/lib-ignore.m4: New file.
14578 * m4/lchmod.m4: New file.
14580 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
14582 Sync from coreutils.
14583 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
14584 for write access: POSIX says that must fail.
14585 * lib/fts.c (diropen): Likewise.
14586 * lib/save-cwd.c (save_cwd): Likewise.
14587 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
14588 well, for minor improvements on hosts that lack O_DIRECTORY.
14589 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
14590 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
14591 Fall back on chown if open failed with EACCES.
14593 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
14594 Report an error at compile-time if only a 1-second nominal clock
14595 resolution is found.
14597 * lib/lchmod.h: New file.
14598 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
14599 (make_dir_parents): Use lchown rather than chown, and
14600 lchmod rather than chmod.
14602 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
14603 dummies too. Problem with "none" reported by Bob Proulx. Problem with
14604 "proc" reported by n0dalus.
14606 * lib/mountlist.c: Include <limits.h>.
14607 (dev_from_mount_options)
14608 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
14609 New function. It no longer assumes "dev=" has the System V meaning
14610 on Linux (since it doesn't). It also parses "dev=" more carefully.
14611 (read_file_system_list)
14612 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
14613 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
14616 * lib/posixtm.h (PDS_PRE_2000): New macro.
14617 * lib/posixtm.c (year): Arg is now syntax_bits rather than
14618 allow_century. All usages changed. Reject dates outside the range
14619 1969-1999 if PDS_PRE_2000 is used.
14621 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
14623 Sync from coreutils.
14624 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
14625 (Time of day items): Mention the possibility of leap seconds.
14626 Problem reported by Dr. David Alan Gilbert.
14628 2006-01-09 Jim Meyering <jim@meyering.net>
14630 Sync from coreutils.
14632 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
14634 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
14636 * lib/modechange.c (mode_compile): Reject an invalid mode string
14637 that starts with an octal digit. From Andreas Gruenbacher.
14639 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
14640 and dup to open_safer and dup_safer, respectively.
14641 (openat_permissive): Fix typo in comment.
14643 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
14644 "gettext.h"; either no longer needed or are guaranteed by openat.h.
14645 (_): Remove; no longer needed.
14646 (openat): Renamed from rpl_openat; no need for rpl_openat
14647 since openat.h renames openat for us.
14648 Replace most of the body with a call to openat_permissive,
14649 to avoid duplicate code.
14650 Port to (probably hypothetical) environments were mode_t is
14652 (openat_permissive): Require mode arg, so that we can check
14653 types better. Put it just after flags. Change cwd failure
14654 indicator from pointer-to-bool to pointer-to-errno-value.
14655 All callers changed.
14656 Invoke openat_save_fail and/or openat_restore_fail if
14657 cwd_errno is null, so that openat can call us.
14658 (openat_permissive, fdopendir, fstatat, unlinkat):
14659 Simplify errno handling to avoid some duplicate code,
14660 as it's OK to set errno on success.
14661 * lib/openat.h: Revamp code so that function macros depend on
14662 __OPENAT_PREFIX only, not also on AT_FDCWD.
14663 (openat_ro): Remove. Caller changed to use openat_permissive.
14664 (openat_permissive): Now a macro, if not a function.
14665 (openat_restore_fail, openat_save_fail): Now always functions,
14666 since mkdirat needs them even if __OPENAT_PREFIX is defined.
14668 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
14670 * lib/mkdirat.c: Include openat-priv.h.
14671 Remove definitions of macros defined therein.
14672 * lib/openat.c: Likewise.
14674 * lib/mkdirat.c (mkdirat): New file and function.
14675 * lib/openat.h (mkdirat): Declare.
14677 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
14679 * lib/openat.h (openat_permissive): Declare.
14680 (openat_ro): Define.
14682 * lib/openat.c (EXPECTED_ERRNO): New macro.
14683 (openat_permissive): New function -- used in remove.c rewrite.
14684 (all functions): Set errno just before returning, only if there
14685 was an actual failure.
14686 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
14688 Emulate openat-family functions using Linux's procfs, if possible.
14689 Idea and some code based on Ulrich Drepper's glibc changes.
14691 * lib/openat.c: (BUILD_PROC_NAME): New macro.
14692 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
14693 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
14694 before falling back on save_cwd and restore_cwd.
14695 (fdopendir, fstatat, unlinkat): Likewise.
14697 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
14698 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
14700 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
14701 as second argument to va_arg. Otherwise, some versions of gcc
14702 warn that `if this code is reached, the program will abort'.
14704 2006-01-09 Jim Meyering <jim@meyering.net>
14706 Sync from coreutils.
14707 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
14708 Require openat-priv.h.
14710 2006-01-09 Bruno Haible <bruno@clisp.org>
14712 * modules/strnlen (Include): Use strnlen.h.
14714 2006-01-09 Bruno Haible <bruno@clisp.org>
14716 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
14718 2006-01-09 Bruno Haible <bruno@clisp.org>
14720 * lib/sysexit_.h (EX_OK): New macro.
14721 Suggested by Martin Lambers <marlam@marlam.de>.
14723 2006-01-09 Bruno Haible <bruno@clisp.org>
14725 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
14726 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
14728 2006-01-09 Bruno Haible <bruno@clisp.org>
14730 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
14733 2006-01-09 Bruno Haible <bruno@clisp.org>
14735 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
14736 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
14737 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
14738 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
14740 2006-01-09 Bruno Haible <bruno@clisp.org>
14742 * build-aux/javacomp.sh.in: New file, moved from lib/.
14743 * modules/javacomp-script (Files): Update.
14744 (configure.ac): Add AC_CONFIG_FILES invocation.
14745 (EXTRA_DIST): Remove variable.
14747 * build-aux/javaexec.sh.in: New file, moved from lib/.
14748 * modules/javaexec (Files): Update.
14749 (configure.ac): Add AC_CONFIG_FILES invocation.
14750 (EXTRA_DIST): Remove javaexec.sh.in.
14752 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
14753 * modules/csharpcomp-script (Files): Update.
14754 (configure.ac): Add AC_CONFIG_FILES invocation.
14755 (EXTRA_DIST): Remove variable.
14757 * build-aux/csharpexec.sh.in: New file, moved from lib/.
14758 * modules/csharpexec (Files): Update.
14759 (configure.ac): Add AC_CONFIG_FILES invocation.
14760 (EXTRA_DIST): Remove csharpexec.sh.in.
14762 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
14764 Sync from coreutils.
14766 Add POSIX ACL support
14767 * lib/acl.h (copy_acl, set_acl): Add declarations.
14768 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
14769 systems other than Linux.
14770 (chmod_or_fchmod): New function: use fchmod when possible,
14771 and chmod otherwise.
14772 (file_has_acl): Add a POSIX ACL implementation, with a
14773 Linux-specific subcase.
14774 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
14775 S_ISVTX from one file to another. Fall back to fchmod/chmod when
14776 acls are unsupported.
14777 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
14778 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
14781 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
14783 Sync from coreutils.
14784 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
14786 2006-01-07 Bruno Haible <bruno@clisp.org>
14788 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
14791 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
14793 * lib/strftime.c (tzname): Don't declare if it is already #defined.
14794 Problem reported for Mingw by Mark Junker.
14796 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
14798 * README: Gnulib normally doesn't generate a tarball.
14800 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
14802 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
14803 long int, not int, for nanosecond counts, so that people who are
14804 used to POSIX struct timespec won't be surprised. Reported by Jim
14807 2005-12-28 Bruno Haible <bruno@clisp.org>
14809 * build-aux/config.rpath: Update from GNU gettext.
14811 2005-12-16 Jim Meyering <jim@meyering.net>
14813 * modules/fprintftime: New module.
14814 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
14816 2005-12-16 Jim Meyering <jim@meyering.net>
14818 * m4/fprintftime.m4: New file.
14820 2005-12-16 Jim Meyering <jim@meyering.net>
14822 * lib/fprintftime.c, lib/fprintftime.h: New files.
14824 2005-12-15 Simon Josefsson <jas@extundo.com>
14826 * modules/socklen (configure.ac): Fix M4 macro name, to align with
14829 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
14831 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
14832 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
14834 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
14836 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
14837 * lib/argp-help.c (fill_in_uparams): Check if the constructed
14838 struct uparams is valid. Fall back to the default values if it is
14841 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
14843 * modules/argp (Files): Add argp-pin.c
14844 (Depends-on): dirname
14845 (lib_SOURCES): Add argp-pin.c
14847 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
14849 * m4/argp.m4: Check if program_invocation_name and
14850 program_invocation_short_name are declared and define appropriate
14851 macros if they are not.
14853 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
14855 * lib/argp-help.c (__argp_base_name): New function
14856 (__argp_short_program_name): Rewrite using __argp_base_name
14857 * lib/argp-namefrob.h: Define program_invocation_name and
14858 program_invocation_short_name if requested
14859 (__argp_base_name): Add prototype
14860 * lib/argp-parse.c (argp_def): Use gettext wrappers
14861 (argp_default_parser): Use __argp_base_name
14862 * lib/argp-pin.c: New file. Defines program_invocation_name and
14863 program_invocation_short_name on systems that lack them.
14865 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
14867 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
14868 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
14869 porting problem reported by Georg Schwarz in
14870 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
14872 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
14874 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
14875 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
14876 porting problem reported by Georg Schwarz in
14877 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
14879 2005-12-05 Bruno Haible <bruno@clisp.org>
14881 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
14882 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
14883 Reported by Mark Junker <mjscod@gmx.de>.
14885 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
14887 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
14888 Use implementation from Albert Chin, with some
14889 comments/corrections by Stepan Kasal and myself.
14891 2005-12-02 Bruno Haible <bruno@clisp.org>
14893 * gnulib-tool (func_import): Accept GPLed build tool modules when
14895 * modules/csharpcomp-script: New file.
14896 * modules/csharpcomp: Depend on it.
14897 * modules/javacomp-script: New file.
14898 * modules/javacomp: Depend on it.
14899 Suggested by Simon Josefsson.
14901 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
14903 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
14904 statement, to work around an HP-UX 10.20 compiler bug reported by
14907 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
14909 * modules/savedir (Depends-on): Add openat.
14911 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
14913 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
14914 (uintmax_t) [defined uintmax_t]: Do not declare.
14915 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
14916 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
14917 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
14918 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
14919 sake of portability to weird hosts that C allows (though we don't
14920 know of any practical examples).
14922 * lib/savedir.h (fdsavedir): New decl.
14923 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
14924 contains most of the former guts of savedir.
14925 (savedir): Use savedirstream.
14926 Include "openat.h".
14928 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
14930 * modules/obstack (Files): Add m4/ulonglong.m4.
14931 Problem reported by Davide Angelocola.
14933 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
14935 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
14936 coreutils no longer futzes with rounding modes.
14938 2005-11-14 Jim Meyering <jim@meyering.net>
14940 * lib/mkstemp-safer.c: Include <config.h>, required for possible
14941 replacement of mkstemp.
14943 2005-11-10 Simon Josefsson <jas@extundo.com>
14945 * lib/readline.c: Remove EOL.
14947 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
14949 * modules/gethrxtime (Depends-on): Add gettime.
14951 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
14953 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
14954 or gettimeofday; no longer needed.
14956 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
14958 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
14960 (gethrxtime) [! (HAVE_NANOUPTIME
14961 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
14962 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
14963 our own approximation.
14965 2005-11-08 Eric Blake <ebb9@byu.net>
14967 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
14969 2005-11-08 Eric Blake <ebb9@byu.net>
14971 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
14973 2005-11-04 Bruno Haible <bruno@clisp.org>
14975 * gnulib-tool: Implement --update mode.
14977 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
14979 Fix porting problem reported by Theodoros V. Kalamatianos.
14980 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
14981 Don't assume that futimes failing means we must fail.
14983 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
14985 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
14986 variables to suggest the intended function of the PATH_MAX check.
14988 2005-10-30 Kean Johnston <jkj@sco.com>
14990 Trivial changes to support SCO systems.
14991 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
14993 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
14994 where __ptr is null when no I/O is pending.
14996 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
14998 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
14999 leave errno alone. Problem reported by Dmitry V. Levin.
15001 2005-10-28 Simon Josefsson <jas@extundo.com>
15003 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
15006 * tests/test-gc-md2.c, tests/test-md2.c: New files.
15008 * modules/md2, modules/md2-tests: New files.
15010 2005-10-28 Simon Josefsson <jas@extundo.com>
15012 * m4/inet_ntop.m4: More tests.
15014 * m4/gc-md2.m4, md2.m4: New file.
15016 2005-10-28 Simon Josefsson <jas@extundo.com>
15018 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
15019 "restrict" keywords, as per POSIX. Protect the function
15020 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
15021 Don't use K&R prototypes. Check the sprintf return values.
15022 Re-define EAFNOSUPPORT if not present. Indent.
15024 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
15025 suggested by Bruno Haible <bruno@clisp.org>.
15027 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
15029 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
15031 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
15034 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
15036 * lib/md2.h, lib/md2.c: New files.
15038 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
15040 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
15041 errno alone. Problem reported by Frederic Jolliton.
15043 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
15045 * modules/verify (License): Change from GPL to LGPL. This is a
15046 tiny module and there are apparently near-equivalents that are
15047 under the BSD license.
15049 2005-10-24 Simon Josefsson <jas@extundo.com>
15051 * modules/sha1: Relicense to LGPL.
15053 2005-10-24 Simon Josefsson <jas@extundo.com>
15055 * lib/md4.h: Shrink buffer size, now that we changed the type.
15057 2005-10-23 Simon Josefsson <jas@extundo.com>
15059 * gnulib-tool (func_import): Fix --tests-base.
15061 2005-10-22 Simon Josefsson <jas@extundo.com>
15063 * modules/arcfour (Depends-on): Need stdint.
15065 2005-10-22 Simon Josefsson <jas@extundo.com>
15067 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
15068 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
15070 2005-10-22 Simon Josefsson <jas@extundo.com>
15072 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
15073 suggested by Bruno Haible <bruno@clisp.org>.
15075 2005-10-22 Simon Josefsson <jas@extundo.com>
15077 * lib/crc.h: Include stddef.h, for size_t.
15079 2005-10-22 Simon Josefsson <jas@extundo.com>
15081 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
15082 arcfour_context struct (simplify test vector testing in GNU
15085 2005-10-21 Simon Josefsson <jas@extundo.com>
15087 * modules/des, modules/des-tests: New files.
15089 * modules/gc-des, modules/gc-des-tests: New files.
15091 * tests/test-des.c, tests/test-gc-des.c: New file.
15093 2005-10-21 Simon Josefsson <jas@extundo.com>
15095 * modules/arctwo, modules/arctwo-tests: New files.
15097 * tests/test-arctwo.c: New file.
15099 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
15101 * tests/test-gc-arctwo.c: New file.
15103 2005-10-21 Simon Josefsson <jas@extundo.com>
15105 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
15106 Bruno Haible <bruno@clisp.org>.
15108 * m4/gc-des.m4: New file.
15110 2005-10-21 Simon Josefsson <jas@extundo.com>
15112 * m4/arctwo.m4: New file.
15114 * m4/gc-arctwo.m4: New file.
15116 2005-10-21 Simon Josefsson <jas@extundo.com>
15118 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
15121 2005-10-21 Simon Josefsson <jas@extundo.com>
15123 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
15126 * lib/hmac-sha1.c (hmac_sha1): Likewise.
15128 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
15129 Bruno Haible <bruno@clisp.org>.
15131 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
15134 2005-10-21 Simon Josefsson <jas@extundo.com>
15136 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
15138 2005-10-21 Simon Josefsson <jas@extundo.com>
15140 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
15142 2005-10-21 Simon Josefsson <jas@extundo.com>
15144 * lib/des.h, lib/des.c: New files.
15146 * lib/gc-gnulib.c: Support DES.c
15148 2005-10-21 Simon Josefsson <jas@extundo.com>
15150 * lib/arctwo.h, lib/arctwo.c: New files.
15152 * lib/gc-gnulib.c: Support ARCTWO.
15154 2005-10-21 Simon Josefsson <jas@extundo.com>
15156 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
15157 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15159 2005-10-21 Simon Josefsson <jas@extundo.com>
15161 * gnulib-tool (func_import, func_create_testdir): Define automake
15162 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
15163 Makefile.am snippet),
15164 suggested by Bruno Haible <bruno@clisp.org>.
15166 * modules/gc (Makefile.am): Use it.
15168 2005-10-21 Bruno Haible <bruno@clisp.org>
15170 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
15173 2005-10-19 Simon Josefsson <jas@extundo.com>
15175 * tests/test-gc-rijndael.c: New file.
15177 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
15179 2005-10-19 Simon Josefsson <jas@extundo.com>
15181 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
15184 2005-10-19 Simon Josefsson <jas@extundo.com>
15186 * tests/test-gc-arcfour.c: New file.
15188 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
15190 2005-10-19 Simon Josefsson <jas@extundo.com>
15192 * modules/gc-md4, modules/gc-md4-tests: New file.
15194 * tests/test-gc-md4.c: New file.
15196 2005-10-19 Simon Josefsson <jas@extundo.com>
15198 * m4/gc-md4.m4: New file.
15200 2005-10-19 Simon Josefsson <jas@extundo.com>
15202 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
15203 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
15206 2005-10-19 Simon Josefsson <jas@extundo.com>
15208 * m4/gc-arcfour.m4: New file.
15210 * m4/gc-rijndael.m4: New file.
15212 2005-10-19 Simon Josefsson <jas@extundo.com>
15214 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
15216 2005-10-19 Simon Josefsson <jas@extundo.com>
15218 * lib/gc-gnulib.c: Support ARCFOUR.
15220 2005-10-19 Simon Josefsson <jas@extundo.com>
15222 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
15225 * lib/gc.h: Add ECB enum type.
15227 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
15229 2005-10-18 Simon Josefsson <jas@extundo.com>
15231 * tests/test-md5.c: New file.
15233 * modules/md5-tests: New file.
15235 2005-10-18 Simon Josefsson <jas@extundo.com>
15237 * tests/test-md4.c: New file.
15239 * modules/md4, modules/md4-tests: New files.
15241 2005-10-18 Simon Josefsson <jas@extundo.com>
15243 * m4/md4.m4: New file.
15245 2005-10-18 Simon Josefsson <jas@extundo.com>
15247 * lib/md4.h, lib/md4.c: New files, based on md5.?.
15249 2005-10-17 Stepan Kasal <kasal@ucw.cz>
15251 * gnulib-tool (func_create_testdir): Omit the second check whether
15252 BUILT_SOURCES in nonempty.
15254 2005-10-17 Simon Josefsson <jas@extundo.com>
15256 * tests/test-rijndael.c: New file.
15258 2005-10-17 Simon Josefsson <jas@extundo.com>
15260 * modules/sha1: Depend on stdint instead of md5.
15262 * modules/md5: Depend on stdint, remove uint32_t.
15264 2005-10-17 Simon Josefsson <jas@extundo.com>
15266 * modules/gc-sha1-tests: New file.
15268 * tests/test-gc-sha1.c: New file.
15270 2005-10-17 Simon Josefsson <jas@extundo.com>
15272 * m4/md5.m4: Remove call to uint32_t.m4.
15274 2005-10-17 Simon Josefsson <jas@extundo.com>
15276 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
15278 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
15281 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
15283 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
15285 2005-10-17 Simon Josefsson <jas@extundo.com>
15287 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
15289 2005-10-17 Simon Josefsson <jas@extundo.com>
15291 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
15293 2005-10-17 Simon Josefsson <jas@extundo.com>
15295 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
15297 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
15299 2005-10-17 Bruno Haible <bruno@clisp.org>
15301 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
15302 that it can also be used in a test.
15304 2005-10-16 Bruno Haible <bruno@clisp.org>
15306 * gnulib-tool (func_emit_tests_Makefile_am): Also define
15307 TESTS_ENVIRONMENT, so that individual tests can augment it.
15309 * gnulib-tool (func_create_testdir): Use an intermediate target for
15310 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
15311 macros, like $(ALLOCA_H), which cannot be passed through the command
15314 2005-10-15 Simon Josefsson <jas@extundo.com>
15316 * modules/rijndael-tests: New file.
15318 * modules/rijndael: New file.
15320 2005-10-15 Simon Josefsson <jas@extundo.com>
15322 * m4/rijndael.m4: New file.
15324 2005-10-15 Simon Josefsson <jas@extundo.com>
15326 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
15328 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
15330 2005-10-14 Simon Josefsson <jas@extundo.com>
15332 * tests/test-arcfour.c: New file.
15334 * modules/arcfour, modules/arcfour-tests: New files.
15336 2005-10-14 Simon Josefsson <jas@extundo.com>
15338 * m4/arcfour.m4: New file.
15340 2005-10-14 Simon Josefsson <jas@extundo.com>
15342 * lib/arcfour.h, lib/arcfour.c: New files.
15344 2005-10-14 Roland McGrath <roland@redhat.com>
15346 Import from libc. [BZ #1331]
15347 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
15349 Reported by Matej Vela <vela@debian.org>.
15351 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
15353 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
15354 include <wchar.h>; no longer needed.
15356 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
15358 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
15360 2005-10-14 Jakub Jelinek <jakub@redhat.com>
15361 and Ulrich Drepper <drepper@redhat.com>
15364 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
15365 instead of inline stream orientation test and two separate
15366 function calls. Pay no attention to USE_IN_LIBIO.
15368 2005-10-13 Simon Josefsson <jas@extundo.com>
15370 * modules/gc-hmac-md5-tests: New file.
15372 * tests/test-gc-hmac-sha1.c: New file.
15374 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
15376 * modules/gc-hmac-md5-tests: New file.
15378 * tests/test-gc-md5.c: New file.
15380 * modules/gc-md5-tests: New file.
15382 2005-10-13 Simon Josefsson <jas@extundo.com>
15384 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
15385 Move memory allocation outside of loop.
15387 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
15389 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
15390 intermediate directory is in a read-only file system. Problem
15391 reported by Eric Blake.
15393 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
15395 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
15397 2005-10-12 Simon Josefsson <jas@extundo.com>
15399 * tests/test-hmac-sha1.c: New file.
15401 * modules/hmac-sha1-tests: New file.
15403 * modules/hmac-sha1: New file.
15405 2005-10-12 Simon Josefsson <jas@extundo.com>
15407 * modules/gc-sha1: New file.
15409 2005-10-12 Simon Josefsson <jas@extundo.com>
15411 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
15413 * tests/test-gc-pbkdf2-sha1.c: New file.
15415 2005-10-12 Simon Josefsson <jas@extundo.com>
15417 * modules/gc-md5, modules/gc-hmac-md5: New files.
15419 * modules/gc (Files): Remove md5, memxor and hmac files.
15421 2005-10-12 Simon Josefsson <jas@extundo.com>
15423 * m4/gc-pbkdf2-sha1.m4: New file.
15425 * m4/gc-hmac-sha1.m4: New file.
15427 * m4/gc-sha1: New file.
15429 * m4/hmac-sha1.m4: New file.
15431 2005-10-12 Simon Josefsson <jas@extundo.com>
15433 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
15435 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
15437 2005-10-12 Simon Josefsson <jas@extundo.com>
15439 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
15440 suggested by Bruno Haible <bruno@clisp.org>.
15442 2005-10-12 Simon Josefsson <jas@extundo.com>
15444 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
15446 2005-10-12 Simon Josefsson <jas@extundo.com>
15448 * lib/gc-pbkdf2-sha1.c: New file.
15450 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
15452 2005-10-12 Simon Josefsson <jas@extundo.com>
15454 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
15456 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
15458 2005-10-12 Simon Josefsson <jas@extundo.com>
15460 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
15461 GC_USE_HMAC_MD5, respectively.
15463 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
15464 (gc_md5): Fix typo.
15466 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
15468 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
15470 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
15472 2005-10-12 Bruno Haible <bruno@clisp.org>
15474 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
15475 Reported by Stepan Kasal <kasal@ucw.cz>.
15477 2005-10-11 Simon Josefsson <jas@extundo.com>
15479 * tests/test-crc.c: New file.
15481 * modules/crc, modules/crc-tests: New files.
15483 2005-10-11 Simon Josefsson <jas@extundo.com>
15485 * m4/crc.m4: New file.
15487 2005-10-11 Simon Josefsson <jas@extundo.com>
15489 * lib/gc.h: Add gc_hash and gc_hash_buffer.
15491 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
15493 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
15495 2005-10-11 Simon Josefsson <jas@extundo.com>
15497 * lib/crc.h, lib/crc.c: New files.
15499 * lib/gc.h (gc_hash_buffer): Add doc.
15501 2005-10-11 Bruno Haible <bruno@clisp.org>
15503 * modules/c-strcasestr: New file.
15504 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
15506 2005-10-11 Bruno Haible <bruno@clisp.org>
15508 * modules/c-strcase: New file.
15509 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
15511 2005-10-11 Bruno Haible <bruno@clisp.org>
15513 * lib/strcasecmp.c: Include limits.h.
15514 (strcasecmp): Avoid integer overflow on exotic platforms.
15515 * lib/strncasecmp.c: Include limits.h.
15516 (strncasecmp): Avoid integer overflow on exotic platforms.
15517 Reported by Paul Eggert.
15519 2005-10-11 Bruno Haible <bruno@clisp.org>
15521 * lib/c-strcasestr.h: New file, from GNU gettext.
15522 * lib/c-strcasestr.c: New file, from GNU gettext.
15524 2005-10-11 Bruno Haible <bruno@clisp.org>
15526 * lib/c-strcase.h: New file, from GNU gettext.
15527 * lib/c-strcasecmp.c: New file, from GNU gettext.
15528 * lib/c-strncasecmp.c: New file, from GNU gettext.
15530 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
15532 * modules/mempcpy (License): GPL -> LGPL.
15533 * modules/strchrnul (License): Likewise.
15534 * modules/sysexits (License): Likewise.
15536 2005-10-08 Simon Josefsson <jas@extundo.com>
15538 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
15540 2005-10-07 Simon Josefsson <jas@extundo.com>
15542 * m4/memxor.m4: Remove gl_C_RESTRICT call.
15544 2005-10-06 Simon Josefsson <jas@extundo.com>
15546 * tests/test-hmac-md5.c: New file.
15548 * modules/hmac-md5-tests: New file.
15550 * modules/hmac-md5: New file.
15552 2005-10-06 Simon Josefsson <jas@extundo.com>
15554 * m4/hmac-md5.m4: New file.
15556 * m4/memxor.m4: Require gl_C_RESTRICT.
15558 2005-10-06 Simon Josefsson <jas@extundo.com>
15560 * lib/memxor.c (memxor): Avoid casts and warnings.
15562 2005-10-06 Simon Josefsson <jas@extundo.com>
15564 * lib/hmac-md5.c: New file.
15566 * lib/hmac.h: New file.
15568 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
15570 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
15571 promotes to int, not unsigned int, to catch the AIX 5.3
15574 2005-10-05 Simon Josefsson <jas@extundo.com>
15576 * modules/memxor: New file.
15578 * modules/iconv (Files): Move config.rpath to havelib, it is used
15581 * modules/havelib (Files): Add config.rpath.
15583 2005-10-05 Simon Josefsson <jas@extundo.com>
15585 * m4/memxor.m4: New file.
15587 2005-10-05 Simon Josefsson <jas@extundo.com>
15589 * lib/memxor.c (memxor): Fix compiler error.
15591 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
15592 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
15594 * lib/memxor.h, lib/memxor.c: New files.
15596 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
15597 we assume all systems have it, suggested by Jim Meyering
15598 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
15599 any systems lack sys/socket.h; mingw32 is known to lack it, but we
15600 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
15603 2005-10-05 Simon Josefsson <jas@extundo.com>
15605 * config/srclist.txt: Add glibc bug 1423 for md5.h.
15607 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
15609 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
15610 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
15611 needed, since the source code now assumes these .h files.
15613 2005-10-05 Derek Price <derek@ximbiot.com>
15615 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
15617 2005-10-05 Bruno Haible <bruno@clisp.org>
15619 * modules/stdint (License): Change to LGPL.
15621 2005-10-04 Simon Josefsson <jas@extundo.com>
15623 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
15624 D. Baushke" <mdb@gnu.org>.
15626 2005-10-04 Bruno Haible <bruno@clisp.org>
15628 * lib/verify.h (verify_true): Provide alternative definition for C++.
15630 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
15632 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
15633 (SSIZE_MAX): New macro, if not already defined.
15634 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
15637 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
15639 Sync from coreutils.
15640 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
15641 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
15642 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
15643 ULLONG_MAX doesn't work with 2.7.2.1.
15645 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
15647 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
15650 * modules/exclude (Depends-on): Depend on verify.
15651 * modules/strtoimax (Depends-on): Likewise.
15652 * modules/utimecmp (Depends-on): Likewise.
15654 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
15656 * lib/exclude.c: Include verify.h.
15657 (verify): Remove. All callers changed to use verify.h's version.
15658 * lib/strtoimax.c: Likewise.
15659 * lib/utimecmp.c: Likewis.e
15661 Sync from coreutils.
15662 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
15663 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
15664 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
15665 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
15666 bother returning ENOSYS if settimeofday or stime fails; just let
15667 them return whatever errno they want to return.
15668 * lib/utimens.c: Include unistd.h, for dup2.
15669 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
15670 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
15672 2005-10-02 Jim Meyering <jim@meyering.net>
15674 Sync from coreutils.
15675 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
15676 from glibc-2.2.5 that fails for read-only files.
15678 2005-10-02 Jim Meyering <jim@meyering.net>
15680 Sync from coreutils.
15681 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
15682 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
15683 `#if HAVE_CONFIG_H'.
15684 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
15685 Remove AT_FDCWD test.
15686 Do not consume the fd unless successful.
15687 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
15688 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
15689 block, so that we don't even try to compile it if settimeofday is
15690 available. This works around a compilation failure on OSF1 V5.1,
15691 due to stime requiring a `long int*' while tv_sec is `int'.
15693 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
15695 Sync from coreutils.
15696 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
15697 against `yes', rather than just testing for nonempty.
15699 2005-10-01 Simon Josefsson <jas@extundo.com>
15701 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
15704 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
15705 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
15706 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
15707 freeaddrinfo and gai_strerror are declared by the POSIX headers.
15708 Check if struct addrinfo is declared.
15710 2005-10-01 Simon Josefsson <jas@extundo.com>
15712 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
15713 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
15714 AI_* and EAI_* definitions. Protect function declarations.
15716 2005-10-01 Jim Meyering <jim@meyering.net>
15718 Sync from coreutils.
15720 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
15721 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
15722 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
15723 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
15724 in the inet and nsl libraries. Required on Solaris 5.7.
15726 2005-10-01 Jim Meyering <jim@meyering.net>
15728 Sync from coreutils.
15729 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
15730 in the inet and nsl libraries. Required on Solaris 5.7.
15732 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
15734 * lib/getdelim.c (getdelim): Remove unused variables.
15736 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
15738 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
15739 so that the code works even with ancient cpp. Portability problem
15740 with GCC 2.7.2.1 reported by Thomas M.Ott.
15742 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
15744 * modules/regex (Depends-on): Add strcase.
15746 * modules/gethostname (Licence): Change from GPL to LGPL, since
15747 gethostname.c is a trivial implementation of a standard library
15749 * modules/poll (License): Change from GPL to LGPL, since it's
15750 derived from LGPL code.
15752 2005-09-27 Jim Meyering <jim@meyering.net>
15754 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
15757 * lib/intprops.h (signed_type_or_expr__): Define.
15758 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
15759 for unsigned types.
15761 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
15763 * lib/verify.h (verify_expr): Remove, replacing with:
15764 (verify_true): New macro that returns true instead of void.
15765 (verify_type__): Remove.
15766 (verify): Use verify_true rather than verify_type__.
15768 2005-09-26 Bruno Haible <bruno@clisp.org>
15770 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
15772 (lib_SOURCES): Remove mbchar.c.
15773 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
15774 (Files): Add m4/mbrtowc.m4.
15775 * modules/mbiter: Likewise.
15776 * modules/mbuiter: Likewise.
15778 2005-09-26 Bruno Haible <bruno@clisp.org>
15780 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
15781 compile mbchar.c if they are not both present.
15782 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
15783 * m4/mbiter.m4 (gl_MBITER): Likewise.
15784 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
15785 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
15786 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
15788 2005-09-25 Jim Meyering <jim@meyering.net>
15790 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
15791 also uses socklen_t.
15793 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
15795 * lib/utimens.c (ENOSYS): Define if not already defined.
15796 (futimens): Support having a null PATH if the file descriptor
15799 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
15801 (__attribute): Define to empty unless GCC 3.1 or later.
15802 This works around a core dump on OpenBSD 3.4, which has GCC
15803 2.95.3, which dumps core when given __attribute__(()). It also
15804 simplifies other tests, since we really don't want to bother with
15805 worrying about which ancient version of GCC supported what.
15806 Original problem reported by Yoann Vandoorselaere, with part of
15807 the fix suggested by Derek Price.
15809 2005-09-24 Jim Meyering <jim@meyering.net>
15811 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
15812 so we can once again use a positive bitfield width of 1 -- now we
15813 don't have to explain why we were using a bitfield width of 2.
15815 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
15817 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
15818 and similarly for the other external symbols. Problem reported
15821 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
15822 bug reported by Jim Meyering.
15824 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
15825 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
15826 not needed, since socklen is a prerequisite module.
15828 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
15830 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
15831 Problem reported by Eric Blake.
15832 (getaddrinfo): Initialize se so that it's not garbage.
15833 Redo internal storage allocation so that it doesn't make unportable
15834 assumptions about alignment.
15837 * lib/utimens.c (futimens): Use futimesat if available.
15838 Prefer it to futimes since it doesn't have the futimes bug.
15840 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
15841 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
15842 Instead, declare a function that returns a pointer to an array,
15843 and use verify_type__ to declare the size of the array.
15844 Problem and germ of a solution reported by Bruno Haible.
15845 (verify_type__): Use 2, not 1, for bitfield size, to avoid
15846 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
15848 2005-09-23 Jim Meyering <jim@meyering.net>
15850 Sync from coreutils.
15851 Correct build failure (socklen_t not defined) on at least
15852 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
15853 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
15855 2005-09-23 Jim Meyering <jim@meyering.net>
15857 * modules/getaddrinfo (Depends-on): Add socklen.
15859 2005-09-23 Bruno Haible <bruno@clisp.org>
15861 * tests/test-verify.c: New file.
15863 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
15865 Sync from coreutils.
15867 * modules/argmatch (Depends-on): Add verify.
15868 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
15870 * modules/save-cwd (Depends-on): Likewise.
15872 * modules/openat (Files): Add lib/openat-die.c.
15873 (Depends-on): Remove error, exitfail.
15876 * modules/verify: New file.
15877 * MODULES.html.sh (Diagnostics <assert.h>): New section,
15878 with "verify" module.
15880 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
15882 Sync from coreutils.
15884 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
15885 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
15886 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
15887 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
15888 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
15889 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
15890 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
15891 Don't bother checking for string.h, stdlib.h, unistd.h.
15892 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
15893 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
15895 * m4/jm-macros.m4 (gl_MACROS): Likewise.
15896 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
15898 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
15899 (gl_GETDATE): Use it.
15901 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
15903 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
15905 Sync from coreutils.
15907 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
15909 * lib/argmatch.h: Include verify.h
15910 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
15911 (ARGMATCH_ASSERT): Remove; unused.
15912 * lib/canonicalize.c: Assume STDC_HEADERS.
15913 * lib/exclude.c: Include "strcase.h".
15914 * lib/regex_internal.h [!defined _LIBC]: Likewise.
15915 * lib/getusershell.c: Include stdio--.h rather than stdio.h
15917 (getusershell): Call fopen, not fopen_safer.
15918 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
15919 Do not include unistd-safer.h.
15920 (save_cwd): Don't call fd_safer; no longer needed
15921 now that we include fcntl--.h.
15923 * lib/getdate.y (relative_time): New type.
15924 (RELATIVE_TIME_0): New constant.
15925 (parser_control): Use relative_time instead of doing it ourselves.
15926 (%union): Add new relative_time rel member.
15927 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
15929 (relunit, relunit_snumber): Now of type rel.
15930 (zone, rel, relunit, get_date): Adjust to above changes.
15932 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
15933 Do not include unistd-safer.h.
15934 (getloadavg): Don't call fd_safer; no longer needed
15935 now that we include fcntl--.h.
15937 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
15938 (make_dir_parents): Treat ENOSYS like EEXIST.
15940 Improve quality of diagnostics on restore_cwd failure.
15941 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
15942 (make_dir_parents): Last arg is now int * (for errno), not bool *.
15943 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
15944 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
15945 each time through the loop. Do not diagnose restore_cwd failure;
15946 that is the caller's job (and perhaps the caller does not care).
15948 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
15949 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
15950 If the file already exists but is not a directory, don't bother
15951 to try to make its parents.
15952 Close potential file descriptor leak if we can't chdir("/") (!).
15953 Don't always return true if chdir($PWD) fails; return true only
15954 if the requested action was done successfully (except for the
15956 Don't log final directory unless we actually made it.
15957 Refactor to avoid duplicate code to fix up permissions.
15958 Don't attempt to fix up parent permissions if chdir($PWD) fails.
15960 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
15961 to make it a bit faster and (I hope) clearer.
15962 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
15963 Fix bug in formats like %2N.
15965 * lib/verify.h: New file.
15967 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
15969 Sync from coreutils.
15970 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
15972 2005-09-22 Jim Meyering <jim@meyering.net>
15974 Sync from coreutils.
15976 * m4/lstat.m4 (gl_FUNC_LSTAT):
15977 Use AC_LIBSOURCES to require lstat.c and lstat.h.
15978 Remove obsolete comment.
15979 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
15980 * m4/xstrtod.m4: Likewise.
15982 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
15984 2005-09-22 Jim Meyering <jim@meyering.net>
15986 Sync from coreutils.
15988 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
15990 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
15991 the .tm_year member, since otherwise gcc-4.0 would now warn about
15992 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
15994 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
15995 order to avoid an unsuppressible warning from gcc on 64-bit systems.
15997 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
15998 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
15999 when run in a time zone for which daylight savings time is in effect
16000 for the starting date.
16002 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
16003 stop us from restricting permissions of just-created absolute-named
16005 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
16006 to restore initial working directory.
16007 * lib/mkdir-p.c (make_dir_parents): New parameter:
16008 different_working_dir, to tell caller if/when we change the working
16009 directory and are unable to return to the initial one.
16010 * lib/mkdir-p.h (make_dir_parents): Update prototype.
16011 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
16012 `return false'. This fixes a bug introduced on 2004-07-30.
16014 * lib/openat.c (fdopendir): Be sure to close the supplied
16015 file descriptor before returning. This makes our replacement
16016 implementation a little closer to Solaris's, where fdopendir
16017 ties the file descriptor to the returned DIR* pointer.
16018 * lib/openat.c (unlinkat): New function.
16019 * lib/openat.h (unlinkat): Add prototype.
16020 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
16021 (openat_restore_fail): Rename from openat_restore_die.
16022 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
16024 Provide an alternative to exiting immediately upon save_cwd or
16025 restore_cwd failure. Now, an application can arrange e.g.,
16026 to perform a longjump in that case.
16027 * lib/openat.c: Include dirname.h.
16028 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
16029 (rpl_openat, fdopendir, fstatat): Call openat_save_die
16030 and openat_restore_die rather than calling error directly.
16031 Don't include "error.h" or "exitfail.h"; they're no longer needed.
16033 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
16034 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
16037 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
16038 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
16039 int utc, int nanoseconds);
16041 date should not have to allocate a megabyte of virtual memory to
16042 handle a format argument like +%1048575T. When implemented with
16043 strftime, it must allocate such a buffer, use strftime to fill it
16044 in, print it, then free it.
16045 With fprintftime, it simply prints everything and exits.
16046 With no need for memory allocation, that's one fewer way to fail.
16047 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
16048 optional field width, not before, so we accept %9:z, not %:9z.
16049 (my_strftime): Be sure to use L_('x') for literals.
16051 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
16052 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
16053 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
16054 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
16055 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
16056 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
16057 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
16058 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
16059 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
16060 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
16061 * lib/xgethostname.c, lib/xreadlink.c:
16062 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
16064 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
16065 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
16066 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
16067 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
16068 and don't include <sys/file.h>).
16070 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
16072 Sync from coreutils.
16074 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
16075 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
16076 [!LDAV_DONE]: Avoid unused variable warning.
16078 2005-09-21 Bruno Haible <bruno@clisp.org>
16080 * lib/unicodeio.h (unicode_to_mb): New declaration.
16082 2005-09-20 Derek Price <derek@ximbiot.com>
16084 * lib/getaddrinfo.c: Don't include <netdb.h> included from
16087 2005-09-20 Bruno Haible <bruno@clisp.org>
16089 * gnulib-tool: Remove trailing slashes from the values specified for
16090 --source-base, --m4-base, --tests-base, --aux-dir.
16091 Suggested by Simon Josefsson <jas@extundo.com>.
16093 2005-09-20 Bruno Haible <bruno@clisp.org>
16095 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
16096 func_modules_to_filelist, func_import, func_create_testdir): Make all
16097 sorting results locale-independent, so that gnulib-cache.m4 doesn't
16098 change when gnulib-tool is invoked in a different locale.
16100 2005-09-19 Simon Josefsson <jas@extundo.com>
16102 * m4/socklen.m4: Fix typo.
16104 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16106 Use a consistent style for including <config.h>.
16107 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
16108 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
16109 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
16110 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
16111 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
16112 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
16113 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
16114 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
16115 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
16116 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
16117 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
16118 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
16119 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
16120 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
16121 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
16122 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
16123 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
16124 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
16125 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
16126 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
16127 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
16128 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
16129 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
16130 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
16131 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
16132 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
16133 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
16134 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
16135 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
16136 lib/xstrtoumax.c, lib/yesno.c:
16137 Standardize inclusion of config.h.
16138 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
16139 lib/inttostr.h: Removed inclusion of config.h from header files.
16140 * lib/inttostr.c: Adjusted in-tree users.
16141 * lib/timespec.h: Remove superfluous warning to include config.h.
16142 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
16143 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
16144 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
16145 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
16146 config.h with HAVE_CONFIG_H.
16148 2005-09-19 Jim Meyering <jim@meyering.net>
16150 * modules/pathmax (License): Change to LGPL.
16152 2005-09-19 Derek Price <derek@ximbiot.com>
16154 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
16156 2005-09-19 Bruno Haible <bruno@clisp.org>
16158 * gnulib-tool (import): Provide default for --tests-base.
16160 2005-09-19 Bruno Haible <bruno@clisp.org>
16162 * doc/quote.texi: New file, extracted from gnulib.texi.
16163 * doc/ctime.texi: New file, extracted from gnulib.texi.
16164 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
16165 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
16166 * doc/gnulib.texi: Include them.
16168 2005-09-18 Bruno Haible <bruno@clisp.org>
16171 * gnulib-tool (func_readlink): New function.
16172 (func_ln_if_changed): Use it.
16174 2005-09-18 Bruno Haible <bruno@clisp.org>
16176 * gnulib-tool: Support --with-tests also with --import.
16177 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
16178 (func_import): Use variables $testsbase and $inctests. Emit a
16179 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
16180 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
16181 SUBDIRS += $testsdir.
16182 (func_create_testdir): Update.
16184 2005-09-18 Bruno Haible <bruno@clisp.org>
16186 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
16187 instead of $dry_run.
16188 (func_cp_if_changed, func_mv_if_changed): Remove functions.
16189 (func_ln_if_changed): Don't handle dry-run here.
16190 (func_import): In dry-run mode, detect more precisely which actions
16191 would be performed, and don't use "...ing" verbs.
16193 2005-09-18 Bruno Haible <bruno@clisp.org>
16195 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
16196 (func_import): Use join on two temporary files instead of three nested
16197 loops, in order to determine which files are new or old.
16199 2005-09-18 Bruno Haible <bruno@clisp.org>
16201 * gnulib-tool (func_import): Comment out code that spits out the
16202 new files with --dry-run.
16204 2005-09-18 Bruno Haible <bruno@clisp.org>
16206 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
16208 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
16210 * lib/stat-time.h: New file.
16211 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
16212 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
16213 in a different way.
16214 (timespec_cmp): New function.
16215 * lib/utimecmp.c: Include stat-time.h.
16216 (SYSCALL_RESOLUTION): Depend on whether various struct stat
16217 members exist, not on the obsolescent ST_MTIM_NSEC.
16218 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
16220 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
16222 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
16224 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
16226 * MODULES.html.sh (File system functions): Add stat-time.
16227 * modules/stat-time: New file.
16228 * modules/timespec (Files): Remove m4/st_mtim.m4; this
16229 is now done in a different way, by the stat-time module.
16230 * modules/utimecmp (Depends-on): Add stat-time.
16232 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
16234 * m4/st_mtim.m4: Remove. Superseded by...
16235 * m4/stat-time.m4: New file.
16236 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
16237 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
16239 2005-09-15 Derek Price <derek@ximbiot.com>
16241 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
16243 2005-09-15 Derek Price <derek@ximbiot.com>
16245 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
16246 * lib/regex_internal.c: Ditto, using this...
16247 (__GNUC_PREREQ): ...new macro.
16248 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
16250 (__GNUC_PREREQ): ...this new macro.
16252 * lib/strstr.h: Include string.h. Define strstr as a macro here.
16254 2005-09-15 Derek Price <derek@ximbiot.com>
16255 Paul Eggert <eggert@cs.ucla.edu>
16257 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
16258 changes, consolidating in...
16259 * lib/regex_internal.h: ...this file.
16261 2005-09-13 Jim Meyering <jim@meyering.net>
16263 * lib/canon-host.c: Filter through gnu indent and reword comments
16265 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
16267 2005-09-13 Derek Price <derek@ximbiot.com>
16269 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
16271 Reported by Jim Meyering <jim@meyering.net>.
16273 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
16275 * lib/base64.c: Typo.
16276 (base64_encode): Put b64str in initialized data section.
16278 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
16280 Merge glibc and coreutils changes into gnulib, plus a few
16282 * lib/md5.c: Use #error rather than a string.
16283 (CYCLIC): New macro, from glibc source. Use it instead of rol.
16284 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
16285 (__attribute__): Define to empty for non recent-GCC.
16286 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
16287 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
16288 Renamed from their non-__ counterparts, with new macros replacing
16289 them if not _LIBC. Add __THROW attribute.
16291 (struct md5_ctx): Align buffer if using GCC.
16292 * lib/sha1.h (struct sha1_ctx): Likewise.
16293 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
16294 The old name was backwards.
16295 (NOTSWAP): Remove; not used.
16296 (rol): New macro, moved here from md5.h.
16297 (sha1_process_block): Remove a FIXME that doesn't make sense.
16299 2005-09-12 Derek Price <derek@ximbiot.com>
16301 Return usable errors from canon-host.
16302 * lib/canon-host.h: New file.
16303 * lib/canon-host.c (canon_host): Wrap...
16304 (canon_host_r): ...this new function, which now relies exclusively on
16306 (ch_strerror): New function.
16307 (last_cherror): New global.
16308 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
16310 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
16312 (freeaddrinfo): Free ai->ai_canonname when set.
16314 2005-09-12 Derek Price <derek@ximbiot.com>
16316 Make canon-host require getaddrinfo.
16317 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
16318 AC_LIBSOURCE canon-host.h. Call...
16319 (gl_PREREQ_CANON_HOST): ...this new function, which requires
16321 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
16323 2005-09-12 Derek Price <derek@ximbiot.com>
16325 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
16327 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
16329 2005-09-12 Derek Price <derek@ximbiot.com>
16331 * lib/gai_strerror.c: Include config.h when available. Include
16332 getaddrinfo.h before other headers to test interface.
16333 Reported by Larry Jones <lawrence.jones@ugs.com>.
16335 2005-09-12 Derek Price <derek@ximbiot.com>
16336 Paul Eggert <eggert@cs.ucla.edu>
16338 * modules/glob (Files): Add glob-libc.h.
16340 2005-09-12 Derek Price <derek@ximbiot.com>
16341 Paul Eggert <eggert@cs.ucla.edu>
16343 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
16344 glob_.h, glob-libc.h.
16345 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
16347 2005-09-12 Derek Price <derek@ximbiot.com>
16348 Paul Eggert <eggert@cs.ucla.edu>
16350 * lib/glob-libc.h: Renamed from glob_.h. The new version is
16351 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
16352 protecting things that should be done only in gnulib contexts.
16353 * lib/glob_.h: New file, containing only the glob things needed for
16355 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
16356 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
16357 (glob, globfree, glob_pattern_p): Now defined simply in terms of
16358 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
16359 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
16360 and to respect the namespace rules better.
16362 2005-09-08 Simon Josefsson <jas@extundo.com>
16364 * modules/socklen: New file.
16366 2005-09-08 Simon Josefsson <jas@extundo.com>
16368 * m4/socklen.m4: New file.
16370 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
16372 * modules/utimens (Files): Add m4/utimbuf.m4, since
16373 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
16374 Reported by Sergey Poznyakoff.
16376 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
16378 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
16379 definitions, since that's the preferred style in glibc.
16380 Fix a minor spacing issue, and update copyright notice to match
16383 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
16385 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
16387 2005-09-06 Simon Josefsson <jas@extundo.com>
16389 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
16390 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
16392 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
16394 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
16397 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
16399 * config/srclist.txt: Add glibc bug 1302.
16401 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
16403 Change bitset word type from unsigned int to unsigned long int,
16404 as this has better performance on typical 64-bit hosts.
16405 Port bitset code to hosts with unusual word sizes.
16406 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
16407 (build_collating_symbol):
16408 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
16409 argument is a bitset. This is merely a style issue, but it makes
16410 it clearer that an entire array is expected.
16411 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
16412 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
16413 Port to the case where bitset_word is not the same as unsigned int.
16414 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
16415 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
16417 * lib/regexec.c (check_dst_limits_calc_pos_1,
16418 check_subexp_matching_top):
16419 (build_trtable, group_nodes_into_DFAstates):
16421 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
16422 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
16423 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
16424 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
16425 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
16426 * lib/regcomp.c (optimize_subexps, lower_subexp):
16427 Work even if bitset_word has holes in its bitwise representation.
16428 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
16429 * lib/regexec.c (check_dst_limits_calc_pos_1,
16430 check_subexp_matching_top):
16432 * lib/regex_internal.c (re_string_reconstruct):
16433 Don't assume UCHAR_MAX == 255.
16434 * lib/regex_internal.h (bitset_set_all): Likewise.
16435 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
16437 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
16438 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
16440 (BITSET_WORD_MAX): New macro.
16441 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
16442 (bitset_set_all, bitset_copy): Now inline functions, not macros.
16443 (bitset_empty, bitset_copy):
16444 Prefer sizeof (bitset) to multiplying it out ourselves.
16445 (bitset_not_merge): Remove; unused.
16446 (bitset_contain): Return bool, not unsigned int with one bit on.
16447 All callers changed.
16448 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
16449 alignment than re_node_set; do this by defining a new internal
16450 type struct dests_alloc and using it to allocate memory.
16452 2005-09-05 Bruno Haible <bruno@clisp.org>
16454 * gnulib-tool (func_import): Fix comparison in handling of symbolic
16457 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
16459 * modules/size_max (Makefile.am): Add size_max.h
16461 2005-09-04 Derek Price <derek@ximbiot.com>
16463 * gnulib-tool (func_import): Fix reversed $symbolic logic.
16465 2005-09-03 Simon Josefsson <jas@extundo.com>
16467 * gnulib-tool: Fix typo.
16469 2005-09-03 Simon Josefsson <jas@extundo.com>
16471 * config/srclist.txt: Add glibc bug 1293.
16473 2005-09-03 Derek Price <derek@ximbiot.com>
16475 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
16476 From Larry Jones <lawrence.jones@ugs.com>.
16478 2005-09-02 Simon Josefsson <jas@extundo.com>
16480 * modules/socklen: New file.
16482 2005-09-02 Simon Josefsson <jas@extundo.com>
16484 * modules/havelib: New module.
16486 * modules/gettext, modules/iconv, modules/lock, modules/readline:
16489 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
16491 Check for arithmetic overflow when calculating sizes, to prevent
16492 some buffer-overflow issues. These patches are conservative, in the
16493 sense that when I couldn't determine whether an overflow was possible,
16494 I inserted a run-time check.
16495 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
16497 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
16498 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
16499 (re_xnrealloc, re_x2nrealloc): New inline functions.
16500 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
16501 parse_bracket_exp):
16502 (build_equiv_class, build_charclass): Check for arithmetic overflow
16503 in size expression calculations.
16504 * lib/regex_internal.c (re_string_realloc_buffers):
16505 (build_wcs_upper_buffer, re_node_set_add_intersect):
16506 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
16507 (re_dfa_add_node, register_state): Likewise.
16508 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
16509 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
16510 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
16511 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
16513 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
16515 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16516 m4/ulonglong.m4. Problem reported by Martin Lambers.
16518 2005-09-02 Bruno Haible <bruno@clisp.org>
16520 Support for lib vs. lib64 distinction on biarch platforms.
16521 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
16522 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
16523 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
16525 2005-09-02 Bruno Haible <bruno@clisp.org>
16527 * gnulib-tool (import): In the other first-use case, provide defaults
16530 2005-09-02 Bruno Haible <bruno@clisp.org>
16532 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
16533 patches not yet found in the latest gettext release.
16535 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
16537 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
16538 to avoid a collision with bits/local_lim.h in glibc.
16539 All uses changed. Problem reported by Dmitry V. Levin in
16540 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
16542 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
16543 bugs in int versus size_t comparisons.
16544 (re_string_context_at): Fix bug where the code assumed that
16547 Use bool where appropriate.
16548 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
16549 All callers changed.
16550 (calc_eclosure_iter): Likewise, for ROOT arg.
16551 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
16552 (build_charclass_op): Likewise, for NON_MATCH arg.
16553 * lib/regex_internal.c (re_string_allocate, re_string_construct):
16554 (re_string_construct_common): Likewise, for ICASE arg.
16555 * lib/regexec.c (re_search_2_stub, re_search_stub):
16556 Likewise, for RET_LEN arg.
16557 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
16558 (set_regs): Likewise, for FL_BACKTRACK arg.
16559 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
16560 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
16561 (calc_eclosure_iter, parse_bracket_exp):
16562 Use bool for internal variables that are booleans.
16563 * lib/regexec.c (re_search_internal, check_matching,
16564 proceed_next_node):
16565 (set_regs, build_sifted_states, sift_states_bkref):
16566 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
16567 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
16568 (find_collation_sequence_value):
16570 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
16571 (re_node_set_compare):
16572 Return bool, not int. All callers changed.
16573 * lib/regexec.c (check_halt_node_context, check_dst_limits):
16574 (build_trtable, check_node_accept): Likewise.
16575 * lib/regex_internal.h: Include stdbool.h.
16577 Fix bugs uncovered when converting to bool.
16578 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
16579 failure instead of charging ahead blindly.
16580 * lib/regex_internal.c (register_state): Likewise.
16581 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
16582 for freeing internal storage.
16583 (group_nodes_into_DFA_states): Use unsigned int, not int, for
16584 bitset pieces used as boolean, to avoid undefined behavior
16585 on hosts that do int overflow checking.
16587 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
16589 * config/srclist.txt: Add glibc bugs 1285-1287.
16591 2005-09-01 Jim Meyering <jim@meyering.net>
16593 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
16594 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
16595 Require gl_STAT_MACROS, too.
16597 2005-09-01 Bruno Haible <bruno@clisp.org>
16599 * gnulib-tool (import): In the first-use case, provide defaults.
16601 2005-09-01 Bruno Haible <bruno@clisp.org>
16603 * gnulib-tool (func_import): Remove the .tmp files.
16605 2005-09-01 Bruno Haible <bruno@clisp.org>
16607 * gnulib-tool (func_import): Fix handling of symbolic links.
16609 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
16611 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
16612 old glibc regex code mishandles strings longer than 2**31 bytes.
16613 This patch fixes this when the regex code is used in gnulib
16614 (i.e., outside glibc).
16616 This patch should not affect the use of the regex code inside
16617 glibc. No doubt this problem also needs to be handled for glibc
16618 as well, but the result will be an incompatible change to the
16619 glibc ABI, and the old ABI will have to be supported too. That
16620 can be the the subject for another patch.
16622 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
16623 governing whether the rest of this patch is active. By default,
16624 the macro is disabled and the patch has no effect.
16625 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
16626 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
16627 (struct re_pattern_buffer, re_search, re_search_2, re_match):
16628 (re_match_2, re_set_registers): Use the new types.
16629 * lib/regex_internal.h (Idx, re_hashval_t): New types.
16630 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
16632 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
16633 (re_string_context_at, bin_tree_t, re_dfastate_t):
16634 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
16635 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
16636 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
16637 (re_string_char_size_at, re_string_wchar_at):
16638 (re_string_elem_size_at):
16639 Use the new types and macros to port to 64-bit hosts.
16640 Use unsigned types for internal values, so that the code
16641 mostly works even for arrays larger than SSIZE_MAX.
16642 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
16643 (search_duplicated_node, calc_eclosure_iter, fetch_number):
16644 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
16645 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
16646 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
16647 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
16648 (calc_inveclosure, parse_dup_op, build_range_exp):
16649 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
16650 (fetch_number, create_token_tree, mark_opt_subexp):
16652 * lib/regex_internal.c (re_string_construct_common,
16653 create_ci_newstate):
16654 (create_cd_newstate, re_string_allocate, re_string_construct):
16655 (re_string_realloc_buffers, build_wcs_upper_buffer):
16656 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
16657 (re_string_reconstruct, re_string_peek_byte_case):
16658 (re_string_fetch_byte_case, re_string_context_at):
16659 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
16660 (re_node_set_init_copy, re_node_set_add_intersect):
16661 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
16662 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
16663 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
16664 (re_acquire_state, re_acquire_state_context, register_state):
16666 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
16667 search_cur_bkref_entry):
16668 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
16669 (re_search_internal, re_search_2_stub, re_search_stub)
16670 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
16671 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
16672 (update_cur_sifted_state, check_dst_limits):
16673 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
16674 (check_subexp_limits, sift_states_bkref, merge_state_array):
16675 (check_subexp_matching_top, get_subexp, get_subexp_sub):
16676 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
16677 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
16678 (expand_bkref_cache, check_node_accept_bytes):
16679 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
16680 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
16681 (acquire_init_state_context, check_halt_node_context):
16682 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
16683 (sift_states_backward, clean_state_log_if_needed):
16684 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
16685 (find_recover_state, transit_state_sb, transit_state_mb):
16686 (transit_state_bkref, build_trtable, match_ctx_clean):
16688 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
16689 to work around an assumption that REG_MISSING is negative.
16691 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
16692 (seek_collating_symbol_entry) [defined _LIBC]:
16693 (lookup_collation_sequence_value) [defined _LIBC]:
16694 (build_range_exp, build_collating_symbol) [defined _LIBC]:
16695 Use prototypes rather than old-style function definitions.
16696 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
16697 (transit_state_sb) [0]:
16698 (find_collation_sequence_value) [defined _LIBC]: Likewise.
16700 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
16703 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
16704 (optimize_subexps, lower_subexp):
16705 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
16706 since the signed shift might overflow. Use 1u<<31 instead.
16707 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
16709 * lib/regexec.c (check_dst_limits_calc_pos_1,
16710 check_subexp_matching_top): Likewise.
16712 * lib/regcomp.c (optimize_subexps, lower_subexp):
16713 Use CHAR_BIT rather than 8, for clarity.
16714 * lib/regexec.c (check_dst_limits_calc_pos_1):
16715 (check_subexp_matching_top): Likewise.
16716 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
16717 have to worry about portability issues when shifting it left.
16718 Remove no-longer-needed test for table_size > 0.
16719 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
16720 in a word, as the resulting behavior is undefined.
16721 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
16722 in one case, a <= should have been an <, and in another case the
16723 whole test was missing.
16724 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
16725 the standard name CHAR_BIT.
16726 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
16727 this is not true on one's complement and signed-magnitude hosts.
16729 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
16731 (struct re_dfa_t): Remove unused member states_alloc.
16732 * lib/regcomp.c (init_dfa): Don't initialize unused members.
16734 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
16736 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
16737 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
16738 and large-file glibc and in 32-bit large-file Solaris.
16740 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
16742 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
16743 lengths fit in regoff_t; this isn't true if regoff_t is the same
16745 * lib/regex.c (re_search_internal): 5th arg is LAST_START
16746 (= START + RANGE) instead of RANGE. This avoids overflow
16747 problems when regoff_t is the same width as size_t.
16748 All callers changed.
16749 (re_search_2_stub): Check for overflow when adding the
16750 sizes of the two strings.
16751 (re_search_stub): Check for overflow when adding START
16752 to RANGE; if it occurs, substitute the extreme value.
16754 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
16756 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
16758 2005-08-31 Jim Meyering <jim@meyering.net>
16760 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
16761 a pointer-to-const.
16762 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
16763 (register_state): Likewise.
16764 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
16765 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
16766 (group_nodes_into_DFAstates): Likewise.
16768 2005-08-31 Jim Meyering <jim@meyering.net>
16770 * check-module: Add a FIXME comment.
16772 2005-08-31 Eric Blake <ebb9@byu.net>
16774 * modules/unistd-safer (Files): Add unistd--.h.
16775 * modules/stdio-safer (Files): Add stdio--.h.
16777 2005-08-31 Derek Price <derek@ximbiot.com>
16779 * lib/getdelim.c (getdelim): Return EOF on EOF.
16780 Reported by Larry Jones <lawrence.jones@ugs.com>.
16782 2005-08-31 Bruno Haible <bruno@clisp.org>
16784 Avoid unnecessary diffs in the generated lib/Makefile.am.
16785 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
16786 the generated files.
16787 (func_import): Don't set cmd.
16789 2005-08-31 Bruno Haible <bruno@clisp.org>
16791 * lib/strstr.c: Include <stddef.h>, for NULL.
16792 * lib/strcasestr.c: Likewise.
16793 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16795 2005-08-31 Bruno Haible <bruno@clisp.org>
16797 * gnulib-tool: New option --macro-prefix.
16798 (func_import): Use macro_prefix.
16799 (import): Handle option --macro-prefix.
16801 2005-08-31 Bruno Haible <bruno@clisp.org>
16803 * gnulib-tool (import): Rename most ac_* variables to cached_*.
16804 Also use new variables cached_lgpl, cached_libtool.
16806 2005-08-31 Bruno Haible <bruno@clisp.org>
16808 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
16809 always instantiating them.
16811 2005-08-31 Bruno Haible <bruno@clisp.org>
16813 * gnulib-tool (func_import): Read the previous cached settings
16814 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
16815 earlier added by gnulib but are now dropped. Warn when a gnulib file
16816 overwrites a non-gnulib file.
16818 2005-08-31 Bruno Haible <bruno@clisp.org>
16820 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
16821 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
16822 projects that don't keep autogenerated files in CVS. Put into
16823 actioncmd only the specified modules, not the transitive closure.
16825 2005-08-31 Bruno Haible <bruno@clisp.org>
16827 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
16828 Create directories that shall be filled.
16829 (import): Don't look for gl_* macros in configure.ac. Recurse across
16830 all directories containing a gnulib-cache.m4 files, if meaningful.
16832 2005-08-31 Bruno Haible <bruno@clisp.org>
16834 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
16835 (import): Set seen_libtool when we see gl_LIBTOOL.
16837 2005-08-31 Bruno Haible <bruno@clisp.org>
16839 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
16840 declaration macro definitions from generated gnulib.m4.
16842 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
16844 * lib/iconvme.h: Add prototype for iconv_alloc.
16846 2005-08-29 Simon Josefsson <jas@extundo.com>
16848 * lib/iconvme.c: Fix errno.
16850 2005-08-29 Bruno Haible <bruno@clisp.org>
16852 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
16853 that it works when the directory contains spaces.
16855 2005-08-29 Bruno Haible <bruno@clisp.org>
16857 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
16859 2005-08-29 Bruno Haible <bruno@clisp.org>
16861 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
16864 2005-08-29 Bruno Haible <bruno@clisp.org>
16865 and Stepan Kasal <kasal@ucw.cz>
16867 * check-module: If more parameters are given, check each of them
16868 separately; add more exceptions, as noted by Jim Meyering.
16869 (check_module): New procedure.
16870 (%exempt_header): Now contains all exceptions.
16872 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
16874 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
16876 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
16878 * lib/iconvme.c: Split iconv_string into iconv_alloc.
16880 2005-08-28 Bruno Haible <bruno@clisp.org>
16882 * m4/gnulib-tool.m4: New file.
16884 2005-08-27 Jim Meyering <jim@meyering.net>
16886 * modules/unistd-safer (Files): Add pipe-safer.c.
16887 * modules/fcntl-safer (Files): Add creat-safer.c.
16889 2005-08-27 Jim Meyering <jim@meyering.net>
16891 * m4/stdlib-safer.m4: New file. From coreutils.
16892 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
16893 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
16894 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
16895 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
16896 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
16898 2005-08-27 Jim Meyering <jim@meyering.net>
16900 * lib/fopen-safer.c: Merge minor changes from coreutils.
16901 * lib/dup-safer.c: Likewise.
16902 * lib/fd-safer.c: Likewise.
16904 Merge from coreutils.
16905 * lib/stdio--.h: New file.
16906 * lib/stdlib--.h: New file.
16907 * lib/mkstemp-safer.c: New file.
16909 GNU tar needs these.
16910 * lib/pipe-safer.c: New file.
16911 * lib/creat-safer.c: New file.
16912 * lib/fcntl--.h (creat): Define to creat_safer.
16913 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
16914 * lib/unistd--.h (pipe): Define to pipe_safer.
16915 * lib/unistd-safer.h: Declare pipe_safer.
16917 2005-08-26 Simon Josefsson <jas@extundo.com>
16919 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
16920 Haible <bruno@clisp.org>.
16922 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
16924 * lib/regex_internal.h: Remove all references to
16925 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
16927 (bitset_not, bitset_merge, bitset_not_merge):
16928 (bitset_mask, re_string_allocate, re_string_construct):
16929 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
16930 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
16931 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
16932 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
16933 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
16934 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
16935 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
16936 (re_acquire_state_context):
16937 Remove unnecessary forward decls.
16938 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
16939 Put __attribute at function definition,
16940 now that the function decl has been removed.
16941 * lib/regex_internal.c (re_string_peek_byte_case):
16942 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
16945 2005-08-25 Stepan Kasal <kasal@ucw.cz>
16947 * m4/regex.m4: Add AC_PREREQ(2.50).
16948 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
16950 2005-08-25 Simon Josefsson <jas@extundo.com>
16952 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
16955 2005-08-25 Simon Josefsson <jas@extundo.com>
16957 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
16958 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
16959 GLIBC specific code.
16961 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
16963 Make regex safe for g++. This fixes one real bug (an "err"
16964 that should have been "*err"). g++ problem reported by
16966 * lib/regex_internal.h (re_calloc): New macro, consistent with
16967 re_malloc etc. All callers of calloc changed to use re_calloc.
16968 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
16969 not int. All callers changed.
16970 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
16971 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
16972 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
16973 (find_recover_state): Change "err" to "*err"; this fixes what
16974 appears to be a real bug.
16975 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
16978 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
16980 * modules/regex (Depends-on): Add malloc, since the code
16981 assumes that !malloc(0) means failure.
16983 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
16985 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
16987 alloca modernization/simplification for regex.
16988 * lib/regex.c: Remove portability cruft for alloca. This no longer
16989 needs to be at the start of the file, and can be moved into
16990 regex_internal.h and simplified.
16991 * lib/regex_internal.h: Include <alloca.h>.
16992 (__libc_use_alloca) [!defined _LIBC]: New macro.
16993 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
16994 now works outside glibc.
16996 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
16998 * config/srclist.txt: Add glibc bugs 1241, 1245.
17000 2005-08-25 Jim Meyering <jim@meyering.net>
17002 * lib/open-safer.c: Include <config.h>.
17003 Otherwise, we'd lose LARGEFILE support in any file using
17006 2005-08-25 Bruno Haible <bruno@clisp.org>
17008 * m4/minmax.m4: Require autoconf 2.52.
17009 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
17010 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
17011 alternatives of translit over the alphabet.
17012 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
17014 2005-08-24 Simon Josefsson <jas@extundo.com>
17016 * tests/test-getpass.c: New file.
17018 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
17020 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
17021 for GNU regex features.
17023 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
17025 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
17026 * lib/regex.h (regerror): Likewise.
17028 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
17029 requires this. (The code never needed it.)
17031 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
17032 All uses of recently-renamed identifiers changed to use the new,
17033 POSIX-compliant names. The code will build and run just fine
17034 without these changes, but it's better to eat our own dog food
17035 and use the standard-conforming names.
17037 * lib/regex.h: Fix a multitude of POSIX name space violations.
17038 These changes have an effect only for programs that define
17039 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
17040 do not change anything for programs compiled in the normal way.
17041 Also, there is no effect on the ABI.
17043 (_REGEX_SOURCE): New macro.
17044 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
17045 defined and _GNU_SOURCE is not; this fixes a name space violation.
17047 Rename the following macros to obey POSIX requirements.
17048 The old names are still visible as macros if _REGEX_SOURCE is defined.
17049 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
17050 RE_BACKSLASH_ESCAPE_IN_LISTS.
17051 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
17052 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
17053 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
17054 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
17055 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
17056 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
17057 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
17058 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
17059 (REG_INTERVALS): renamed from RE_INTERVALS.
17060 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
17061 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
17062 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
17063 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
17064 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
17065 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
17066 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
17067 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
17068 RE_UNMATCHED_RIGHT_PAREN_ORD.
17069 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
17070 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
17071 (REG_DEBUG): renamed from RE_DEBUG.
17072 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
17073 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
17074 unusual, since we can't clash with the POSIX REG_ICASE.
17075 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
17076 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
17077 (REG_NO_SUB): renamed from RE_NO_SUB.
17078 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
17079 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
17080 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
17081 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
17082 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
17083 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
17084 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
17085 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
17086 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
17087 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
17088 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
17089 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
17090 RE_SYNTAX_POSIX_MINIMAL_BASIC.
17091 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
17092 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
17093 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
17094 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
17095 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
17096 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
17097 (REG_FIXED): Renamed from REGS_FIXED.
17098 (REG_NREGS): Renamed from RE_NREGS.
17100 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
17101 of other REG_* macros, since POSIX says the user is allowed to
17102 #undef these macros selectively.
17104 (reg_errcode_t): Update comment stating what other tables need
17107 Rename the following enum values to obey POSIX requirements.
17108 The old names are still visible as macros.
17109 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
17110 is not defined, since GNU is supposed to be a superset of POSIX as
17111 much as possible, and since we want reg_errcode_t to be a signed
17112 type for implementation consistency.
17113 (_REG_NOERROR): Renamed from REG_NOERROR.
17114 (_REG_NOMATCH): Renamed from REG_NOMATCH.
17115 (_REG_BADPAT): Renamed from REG_BADPAT.
17116 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
17117 (_REG_ECTYPE): Renamed from REG_ECTYPE.
17118 (_REG_EESCAPE): Renamed from REG_EESCAPE.
17119 (_REG_ESUBREG): Renamed from REG_ESUBREG.
17120 (_REG_EBRACK): Renamed from REG_EBRACK.
17121 (_REG_EPAREN): Renamed from REG_EPAREN.
17122 (_REG_EBRACE): Renamed from REG_EBRACE.
17123 (_REG_BADBR): Renamed from REG_BADBR.
17124 (_REG_ERANGE): Renamed from REG_ERANGE.
17125 (_REG_ESPACE): Renamed from REG_ESPACE.
17126 (_REG_BADRPT): Renamed from REG_BADRPT.
17127 (_REG_EEND): Renamed from REG_EEND.
17128 (_REG_ESIZE): Renamed from REG_ESIZE.
17129 (_REG_ERPAREN): Renamed from REG_ERPAREN.
17130 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
17131 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
17132 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
17133 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
17135 (_REG_RE_NAME, _REG_RM_NAME): New macros.
17136 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
17137 changed. But support the old name if the new one is not defined
17138 and if _REGEX_SOURCE.
17140 Change the following member names in struct re_pattern_buffer.
17141 The old names are still supported if !_REGEX_SOURCE.
17142 The new names are always supported, regardless of _REGEX_SOURCE.
17143 (re_buffer): Renamed from buffer.
17144 (re_allocated): Renamed from allocated.
17145 (re_used): Renamed from used.
17146 (re_syntax): Renamed from syntax.
17147 (re_fastmap): Renamed from fastmap.
17148 (re_translate): Renamed from translate.
17149 (re_can_be_null): Renamed from can_be_null.
17150 (re_regs_allocated): Renamed from regs_allocated.
17151 (re_fastmap_accurate): Renamed from fastmap_accurate.
17152 (re_no_sub): Renamed from no_sub.
17153 (re_not_bol): Renamed from not_bol.
17154 (re_not_eol): Renamed from not_eol.
17155 (re_newline_anchor): Renamed from newline_anchor.
17157 Change the following member names in struct re_registers.
17158 The old names are still supported if !_REGEX_SOURCE.
17159 The new names are always supported, regardless of _REGEX_SOURCE.
17160 (rm_num_regs): Renamed from num_regs.
17161 (rm_start): Renamed from start.
17162 (rm_end): Renamed from end.
17164 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
17165 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
17166 Prepend __ to parameter names.
17168 Undo yesterday's changes.
17170 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
17172 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
17173 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
17176 2005-08-24 Jim Meyering <jim@meyering.net>
17178 Sync from coreutils.
17179 * m4/fcntl-safer.m4: New file.
17181 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
17182 and object files for this module.
17184 2005-08-24 Jim Meyering <jim@meyering.net>
17186 Sync from coreutils.
17187 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
17189 2005-08-24 Jim Meyering <jim@meyering.net>
17191 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
17192 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
17194 2005-08-24 Jim Meyering <jim@meyering.net>
17196 * modules/fcntl-safer: New module.
17197 * modules/fts (Depends-on): Add fcntl-safer.
17198 * MODULES.html.sh (File descriptor based Input/Output):
17201 2005-08-24 Bruno Haible <bruno@clisp.org>
17203 Support for unit test modules.
17204 * modules/README: Mention tests modules.
17205 * modules/TEMPLATE-TESTS: New file.
17206 * gnulib-tool: New options --extract-tests-module, --with-tests and
17207 --tests-base (unused for the moment).
17208 (testsbase, inctests): New variables.
17209 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
17210 (func_verify_module): Exclude TEMPLATE-TESTS.
17211 (func_verify_nontests_module, func_verify_tests_module): New functions.
17212 (func_get_dependencies): Add implicit dependency for tests modules.
17213 (func_get_tests_module): New function.
17214 (func_modules_transitive_closure): When --with-tests was specified,
17215 include the unit tests as well, unless explicitly avoided.
17216 (func_emit_lib_Makefile_am): Ignore the tests modules here.
17217 (func_emit_tests_Makefile_am): New function.
17218 (func_create_testdir): When --with-tests was specified, emit a
17220 * MODULES.html.sh (Future developments): Update.
17222 2005-08-24 Bruno Haible <bruno@clisp.org>
17224 * modules/tls-tests: New file.
17225 * tests/test-tls.c: New file, from GNU gettext.
17227 2005-08-24 Bruno Haible <bruno@clisp.org>
17229 * modules/lock-tests: New file.
17230 * tests/test-lock.c: New file, from GNU gettext.
17232 2005-08-24 Bruno Haible <bruno@clisp.org>
17234 * lib/lock.h: Add multiple inclusion guard.
17235 * lib/tls.h: Add multiple inclusion guard.
17237 2005-08-24 Bruno Haible <bruno@clisp.org>
17239 * gnulib-tool: Add support for the --aux-dir option to
17240 --create-testdir, --create-megatestdir, --test, --megatest.
17241 (func_create_testdir, func_create_megatestdir): Optionally emit a
17242 AC_CONFIG_AUX_DIR directive.
17243 (create-testdir, create-megatestdir, test, megatest): Provide a
17244 default value for $auxdir.
17246 2005-08-24 Bruno Haible <bruno@clisp.org>
17248 * gnulib-tool (import): Use compound statement instead of subshell
17251 2005-08-24 Bruno Haible <bruno@clisp.org>
17253 * gnulib-tool (import): Change --aux-dir default to "build-aux".
17255 2005-08-24 Bruno Haible <bruno@clisp.org>
17257 * gnulib-tool (func_version): Update.
17259 2005-08-24 Bruno Haible <bruno@clisp.org>
17261 * gnulib-tool (func_import, func_create_testdir,
17262 func_create_megatestdir): Quote all autoconf macro arguments.
17264 2005-08-24 Bruno Haible <bruno@clisp.org>
17266 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
17267 option --force, because --force causes the aclocal.m4 of each
17268 subdirectory to be newer than the corresponding config.h.in.
17270 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
17272 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
17273 All contents moved to gl_REGEX.
17274 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
17275 assume that it does.
17277 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
17279 * lib/regex.h (REG_NOSYS)
17280 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
17281 Define, since POSIX requires it as of 2001.
17283 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
17284 New private symbol, used to keep the enum signed in all cases.
17285 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
17287 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
17289 * lib/regex_internal.c (re_string_skip_chars, register_state):
17291 Remove forward decls; no longer needed now that we use prototypes.
17292 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
17293 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
17294 (clean_state_log_if_needed): Likewise.
17296 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
17298 * config/srclist.txt: Add glibc bugs 1231-1233.
17300 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
17302 Fix problems reported by Sam Steingold in
17303 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
17304 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
17305 assumed that reg_errcode_t is a signed type, which is not
17306 necessarily true if _XOPEN_SOURCE is not defined.
17307 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
17308 since some compilers warn about it otherwise.
17310 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
17312 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
17313 (init_word_char, create_initial_state, duplicate_node_closure):
17314 (fetch_token, peek_token_bracket, build_range_exp):
17315 (build_collating_symbol): Remove forward decls; no longer needed
17316 now that we use prototypes.
17319 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
17320 (re_compile_fastmap_iter, regcomp, regerror, regfree):
17321 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
17322 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
17323 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
17324 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
17325 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
17326 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
17327 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
17328 (build_range_exp, build_collating_symbol, parse_bracket_exp):
17329 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
17330 (build_charclass, build_charclass_op, fetch_number, create_tree):
17331 (create_token_tree, mark_opt_subexp, duplicate_tree):
17332 Use prototypes rather than old-style definitions.
17334 * lib/regex_internal.c:
17335 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
17336 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
17337 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17338 (re_string_reconstruct, re_string_peek_byte_case):
17339 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
17340 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17341 (re_node_set_init_copy, re_node_set_add_intersect):
17342 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17343 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17344 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17345 (re_acquire_state, re_acquire_state_context, register_state):
17346 (create_ci_newstate, create_cd_newstate, free_state):
17348 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
17350 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
17351 (re_search_internal, prune_impossible_nodes):
17352 (acquire_init_state_context, check_matching, static):
17353 (check_halt_node_context, check_halt_state_context, proceed_next_node):
17354 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
17355 (update_regs, sift_states_backward, build_sifted_states):
17356 (clean_state_log_if_needed, merge_state_array):
17357 (update_cur_sifted_state, add_epsilon_src_nodes):
17358 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
17359 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
17360 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
17361 (find_recover_state, check_subexp_matching_top, transit_state_mb):
17362 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
17363 (check_arrival, check_arrival_add_next_nodes):
17364 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17365 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17366 (check_node_accept_bytes, check_node_accept, extend_buffers):
17367 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
17368 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
17372 * lib/regex_internal.h:
17373 (re_string_allocate, re_string_construct, re_string_reconstruct):
17374 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
17375 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
17376 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
17377 (re_string_context_at, re_string_peek_byte_case):
17378 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
17379 is defined, since we now use prototypes always.
17381 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
17382 C89 or better. All uses removed.
17384 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
17386 * config/srclist.txt: Add glibc bugs 1220-1227.
17388 2005-08-20 Jim Meyering <jim@meyering.net>
17390 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
17391 of unused local, dfa.
17393 2005-08-20 Bruno Haible <bruno@clisp.org>
17395 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
17397 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
17399 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
17400 (re_node_set_insert_last, re_dfa_add_node):
17401 Rename local variables to avoid GCC shadowing warnings.
17403 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
17405 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
17406 [defined lint]: Suppress bogus uninitialized-variable warnings.
17408 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
17409 and let the caller return REG_ESPACE if out of space. This
17410 removes an uninitialied-variable warning with GCC 4.0.1, and also
17411 avoids taking the address of a local variable. All callers
17414 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
17416 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
17417 $LIBCSRC/posix/regexec.c.
17418 Add glibc bug 1217 for regcomp.c.
17420 2005-08-19 Jim Meyering <jim@meyering.net>
17422 * lib/regexec.c (proceed_next_node): Redo local variables to
17423 avoid GCC shadowing warnings.
17425 2005-08-18 Bruno Haible <bruno@clisp.org>
17427 * lib/strstr.c (strstr): Fix return value in multibyte case.
17428 * lib/strcasestr.c (strcasestr): Likewise.
17430 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
17432 * lib/regex.h: Remove useless space-before-tab. From coreutils.
17434 2005-08-17 Jim Meyering <jim@meyering.net>
17436 Make the %s format (seconds since the epoch) work for a negative
17437 number and when used with a zero-padded field width, e.g. %015s.
17439 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
17440 label so that it precedes the code to set `digits'. Otherwise,
17441 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
17442 print `00-22'. Now, it prints `-0022', as it should.
17444 2005-08-17 Bruno Haible <bruno@clisp.org>
17446 * modules/strstr (Files): Add m4/mbrtowc.m4.
17447 (Depends-on): Add mbuiter.
17449 2005-08-17 Bruno Haible <bruno@clisp.org>
17451 * modules/strcasestr: New file.
17452 * MODULES.html.sh (String handling, based on ANSI C 89): Add
17455 2005-08-17 Bruno Haible <bruno@clisp.org>
17457 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
17459 2005-08-17 Bruno Haible <bruno@clisp.org>
17461 * modules/mbuiter: New file.
17462 * MODULES.html.sh (Extended multibyte and wide character utilities):
17465 2005-08-17 Bruno Haible <bruno@clisp.org>
17467 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
17468 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
17470 2005-08-17 Bruno Haible <bruno@clisp.org>
17472 * m4/strcasestr.m4: New file.
17474 2005-08-17 Bruno Haible <bruno@clisp.org>
17476 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
17477 * lib/strstr.c: Completely rewritten, with multibyte locale support.
17479 2005-08-17 Bruno Haible <bruno@clisp.org>
17481 * lib/strcasestr.h: New file.
17482 * lib/strcasestr.c: New file.
17484 2005-08-17 Bruno Haible <bruno@clisp.org>
17486 * lib/strcasecmp.c: Use mbuiter.h.
17488 2005-08-17 Bruno Haible <bruno@clisp.org>
17490 * lib/mbuiter.h: New file.
17492 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
17494 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
17495 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
17496 and gl_GETOPT are both invoked via different paths (as happens
17497 with GNU tar CVS because it uses both argp and getopt), the former
17500 2005-08-16 Bruno Haible <bruno@clisp.org>
17502 * modules/tls: New file.
17503 * MODULES.html.sh (Multithreading): Add tls.
17505 2005-08-16 Bruno Haible <bruno@clisp.org>
17507 * modules/strnlen1: New file.
17508 * MODULES.html.sh (String handling): Add strnlen1.
17510 2005-08-16 Bruno Haible <bruno@clisp.org>
17512 * modules/strcase (Files): Add m4/mbrtowc.m4.
17513 (Depends-on): Add strnlen1, mbchar.
17515 2005-08-16 Bruno Haible <bruno@clisp.org>
17517 * modules/mbiter: New file.
17518 * MODULES.html.sh (Extended multibyte and wide character utilities):
17521 2005-08-16 Bruno Haible <bruno@clisp.org>
17523 * modules/mbfile: New file.
17524 * MODULES.html.sh (Extended multibyte and wide character utilities):
17527 2005-08-16 Bruno Haible <bruno@clisp.org>
17529 * modules/mbchar: New file.
17530 * MODULES.html.sh (Extended multibyte and wide character utilities):
17533 2005-08-16 Bruno Haible <bruno@clisp.org>
17535 * m4/tls.m4: New file, from GNU gettext.
17537 2005-08-16 Bruno Haible <bruno@clisp.org>
17539 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
17541 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
17543 2005-08-16 Bruno Haible <bruno@clisp.org>
17545 * m4/mbiter.m4: New file.
17547 2005-08-16 Bruno Haible <bruno@clisp.org>
17549 * m4/mbfile.m4: New file.
17551 2005-08-16 Bruno Haible <bruno@clisp.org>
17553 * m4/mbchar.m4: New file.
17555 2005-08-16 Bruno Haible <bruno@clisp.org>
17557 * lib/tls.h: New file, from GNU gettext.
17558 * lib/tls.c: New file, from GNU gettext.
17560 2005-08-16 Bruno Haible <bruno@clisp.org>
17562 * lib/strnlen1.h: New file.
17563 * lib/strnlen1.c: New file.
17565 2005-08-16 Bruno Haible <bruno@clisp.org>
17567 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
17568 (mbi_init): Update.
17569 (mbi_avail, mbi_advance): Let the iteration end before the terminating
17570 NUL byte, not after it.
17572 2005-08-16 Bruno Haible <bruno@clisp.org>
17574 * lib/strcase.h (strcasecmp): Add note in comments.
17575 * lib/strncasecmp.c: Use code from strcasecmp.c.
17576 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
17577 (strcasecmp): Work correctly in multibyte locales.
17579 2005-08-16 Bruno Haible <bruno@clisp.org>
17581 * lib/mbiter.h: New file.
17583 2005-08-16 Bruno Haible <bruno@clisp.org>
17585 * lib/mbfile.h: New file.
17587 2005-08-16 Bruno Haible <bruno@clisp.org>
17589 * lib/mbchar.h: New file.
17590 * lib/mbchar.c: New file.
17592 2005-08-16 Bruno Haible <bruno@clisp.org>
17594 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
17595 the valid ones. Makes the comparison operations transitive:
17596 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
17597 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
17599 2005-08-15 Simon Josefsson <jas@extundo.com>
17601 * modules/ssize_t (License): Change to 'unlimited'.
17603 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
17605 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
17607 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
17608 Add comments for each pending glibc patch.
17610 2005-08-15 Bruno Haible <bruno@clisp.org>
17612 * lib/regex.h (__restrict_arr): Don't define to __restrict if
17613 __cplusplus is defined.
17615 2005-08-14 Jim Meyering <jim@meyering.net>
17617 Sync from coreutils.
17619 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
17620 Use the hash-table-based cycle-detection code not just when
17621 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
17622 Reported by James Youngman in
17623 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
17624 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
17625 FTS_TIGHT_CYCLE_CHECK.
17626 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
17627 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
17629 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
17630 * lib/fts.c (fd_safer): Remove decl.
17631 Include fcntl--.h rather than unistd-safer.h
17632 (fts_safe_changedir): Don't call fd_safer; no longer needed
17633 now that we include fcntl--.h.
17635 2005-08-12 Simon Josefsson <jas@extundo.com>
17637 * modules/getndelim2: Use ssize_t module.
17638 * modules/getnline: Likewise.
17639 * modules/safe-read: Likewise.
17640 * modules/xreadlink: Likewise.
17642 * modules/ssize_t: New file.
17644 2005-08-12 Simon Josefsson <jas@extundo.com>
17646 * m4/readline.m4: Look for termcap, curses or ncurses if required.
17648 2005-08-12 Simon Josefsson <jas@extundo.com>
17650 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17653 2005-08-12 Simon Josefsson <jas@extundo.com>
17655 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
17656 readline, getdelim and check_version.
17657 (Support for systems lacking ISO C 99: Sizes of integer types):
17660 2005-08-12 Bruno Haible <bruno@clisp.org>
17662 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
17664 2005-08-11 Simon Josefsson <jas@extundo.com>
17666 * modules/readline: New file.
17668 * modules/strnlen (Files): Add strnlen.h.
17670 2005-08-11 Simon Josefsson <jas@extundo.com>
17672 * m4/readline.m4: New file.
17674 2005-08-11 Simon Josefsson <jas@extundo.com>
17676 * lib/readline.h, readline.c: New file.
17678 2005-08-11 Simon Josefsson <jas@extundo.com>
17680 * doc/gnulib.texi (Initial import, Finishing touches): Mention
17683 2005-08-11 Bruno Haible <bruno@clisp.org>
17685 * lib/strnlen.h (strnlen): Change parameter name to match comment.
17687 2005-08-10 Stepan Kasal <kasal@ucw.cz>
17689 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
17691 2005-08-10 Simon Josefsson <jas@extundo.com>
17693 * tests/test-iconvme.c: New file.
17695 2005-08-10 Simon Josefsson <jas@extundo.com>
17697 * m4/strnlen.m4: New file.
17699 * m4/strndup.m4: Don't check for strnlen declaration, done in
17702 2005-08-10 Simon Josefsson <jas@extundo.com>
17704 * lib/strndup.c: Use strnlen.h.
17706 * lib/strnlen.h: New file.
17708 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
17712 2005-08-02 Simon Josefsson <jas@extundo.com>
17714 * modules/readline: New file.
17716 2005-08-02 Simon Josefsson <jas@extundo.com>
17718 * modules/getdelim: New file.
17720 * modules/getline: Rewrite, don't use getndelim2.
17722 2005-08-02 Simon Josefsson <jas@extundo.com>
17724 * m4/getline.m4: Separate out getdelim stuff into separate module.
17726 * m4/getdelim.m4: New file.
17728 2005-08-02 Simon Josefsson <jas@extundo.com>
17730 * lib/getline.h, getline.c: Rewrite.
17732 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
17734 2005-07-31 Bruno Haible <bruno@clisp.org>
17736 * lib/lock.h (gl_lock_initializer): New macro.
17737 (gl_lock_define_initialized): Use it.
17738 (gl_rwlock_initializer): New macro.
17739 (gl_rwlock_define_initialized): Use it.
17740 (gl_recursive_lock_initializer): New macro.
17741 (gl_recursive_lock_define_initialized): Use it.
17743 2005-07-30 Karl Berry <karl@gnu.org>
17745 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
17746 Report from Ben Pfaff, regarding getopt.
17748 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
17750 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
17752 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
17753 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
17754 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
17755 (gl_GETOPT): Use the new macros. Most of the implementation
17756 is moved to the new macros. This is for programs like Emacs
17757 that don't want all the functionality of gl_GETOPT.
17759 2005-07-26 Bruno Haible <bruno@clisp.org>
17761 * m4/lock.m4: Update from GNU gettext.
17763 2005-07-26 Bruno Haible <bruno@clisp.org>
17765 * lib/lock.h: Update from GNU gettext.
17766 * lib/lock.c: Update from GNU gettext.
17768 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
17770 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
17771 obsolescent AC_TRY_RUN. Include the default includes files, for
17774 2005-07-24 Bruno Haible <bruno@clisp.org>
17776 * modules/visibility: New file.
17777 * MODULES.html.sh (Misc): Add visibility.
17779 2005-07-24 Bruno Haible <bruno@clisp.org>
17781 * m4/visibility.m4: New file.
17783 2005-07-24 Bruno Haible <bruno@clisp.org>
17785 * doc/visibility.texi: New file.
17787 2005-07-22 Bruno Haible <bruno@clisp.org>
17789 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
17790 $(ALLOCA_H), redundant through BUILT_SOURCES.
17791 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
17792 redundant through BUILT_SOURCES.
17793 * modules/byteswap (Makefile.am): Remove explicit dependency on
17794 $(BYTESWAP_H), redundant through BUILT_SOURCES.
17795 * modules/fnmatch (Makefile.am): Remove explicit dependency on
17796 $(FNMATCH_H), redundant through BUILT_SOURCES.
17797 * modules/getopt (Makefile.am): Remove explicit dependency on
17798 $(GETOPT_H), redundant through BUILT_SOURCES.
17799 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
17800 redundant through BUILT_SOURCES.
17801 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
17802 redundant through BUILT_SOURCES.
17803 * modules/stdbool (Makefile.am): Remove explicit dependency on
17804 $(STDBOOL_H), redundant through BUILT_SOURCES.
17805 * modules/stdint (Makefile.am): Remove explicit dependency on
17806 $(STDINT_H), redundant through BUILT_SOURCES.
17807 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
17808 Remove explicit dependency on $(SYSEXITS_H).
17809 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
17811 2005-07-18 Simon Josefsson <jas@extundo.com>
17813 * lib/check-version.c (check_version): Accept identical versions too.
17815 2005-07-18 Bruno Haible <bruno@clisp.org>
17817 * modules/lock: New file.
17818 * MODULES.html.sh (Multithreading): New section.
17820 2005-07-18 Bruno Haible <bruno@clisp.org>
17822 * m4/lock.m4: New file, from GNU gettext.
17824 2005-07-18 Bruno Haible <bruno@clisp.org>
17826 * lib/lock.h: New file, from GNU gettext.
17827 * lib/lock.c: New file, from GNU gettext.
17829 2005-07-18 Bruno Haible <bruno@clisp.org>
17831 * lib/lock.h (gl_once_t): New type.
17832 (gl_once_define, gl_once): New macros.
17833 * lib/lock.c (fresh_once): New variable.
17834 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
17837 2005-07-16 Simon Josefsson <jas@extundo.com>
17839 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
17840 workaround, suggested by Bruno.
17842 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
17844 * modules/xalloc (Depends-on): Add xalloc-die.
17845 * modules/xvasprintf (Depends-on): Add xalloc-die.
17847 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
17849 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
17850 with a minor change.
17852 2005-07-15 Bruno Haible <bruno@clisp.org>
17854 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
17855 When using lib/poll.c, define poll as rpl_poll.
17857 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
17859 * modules/argp (Depends-on): Remove unlocked-io.
17861 2005-07-14 Derek Price <derek@ximbiot.com>
17863 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
17864 for glob symlink bug.
17866 2005-07-14 Bruno Haible <bruno@clisp.org>
17868 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
17869 Instead, test for *_unlocked function declarations directly.
17871 2005-07-11 Simon Josefsson <jas@extundo.com>
17873 * modules/size_max: New file.
17875 * modules/xsize: Depend on size_max module for size_max.m4.
17877 2005-07-11 Simon Josefsson <jas@extundo.com>
17879 * lib/size_max.h: New file.
17881 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
17883 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
17884 copyright symbol and the year.
17885 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
17886 (version_etc_va): Use parameterized copyright notice.
17887 Reword to conform to the current GNU coding standards.
17889 2005-07-11 Karl Berry <karl@gnu.org>
17891 * doc/gnulib.texi (Quoting): new node.
17892 (Initial import): more info, from Patrice.
17894 2005-07-11 Bruno Haible <bruno@clisp.org>
17896 * gnulib-tool (func_usage): Document option --avoid.
17897 (Command line options): Handle --avoid.
17898 (func_acceptable): New function.
17899 (func_modules_transitive_closure): Use it.
17901 2005-07-11 Bruno Haible <bruno@clisp.org>
17903 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
17904 Reported by Jim Meyering.
17906 2005-07-10 Bruno Haible <bruno@clisp.org>
17908 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
17909 Needed when size_t is smaller than 'unsigned int'.
17910 Reported by Paul Eggert.
17912 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
17914 * modules/argp (Depends-on): Add unlocked-io
17916 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
17918 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
17921 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
17923 * config/srclist.txt: Comment out regcomp.c, since we have a porting
17926 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
17927 and Paul Eggert <eggert@cs.ucla.edu>
17929 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
17930 in wint_t, not wchar_t. Remove now-unnecessary cast.
17932 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
17934 * modules/regex (Files): Add lib/regex_internal.c,
17935 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
17936 (Depends-on): Add extensions.
17937 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
17939 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
17941 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
17943 * m4/same.m4 (gl_SAME): Likewise.
17944 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
17946 * m4/regex.m4: Adjust to new libc regex implementation.
17947 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
17948 all the .c and .h parts of (the new) regex.
17949 Quote the m4 stuff better.
17950 Check for RE_ICASE bug of old gnulib.
17951 Check for REG_STARTEND of recent libc.
17952 Rename local variables from jm_* to gl_*.
17953 Quote operand of "test -f".
17954 Say "recent enough" version of libc, not "version 2".
17955 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
17956 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
17957 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
17958 Remove check for btowc, isascii.
17959 Require AM_LANGINFO_CODESET.
17961 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
17963 * lib/regex.c, regex.h: Sync from libc.
17964 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
17966 New files, synced from libc, except that regex_internal.h
17967 currently has a small porting fix.
17969 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
17971 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
17972 regex_internal.c, regexec.c.
17973 Add regex_internal.h too, but as a comment, since the libc version
17974 is currently broken in gnulib mode.
17976 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
17978 Support programs like Emacs that use gnulib but not gettext.
17979 * MODULES.html.sh (Internationalization functions): Add gettext-h.
17980 * modules/gettext-h: New file.
17981 * modules/gettext (Files): Remove lib/gettext.h.
17982 (Depends-on): Add gettext-h.
17983 (Makefile.am): Remove lib_SOURCES.
17984 * modules/argmatch, modules/c-stack, modules/closeout:
17985 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
17986 * modules/execute, modules/file-type, modules/getaddrinfo:
17987 * modules/getopt, modules/human, modules/javacomp:
17988 * modules/javaexec, modules/mkdir-p, modules/obstack:
17989 * modules/openat, modules/pagealign_alloc, modules/pipe:
17990 * modules/quotearg, modules/regex, modules/rpmatch:
17991 * modules/unicodeio, modules/userspec, modules/version-etc:
17992 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
17994 Depend on gettext-h, not gettext.
17996 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
17998 * gnulib-tool (func_import): Add support for 'public domain' license.
17999 * modules/alloca, modules/atexit, modules/memmove:
18000 Now public domain, not GPL.
18001 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
18002 * modules/realloc, modules/strerror, modules/strtod:
18005 2005-07-05 Bruno Haible <bruno@clisp.org>
18007 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
18008 autoconf CVS. Needed for mingw.
18010 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
18012 Remove the dependency of the strftime module on the tzset module.
18013 * modules/strftime (Depends-on): Remove dependency on tzset.
18015 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
18017 Remove the dependency of the strftime module on the tzset module.
18018 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
18019 gl_FUNC_TZSET_CLOBBER.
18021 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
18023 Remove the dependency of the strftime module on the tzset module.
18024 * lib/strftime.c (my_strftime)
18025 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
18026 Copy the input structure, to work around some of the bug with
18027 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
18028 Solaris releases, you should also use the tzset module, but we won't
18029 require it as a dependency any more since we don't want LGPLed code
18030 to depend on GPLed code.
18032 2005-07-02 Jim Meyering <jim@meyering.net>
18034 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
18035 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
18036 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
18037 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
18039 2005-07-02 Jim Meyering <jim@meyering.net>
18041 * lib/backupfile.c (backup_args): Change a `0' to NULL.
18043 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
18045 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
18046 declares only 'struct timespec;' (!).
18048 2005-07-01 Jim Meyering <jim@meyering.net>
18050 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
18051 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
18052 * lib/save-cwd.c, tempname.c:
18053 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18054 and don't include <sys/file.h>).
18056 2005-06-29 Jim Meyering <jim@meyering.net>
18058 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
18059 type name. Use the variable name instead.
18060 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
18063 2005-06-28 Simon Josefsson <jas@extundo.com>
18065 * modules/check-version (Files): Add check-version.m4.
18067 2005-06-28 Simon Josefsson <jas@extundo.com>
18069 * m4/check-version.m4: New file, suggested by Jim Meyering
18070 <jim@meyering.net>.
18072 2005-06-28 Simon Josefsson <jas@extundo.com>
18074 * lib/check-version.h, lib/check-version.c: New files.
18076 2005-06-28 Simon Josefsson <jas@extundo.com>
18078 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
18079 collision with global variable. Better indentation. Don't
18080 increment buffer pointer beyond buffer end. Based on comments
18081 from Paul Eggert <eggert@cs.ucla.edu>.
18083 * lib/base64.h: Indent.
18085 2005-06-28 Simon Josefsson <jas@extundo.com>
18087 * doc/gnulib.texi (Library version handling): New section.
18089 2005-06-28 Jim Meyering <jim@meyering.net>
18091 * check-module (find_included_lib_files): Hard-code another
18092 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
18093 but modules/fts-lgpl (correctly) does not list those files.
18095 * modules/canonicalize (Files): Add lib/pathmax.h.
18097 2005-06-25 Simon Josefsson <jas@extundo.com>
18099 * modules/check-version: New file.
18101 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
18103 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
18104 initializer of struct addrinfo, as an indication that we don't
18105 care how many members the structure has.
18107 2005-06-24 Derek Price <derek@ximbiot.com>
18108 and Bruno Haible <bruno@clisp.org>
18110 Remove stat module & update lstat.
18111 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
18112 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18113 * m4/stat.m4: Remove this file.
18115 2005-06-24 Derek Price <derek@ximbiot.com>
18116 and Bruno Haible <bruno@clisp.org>
18118 Remove stat module & update lstat.
18119 * lib/stat.c: Remove this file...
18120 (slash_aware_lstat): ...moving this content and its support...
18121 * lib/lstat.c (rpl_lstat): ...into here.
18122 * lib/lstat.h: New file.
18124 2005-06-24 Derek Price <derek@ximbiot.com>
18125 and Bruno Haible <bruno@clisp.org>
18127 Remove stat module & update lstat.
18128 * config/srclist.txt (libc sources): Remove stat.
18130 2005-06-24 Derek Price <derek@ximbiot.com>
18131 and Bruno Haible <bruno@clisp.org>
18133 Remove stat module & update lstat.
18134 * MODULES.html.sh (stat): Remove.
18135 * MODULES.html: Regenerated.
18136 * modules/lstat (Description): Correct function name.
18137 (Files): Add "lstat.h".
18138 (Depends-on): Remove stat, add xalloc, stat-macros.
18139 * modules/stat: Remove this file.
18140 (Include): Add "lstat.h", remove <sys/stat.h>.
18142 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
18144 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
18145 (ranged_convert): Don't save conversion in a temporary struct.
18146 This causes a warning with GCC 4.0.0, and anyway in the typical
18147 case it's not worth the extra 100 bytes or so of code.
18148 (ranged_convert, __mktime_internal): When calling a function via a
18149 pointer P, use P () rather than (*P) (), as we now assume C89 or
18152 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
18154 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
18155 "who -r" failed to give output. Problem reported by Tim Waugh.
18157 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
18158 (xcalloc): Use it to avoid needless tests.
18159 Problem reported by Jim Meyering.
18161 2005-06-20 Derek Price <derek@ximbiot.com>
18163 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
18164 unnecessary for Autoconfs > 2.59c.
18166 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18168 * lib/argp.h (__option_is_short): Check upper limit of
18169 __key. Isprint() requires its argument to have the value
18170 of an unsigned char or EOF.
18172 2005-06-16 Jim Meyering <jim@meyering.net>
18174 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
18175 when either N or S is zero.
18177 2005-06-16 Derek Price <derek@ximbiot.com>
18179 * m4/bison.m4: Declare YACC & YFLAGS precious.
18181 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
18183 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
18184 multibyte string or pattern, fall back on unibyte matching.
18185 Problem reported by James Youngman.
18187 2005-06-08 Bruno Haible <bruno@clisp.org>
18189 * modules/csharpcomp: New file.
18190 * MODULES.html.sh (C#): Add csharpcomp.
18192 2005-06-08 Bruno Haible <bruno@clisp.org>
18194 * m4/csharpcomp.m4: New file, from GNU gettext.
18196 2005-06-08 Bruno Haible <bruno@clisp.org>
18198 * lib/csharpcomp.h: New file, from GNU gettext.
18199 * lib/csharpcomp.c: New file, from GNU gettext.
18200 * lib/csharpcomp.sh.in: New file, from GNU gettext.
18202 2005-06-08 Bruno Haible <bruno@clisp.org>
18204 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
18207 2005-06-07 Derek Price <derek@ximbiot.com>
18210 * lib/glob_.h: Indent nested #ifdef.
18212 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
18214 Sync from coreutils.
18215 Use "file name" when talking about file names, instead of "filename"
18216 or "path", as per the GNU coding standards.
18217 * lib/mkdir-p.c: Renamed from makepath.c.
18218 (make_dir_parents): Renamed from make_path. All callers changed.
18219 * lib/mkdir-p.h: Likewise. All includers changed.
18220 * lib/filenamecat.c: Renamed from path-concat.c.
18221 (file_name_concat): Renamed from path_concat. All callers changed.
18222 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
18223 * lib/filenamecat.h: Likewise. All includers changed.
18224 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
18225 in comments or local variable names.
18226 * lib/basename.c: Likewise.
18227 * lib/canonicalize.c, canonicalize.h: Likewise.
18228 * lib/dirname.c, dirname.h: Likewise.
18229 * lib/euidaccess.c: Likewise.
18230 * lib/exclude.c: Likewise
18231 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
18232 * lib/fsusage.c, fsuage.h: Likewise.
18233 * lib/fts.c, fts_.h: Likewise.
18234 * lib/getcwd.c: Likewise.
18235 * lib/getloadavg.c: Likewise.
18236 * lib/mkstemp.c: Likewise.
18237 * lib/mountlist.c, mountlist.h: Likewise.
18238 * lib/openat.c, openat.h: Likewise.
18239 * lib/readlink-stub.c: Likewise.
18240 * lib/readutmp.c, readutmp.h: Likewise.
18241 * lib/rename.c: Likewise.
18242 * lib/rmdir.c: Likewise.
18243 * lib/same.c: Likewise.
18244 * lib/savedir.c: Likewise.
18245 * lib/stripslash.c: Likewise.
18246 * lib/tempname.c: Likewise.
18247 * lib/xreadlink.c: Likewise.
18248 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
18250 * lib/exclude.h: Likewise.
18252 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
18253 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18254 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
18255 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18256 * lib/pathmax.h: Include <limits.h> unconditionally, since other
18257 files have been getting away with it for years (MORE/BSD 4.3
18259 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
18260 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
18262 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
18263 Define to 256, not 255, as per modern POSIX.
18265 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
18267 Sync from coreutils.
18268 Use "file name" when talking about file names, instead of "filename"
18269 or "path", as per the GNU coding standards.
18270 * MODULES.html.sh: mkdir-p renamed from makepath.
18271 filenamecat renamed from path-concat.
18272 * modules/filenamecat: Renamed from modules/path-concat.
18273 (Files): filenamecat.h and filenamecat.c renamed from
18274 path-concat.h and path-concat.c.
18275 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
18276 (Include): filenamecat.h, not path-concat.h.
18277 * modules/mkdir-p: Renamed from modules/makepath.
18278 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
18280 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
18281 (Include): mkdir-p.h, not makepath.h.
18283 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
18285 Sync from coreutils.
18286 * m4/mkdir-p.m4: Renamed from makepath.m4.
18287 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
18288 Rename files from makepath.c to mkdir-p.c, and from
18289 makepath.h to mkdir-p.h.
18290 * m4/filenamecat.m4: Renamed from path-concat.m4.
18291 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
18292 Rename files from path-concat.c to filenamecat.c,
18293 and from path-concat.h to filenamecat.h.
18294 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
18295 "file name" in local variables or comments.
18296 * m4/rename.m4: Likewise.
18298 2005-06-01 Bruno Haible <bruno@clisp.org>
18300 * modules/csharpexec: New file.
18301 * MODULES.html.sh (C#): New section.
18303 2005-06-01 Bruno Haible <bruno@clisp.org>
18305 * m4/csharp.m4: New file, from GNU gettext.
18306 * m4/csharpexec.m4: New file, from GNU gettext.
18308 2005-06-01 Bruno Haible <bruno@clisp.org>
18310 * lib/csharpexec.h: New file, from GNU gettext.
18311 * lib/csharpexec.c: New file, from GNU gettext.
18312 * lib/csharpexec.sh.in: New file, from GNU gettext.
18314 2005-05-31 Derek Price <derek@ximbiot.com>
18315 Paul Eggert <eggert@cs.ucla.edu>
18318 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18320 2005-05-31 Derek Price <derek@ximbiot.com>
18321 Paul Eggert <eggert@cs.ucla.edu>
18324 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
18326 2005-05-29 Derek Price <derek@ximbiot.com>
18328 * config/srclist.txt (glob_.h, glob.c): Add these files.
18330 2005-05-29 Derek Price <derek@ximbiot.com>
18332 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
18333 * modules/glob: New file.
18334 * modules/getlogin_r: Add link to POSIX spec in description.
18336 2005-05-29 Derek Price <derek@ximbiot.com>
18337 Paul Eggert <eggert@cs.ucla.edu>
18339 * m4/glob.m4: New file.
18341 2005-05-29 Derek Price <derek@ximbiot.com>
18342 Paul Eggert <eggert@cs.ucla.edu>
18344 * lib/glob_.h, lib/glob.c: New files.
18346 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
18348 * modules/fts (Files): Remove m4/inttypes-pri.m4.
18349 * modules/fts-lgpl (Depends-on): Remove gettext.
18351 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
18353 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
18354 and don't require gt_INTTYPES_PRI.
18356 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
18358 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
18360 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
18361 the configuration hassle isn't worth it.
18362 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
18363 (LONGEST_MODIFIER, PRIuMAX): Remove.
18365 2005-05-27 Bruno Haible <bruno@clisp.org>
18367 * lib/getlogin_r.h: Remove second include of <stddef.h>.
18369 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
18371 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
18372 _POSIX_PTHREAD_SEMANTICS for Solaris.
18374 2005-05-25 Derek Price <derek@ximbiot.com>
18376 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
18378 2005-05-25 Derek Price <derek@ximbiot.com>
18379 Paul Eggert <eggert@cs.ucla.edu>
18381 * modules/getlogin_r, m4/getlogin_r.m4: New files.
18382 * lib/getlogin_r.c, getlogin_r.h: New files.
18384 2005-05-25 Bruno Haible <bruno@clisp.org>
18385 Derek Price <derek@ximbiot.com>
18387 * lib/getlogin_r.h: Simplify API documentation.
18389 2005-05-23 Derek Price <derek@ximbiot.com>
18391 * modules/minmax (Files): Add m4/minmax.m4.
18392 (configure.ac): Add gl_MINMAX.
18394 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
18396 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
18397 so that unistd-safer.h (GPL'ed code) need not be included.
18399 2005-05-22 Bruno Haible <bruno@clisp.org>
18401 * m4/minmax.m4: New file.
18402 Based on a patch by Derek Price <derek@ximbiot.com>.
18404 2005-05-22 Bruno Haible <bruno@clisp.org>
18406 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
18407 (INT64_MIN): Fix definition.
18408 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
18410 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
18411 NEED_SIGNED_INT_TYPES.
18413 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
18414 HAVE_SYSTEM_INTTYPES.
18416 2005-05-22 Bruno Haible <bruno@clisp.org>
18418 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
18419 Also include <sys/param.h> if it defines MIN, MAX.
18420 Based on a patch by Derek Price <derek@ximbiot.com>.
18422 2005-05-21 Jim Meyering <jim@meyering.net>
18424 * modules/fts (Files): Add m4/inttypes-pri.m4.
18425 (Depends-on): Add lstat and remove gettext. Alphabetize.
18427 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
18430 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
18431 (setup_dir, free_dir): New functions.
18432 (enter_dir, leave_dir): Define trivial
18433 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
18434 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
18435 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
18436 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
18437 Move to fts-cycle.c.
18438 (fts_open): Use setup_dir.
18439 (fts_close): Use free_dir.
18440 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
18441 This adds a label and some gotos, but the alternatives were messier.
18442 Check for memory allocation failure when entering a dir.
18443 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
18444 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
18445 (FTS): New member fts_cycle, that is a union that contains the
18446 old active_dir_ht and cycle_state. All uses changed to mention
18447 fts_cycle.ht and fts_cycle.state.
18448 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
18449 fts.c, with the following changes:
18450 (setup_dir, free_dir): New functions.
18451 (enter_dir): Now returns bool. Return true if successful, false
18452 if memory exhausted. All callers changed.
18453 Do not bother partly cleaning up on
18454 memory allocation failure; that is free_dir's job.
18455 However, free ad if hash_insert fails, to avoid memory leak.
18456 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
18457 fts->fts_options to see which union member to use.
18459 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
18461 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
18462 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
18464 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
18466 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
18468 2005-05-20 Jim Meyering <jim@meyering.net>
18470 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
18471 Now a macro, to pacify GCC.
18473 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
18475 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
18478 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
18480 * lib/chown.c (rpl_chown): Return -1 on failure.
18482 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
18484 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
18485 Don't check for stddef.h.
18486 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
18487 don't use its results.
18488 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
18489 since we include them unconditionally. Don't require
18490 AM_STDBOOL_H, since stdbool is a prerequisite.
18491 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
18492 since we assume C89 or better.
18493 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
18494 as we don't use their results.
18495 Don't check for fchdir, memmove, memset, strrchr, as we use
18496 them unconditionally.
18497 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
18498 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
18500 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
18502 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
18503 Include <stddef.h> unconditionally, since we assume C89 now.
18504 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
18505 * lib/fts.c: Include fts_.h first, to check interface.
18506 Do not include intprops.h; no longer needed.
18507 Include cycle-check.h and hash.h, since fts_.h no longer does.
18508 Remove unnecessary casts of closedir to void.
18509 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
18510 decide whether to decrement nlinks.
18511 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
18512 (FTS): Use struct hash_table * instead of Hash_table, so that
18513 we no longer need to include hash.h here.
18515 2005-05-18 Jim Meyering <jim@meyering.net>
18517 * modules/dirfd (License): Change to LGPL. Most of the code
18518 is already in the public domain.
18520 2005-05-18 Jim Meyering <jim@meyering.net>
18522 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
18523 Reported by Yoann Vandoorselaere.
18525 2005-05-17 Jim Meyering <jim@meyering.net>
18527 * m4/fts.m4: New file, from coreutils.
18529 2005-05-17 Jim Meyering <jim@meyering.net>
18531 * lib/fts.c, lib/fts_.h: New files, from coreutils.
18533 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
18535 Sync from coreutils.
18536 * m4/unlinkdir.m4: New file.
18538 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
18540 Sync from coreutils.
18541 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
18542 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
18543 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
18544 White space changes only.
18545 * lib/makepath.c (make_path): Port to hosts where leading "//" is
18547 * lib/yesno.c: Include getline.h, not ctype.h.
18548 (yesno): Don't remove leading white space; POSIX doesn't allow it.
18549 Use getline to remove arbitrary restriction on response length.
18551 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
18553 * config/srclist-update: Spell out "Street" in FSF postal
18554 mail address; this is the style the FSF seems to prefer.
18556 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
18557 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
18558 this updates FSF postal mail address.
18560 Sync from coreutils.
18561 * modules/unlinkdir: New file.
18562 * modules/yesno (Depends-on): Add getline.
18563 * MODULES.html.sh (File system functions): Add unlinkdir.
18565 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
18567 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
18569 Change the initial comment to refer to GPL, not LGPL.
18570 gnulib-tool will change it to LGPL as needed.
18572 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
18573 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
18574 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
18575 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
18576 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
18577 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
18578 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
18579 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
18580 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
18581 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
18582 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
18583 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
18584 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
18585 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
18586 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
18587 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
18588 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
18589 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
18590 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
18591 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
18592 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
18593 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
18594 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
18595 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
18596 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
18597 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
18598 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
18599 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
18600 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
18601 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
18602 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
18603 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
18604 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
18605 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
18606 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
18607 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
18608 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
18609 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
18610 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
18611 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
18612 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
18613 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
18614 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
18615 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
18616 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
18617 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
18618 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
18619 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
18620 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
18621 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
18622 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
18623 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
18624 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
18625 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
18626 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
18627 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
18628 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
18629 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
18630 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
18631 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
18632 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
18633 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
18634 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
18635 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
18636 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
18637 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
18638 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
18639 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
18640 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
18641 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
18642 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
18643 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
18644 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
18645 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
18646 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
18647 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
18648 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
18649 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
18650 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
18651 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
18652 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
18653 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
18654 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
18655 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
18656 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
18657 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
18658 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
18659 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
18660 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
18661 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
18662 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
18663 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
18664 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
18665 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
18666 lib/yesno.c, lib/yesno.h:
18667 Update FSF postal mail address.
18669 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
18671 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
18672 tests/test-memmem.c, tests/test-stpncpy.c:
18673 Update FSF postal mail address.
18675 2005-05-13 Bruno Haible <bruno@clisp.org>
18677 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
18678 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
18679 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
18680 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
18681 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
18682 Add support for 64-bit integers in the MSVC compiler.
18684 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18686 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
18688 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
18690 * gnulib-tool (func_import): Sort and uniquify recommended includes.
18692 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
18694 * doc/getdate.texi (General date syntax): Don't say that date
18695 date --iso-8601=ns generates acceptable dates; it doesn't yet.
18696 Problem reported by Nic Ferrier.
18698 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18700 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
18701 specified in ai_socktype. Fix invalid ai_protocol
18702 check. ai_protocol is usually set to 0 or depending on
18703 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
18704 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
18705 ai_socktype / ai_protocol in the returned addrinfo structure.
18707 2005-05-10 Simon Josefsson <jas@extundo.com>
18709 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
18710 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18712 2005-05-10 Karl Berry <karl@gnu.org>
18714 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
18715 (from http://www.gnu.org/licenses).
18716 * doc/COPYING.LIB: also rename to COPYING.LESSER.
18717 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
18720 2005-05-10 Karl Berry <karl@gnu.org>
18722 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
18723 (COPYING.DOC): remove.
18725 * config/srclist-update: new FSF address.
18727 2005-05-10 Derek Price <derek@ximbiot.com>
18729 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
18732 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18733 Bruno Haible <bruno@clisp.org>
18735 * modules/inet_ntop: New file.
18736 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18739 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18740 Bruno Haible <bruno@clisp.org>
18742 * m4/inet_ntop.m4: New file.
18744 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18745 Bruno Haible <bruno@clisp.org>
18747 * lib/inet_ntop.h: New file.
18748 * lib/inet_ntop.c: New file, from glibc with modifications.
18750 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
18752 * modules/time_r (License): Change to LGPL.
18753 * modules/extensions (License): Change to LGPL. Actually,
18754 the license is more permissive than that, but currently gnulib-tool
18755 doesn't know how to handle more-permissive licenses.
18757 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
18758 Problem reported by Dave Love.
18760 2005-05-08 Jim Meyering <jim@meyering.net>
18762 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
18765 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
18767 * modules/argmatch (Depends-on): Add stdbool.
18768 * modules/backupfile (Depends-on): Likewise.
18769 * modules/chdir-long (Depends-on): Likewise.
18770 * modules/closeout (Depends-on): Likewise.
18771 * modules/cycle-check (Depends-on): Likewise.
18772 * modules/dirname (Depends-on): Likewise.
18773 * modules/fnmatch (Depends-on): Likewise.
18774 * modules/fsusage (Depends-on): Likewise.
18775 * modules/fwriteerror (Depends-on): Likewise.
18776 * modules/getcwd (Depends-on): Likewise.
18777 * modules/getloadavg (Depends-on): Likewise.
18778 * modules/hard-locale (Depends-on): Likewise.
18779 * modules/makepath (Depends-on): Likewise.
18780 * modules/mountlist (Depends-on): Likewise.
18781 * modules/nanosleep (Depends-on): Likewise.
18782 * modules/posixtm (Depends-on): Likewise.
18783 * modules/quotearg (Depends-on): Likewise.
18784 * modules/readtokens (Depends-on): Likewise.
18785 * modules/readtokens0 (Depends-on): Likewise.
18786 * modules/readutmp (Depends-on): Likewise.
18787 * modules/save-cwd (Depends-on): Likewise.
18788 * modules/strftime (Depends-on): Likewise.
18789 * modules/userspec (Depends-on): Likewise.
18790 * modules/utimecmp (Depends-on): Likewise.
18791 * modules/xgetcwd (Depends-on): Likewise.
18792 * modules/xnanosleep (Depends-on): Likewise.
18793 * modules/xstrtod (Depends-on): Likewise.
18794 * modules/yesno (Depends-on): Likewise.
18796 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
18798 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
18801 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
18803 Merge from coreutils. Among other things,
18804 add bulletproofing for cases where stdin, stdout, or stderr are closed.
18805 * lib/fd-safer.c: New file.
18806 * lib/fcntl-safer.h, open-safer.c: Remove.
18807 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
18808 * lib/dup-safer.c: Include unistd-safer.h first.
18809 Don't include errno.h.
18810 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
18811 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
18812 * lib/file-type.c: Rely on file-type.h change.
18813 * lib/getloadavg.c: Include unistd-safer.h.
18814 (getloadavg): Use safer open.
18815 * lib/getusershell.c: Include "stdio-safer.h".
18816 (getusershell): Use safer fopen.
18817 * lib/long-options.c (long_options): Use NULL rather than 0.
18818 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
18820 * lib/modechange.c: Likewise.
18821 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
18822 (MODE_DONE): New constant.
18823 (struct mode_change): Remove 'next' member.
18824 (make_node_op_equals): New function; like the old one of the
18825 same name, except it allocates an array.
18826 (mode_compile, mode_create_from_ref): Use it.
18827 (mode_compile): Allocate result as an array, not a linked list.
18828 Parse octal string ourself, so that we catch mistakes like "+0".
18829 (mode_adjust): Arg is an array, not a linked list.
18830 * lib/modechange.c: Include stat-macros.h, xalloc.h.
18831 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
18832 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
18833 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
18834 Remove. This is now stat-macros.h's job.
18835 (talloc): Remove. All callers replaced by xalloc, so that
18836 our invokers don't have to worry about reporting memory failures.
18837 (make_node_op_equals): Remove.
18838 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
18840 (struct mode_change): Moved here from modechange.h.
18841 (mode_append_entry): Remove.
18842 (mode_compile): Remove MASKED_OPS arg, since it encouraged
18843 apps to have incorrect behavior. Use simpler algorithm for head
18844 and tail. Don't futz with umask; that's now the job of mode_adjust.
18845 Detect more invalid usages rather than having somewhat-random behavior.
18846 Don't insert an "a=" action, as that leads to incorrect behavior.
18847 (mode_compile, mode_create_from_ref): Return NULL on error instead
18848 of an enum, since now there's only one way to have an error. All
18850 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
18851 at the correct time. Simplify calculation of "+u" and its ilk.
18852 Don't mishandle "+X".
18853 (mode_free): Remove "register" and localize decls.
18854 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
18855 (struct mode_change): Move to modechange.c; callers don't
18856 need to see this stuff.
18857 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
18858 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
18859 (mode_change, mode_adjust): Reflect the new signatures noted above.
18860 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
18861 that might redefine system include files.
18862 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
18863 (my_usleep): Use NULL rather than (void *) 0.
18864 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
18865 Use siginterrupt to specify that system calls should be interrupted.
18866 (rpl_nanosleep): Move initialization of suspended closer to call of
18868 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
18869 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
18870 (desirable_utmp_entry): New function.
18871 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
18872 using x2nrealloc, to simplify logic.
18873 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
18874 size calculation. Do not assume utmp file is a regular file.
18875 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
18876 (READ_UTMP_CHECK_PIDS): New constant.
18877 * lib/save-cwd.c: Include unistd-safer.h.
18878 (save_cwd): Use fd_safer.
18879 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
18880 [!_LIBC] Include "stat-macros.h" instead.
18881 * lib/unistd-safer.h (fd_safer): New decl.
18883 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
18885 * modules/getloadavg (Depends-on): Add unistd-safer.
18886 * modules/getusershell (Depends-on): Add stdio-safer.
18887 * modules/lstat (Depends-on): Remove xalloc.
18888 * modules/mkstemp (Depends-on): Add stat-macros.
18889 * modules/modechange (Depends-on): Remove xstrtol.
18890 Add stat-macros, xalloc.
18891 * modules/save-cwd (Depends-on): Add unistd-safer.
18892 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
18893 * modules/unistd-safer (Files): Add lib/fd-safer.c
18894 (Makefile.am): Remove lib_SOURCES.
18896 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
18897 Remove fcntl-safer; unistd-safer supersedes it.
18899 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
18901 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
18903 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
18904 (gl_PREREQ_CHOWN): Remove.
18905 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
18906 it. Don't require AC_HEADER_STAT.
18907 (gl_PREREQ_LSTAT): Remove.
18908 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
18909 Don't require AC_HEADER_STAT.
18910 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
18911 (gl_PREREQ_RMDIR): Remove.
18912 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
18913 mention stat-macros.h or AC_HEADER_STAT, since we'll make
18914 the stat-macros module a prerequisite.
18915 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
18916 * m4/filemode.m4 (gl_FILEMODE): Likewise.
18917 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
18918 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
18919 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
18921 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
18922 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
18924 * m4/fcntl-safer.m4: Remove.
18925 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
18926 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
18927 Invoke gl_PREREQ_FD_SAFER.
18928 (gl_PREREQ_FD_SAFER): New macro.
18929 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
18930 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
18931 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
18932 Remove duplicate call to AC_LIBOBJ(readutmp).
18933 (gl_PREREQ_READUTMP): Remove. All uses inlined.
18935 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
18936 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
18938 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
18940 * MODULES.html.sh (Misc): Add byteswap.
18942 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
18944 * modules/getcwd (Depends-on): Add extensions.
18945 * modules/openat (Depends-on): Likewise.
18947 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
18949 * modules/byteswap: New file.
18951 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
18953 * m4/byteswap.m4: New file.
18955 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
18957 * lib/byteswap_.h: New file.
18959 2005-04-25 Karl Berry <karl@gnu.org>
18961 * m4/gettext.m4: Update from GNU gettext 0.14.4.
18963 2005-04-25 Albert Chin <china@thewrittenword.com>
18965 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
18968 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
18970 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
18971 (func_ln_if_changed) Remove forcibly for no error message
18972 in case file does not exist.
18974 2005-04-19 Simon Josefsson <jas@extundo.com>
18976 * gnulib-tool (Options): Make --symlink mean --symbolic.
18978 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
18980 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
18982 2005-04-16 Simon Josefsson <jas@extundo.com>
18984 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
18986 2005-04-15 Simon Josefsson <jas@extundo.com>
18988 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
18990 2005-04-15 Simon Josefsson <jas@extundo.com>
18992 * gnulib-tool: Rename --symlink to --symbolic.
18994 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
18996 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
18997 symbolic links to files instead of copying/moving. Add --aux-dir,
18998 specifying directory relative --dir where auxiliary build tools
19001 2005-04-14 Bruno Haible <bruno@clisp.org>
19003 * modules/allocsa (License): Change to LGPL.
19004 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19006 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
19008 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
19009 that "UTC +1 second" continues to work. Problem reported
19010 by Dmitry V. Levin.
19011 (relunit_snumber): New rule.
19014 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
19016 * lib/getdate.y (universal_time_zone_table): New constant.
19017 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
19018 universal_time_zone_table.
19019 (lookup_zone): Prefer universal_time_zone_table to
19020 local_time_zone_table, so that "GMT" time stamps are allowed in
19021 London during the summer. Problem reported by Ian Abbott.
19023 2005-04-12 Jim Meyering <jim@meyering.net>
19025 * lib/human.c (humblock): Set *options even when returning due to
19026 xstrtoumax conversion failure. Thanks to a used-uninitialized
19027 warning from gcc-4.
19029 2005-04-09 Jim Meyering <jim@meyering.net>
19031 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
19032 -Wuninitialized: initialize tm0.tm_year.
19034 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
19036 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
19037 count, since there's no maximum. All uses changed.
19038 Add member dsts_seen.
19039 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
19041 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
19042 Use pc_rels_seen to decide whther a date is absolute.
19044 * lib/getdate.y (number): Don't overwrite year.
19045 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
19048 2005-04-02 Simon Josefsson <jas@extundo.com>
19050 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
19051 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
19053 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
19055 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
19056 where no absolute path name can be longer than PATH_MAX.
19058 2005-03-27 Jim Meyering <jim@meyering.net>
19060 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
19062 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
19064 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
19065 "one's complement" -> "ones' complement" in comment, as per Knuth.
19066 "value of type" -> "type or expression" in comment.
19067 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
19069 2005-03-26 Jim Meyering <jim@meyering.net>
19072 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
19073 Correct typos: s/or/of/.
19075 2005-03-26 Jim Meyering <jim@meyering.net>
19077 * modules/check-include-files: Move to ../ and rename to...
19078 * check-module: ...this.
19080 2005-03-25 Jim Meyering <jim@meyering.net>
19082 * modules/xvasprintf (Files): Add xalloc.h.
19084 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
19086 * modules/gettext (Files): config/config.rpath ->
19087 build-aux/config.rpath
19088 * modules/iconv (Files): Likewise.
19089 Problem reported by Oskar Liljeblad.
19091 2005-03-23 Jim Meyering <jim@meyering.net>
19093 * modules/check-include-files: New script to check for
19094 missing dependencies, multiple includes, etc.
19096 * modules/c-strtold (Depends-on): Add xalloc.
19097 * modules/c-strtod (Depends-on): Add xalloc.
19098 * modules/hash (Depends-on): Add xalloc.
19099 (Files): Remove lib/xalloc.h.
19101 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
19102 * modules/userspec (Files): Add lib/inttostr.h.
19104 2005-03-23 Jim Meyering <jim@meyering.net>
19106 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
19108 2005-03-22 Jim Meyering <jim@meyering.net>
19110 * modules/stat-macros: New module.
19111 * modules/canonicalize, modules/euidaccess, modules/file-type,
19112 * modules/filemode, modules/lchown, modules/makepath,
19113 * modules/rmdir, modules/stat: Depend on new stat-macros module
19114 rather than listing lib/stat-macros.h manually.
19115 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
19117 2005-03-22 Jim Meyering <jim@meyering.net>
19119 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
19121 2005-03-22 Bruno Haible <bruno@clisp.org>
19123 * config/srclist.txt: Replace target directory 'config' with
19125 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
19126 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
19129 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
19131 * modules/chdir-long (Depends-on): Add mempcpy.
19133 * modules/acl, modules/backupfile, modules/c-strtod,
19134 modules/c-strtold, modules/canon-host, modules/canonicalize,
19135 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
19136 modules/exclude, modules/exitfail, modules/file-type,
19137 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
19138 modules/getdate, modules/getline, modules/getpagesize,
19139 modules/getpass, modules/getugroups, modules/group-member,
19140 modules/hard-locale, modules/hash, modules/human, modules/idcache,
19141 modules/inttostr, modules/long-options, modules/makepath,
19142 modules/md5, modules/memcasecmp, modules/memcoll,
19143 modules/modechange, modules/mountlist, modules/path-concat,
19144 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
19145 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
19146 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
19147 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
19148 modules/strftime, modules/strndup, modules/strverscmp,
19149 modules/timespec, modules/unlocked-io, modules/userspec,
19150 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
19152 Remove lib_SOURCES line from Makefile.am section, as this is now
19153 done automatically by the corresponding Autoconf macro.
19155 2005-03-21 Jim Meyering <jim@meyering.net>
19157 Changes imported from coreutils.
19159 * lib/cycle-check.c: Don't include xalloc.h.
19161 * lib/path-concat.c: Don't include assert.h.
19162 (path_concat): Remove assertion that would have triggered
19163 for ABASE starting with more than one slash.
19164 Reported by Andreas Schwab.
19166 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
19167 properly when ABASE is an absolute file name.
19168 Correct the description of this function.
19169 Include <assert.h>.
19170 Add an assertion and a test driver.
19171 This fixes a bug introduced on 2004-07-02.
19172 Andreas Schwab reported the resulting failure of cp --parents:
19173 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
19175 2005-03-21 Jim Meyering <jim@meyering.net>
19177 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
19178 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
19180 2005-03-21 Jim Meyering <jim@meyering.net>
19181 and Paul Eggert <eggert@cs.ucla.edu>
19183 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
19184 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
19185 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
19186 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
19187 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
19188 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
19189 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
19190 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
19191 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
19192 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
19193 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
19194 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
19195 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
19196 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
19197 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
19198 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
19199 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
19202 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
19204 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
19205 (which shouldn't happen), generate nothing instead of returning 0
19206 immediately, so that nstrftime (NULL, ...) doesn't return 0.
19208 2005-03-16 Bruno Haible <bruno@clisp.org>
19210 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
19211 HAVE_LONGLONG_64BIT.
19213 2005-03-16 Bruno Haible <bruno@clisp.org>
19215 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
19216 HAVE_LONGLONG_64BIT.
19218 2005-03-16 Bruno Haible <bruno@clisp.org>
19220 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
19221 HAVE_LONGLONG_64BIT.
19223 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
19225 * lib/strftime.c (my_strftime): Prepend space to format so that we can
19226 reliably distinguish strftime failure from empty output on POSIX
19229 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
19231 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
19232 (iconv_string): Don't guess a size-zero buffer, as that might cause
19233 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
19234 result would be 'too large', where 'too large' is (heuristically)
19235 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
19236 overflow concerns. This will prevent some unwanted malloc failures
19237 when the inputs are very large.
19239 2005-03-15 Karl Berry <karl@gnu.org>
19241 * config/srclist.txt (config.rpath): from gettext.
19242 * config/config.rpath: update.
19244 2005-03-15 Bruno Haible <bruno@clisp.org>
19246 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
19249 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
19252 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
19255 2005-03-14 Simon Josefsson <jas@extundo.com>
19257 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
19260 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
19262 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
19263 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
19265 * lib/strtol.c: Likewise.
19267 2005-03-14 Jim Meyering <jim@meyering.net>
19269 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
19270 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
19271 to be nonzero so that we (and caller) can detect the difference
19272 between a valid zero-length expansion and an error return, even
19273 when the underlying strftime fails before writing anything into
19276 2005-03-14 Bruno Haible <bruno@clisp.org>
19278 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
19279 Update from GNU gettext 0.14.3.
19281 2005-03-10 Jim Meyering <jim@meyering.net>
19283 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
19285 2005-03-10 Jim Meyering <jim@meyering.net>
19287 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
19288 so that this module works on systems without fchdir.
19290 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
19292 Factor int-properties macros into a single file, except for
19293 glibc-related files.
19294 * lib/intprops.h: New file.
19295 * lib/getloadavg.c: Include it instead of limits.h.
19296 (INT_STRLEN_BOUND): Remove.
19297 * lib/human.c: Include intprops.h.
19298 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
19299 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
19301 * lib/inttostr.h: Include intprops.h instead of limits.h.
19302 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
19303 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
19304 for consistency with intprops.h.
19305 (time_t_is_integer, twos_complement_arithmetic): Use them.
19306 * lib/sig2str.h: Include <signal.h>, intprops.h.
19307 (INT_STRLEN_BOUND): Remove.
19308 * lib/strftime.c (TYPE_SIGNED): Remove.
19309 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
19310 * lib/strtol.c: Adjust comments to match intprops.h.
19311 * lib/userspec.c: Include intprops.h.
19312 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
19313 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
19314 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
19315 instead of rolling our own expressions.
19316 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
19318 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
19320 (my_strftime): Do not mishandle years close to INT_MAX, by doing
19321 the right thing even if adding 1900 would overflow. Similarly
19322 for tm_mon + 1 and tm_yday + 1.
19323 Make %Y always equivalent to %C%y, and similarly for %G and %g.
19324 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
19325 (DO_SIGNED_NUMBER): New macro.
19326 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
19328 2005-03-07 Bruno Haible <bruno@clisp.org>
19330 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
19332 2005-03-07 Bruno Haible <bruno@clisp.org>
19334 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
19336 2005-03-04 Derek R. Price <derek@ximbiot.com>
19338 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
19339 (func_import): Only replace files via --import when they have actually
19342 2005-03-03 Derek R. Price <derek@ximbiot.com>
19344 * m4/mmap-anon.m4: New file.
19345 * m4/pagealign_alloc.m4: New file.
19347 2005-03-03 Derek R. Price <derek@ximbiot.com>
19348 Bruno Haible <bruno@clisp.org>
19350 * modules/pagealign_alloc: New file.
19351 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
19353 2005-03-03 Derek R. Price <derek@ximbiot.com>
19354 Bruno Haible <bruno@clisp.org>
19356 * lib/pagealign_alloc.h: New file.
19357 * lib/pagealign_alloc.c: New file.
19359 2005-03-03 Bruno Haible <bruno@clisp.org>
19361 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
19362 Use an all-permissive copyright notice, recommended by RMS.
19364 2005-03-02 Bruno Haible <bruno@clisp.org>
19366 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
19367 of AIX, the replacement has to be done only after <string.h> is
19368 included, therefore not in config.h. stpncpy.h does the replacement,
19369 and stpncpy.c uses it.
19371 2005-03-02 Bruno Haible <bruno@clisp.org>
19373 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
19376 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
19378 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
19379 The workaround isn't strictly needed for POSIX conformance, and
19380 it's too much of a pain to configure and maintain. We'll ask
19381 people to fix their kernels instead.
19382 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
19383 (NANOSLEEP_BUG_WORKAROUND): Remove.
19384 (xnanosleep): Remove the workaround.
19386 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
19388 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
19389 Reported by Derek Price.
19390 (Include): Add "timespec.h".
19392 * modules/xnanosleep (Depends-on): Remove gethrxtime.
19394 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
19396 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
19397 to detect nanosleep bug.
19399 2005-03-01 Bruno Haible <bruno@clisp.org>
19401 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
19403 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
19405 * modules/gethrxtime: New file.
19406 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
19407 (Depends-on): Add gethrxtime.
19408 (configure.ac): Add gl_XNANOSLEEP.
19409 (Makefile.am): Remove lib_SOURCES line.
19411 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
19413 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
19414 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
19416 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
19418 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
19419 * lib/timespec.h (gettime): Return void, since it always
19420 succeeds now. All uses changed.
19421 * lib/gettime.c (gettime) Likewise.
19422 [HAVE_NANOTIME]: Prefer nanotime.
19423 Assume gettimeofday succeeds, as POSIX requires.
19424 Assime time () succeeds, since other code already does.
19425 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
19426 (timespec_subtract): Remove.
19427 (NANOSLEEP_BUG_WORKAROUND): New constant.
19428 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
19429 things considerably. Use it only on GNU/Linux hosts, since the
19430 workaround shouldn't be needed elsewhere.
19432 2005-02-24 Bruno Haible <bruno@clisp.org>
19434 * modules/gettext (Files): Add m4/glibc2.m4.
19436 2005-02-24 Bruno Haible <bruno@clisp.org>
19438 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
19439 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
19441 Update from GNU gettext 0.14.2.
19442 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
19444 2005-02-24 Bruno Haible <bruno@clisp.org>
19446 * lib/localcharset.c: Update from GNU gettext 0.14.2.
19447 * lib/config.charset: Update from GNU gettext 0.14.2.
19449 2005-02-24 Bruno Haible <bruno@clisp.org>
19451 * lib/gettext.h: Update from GNU gettext 0.14.2.
19453 2005-02-23 Simon Josefsson <jas@extundo.com>
19455 * m4/iconvme.m4: New file.
19457 2005-02-23 Jim Meyering <jim@meyering.net>
19459 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
19461 Thanks to Bruno Haible for catching it.
19463 2005-02-22 Simon Josefsson <jas@extundo.com>
19465 * modules/iconvme: New file.
19467 * MODULES.html.sh: Add iconvme.
19469 2005-02-22 Simon Josefsson <jas@extundo.com>
19471 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
19473 2005-02-22 Simon Josefsson <jas@extundo.com>
19475 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
19477 2005-02-22 Jim Meyering <jim@meyering.net>
19479 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
19482 2005-02-20 Neil Conway <neilc@samurai.com>
19484 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
19485 returned by OSX/Darwin if the specified buffer is not large
19486 enough for the hostname.
19488 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19490 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
19491 pass it to _help, otherwise the latter coredumps trying to
19492 dereference state.root_argp.
19494 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
19496 * modules/chdir-long (Depends-on): Add memrchr.
19497 * modules/memrchr (Files): Add lib/memrchr.h.
19498 (Include): "memrchr.h".
19500 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
19502 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
19504 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
19506 * lib/memrchr.h: New file.
19507 * lib/chdir-long.c: Include it.
19508 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
19509 Don't bother including stddef.h.
19511 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
19513 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
19515 Include <sys/types.h>, for dev_t.
19516 (ME_DUMMY, ME_REMOTE): Move from here....
19517 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
19518 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
19520 Include mountlist.h first, to test the interface.
19522 2005-01-29 Bruno Haible <bruno@clisp.org>
19524 * lib/progname.c (program_name): Initialize.
19525 Needed when linking statically on MacOS X.
19527 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
19529 Sync from coreutils.
19530 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
19531 (Depends-on): Add c-strtod.
19532 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
19534 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
19536 Sync from coreutils.
19537 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
19539 Remove files that are specific to coreutils.
19540 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
19542 2005-01-28 Bruno Haible <bruno@clisp.org>
19544 * modules/javacomp: New file.
19545 * MODULES.html.sh (Java): Add javacomp.
19547 2005-01-28 Bruno Haible <bruno@clisp.org>
19549 * m4/javacomp.m4: New file, from GNU gettext.
19551 2005-01-28 Bruno Haible <bruno@clisp.org>
19553 * lib/javacomp.sh.in: New file, from GNU gettext.
19554 * lib/javacomp.h: New file, from GNU gettext.
19555 * lib/javacomp.c: New file, from GNU gettext.
19557 2005-01-26 Simon Josefsson <jas@extundo.com>
19559 * lib/gai_strerror.c: Use GPL in header.
19561 2005-01-26 Bruno Haible <bruno@clisp.org>
19563 * modules/javaexec: New file.
19564 * MODULES.html.sh (Java): Add javaexec.
19566 2005-01-26 Bruno Haible <bruno@clisp.org>
19568 * m4/javaexec.m4: New file, from GNU gettext.
19570 2005-01-26 Bruno Haible <bruno@clisp.org>
19572 * lib/javaexec.sh.in: New file, from GNU gettext.
19573 * lib/javaexec.h: New file, from GNU gettext.
19574 * lib/javaexec.c: New file, from GNU gettext.
19576 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19578 * modules/lchown (Depends-on): Remove lchown.h
19580 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19582 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
19583 must be defined if the header file was not found, in order
19584 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
19586 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19588 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
19589 initializers for struct pentry_state.
19590 (__argp_error): Check return value of __asprintf
19591 (__argp_failure): Translate error message
19593 * lib/argp-parse.c: Removed braces around the expansion of N_()
19595 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
19597 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
19598 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
19599 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
19600 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
19601 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
19602 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
19603 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
19604 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
19605 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
19606 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
19607 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
19608 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
19609 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
19610 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
19611 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
19612 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
19613 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
19614 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
19615 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
19616 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
19617 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
19618 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
19619 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
19620 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
19621 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
19622 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
19623 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
19624 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
19625 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
19626 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
19627 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
19628 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
19629 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
19630 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
19631 xstrtol.m4, xstrtoumax.m4, yesno.m4:
19632 Use an all-permissive copyright notice, recommended by RMS.
19634 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
19636 * modules/chdir-long (Depends-on): Remove mempcpy.
19638 2005-01-21 Jim Meyering <jim@meyering.net>
19640 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
19641 same value as for Solaris 9.
19643 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
19644 component length. This included changing the parameter to be
19645 of type `char *' rather than `char const *'.
19646 * lib/chdir-long.h (chdir_long): Update prototype.
19648 * lib/openat.c (fdopendir, fstatat): New functions.
19649 * lib/openat.h: Include headers required for use of DIR and struct
19651 [AT_SYMLINK_NOFOLLOW]: Define.
19652 (fdopendir, fstatat): Add prototypes.
19654 2005-01-21 Bruno Haible <bruno@clisp.org>
19656 * modules/classpath: New file.
19657 * MODULES.html.sh (Java): Add classpath.
19659 2005-01-21 Bruno Haible <bruno@clisp.org>
19661 * lib/classpath.h: New file, from GNU gettext.
19662 * lib/classpath.c: New file, from GNU gettext.
19664 2005-01-20 Simon Josefsson <jas@extundo.com>
19666 * modules/version-etc-fsf: New file.
19668 2005-01-20 Simon Josefsson <jas@extundo.com>
19670 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
19671 * lib/version-etc.c: Remove version_etc_copyright.
19672 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
19673 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
19675 2005-01-20 Simon Josefsson <jas@extundo.com>
19677 * lib/base64.h (isbase64): Add.
19679 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
19680 using a unsigned prototype, don't inline.
19681 (base64_decode): Use it.
19683 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
19685 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
19688 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
19690 * lib/save-cwd.c (save_cwd): Remove code to support the case
19691 where fchdir is missing or flaky.
19693 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
19695 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
19697 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
19699 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
19700 AC_LIBSOURCES now does this.
19701 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
19702 with new ullong_max module.
19704 2005-01-19 Bruno Haible <bruno@clisp.org>
19706 * modules/sh-quote: New file.
19707 * MODULES.html.sh (Executing programs): Add sh-quote.
19709 2005-01-19 Bruno Haible <bruno@clisp.org>
19711 * lib/sh-quote.h: New file, from GNU gettext.
19712 * lib/sh-quote.c: New file, from GNU gettext.
19714 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
19716 Merge from coreutils.
19717 * m4/ullong_max.m4: New file.
19718 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
19719 (gl_MACROS): Assume localeconv exists.
19721 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
19723 Merge changes from coreutils, as described below in several
19724 changelogs dated today.
19726 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
19727 (O_DIRECTORY): Remove; not needed here, since "." must be
19728 a directory. All uses removed.
19729 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
19730 universal on Suns, and we also need to test for IRIX.
19731 Revamp code to use 'if' rather than '#if'.
19732 Avoid unnecessary comparison of cwd->desc to 0.
19734 * lib/utimens.c (futimens): Robustify the previous patch, by checking
19735 for known valid error numbers rather than observed invalid ones.
19737 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
19739 * modules/ullong_max: New file.
19741 * modules/chdir-long, modules/openat: New files.
19742 * modules/save-cwd (Depends-on): Depend on chdir-long.
19743 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
19745 2005-01-18 Jim Meyering <jim@meyering.net>
19747 Merge from coreutils.
19748 * m4/chdir-long.m4, m4/openat.m4: New files.
19749 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
19750 save-cwd.h. Add AC_LIBOBJ for save-cwd.
19751 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
19752 is sane and DOES follow symlinks. Besides, testing 20 different
19753 systems found no broken chown implementations.
19754 Prompted by a change in rsync's copy of this macro.
19755 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
19757 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
19759 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
19760 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
19761 NULL-means-set-to-current-time semantics.
19762 Remove temporary file immediately, rather than waiting
19763 for configure's at-exit trap code to do it.
19765 2005-01-18 Jim Meyering <jim@meyering.net>
19767 * lib/version-etc.c (version_etc_copyright): Update copyright date.
19769 * lib/utimens.c (futimens): Account for the fact that futimes
19770 can also fail with errno == ENOSYS or errno == ENOENT.
19771 Patch from Dmitry V. Levin.
19773 Change the name of the robust chdir function from chdir to chdir_long.
19774 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
19775 (restore_cwd): Use chdir_long, not chdir.
19776 * lib/chdir-long.c: Renamed from chdir.c.
19777 * lib/chdir-long.h: Renamed from chdir.h.
19778 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
19781 2005-01-18 Bruno Haible <bruno@clisp.org>
19783 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
19784 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
19785 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
19786 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
19787 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
19788 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
19789 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
19790 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
19791 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
19792 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
19793 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
19794 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
19795 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
19796 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
19797 Use an all-permissive copyright notice, recommended by RMS.
19799 2005-01-18 Bob Proulx <bob@proulx.com>
19801 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
19802 simplify offsetof() macro construct to avoid compile failure with
19803 native HP-UX 11.0 ANSI C compiler.
19805 2005-01-17 Bruno Haible <bruno@clisp.org>
19807 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
19808 redundant because stpncpy.m4 takes care of it.
19810 2005-01-17 Bruno Haible <bruno@clisp.org>
19812 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
19814 2005-01-17 Bruno Haible <bruno@clisp.org>
19816 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
19819 2005-01-17 Bruno Haible <bruno@clisp.org>
19821 * lib/fwriteerror.h (fwriteerror): Change specification to include
19823 * lib/fwriteerror.c: Include <stdbool.h>.
19824 (fwriteerror): At the end, close the file stream. Record whether
19825 stdout was already closed.
19827 2005-01-17 Bruno Haible <bruno@clisp.org>
19829 * lib/execute.c (environ): Declare if needed.
19830 * lib/pipe.c (environ): Likewise.
19831 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
19833 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19835 * modules/argp: Depend on vsnprintf
19837 2005-01-10 Jim Meyering <jim@meyering.net>
19839 * modules/closeout (Depends-on): Add atexit.
19841 2005-01-06 Bruno Haible <bruno@clisp.org>
19843 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
19845 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
19847 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
19848 definitions to be after all include files, to avoid collisions.
19849 Problem reported by Bob Proulx.
19851 2005-01-04 Jim Meyering <jim@meyering.net>
19853 Changes imported from coreutils.
19854 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
19855 as the mkstemp template, use a temporary directory and an
19856 8.3-friendly template to avoid trouble on systems like DJGPP.
19857 Reported by Juan M. Guerrero via Stepan Kasal.
19858 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
19859 close. Remove the temporary directory right away, rather than waiting
19860 for configure's at-exit trap code to do it.
19861 Suggestion from Stepan Kasal.
19863 2005-01-01 Simon Josefsson <jas@extundo.com>
19865 * gnulib-tool: Print #include directives when --import'ing.
19867 2004-12-28 Simon Josefsson <jas@extundo.com>
19869 * tests/test-base64.c: Include required header files. Remove
19872 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
19874 * modules/error (Depends-on): Remove gettext.
19876 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
19878 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
19879 not needed. This removes a dependency on the gettext module.
19880 [defined _LIBC]: Do not include <libintl.h>; not needed.
19882 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
19884 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
19885 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
19887 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
19889 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
19892 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
19894 * modules/getdate (Depends-on): Remove alloca-opt.
19896 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
19898 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
19900 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
19902 * lib/argp-parse.c: Include <stddef.h>.
19903 (alignof, alignto): New macros.
19904 (parser_init): Don't assume that void * is aligned sufficiently
19907 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
19908 need to extend the stack.
19909 (YYINITDEPTH): New macro, so that the initial stack isn't overly
19912 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19914 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
19916 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
19918 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
19919 (2004-10-24) change. Apparently this was a false alarm.
19921 * modules/getdate: Depend on alloca-opt, not alloca.
19923 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
19925 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
19926 Remove now-obsolete comment about AIX.
19927 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
19928 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
19929 (YYMAXDEPTH): New macro.
19931 2004-12-18 Simon Josefsson <jas@extundo.com>
19933 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
19935 2004-12-18 Bruno Haible <bruno@clisp.org>
19937 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
19939 2004-12-18 Bruno Haible <bruno@clisp.org>
19941 * lib/fatal-signal.c (fatal_signals): Make non-const.
19942 (init_fatal_signals): New function.
19943 (uninstall_handlers, install_handlers): Ignore signals that were set to
19945 (at_fatal_signal): Call init_fatal_signals.
19946 (init_fatal_signal_set): Likewise. Ignore signals that were set to
19948 Reported by Paul Eggert.
19950 2004-12-18 Bruno Haible <bruno@clisp.org>
19952 * doc/alloca.texi: New file.
19953 * doc/alloca-opt.texi: New file.
19955 2004-12-17 Jim Meyering <jim@meyering.net>
19957 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
19958 Otherwise, install-sh could exit with improper exit status when
19959 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
19961 2004-12-16 Simon Josefsson <jas@extundo.com>
19963 * tests/test-base64.c: Add license.
19965 2004-12-15 Stepan Kasal <address@hidden>
19967 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
19969 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
19971 * modules/getcwd (Files): Add m4/d-ino.m4.
19972 Suggested by Mark D. Baushke.
19974 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
19976 * lib/getdate.y (textint): New member "negative".
19977 (time_zone_hhmm): New function.
19978 Expect 14 shift-reduce conflicts, not 13.
19979 (o_colon_minutes): New rule.
19980 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
19981 (yylex): Set the "negative" member of signed numbers.
19983 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
19985 * doc/getdate.texi (Time of day items, Time zone items):
19986 Describe new formats +00:00, UTC+00:00.
19988 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
19990 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
19991 spurious "-l"s. Problem reported by Stepan Kasal.
19993 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
19995 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
19996 in Autoconf 2.59. Problem reported by Mark D. Baushke.
19998 2004-12-04 Simon Josefsson <jas@extundo.com>
20000 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
20001 Vandoorselaere <yoann@prelude-ids.org>.
20003 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
20005 Changes imported from coreutils.
20006 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
20008 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
20010 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
20012 Changes imported from coreutils.
20013 * lib/hard-locale.c: Assume <locale.h> exists.
20014 Include "strdup.h".
20015 (GLIBC_VERSION): New macro.
20016 (hard_locale): Assume setlocale exists.
20017 Rewrite to avoid #ifdef.
20018 Use strdup rather than malloc + strcpy.
20019 * lib/human.c: Assume <locale.h> exists.
20020 (human_readable): Assume localeconv exists.
20022 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
20024 * modules/hard-locale (Depends-on): Add strdup.
20026 2004-12-01 Jakub Jelinek <jakub@redhat.com>
20028 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
20029 convert T2, not T. (Imported from libc.)
20031 2004-11-30 Simon Josefsson <jas@extundo.com>
20033 * modules/restrict (License): Change to LGPL.
20035 2004-11-30 Simon Josefsson <jas@extundo.com>
20037 * m4/restrict.m4: Add copyright and copying conditions.
20039 2004-11-30 Simon Josefsson <jas@extundo.com>
20041 * m4/base64.m4: New file.
20043 2004-11-30 Simon Josefsson <jas@extundo.com>
20045 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
20048 * tests/test-base64.c: New file.
20050 * modules/base64: New file.
20052 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
20054 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
20055 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
20057 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
20059 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
20061 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
20062 (__getcwd.c): Don't restore errno; glibc doesn't.
20063 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
20064 first, falling back to our code only if its results look suspicious.
20065 Ensure that the resulting buffer is only as large as necessary.
20067 * lib/readutmp.c: Include readutmp.h first.
20068 Include <errno.h>, since readutmp.h no longer does that.
20069 * lib/readutmp.h: Don't include <errno.h>,
20070 <sys/param.h>, <time.h>; not needed to establish interface.
20071 (errno): Remove decl.
20072 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
20073 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
20074 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
20076 2004-11-28 Simon Josefsson <jas@extundo.com>
20078 * lib/base64.h, base64.c: New file.
20080 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
20082 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
20084 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
20086 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
20087 (Depends-on): Remove pathmax, same. Add mempcpy.
20088 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
20089 (Makefile.am): Append getcwd.h to lib_SOURCES.
20090 (Include): Add getcwd.h.
20091 (Maintainer): Change from Jim Meyering to "all, glibc",
20092 since getdate now uses intended-for-glibc code.
20093 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
20094 (Depends-on): Depend on getcwd. Do not depend on pathmax.
20096 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
20098 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
20099 HP's ANSI C compiler.
20100 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
20101 Declaring int functions causes warnings on some modern systems and
20102 shouldn't be needed to compile on ancient ones.
20103 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
20106 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
20107 with the following changes.
20108 (__set_errno): Parenthesize properly.
20109 Include <stdbool.h>.
20110 (MIN, MAX, MATCHING_INO): New macros.
20111 (__getcwd): Define with prototype, not K&R form.
20112 Use heuristics to allocate default buffer on stack if possible.
20113 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
20114 behavior, and to avoid the PATH_MAX limit when computing
20116 Use MATCHING_INO to compare inode number to file.
20117 Check for arithmetic overflow in size calculations.
20118 Fix bug in reallocation of dot array that caused getcwd to fail
20119 on directories nested deeper than 75.
20120 Be more careful about saving errno on error.
20121 Do not use realloc; use only free+malloc, as this is a bit
20122 more flexible and avoids a needless copy operation.
20123 Do not inspect st_dev and st_ino for symbolic links; POSIX
20124 doesn't specify the latter.
20125 Check for closedir errors.
20126 Avoid needless casts.
20127 Use "#ifdef weak_alias" around weak_alias, to be like other
20129 The following changes to getcwd.c have effect only when used in
20130 gnulib; they have no effect inside glibc proper.
20131 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
20132 as alloca isn't used.
20133 (alloca, __alloca): Likewise.
20134 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
20135 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20136 unconditionally, as gnulib assumes C89 or better.
20137 Do not include <sys/param.h>.
20138 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
20139 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
20141 (NULL) [!defined NULL]: Remove; we assume C89 or better.
20142 Include <dirent.h> in a way that is compatible with modern Autoconf.
20143 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
20144 New macros, if not already defined.
20145 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
20146 Use "_LIBC", not "defined _LIBC", for consistency.
20147 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
20149 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
20150 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
20151 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
20152 credit only to Jim Meyering and adjust the copyright dates.
20153 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
20154 <stdlib.h>, <unistd.h>, "pathmax.h".
20155 Instead, include "xgetcwd.h" (first) and "getcwd.h".
20156 (INITIAL_BUFFER_SIZE): Remove.
20157 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
20159 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
20161 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
20162 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
20163 Use the _ONCE methods, for efficiency.
20164 Check for fcntl.h. In test program, include <errno.h>
20165 and <fcntl.h> if available. Remove old K&R cruft from
20166 test program. Check for common errors in GNU/Linux,
20167 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
20168 don't do AC_LIBOBJ, as that's getcwd.m4's job.
20169 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
20170 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
20172 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
20173 accommodate new getcwd.c.
20174 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
20175 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
20176 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
20177 that's all we need now.
20179 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20181 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
20182 argp-parse.c depends on getopt internals, that means we should
20183 always use our getopt, to be on the safe side.
20184 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
20185 order not to spoil the result of an eventual previous invocation
20186 of gl_GETOPT_SUBSTITUTE.
20188 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20190 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
20191 redefinition warnings. To avoid them, include the defines
20192 in `#if !defined __need_getopt ... #endif'. The only place
20193 where __getopt_argv_const is used is in definitions
20194 of getopt_long and getopt_long_only below, which are as well
20195 protected by `#ifndef __need_getopt'.
20196 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
20197 __need_getopt after including <stdio.h> and <unistd.h> These
20198 headers might have defined it.
20200 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
20202 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
20204 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
20206 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
20207 (futimens): New function, which uses futimes if available.
20208 (futimens, utimens): Support timespec==NULL, with same semantics
20209 as utime and utimens.
20210 * lib/utimens.h (futimens): New decl.
20212 2004-11-23 Jim Meyering <jim@meyering.net>
20214 * lib/getopt_.h: Remove trailing blanks.
20216 2004-11-23 Jim Meyering <jim@meyering.net>
20218 * lib/__fpending.c: Add comment.
20220 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
20222 * modules/canonicalize (Depends-on): Add xreadlink.
20223 Problem reported by James Youngman.
20225 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
20227 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
20229 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
20230 optopt): Use them instead of invoking ## directly; otherwise, the
20231 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
20233 2004-11-19 Bruno Haible <bruno@clisp.org>
20235 * lib/strtok_r.c: Move comments from here...
20236 * lib/strtok_r.h: ... to here.
20238 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
20240 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
20241 implementations that mishandle size_t overflow.
20243 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
20245 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
20246 might fail. Problem reported by Yoann Vandoorselaere.
20247 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
20248 implementations that mishandle size_t overflow.
20250 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
20252 * modules/canon-host (Depends-on): Add strdup.
20254 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
20256 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
20258 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
20260 * lib/canon-host.c: Include "strdup.h".
20261 (canon_host): Use getaddrinfo if available, so that IPv6 works.
20262 Use strdup instead of malloc/strcpy to duplicate strings.
20264 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
20265 (human_space_before_unit): New constant.
20266 * lib/human.c (human_readable): Support it.
20268 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
20269 (xgetcwd): Set errno correctly when failing.
20270 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
20271 the failure is actually due to a PATH_MAX problem.
20273 Further getopt changes to make it more likely that glibc will
20274 buy the changes back.
20275 * lib/getopt.c (POSIXLY_CORRECT): New constant.
20276 (getopt): Use it, so to preserve glibc semantic
20277 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
20278 when compiling for libc.
20279 * lib/getopt_.h (__getopt_argv_const): Bring it back.
20280 (getopt_long, getopt_long_only): Use it.
20282 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20283 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
20284 (getopt): Argv is now char * const *, as per standard.
20285 (_getopt_internal_r, _getopt_internal): Argv is now char **,
20286 not char *__getopt_argv_const *.
20287 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20288 _getopt_long_only_r): Likewise.
20289 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
20290 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20291 _getopt_long_r, _getopt_long_only_r): Likewise.
20292 * lib/getopt_.h (__getopt_argv_const): Remove.
20293 (getopt): Argv is now char * const *, as per standard.
20295 * lib/getdate.y (tORDINAL): New token.
20296 (day, relunit): Allow it for relative times.
20297 (relative_time_table): Use tORDINAL for ordinals.
20299 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
20301 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
20302 Document that "second" isn't allowed as an ordinal number.
20304 2004-11-16 Jim Meyering <jim@meyering.net>
20306 * modules/closeout (Depends-on): Add fpending.
20308 2004-11-15 Jim Meyering <jim@meyering.net>
20310 * lib/closeout.c: Include "__fpending.h" once again.
20311 Include <stdbool.h>.
20312 (close_stdout): Don't fail just because stdout was closed initially,
20313 since some programs don't write to stdout in the normal course of
20314 operation (other than --version and --help), and we don't want this
20315 function to make e.g. `touch file >&-' fail.
20316 But do fail if it was closed and someone has tried to write to it.
20317 E.g., `printf foo >&-' must fail.
20319 2004-11-13 Jim Meyering <jim@meyering.net>
20321 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
20323 2004-11-12 Simon Josefsson <jas@extundo.com>
20325 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
20326 small doc fix is still pending.
20328 2004-11-11 Simon Josefsson <jas@extundo.com>
20330 * modules/strtok_r: New file.
20332 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20335 2004-11-11 Simon Josefsson <jas@extundo.com>
20337 * m4/strtok_r.m4: New file.
20339 * m4/getopt.m4: Replace opterr.
20341 2004-11-11 Simon Josefsson <jas@extundo.com>
20343 * lib/strtok_r.h, strtok_r.c: New file.
20345 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
20347 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
20348 of replacing opterr, getopt, etc. This should handle the
20349 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
20351 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
20353 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
20354 we can stop lying to compilers about the constness of argv when we
20355 are compiled outside glibc.
20356 (getopt, getopt_long, getopt_long_only): Use it.
20357 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
20358 _getopt_internal, getopt): Likewise.
20359 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
20360 _getopt_long_only_r): Likewise.
20361 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
20362 _getopt_long_r, _getopt_long_only_r): Likewise.
20364 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
20365 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
20366 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
20367 the other external symbols.
20368 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
20369 declaration, since the above renaming now works around collisions.
20371 2004-11-11 Jim Meyering <jim@meyering.net>
20373 * lib/linebreak.c: Remove trailing blanks.
20374 * lib/alloca_.h: Likewise.
20375 * lib/acosl.c: Likewise.
20376 * lib/euidaccess.c: Likewise.
20377 * lib/allocsa.h: Likewise.
20379 2004-11-10 Simon Josefsson <jas@extundo.com>
20381 * m4/getaddrinfo.m4: New file.
20383 2004-11-10 Simon Josefsson <jas@extundo.com>
20385 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
20387 2004-11-10 Simon Josefsson <jas@extundo.com>
20389 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20392 * modules/getaddrinfo: New file.
20394 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
20396 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
20398 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
20400 * lib/mktime.c (SHR): New macro, which is a portable
20401 substitute for >> that should work even on Crays.
20402 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
20403 Problem reported by Mark D. Baushke in
20404 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
20405 * lib/getdate.y (SHR): Likewise.
20407 * lib/strftime.c (SHR): Likewise.
20409 * lib/quotearg.c (struct quoting_options): Use unsigned int for
20410 quote_these_too, so that right shifts are well defined. All uses
20413 2004-11-10 Jim Meyering <jim@meyering.net>
20415 Ensure that no close failure goes unreported.
20416 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
20417 return early when it seems there's nothing to flush.
20418 Don't include __fpending.h.
20420 2004-11-10 Jim Meyering <jim@meyering.net>
20422 * modules/closeout (Depends-on): Remove fpending.
20424 2004-11-10 Jim Meyering <jim@meyering.net>
20426 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
20428 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
20430 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
20432 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
20433 and AC_REQUIRE when possible, to avoid duplicate checks.
20434 Check for <wchar.h>.
20436 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
20438 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
20440 2004-11-09 Bruno Haible <bruno@clisp.org>
20442 * m4/sockpfaf.m4: New file.
20444 2004-11-05 Bruno Haible <bruno@clisp.org>
20446 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
20447 Reported by Mark D. Baushke <mdb@cvshome.org>.
20449 2004-11-04 Bruno Haible <bruno@clisp.org>
20451 2004-09-11 Bruno Haible <bruno@clisp.org>
20452 * allocsa.valgrind: New file.
20453 2004-02-06 Bruno Haible <bruno@clisp.org>
20454 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
20455 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
20456 Reported by Christopher Seip <chris.seip@hp.com>.
20458 2004-11-04 Bruno Haible <bruno@clisp.org>
20460 * modules/allocsa (Files): Add lib/allocsa.valgrind.
20461 (Makefile.am): Distribute it.
20463 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
20465 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
20466 with errno == ERANGE if the buffer is too small.
20467 Problem reported by Mark D. Baushke.
20469 2004-11-03 Albert Chin <china@thewrittenword.com>
20470 Paul Eggert <eggert@cs.ucla.edu>
20472 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
20473 equivalent, substitute $ac_type for equivalent type rather than
20474 blindly using uint32_t *always* which won't work if uint32_t is not
20475 available. Define _UINT32_T to work around typedef of uint32_t if
20476 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
20479 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
20481 * m4/jm-macros.m4: Sync from coreutils.
20482 (gl_MACROS): Check for mbrlen, for pathchk.
20483 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
20485 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
20487 * lib/xreadlink.c (MAXSIZE): New macro.
20488 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
20489 size does not exceed MAXSIZE. Avoid cast.
20490 As suggested by Mark D. Baushke in
20491 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
20492 if readlink fails with buffer size just under MAXSIZE, try again
20495 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
20497 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
20499 2004-11-02 Derek R. Price <derek@ximbiot.com>
20500 and Paul Eggert <eggert@cs.ucla.edu>
20502 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
20503 (get_date): Overparenthesize to avoid GCC warning.
20505 2004-11-02 Bruno Haible <bruno@clisp.org>
20507 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
20510 2004-11-02 Bruno Haible <bruno@clisp.org>
20512 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
20513 function returns void.
20515 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
20517 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
20518 fflush_unlocked, flockfile, funlockfile, funlockfile,
20519 fputs_unlocked, putc_unlocked.
20521 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
20523 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
20524 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
20527 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
20529 * modules/getdate (Files): Add doc/getdate.texi.
20530 (Depends-on): Add setenv, xalloc.
20532 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
20534 * lib/getdate.y: Add support for TZ="foo" within a date string.
20535 Fix some bugs near time_t boundaries. Reject dates with
20536 out-of-range components, e.g., "Sept 31".
20537 Include <stdlib.h>, "setenv.h", "xalloc.h".
20538 (ISDIGIT_LOCALE): Remove; unused.
20539 Note that the TZ and time functions used here are not reentrant.
20540 (mktime_ok, get_tz): New functions.
20541 (TZBUFSIZE): New constant.
20542 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
20543 This requires that we sometimes generate our own TZ="XXX..." setting.
20545 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
20547 * doc/getdate.texi: New file, from coreutils with modifications for
20548 the new TZ parsing.
20550 2004-10-27 Derek R. Price <derek@ximbiot.com>
20552 * lib/mktime.c (not_equal_tm): Remove redundant check.
20554 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
20556 * modules/regex (lib_SOURCES): Add regex.c.
20557 Reported by James Youngman in
20558 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
20560 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
20562 * lib/getdate.y: Use Bison 1.875 features, and some minor
20563 code cleanups. This change does not affect semantics.
20564 Don't include <stdlib.h>; no longer needed.
20565 Don't include unlocked-io.h; only the "#if TEST" code uses
20566 stdio, and performance isn't crucial there.
20567 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
20568 Bison 1.875 features as described below.
20569 All uses of "PC." replaced by "pc->".
20570 (YYSTYPE): Add a forward declaration.
20571 (yylex, yyerror): Use full prototypes in forward decls.
20572 Use "%pure-parser" rather than obsolescent "%pure_parser".
20573 Use %parse-param and %lex-param instead of obsolescent
20574 YYPARSE_PARAM and YYLEX_PARAM.
20575 (meridian_table, month_and_day_table, time_units_table,
20576 relative_time_table, time_zone_table, military_table,
20577 lookup_zone, lookup_word, get_date):
20578 Use NULL instead of 0 where appropriate.
20579 (to_hour): Avoid abort (), to avoid a dependency on
20581 (yyerror, yylex): Now accepts parser_control * arg.
20582 (main) [TEST]: Use '\0' rather than 0 for char.
20584 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
20586 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
20588 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
20590 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
20591 It's now the caller's responsibility to handle the case where
20592 !HAVE_GETPAGESIZE && !defined getpagesize.
20594 * lib/mktime.c (leapyear): Arg is long int, not int.
20596 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
20598 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
20600 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
20602 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
20603 missing. Problem reported by James Youngman.
20605 2004-10-16 Simon Josefsson <jas@extundo.com>
20607 * gnulib-tool: Fix comments. Fix parse problem.
20608 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
20610 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
20612 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
20613 implementation of getopt_long. Problem reported by Alexander Taler in:
20614 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
20616 2004-10-15 Bruno Haible <bruno@clisp.org>
20618 * gnulib-tool: Untabify. Initialize supplied_libname.
20619 (func_usage): More homogenous output.
20620 (func_modules_transitive_closure, func_modules_to_filelist,
20621 func_emit_lib_Makefile_am): New functions.
20622 (func_import): New function, extracted from big case statement. Use
20623 func_get_license, func_modules_transitive_closure,
20624 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
20625 opt_lgpl. Don't use test -a, as it's not portable.
20626 (func_create_testdir): Use func_modules_transitive_closure,
20627 func_modules_to_filelist, func_emit_lib_Makefile_am.
20629 2004-10-15 Bruno Haible <bruno@clisp.org>
20631 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
20633 2004-10-15 Bruno Haible <bruno@clisp.org>
20635 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
20636 the portions belonging to each module.
20637 Suggested by Derek Robert Price <derek@ximbiot.com>.
20639 2004-10-12 Simon Josefsson <jas@extundo.com>
20641 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
20642 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
20645 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
20647 * modules/vsnprintf: New file.
20649 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
20651 * m4/vsnprintf.m4: New file.
20653 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
20655 * lib/vsnprintf.h: New file.
20656 * lib/vsnprintf.c: New file.
20658 2004-10-11 Bruno Haible <bruno@clisp.org>
20660 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
20663 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
20665 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
20667 2004-10-07 Bruno Haible <bruno@clisp.org>
20669 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
20670 fits into the provided buffer.
20672 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
20674 * lib/diacrit.c, diacrit.h: Add GPL notice.
20676 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
20678 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
20679 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
20680 This avoids a potential constant-folding bug.
20682 2004-10-05 Bruno Haible <bruno@clisp.org>
20684 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
20685 for the declaration of strsep.
20687 2004-10-05 Bruno Haible <bruno@clisp.org>
20689 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
20691 2004-10-04 Simon Josefsson <jas@extundo.com>
20693 * modules/memmem: New file.
20694 * tests/test-memmem.c: New file.
20695 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
20697 2004-10-04 Simon Josefsson <jas@extundo.com>
20699 * m4/memmem.m4: New file.
20701 2004-10-04 Simon Josefsson <jas@extundo.com>
20703 * lib/memmem.h: New file.
20704 * lib/memmem.c: New file, taken from glibc.
20706 2004-10-04 Simon Josefsson <jas@extundo.com>
20708 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
20709 '#ifdef USE_UNLOCKED_IO'.
20711 2004-10-04 Simon Josefsson <jas@extundo.com>
20713 * config/srclist.txt: Add memmem from glibc.
20715 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
20717 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
20719 * modules/argmatch, modules/argp, modules/closeout, modules/error,
20720 modules/exclude, modules/getdate, modules/getline,
20721 modules/getndelim2, modules/getpass, modules/getpass-gnu,
20722 modules/getusershell, modules/linebuffer, modules/md5,
20723 modules/mountlist, modules/posixtm, modules/readtokens,
20724 modules/readutmp, modules/regex, modules/sha1,
20725 modules/version-etc, modules/yesno:
20726 Remove dependency on unlocked-io.
20728 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
20730 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
20732 * m4/unlocked-io.m4: Add copyright notice.
20733 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
20735 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
20737 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
20738 * lib/xmalloc.c (xmemdup): Likewise.
20739 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
20740 XFREE): Remove these long-obsolescent macros.
20741 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
20742 * lib/xstrdup.c: Remove.
20744 * lib/regex.c (re_comp): Cast gettext return value to char *,
20745 Problem reported by Martin Neitzel via Mark D. Baushke.
20747 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
20749 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
20750 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
20751 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
20752 regex.c, sha1.c, version-etc.c, yesno.c:
20753 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
20754 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
20755 the includer's responsibility.
20757 Sync from coreutils.
20759 * lib/modechange.c (mode_compile): Don't decrement a pointer that
20760 points to the start of a string, as the C Standard says the
20761 resulting behavior is undefined.
20763 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
20764 simple -> simple_backups, numbered_existing ->
20765 numbered_existing_backups, numbered -> numbered_backups
20766 to avoid shadowing problems. All uses changed.
20767 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
20768 * lib/backupfile.c (check_extension, numbered_backup):
20769 Rename locals to avoid shadowing 'basename'.
20770 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
20773 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
20774 * lib/.cvsignore: Add getopt.h.
20776 2004-10-04 Bruno Haible <bruno@clisp.org>
20778 * modules/README: New file.
20779 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
20782 2004-10-02 Jim Meyering <jim@meyering.net>
20784 * lib/dirfd.h, getpagesize.h: Add copyright notice.
20786 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
20788 * modules/strsep: New file.
20790 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
20792 * m4/strsep.m4: New file.
20794 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
20796 * lib/strsep.h: New file.
20797 * lib/strsep.c: New file.
20799 2004-10-01 Simon Josefsson <jas@extundo.com>
20801 * lib/snprintf.c (snprintf): Handle size==0.
20803 2004-10-01 Simon Josefsson <jas@extundo.com>
20804 Bruno Haible <bruno@clisp.org>
20806 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
20807 (snprintf): Declare 'args'.
20809 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
20811 * lib/snprintf.c: Remove comments as to why each header is needed.
20813 2004-10-01 Bruno Haible <bruno@clisp.org>
20815 * MODULES.html.sh: Add strsep.
20817 2004-09-30 Simon Josefsson <jas@extundo.com>
20819 * modules/snprintf: New file.
20821 2004-09-30 Simon Josefsson <jas@extundo.com>
20823 * m4/snprintf.m4: New file.
20825 2004-09-30 Simon Josefsson <jas@extundo.com>
20827 * lib/snprintf.h, lib/snprintf.c: New files.
20829 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20831 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
20832 (hol_entry_help): Never translate an empty string.
20833 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
20834 * lib/argp.h (OPTION_NO_TRANS): New option.
20836 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
20838 * modules/argp (Maintainer): Replace Simon Josefsson
20839 by Sergey Poznyakoff.
20841 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
20843 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
20844 changes merged back into glibc.
20846 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
20848 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
20850 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
20852 * lib/xvasprintf.c: Include xalloc.h.
20853 (xvasprintf): Use xalloc_die, not xmalloc_die.
20855 2004-09-29 Bruno Haible <bruno@clisp.org>
20857 * modules/alloca-opt: New file, derived from modules/alloca.
20858 * modules/allocsa: Depend on alloca-opt instead of alloca.
20859 * modules/setenv: Likewise.
20860 * modules/vasnprintf: Likewise.
20861 * MODULES.html.sh: Add alloca-opt.
20863 2004-09-28 Simon Josefsson <jas@extundo.com>
20865 * gnulib-tool: New parameter --lgpl, to asseert that modules are
20866 LGPL, and to replace license template from GPL to LGPL.
20868 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
20870 * modules/dummy: Change license to LGPL.
20872 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
20874 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
20876 2004-09-24 Simon Josefsson <jas@extundo.com>
20878 * modules/minmax (License): Change from GPL to LGPL.
20880 2004-09-23 Simon Josefsson <jas@extundo.com>
20882 * gnulib-tool (--import): Typo.
20884 2004-09-23 Simon Josefsson <jas@extundo.com>
20886 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
20888 2004-09-22 Bruno Haible <bruno@clisp.org>
20890 * modules/*: Add 'License' field.
20891 * gnulib-tool: Accept --extract-license option.
20892 (func_get_license): New function.
20894 2004-09-21 Bruno Haible <bruno@clisp.org>
20896 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
20897 Reported by Simon Josefsson.
20899 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
20901 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
20902 gl_AC_TYPE_LONG_LONG.
20904 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
20906 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
20908 2004-09-18 Simon Josefsson <jas@extundo.com>
20909 and Paul Eggert <eggert@cs.ucla.edu>
20911 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
20912 calls with autoreconf. Define GL_LIB.
20914 2004-09-14 Karl Berry <karl@gnu.org>
20916 * config/srclist.txt: unsync setenv.c, sigh.
20918 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
20920 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
20921 Problem reported by Bruno Haible in:
20922 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
20924 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
20926 * config/srclist.txt: Comment out argp-pvh.c.
20928 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
20930 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
20931 in case some system header has #define'd it. Problem reported by
20932 Soeren D. Schulze in
20933 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
20935 2004-09-09 Karl Berry <karl@gnu.org>
20937 * regex.[ch]: delete from the root. These were supposed to be
20938 synced with emacs cvs, but this has not happened for about
20939 a year, and anyway nothing else uses emacs regex.[ch].
20940 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
20941 lib/regex[.ch] is untouched.
20943 2004-09-09 Bruno Haible <bruno@clisp.org>
20945 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
20947 2004-09-09 Bruno Haible <bruno@clisp.org>
20949 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
20951 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
20953 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
20955 * modules/xvasprintf: New file.
20956 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
20958 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
20960 * lib/xvasprintf.h: New file.
20961 * lib/xvasprintf.c: New file.
20962 * lib/xasprintf.c: New file.
20964 2004-09-08 Bruno Haible <bruno@clisp.org>
20966 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
20968 2004-09-08 Bruno Haible <bruno@clisp.org>
20970 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
20971 length is > INT_MAX.
20972 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
20975 2004-09-08 Bruno Haible <bruno@clisp.org>
20977 * lib/stdint_.h: New file, taken from GNU clisp.
20979 2004-09-08 Bruno Haible <bruno@clisp.org>
20980 Oskar Liljeblad <oskar@osk.mine.nu>
20982 * modules/stdint: New file.
20983 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
20985 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
20987 Import from coreutils.
20988 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
20989 strings on unbounded length. alloca's performance benefits aren't
20990 that important here.
20991 (V_STRDUP): Remove.
20992 (parse_with_separator): New function, with most of the internals
20993 of the old parse_user_spec. Allow user to omit both user and group,
20994 for compatibility with FreeBSD.
20995 Clone only the user name, not the entire spec.
20996 Do not set *uid, *gid unless entirely successful.
20997 Avoid memory leak in some failing cases.
20998 Fix regression for USER.GROUP reported by Dmitry V. Levin in
20999 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
21000 (parse_user_spec): Rewrite to use parse_with_separator.
21002 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
21004 * modules/userspec: Don't depend on alloca.
21006 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
21008 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
21010 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
21012 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
21013 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
21014 utimecmp, utimens, xnanosleep. Rename sha to sha1.
21016 2004-08-16 Simon Josefsson <jas@extundo.com>
21018 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
21019 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
21020 Add --dry-run for --import.
21021 Let user provided command line parameters override configure.ac
21024 2004-08-12 Simon Josefsson <jas@extundo.com>
21026 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
21027 as discussed with Paul Eggert in threads rooted at
21028 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
21030 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
21031 Before, the test was empty, and relied on ELIDE_CODE in source
21033 (gl_PREREQ_GETOPT): New macro.
21034 (gl_GETOPT): Use them.
21036 2004-08-12 Simon Josefsson <jas@extundo.com>
21038 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
21039 * lib/getopt_.h: Renamed from getopt.h.
21041 2004-08-12 Simon Josefsson <jas@extundo.com>
21043 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
21044 Change default library name from libfoo to libgnu.
21045 Now, if you have a configure.ac that says:
21048 gl_MODULES(error getopt etcetera)
21050 you can import all you need by running:
21051 ../gnulib/gnulib-tool --import
21053 * modules/getopt (Files): Rename getopt.h to getopt_.h.
21054 (Makefile.am): Rewrite, use logic from argz.
21055 (Include): Use <getopt.h> instead of "getopt.h".
21057 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
21059 * modules/argp (Files): Add m4/unlocked-io.m4.
21060 (Depends-on): Add extensions.
21062 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
21064 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
21065 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
21066 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
21067 Check for program_invocation_name, program_invocation_short_name,
21068 flockfile, funlockfile, features.h, _getopt_long_only_r.
21070 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
21072 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
21073 its complicated substitute.
21074 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
21075 and program_invocation_name.
21076 (__argp_basename) [!_LIBC]: Remove; the only use was
21077 replaced by its body.
21078 (__argp_short_program_name): Change condition from
21079 !defined __argp_short_program_name to
21080 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
21081 to match argp-namefrob.h.
21082 (__argp_failure): Don't assume strerror_r returns char *.
21083 * lib/argp-parse.c (N_): Define unconditionally.
21084 (argp_default_options): Fill out initializers with 0 to avoid
21087 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
21089 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
21092 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
21094 Merge from coreutils.
21096 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
21098 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
21099 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
21101 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
21103 Merge from coreutils.
21105 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
21106 wmemchr or wmemcpy. Problem reported by Robert Dahlem
21107 for Reliant Unix 5.43.
21109 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
21110 (union fooround): Use uintmax_t, not long int.
21111 The rest is a merge from libc:
21112 [defined _LIBC]: Include <shlib-compat.h>.
21113 (_obstack) [defined _LIBC]: Remove after 2.3.4.
21115 * lib/settime.c (settime): Recode to avoid warning with
21118 * lib/strverscmp.c: Convert to UTF-8.
21120 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
21122 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
21125 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
21127 * modules/xalloc-die: New file.
21128 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
21130 * modules/md5 (Files): Add m4/uint32_t.m4.
21131 * modules/sha1: Renamed from modules/sha.
21133 Rename lib/sha.h to lib/sha1.h.
21134 Rename lib/sha.c to lib/sha1.c.
21135 Rename m4/sha.m4 to m4/sha1.m4.
21136 (lib_SOURCES): Likewise.
21137 (configure.ac): Rename gl_SHA to gl_SHA1.
21138 (Include): sha.h -> sha1.h.
21140 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
21142 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
21143 * m4/sha1.m4: Renamed from sha.m4.
21144 (gl_SHA1): Renamed from gl_SHA. All uses changed.
21146 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
21148 * lib/obstack.h (obstack_empty_p):
21149 Don't assume that chunk->contents is suitably aligned.
21150 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
21151 Likewise. Problem reported by Benno in
21152 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
21154 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
21155 readable. This could be improved further but it'd take some work.
21157 2004-08-08 Simon Josefsson <jas@extundo.com>
21159 * modules/xgethostname (Depends-on): Remove exit and error (not
21162 * modules/getpass-gnu: Add getpass.h.
21163 (Depends-on): Add stdbool.
21164 * modules/getpass: Add getpass.h.
21166 2004-08-08 Simon Josefsson <jas@extundo.com>
21168 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
21169 Check getpass declaration.
21171 2004-08-08 Simon Josefsson <jas@extundo.com>
21173 * lib/xgethostname.c: Don't include error.h (not used).
21175 * lib/getpass.h: Add.
21176 * lib/getpass.c: Include getpass.h first.
21178 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
21180 * lib/xalloc-die.c: New file.
21181 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
21183 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
21184 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
21186 (_, N_, xalloc_die): Move to xalloc-die.c.
21187 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
21188 so that we needn't mess with xalloc_msg_memory_exhausted.
21190 * lib/sha1.h: Renamed from sha.h.
21191 (SHA1_H): Renamed from _SHA_H.
21192 (sha1_ctx): Renamed from sha_ctx.
21193 (sha1_init_ctx): Renamed from sha_init_ctx.
21194 (sha1_process_block): Renamed from sha_process_block.
21195 (sha1_process_bytes): Renamed from sha_process_bytes.
21196 (sha1_finish_ctx): Renamed from sha_finish_ctx.
21197 (sha1_read_ctx): Renamed from sha_read_ctx.
21198 (sha1_stream): Renamed from sha_stream.
21199 (sha1_buffer): Renamed from sha_buffer.
21200 * lib/sha1.c: Likewise; renamed from sha.c.
21201 Do not include <sys/types.h>.
21202 Include <stddef.h> rather than <stdlib.h>.
21204 2004-08-08 Bruno Haible <bruno@clisp.org>
21206 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
21207 FILESYSTEM_PREFIX_LEN.
21208 * lib/progreloc.c: Likewise.
21209 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
21211 2004-08-06 Simon Josefsson <jas@extundo.com>
21213 * modules/progname (Depends-on): Don't depend on stdbool.
21215 2004-08-06 Simon Josefsson <jas@extundo.com>
21217 * modules/getsubopt: New file.
21218 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21221 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
21223 More merge from coreutils.
21225 * m4/utimens.m4, m4/utimecmp.m4: New files.
21226 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
21227 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
21228 prereq.m4, sha.m4: Import changes from coreutils.
21230 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
21232 More merge from coreutils.
21233 * modules/raise, modules/readtokens0, modules/utimens:
21234 * modules/utimecmp, module/xnanosleep: New files.
21235 * modules/strftime: Add lib/strftime.h.
21236 Change include from <time.h> to "strftime.h".
21237 * modules/yesno: Add lib/yesno.h.
21238 * modules/backupfile: Remove lib/addext.c.
21239 * modules/euidaccess: Add stat-macros.h.
21240 * modules/canonicalize, modules/euidaccess,
21241 modules/filemode, modules/lchown, modules/makepath,
21242 modules/rmdir, modules/stat: Likewise.
21244 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
21247 * lib/argp-help.c (make_hol, hol_append): Don't assume that
21248 SIZE_MAX is a valid preprocessor constant.
21249 (__argp_basename): Change from "#ifndef _LIBC"
21250 to "#ifndef __argp_short_program_name", so that
21251 we don't compile these functions for tar.
21253 More merges from coreutils.
21254 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
21255 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
21256 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
21257 * lib/addext.c: Remove; no longer needed.
21258 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
21259 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
21260 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
21261 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
21262 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
21263 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
21264 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
21265 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
21266 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
21267 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
21268 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
21269 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
21270 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
21271 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
21272 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
21273 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
21274 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
21275 Import changes from coreutils.
21277 2004-08-05 Simon Josefsson <jas@extundo.com>
21279 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
21281 2004-08-05 Simon Josefsson <jas@extundo.com>
21283 * m4/getsubopt.m4: New file.
21285 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
21287 Merge from coreutils.
21289 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
21290 * m4/getcwd-path-max.m4: New files.
21292 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
21293 FILESYSTEM_PREFIX_LEN ->
21294 FILE_SYSTEM_PREFIX_LEN.
21295 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
21296 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
21297 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
21298 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
21300 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
21301 prerequisite modules now handle the DOS stuff.
21302 Don't check for unistd.h.
21304 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
21306 Merge from coreutils.
21308 * lib/.gdb-history: Remove; this doesn't belong here.
21310 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
21311 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
21312 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
21313 * lib/getcwd.c: New files.
21315 * lib/dirname.h: Include <stdbool.h>.
21316 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
21317 for consistency with POSIX terminology. All uses changed.
21318 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
21319 (strip_trailing_slashes): Use bool for booleans.
21320 * lib/stripslash.c (strip_trailing_slashes): Likewise.
21322 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
21323 sometimes returns a positive errno value even when it succeeds.
21324 (print_errno_message) [!LIBC]: Fall back on strerror if
21325 __strerror_r fails.
21327 * lib/path-concat.c (mempcpy): Don't define if a system header defines
21328 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
21329 (longest_relative_suffix): New function.
21330 (path_concat): Use it. Assume first argument is not NULL.
21331 Port to DOS. Omit redundant separators.
21332 Report an error instead of returning NULL.
21333 Use mempcpy instead of memcpy.
21334 (xpath_concat): Remove: not declared or used.
21336 * lib/same.h: Include <stdbool.h>
21337 (same_name): Return bool, not int.
21338 * lib/same.c (same_name): Likewise.
21339 (errno): Don't declare; we assume C89 or better now.
21341 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
21342 if not already defined.
21344 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
21345 * lib/dup-safer.c (errno): Likewise.
21347 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
21349 Merge from coreutils.
21350 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
21351 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
21352 * modules/path-concat: Don't depend on strdup.
21354 2004-08-03 Simon Josefsson <jas@extundo.com>
21356 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
21357 * lib/progname.h: Don't include stdbool.h.
21359 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
21361 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
21362 * MODULES.html.sh (func_all_modules): Remove fatal.
21364 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
21366 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
21368 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
21370 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
21373 2004-08-02 Simon Josefsson <jas@extundo.com>
21375 * lib/getsubopt.h: New file, with comments from Bruno Haible.
21376 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
21377 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
21379 2004-08-01 Simon Josefsson <jas@extundo.com>
21381 * lib/xgetdomainname.c: Include stdlib.h, for free().
21383 2004-07-19 Bruno Haible <bruno@clisp.org>
21385 * MODULES.html.sh (func_all_modules): Add dummy.
21387 2004-07-16 Simon Josefsson <jas@extundo.com>
21389 * modules/dummy: New file.
21391 2004-07-16 Simon Josefsson <jas@extundo.com>
21393 * lib/dummy.c: New file.
21395 2004-07-16 Bruno Haible <bruno@clisp.org>
21397 * lib/backupfile.h: Add extern "C" for C++.
21398 * lib/closeout.h: Likewise.
21399 * lib/copy-file.h: Likewise.
21400 * lib/findprog.h: Likewise.
21401 * lib/full-write.h: Likewise.
21402 * lib/pathname.h: Likewise.
21403 * lib/progname.h: Likewise.
21404 * lib/stpcpy.h: Likewise.
21405 * lib/stpncpy.h: Likewise.
21406 * lib/strcase.h: Likewise.
21407 * lib/strstr.h: Likewise.
21408 * lib/xalloc.h: Likewise.
21410 * lib/mbswidth.h: Add extern "C" for C++.
21411 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
21413 2004-07-13 Robert Millan <robertmh@gnu.org>
21415 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
21417 2004-07-09 Simon Josefsson <jas@extundo.com>
21419 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
21420 failed without this.)
21422 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
21424 * modules/chown (Files): Add lib/fchown-stub.c, since
21425 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
21427 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
21429 * lib/fchown-stub.c: New file.
21431 2004-06-24 Jim Meyering <jim@meyering.net>
21433 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
21435 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
21437 * modules/argz: Omit "#include".
21439 * MODULES.html.sh (func_all_modules): Add calloc, to match
21440 2004-06-01 addition of calloc module.
21442 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
21444 * m4/argz.m4: New file, which is autoupdated from libtool.
21446 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
21448 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
21451 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
21453 * config/srclist-update: Don't insist on "USA." before the
21454 close-comment, as libtool omits the period and puts the */ on a
21456 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
21457 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
21459 2004-06-22 Gary V. Vaughan <gary@gnu.org>
21461 * modules/argz: New file.
21462 * MODULES.html.sh (func_all_modules): Add argz.
21464 2004-06-12 Jim Meyering <jim@meyering.net>
21465 and Paul Eggert <eggert@cs.ucla.edu>
21467 * modules/hash (Files): Add lib/xalloc.h.
21468 * modules/pipe (Depends-on): Add wait-process.
21469 * modules/stat (Depends-on): Add xalloc.
21470 * modules/userspec (Files): Add lib/userspec.h.
21473 Upgrade from gettext-0.13.
21474 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
21475 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
21476 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
21478 2004-06-10 Jim Meyering <jim@meyering.net>
21480 * lib/calloc.c: New file.
21482 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
21484 * lib/getdate.y (yylex): Allow space between sign and number.
21485 Problem reported by Dan Jacobson.
21487 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
21489 Merge from coreutils CVS.
21491 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
21492 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
21493 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
21494 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
21495 xstrtol.m4: Fix copyright date and/or serial number.
21497 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
21498 See if we need an fchown replacement.
21499 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
21500 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
21501 and use the replacement function if we detect either defect.
21503 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
21506 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
21507 and Jim Meyering <jim@meyering.net>
21509 Merge from coreutils CVS.
21511 * lib/stat-macros.h: New file, with contents from file-type.h
21512 and coreutils' system.h.
21513 * lib/file-type.c: Include "stat-macros.h".
21514 * lib/file-type.h (file_type): Move all macro definitions to new file,
21517 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
21518 Wrap old code with this conditional.
21519 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
21520 function that does not dereference symlinks.
21521 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
21523 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
21524 dependency problems.
21525 (xreadlink): Accept new arg SIZE, for efficiency.
21526 All decls and uses changed.
21527 * lib/xreadlink.h: Include <stddef.h>, for size_t.
21529 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
21530 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
21532 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
21535 2004-06-01 Jim Meyering <jim@meyering.net>
21537 * m4/calloc.m4: New file.
21539 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
21541 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
21542 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
21543 Also, fix a typo in a diagnostic.
21545 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
21547 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
21548 or AC_FUNC_REALLOC.
21550 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
21552 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
21553 macros to be defined.
21554 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
21555 the allocator returns NULL because the requested size is zero.
21557 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
21559 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
21560 var. Add comment explaining why libc still defines it. This
21561 merges the following patch from glibc:
21562 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
21564 2004-05-20 Andreas Schwab <schwab@suse.de>
21566 * m4/free.m4: Replace free if it not known to work, not the other
21569 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
21571 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
21572 present in glibc since revision 1.1 of this file.
21573 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
21574 obstack_alignment_mask, obstack_alloc, obstack_base,
21575 obstack_blank, obstack_blank_fast, obstack_chunk_size,
21576 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
21577 obstack_grow0, obstack_init, obstack_int_grow,
21578 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
21579 obstack_next_free, obstack_object_size, obstack_ptr_grow,
21580 obstack_ptr_grow_fast, obstack_room): Remove declarations of
21581 nonexistent functions.
21583 2004-05-18 Karl Berry <karl@gnu.org>
21585 * config/srclist.txt: break link for vasnprintf.c.
21587 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
21589 Port obstack to the AS/400, where pointers are 16 bytes wide and
21590 you cannot cast an integer to a valid pointer. This patch is
21591 currently waiting to be integrated into glibc; see
21592 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
21594 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
21595 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
21596 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
21597 (struct obstack): temp member is now a union of a pointer and
21598 an integer, instead of an integer. All integer uses changed.
21599 This does not affect the physical layout of struct obstack,
21600 except on hosts (like the AS/400) where the size or alignment of
21601 void * is greater than that of ptrdiff_t.
21602 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
21603 __STDC__)]: Store temporary in pointer member of union, not
21605 * lib/obstack.c: Include <stddef.h>, for offsetof.
21606 (struct fooalign): Remove; it doesn't need a name.
21607 (union fooround): Change double to long double, and add void *.
21608 (DEFAULT_ALIGNMENT): Use offsetof to compute.
21609 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
21610 not a macro. Hence the values are always int; so remove all
21611 casts-to-int in uses.
21613 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
21615 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
21616 we can get this patch merged into glibc.
21618 2004-05-17 Derek R. Price <derek@ximbiot.com>
21619 Paul Eggert <eggert@cs.ucla.edu>
21621 * m4/argp: Depend on alloca.
21623 2004-05-17 Derek R. Price <derek@ximbiot.com>
21624 Paul Eggert <eggert@cs.ucla.edu>
21626 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
21629 2004-05-17 Bruno Haible <bruno@clisp.org>
21631 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
21632 precision that consists of a '.' followed by an empty digit string.
21633 Patch by Tor Lillqvist <tml@iki.fi>.
21635 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
21637 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
21638 for backward compatibility with older code. We need our own
21639 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
21640 it under some other name, and our alloca.h will define it.
21642 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
21643 Derek Price <derek@ximbiot.com>
21645 * lib/alloca.c: Include <alloca.h>, to get our interface.
21646 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
21647 include <alloca.h> first. Use C89 prototype for alloca; this
21648 requires including <stddef.h> for size_t. Use extern "C" if C++.
21649 Use #elif for simplicity, since we can assume C89 now.
21650 Don't try to source the system alloca.h since it will not be found
21651 and to prevent recursively including its replacement.
21652 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
21653 * lib/regex.c: Likewise.
21655 2004-05-16 Derek Price <derek@ximbiot.com>
21656 Paul Eggert <eggert@cs.ucla.edu>
21658 getline cleanup. This changes the getndelim2 API: both order of
21659 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
21662 * lib/getline.c: Don't include stddef.h or stdio.h, since our
21663 interface does that.
21664 (getline): Always use getdelim, so that we don't have two
21665 copies of this code.
21666 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
21668 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
21669 (GETNDELIM2_MAXIMUM): New macro.
21670 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
21671 instead of the old practice of delim2==0. All callers changed.
21672 Return -1 on overflow, instead of returning junk.
21673 Do not set *linesize unless allocation succeeds.
21674 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
21675 that we include sys/types.h.
21676 * lib/getnline.h: Likewise.
21677 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
21678 (getndelim2): Reorder arguments.
21679 * lib/getnline.c (getnline, getndelim):
21680 Don't discard the NMAX argument.
21681 (getnline): Invoke getndelim, to avoid code duplication.
21682 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
21683 of (size_t) -1 by callers of the getnline family.
21685 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
21687 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
21688 Check for gettimeofday.
21689 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
21690 Check for settimeofday, stime.
21692 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
21694 * lib/nanosleep.c (suspended): Change its type from int to
21695 sig_atomic_t volatile.
21696 (first_call): Make it private to rpl_nanosleep, and have it
21697 be zero initially as that's a bit faster.
21698 (my_usleep): Round up fractional times instead of truncating them,
21699 as this is the usual meaning for 'sleep'.
21701 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
21703 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
21704 (ENOSYS): Define if not defined.
21705 (settime): Fall back on stime if it exists and settimeofday fails.
21706 But don't bother with fallbacks if a method fails with errno == EPERM.
21708 2004-05-11 Jim Meyering <jim@meyering.net>
21710 Prior to this change, the save_cwd caller required read access to the
21711 current directory on most systems (ones with the fchdir function).
21713 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
21714 fails, try write-only, and finally, resort to using xgetcwd.
21716 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
21718 * lib/obstack.c, obstack.h: Import changes from libc.
21720 2004-04-28 Bruno Haible <bruno@clisp.org>
21722 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
21723 also implicitly appends .exe to executables.
21724 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
21725 accepts Windows pathnames.
21726 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
21727 Treat Cygwin like Windows, since it now accepts Windows pathnames.
21728 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
21729 Treat Cygwin like Windows, since it now accepts Windows pathnames.
21730 Reported by Derek Robert Price <derek@ximbiot.com>.
21732 2004-04-21 Karl Berry <karl@gnu.org>
21734 * config/srclist.txt (localcharset.c): break sync.
21736 2004-04-20 Paul Eggert <eggert@twinsun.com>
21738 * m4/host-os.m4: Add a copyright notice.
21740 2004-04-20 Jim Meyering <jim@meyering.net>
21742 Change UTILS_ to gl_ in AC_DEFINE'd names.
21743 Change utils_- and jm_-prefixed variables, too.
21744 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
21745 UTILS_FUNC_MKDIR_TRAILING_SLASH.
21746 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
21748 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
21749 Don't emit trailing blanks.
21750 Also rename jm_-prefixed variables to have gl_ prefix.
21752 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
21753 Also rename jm_-prefixed variables to have gl_ prefix.
21755 * m4/jm-macros.m4: Reflect the renamings.
21756 * m4/prereq.m4: Likewise.
21758 2004-04-20 Jim Meyering <jim@meyering.net>
21760 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
21763 2004-04-20 Jim Meyering <jim@meyering.net>
21764 Bruno Haible <bruno@clisp.org>
21766 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
21767 memory when realloc fails.
21769 2004-04-19 Jim Meyering <jim@meyering.net>
21771 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
21772 now that readutmp.c may call `free (0)'.
21774 2004-04-19 Bruno Haible <bruno@clisp.org>
21776 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
21777 * m4/inttypes_h.m4: Likewise.
21778 * m4/stdint_h.m4: Likewise.
21779 * m4/intmax_t.m4: Likewise.
21780 * m4/uintmax_t.m4: Likewise.
21782 2004-04-18 Jim Meyering <jim@meyering.net>
21784 * m4/prereq.m4: Don't forbid jm_ prefix.
21786 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
21787 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
21788 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
21789 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
21790 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
21791 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
21792 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
21793 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
21794 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
21795 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
21796 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
21797 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
21798 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
21799 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
21800 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
21801 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
21802 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
21803 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
21804 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
21806 2004-04-18 Jim Meyering <jim@meyering.net>
21808 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
21809 failure, don't leak memory and do call END_UTMP_ENT.
21811 2004-04-16 Jim Meyering <jim@meyering.net>
21813 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
21814 coreutils' stat program.
21815 (gl_PREREQ): Don't require jm_PREREQ_STAT.
21817 2004-04-11 Paul Eggert <eggert@twinsun.com>
21819 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
21821 (CHAR_BIT): Remove, since we assume C89.
21822 Include <stdint.h> if available, as per current Autoconf CVS advice.
21824 2004-03-31 Jim Meyering <jim@meyering.net>
21826 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
21827 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
21828 * m4/xalloc.m4: Likewise.
21830 2004-03-30 Paul Eggert <eggert@twinsun.com>
21832 Merge from coreutils.
21834 * m4/inttostr.m4: New file.
21835 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
21836 Require AM_STDBOOL_H and gl_TIMESPEC instead.
21837 Require gl_CLOCK_TIME.
21838 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
21840 2004-03-30 Paul Eggert <eggert@twinsun.com>
21842 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
21843 not bool, to be more consistent with Unix conventions.
21844 Suggested by Bruno Haible.
21846 Merge from coreutils.
21848 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
21849 * lib/umaxtostr.c: New files.
21851 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
21852 the usual <time.h> dance.
21853 (get_date): Change signature to support fractional time stamps.
21854 All callers changed.
21855 * lib/getdate.y: Include "getdate.h" first, as we can now
21856 assume C89 and don't need to worry about 'const'.
21857 Similarly, include "unlocked-io.h" near start, not in middle.
21858 Include <limits.h>.
21859 (textint.value): Use long int rather than int.
21860 (textint.digits): Use size_t rather than int.
21861 (BILLION, LOG10_BILLION): New constants.
21862 (parser_control): New member rel_ns. Members day_ordinal,
21863 time_zone, month, day, hour, minutes, rel_year, rel_month,
21864 rel_day, rel_hour, rel_minutes, rel_seconds
21865 are now long int, not int. Member seconds is now struct timespec,
21866 not int. New member timespec_seen. Members dates_seen, days_seen,
21867 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
21869 (%union.intval): Now long int, not int.
21870 New member timespec.
21871 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
21872 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
21873 (spec): Now is a timespec or an item list.
21874 (timespec, items): New nonterminals.
21875 (time, rel, relunit, number, get_date):
21876 Add support for fractional seconds.
21877 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
21878 (gmtime, localtime, mktime): Remove decls; not needed with C89.
21879 (to_hour): First arg is now long int, not int.
21880 (to_year): Returns long int, not int.
21881 Don't treat year -70 like 70.
21882 (tm_diff): Returns long int, not int.
21883 (lookup_word): Use bool instead of int when appropriate.
21884 (yylex): Use size_t for count, not int.
21885 Detect overflow when parsing large integer constants.
21886 Add support for fractions.
21887 (get_date): Make pointers 'const' if possible.
21888 Use more-portable code to detect integer overflow.
21889 (main) [TEST]: Adjust to above changes. Test for localtime failure.
21890 Don't use ctime; it's not reliable if the year has >4 digits.
21892 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
21893 This is for compatibility with BSD.
21895 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
21896 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
21897 From coreutils' system.h.
21899 * lib/userspec.c: Don't include "posixver.h".
21900 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
21901 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
21902 compatible extension. Simplify code by removing a boolean int
21903 that was always nonzero if a string was nonnull.
21905 2004-03-30 Jim Meyering <jim@meyering.net>
21907 Merge from coreutils.
21909 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
21910 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
21911 on some systems one must include <grp.h> before it.
21912 Reported by Christian Krackowizer.
21914 2004-03-30 Jim Meyering <jim@meyering.net>
21916 Merge from coreutils.
21918 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
21920 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
21921 an empty input stream.
21923 * lib/readtokens.c: Include <stdbool.h>.
21924 (readtoken): Use `size_t' rather than int/long.
21925 All callers adjusted.
21926 Use `bool' rather than `int' where appropriate.
21927 Use memset rather than an explicit loop.
21928 Use x2nrealloc rather than xrealloc.
21929 Allow the use of `\0' as a delimiter.
21930 (readtokens): Likewise.
21931 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
21933 2004-03-30 Jim Meyering <jim@meyering.net>
21935 * m4/realloc.m4: Remove file, since now it does no more than
21936 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
21937 the `configure.ac' section of module/realloc.
21938 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
21940 2004-03-30 Bruno Haible <bruno@clisp.org>
21942 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
21945 2004-03-29 Paul Eggert <eggert@twinsun.com>
21947 Merge changes to getloadavg.c from coreutils and Emacs.
21949 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
21950 Define to an expression, not to the empty string.
21951 Include cloexec.h and xalloc.h.
21952 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
21953 Use set_cloexec_flag rather than rolling our own.
21954 * lib/cloexec.c, lib/cloexec.h: New files.
21956 2004-03-29 Paul Eggert <eggert@twinsun.com>
21958 * m4/cloexec.m4: New file.
21960 2004-03-18 Paul Eggert <eggert@twinsun.com>
21962 * lib/getopt.h: Sync with libc CVS.
21964 2004-03-18 Paul Eggert <eggert@twinsun.com>
21965 Bruno Haible <bruno@clisp.org>
21967 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
21970 2004-03-18 Paul Eggert <eggert@twinsun.com>
21971 Bruno Haible <bruno@clisp.org>
21973 * lib/mbswidth.h: Include <wchar.h> only if
21974 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
21976 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
21978 2004-03-09 Paul Eggert <eggert@twinsun.com>
21980 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
21981 Sync with libc CVS.
21982 * lib/getopt_int.h: New file, also synced from libc.
21984 2004-03-09 Paul Eggert <eggert@twinsun.com>
21986 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
21987 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
21988 Bring back getopt.c, getopt.h, getopt1.c.
21990 2004-03-07 Paul Eggert <eggert@twinsun.com>
21992 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
21993 All uses changed. Check for sa_sigaction member; this fixes
21994 a bug first reported by Jason Andrade in
21995 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
21997 2004-03-07 Paul Eggert <eggert@twinsun.com>
21999 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
22000 '#if' expressions. Unlike the code it replaces, it does not
22001 depend on (defined _SC_PAGESIZE). However, it does depend on
22002 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
22003 first reported by Jason Andrade in
22004 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22006 2004-02-25 Simon Josefsson <jas@extundo.com>
22008 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
22010 2004-02-25 Simon Josefsson <jas@extundo.com>
22012 * lib/strdup.h: New file.
22013 * lib/strdup.c: Include it.
22014 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
22015 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
22017 2004-02-23 Karl Berry <karl@gnu.org>
22019 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
22020 (from fencepost.gnu.org:/gd/gnuorg).
22022 2004-02-23 Karl Berry <karl@gnu.org>
22024 * config/srclistvars.sh (GNUORG) [karl]: redefine.
22025 * config/srclist.txt: add maintain/standards documents.
22027 2004-02-18 Bruno Haible <bruno@clisp.org>
22029 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
22030 Reported by Derek Robert Price <derek@ximbiot.com>.
22032 2004-02-16 Karl Berry <karl@gnu.org>
22034 * config/mkinstalldirs, install-sh: update from automake.
22036 2004-02-06 Karl Berry <karl@gnu.org>
22038 * m4/po.m4: update from gettext 0.14.1.
22040 2004-02-06 Karl Berry <karl@gnu.org>
22042 * lib/config.charset: update from gettext 0.14.1.
22044 2004-02-05 Paul Eggert <eggert@twinsun.com>
22046 Add comments and code, prompted by suggestions from Bruno Haible
22048 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
22049 describing the enum quoting_style values.
22050 * lib/quotearg.c (quotearg_alloc): New function.
22051 (quotearg_buffer_restyled): Treat lone { and } as special.
22052 Treat = as special. Work around bug with older shells
22053 that "see" a '\' that is really the 2nd byte of a multibyte char.
22054 Quote empty string with shell_quoting_style.
22056 2004-02-03 Bruno Haible <bruno@clisp.org>
22058 * m4/pipe.m4: New file, from GNU gettext.
22060 2004-02-03 Bruno Haible <bruno@clisp.org>
22062 * lib/pipe.h: New file, from GNU gettext.
22063 * lib/pipe.c: New file, from GNU gettext.
22065 2004-01-27 Bruno Haible <bruno@clisp.org>
22067 * m4/execute.m4: New file, from GNU gettext.
22069 2004-01-27 Bruno Haible <bruno@clisp.org>
22071 * lib/execute.h: New file, from GNU gettext.
22072 * lib/execute.c: New file, from GNU gettext.
22073 * lib/w32spawn.h: New file, from GNU gettext.
22075 2004-01-24 Paul Eggert <eggert@twinsun.com>
22077 Merge from diffutils.
22079 * lib/file-type.c (file_type): Add typed memory objects.
22080 * lib/file-type.h (S_TYPEISTMO): New macro.
22082 * lib/c-stack.h (c_stack_action): Remove argv argument.
22083 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
22084 (die): Don't calculate message unless segv_action returns.
22085 (get_stack_location, min_address_from_argv, max_address_from_argv,
22086 volatile stack_base, volatile_stack_size): Remove.
22087 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
22088 that every segmentation violation is a stack overflow. (Ouch!)
22089 See Debian bug 136249 (still outstanding) for more info about why
22090 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
22092 2004-01-24 Paul Eggert <eggert@twinsun.com>
22094 Exit-status fix from coreutils.
22096 Use exit_failure consistently in place of EXIT_FAILURE,
22097 so that program exit statuses are consistent on failure.
22099 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
22100 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
22101 * lib/argmatch.h: Comment fix to match the above.
22102 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
22103 Now a macro referring to exit_failure, instead of a separate
22104 variable. Include "exitfail.h" to get it.
22105 * lib/xstrtol.h: Include "exitfail.h".
22106 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
22108 * lib/long-options.c (parse_long_options): Use prototype
22109 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
22112 2004-01-21 Jim Meyering <jim@meyering.net>
22114 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
22115 so as not to conflict with a different-sized __mktime_internal
22116 function in GNU libc.
22117 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
22118 Problem building statically-linked `ls' reported by Michael Brunnbauer.
22120 2004-01-20 Karl Berry <karl@gnu.org>
22122 * config/config.guess: update from config.
22124 * config/srclistvars.sh: GNUWWWLICENSES for karl.
22126 2004-01-20 Bruno Haible <bruno@clisp.org>
22128 Safer stack allocation.
22129 * lib/setenv.c: Include allocsa.h.
22130 (alloca): Remove fallback definition.
22131 (freea): Remove macro.
22132 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
22135 2004-01-20 Bruno Haible <bruno@clisp.org>
22137 * m4/eealloc.m4: New file, from GNU gettext.
22139 2004-01-20 Bruno Haible <bruno@clisp.org>
22141 * m4/allocsa.m4: New file, from GNU gettext.
22143 2004-01-20 Bruno Haible <bruno@clisp.org>
22145 * lib/xallocsa.h: New file, from GNU gettext.
22146 * lib/xallocsa.c: New file, from GNU gettext.
22148 2004-01-20 Bruno Haible <bruno@clisp.org>
22150 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
22152 2004-01-20 Bruno Haible <bruno@clisp.org>
22154 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
22155 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
22158 2004-01-20 Bruno Haible <bruno@clisp.org>
22160 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
22163 2004-01-20 Bruno Haible <bruno@clisp.org>
22165 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
22167 2004-01-20 Bruno Haible <bruno@clisp.org>
22169 * lib/eealloc.h: New file.
22171 2004-01-20 Bruno Haible <bruno@clisp.org>
22173 * lib/binary-io.h: Avoid warnings on Cygwin.
22175 2004-01-20 Bruno Haible <bruno@clisp.org>
22177 * lib/allocsa.h: New file, from GNU gettext.
22178 * lib/allocsa.c: New file, from GNU gettext.
22180 2004-01-18 Karl Berry <karl@gnu.org>
22182 * doc/gpl.texi, doc/lgpl.texi: new files.
22184 2004-01-18 Karl Berry <karl@gnu.org>
22186 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
22187 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
22189 2004-01-15 Paul Eggert <eggert@twinsun.com>
22191 Merge from coreutils.
22193 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
22194 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
22195 (gl_DEFAULT_POSIX2_VERSION): Move
22196 the documentation from 'configure' into 'config.hin',
22197 so that 'configure --help' isn't burdened by it and
22198 we don't have to worry about its formatting there.
22199 Reword the documentation so that it's more succinct
22200 and can be run together into a single paragraph.
22201 * m4/same.m4 (gl_SAME): Check for pathconf.
22203 2004-01-15 Paul Eggert <eggert@twinsun.com>
22205 Merge from coreutils.
22207 * lib/posixver.c: Include posixver.h.
22209 * lib/same.c: Include <stdbool.h>, <limits.h>.
22210 (_POSIX_NAME_MAX): Define if not defined.
22212 (same_name): If file names are silently truncated, report
22213 that the file names are the same if they are the same after
22214 the silent truncation.
22216 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
22217 conversion function.
22218 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
22219 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
22222 2004-01-15 Jim Meyering <jim@meyering.net>
22224 Merge from coreutils.
22226 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
22227 if no library is required.
22228 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
22229 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
22230 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
22231 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
22232 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
22233 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
22234 value, $ac_cv_search_crypt, if it's "none required".
22235 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
22236 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
22237 not gl_FUNC_GETLOADAVG.
22238 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
22239 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
22241 2004-01-15 Jim Meyering <jim@meyering.net>
22243 Merge from coreutils.
22245 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
22246 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
22247 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
22249 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
22250 optional configure-time default.
22252 * lib/version-etc.c (version_etc_copyright): Update copyright date.
22254 * lib/xreadlink.c (xreadlink): Correct outdated comment.
22256 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
22258 Merge from coreutils.
22260 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
22261 value, $ac_cv_search_nanosleep, if it's "none required".
22263 2004-01-14 Paul Eggert <eggert@twinsun.com>
22265 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
22266 with like-named macro in fnmatch.c.
22267 (EXT): Use an internal constant instead.
22269 Merge fnmatch patches from glibc.
22270 * lib/fnmatch.c (mbsinit): Remove define.
22271 Add libc_hidden_ver (__fnmatch, fnmatch).
22272 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
22273 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
22275 2004-01-14 Karl Berry <karl@gnu.org>
22277 * config/install-sh: update from automake.
22279 2004-01-13 Karl Berry <karl@gnu.org>
22281 * config/install-sh: update from automake.
22283 2004-01-09 Karl Berry <karl@gnu.org>
22285 * config/install-sh: update from automake.
22287 2004-01-05 Karl Berry <karl@gnu.org>
22289 * config/config.{sub,guess}: update from config.
22291 2003-12-31 Karl Berry <karl@gnu.org>
22293 * config/depcomp: update from automake.
22295 2003-12-14 Karl Berry <karl@gnu.org>
22297 * lib/config.charset: update from gettext-runtime.
22299 2003-12-03 Paul Eggert <eggert@twinsun.com>
22301 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
22302 Bug reported by Alfred M. Szmidt.
22304 2003-12-03 Bruno Haible <bruno@clisp.org>
22306 * m4/gettext.m4: Upgrade from gettext-0.13.
22307 * m4/po.m4: Upgrade from gettext-0.13.
22308 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
22309 * m4/intmax.m4: New file, from gettext-0.13.
22310 * m4/printf-posix.m4: New file, from gettext-0.13.
22312 2003-11-29 Karl Berry <karl@gnu.org>
22314 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
22316 2003-11-25 Paul Eggert <eggert@twinsun.com>
22317 Bruno Haible <bruno@clisp.org>
22319 * lib/printf-parse.h: Don't include sys/types.h.
22320 (ARG_NONE): New macro.
22321 (char_directive): Change type of *arg_index fields to size_t.
22322 * lib/printf-parse.c: Don't include sys/types.h.
22323 (SSIZE_MAX): Remove macro.
22324 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
22325 Remove unnecessary overflow check.
22326 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
22329 2003-11-25 Bruno Haible <bruno@clisp.org>
22331 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
22333 2003-11-25 Bruno Haible <bruno@clisp.org>
22335 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
22338 2003-11-24 Paul Eggert <eggert@twinsun.com>
22340 * modules/alloca: Remove dependency on xalloc.
22342 2003-11-24 Paul Eggert <eggert@twinsun.com>
22344 * lib/alloca.c: Remove dependency on xalloc module.
22345 (xalloc_die): Remove.
22346 (memory_full) [!defined emacs]: New macro.
22347 [!defined emacs]: Don't include xalloc.h.
22348 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
22349 address arithmetic overflows. Change datatypes a bit to avoid
22352 2003-11-22 Jim Meyering <jim@meyering.net>
22354 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
22357 2003-11-21 Karl Berry <karl@gnu.org>
22359 * config/config.{sub,guess}: update from config.
22361 2003-11-18 Karl Berry <karl@gnu.org>
22363 * config/config.{sub,guess}: update from config.
22365 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
22367 2003-11-17 Paul Eggert <eggert@twinsun.com>
22369 * README: Mention that S+T cannot overflow if S is the size of
22370 an existing object and T is sufficiently small.
22372 2003-11-17 Jim Meyering <jim@meyering.net>
22374 On systems without utime and without a utimes function capable of
22375 dealing with a NULL struct utimbuf* argument, this utime replacement
22376 could -- in unusual circumstances -- leak a file descriptor.
22377 * lib/utime.c: Include <unistd.h> and <errno.h>.
22378 (utime_null): Be sure to close `fd' and to preserve errno.
22379 Reported by Geoff Collyer via Arnold Robbins.
22381 2003-11-17 Bruno Haible <bruno@clisp.org>
22383 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
22384 (Depends-on): Add xsize.
22386 2003-11-17 Bruno Haible <bruno@clisp.org>
22388 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
22390 2003-11-17 Bruno Haible <bruno@clisp.org>
22392 * lib/vasnprintf.c (alloca): Remove fallback definition.
22393 (freea): Remove definition.
22394 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
22395 Reported by Paul Eggert.
22397 2003-11-16 Paul Eggert <eggert@twinsun.com>
22398 Bruno Haible <bruno@clisp.org>
22400 Protect against address arithmetic overflow.
22401 * lib/printf-args.h: Include stddef.h.
22402 (arguments): Change type of field 'count' to size_t.
22403 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
22404 'unsigned int' where appropriate.
22405 * lib/printf-parse.h: Include sys/types.h.
22406 (char_directive): Change type of *arg_index fields to ssize_t.
22407 (char_directives): Change type of fields 'count', max_*_length to
22409 * lib/printf-parse.c: Include sys/types.h and xsize.h.
22410 (SSIZE_MAX): Define fallback value.
22411 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
22412 instead of 'int' where appropriate. Check a_allocated, d_allocated
22413 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
22414 * lib/vasnprintf.c: Include xsize.h.
22415 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
22416 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
22417 overflow. Avoid wraparound when converting a width or precision from
22420 2003-11-16 Bruno Haible <bruno@clisp.org>
22422 Update from GNU gettext.
22423 * lib/printf-parse.c: Generalize to it can be compiled for wide
22425 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
22426 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
22427 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
22428 SNPRINTF): New macros.
22429 Don't include <alloca.h> if the file is used inside libintl.
22430 (local_wcslen): New function, for Solaris 2.5.1.
22431 (VASNPRINTF): Use it instead of wcslen.
22433 2003-11-16 Bruno Haible <bruno@clisp.org>
22435 * lib/xsize.h (xmax): New function.
22436 (xsum, xsum3, xsum4): Declare as "pure" functions.
22438 2003-11-12 Paul Eggert <eggert@twinsun.com>
22440 * modules/xalloc (Files): Undo latest change, since xalloc.h
22441 no longer needs SIZE_MAX or PTRDIFF_MAX.
22443 2003-11-12 Paul Eggert <eggert@twinsun.com>
22445 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
22448 2003-11-12 Paul Eggert <eggert@twinsun.com>
22450 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
22451 "return", to pacify some unknown compiler. Problem reported
22452 by Joerg Schilling.
22454 2003-11-12 Paul Eggert <eggert@twinsun.com>
22456 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
22457 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
22458 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
22459 heuristic is just as accurate as far as we know, and it removes a
22460 dependency on size_max.m4 and ptrdiff_max.m4.
22462 2003-11-11 Bruno Haible <bruno@clisp.org>
22464 * modules/xsize (Files): Add m4/size_max.m4.
22465 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
22467 2003-11-11 Bruno Haible <bruno@clisp.org>
22469 * m4/size_max.m4: New file.
22470 * m4/ptrdiff_max.m4: New file.
22471 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
22472 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
22473 (gl_XALLOC): Invoke it.
22475 2003-11-11 Bruno Haible <bruno@clisp.org>
22477 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
22478 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
22481 2003-11-10 Paul Eggert <eggert@twinsun.com>
22483 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
22484 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
22485 rejected some allocations of exactly SIZE_MAX - 2 bytes.
22487 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
22488 not (size_t) -1, since it's defined here.
22490 2003-11-09 Karl Berry <karl@gnu.org>
22492 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
22494 2003-11-06 Paul Eggert <eggert@twinsun.com>
22496 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
22497 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
22498 Reject sizes of exactly SIZE_MAX bytes.
22499 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
22500 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
22502 2003-11-05 Bruno Haible <bruno@clisp.org>
22504 * lib/xsize.h: Include limits.h, to avoid a possible collision with
22505 SIZE_MAX defined in <limits.h> on Solaris.
22507 2003-11-04 Jim Meyering <jim@meyering.net>
22509 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
22510 variable names, rather than @VAR@.
22511 * modules/poll: Likewise.
22513 2003-11-04 Bruno Haible <bruno@clisp.org>
22515 * modules/xsize: New file.
22516 * modules/linebreak: Depend on xsize.
22517 * MODULES.html.sh (func_all_modules): Add xsize.
22519 2003-11-04 Bruno Haible <bruno@clisp.org>
22521 * m4/xsize.m4: New file.
22523 2003-11-04 Bruno Haible <bruno@clisp.org>
22525 * lib/xsize.h: New file.
22526 * lib/linebreak.c: Include xsize.h.
22527 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
22528 argument for overflow.
22529 Suggested by Paul Eggert.
22531 2003-11-03 Karl Berry <karl@gnu.org>
22533 * config/config.{guess,sub}: update from config.
22535 2003-11-03 Jim Meyering <jim@meyering.net>
22537 * modules/userspec (lib_SOURCES): Add userspec.h.
22538 (Include): Add "userspec.h".
22539 Improve description.
22541 2003-11-03 Jim Meyering <jim@meyering.net>
22543 * lib/userspec.c: Include "userspec.h".
22544 * lib/userspec.h: New file.
22546 2003-11-03 Bruno Haible <bruno@clisp.org>
22548 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
22550 2003-11-03 Bruno Haible <bruno@clisp.org>
22552 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
22553 available, to avoid (extremely rare) race condition.
22554 Suggested by Paul Eggert.
22556 2003-11-02 Karl Berry <karl@gnu.org>
22558 * config/srclist.txt (vasprintf.c): sync broken, sigh.
22560 2003-10-31 Paul Eggert <eggert@twinsun.com>
22562 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
22563 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
22564 (read_filesystem_list): Set and use me_type_malloced.
22565 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
22566 whatever the type happens to be), for brevity and consistency.
22567 Check for size calculation overflow on Alphas running OSF/1.
22569 2003-10-31 Jim Meyering <jim@meyering.net>
22571 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
22573 * lib/linebuffer.c: Include <string.h> for declaration of memset.
22575 2003-10-30 Paul Eggert <eggert@twinsun.com>
22576 Bruno Haible <bruno@clisp.org>
22578 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
22579 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
22581 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
22583 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
22584 netbsd*-gnu*. Suggested by Robert Millan.
22586 2003-10-29 Paul Eggert <eggert@twinsun.com>
22588 * modules/group-member: Depend on stdbool.
22590 2003-10-29 Paul Eggert <eggert@twinsun.com>
22592 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
22594 2003-10-29 Paul Eggert <eggert@twinsun.com>
22596 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
22597 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
22598 after the 'gnu' in these cases. This fixes some bugs in the
22599 previous change, and is based on suggestions by Robert Millan.
22601 2003-10-29 Paul Eggert <eggert@twinsun.com>
22603 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
22604 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
22606 * lib/quotearg.c (quotearg_n_options): Use it.
22607 * lib/group-member.c: Include <stdbool.h>.
22608 (free_group_info): Arg is now const *; don't free arg.
22609 (get_group_info): Now returns bool and accepts struct group_info *,
22610 rather than returning a malloc'ed struct group_info *.
22611 All uses changed. Check for overflow in internal size calculation.
22613 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
22614 rather than xmalloc/xrealloc.
22615 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
22616 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
22617 conformance bug: the old code used a pointer after freeing the
22618 storage that it addressed.
22619 * lib/hash.c (hash_initialize): Simplify the code by using
22620 xalloc_oversized rather than doing it by hand.
22621 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
22622 the buffer preserved. Use free and xmalloc instead.
22623 * lib/quotearg.c (quotearg_n_options): Likewise.
22624 Use a simpler test for size overflow. Don't use xalloc_oversized
22625 because unsigned int might be wider than size_t (!); this suggests
22626 that we should switch from unsigned int to size_t for slot numbers.
22628 2003-10-28 Paul Eggert <eggert@twinsun.com>
22630 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
22631 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
22632 NetBSD kernels. Requested by Richard Stallman.
22634 2003-10-27 Paul Eggert <eggert@twinsun.com>
22636 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
22637 to allocate the returned structure. Do not allocate a subarray,
22638 as x2nrealloc will do that.
22639 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
22640 instead of xnrealloc.
22641 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
22643 2003-10-27 Bruno Haible <bruno@clisp.org>
22645 * lib/stdbool_.h: Better support for BeOS.
22647 2003-10-26 Paul Eggert <eggert@twinsun.com>
22649 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
22652 2003-10-26 Paul Eggert <eggert@twinsun.com>
22654 * lib/xalloc.h (xalloc_oversized): New static inline function, for
22655 callers that want to do their own size-overflow checking. Include
22656 <stdbool.h>, since xalloc_oversized returns bool.
22657 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
22658 to use xalloc_oversized.
22660 Add two functions x2realloc, x2nrealloc, for programs that grow
22661 arrays dynamically by doubling their sizes.
22662 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
22663 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
22666 Port to C99 semantics for 'inline' of external functions.
22667 Bug reported by Bruno Haible.
22668 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
22669 with the old contents of xnmalloc.
22670 (xnmalloc, xmalloc): Use it.
22671 (xnrealloc_inline): New static inline function,
22672 with the old contents of xnrealloc.
22673 (xnrealloc, xrealloc): Use it.
22675 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
22678 2003-10-26 Karl Berry <karl@gnu.org>
22680 * config/srclist.txt (COPYING.DOC): no longer available from
22681 /gd/gnuorg; don't know where the ultimate source is.
22683 2003-10-25 Paul Eggert <eggert@twinsun.com>
22685 Fix several address-calculation bugs in the hash modules,
22686 plus some minor code cleanup.
22688 * lib/hash.h: Include <stdbool.h>, for bool.
22689 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
22690 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
22691 hash_get_n_entries, hash_get_max_bucket_length,
22692 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
22693 hash_rehash): Use size_t rather than unsigned.
22694 * lib/hash.c (struct hash_table, hash_get_n_buckets,
22695 hash_get_n_buckets_used, hash_get_n_entries,
22696 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
22697 hash_get_entries, hash_do_for_each, hash_string, is_prime,
22698 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
22700 (SIZE_MAX): Define if not defined.
22701 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
22702 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
22704 Use const * when possible.
22705 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
22706 (check_tuning): Fix bug: if tuning parameters were very close to
22707 0 or 1, rounding errors could have caused subscript violations.
22708 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
22709 (hash_initialize): Add 'fail:' label
22710 to free table and return NULL, and use it to simplify code.
22711 Use calloc rather than clearing the storage ourself.
22712 (hash_initialize, hash_rehash): Check for arithmetic overflow in
22713 buffer size calculations.
22714 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
22715 Include <stddef.h>, for size_t.
22716 * lib/hash-pjw.c (hash_pjw): Likewise.
22717 Switch to method described by Bruno Haible.
22718 Include <limits.h>, for CHAR_BIT.
22719 (SIZE_BITS): New macro.
22721 2003-10-23 Paul Eggert <eggert@twinsun.com>
22723 * m4/getline.m4 (AM_FUNC_GETLINE):
22724 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
22725 hosts. Problem reported by Derek Robert Price in
22726 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
22727 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
22728 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
22730 2003-10-21 Paul Eggert <eggert@twinsun.com>
22732 * lib/getndelim2.c (getndelim2): When size calculation overflows,
22733 ceiling the allocation at NMAX bytes rather than silently
22734 discarding input bytes before NMAX is reached. This makes
22735 a difference only if NMAX exceeds SIZE_MAX / 2.
22737 * lib/obstack.c: Merge from glibc.
22738 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
22739 Add libc_hidden_def (_obstack_newchunk).
22740 (_obstack_free) [! defined _LIBC]: Remove.
22741 [defined _LIBC]: Make a strong alias from obstack_free, rather than
22742 a clone of the function body.
22743 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
22744 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
22746 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
22748 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
22751 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
22752 (obstack_ptr_grow_fast, obstack_int_grow_fast):
22753 Don't use lvalue casts, as GCC plans to remove support for them
22754 in GCC 3.5. Reported by Joseph S. Myers. This bug
22755 was also present in the non-GCC version, indicating that this
22756 code had always been buggy and had never been widely used.
22757 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
22758 Use the fast variant of each macro, rather than copying the
22759 definiens of the fast variant; that way, we'll be more likely to
22760 catch future bugs in the fast variants.
22762 2003-10-20 Bruno Haible <bruno@clisp.org>
22764 * modules/wait-process: New file.
22765 * MODULES.html.sh (func_all_modules): Add wait-process.
22767 2003-10-20 Bruno Haible <bruno@clisp.org>
22769 * m4/wait-process.m4: New file.
22771 2003-10-20 Bruno Haible <bruno@clisp.org>
22773 * lib/wait-process.h: New file, from GNU gettext.
22774 * lib/wait-process.c: New file, from GNU gettext.
22776 2003-10-19 Jim Meyering <jim@meyering.net>
22778 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
22781 2003-10-18 Karl Berry <karl@gnu.org>
22783 * config/config.guess: update from config.
22785 2003-10-16 Paul Eggert <eggert@twinsun.com>
22787 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
22788 (getgroups): First arg is int, not size_t.
22789 Don't let 'free' mangle errno.
22791 2003-10-16 Paul Eggert <eggert@twinsun.com>
22793 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
22795 2003-10-16 Karl Berry <karl@gnu.org>
22797 * config/config.{guess,sub}: update from config.
22799 2003-10-16 Jim Meyering <jim@meyering.net>
22801 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
22804 2003-10-15 Paul Eggert <eggert@twinsun.com>
22806 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
22807 (SIZE_MAX): Remove.
22808 (new_exclude, add_exclude_file): Initial size no longer needs to
22810 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
22811 our own address arithmetic overflow checking.
22813 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
22814 (fnmatch): Do not alloca more than 2000 wide characters;
22815 instead, use malloc for large buffers.
22816 Check for address arithmetic overflow, and return -1
22817 with errno set to ENOMEM in that case.
22818 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
22819 (NEW_PATTERN): Do not alloca more than 8000 bytes;
22820 instead, return -1. Check for address arithmetic overflow.
22822 2003-10-14 Paul Eggert <eggert@twinsun.com>
22824 Handle invalid suffixes and overflow independently, so that
22825 callers can treat them independently as needed. Fix some bugs in
22826 suffix handling, e.g., "100k@" was not diagnosed as an invalid
22827 suffix for a human-readable blocksize. The major caller-visible
22828 change is the addition of a new
22829 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
22830 that both overflow and suffix chars were found.
22832 * lib/human.c (humblock): Don't check separately for invalid suffix
22833 char; that is xstrtoumax's job (now that its bug is fixed).
22834 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
22835 INTMAX_MAX]: New macros.
22836 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
22837 TYPE_MAXIMUM): New macros.
22838 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
22839 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
22840 if overflow occurs, as it's what __strtol does and it's more useful
22842 (__xstrtol): If __strtol reports some error other than ERANGE,
22843 reflect it to the caller as LONGINT_INVALID. If it reports
22844 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
22845 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
22846 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
22848 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
22849 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
22850 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
22851 [defined UINTMAX_MAX]: New macros.
22853 2003-10-14 Bruno Haible <bruno@clisp.org>
22855 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
22857 2003-10-14 Bruno Haible <bruno@clisp.org>
22859 * m4/sig_atomic_t: New file, from GNU gettext.
22860 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
22862 2003-10-14 Bruno Haible <bruno@clisp.org>
22864 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
22865 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
22866 Also use volatile where needed.
22868 2003-10-12 Paul Eggert <eggert@twinsun.com>
22870 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
22871 Change maintainer from Bruno Haible to 'all'.
22873 2003-10-12 Paul Eggert <eggert@twinsun.com>
22875 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
22877 2003-10-12 Paul Eggert <eggert@twinsun.com>
22879 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
22880 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
22881 and define in terms of the other primitives.
22882 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
22883 (SIZE_MAX): Define if not already defined.
22884 (array_size_overflow): New function.
22885 (xalloc_die): Abort instead of exiting if 'error' returns.
22886 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
22887 (xmalloc, xrealloc): Use them.
22888 (xcalloc): Check for address arithmetic overflow.
22889 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
22890 a bit faster than strcpy.
22892 2003-10-10 Simon Josefsson <jas@extundo.com>
22894 * modules/argp (Depends-on): Add restrict and strcase.
22896 2003-10-10 Simon Josefsson <jas@extundo.com>
22898 * m4/argp.m4: Add AC_C_INLINE.
22900 2003-10-08 Paul Eggert <eggert@twinsun.com>
22902 Merge getpass from libc, plus a few fixes.
22904 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
22905 Include <stdbool.h>.
22906 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
22907 __fsetlocking to empty.
22908 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
22909 do include <bits/libc-lock.h>.
22910 Do not include <fcntl.h>; not needed.
22911 [_LIBC]: Include <wchar.h>.
22912 (NOTCANCEL_MODE): New macro.
22913 (flockfile, funlockfile) [_LIBC]: New macros.
22914 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
22915 [!_LIBC]: New macros.
22916 (call_fclose): New function.
22917 (getpass): Use it. Save tty stream separately; this simplifies the
22918 code and makes it more reliable if stdin happens to equal stdout.
22919 Invoke __fsetlocking on tty.
22920 Handle thread cancellation if needed.
22921 Namespace cleanup (use __tcgetattr, __getline).
22922 Use bool for Booleans.
22923 [USE_IN_LIBIO]: Handle wide streams.
22924 [!_LIBC]: Unconditionally do the fseek, since we don't know what
22925 stream might go where.
22927 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
22928 doesn't have to include <stdio.h> before us.
22929 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
22930 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
22931 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
22932 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
22933 if not declared, so that we can use getpass.c code from libc without
22935 (flockfile, ftrylockfile, funlockfile): New macros.
22937 2003-10-08 Paul Eggert <eggert@twinsun.com>
22939 * modules/getpass: Depend on stdbool.
22941 2003-10-08 Paul Eggert <eggert@twinsun.com>
22943 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
22945 2003-10-07 Karl Berry <karl@gnu.org>
22947 * config/config.{guess,sub}: update from config.
22949 2003-10-06 Jim Meyering <jim@meyering.net>
22950 Bruno Haible <bruno@clisp.org>
22952 This lets translators provide better translations for the
22953 "Written by ..." part of --version output.
22954 * lib/version-etc.h: Include stdarg.h.
22955 (version_etc_copyright): Declare as readonly.
22956 (version_etc): Make this function variadic with a NULL-terminated list
22957 of author name strings.
22958 (version_etc_va): New declaration.
22959 * lib/version-etc.c: Include stdarg.h, stdlib.h.
22960 (version_etc_copyright): Declare as readonly.
22961 (version_etc_va): New function. Provide a different translatable string
22962 for each possible number of authors < 10. Abbreviate when there are 10
22964 (version_etc): Make this function variadic. Call version_etc_va.
22965 Suggestion from Gary V. Vaughan.
22967 * lib/long-options.h (parse_long_options): Change prototype: the
22968 authors string is moved to the end and becomes variadic.
22969 * lib/long-options.c: Include stdarg.h.
22970 (parse_long_options): Make this function variadic, too.
22971 Call version_etc_va, not version_etc.
22973 2003-10-06 Bruno Haible <bruno@clisp.org>
22975 * modules/version-etc-2: Remove file.
22976 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
22978 2003-10-06 Bruno Haible <bruno@clisp.org>
22980 * modules/fatal-signal: New file.
22981 * MODULES.html.sh (func_all_modules): Add fatal-signal.
22983 2003-10-06 Bruno Haible <bruno@clisp.org>
22985 * m4/fatal-signal.m4: New file.
22986 * m4/signalblocking.m4: New file, from GNU gettext.
22988 2003-10-06 Bruno Haible <bruno@clisp.org>
22990 * lib/version-etc-2.h: Remove file.
22991 * lib/version-etc-2.c: Remove file.
22993 2003-10-06 Bruno Haible <bruno@clisp.org>
22995 * lib/fatal-signal.h: New file, from GNU gettext.
22996 * lib/fatal-signal.c: New file, from GNU gettext.
22998 2003-10-05 Paul Eggert <eggert@twinsun.com>
23000 * README: Rework advice for preventing empty .o files.
23001 Don't recommend ELIDE constructs. Recommend <stddef.h>,
23004 2003-10-04 Karl Berry <karl@gnu.org>
23006 * lib/argp*: update from libc.
23008 2003-10-04 Karl Berry <karl@gnu.org>
23010 * config/config.{guess,sub}: update from config.
23012 2003-10-02 Bruno Haible <bruno@clisp.org>
23014 * modules/lchown (Include): Add lchown.h.
23015 * modules/time_r (Include): Use "..." syntax.
23016 * modules/xgetdomainname (Include): Add xgetdomainname.h.
23018 2003-10-01 Simon Josefsson <jas@extundo.com>
23020 * MODULES.html.sh (func_all_modules): Move gethostname from section
23021 'based on' to section 'lacking' POSIX:2001.
23023 2003-10-01 Larry Jones <lawrence.jones@eds.com>
23025 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
23026 to output mode on the same stream.
23028 2003-09-29 Paul Eggert <eggert@twinsun.com>
23030 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
23031 Fix arg typo in previous patch.
23033 2003-09-28 Jim Meyering <jim@meyering.net>
23035 * lib/error.c: Correct cpp indentation.
23037 2003-09-27 Paul Eggert <eggert@twinsun.com>
23039 * modules/free: New file.
23041 2003-09-27 Paul Eggert <eggert@twinsun.com>
23043 * m4/free.m4: New file.
23045 2003-09-27 Paul Eggert <eggert@twinsun.com>
23047 * lib/minmax.h (MIN, MAX)
23048 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
23049 Omit the special code that used __typeof__, since we worry that
23050 it could be more trouble than it's worth. See:
23051 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
23052 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
23054 * lib/free.c: New file.
23056 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
23058 Trivial fixes to Makefile.am parts of module listings.
23059 * modules/strstr: Append strstr.h to lib_SOURCES.
23060 * modules/strcase: Likewise, for strcase.h.
23062 2003-09-27 Karl Berry <karl@gnu.org>
23064 * config/mkinstalldirs: update from automake.
23066 2003-09-26 Paul Eggert <eggert@twinsun.com>
23068 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
23069 (error_tail): Do not loop, reallocating temporary buffer, since
23070 the output cannot contain more wide characters than the input
23071 contains bytes, the size must be big enough already. This avoids
23072 one potential size overflow calculation. Check for size overflow
23073 when calculating temporary buffer size. Free temporary buffer
23074 when done, if it was allocated with malloc; this plugs a memory
23075 leak. Remove casts from void * to pointers, that are no longer
23076 needed now that we're assuming C89 or better.
23078 Merge error changes from glibc.
23080 * lib/error.c, error.h: Update copyright notice header to match glibc.
23081 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
23082 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
23083 Disable cancellation while printing error.
23084 * lib/error.h: Prepend __ to parameter names.
23086 2003-09-26 Jim Meyering <jim@meyering.net>
23088 * lib/error.c (error_tail): Move some declarations
23089 into inner scope where the local variables are used.
23091 2003-09-26 Bruno Haible <bruno@clisp.org>
23093 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
23095 Don't define stpncpy through config.h; it's now done through stpncpy.h.
23097 2003-09-26 Bruno Haible <bruno@clisp.org>
23099 * lib/stpncpy.h (gnu_stpncpy): New declaration.
23100 (stpncpy): Define as alias for gnu_stpncpy.
23101 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
23103 2003-09-25 Simon Josefsson <jas@extundo.com>
23105 * lib/xgetdomainname.h: New file.
23106 * lib/xgetdomainname.c: New file.
23108 2003-09-25 Simon Josefsson <jas@extundo.com>
23109 Bruno Haible <bruno@clisp.org>
23111 * modules/getdomainname: New file.
23112 * modules/xgetdomainname: New file.
23113 * MODULES.html.sh (func_all_modules): Add getdomainname,
23116 2003-09-25 Simon Josefsson <jas@extundo.com>
23117 Bruno Haible <bruno@clisp.org>
23119 * m4/getdomainname.m4: New file.
23121 2003-09-25 Simon Josefsson <jas@extundo.com>
23122 Bruno Haible <bruno@clisp.org>
23124 * lib/getdomainname.h: New file.
23125 * lib/getdomainname.c: New file.
23127 2003-09-25 Karl Berry <karl@gnu.org>
23129 * lib/argp-fmtstream.c, argp-help.c: update from libc.
23131 2003-09-25 Karl Berry <karl@gnu.org>
23133 * config/install-sh: update from automake.
23135 2003-09-25 Bruno Haible <bruno@clisp.org>
23137 * modules/version-etc-2: New file, from modules/version-etc with
23139 * MODULES.html.sh (func_all_modules): Add version-etc-2.
23141 2003-09-25 Bruno Haible <bruno@clisp.org>
23143 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
23144 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
23146 2003-09-24 Simon Josefsson <jas@extundo.com>
23148 * modules/xgethostname: Add xgethostname.h.
23150 2003-09-24 Paul Eggert <eggert@twinsun.com>
23152 * lib/linebuffer.c (freebuffer): Don't free the argument, just
23153 the buffer associated with the argument. Bug reported by
23156 2003-09-24 Paul Eggert <eggert@twinsun.com>
23158 * README: Document assumptions that 'int' is at least 32 bits
23159 wide, that integer arithmetic is 2's complement without overflow,
23160 that there are no holes in integer values, that adding sizes of
23161 two nonoverlapping objects can't overflow, and that all-bits-zero
23162 yields scalar zero. Fix spelling and capitalization typos.
23164 2003-09-19 Karl Berry <karl@gnu.org>
23166 * lib/argp.h: update from libc.
23168 2003-09-17 Paul Eggert <eggert@twinsun.com>
23170 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
23171 to avoid spurious warnings like "AC_RUN_IFELSE was called before
23172 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
23174 2003-09-17 Paul Eggert <eggert@twinsun.com>
23176 * gnulib-tool: Use "test -h", not "test -L", for portability
23177 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
23178 (tags_regexp): Remove, since \| doesn't conform to POSIX.
23179 (sed_extract_prog): Issue s commands one-by-one, rather than
23180 using \| in one s command.
23182 2003-09-16 Paul Eggert <eggert@twinsun.com>
23184 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
23185 input error, instead of returning NULL the next time we are called
23186 (and therefore losing track of errno).
23188 2003-09-16 Bruno Haible <bruno@clisp.org>
23190 * gnulib-tool (func_create_testdir): Warn about duplicated
23193 2003-09-15 Paul Eggert <eggert@twinsun.com>
23195 * modules/argmatch, modules/fatal, modules/obstack,
23196 modules/xalloc, modules/xgethostname: Sort dependencies by
23197 importance, not alphabetically.
23199 2003-09-15 Paul Eggert <eggert@twinsun.com>
23201 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
23202 fails, so that the caller gets the proper errno.
23204 * lib/readutmp.c (read_utmp): Likewise.
23205 Check for fstat error. Close stream and free storage
23208 2003-09-14 Karl Berry <karl@gnu.org>
23210 * config/srclist.txt (strdup.c): disable for c89 changes.
23212 2003-09-14 Jim Meyering <jim@meyering.net>
23214 * lib/getloadavg.c: Correct cpp indentation.
23215 * lib/strdup.c: Likewise.
23216 * lib/vasnprintf.c: Likewise.
23218 2003-09-14 Bruno Haible <bruno@clisp.org>
23220 * modules/fwriteerror: New file.
23221 * MODULES.html.sh (func_all_modules): Add fwriteerror.
23223 2003-09-14 Bruno Haible <bruno@clisp.org>
23225 * lib/fwriteerror.h: New file.
23226 * lib/fwriteerror.c: New file.
23228 2003-09-12 Paul Eggert <eggert@twinsun.com>
23230 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
23231 modules/xgethostname, modules/xalloc: Depend on exit.
23233 2003-09-12 Paul Eggert <eggert@twinsun.com>
23235 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
23237 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
23238 and AC_MINIX, too, so that their extensions are available.
23240 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
23241 This macro has been superseded by gl_BACKUPFILE.
23243 More patches to assume C89 or better.
23245 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
23247 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
23249 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
23250 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
23251 Include <string.h>, <stdlib.h> unconditionally.
23252 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
23253 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
23254 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
23255 headers or for string.h.
23256 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
23259 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
23261 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
23262 * m4/userspec.m4 (gl_USERSPEC): Likewise.
23263 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
23264 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
23265 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23266 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
23268 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
23269 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
23270 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
23272 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
23273 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
23274 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
23277 2003-09-12 Paul Eggert <eggert@twinsun.com>
23279 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
23280 * lib/obstack.c [!defined _LIBC]: Likewise.
23281 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
23282 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
23283 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
23285 More changes to assume C89 or better.
23287 * lib/error.c (error_tail): Assume vprintf.
23289 * lib/argmatch.c (getenv): Remove decl.
23290 * lib/progreloc.c (get_full_program_name): Define via prototype.
23291 * lib/setenv.c (clearenv): Likewise.
23292 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
23294 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
23295 (malloc, memcpy): Remove decls.
23296 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
23297 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
23298 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23299 (memcpy): Remove macro.
23300 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
23301 (__P): Remove. All uses removed.
23302 (PTR): Remove. All uses changed to void *.
23303 (CHAR_BIT, NULL): Remove.
23304 (spaces, zeros, memset_space, memset_zero)
23305 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
23307 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
23308 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
23309 Define with prototype.
23310 Remove now-unnecessary prototype decl.
23311 (extra_args_spec): Assume ANSI C. All uses changed.
23312 (extra_args_spec_iso): Remove.
23313 (my_strftime, emacs_strftimeu): Define via prototype.
23314 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
23316 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
23317 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
23318 (strtoul, strtol): Remove decls.
23319 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
23321 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
23322 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
23323 (LOCALE_PARAM_PROTO): New macro.
23324 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
23325 (INTERNAL (strtol), strtol): Define with a prototype.
23326 (PARAMS): Remove. All uses removed.
23327 * lib/tempname.c: Include <string.h> unconditionally.
23328 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
23329 * lib/xgethostname.c (main): Define with a prototype.
23330 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
23331 Include <stdlib.h> unconditionally.
23332 (calloc, malloc, realloc, free): Remove decls.
23333 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
23334 Include <stdlib.h> unconditionally. Sort include file names.
23336 (xstrtod): Define with a prototype.
23337 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
23338 (strtol, strtoul): Remove decls.
23340 2003-09-11 Paul Eggert <eggert@twinsun.com>
23342 More patches to assume C89 or better.
23343 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
23344 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
23345 string.h, memchr, STDC_HEADERS.
23347 2003-09-11 Paul Eggert <eggert@twinsun.com>
23349 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
23350 Include <stdlib.h>, <string.h> unconditionally.
23351 Remove now-unnecessary cast to char *.
23352 * lib/strnlen.c: Include <string.h> unconditionally.
23353 * lib/yesno.c (yesno): Define with a prototype.
23355 2003-09-11 Bruno Haible <bruno@clisp.org>
23357 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
23359 2003-09-10 Jim Meyering <jim@meyering.net>
23361 * lib/error.c: Correct indentation of cpp directives.
23363 2003-09-10 Bruno Haible <bruno@clisp.org>
23365 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
23366 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
23367 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
23368 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
23369 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
23370 <stdlib.h> and <string.h> checks.
23371 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
23372 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
23374 2003-09-10 Bruno Haible <bruno@clisp.org>
23376 * lib/strcspn.c: Include <string.h> unconditionally.
23377 * lib/strpbrk.c: Include <string.h> unconditionally.
23378 * lib/strstr.c: Include <string.h> unconditionally.
23379 * lib/unicodeio.c: Include <string.h> unconditionally.
23380 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
23381 * lib/unsetenv.c: Likewise.
23382 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
23383 * lib/yesno.c: Include <stdlib.h> unconditionally.
23384 (rpmatch): Add prototype.
23386 2003-09-09 Paul Eggert <eggert@twinsun.com>
23388 More patches to assume C89 or better.
23389 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
23390 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
23391 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
23393 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
23395 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
23397 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
23399 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
23400 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
23401 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
23403 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
23404 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
23406 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
23408 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
23409 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
23410 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
23411 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
23412 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
23413 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
23415 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
23416 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
23417 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
23418 C headers, or for string.h.
23419 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
23420 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
23421 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
23422 headers, memory.h, stdlib.h, string.h, strings.h.
23423 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
23424 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
23425 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
23427 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
23428 headers, memory.h, string.h.
23429 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
23430 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
23432 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
23434 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
23435 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
23436 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
23437 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
23438 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
23440 2003-09-09 Paul Eggert <eggert@twinsun.com>
23444 * lib/acosl.c (main): Use a prototype.
23445 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
23448 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
23450 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
23451 (getopt, etopt_long, getopt_long_only, _getopt_internal)
23452 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
23454 * lib/getopt.c (const): Remove macro.
23455 Include <string.h> unconditionally.
23456 (my_index): Remove; all uses changed to strchr.
23457 (strlen): Remove decl.
23458 (exchange): Remove forward decl; no longer needed.
23459 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
23460 Define with prototype.
23461 * lib/getopt1.c (const): Remove macro.
23462 (getopt_long, getopt_long_only, main): Define with prototype.
23464 * lib/getugroups.c: Include <string.h> unconditionally.
23466 * lib/getusershell.c: Include <stdlib.h> unconditionally.
23467 (getusershell, setusershell, endusershell, readname, main):
23468 Define with prototypes.
23470 * lib/group-member.c: Include group-member.h first.
23471 Include <stdlib.h> unconditionally.
23473 * lib/hard-locale.c: Include hard-locale.h first.
23474 Include <stdlib.h>, <string.h> unconditionally.
23476 * lib/hash.c (free, malloc): Remove decls.
23477 Include <stdlib.h> unconditionally.
23479 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
23480 (getenv): Do not declare.
23482 * lib/idcache.c: Include <string.h> unconditionally.
23484 * lib/long-options.c: Include long-options.h first, to test interface.
23485 Include <stdlib.h> unconditionally.
23487 * lib/makepath.c: Include makepath.h first, to test interface.
23488 Include <stdlib.h> and <string.h> unconditionally.
23490 * lib/linebuffer.c: Include <stdlib.h>.
23491 (free): Remove decl.
23493 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
23494 stddef.h. rpl_malloc returns void *, not char *.
23495 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
23498 * lib/md5.h: Include <limits.h> unconditionally.
23499 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
23500 (__P): Remove; all uses removed.
23501 * lib/md5.c: Include "md5.h" first.
23502 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
23503 md5_buffer, md5_process_bytes, md5_process_block):
23504 Define with prototypes.
23505 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
23506 * lib/sha.c: Include "sha.h" first.
23507 Include <stdlib.h>, <string.h> unconditionally.
23509 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
23510 * lib/memcmp.c (__ptr_t): Likewise.
23511 * lib/memrchr.c (__ptr_t): Likewise.
23512 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
23513 Include <string.h> unconditionally.
23514 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
23515 * lib/memchr.c: Include <stdlib.h> unconditionally.
23516 * lib/memchr.c (LONG_MAX): Remove.
23517 * lib/memrchr.c (LONG_MAX): Likewise.
23518 * lib/memchr.c (__memchr): Define via a prototype.
23519 * lib/memrchr.c (__memrchr): Likewise.
23520 * lib/memcmp.c (__P): Remove, and remove all uses.
23521 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
23522 Remove forward decls; no longer needed.
23523 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
23524 Use types required by C89 in prototype.
23526 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
23527 * lib/savedir.c: Likewise.
23528 * lib/mkdir.c (free): Remove decl.
23529 * lib/rmdir.c (rmdir): Define with a prototype.
23530 * lib/savedir.c: Include savedir.h first, to test interface.
23532 * lib/mktime.c (STDC_HEADERS): Remove.
23533 Include <stdlib.h>, <string.h> unconditionally.
23535 * lib/modechange.c: Include <stdlib.h> unconditionally.
23536 (malloc): Remove decl.
23538 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
23539 (free): Remove decl.
23541 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
23542 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
23543 (This type really should be intptr_t, but that's a C99ism.)
23544 (_obstack_memcpy): Remove: all uses changed to memcpy.
23545 Include <string.h> unconditionally.
23546 (struct obstack): Assume __STDC__ for types of members
23547 chunkfun, freefun, extra_arg.
23548 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
23549 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
23550 obstack_begin, obstack_specify_allocation,
23551 obstack_specify_allocation_with_arg, obstack_chunkfun,
23552 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
23553 Remove unprototyped decls and the macros that use them.
23554 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
23555 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
23556 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
23557 (defined __STDC__ && __STDC__)]:
23558 Remove nonprototyped code.
23559 Include <stdlib.h> unconditionally.
23560 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
23561 _obstack_allocated_p, _obstack_free, obstack_free,
23562 _obstack_memory_used, print_and_abort):
23563 Define using prototypes.
23564 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
23565 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
23566 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
23567 obstack_next_free, obstack_object_size, obstack_room) [0]:
23568 Remove unused, unprototyped code.
23570 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
23572 * lib/physmem.c (physmem_total, physmem_available, main): Define
23575 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
23576 (main): Define with a prototype.
23578 * lib/posixver.c (getenv): Remove decl.
23580 * lib/putenv.c (malloc): Returns void *, not char *.
23581 Include <string.h> unconditionally.
23582 (strchr, memcpy, NULL): Do not define.
23584 * lib/readtokens.c: Include readtokens.h first, to test interface.
23585 Include <stdlib.h>, <string.h> unconditionally.
23586 (init_tokenbuffer): Define with a prototype.
23588 * lib/regex.c (PARAMS): Remove. All uses removed.
23589 All uses of _RE_ARGS removed, too.
23590 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
23592 (bzero): Assume memset exists.
23593 (memcmp, memcpy, NULL): Remove.
23594 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
23595 char, or assignments to local vars of type signed char.
23596 (init_syntax_once, PREFIX(extract_number_and_incr),
23597 PREFIX(print_partial_compiled_pattern),
23598 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
23599 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
23600 PREFIX(regex_grow_registers), PREFIX(regex_compile),
23601 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
23602 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
23603 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
23604 wcs_compile_range, byte_compile_range, truncate_wchar,
23605 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
23606 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
23607 count_mbs_length, wcs_re_match_2_internal,
23608 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
23609 PREFIX(alt_match_null_string_p),
23610 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
23611 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
23612 regfree, PREFIX(extract_number)): Define with prototype. Remove
23613 now-unnecessary declaration, if any.
23614 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
23616 Remove now-unnecessary casts among pointer types.
23617 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
23619 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
23620 (free): Remove decl.
23622 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
23624 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
23625 (free): Remove decl.
23627 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
23628 * lib/xgetcwd.c: Likewise.
23630 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
23631 (free): Remove decl.
23633 * lib/strchrnul.c (strchrnul): Define with a prototype.
23634 Fix bug: c_in was not converted to char before searching.
23636 The following changes are not K&R related:
23638 * lib/group-member.h: Include <sys/types.h>, so that this file is
23640 * lib/makepath.h: Likewise.
23642 * lib/getusershell.c (readname, default_index, line_size, readname):
23643 Use size_t, not int, for sizes.
23644 (readname): If the size overflows, report an error instead of
23647 2003-09-09 Paul Eggert <eggert@twinsun.com>
23649 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
23652 2003-09-09 Paul Eggert <eggert@twinsun.com>
23654 * README: New section: portability guidelines.
23656 2003-09-09 Derek Robert Price <derek@ximbiot.com>
23658 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
23661 2003-09-09 Derek Robert Price <derek@ximbiot.com>
23663 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
23665 2003-09-08 Paul Eggert <eggert@twinsun.com>
23667 Assume C89 or better; remove K&R cruft.
23668 A few of these changes were first proposed by Derek Robert Price
23669 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
23671 * lib/addext.c: Include <string.h> unconditionally.
23672 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
23673 Don't declare getenv or malloc.
23675 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
23676 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
23678 (find_stack_direction, alloca): Use prototypes.
23680 * lib/atexit.c (atexit): Define using a prototype.
23682 * lib/basename.c, dirname.c, stripslash.c:
23683 Include <string.h> unconditionally.
23685 * lib/bcopy.c: Include <stddef.h>.
23686 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
23688 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
23690 * lib/error.h (error, error_at_line, error_print_progname)
23691 [! (defined (__STDC__) && __STDC__)]: Remove decls.
23692 * lib/error.c: Include error.h first, to check interface.
23693 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
23694 (VA_START): Remove; all uses changeed to va_start.
23695 (exit, strerror): Remove decls.
23696 (error_print_progname): Prototype uncondionally.
23697 Don't include <errno.h>; no longer needed.
23698 (private_strerror): Remove.
23699 (error_tail): Always define.
23700 (error, error_at_line): Assume C89 or better; always use prototypes.
23701 * lib/fatal.c: Include "fatal.h" first, to test interface.
23702 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
23703 (VA_START): Remove; all uses changed to va_start.
23704 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
23706 (exit): Remove decl.
23707 (fatal): Prototype unconditionally. Assume va_start works.
23708 Abort at end, to pacify gcc.
23710 * lib/euidaccess.c (main): Define with a prototype.
23712 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
23714 * lib/exitfail.c: Include <stdlib.h> unconditionally.
23716 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
23718 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
23719 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
23720 (getenv): Remove decl.
23721 (fnmatch): Define using a prototype.
23722 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
23723 (FCT): Define using a prototype.
23725 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
23727 * lib/gethostname.c: Include <stddef.h>.
23728 (gethostname): Define with prototype. Length is size_t, not int.
23730 2003-09-08 Paul Eggert <eggert@twinsun.com>
23732 Assume C89 or better; remove K&R cruft.
23733 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
23734 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
23735 string.h, getenv, malloc.
23736 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
23738 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
23739 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
23740 do not check for strerror.
23741 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
23742 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
23743 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
23744 do not check for doprnt or vprintf.
23745 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
23746 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
23748 2003-09-08 Paul Eggert <eggert@twinsun.com>
23750 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
23751 getversion.c should have been removed then, but was accidentally
23754 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
23755 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
23757 2003-09-08 Karl Berry <karl@gnu.org>
23759 * config/config.sub, config.guess, srclistvars.sh: update from savannah
23760 config, forget about prep.
23762 * config/depcomp, missing: update from automake.
23764 2003-09-07 Paul Eggert <eggert@twinsun.com>
23766 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
23767 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
23769 2003-09-07 Paul Eggert <eggert@twinsun.com>
23771 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
23772 copy_tm_result. Bug reported by Simon Josefsson in
23773 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
23775 2003-09-06 Paul Eggert <eggert@twinsun.com>
23777 * m4/time_r.m4: New file.
23778 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
23779 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
23780 is. Check for timegm declaration.
23781 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
23782 Do not check for gmtime_r.
23783 Replace mktime if __mktime_internal does not exist and if mktime
23784 hasn't been replaced already.
23786 2003-09-06 Paul Eggert <eggert@twinsun.com>
23788 * lib/time_r.c, lib/time_r.h: New files.
23790 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
23792 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
23793 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
23795 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
23797 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
23798 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
23799 Include <time_r.h>.
23801 * lib/timegm.c: Switch to glibc implementation, with the following
23803 [defined HAVE_CONFIG_H]: Include <config.h>.
23804 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
23805 (__mktime_internal) [!defined _LIBC]: New decl.
23806 (__gmtime_r) [!defined _LIBC]: New macro and function.
23807 (timegm): Use a prototype, since gnulib assumes C89.
23808 Do not bother declaring tmp to be const, as it's not really usefu.
23809 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
23810 (timegm): Declare only if HAVE_DECL_TIMEGM.
23812 2003-09-06 Paul Eggert <eggert@twinsun.com>
23814 * MODULES.html.sh (func_all_modules): Add time_r.
23815 * modules/time_r: New file.
23816 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
23817 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
23819 2003-09-03 Paul Eggert <eggert@twinsun.com>
23821 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
23822 Bug reported by Lute Kamstra in
23823 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
23825 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
23826 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
23827 course with correspondingly smaller numbers for tomorrow and
23828 yesterday. From Tadayoshi Funaba. Originally installed into
23829 sh-utils on 1999-08-07, but the patch got lost (I guess during the
23832 2003-08-31 Simon Josefsson <jas@extundo.com>
23834 * modules/timegm: New file.
23835 * MODULES.html.sh (func_all_modules): Add timegm.
23837 2003-08-31 Simon Josefsson <jas@extundo.com>
23839 * m4/timegm.m4: New file.
23841 2003-08-31 Simon Josefsson <jas@extundo.com>
23843 * lib/timegm.h: New file.
23844 * lib/timegm.c: New file. Based on
23845 wget-1.8.2/src/http.c:mktime_from_utc.
23847 2003-08-31 Karl Berry <karl@gnu.org>
23849 * lib/argp.h: update from libc.
23851 2003-08-28 Bruno Haible <bruno@clisp.org>
23853 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
23854 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
23855 followed by '#define fnmatch fnmatch_posix' gives an error.
23857 2003-08-28 Bruno Haible <bruno@clisp.org>
23859 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
23860 warning on QNX, which defines O_BINARY to 000000.
23862 2003-08-27 Jim Meyering <jim@meyering.net>
23864 * m4/mkstemp.m4: Require that the system mkstemp be able to create
23865 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
23866 would fail after 32. Reported by Danny Levinson. Details here:
23867 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
23869 2003-08-24 Bruno Haible <bruno@clisp.org>
23871 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
23872 MSVC7 <stdio.h> is included later.
23874 2003-08-22 Simon Josefsson <jas@extundo.com>
23876 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
23878 2003-08-20 Karl Berry <karl@gnu.org>
23880 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
23882 2003-08-20 Bruno Haible <bruno@clisp.org>
23884 * modules/progname: New file.
23885 * MODULES.html.sh (func_all_modules): Add progname.
23887 2003-08-20 Bruno Haible <bruno@clisp.org>
23889 * lib/progname.h: New file, from GNU gettext.
23890 * lib/progname.c: New file, from GNU gettext.
23891 * lib/progreloc.c: New file, from GNU gettext.
23893 2003-08-19 Jim Meyering <jim@meyering.net>
23895 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
23896 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
23898 2003-08-19 Bruno Haible <bruno@clisp.org>
23900 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
23903 2003-08-19 Bruno Haible <bruno@clisp.org>
23905 * lib/xstrdup.c: Assume <string.h> exists.
23907 2003-08-18 Paul Eggert <eggert@twinsun.com>
23909 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
23912 2003-08-18 Jim Meyering <jim@meyering.net>
23914 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
23915 * m4/lib-ld.m4: Likewise.
23917 2003-08-18 Jim Meyering <jim@meyering.net>
23919 * lib/setenv.h: Indent nested cpp directive.
23920 * lib/vasnprintf.c: Remove trailing blanks.
23922 2003-08-17 Simon Josefsson <jas@extundo.com>
23924 * modules/xstrndup: New file.
23925 * MODULES.html.sh (func_all_modules): Add xstrndup.
23927 2003-08-17 Simon Josefsson <jas@extundo.com>
23929 * modules/argp: Fix autoconf macro name. Add more dependencies.
23931 2003-08-17 Simon Josefsson <jas@extundo.com>
23933 * m4/xstrndup.m4: New file.
23935 2003-08-17 Simon Josefsson <jas@extundo.com>
23937 * m4/argp.m4: New file.
23939 2003-08-17 Simon Josefsson <jas@extundo.com>
23940 Bruno Haible <bruno@clisp.org>
23942 * lib/xstrndup.h: New file.
23943 * lib/xstrndup.c: New file.
23945 2003-08-17 Bruno Haible <bruno@clisp.org>
23947 * modules/strndup (Files, Include): Add lib/strndup.h.
23949 2003-08-17 Bruno Haible <bruno@clisp.org>
23951 * modules/euidaccess (Files): Add lib/euidaccess.h.
23953 2003-08-17 Bruno Haible <bruno@clisp.org>
23955 * lib/strndup.h: New file.
23957 2003-08-17 Bruno Haible <bruno@clisp.org>
23959 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
23960 like AC_GNU_SOURCE.
23961 * modules/extensions (configure.ac): Comment out the invocation of
23962 gl_USE_SYSTEM_EXTENSIONS.
23964 2003-08-16 Paul Eggert <eggert@twinsun.com>
23966 Merges from coreutils, etc.
23967 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
23968 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
23969 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
23971 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
23972 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
23974 2003-08-16 Paul Eggert <eggert@twinsun.com>
23976 Document merge from coreutils.
23977 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
23978 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
23979 * modules/utime: Add m4/utimes-null.m4.
23981 2003-08-16 Paul Eggert <eggert@twinsun.com>
23983 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
23984 space, undoing this 2003-08-12 change:
23985 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
23987 2003-08-16 Paul Eggert <eggert@twinsun.com>
23989 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
23990 strtoul.c from libc, undoing this 2003-08-12 change:
23991 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
23993 2003-08-16 Jim Meyering <jim@meyering.net>
23995 Merges from coreutils.
23996 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
23997 prefix. Adjust cache variables similarly. Create 500 rather than
23998 just 300 files, to exercise bug on Darwin6.5, too.
23999 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
24001 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
24002 AM_SYS_POSIX_TERMIOS.
24003 Reported by mkc@mathdogs.com.
24004 Also change use of $am_cv_sys_posix_termios
24005 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
24006 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
24007 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
24008 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
24009 in /proc/mounts until it finds one with matching device number. This
24010 is unnecessary when the FILE argument *is* a mount point. No stat call
24011 is necessary in that case. So, disable the statvfs-testing code on
24012 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
24013 as RedHat bug# 84846.
24014 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24015 to 1MB, so as not to render systems with no stack size limit (e.g.,
24016 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
24017 Include <unistd.h>. On some systems,
24018 it is required for the definition of _SC_PAGESIZE.
24020 2003-08-16 Jim Meyering <jim@meyering.net>
24022 Merge from coreutils.
24023 * lib/xstrtoimax.c: #else #if -> #elif.
24024 * lib/xstrtoumax.c: Likewise.
24026 2003-08-16 Jim Meyering <jim@meyering.net>
24028 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
24029 * m4/utimes.m4: Removed.
24030 * m4/utimes-null.m4: Renamed from utimes.m4.
24032 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24033 to 1MB, so as not to render systems with no stack size limit (e.g.,
24034 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
24035 Include <unistd.h>. On some systems,
24036 it is required for the definition of _SC_PAGESIZE.
24038 2003-08-16 Jim Meyering <jim@meyering.net>
24039 and Paul Eggert <eggert@cs.ucla.edu>
24041 Merges from coreutils, etc.
24043 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
24044 using the latest version from cvs. This avoids problems with #line
24045 directives using a vendor (Sun) compiler.
24046 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
24047 Don't set GETGROUPS_LIB here; now it's
24048 done via getgroups.m4's wrapper function.
24049 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
24050 rather than just in sh-util/configure.in, so that the
24051 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
24053 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
24054 AC_FUNC_GETLOADAVG where to find getloadavg.c.
24055 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
24056 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
24057 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
24058 Remove code that is now done by the newly-required macros.
24059 Append $(EXEEXT) to DF_PROG.
24060 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
24061 Do not invoke or require the following here,
24062 since prereq.m4 or some gnulib .m4 now does this for us:
24063 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
24064 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
24065 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
24066 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
24067 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
24068 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
24069 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
24071 Do not replace the following functions, as this is now the job
24072 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
24073 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
24074 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
24075 atexit getpass, strdup, getpagesize.
24077 Do not check for the following functions, as this is now the job
24078 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
24079 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
24081 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
24082 Check for sys/sysctl.h.
24083 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
24084 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
24085 of checking for ssize_t ourselves.
24087 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
24088 Require every macro that gnulib/modules/* suggests for us.
24089 (jm_PREREQ_ADDEXT): New macro.
24090 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
24091 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
24093 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
24094 (gl_PHYSMEM): Use it.
24095 Also check for `table' function.
24096 Check for new headers and functions.
24097 Add check for sys/sysmp.h.
24098 With suggestions from Kaveh Ghazi.
24099 Ignore headers that are present but cannot be compiled. This
24100 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
24103 2003-08-15 Paul Eggert <eggert@twinsun.com>
24105 Document merge from coreutils.
24106 * modules/userspec: Depend on posixver.
24107 * modules/strftime: Depend on tzset.
24109 2003-08-15 Paul Eggert <eggert@twinsun.com>
24111 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
24112 rather than tab, after '#' in shell-script copyright notices.
24113 Suggested by Bruno Haible.
24115 2003-08-15 Paul Eggert <eggert@twinsun.com>
24117 * config/srclist-update: Use three spaces, rather than tab, after '#'
24118 in shell-script copyright notices. Suggested by Bruno Haible.
24119 Remove unnecessary parenthesization in regular expression.
24121 2003-08-15 Jim Meyering <jim@meyering.net>
24123 Merge from coreutils.
24124 * lib/xgethostname.c: Include <stdlib.h>.
24125 (xghostname): Don't exit for anything other than memory-related
24126 failure; just return NULL.
24127 * lib/userspec.c: Include "posixver.h".
24128 (parse_user_spec): Accept `.' as a separator only
24129 in pre-POSIX-200112 mode.
24130 * lib/strtoimax.c: Use #elif rather than #else #if.
24131 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
24132 Remove function, now that we can rely on a working tzset function.
24133 [!_LIBC]: Ensure that the required autoconf test has been run.
24134 [!defined _NL_CURRENT && HAVE_STRFTIME]:
24135 Use underlying_strftime for %r.
24136 * lib/sha.c: Merge in some clean-up and optimization changes from
24138 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
24139 Ensure that it is a multiple of 64.
24140 Rearrange loop exit tests so as to avoid performing an
24141 additional fread after encountering an error or EOF.
24142 * lib/realloc.c: Update copyright date.
24144 2003-08-15 Jim Meyering <jim@meyering.net>
24145 and Paul Eggert <eggert@twinsun.com>
24147 Merge from coreutils.
24148 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
24149 member but strut utmpx does not. Needed for AIX 4.3.3.
24150 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
24152 2003-08-15 Jim Meyering <jim@meyering.net>
24153 and Paul Eggert <eggert@cs.ucla.edu>
24155 Merges from coreutils, etc.
24156 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
24157 Require gl_FUNC_TZSET_CLOBBER.
24158 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
24159 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
24162 2003-08-14 Paul Eggert <eggert@twinsun.com>
24164 Help the merge from coreutils.
24165 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
24166 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
24167 * m4/tzset.m4: Use it too.
24169 2003-08-14 Paul Eggert <eggert@twinsun.com>
24171 * modules/tzset: New file.
24173 2003-08-14 Jim Meyering <jim@meyering.net>
24175 Merges from coreutils.
24176 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
24177 variable names, rather than @FNMATCH_H@.
24178 * modules/alloca: Likewise for $(ALLOCA_H).
24180 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
24181 the three copies of the literal target, `fnmatch.h'.
24182 * modules/alloca (alloca.h): Likewise.
24184 2003-08-14 Jim Meyering <jim@meyering.net>
24186 Merge from coreutils.
24187 * m4/tzset.m4: New file.
24188 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
24189 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
24190 otherwise, AIX 5.1 systems would end up using the latter.
24191 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
24192 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
24193 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
24194 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
24196 2003-08-14 Jim Meyering <jim@meyering.net>
24198 Merge from coreutils.
24199 * lib/obstack.h: Whitespace changes.
24200 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
24201 and xcalloc return values.
24202 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
24203 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
24204 hang on OSF/1 5.1 for DIR on both local and remote file systems.
24205 Reported by (and fix confirmed by) Nelson H. F. Beebe.
24206 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
24208 Use mntctl's return value to drive the entry-processing loop, since
24209 we can't rely on the value of the vmt_length member in the last
24210 entry. On some systems doing so could result in exhausting
24211 virtual memory. Based in part on a patch from Mike Jetzer.
24213 2003-08-14 Jim Meyering <jim@meyering.net>
24214 and Paul Eggert <eggert@twinsun.com>
24216 Merges from coreutils, plus other fixes.
24217 * lib/physmem.c: Merge in portability changes from gcc/libiberty
24218 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
24219 for credits and details. Thanks to Kaveh Ghazi for helping
24220 to keep these files in sync.
24221 (ARRAY_SIZE): Define it.
24222 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
24223 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
24224 (memcasecmp): Don't assume size_t fits in unsigned int.
24225 Remove casts and duplicate code.
24226 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
24227 (memcpy): Remove definition.
24228 Merge in some clean-up and optimization changes from glibc.
24229 [BLOCKSIZE]: Move definition to top of file.
24230 Ensure that it is a multiple of 64.
24231 Rearrange loop exit tests so as to avoid performing an
24232 additional fread after encountering an error or EOF.
24233 * lib/md5.h (md5_uintptr): Define.
24234 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
24235 return to the initial working directory. Preserve errno
24237 * lib/idcache.c: Include "xalloc.h".
24238 (xmalloc, xrealloc): Remove decls.
24239 (getuser): Remove casts no longer required in C89.
24240 * lib/human.c: Include stdio.h, for sprintf.
24241 * lib/group-member.c: Include "xalloc.h".
24242 (xmalloc, xrealloc): Remove decls.
24243 (get_group_info): Remove casts no longer required in C89.
24244 * lib/getusershell.c (readname): Remove casts no longer required in
24246 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
24247 * lib/getline.c: Whitespace fix, from coreutils.
24249 2003-08-13 Paul Eggert <eggert@twinsun.com>
24251 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
24254 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24255 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24256 Undo previous (whitespace-only) change.
24258 2003-08-13 Paul Eggert <eggert@twinsun.com>
24260 * lib/exclude.c: Include <ctype.h>
24261 (IN_CTYPE_DOMAIN): New macro.
24262 (is_space): New fn.
24263 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
24266 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24267 Undo previous (whitespace-only) change.
24269 2003-08-13 Paul Eggert <eggert@twinsun.com>
24271 * config/srclist-update: Change update back to the old behavior,
24272 leaving whitespace alone. Use one 'sed' command rather than a
24274 (fixlicense): Now a variable, not a function.
24275 (remove_trailing_blanks): Remove.
24276 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
24277 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24278 Undo previous (whitespace-only) change.
24280 2003-08-12 Paul Eggert <eggert@twinsun.com>
24282 Merge from coreutils.
24283 * modules/euidaccess: Add lib_SOURCES, include for new
24286 2003-08-12 Paul Eggert <eggert@twinsun.com>
24288 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
24289 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
24290 Normalize leading white space and remove trailing white space.
24292 Merge from coreutils
24293 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
24295 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
24296 0.12.1. These files are now being upgraded automatically by
24297 ../config/srclist-update.
24299 2003-08-12 Paul Eggert <eggert@twinsun.com>
24301 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
24302 Normalize leading white space and remove trailing white space.
24303 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
24304 notice, as per ../config/srclist-update.
24306 Merge from coreutils.
24307 * lib/euidaccess.h: New file.
24308 * lib/euidaccess.c: Include it.
24309 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
24310 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
24311 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
24313 2003-08-12 Paul Eggert <eggert@twinsun.com>
24315 * config/srclist-update: Add copyright notice.
24316 (remove_id_lines, remove_trailing_blanks): New constants.
24317 (fixfile): Use them to normalize spacing a bit in copied files.
24318 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
24319 Normalize leading white space and remove trailing white space.
24321 * config/texinfo.tex: Sync with texinfo.
24323 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
24324 strtoul.c from libc, to merge coreutils whitespace changes.
24326 * config/srclist.txt: Get the following m4 files from gettext:
24327 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
24328 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
24329 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
24332 2003-08-12 Karl Berry <karl@gnu.org>
24334 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
24337 2003-08-11 Paul Eggert <eggert@twinsun.com>
24339 * modules/gnu-source, m4/gnu-source.m4:
24340 Remove; we're assuming Autoconf 2.54 or later now.
24341 Suggested by Bruno Haible.
24342 * MODULES.html.sh (func_all_modules): Remove gnu-source.
24344 2003-08-11 Bruno Haible <bruno@clisp.org>
24346 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
24348 2003-08-11 Bruno Haible <bruno@clisp.org>
24350 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
24351 (vasnprintf): Use it instead of wcslen.
24353 2003-08-11 Bruno Haible <bruno@clisp.org>
24355 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
24356 value to ensure that _Bool promotes to int. Use #define for _Bool when
24357 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
24359 2003-08-10 Karl Berry <karl@gnu.org>
24361 * lib/regex.h: update from libc (whitespace fix).
24363 2003-08-09 Paul Eggert <eggert@twinsun.com>
24365 Merge some files from coreutils. These changes were
24366 originally made by Jim Meyering.
24367 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
24368 many older Unixes require this.
24369 * lib/alloca.c (alloca): Remove cast to argument of free;
24370 no longer needed in C89.
24371 * lib/alloca_.h, regex.h: Fix white space to match
24372 what GNU indent does.
24374 2003-08-09 Paul Eggert <eggert@twinsun.com>
24376 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
24377 apparently Emacs's Unicode mode got confused before my 2003-08-05
24380 2003-08-08 Paul Eggert <eggert@twinsun.com>
24382 * m4/extensions.m4: New file.
24383 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
24384 Require gl_USE_SYSTEM_EXTENSIONS.
24385 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
24386 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
24388 2003-08-08 Paul Eggert <eggert@twinsun.com>
24390 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
24391 * modules/extensions, modules/gnu-source: New files.
24392 * modules/timespec, modules/unlocked-io: Depend on extensions.
24394 2003-08-07 Paul Eggert <eggert@twinsun.com>
24396 * modules/restrict: New file.
24397 * MODULES.html.sh (func_all_modules): Add restrict.
24398 * modules/regex: Depend on restrict.
24400 2003-08-07 Paul Eggert <eggert@twinsun.com>
24402 * m4/restrict.m4: New file.
24403 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
24405 2003-08-07 Bruno Haible <bruno@clisp.org>
24407 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
24408 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
24410 2003-08-07 Bruno Haible <bruno@clisp.org>
24412 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
24413 makes the module 'getndelim2' compatible with the module 'getline'.
24415 2003-08-05 Paul Eggert <eggert@twinsun.com>
24417 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
24418 byte with "\201" to avoid glitches when editing that source file
24419 with multi-gnome-terminal.
24421 2003-08-05 Paul Eggert <eggert@twinsun.com>
24423 * lib/bumpalloc.h: Remove.
24425 2003-08-05 Paul Eggert <eggert@twinsun.com>
24427 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
24428 * modules/bumpalloc: Remove.
24430 2003-08-04 Paul Eggert <eggert@twinsun.com>
24432 * lib/getloadavg.c: Change copyright notice and spacing to conform to
24435 Merge from coreutils.
24436 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
24438 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
24439 from Karl Berry, implemented by Jim Meyering.
24440 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
24441 from Dmitry V. Levin.
24442 Remove anachronistic cast of xrealloc.
24443 * lib/fnmatch_.h (__const): Remove. Use 'const'.
24444 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
24445 type. Otherwise, it wouldn't compile with at least /bin/cc on
24446 ymp-cray-unicos9.0.2.X.
24447 Combine two mostly-identical uses of alloca into one.
24448 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
24450 2003-08-04 Dave Love <d.love@dl.ac.uk>
24454 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
24455 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
24456 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
24457 obsolete NLIST_NAME_UNION.
24458 [__GNU__]: Undef BSD and FSCALE.
24459 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
24461 2003-08-03 Paul Eggert <eggert@twinsun.com>
24463 * lib/stdbool_.h (_Bool): Make it signed char, instead of
24464 an enum type, so that it's guaranteed to promote to int. See:
24465 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
24467 2003-08-03 Karl Berry <karl@gnu.org>
24469 * config/depcomp: update from automake.
24471 2003-07-31 Paul Eggert <eggert@twinsun.com>
24473 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
24474 (strerror): Don't assume that a printable int fits in 14 bytes.
24476 2003-07-31 Bruno Haible <bruno@clisp.org>
24478 * modules/getpass-gnu: New file.
24479 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
24481 2003-07-31 Bruno Haible <bruno@clisp.org>
24483 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
24485 2003-07-24 Karl Berry <karl@gnu.org>
24487 * config/missing: update from automake.
24489 2003-07-24 Derek Robert Price <derek@ximbiot.com>
24490 Bruno Haible <bruno@clisp.org>
24492 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
24493 * lib/getline.c (getline, getdelim): Likewise.
24494 Remove _GNU_SOURCE define; now it's defined in config.h through
24497 2003-07-23 Karl Berry <karl@gnu.org>
24499 * config/config.sub: update from prep.
24501 2003-07-22 Paul Eggert <eggert@twinsun.com>
24503 * modules/xalloc (Depends-on): Add exitfail.
24504 * modules/xmemcoll: Likewise.
24506 2003-07-22 Paul Eggert <eggert@twinsun.com>
24508 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
24509 over-parenthesization in macros.
24511 Sync with coreutils.
24513 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
24516 Use `exit_failure' for xalloc and xmemcoll instead of their own
24517 private exit-failure variables.
24518 * lib/xalloc.h (xalloc_exit_failure): Remove.
24519 * lib/xmalloc.c: Likewise. Include exitfail.h.
24520 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
24521 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
24522 * lib/xmemcoll.c: Likewise. Include exitfail.h.
24523 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
24525 2003-07-20 Jim Meyering <jim@meyering.net>
24527 * modules/closeout (Depends-on): Add exitfail.
24528 Suggestion from Bruno Haible.
24530 2003-07-19 Karl Berry <karl@gnu.org>
24532 * config/config.sub: update from prep.
24534 2003-07-18 Paul Eggert <eggert@twinsun.com>
24536 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
24538 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
24539 to test that it can stand by itself. Include "exitfail.h".
24540 Clients should set exit_failure instead.
24541 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
24543 2003-07-18 Bruno Haible <bruno@clisp.org>
24545 * modules/getndelim2: New file.
24546 * modules/getline: Share files with module getndelim2.
24547 * modules/getnline: Depend on getndelim2 instead of sharing files with
24548 it. Add getnline.c to lib_SOURCES.
24549 * MODULES.html.sh (func_all_modules): Add getndelim2.
24551 2003-07-18 Bruno Haible <bruno@clisp.org>
24553 * m4/getndelim2.m4: New file.
24554 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
24555 invoke gl_PREREQ_GETNDELIM2.
24556 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
24557 gl_PREREQ_GETNDELIM2.
24558 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
24561 2003-07-18 Bruno Haible <bruno@clisp.org>
24563 * lib/getndelim2.h: New file.
24564 * lib/getndelim2.c: Make into a module of its own. Include config.h,
24566 (getndelim2): Make non-static. Change return type to ssize_t.
24567 * lib/getline.h: Change argument names.
24568 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
24569 * lib/getnline.c: Include getndelim2.h.
24571 2003-07-18 Andreas Schwab <schwab@suse.de>
24573 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
24575 2003-07-17 Karl Berry <karl@gnu.org>
24577 * config/config.sub: update from prep.
24579 2003-07-17 Bruno Haible <bruno@clisp.org>
24581 * modules/getnline: New file.
24582 * modules/getline: Add lib/getndelim2.c to source file list.
24583 * MODULES.html.sh (func_all_modules): Add getnline.
24585 2003-07-17 Bruno Haible <bruno@clisp.org>
24587 * m4/getnline.m4: New file.
24589 2003-07-17 Bruno Haible <bruno@clisp.org>
24591 * m4/Makefile.am.in: Remove file.
24592 * m4/Makefile.am: Remove file.
24593 * m4/Makefile.in: Remove file.
24595 2003-07-17 Bruno Haible <bruno@clisp.org>
24597 * lib/getnline.h: New file.
24598 * lib/getnline.c: New file.
24599 * lib/getndelim2.c: New file, extracted from getline.c.
24600 (getndelim2): Renamed from getdelim2, with added nmax argument.
24601 * lib/getline.c: Include getndelim2.c.
24602 (getdelim2): Moved out to getndelim2.c.
24603 (getline, getdelim): Update.
24605 2003-07-17 Bruno Haible <bruno@clisp.org>
24607 * lib/Makefile.am: Remove file.
24608 * lib/Makefile.in: Remove file.
24610 2003-07-17 Bruno Haible <bruno@clisp.org>
24612 * configure.in: Remove file.
24613 * Makefile.in: Remove file.
24615 2003-07-17 Bruno Haible <bruno@clisp.org>
24617 * MODULES.html.sh: Put the </BODY> right before </HTML>.
24619 2003-07-16 Karl Berry <karl@gnu.org>
24621 * config/srclist-update: was running fixlicense twice, which caused
24622 texinfo.tex to be nullified for some reason. Simplify,
24623 $gplsrc is no longer needed as far as I can see?
24625 2003-07-16 Jim Meyering <jim@meyering.net>
24627 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
24629 2003-07-15 Paul Eggert <eggert@twinsun.com>
24631 * config/srclist.txt: Get the following files from gettext-runtime/intl
24632 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
24633 ref-del.sin. From Bruno Haible.
24634 * config/srclist-update (fixfile): Change grep pattern again, since the
24635 previous fix didn't work (there was another trailing $). Use
24636 '[$]' to escape the $s.
24638 2003-07-15 Karl Berry <karl@gnu.org>
24640 * lib/vasnprintf.c: update from gettext.
24642 2003-07-15 Karl Berry <karl@gnu.org>
24644 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
24645 gets expanded when surrounded by '$'.
24647 2003-07-15 Jim Meyering <jim@meyering.net>
24649 * modules/save-cwd: Don't depend on error. From Derek Price.
24651 2003-07-15 Jim Meyering <jim@meyering.net>
24653 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
24655 2003-07-14 Simon Josefsson <jas@extundo.com>
24657 * modules/mempcpy: New file.
24658 * MODULES.html.sh (func_all_modules): Add mempcpy.
24660 2003-07-14 Simon Josefsson <jas@extundo.com>
24662 * m4/mempcpy.m4: New file.
24664 2003-07-14 Simon Josefsson <jas@extundo.com>
24666 * lib/mempcpy.h: New file.
24667 * lib/mempcpy.c: New file.
24669 2003-07-14 Paul Eggert <eggert@twinsun.com>
24671 * modules/getdate, modules/posixtm: Depend on mktime.
24673 2003-07-14 Paul Eggert <eggert@twinsun.com>
24675 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
24676 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
24677 unicodeio.c, unicodeio.h, unlocked-io.h:
24678 Switch from LGPL to GPL.
24680 2003-07-14 Paul Eggert <eggert@twinsun.com>
24682 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
24683 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
24684 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
24685 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
24686 vasprintf.c, vasprintf.h: Regenerate. These files are now being
24687 updated automatically by ../config/srclist-update. This changes
24688 their license from LPGL to GPL.
24690 2003-07-14 Paul Eggert <eggert@twinsun.com>
24692 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
24693 assumed to refer to the root of the most recent stable gettext version.
24694 * config/srclistvars.sh: Add defaults for eggert.
24695 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
24696 Match "This program" as well as "The program". This is needed
24699 2003-07-14 Jim Meyering <jim@meyering.net>
24701 Don't emit diagnostics. Let callers do that.
24702 * lib/save-cwd.c: Don't include "error.h".
24703 (save_cwd): Don't call error. Ensure that errno is valid
24704 when returning nonzero.
24706 * lib/save-cwd.h (restore_cwd): Update prototype.
24707 * lib/save-cwd.c (restore_cwd): Remove two parameters.
24708 Simplify. Don't call error upon failure. Let callers do that.
24709 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
24710 when auditing is enabled. But don't bother updating the #if.
24712 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
24714 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
24715 it breaks C++ compilation.
24716 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
24718 2003-07-10 Simon Josefsson <jas@extundo.com>
24720 * modules/strchrnul (Makefile.am): Add strchrnul.h.
24722 2003-07-10 Jim Meyering <jim@meyering.net>
24724 * m4/clock_time.m4: Remove trailing blank.
24725 * m4/intmax_t.m4: Likewise.
24727 2003-07-10 Jim Meyering <jim@meyering.net>
24729 * lib/vasnprintf.c: Remove trailing blanks.
24730 Make cpp indentation consistent.
24732 2003-07-09 Paul Eggert <eggert@twinsun.com>
24734 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
24735 posixver.c, strftime.c, strnlen.c, strverscmp.c:
24736 Switch from LGPL to GPL.
24738 2003-07-09 Paul Eggert <eggert@twinsun.com>
24740 * config/srclist.txt: Sort sublists. Add
24741 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
24742 that differ from gnulib for one reason or another; we'd like this list
24743 to be smaller but for now let's document what we have.
24745 2003-07-08 Paul Eggert <eggert@twinsun.com>
24747 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
24748 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
24749 and sweeter "eval x=$x".
24750 * config/srclist.txt: Get lib/argp* from glibc.
24752 2003-07-07 Paul Eggert <eggert@twinsun.com>
24754 * lib/mktime.c: Fix some boundary cases and remove need for floating
24757 Issue a compile-time diagnostic if time_t is floating point, or if
24758 two's complement arithmetic is not in effect, or if arithmetic
24759 right shift does not propagate the sign. These assumptions were
24760 all in the original code but they weren't checked.
24762 (TIME_T_MIDPOINT, verify): New macros.
24763 (__isleap): Remove; it has integer overflow problems.
24764 (leapyear): New function, without those problems.
24765 (ydhms_tm_diff): Remove; splitting into two parts.
24766 (ydhms_diff): New function, containing the arithmetic part of
24767 the old ydhms_tm_diff function. Issue a compile-time
24768 diagnostic if we are not using C99 integer division.
24769 Avoid casts when possible.
24770 (guess_time_tm): New function, containing the checking part of
24771 the old ydhms_tm_diff function. Return the new value, rather than
24772 the difference between it and the old. Accept a new argument T
24773 so that *T specifies the old value. Check for overflow in the result.
24775 (__mktime_internal): Use a time_t offset, not a long int offset.
24776 This undoes the 2003-06-04 change, which is no longer needed now
24777 that we have better overflow checking.
24778 (localtime_offset): Likewise.
24780 (__mktime_internal): Avoid harmful overflow on hosts where time_t
24781 and long are 64-bit but int is only 32-bit.
24782 (ydhms_diff): Use long int to store year1 and yday1.
24783 Issue a compile-time diagnostic if long int is not wide enough.
24785 (__mktime_internal): Use long int to store adjusted year and yday.
24786 Use plain C rather than preprocessor commands, if that doesn't
24788 Check for overflow (and try to repair) after each probe
24789 rather than checking only at the very end. This avoids some bugs
24790 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
24791 does not equal GMT offset at maximum time).
24792 Use integer to check for overflow rather than floating point; this
24793 is more portable to non-IEEE hosts, and is a tad faster.
24794 When we detect that we are oscillating between two values,
24795 don't check whether tm_isdst has the requested value, since
24796 we already know the answer. When tm_isdst has the wrong value,
24797 use a different heuristic to find the right one, based on the
24798 extreme values actually observed in practice in tz2003a,
24799 rather than the (overly optimistic) "previous 3 calendar quarters".
24801 (not_equal_tm, print_tm, check_result): Use "const T" rather than
24802 "T const" to accommodate glibc style.
24803 (check_result): Use less-confusing report format. "long" -> "long int.
24805 Don't loop if the iteration overflows time_t.
24806 Allow a negative step in the iteration.
24808 2003-07-06 Karl Berry <karl@gnu.org>
24810 * config/depcomp: update from automake.
24811 * config/config.sub: update from prep.
24813 2003-07-03 Karl Berry <karl@gnu.org>
24815 * config/config.guess: update from prep.
24817 2003-07-01 Paul Eggert <eggert@twinsun.com>
24819 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
24820 xreadlink.c now includes it unconditionally.
24822 2003-07-01 Paul Eggert <eggert@twinsun.com>
24824 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
24825 having it depend on HAVE_SYS_TYPES_H.
24827 2003-07-01 Bruno Haible <bruno@clisp.org>
24829 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
24830 <sys/types.h> should be sufficient.
24831 Reported by Paul Eggert.
24833 2003-06-26 Karl Berry <karl@gnu.org>
24835 * config/depcomp: update from automake.
24837 2003-06-26 Bruno Haible <bruno@clisp.org>
24839 * modules/human: Depend on module stdbool.
24841 2003-06-25 Bruno Haible <bruno@clisp.org>
24843 * modules/readlink: New file.
24844 * modules/xreadlink: Depend on it.
24845 * MODULES.html.sh (func_all_modules): Add readlink.
24847 2003-06-25 Bruno Haible <bruno@clisp.org>
24849 * m4/readlink.m4: New file.
24851 2003-06-25 Bruno Haible <bruno@clisp.org>
24853 * lib/readlink.c: New file.
24855 2003-06-22 Karl Berry <karl@gnu.org>
24857 * config/srclist.txt: update mkinstalldirs from automake.
24858 * config/mkinstalldirs: update.
24860 2003-06-22 Bruno Haible <bruno@clisp.org>
24862 Portability to mingw32.
24863 * m4/ssize_t.m4: New file, from GNU gettext.
24864 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
24865 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
24867 2003-06-22 Bruno Haible <bruno@clisp.org>
24869 * modules/safe-read: Add m4/ssize_t.m4.
24870 * modules/xreadlink: Add m4/ssize_t.m4.
24872 2003-06-20 Bruno Haible <bruno@clisp.org>
24874 Assume C89, so PARAMS isn't needed.
24875 * lib/unicodeio.h (PARAMS): Remove.
24876 * lib/unicodeio.c: Don't use PARAMS.
24878 2003-06-18 Karl Berry <karl@gnu.org>
24880 * config/config.{guess,sub}: update from prep.
24882 2003-06-18 Jim Meyering <jim@meyering.net>
24884 Merge changes from coreutils.
24885 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
24886 Remove explicit declarations of xmalloc and realloc.
24888 (read_utmp): Remove anachronistic cast of xmalloc.
24890 2003-06-17 Paul Eggert <eggert@twinsun.com>
24892 Assume C89, so PARAMS isn't needed.
24893 * lib/backupfile.h (PARAMS): Remove. All uses removed.
24894 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
24895 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
24896 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
24897 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
24898 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
24899 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
24900 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
24901 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
24902 lib/xstrtod.h, lib/xstrtol.h: Likewise.
24903 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
24904 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
24905 no longer needed. Anyway, config.h should always be included before any
24908 2003-06-11 Simon Josefsson <jas@extundo.com>
24910 * modules/sysexits: New file.
24911 * MODULES.html.sh (func_all_modules): Add sysexits.
24913 2003-06-11 Simon Josefsson <jas@extundo.com>
24915 * lib/sysexit_.h: New file.
24917 2003-06-11 Derek Price <derek@ximbiot.com>
24919 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
24922 2003-06-11 Bruno Haible <bruno@clisp.org>
24924 * m4/sysexits.m4: New file.
24926 2003-06-10 Simon Josefsson <jas@extundo.com>
24928 * lib/argp.h: New file, from glibc.
24929 * lib/argp-ba.c: New file, from glibc.
24930 * lib/argp-eexst.c: New file, from glibc.
24931 * lib/argp-fmtstream.c: New file, from glibc.
24932 * lib/argp-fmtstream.h: New file, from glibc.
24933 * lib/argp-fs-xinl.c: New file, from glibc.
24934 * lib/argp-help.c: New file, from glibc.
24935 * lib/argp-namefrob.h: New file, from glibc.
24936 * lib/argp-parse.c: New file, from glibc.
24937 * lib/argp-pv.c: New file, from glibc.
24938 * lib/argp-pvh.c: New file, from glibc.
24939 * lib/argp-xinl.c: New file, from glibc.
24941 2003-06-10 Simon Josefsson <jas@extundo.com>
24943 * modules/strchrnul: New file.
24945 2003-06-10 Simon Josefsson <jas@extundo.com>
24947 * modules/argp: New file.
24949 2003-06-10 Simon Josefsson <jas@extundo.com>
24951 * m4/strchrnul.m4: New file.
24953 2003-06-10 Simon Josefsson <jas@extundo.com>
24955 * lib/strchrnul.h: New file.
24956 * lib/strchrnul.c: New file.
24958 2003-06-10 Bruno Haible <bruno@clisp.org>
24960 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
24962 2003-06-07 Karl Berry <karl@gnu.org>
24964 * config/config.{guess,sub}: update from prep.
24966 2003-06-07 Jim Meyering <jim@meyering.net>
24968 * modules/strtod: Use $(...) notation, not @...@ for
24969 AC_REPLACE'd variables.
24970 * modules/localcharset: Likewise.
24972 2003-06-07 Jim Meyering <jim@meyering.net>
24974 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
24975 in place of my name in the copyright comment.
24976 Remove definition and uses of __P.
24979 * lib/stat.c: Don't declare xmalloc explicitly.
24980 Instead, include "xalloc.h".
24981 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
24982 xrealloc, and xcalloc return values.
24983 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
24985 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
24987 2003-06-07 Bruno Haible <bruno@clisp.org>
24989 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
24990 avoid AC_CONFIG_LINKS.
24991 * modules/fnmatch (Makefile.am): Use explicit creation rule for
24992 fnmatch.h, to avoid AC_CONFIG_LINKS.
24993 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
24995 2003-06-07 Bruno Haible <bruno@clisp.org>
24997 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
24998 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
24999 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25001 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
25002 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25005 2003-06-06 Jim Meyering <jim@meyering.net>
25007 Merge from coreutils.
25008 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
25009 Consolidate declarations and initializations of *_base* locals.
25011 Merge from coreutils.
25012 This avoids a core dump on systems without GNU putenv,
25013 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
25014 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
25015 (unsetenv): New static function, from GNU libc.
25016 (rpl_putenv): Use it.
25018 * lib/modechange.c: Remove trailing blanks.
25020 Merge from coreutils.
25021 * lib/fsusage.c: Remove declaration of statfs.
25022 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
25024 * lib/posixtm.c: Include <stdbool.h> unconditionally.
25026 2003-06-06 Jim Meyering <jim@meyering.net>
25028 * lib/stdbool_.h: Renamed from stdbool.h.in.
25030 2003-06-06 Jim Meyering <jim@meyering.net>
25031 Bruno Haible <bruno@clisp.org>
25033 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
25034 Adjust Makefile.am snippet not to redirect directly to target.
25035 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
25037 2003-06-05 Paul Eggert <eggert@twinsun.com>
25039 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
25040 mismatch, look in future quarters as well as past. This fixes a
25041 bug when processing fall-backwards gaps immediately after a long
25042 period of daylight-saving time.
25044 * lib/mktime.c: Assume freestanding C89 or better.
25045 (HAVE_LIMITS_H): Remove. Assume it's 1.
25046 (__P): Remove; not used.
25047 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
25048 (mktime, not_equal_tm, print_tm, check_result,
25049 main): Use prototypes. Use const * where appropriate.
25050 (main): Fix typo in testing code that uncovered by above changes.
25051 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
25053 2003-06-04 Paul Eggert <eggert@twinsun.com>
25055 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
25056 locale.h, localeconv. This merges changes from coreutils.
25058 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
25059 It can be removed after the next Autoconf is released.
25060 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
25063 2003-06-04 Paul Eggert <eggert@twinsun.com>
25065 * lib/mktime.c: Fix Debian bug 177940
25066 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
25067 (localtime_offset): Now long int, not time_t, because we want it
25068 to be guaranteed to be signed. All uses changed.
25069 (__mktime_internal): If overflow would occur when adding offset,
25072 Merge 'human' changes from coreutils. Rewrite to support
25073 locale-specific notations like thousands separators.
25074 * lib/human.c: Simplify authorship notice.
25075 Include human.h immediately after config.h.
25076 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
25077 <limits.h>: Do not include, since human.h does.
25078 (SIZE_MAX, UINTMAX_MAX): New macros.
25079 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
25080 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
25081 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
25082 (power_letter): Renamed from suffixes.
25083 (generate_suffix_backwards): Remove.
25084 (adjust_value): Now takes int style (because of human.h changes)
25085 and long double value (for greater precision on some platforms).
25086 (group_number): New function.
25087 (human_readable): Use it. Use integer options, not enum.
25088 Put the options before the sizes in the arg list.
25089 Support all the new options.
25090 The old human_readable function has been removed;
25091 use inttostr.h instead.
25092 (human_readable, default_block_size, humblock):
25093 Use uintmax_t, not int, for block sizes.
25094 (human_readable_inexact, block_size_types): Remove.
25095 (block_size_opts): New constant.
25096 (human_options): Renamed from human_block_size, with new signature
25097 that allows block sizes up to UINTMAX_MAX. All callers changed.
25098 * lib/human.h: Add copyright and authorship notice.
25099 Include <limits.h> and <stdbool.h> unconditionally.
25100 (PARAMS): Remove. All uses removed.
25101 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
25102 (enum human_inexact_style): Remove tag; now a nameless enum.
25103 (human_floor, human_ceiling, human_round_to_even): Now have
25104 values 2, 0, 1 rather than -1, 1, 0.
25105 (human_group_digits, human_suppress_point_zero, human_autoscale,
25106 human_base_1024, human_SI, human_B): New constants.
25107 (human_readable_inexact, human_block_size): Remove.
25108 (human_readable): Size args are now uintmax_t, not int.
25109 (human_options): New decl.
25111 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
25112 unnecessary now that we assume C89 or better. This change
25113 imported from coreutils.
25115 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25116 arbitrarily. This is the same patch as 2003-05-28, but it got lost
25117 in the 2003-05-30 sync from glibc.
25119 .h files should stand alone, but we shouldn't include <sys/types.h>
25120 if we can get away with just <stddef.h>.
25122 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
25123 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
25124 rather than <sys/types.h>, as we merely need size_t.
25125 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
25127 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
25128 Include <stdio.h>, to get FILE.
25129 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
25130 memcasecmp.h has included <stddef.h> and all we need is size_t.
25131 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
25132 our interface, instead of including <sys/types.h>
25134 2003-06-04 Paul Eggert <eggert@twinsun.com>
25136 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
25137 now, as glibc mktime is buggy on non-glibc systems.
25139 2003-06-03 Karl Berry <karl@gnu.org>
25141 * config/config.sub: update from prep.
25143 2003-06-02 Paul Eggert <eggert@twinsun.com>
25146 Fix some minor time-related bugs with POSIX time arguments.
25147 Some valid time stamps were being rejected (notably -1, and
25148 time stamps before 1900 on 64-bit hosts). And some invalid
25149 time stamps were being accepted, e.g. September 31.
25151 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
25152 that we can return (time_t) -1 successfully.
25153 * lib/posixtm.c: Likewise.
25154 [HAVE_STDBOOL_H]: Include <stdbool.h>.
25155 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
25156 (t): Remove static var.
25157 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
25158 of static var. All uses changed.
25159 (year): Do not reject years before 1900; they can occur with
25161 (posix_time_parse): Do not check for out-of-range components;
25162 that is now the caller's responsibility, since our checks were
25163 only approximations.
25164 (posixtime): Use mktime to check for out-of-range components,
25165 since it knows them exactly.
25166 If mktime returns (time_t) -1, check whether an error actually occurred
25167 by invoking localtime on -1.
25168 (main) [TEST_POSIXTIME]: Check for input data errors, and report
25169 posixtime failures better.
25170 Improve the test data (in comments only).
25172 2003-06-02 Karl Berry <karl@gnu.org>
25174 * config/mkinstalldirs (version): new variable.
25175 (--version): new option.
25176 (usage): improve message.
25178 2003-05-30 Karl Berry <karl@gnu.org>
25180 * lib/mktime.c: update from libc.
25182 2003-05-30 Bruno Haible <bruno@clisp.org>
25184 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
25185 * config/config.rpath: Upgrade to gettext-0.12.1.
25187 2003-05-30 Bruno Haible <bruno@clisp.org>
25189 * m4/gettext.m4: Upgrade to gettext-0.12.1.
25190 * m4/nls.m4: New file, from gettext-0.12.1.
25191 * m4/po.m4: New file, from gettext-0.12.1.
25192 * m4/progtest.m4: Upgrade to gettext-0.12.1.
25194 2003-05-30 Bruno Haible <bruno@clisp.org>
25196 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
25197 * lib/localcharset.h: Likewise.
25198 * lib/localcharset.c: Likewise.
25200 2003-05-29 Karl Berry <karl@gnu.org>
25202 * config/config.rpath: update from gettext.
25204 2003-05-28 Paul Eggert <eggert@twinsun.com>
25206 Assume the headers required for C89 freestanding compilers.
25207 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
25208 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
25209 * m4/human.m4 (gl_HUMAN): Likewise.
25210 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
25211 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
25212 * m4/userspec.m4 (gl_USERSPEC): Likewise.
25213 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
25214 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25215 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
25217 2003-05-28 Paul Eggert <eggert@twinsun.com>
25219 Assume the headers required for C89 freestanding compilers.
25220 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
25221 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
25222 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
25223 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
25224 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
25225 define, since <limits.h> is guaranteed to do that.
25226 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
25227 * lib/exclude.c: Include <stdbool.h> unconditionally.
25228 * lib/tempname.c: Include <stddef.h> unconditionally.
25229 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
25230 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
25231 <stddef.h> does that.
25232 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
25233 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
25234 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
25236 * lib/xstrtol.c: Likewise.
25237 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
25238 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
25240 * lib/addext.c (addext): Use assignment rather than cast, to avoid
25241 warnings on some platforms.
25243 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25246 2003-05-26 Jim Meyering <jim@meyering.net>
25248 Merge in a change from coreutils:
25249 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
25250 that is guaranteed to be `no'. Use `no_such_member' to indicate
25251 that condition, rather than `-1' which is slightly misleading.
25252 Change the name of the cache variable to have the gl_ prefix.
25253 Prompted by a patch from Richard Dawe for DJGPP.
25255 2003-05-24 Karl Berry <karl@gnu.org>
25257 * config/config.guess: update from prep.
25259 2003-05-22 Karl Berry <karl@gnu.org>
25261 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
25263 2003-05-20 Karl Berry <karl@gnu.org>
25265 * config/config.guess: update from prep.
25267 2003-05-18 Karl Berry <karl@gnu.org>
25269 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
25270 might actually be set by the user.
25272 * config/depcomp, install-sh, mdate-sh: update from automake.
25274 2003-05-17 Bruno Haible <bruno@clisp.org>
25276 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
25277 invalid expansion for AC_EGREP_CPP.
25278 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25279 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25280 Suggested by Akim Demaille <akim@epita.fr> in
25281 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
25283 2003-05-12 Jim Meyering <jim@meyering.net>
25285 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
25286 the space-padded-by-default conversion specifiers, %e, %k, %l.
25288 2003-05-12 Bruno Haible <bruno@clisp.org>
25290 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
25291 the string is longer than 4 KB.
25293 2003-05-11 Karl Berry <karl@gnu.org>
25295 * config/config.{guess,sub}: update from prep.
25297 2003-05-09 Bruno Haible <bruno@clisp.org>
25299 * modules/error: Add m4/strerror_r.m4 to file list.
25301 2003-05-03 Bruno Haible <bruno@clisp.org>
25303 Upgrade to Unicode-4.0.
25304 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
25305 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
25306 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
25307 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
25308 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
25309 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
25310 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
25311 Change width of U+E0100..U+E01EF from 1 to 0.
25313 2003-04-25 Jim Meyering <jim@meyering.net>
25315 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
25316 of type size_t, not int.
25318 2003-04-25 Bruno Haible <bruno@clisp.org>
25320 * lib/copy-file.c: Include <stddef.h>, for size_t.
25322 2003-04-21 Paul Eggert <eggert@twinsun.com>
25324 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
25325 code which expansion is under static control. Patch imported from
25326 Akim Demaille's patch to Bison; see
25327 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
25329 2003-04-14 Bruno Haible <bruno@clisp.org>
25331 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
25333 2003-04-11 Jim Meyering <jim@meyering.net>
25335 Merge changes from Coreutils.
25337 2003-03-22 Jim Meyering <jim@meyering.net>
25339 * lib/strftime.c (widen): Cast alloca return value to proper type.
25341 2003-01-19 Ulrich Drepper <drepper@redhat.com>
25344 * lib/strftime.c (my_strftime): Handle very large width
25345 specifications for numeric values correctly. Improve checks for
25348 2003-01-19 Jim Meyering <jim@meyering.net>
25350 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
25352 (nl_get_alt_digit) [! defined my_strftime]: Define.
25353 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
25354 _nl_get_alt_digit and _nl_get_walt_digit.
25356 * lib/strftime.c (my_strftime): Merge in locale-related changes from
25357 libc. These changes have no effect outside of _LIBC.
25359 2003-04-10 Bruno Haible <bruno@clisp.org>
25361 * modules/findprog: New file.
25362 * MODULES.html.sh (func_all_modules): Add it.
25364 2003-04-10 Bruno Haible <bruno@clisp.org>
25366 * m4/findprog.m4: New file.
25367 * m4/eaccess.m4: New file.
25369 2003-04-10 Bruno Haible <bruno@clisp.org>
25371 * lib/findprog.h: New file, from GNU gettext.
25372 * lib/findprog.c: New file, from GNU gettext.
25374 2003-04-05 Jim Meyering <jim@meyering.net>
25376 Merge changes from Coreutils.
25378 * lib/exclude.h (PARAMS): Remove definition and uses.
25379 * lib/exclude.c: Remove uses of `PARAMS'.
25381 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
25382 Add test-cases for DOS filenames. Declare program_name.
25383 (main): Set up program_name. Patch by Rich Dawe.
25385 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25387 Use mntctl's return value to drive the entry-processing loop, since
25388 we can't rely on the value of the vmt_length member in the last
25389 entry. On some systems doing so could result in exhausting
25390 virtual memory. Based in part on a patch from Mike Jetzer.
25392 2003-04-04 Bruno Haible <bruno@clisp.org>
25394 * modules/linebreak: New file.
25395 * MODULES.html.sh (func_all_modules): Add it.
25397 2003-04-04 Bruno Haible <bruno@clisp.org>
25399 * m4/linebreak.m4: New file.
25401 2003-04-04 Bruno Haible <bruno@clisp.org>
25403 * lib/linebreak.h: New file, from GNU gettext.
25404 * lib/linebreak.c: New file, from GNU gettext with slight
25406 * lib/lbrkprop.h: New file, from GNU gettext.
25408 2003-04-03 Bruno Haible <bruno@clisp.org>
25410 * modules/utf8-ucs4: New file.
25411 * modules/utf16-ucs4: New file.
25412 * modules/ucs4-utf8: New file.
25413 * modules/ucs4-utf16: New file.
25414 * MODULES.html.sh (func_all_modules): Add them.
25416 2003-04-03 Bruno Haible <bruno@clisp.org>
25418 * m4/utf-ucs4.m4: New file.
25419 * m4/ucs4-utf.m4: New file.
25421 2003-04-03 Bruno Haible <bruno@clisp.org>
25423 * lib/utf8-ucs4.h: New file, from GNU gettext.
25424 * lib/utf16-ucs4.h: New file, from GNU gettext.
25425 * lib/ucs4-utf8.h: New file, from GNU gettext.
25426 * lib/ucs4-utf16.h: New file, from GNU gettext.
25428 2003-04-02 Bruno Haible <bruno@clisp.org>
25430 * modules/binary-io: New file.
25431 * MODULES.html.sh (func_all_modules): Add it.
25433 2003-04-02 Bruno Haible <bruno@clisp.org>
25435 * lib/binary-io.h: New file, from GNU gettext.
25437 2003-04-01 Bruno Haible <bruno@clisp.org>
25439 * modules/pathname: New file.
25440 * MODULES.html.sh (func_all_modules): Add it.
25442 2003-04-01 Bruno Haible <bruno@clisp.org>
25444 * lib/pathname.h: New file, from GNU gettext.
25445 * lib/concatpath.c: New file, from GNU gettext.
25447 2003-03-30 Bruno Haible <bruno@clisp.org>
25449 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
25451 2003-03-30 Bruno Haible <bruno@clisp.org>
25453 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
25454 function chown() doesn't exist.
25456 2003-03-28 Bruno Haible <bruno@clisp.org>
25458 * modules/copy-file: New file.
25459 * MODULES.html.sh (func_all_modules): Add it.
25461 2003-03-28 Bruno Haible <bruno@clisp.org>
25463 * m4/copy-file.m4: New file.
25465 2003-03-28 Bruno Haible <bruno@clisp.org>
25467 * lib/copy-file.h: New file, from GNU gettext.
25468 * lib/copy-file.c: New file, from GNU gettext.
25470 2003-03-18 Jim Meyering <jim@meyering.net>
25472 * lib/quote.c (quote_n): Fix typo in comment.
25474 2003-03-18 Bruno Haible <bruno@clisp.org>
25476 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
25478 * m4/onceonly_2_57.m4: Likewise.
25480 2003-03-17 Bruno Haible <bruno@clisp.org>
25482 * m4/onceonly.m4: Require autoconf 2.54 or newer.
25483 (m4_quote): Remove macro.
25484 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
25486 2003-03-14 Jim Meyering <jim@meyering.net>
25488 Merge changes from Coreutils.
25489 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
25490 to be const, in order to avoid warnings.
25491 (obstack_room): Likewise.
25492 (obstack_empty_p): Likewise.
25494 2003-03-14 Bruno Haible <bruno@clisp.org>
25496 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
25497 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
25499 2003-03-13 Paul Eggert <eggert@twinsun.com>
25501 Merge changes from Bison.
25502 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
25503 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
25504 when compiling Bison 1.875's `bitset bset = obstack_alloc
25505 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
25506 * lib/hash.c: Include <stdbool.h> unconditionally.
25508 2003-03-13 Paul Eggert <eggert@twinsun.com>
25510 * m4/onceonly.m4 (m4_quote): New macro.
25511 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
25512 Quote AC_FOREACH variable-expansions properly.
25514 2003-03-13 Paul Eggert <eggert@twinsun.com>
25516 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
25518 2003-03-09 Paul Eggert <eggert@twinsun.com>
25520 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
25521 Reported by Bruce Becker; see:
25522 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
25524 2003-03-03 Paul Eggert <eggert@twinsun.com>
25525 Bruno Haible <bruno@clisp.org>
25527 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
25528 Reported by John Hughes, see
25529 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
25531 2003-02-20 Bruno Haible <bruno@clisp.org>
25533 * MODULES.html.sh (func_all_modules): Add poll.
25535 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
25537 * modules/poll: New file.
25539 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
25541 * lib/poll_.h: New file.
25542 * lib/poll.c: New file.
25544 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
25546 * m4/poll.m4: New file.
25548 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
25550 * modules/mathl: New file.
25552 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
25554 * lib/mathl.h: New file.
25555 * lib/acosl.c: New file.
25556 * lib/asinl.c: New file.
25557 * lib/atanl.c: New file.
25558 * lib/ceill.c: New file.
25559 * lib/cosl.c: New file.
25560 * lib/expl.c: New file.
25561 * lib/floorl.c: New file.
25562 * lib/frexpl.c: New file.
25563 * lib/ldexpl.c: New file.
25564 * lib/logl.c: New file.
25565 * lib/sincosl.c: New file.
25566 * lib/sinl.c: New file.
25567 * lib/sqrtl.c: New file.
25568 * lib/tanl.c: New file.
25569 * lib/trigl.c: New file.
25570 * lib/trigl.h: New file.
25572 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
25574 * m4/mathl.m4: New file.
25576 2003-02-18 Bruno Haible <bruno@clisp.org>
25578 * MODULES.html.sh (func_all_modules): Add mathl.
25580 2003-02-17 Bruno Haible <bruno@clisp.org>
25582 * modules/mkdtemp: New module.
25583 * MODULES.html.sh (func_all_modules): Add it.
25585 2003-02-17 Bruno Haible <bruno@clisp.org>
25587 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
25589 2003-02-17 Bruno Haible <bruno@clisp.org>
25591 * lib/mkdtemp.h: New file, from GNU gettext.
25592 * lib/mkdtemp.c: New file, from GNU gettext.
25594 2003-02-02 Jim Meyering <jim@meyering.net>
25596 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
25599 2003-01-31 Bruno Haible <bruno@clisp.org>
25601 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
25603 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
25605 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
25607 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
25610 2003-01-31 Bruno Haible <bruno@clisp.org>
25612 * lib/rename.c: #undef rename before defining rpl_rename.
25613 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
25615 2003-01-30 Bruno Haible <bruno@clisp.org>
25617 * modules/vasnprintf, modules/vasprintf: New modules.
25618 * MODULES.html.sh (func_all_modules): Add them.
25620 2003-01-30 Bruno Haible <bruno@clisp.org>
25622 * m4/signed.m4: New file, from GNU gettext.
25623 * m4/longdouble.m4: New file, from GNU gettext.
25624 * m4/wchar_t.m4: New file, from GNU gettext.
25625 * m4/wint_t.m4: New file, from GNU gettext.
25626 * m4/vasnprintf.m4: New file.
25627 * m4/vasprintf.m4: New file.
25629 2003-01-30 Bruno Haible <bruno@clisp.org>
25631 * lib/printf-args.h: New file, from GNU gettext.
25632 * lib/printf-args.c: New file, from GNU gettext.
25633 * lib/printf-parse.h: New file, from GNU gettext.
25634 * lib/printf-parse.c: New file, from GNU gettext.
25635 * lib/vasnprintf.h: New file, from GNU gettext.
25636 * lib/vasnprintf.c: New file, from GNU gettext.
25637 * lib/asnprintf.c: New file, from GNU gettext.
25638 * lib/vasprintf.h: New file, from GNU gettext with modifications.
25639 * lib/vasprintf.c: New file, from GNU gettext.
25640 * lib/asprintf.c: New file, from GNU gettext.
25642 2003-01-29 Bruno Haible <bruno@clisp.org>
25644 * modules/stpncpy: New module.
25645 * MODULES.html.sh (func_all_modules): Add it.
25647 2003-01-29 Bruno Haible <bruno@clisp.org>
25649 * m4/stpncpy.m4: New file.
25651 2003-01-29 Bruno Haible <bruno@clisp.org>
25653 * lib/stpncpy.h: New file, from GNU gettext with modifications.
25654 * lib/stpncpy.c: New file, from GNU gettext with modifications.
25656 2003-01-28 Bruno Haible <bruno@clisp.org>
25658 * modules/c-ctype: New module.
25659 * MODULES.html.sh (func_all_modules): Add it.
25661 2003-01-28 Bruno Haible <bruno@clisp.org>
25663 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
25665 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
25668 2003-01-27 Bruno Haible <bruno@clisp.org>
25670 * modules/xsetenv: New module.
25671 * MODULES.html.sh (func_all_modules): Add it.
25673 2003-01-27 Bruno Haible <bruno@clisp.org>
25675 * lib/xsetenv.h: New file, from GNU gettext.
25676 * lib/xsetenv.c: New file, from GNU gettext.
25678 2003-01-23 Jim Meyering <jim@meyering.net>
25680 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
25681 from working on systems without dirfd (at least Irix and OSF1/Tru64).
25683 2003-01-23 Bruno Haible <bruno@clisp.org>
25685 * modules/minmax: New module.
25686 * MODULES.html.sh (func_all_modules): Add it.
25688 2003-01-23 Bruno Haible <bruno@clisp.org>
25690 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
25693 2003-01-22 Bruno Haible <bruno@clisp.org>
25695 * modules/exit: New module.
25696 * MODULES.html.sh (func_all_modules): Add it.
25698 2003-01-22 Bruno Haible <bruno@clisp.org>
25700 * lib/exit.h: New file, from GNU gettext.
25702 2003-01-19 Bruno Haible <bruno@clisp.org>
25704 * gnulib-tool: Recognize option --extract-maintainer.
25705 (func_get_maintainer): New function.
25706 * modules/*: Add Maintainer entry.
25708 2003-01-16 Jim Meyering <jim@meyering.net>
25710 * m4/regex.m4: The `regex' struct is both input and output.
25711 Initialize it before each use. Patch by Tim Waugh.
25713 2003-01-16 Bruno Haible <bruno@clisp.org>
25715 * MODULES.html.sh: Add a table of contents. Add the module name as
25716 leftmost column. Add hyperlinks.
25718 2003-01-15 Bruno Haible <bruno@clisp.org>
25720 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
25722 2003-01-15 Bruno Haible <bruno@clisp.org>
25724 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
25725 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
25728 2003-01-15 Bruno Haible <bruno@clisp.org>
25730 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
25732 2003-01-15 Bruno Haible <bruno@clisp.org>
25734 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
25735 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
25737 2003-01-14 Jim Meyering <jim@meyering.net>
25739 * lib/same.c (same_name): Tweak a comment.
25741 2003-01-14 Bruno Haible <bruno@clisp.org>
25743 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
25744 when a string comparison is sufficient.
25746 2003-01-14 Bruno Haible <bruno@clisp.org>
25748 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
25751 2003-01-14 Bruno Haible <bruno@clisp.org>
25753 * lib/hash-pjw.c: Add comment about low quality of this function.
25755 2003-01-13 Bruno Haible <bruno@clisp.org>
25757 * modules/stpcpy: Distribute lib/stpcpy.h.
25758 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
25760 2003-01-13 Bruno Haible <bruno@clisp.org>
25762 * modules/*: Add a description.
25763 * modules/strpbrk: Fix Makefile.am snippet.
25764 * modules/strtoimax: Fix dependencies.
25765 * modules/strtoumax: Likewise.
25767 2003-01-13 Bruno Haible <bruno@clisp.org>
25769 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
25770 * modules/alloca (Makefile.am): All object files depend on alloca.h.
25771 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
25773 2003-01-13 Bruno Haible <bruno@clisp.org>
25775 * gnulib-tool (func_create_testdir): Store config/* files in the main
25777 * config.rpath: Move to ...
25778 * config/config.rpath: ... here.
25779 * modules/gettext: Contains config/config.rpath, not config.rpath.
25780 * modules/iconv: Likewise.
25782 2003-01-12 Paul Eggert <eggert@twinsun.com>
25784 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
25785 to avoid collisions with libcurses and libreadline.
25787 * m4/getstr.m4: Remove.
25788 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
25790 2003-01-12 Paul Eggert <eggert@twinsun.com>
25792 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
25793 to avoid collisions with libcurses and libreadline.
25795 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
25796 * lib/getstr.h, getstr.c: Remove.
25797 * lib/getline.c: Include "getline.h", to check interface.
25798 Move body of old getstr.c here: this defines MIN_CHUNK and
25799 declares getdelim2, which is renamed from getstr.
25800 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
25802 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
25804 * lib/linebuffer.h: Likewise.
25805 (readline): Remove backward-compatibility macro.
25807 2003-01-12 Paul Eggert <eggert@twinsun.com>
25809 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
25810 to avoid collisions with libcurses and libreadline.
25812 * MODULES.html.sh: Remove getstr.
25813 * modules/getline: Depend on unlocked-io, not getstr.
25815 2003-01-12 Jim Meyering <jim@meyering.net>
25817 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
25819 2003-01-10 Bruno Haible <bruno@clisp.org>
25821 * modules/alloca: Change Makefile.am requirements. Simplify Include
25822 requirements. Add lib/alloca_.h to file list.
25824 2003-01-10 Bruno Haible <bruno@clisp.org>
25826 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
25828 2003-01-10 Bruno Haible <bruno@clisp.org>
25830 * lib/alloca_.h: New file.
25831 * lib/getdate.y: Unconditionally include alloca.h.
25832 * lib/makepath.c: Likewise.
25833 * lib/setenv.c: Likewise.
25834 * lib/userspec.c: Likewise.
25836 2003-01-09 Karl Berry <karl@gnu.org>
25838 * MODULES.html.sh: include `dirname $0` in PATH, to find
25841 2003-01-09 Bruno Haible <bruno@clisp.org>
25843 * modules/stdbool: Change configure.ac, Makefile.am requirements.
25844 Simplify Include requirements. Add lib/stdbool.h.in to file list.
25846 2003-01-09 Bruno Haible <bruno@clisp.org>
25848 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
25850 2003-01-09 Bruno Haible <bruno@clisp.org>
25852 * lib/stdbool.h.in: New file.
25854 2003-01-09 Bruno Haible <bruno@clisp.org>
25856 * gnulib-tool (func_all_modules): Ignore files ending in ~.
25857 * MODULES.html.sh: Likewise.
25859 2003-01-08 Jim Meyering <jim@meyering.net>
25861 * lib/full-write.c: Undefine and define-away `const' after inclusion
25862 of errno.h, not before. Suggestion from Bruno Haible.
25864 2003-01-08 Bruno Haible <bruno@clisp.org>
25866 * modules/full-read: Depend on full-write.
25868 2003-01-08 Bruno Haible <bruno@clisp.org>
25870 * lib/safe-read.c: Include specification header first, to ensure its
25872 * lib/full-write.c: Likewise.
25874 2003-01-07 Jim Meyering <jim@meyering.net>
25876 * lib/full-write.c: Rework so that it may serve to define full_read,
25878 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
25880 2003-01-07 Bruno Haible <bruno@clisp.org>
25882 * lib/strtoimax.c: Include <stdint.h> as an alternative to
25884 * lib/xstrtol.h: Likewise.
25885 * lib/xstrtoimax.c: Likewise.
25886 * lib/xstrtoumax.c: Likewise.
25887 * lib/human.h: Likewise.
25889 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
25890 on systems that have <inttypes.h> but not <stdint.h>.
25892 2003-01-07 Bruno Haible <bruno@clisp.org>
25894 * MODULES.html.sh: Add copyright notice.
25895 (missed_files): Omit CVS directory entries.
25896 (func_module): Make it work with sed-3.02.
25897 * MODULES.txt: Remove file.
25899 2003-01-06 Jim Meyering <jim@meyering.net>
25901 * lib/version-etc.c: Update year in translatable copyright string.
25903 2003-01-03 Karl Berry <karl@gnu.org>
25905 * config/config.{guess,sub}: update from prep.
25907 2003-01-02 Karl Berry <karl@gnu.org>
25909 * doc/COPYING.DOC: belatedly updated to 1.2.
25911 2003-01-01 Karl Berry <karl@gnu.org>
25913 * gnulib-tool (func_verify_module): report module name $module in
25914 error message, not $1.
25915 * gnulib-tool (create-testdir): don't complain if destdir couldn't
25916 be created, only if it doesn't exist.
25917 * gnulib-tool (last_checkin_date): don't expand the $Date here.
25919 2002-12-31 Paul Eggert <eggert@twinsun.com>
25921 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
25923 2002-12-31 Paul Eggert <eggert@twinsun.com>
25925 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
25926 memcmp if strcoll doesn't work.
25928 2002-12-31 Bruno Haible <bruno@clisp.org>
25930 * lib/utime.c (utime_null): No need to call ftruncate if the file was
25933 2002-12-31 Bruno Haible <bruno@clisp.org>
25935 * lib/memcoll.c (STRCOLL): New macro.
25938 2002-12-31 Bruno Haible <bruno@clisp.org>
25940 * lib/localcharset.h: New file.
25941 * lib/localcharset.c: Include it.
25942 * lib/unicodeio.c: Likewise.
25944 2002-12-31 Bruno Haible <bruno@clisp.org>
25946 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
25947 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
25949 2002-12-31 Bruno Haible <bruno@clisp.org>
25951 * lib/getline.h: Include <stddef.h>, for size_t.
25953 * lib/unicodeio.h: Include <stddef.h>, for size_t.
25954 * lib/unicodeio.c: Don't include <stddef.h>.
25956 2002-12-31 Bruno Haible <bruno@clisp.org>
25958 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
25961 2002-12-24 Karl Berry <karl@gnu.org>
25963 * config/config.guess: update from prep.
25965 2002-12-24 Bruno Haible <bruno@clisp.org>
25967 General infrasructure.
25968 * m4/README: Rewritten.
25969 * m4/onceonly.m4: New file.
25970 * m4/onceonly_2_57.m4: New file.
25973 * m4/atexit.m4: New file.
25976 * m4/strtod.m4: New file.
25979 * m4/strtol.m4: New file.
25982 * m4/strtoul.m4: New file.
25985 * m4/memchr.m4: New file.
25988 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
25989 (jm_FUNC_MEMCMP): Invoke it.
25992 * m4/memcpy.m4: New file.
25995 * m4/memmove.m4: New file.
25998 * m4/memset.m4: New file.
26001 * m4/strcspn.m4: New file.
26004 * m4/strpbrk.m4: New file.
26007 * m4/strstr.m4: New file.
26010 * m4/strerror.m4: New file.
26013 * m4/mktime.m4: Renamed from jm-mktime.m4.
26014 (gl_PREREQ_MKTIME): New macro.
26015 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
26018 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
26019 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
26020 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
26023 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
26024 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
26025 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
26028 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
26029 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
26030 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
26032 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
26035 * m4/xalloc.m4: New file.
26038 * m4/alloca.m4: New file.
26041 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
26042 (jm_FUNC_PUTENV): Invoke it.
26045 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
26046 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
26047 when invoked twice.
26048 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
26052 * m4/memrchr.m4: New file.
26055 * m4/stpcpy.m4: New file.
26058 * m4/strcase.m4: New file.
26061 * m4/strdup.m4: New file.
26064 * m4/strnlen.m4: New file.
26067 * m4/strndup.m4: New file.
26070 * m4/xstrtod.m4: New file.
26073 * m4/xstrtol.m4: New file.
26076 * m4/getdate.m4: New file.
26078 Module unlocked-io.
26079 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
26080 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
26081 * m4/jm-glibc-io.m4n: Remove file.
26083 Module long-options.
26084 * m4/long-options.m4: New file.
26087 * m4/md5.m4: New file.
26090 * m4/sha.m4: New file.
26093 * m4/getstr.m4: New file.
26096 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
26097 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
26098 <sys/types.h>, for size_t. Use the function name gnu_getline, not
26099 simply getline. Infoke gl_PREREQ_GETLINE.
26102 * m4/obstack.m4: New file.
26105 * m4/hash.m4: New file.
26108 * m4/readtokens.m4: New file.
26111 * m4/strverscmp.m4: New file.
26114 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
26118 * m4/strtoll.m4: New file.
26121 * m4/strtoull.m4: New file.
26124 * m4/strtoimax.m4: New file.
26127 * m4/strtoumax.m4: New file.
26130 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
26131 jm_AC_PREREQ_XSTRTOIMAX.
26132 Moved the strtol prerequisites to strtol.m4.
26133 Moved the strtoll prerequisites to strtoll.m4.
26134 Moved the strtoimax prerequisites to strtoimax.m4.
26137 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
26138 jm_AC_PREREQ_XSTRTOUMAX.
26139 Moved the strtoul prerequisites to strtoul.m4.
26140 Moved the strtoull prerequisites to strtoull.m4.
26141 Moved the strtoumax prerequisites to strtoumax.m4.
26144 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
26145 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
26148 * m4/dup2.m4: New file.
26151 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
26152 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
26155 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
26156 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
26158 Module gettimeofday.
26159 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
26160 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
26161 gl_PREREQ_GETTIMEOFDAY.
26164 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
26165 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
26168 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
26169 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
26170 jm_AC_TYPE_UINTMAX_T.
26171 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
26174 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
26175 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
26178 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
26179 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
26182 * m4/timespec.m4 (gl_TIMESPEC): New macro.
26183 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
26184 * m4/st_mtim.m4: Indentation.
26187 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
26188 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
26189 gl_PREREQ_NANOSLEEP.
26192 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
26193 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
26194 (gl_REGEX): New macro.
26197 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
26198 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
26201 * m4/rmdir.m4: New file.
26204 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
26205 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
26206 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
26209 * m4/dirname.m4: New file.
26212 * m4/getopt.m4: New file.
26214 Module unistd-safer.
26215 * m4/unistd-safer.m4: New file.
26218 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
26220 (gl_PREREQ_FNMATCH_EXTRA): New macro.
26221 (gl_FUNC_FNMATCH_POSIX): New macro.
26222 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
26223 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
26227 * m4/exclude.m4: New file.
26230 * m4/human.m4: New file.
26236 * m4/backupfile.m4: New file.
26237 * m4/d-ino.m4: Indentation.
26240 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
26241 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
26242 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
26245 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
26249 * m4/euidaccess.m4: New file.
26252 * m4/file-type.m4: New file.
26255 * m4/fileblocks.m4: New file.
26258 * m4/filemode.m4: New file.
26261 * m4/isdir.m4: New file.
26264 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
26265 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
26268 * m4/makepath.m4: New file.
26271 * m4/modechange.m4: New file.
26274 * m4/mountlist.m4: New file.
26275 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
26278 Module path-concat.
26279 * m4/path-concat.m4: New file.
26282 * m4/pathmax.m4: New file.
26285 * m4/same.m4: New file.
26288 * m4/save-cwd.m4: New file.
26291 * m4/savedir.m4: New file.
26294 * m4/xgetcwd.m4: New file.
26295 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
26298 * m4/xreadlink.m4: New file.
26301 * m4/safe-read.m4: New file.
26304 * m4/safe-write.m4: New file.
26307 * m4/closeout.m4: New file.
26309 Module stdio-safer.
26310 * m4/stdio-safer.m4: New file.
26313 * m4/getpass.m4: New file.
26316 * m4/getugroups.m4: New file.
26318 Module group-member.
26319 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
26320 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
26323 * m4/idcache.m4: New file.
26326 * m4/userspec.m4: New file.
26329 * m4/clock_time.m4: New file.
26330 * m4/gettime.m4: New file.
26333 * m4/settime.m4: New file.
26336 * m4/posixtm.m4: New file.
26338 Module gethostname.
26339 * m4/gethostname.m4: New file.
26342 * m4/canon-host.m4: New file.
26345 * m4/codeset.m4: New file, from gettext-0.11.5.
26346 * m4/gettext.m4: New file, from gettext-0.11.5.
26347 * m4/glibc21.m4: New file, from gettext-0.11.5.
26348 * m4/iconv.m4: New file, from gettext-0.11.5.
26349 * m4/intdiv0.m4: New file, from gettext-0.11.5.
26350 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
26351 * m4/inttypes.m4: New file, from gettext-0.11.5.
26352 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
26353 * m4/isc-posix.m4: New file, from gettext-0.11.5.
26354 * m4/lcmessage.m4: New file, from gettext-0.11.5.
26355 * m4/lib-ld.m4: New file, from gettext-0.11.5.
26356 * m4/lib-link.m4: New file, from gettext-0.11.5.
26357 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
26358 * m4/progtest.m4: New file, from gettext-0.11.5.
26359 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
26360 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
26361 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
26363 Module localcharset.
26364 * m4/localcharset.m4: New file.
26366 Module hard-locale.
26367 * m4/hard-locale.m4: New file.
26370 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
26372 * m4/mbrtowc.m4: Add comment.
26375 * m4/memcasecmp.m4: New file.
26378 * m4/memcoll.m4: New file.
26381 * m4/unicodeio.m4: New file.
26384 * m4/rpmatch.m4: New file.
26387 * m4/yesno.m4: New file.
26390 * m4/exitfail.m4: New file.
26393 * m4/c-stack.m4 (gl_C_STACK): New macro.
26394 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
26397 * m4/error.m4 (gl_ERROR): New macro.
26398 (jm_PREREQ_ERROR): Use onceonly macros.
26401 * m4/fatal.m4: New file.
26404 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
26405 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
26407 Module getpagesize.
26408 * m4/getpagesize.m4: New file.
26410 Module getusershell.
26411 * m4/getusershell.m4: New file.
26414 * m4/physmem.m4: New file.
26417 * m4/posixver.m4: New file.
26420 * m4/quotearg.m4: New file.
26423 * m4/quote.m4: New file.
26426 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
26429 * m4/sig2str.m4: New file.
26432 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
26434 * m4/intmax_t.m4: New file.
26435 * m4/d-type.m4: Indentation.
26436 * m4/jm-macros.m4: Update.
26437 * m4/prereq.m4 (jm_PREREQ): Update.
26438 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
26439 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
26440 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
26441 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
26442 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
26443 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
26444 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
26445 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
26446 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
26447 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
26448 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
26449 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
26450 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
26451 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
26452 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
26453 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
26454 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
26455 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
26456 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
26458 2002-12-24 Bruno Haible <bruno@clisp.org>
26460 * MODULES.txt: Update according to m4/ changes.
26463 * config.rpath: New file, from gettext-0.11.5.
26465 * modules/*: New module descriptions.
26466 * gnulib-tool: New file.
26467 * MODULES.html.sh: New file.
26469 2002-12-21 Karl Berry <karl@gnu.org>
26471 * doc/fdl.texi: update to version 1.2.
26473 2002-12-19 Karl Berry <karl@gnu.org>
26475 * config/config.guess: update from prep.
26477 2002-12-18 Bruno Haible <bruno@clisp.org>
26479 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
26480 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
26482 2002-12-17 Bruno Haible <bruno@clisp.org>
26484 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
26485 stdlib.h, string.h.
26487 2002-12-17 Bruno Haible <bruno@clisp.org>
26489 * lib/canon-host.c (strdup): Remove unused declaration.
26491 * lib/fsusage.c: Include full_read.h.
26492 (get_fs_usage): Use full_read instead of safe_read.
26494 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
26496 2002-12-12 Karl Berry <karl@gnu.org>
26498 * config/config.guess: update from prep.
26500 2002-12-11 Bruno Haible <bruno@clisp.org>
26502 * m4/setenv.m4: New file, from gettext-0.11.5.
26504 2002-12-11 Bruno Haible <bruno@clisp.org>
26506 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
26508 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
26511 2002-12-11 Bruno Haible <bruno@clisp.org>
26513 * setenv.c (alloca): Fall back to malloc.
26514 (freea): New macro.
26515 (setenv): Use freea() to free memory allocated with alloca().
26517 2002-11-13 Bruno Haible <bruno@clisp.org>
26519 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
26520 function declarations.
26521 * unsetenv.c (unsetenv): Likewise.
26523 2002-03-04 Bruno Haible <bruno@clisp.org>
26525 Portability to AIX 4.3.3.
26526 * unsetenv.c: New file, extracted from setenv.c.
26527 * setenv.c: Move the unsetenv() function to unsetenv.c.
26529 2001-12-20 Bruno Haible <bruno@clisp.org>
26531 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
26532 use malloc instead. For SunOS 4.
26534 2001-12-11 Bruno Haible <bruno@clisp.org>
26536 * setenv.c: Declare alloca.
26537 (compar_fn_t): New typedef.
26538 (KNOWN_VALUE, STORE_VALUE): Use it.
26540 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
26543 2002-12-10 Paul Eggert <eggert@twinsun.com>
26545 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
26546 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
26547 Choose values that are less likely to collide with system fnmatch
26549 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
26550 defined (e.g., a pure POSIX system).
26551 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
26552 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
26554 2002-12-06 Paul Eggert <eggert@twinsun.com>
26556 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
26557 a pain in practice to deal with generated m4 files. This change
26558 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
26560 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
26561 and jm-glibc-io.m4, as they are no longer a special case.
26562 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
26563 kludge and the auto-generation stuff. Check only whether the
26564 functions are declared, not whether they exist, since older hosts
26565 that don't declare the functions can't use the optimization anyway.
26567 2002-12-06 Jim Meyering <jim@meyering.net>
26569 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
26571 Merge in changes from libc's misc/error.c, in preparation
26572 for the merge of gnulib's changes back into libc.
26574 * lib/error.c (_): Define only if not already defined.
26575 Move definition to follow all #include directives.
26576 Include unlocked-io.h only if !_LIBC.
26577 [_LIBC]: Include <libio/libioP.h>.
26578 [USE_IN_LIBIO]: Include <libio/iolibio.h>
26579 (fflush): Tweak definition to use INTUSE.
26582 2002-12-05 Paul Eggert <eggert@twinsun.com>
26584 * lib/alloca.c [defined emacs]: Include "lisp.h".
26585 (xalloc_die) [defined emacs]: New macro.
26586 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
26587 [! defined emacs]: Include <xalloc.h>.
26588 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
26589 (pointer): Typedef to POINTER_TYPE *.
26590 (malloc): Remove decl; we now always use xmalloc.
26591 (alloca): Use old-style definition, since Emacs needs this.
26592 Check for arithmetic overflow when computing combined size.
26594 2002-12-04 Paul Eggert <eggert@twinsun.com>
26596 Do not generate unlocked-io.h automatically, since it's easier to
26597 maintain it by hand.
26599 * lib/unlocked-io.h: New file, from GNU diffutils,
26600 but with proper copyright notice and attribution.
26601 * lib/gen-uio: Remove.
26602 * lib/Makefile.am: Add copyright notice.
26603 (libfetish_a_SOURCES): Add unlocked-io.h.
26604 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
26605 (DISTCLEANFILES, io_functions): Remove macros.
26606 (EXTRA_DIST): Remove gen_uio.
26607 (unlocked-io.h): Remove rule.
26609 2002-12-04 Jim Meyering <jim@meyering.net>
26611 Reflect the fact that stat.c and lstat.c are no longer generated.
26612 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
26613 (DISTCLEANFILES): Likewise.
26614 (EXTRA_DIST): Likewise.
26615 (all_local): Don't depend on stat.c or lstat.c.
26616 (stat.c, lstat.c): Remove rules.
26617 (EXTRA_DIST): Remove xstat.in.
26619 * lib/xstat.in: Remove file. Contents moved into stat.c.
26620 * lib/stat.c: New file. Contents mostly from xstat.in.
26621 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
26622 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
26624 * lib/safe-read.c: Rework so that it may serve to define safe_write,
26626 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
26628 2002-12-03 Jim Meyering <jim@meyering.net>
26630 * lib/safe-read.c, safe-write.c: Change variable names and comments,
26631 but not semantics, to minimize the differences between these two files.
26632 (safe_read): Change comment to mention SAFE_READ_ERROR.
26634 * lib/safe-read.c (IS_EINTR): Define.
26635 (safe_read): Use IS_EINTR in place of in-function cpp directives.
26637 2002-12-02 Jim Meyering <jim@meyering.net>
26639 * lib/safe-read.c (EINTR): Define.
26640 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
26641 (INT_MAX): Provide fallback.
26642 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
26644 * lib/safe-read.h (SAFE_READ_ERROR): Define.
26646 2002-12-02 Bruno Haible <bruno@clisp.org>
26648 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
26649 Define, taken from safe-read.c.
26650 (INT_MAX): Provide fallback.
26651 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
26652 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
26654 * lib/safe-read.c (EINTR): Remove definition.
26655 (safe_read): Don't use EINTR if it is absent.
26657 2002-12-01 Jim Meyering <jim@meyering.net>
26659 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
26661 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
26663 2002-11-27 Paul Eggert <eggert@twinsun.com>
26665 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
26666 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
26667 with `if (! (value < limit)) abort ();', for readability.
26669 2002-11-26 Karl Berry <karl@gnu.org>
26671 * lib/strdup.c: copy from libc again, with jim's ok.
26672 * lib/.cppi-disable: re-add strdup.c
26674 2002-11-25 Karl Berry <karl@gnu.org>
26676 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
26677 instead of "strtol.c".
26679 2002-11-25 Karl Berry <karl@gnu.org>
26681 * config/install-sh: update from automake for variable quoting, $0 in
26684 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
26685 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
26688 2002-11-25 Jim Meyering <jim@meyering.net>
26690 * lib/mktime.c: Sync from libc, now that it has the latest fix.
26692 2002-11-24 Karl Berry <karl@gnu.org>
26694 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
26695 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
26697 2002-11-24 Jim Meyering <jim@meyering.net>
26699 Update from coreutils:
26701 * lib/mktime.c: Merge in changes from libc.
26703 Avoid a link-time failure on some Linux systems.
26704 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
26706 (__mon_yday): Declare with the STATIC attribute.
26707 (__mktime_internal): Likewise.
26708 Based on a report from Greg Schafer.
26710 2002-11-23 Jim Meyering <jim@meyering.net>
26712 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
26713 Use `unsigned', not `int', as type of index.
26715 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
26717 * lib/fsusage.c: Remove unneeded parentheses around operands of
26720 2002-11-22 Paul Eggert <eggert@twinsun.com>
26722 * lib/quotearg.h: Allow multiple inclusion by surrounding with
26723 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
26724 so that we can be included first.
26725 (PARAMS): Remove; we now assume C89 or later. All uses removed.
26726 * lib/quotearg.c: Include quotearg.h immediately after config.h.
26727 No need to include stddef.h or sys/types.h any more.
26728 Surround local include files with "", not "<>".
26729 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
26730 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
26731 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
26732 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
26733 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
26734 (ISPRINT): Remove; no longer needed now that we assume C89.
26736 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
26739 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
26740 quotearg_char): Use SIZE_MAX rather than
26741 (size_t) -1 when we are talking about "infinity".
26743 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
26745 2002-11-22 Paul Eggert <eggert@twinsun.com>
26747 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
26748 hint that one should use `if (! x) abort ();' rather than `assert
26749 (x);', and anyway it's one less thing to worry about configuring.
26750 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
26751 hash_rehash, hash_insert): Use abort rather than assert.
26753 2002-11-22 Bruno Haible <bruno@clisp.org>
26755 * lib/safe-read.h: Assume C89. Add comments.
26756 (safe_read): Change return type to size_t.
26757 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
26758 byte counts > SSIZE_MAX correctly.
26759 * lib/safe-write.h: New file.
26760 * lib/safe-write.c: New file.
26761 * lib/full-read.h: New file.
26762 * lib/full-read.c: New file.
26763 * lib/full-write.h: Assume C89. Add comments.
26764 * lib/full-write.c: Include safe-write.h.
26765 (full_write): Rewritten to use safe_write.
26766 Suggested by Jim Meyering and Paul Eggert.
26768 2002-11-21 Jim Meyering <jim@meyering.net>
26770 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
26772 Merge in changes from the coreutils.
26774 2002-09-25 Paul Eggert <eggert@twinsun.com>
26775 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
26777 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
26778 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
26779 int. Work more efficiently if X is the same width as uintmax_t.
26780 Do not compare X to -1, to avoid bogus compiler warning.
26781 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
26782 Don't assume that f_frsize and f_bsize are the same type.
26784 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
26785 warning on FreeBSD.
26787 * lib/makepath.c (make_path): Restore umask *before* creating the final
26789 (make_path): Minor reformatting.
26791 * lib/xmalloc.c: Adjust to work with new autoconf macros,
26792 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
26793 HAVE_MALLOC/HAVE_REALLOC.
26795 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
26796 dummy ones. At least on GNU/Linux systems, `auto' means something
26798 From Michael Stone.
26800 2002-11-21 Bruno Haible <bruno@clisp.org>
26802 Remove case insensitive option matching.
26803 * lib/argmatch.h (argcasematch): Remove declaration.
26804 (ARGCASEMATCH): Remove macro.
26805 (__xargmatch_internal): Remove case_sensitive argument.
26806 (XARGMATCH): Update.
26807 (XARGCASEMATCH): Remove macro.
26808 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
26809 case_sensitive argument.
26810 (argcasematch): Remove function.
26811 (__xargmatch_internal): Remove case_sensitive argument.
26812 (main): Use XARGMATCH instead of XARGCASEMATCH.
26814 * lib/xmalloc.c: Change compile-time error message. Add comment about
26815 required autoconf version.
26817 2002-11-20 Paul Eggert <eggert@twinsun.com>
26819 Merge argmatch cleanups from Bison. Assume C89.
26821 * lib/argmatch.c: Include config.h here, not in argmatch.h.
26822 Include stdlib.h, for EXIT_FAILURE.
26823 Always include <string.h>, since we assume C89.
26824 (EXIT_FAILURE): Remove pre-C89 bug workaround.
26825 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
26826 Include <stddef.h> instead, since it's all we need for size_t.
26827 (PARAMS): Remove. All uses removed.
26828 (ARRAY_CARDINALITY): Do not bother to #undef.
26829 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
26830 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
26831 Remove unnecessary parentheses.
26832 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
26833 Insert necessary parentheses.
26834 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
26835 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
26837 2002-11-19 Bruno Haible <bruno@clisp.org>
26839 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
26840 * lib/mbswidth.h: Include <stddef.h>, for size_t.
26842 * lib/mbswidth.h (PARAMS): Remove macro.
26843 (mbswidth, mbsnwidth): Use ANSI C function declarations.
26844 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
26846 * lib/gcd.h (PARAMS): Remove macro.
26847 (gcd): Use ANSI C function declarations.
26848 * lib/gcd.c (gcd): Likewise.
26850 2002-11-15 Bruno Haible <bruno@clisp.org>
26852 * lib/strcspn.c: Include <stddef.h>.
26853 (strcspn): Use ANSI C function declaration. Change return type to
26855 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
26856 (strpbrk): Use NULL.
26857 * lib/strpbrk.h (PARAMS): Remove macro.
26858 (strpbrk): Use ANSI C function declaration.
26859 * lib/strstr.c: Don't include <sys/types.h>.
26860 * lib/strstr.h (PARAMS): Remove macro.
26861 (strstr): Use ANSI C function declarations.
26863 2002-11-14 Karl Berry <karl@gnu.org>
26865 * config/mkinstalldirs: `do' on separate line, instead of
26868 2002-11-06 Bruno Haible <bruno@clisp.org>
26870 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
26871 * lib/gcd.c (gcd): Likewise.
26873 2002-11-05 Bruno Haible <bruno@clisp.org>
26875 * lib/gcd.h: New file, from gettext-0.11.5.
26876 * lib/gcd.c: New file, from gettext-0.11.5.
26878 2002-11-05 Bruno Haible <bruno@clisp.org>
26880 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
26881 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
26882 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
26883 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
26885 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
26887 * lib/makepath.c: Include gettext.h instead of <locale.h> and
26890 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
26891 * lib/human.c: Include gettext.h instead of <libintl.h>.
26892 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
26893 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
26894 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
26895 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
26896 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
26897 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
26898 (textdomain): Remove definition.
26899 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
26901 * lib/long-options.c: Remove include of <libintl.h> and definition of
26903 * lib/same.c: Remove include of <libintl.h> and definition of _.
26905 2002-11-04 Owen Taylor <otaylor@redhat.com>
26907 * lib/config.charset: A few additions for Solaris.
26909 2002-11-04 Bruno Haible <haible@clisp.cons.org>
26911 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
26912 * lib/localcharset.c (locale_charset): Declare as extern "C".
26914 2002-11-04 Bruno Haible <haible@clisp.cons.org>
26916 * lib/config.charset: msdos in uk_UA uses CP1125.
26918 2002-11-04 Bruno Haible <bruno@clisp.org>
26920 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
26921 * lib/strcase.h: New file, from GNU gettext-0.11.5.
26922 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
26923 * lib/strstr.h: New file, from GNU gettext-0.11.5.
26924 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
26926 2002-11-04 Bruno Haible <bruno@clisp.org>
26928 * lib/localcharset.c (locale_charset): Don't return an empty string.
26930 2002-11-04 Bruno Haible <bruno@clisp.org>
26932 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
26935 2002-11-04 Bruno Haible <bruno@clisp.org>
26937 * lib/config.charset: Update for newest glibc. Add canonical names
26938 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
26940 2002-11-04 Bruno Haible <bruno@clisp.org>
26942 * lib/config.charset: Add support for NetBSD.
26944 2002-11-04 Bruno Haible <bruno@clisp.org>
26946 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
26948 2002-11-01 Bruno Haible <bruno@clisp.org>
26950 * configure.in: Add AC_CONFIG_AUX_DIR call.
26951 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
26953 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
26955 2002-09-28 Karl Berry <karl@gnu.org>
26957 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
26958 installed automake until the next release, since changes have been
26961 2002-09-25 Karl Berry <karl@gnu.org>
26963 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
26964 * lib/getopt*: copy from libc/posix.
26965 * lib/gettext.h: copy from gettext.
26966 * lib/.cppi-disable: add strdup.c, gettext.h.
26968 2002-09-25 Karl Berry <karl@gnu.org>
26970 * config/srclist.txt: enable gettext.h check.
26971 * config/config.{guess,sub}: update from prep.
26972 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
26973 from automake 1.6.3.
26976 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
26978 * regex.c (PATFETCH): Remove the translating fetch.
26979 (PATFETCH_RAW): Rename to PATFETCH.
26980 (set_image_of_range): New fun.
26981 (SET_RANGE_TABLE_WORK_AREA): Use it.
26982 (regex_compile): Don't translate the pattern chars so eagerly.
26983 Only do it when inserting an `exactn' bytecode or when handling
26985 (mutually_exclusive_p): Avoid empty statement.
26987 2002-07-06 Jim Meyering <meyering@lucent.com>
26989 * m4/README: Don't mention Makefile.am.in.
26990 Outline how I've tested changes to .m4 files. Yep, it's a pain.
26992 2002-07-01 Jim Meyering <meyering@lucent.com>
26994 * lib/c-stack.c: Include sys/time.h.
26995 From Volker Borchert.
26997 2002-06-26 Paul Eggert <eggert@twinsun.com>
26999 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
27001 2002-06-26 Paul Eggert <eggert@twinsun.com>
27003 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
27004 New macro. Use it uniformly instead of
27005 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
27006 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
27007 reported by Vin Shelton.
27009 2002-06-22 Paul Eggert <eggert@twinsun.com>
27011 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
27012 Do not assume SA_SIGINFO behavior.
27013 Bug reported by Jim Meyering on NetBSD 1.5.2.
27015 2002-06-22 Jim Meyering <meyering@lucent.com>
27017 * m4/c-stack.m4: New file, from diffutils-2.8.2.
27018 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
27020 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
27021 now that configure.ac uses AC_GNU_SOURCE.
27022 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
27023 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
27025 Update to latest tools. Suggestions from Paul Eggert.
27026 * m4/stdbool.m4: New file, from diffutils-2.8.2.
27027 * m4/gnu-source.m4: Update from diffutils-2.8.2.
27028 * m4/fnmatch.m4: Likewise.
27029 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
27030 to AC_HEADER_STDBOOL
27032 2002-06-22 Jim Meyering <meyering@lucent.com>
27034 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
27035 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
27037 2002-06-22 Jim Meyering <meyering@lucent.com>
27039 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
27041 * lib/exitfail.c, exitfail.h: Likewise.
27042 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
27044 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
27046 (EXTRA_DIST): Add fnmatch_loop.c.
27047 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
27049 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
27050 * lib/fnmatch.c: Update from diffutils-2.8.2.
27051 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
27052 * lib/fnmatch.h: Remove file.
27054 2002-06-21 Jim Meyering <meyering@lucent.com>
27056 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
27057 * m4/mbrtowc.m4: Likewise.
27059 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
27060 * m4/mbswidth.m4: Reflect name change:
27061 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
27062 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27064 * m4/lib-link.m4: Update from gettext-0.11.2.
27065 * m4/gettext.m4: Likewise.
27067 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
27068 From Alfred M. Szmidt.
27070 2002-06-18 Paul Eggert <eggert@twinsun.com>
27072 * lib/file-type.h: Report an error if neither S_ISREG nor
27073 S_IFREG is defined, instead of using a test specific to glibc
27074 2.2. This should be safe, since POSIX requires S_ISREG and
27075 Unix Version 7 had S_IFREG. We don't need to check for
27076 <sys/types.h> since we don't use any symbols that it defines.
27078 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
27080 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
27081 $@-t, so that each temporary file name is unique and valid in the first
27082 8 characters, for operation under DOS.
27084 2002-06-15 Paul Eggert <eggert@twinsun.com>
27086 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
27088 2002-06-15 Jim Meyering <meyering@lucent.com>
27090 Work even with DJGPP 2.03, which lacks support for symlinks.
27092 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
27094 * lib/lchown.c (S_ISLNK): Likewise.
27096 2002-06-15 Jim Meyering <meyering@lucent.com>
27098 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
27099 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
27100 have been included before this file.
27102 2002-06-14 Jim Meyering <meyering@lucent.com>
27104 * lib/file-type.h: Use the version from diffutils-2.8.2.
27105 * lib/file-type.c: Likewise.
27107 2002-06-07 Jim Meyering <meyering@lucent.com>
27109 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
27110 They're needed at least for NetBSD 1.5.2.
27111 ($statxfs_includes): Include those same headers.
27112 ($statxfs_includes): Include sys/vfs.h if available.
27113 ($statxfs_includes): Likewise for sys/statvfs.h.
27114 Check for the following members in both structs statfs and statvfs:
27115 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
27117 2002-06-01 Jim Meyering <meyering@lucent.com>
27119 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
27120 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
27122 2002-05-28 Jim Meyering <meyering@lucent.com>
27124 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
27125 Reported by Volker Borchert.
27127 2002-05-27 Jim Meyering <meyering@lucent.com>
27129 Fix a problem seen only on nonconforming systems whereby ls.c's
27130 use of localtime, and then of gettimeofday would cause trouble:
27131 the localtime call used to initialize rpl_gettimeofday's save
27132 mechanism would clobber ls's current local time information so
27133 that in any long listing the first file would always be listed
27134 with date 1970-01-01. Analysis by Volker Borchert.
27136 * lib/gettimeofday.c (localtime): Undefine.
27137 (rpl_localtime): New function.
27139 2002-05-27 Jim Meyering <meyering@lucent.com>
27141 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
27144 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
27145 use the replacement function; it wouldn't resolve at link time.
27146 Reported by Volker Borchert.
27148 2002-05-22 Jim Meyering <meyering@lucent.com>
27150 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
27152 * lib/file-type.h: New file.
27153 * lib/file-type.c (file_type): New file/function. Extracted from
27156 2002-04-30 Jim Meyering <meyering@lucent.com>
27158 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
27160 2002-04-29 Paul Eggert <eggert@twinsun.com>
27162 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
27164 2002-04-29 Paul Eggert <eggert@twinsun.com>
27166 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
27167 Do not check for alloca.h (no longer used) or stdbool.h (was never
27168 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
27170 2002-04-29 Paul Eggert <eggert@twinsun.com>
27172 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
27174 2002-04-29 Jim Meyering <meyering@lucent.com>
27176 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
27177 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
27178 Use AC_FUNC_STRNLEN here instead.
27180 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
27181 With autoconf-2.53a, it's part of AC_PROG_CC.
27183 2002-04-28 Paul Eggert <eggert@twinsun.com>
27185 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
27186 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
27188 2002-04-28 Paul Eggert <eggert@twinsun.com>
27190 * lib/sig2str.h, lib/sig2str.c: New files.
27191 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
27193 2002-04-28 Paul Eggert <eggert@twinsun.com>
27195 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
27196 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
27197 of 127, since 64 is the largest conceivable number for ancient
27199 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
27201 2002-04-28 Jim Meyering <meyering@lucent.com>
27203 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
27205 2002-04-24 Jim Meyering <meyering@lucent.com>
27207 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
27208 (jm_PREREQ): Use it.
27210 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
27211 mach/mach.h fcntl.h.
27212 Check for this function: setlocale.
27214 2002-04-24 Jim Meyering <meyering@lucent.com>
27216 * lib/gettext.h: New file, from Gettext.
27217 * lib/Makefile.am (INCLUDES): Remove -I../intl.
27218 (libfetish_a_SOURCES): Add gettext.h.
27220 2002-04-16 Jim Meyering <meyering@lucent.com>
27222 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
27223 ut_pid, ut_id, ut_exit.
27225 2002-04-16 Jim Meyering <meyering@lucent.com>
27227 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
27228 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
27229 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
27231 2002-04-12 Jim Meyering <meyering@lucent.com>
27233 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
27234 now-bogus check for f_type in sys/mount.h. Instead, just test for the
27235 existence of the getmntinfo function. Needed for Darwin 5.3.
27237 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
27238 This is necessary at least on Darwin 5.3.
27240 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
27241 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
27242 strnlen.o in the library, and that makes some versions of ranlib
27245 2002-04-12 Jim Meyering <meyering@lucent.com>
27247 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
27249 2002-04-09 Jim Meyering <meyering@lucent.com>
27251 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
27252 to be more precise. Rather than saying we're checking whether the
27253 function `works', say what we're testing.
27254 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
27255 Reported by Bruno Haible.
27257 2002-03-10 Jim Meyering <meyering@lucent.com>
27259 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
27260 Suggestion from Santiago Vila.
27262 2002-03-08 Jim Meyering <meyering@lucent.com>
27264 * lib/rename.c: Mention that this wrapper is needed also on
27265 mips-dec-ultrix4.4 systems.
27267 2002-03-02 Jim Meyering <meyering@lucent.com>
27269 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
27270 not HAVE_CLOCK_SETTIME.
27272 2002-02-27 Paul Eggert <eggert@twinsun.com>
27274 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
27275 Check for clock_settime.
27277 2002-02-27 Paul Eggert <eggert@twinsun.com>
27279 * lib/nanosleep.h: Rename to....
27280 * lib/timespec.h: New name for nanosleep.h. All uses changed.
27282 * lib/gettime.c: New file.
27283 * lib/settime.c: New file.
27284 * lib/stime.c: Remove.
27286 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
27287 timespec.h. Remove nanosleep.h.
27289 2002-02-25 Paul Eggert <eggert@twinsun.com>
27291 * m4/acl.m4: New file.
27292 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
27293 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
27295 2002-02-25 Paul Eggert <eggert@twinsun.com>
27297 * lib/acl.c, lib/acl.h: New files.
27298 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
27300 2002-02-24 Jim Meyering <meyering@lucent.com>
27302 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
27303 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
27304 cause trouble. Reported by Nelson Beebe.
27306 2002-02-23 Paul Eggert <eggert@twinsun.com>
27308 * lib/path-concat.c (xpath_concat): Reorder code to pacify
27309 compilers that don't know that xalloc_die never returns.
27311 2002-02-20 Jim Meyering <meyering@lucent.com>
27313 * lib/getdate.c: Regenerate using bison-1.33.
27315 2002-02-17 Jim Meyering <meyering@lucent.com>
27317 * config/config.guess (main): Don't use `head -1'; it's no longer
27318 portable. Use `sed 1q' instead.
27320 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
27322 * m4/codeset.m4: Upgrade to gettext-0.11.
27323 * m4/gettext.m4: Upgrade to gettext-0.11.
27324 * m4/glibc21.m4: Upgrade to gettext-0.11.
27325 * m4/iconv.m4: Upgrade to gettext-0.11.
27326 * m4/isc-posix.m4: Upgrade to gettext-0.11.
27327 * m4/lcmessage.m4: Upgrade to gettext-0.11.
27328 * m4/lib-ld.m4: New file, from gettext-0.11.
27329 * m4/lib-link.m4: New file, from gettext-0.11.
27330 * m4/lib-prefix.m4: New file, from gettext-0.11.
27331 * m4/progtest.m4: Upgrade to gettext-0.11.
27333 2002-02-15 Paul Eggert <eggert@twinsun.com>
27335 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
27336 (jm_PREREQ): Use it.
27338 2002-02-15 Paul Eggert <eggert@twinsun.com>
27340 * lib/posixver.c, lib/posixver.h: New files.
27341 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27343 2002-02-02 Paul Eggert <eggert@twinsun.com>
27344 Bruno Haible <bruno@clisp.org>
27346 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
27347 (fwrite_success_callback): New declaration.
27348 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
27349 print_unicode_char. Call failure callback instead of error.
27350 (fwrite_success_callback): New function.
27351 (exit_failure_callback): New function.
27352 (fallback_failure_callback): New function.
27353 (print_unicode_char): Call unicode_to_mb.
27355 2002-01-26 Jim Meyering <meyering@lucent.com>
27357 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
27358 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
27360 2002-01-26 Jim Meyering <meyering@lucent.com>
27362 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
27364 2002-01-22 Paul Eggert <eggert@twinsun.com>
27366 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
27368 2002-01-22 Jim Meyering <meyering@lucent.com>
27370 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
27371 Otherwise, some versions of automake would omit the rule that makes
27372 Makefile from Makefile.in.
27374 2002-01-21 Paul Eggert <eggert@twinsun.com>
27376 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
27377 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
27378 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
27379 (memcoll): Set errno to zero if there is no error.
27381 * lib/quotearg.c (quotearg_buffer_restyled):
27382 Fix bug with quoting buffers containing NUL when backslashing escapes.
27383 This bug was exposed by the other changes in this patch.
27384 (quotearg_n_options): New arg ARGSIZE.
27385 All callers changed.
27386 (quoting_options_from_style): New function.
27387 (quotearg_n_style): Use it.
27388 (quotearg_n_style_mem): New function.
27390 * lib/quotearg.h (quotearg_n_style_mem): New function.
27392 2002-01-19 Jim Meyering <meyering@lucent.com>
27394 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
27395 Remove useless quotes: DF_PROG="df".
27396 * m4/strnlen.m4: New file.
27398 2002-01-16 Paul Eggert <eggert@twinsun.com>
27400 * lib/backupfile.c (ISDIGIT): Comment fix.
27401 * lib/getdate.y (ISDIGIT): Likewise.
27402 * lib/posixtm.c (ISDIGIT, year): Likewise.
27403 * lib/strverscmp.c (ISDIGIT): Likewise.
27404 * lib/userspec.c (ISDIGIT): Likewise.
27406 2002-01-16 Jim Meyering <meyering@lucent.com>
27408 * lib/getdate.y: Add three semicolons, each just before a closing
27409 brace. Bison (as of version 1.31) no longer papers over that mistake.
27411 2002-01-05 Jim Meyering <meyering@lucent.com>
27413 * lib/version-etc.c (version_etc_copyright): Update copyright year.
27415 2001-12-19 Paul Eggert <eggert@twinsun.com>
27417 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
27418 not silently exit merely because the output buffer happens to
27419 have nothing pending.
27421 2001-12-18 Paul Eggert <eggert@twinsun.com>
27423 See the big note in ../ChangeLog.
27424 * lib/human.c (suffixes): Prefer K to k for 1024.
27425 (generate_suffix_backwards): New function.
27426 (human_readable_inexact): Use it.
27427 * lib/xstrtol.c (__xstrtol): If there is no number but there
27428 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
27429 Accept 'K' as well as 'k'.
27431 2001-12-15 Jim Meyering <meyering@lucent.com>
27433 * lib/regex.h (__restrict_arr): Update from libc.
27435 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
27436 as `remote' if the name starts with `//'. Suggested by Michael Stone.
27439 2001-12-14 Jim Meyering <meyering@lucent.com>
27441 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
27442 Suggestion from Bruno Haible.
27444 2001-12-10 Jim Meyering <meyering@lucent.com>
27446 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
27447 xrealloc, Instead, include "xalloc.h".
27448 (initbuffer): Don't cast xmalloc return value to char*.
27449 (readline): Reword comment.
27450 Don't cast xrealloc return value to char*
27451 Return NULL, not 0.
27453 2001-12-09 Jim Meyering <meyering@lucent.com>
27455 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
27456 about `signed and unsigned type in conditional expression'.
27457 * lib/posixtm.c (posix_time_parse): Likewise.
27459 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
27461 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
27462 to avoid a pedantic warning.
27464 * lib/getstr.c: Don't include assert.h.
27465 (getstr): Remove warning-evoking assertions.
27466 Return -1 if offset parameter is out of bounds.
27467 Change the type of a local from int to size_t.
27469 * lib/strftime.c (my_strftime_localtime_r): Include this function
27470 definition in the `#if ! HAVE_TM_GMTOFF' block.
27472 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
27473 Include xalloc.h instead.
27475 2001-12-02 Jim Meyering <meyering@lucent.com>
27477 * lib/tempname.c: Don't declare getenv, thus reverting the change of
27478 2001-11-18. It's no longer necessary, now that stdlib.h is always
27481 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
27482 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
27484 2001-11-30 Akim Demaille <akim@epita.fr>
27486 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
27487 before being defined.
27489 2001-11-27 Paul Eggert <eggert@twinsun.com>
27491 * lib/quotearg.h (quotearg_n, quotearg_n_style):
27492 First arg is int, not unsigned.
27493 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
27494 (SIZE_MAX, UINT_MAX): New macros.
27495 (quotearg_n_options): Abort if N is negative.
27496 Avoid overflow check on hosts where size_t is 64 bits and int
27497 is 32 bits, as overflow is impossible there.
27498 Fix off-by-one typo that caused unnecessary reallocation.
27500 2001-11-27 Jim Meyering <meyering@lucent.com>
27502 * lib/tempname.c: Merge with version from libc.
27503 * lib/regex.c: Likewise.
27505 * lib/tempname.c: Include stdlib.h unconditionally. On some old
27506 systems for which STDC_HEADERS is 0, it was not included, resulting in
27507 a warning about an integer-to-pointer conversion problem with getenv.
27508 Reported by Volker Borchert.
27510 2001-11-26 Jim Meyering <meyering@lucent.com>
27512 * lib/gtod.h: Remove file.
27513 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
27514 * lib/gettimeofday.c: Don't include gtod.h.
27515 (GTOD_init): Remove function.
27516 (rpl_gettimeofday): Do its job here instead, rather than aborting.
27517 Suggestion from Volker Borchert.
27519 2001-11-23 Jim Meyering <meyering@lucent.com>
27521 * lib/hash.h (struct hash_table): Don't define here. Merely declare
27523 * lib/hash.c (struct hash_table): Define it here instead.
27525 2001-11-22 Jim Meyering <meyering@lucent.com>
27527 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
27529 2001-11-20 Jim Meyering <meyering@lucent.com>
27531 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
27532 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
27534 2001-11-19 Jim Meyering <meyering@lucent.com>
27536 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
27537 directory. Use "conftestXXXXXX" as the template.
27538 Suggestion from Paul Eggert.
27540 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
27541 immediately, so the test doesn't mistakenly hit the max-open-files
27544 2001-11-18 Paul Eggert <eggert@twinsun.com>
27546 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
27547 (TEMPORARIES): New macro.
27548 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
27549 removes an artificial limitation (e.g. HP-UX 10.20, where
27552 2001-11-18 Jim Meyering <meyering@lucent.com>
27554 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
27556 2001-11-18 Jim Meyering <meyering@lucent.com>
27558 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
27561 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
27562 files will be created before anything else.
27564 2001-11-17 Paul Eggert <eggert@twinsun.com>
27566 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
27567 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
27569 2001-11-17 Jim Meyering <meyering@lucent.com>
27571 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
27572 Prompted by a report from Bob Proulx.
27574 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
27575 Instead, require UTILS_FUNC_MKSTEMP.
27577 2001-11-17 Jim Meyering <meyering@lucent.com>
27579 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
27580 Now, that's done as part of AC_FUNC_STRTOD.
27582 2001-11-17 Jim Meyering <meyering@lucent.com>
27584 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
27585 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
27586 rather than group writable. Patch by Juan F. Codagnone.
27588 * lib/readtokens.c: Remove explicit declarations of xmalloc and
27589 xrealloc, Instead, include "xalloc.h".
27591 * lib/mountlist.c: Include unlocked-io.h after all system headers.
27592 Remove explicit declarations of xmalloc, xrealloc,
27593 and xstrdup. Instead, include "xalloc.h".
27595 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
27597 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
27599 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
27601 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
27602 Reported by Padraig Brady.
27604 * lib/mkstemp.c: #undef mkstemp.
27606 (rpl_mkstemp): Rename from mkstemp.
27609 2001-11-16 Jim Meyering <meyering@lucent.com>
27611 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
27612 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
27613 determine the amount of total physical memory, use pstat_getstatic.
27614 HPUX-11 doesn't define _SC_PHYS_PAGES.
27615 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
27616 If sysconf couldn't be used to determine the amount of available
27617 physical memory, use both pstat_getstatic and pstat_getdynamic.
27618 Based on a patch from Bob Proulx.
27620 2001-11-10 Jim Meyering <meyering@lucent.com>
27622 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
27623 (jm_PREREQ): Use it.
27625 2001-11-09 Jim Meyering <meyering@lucent.com>
27627 * m4/jm-macros.m4: Require autoconf-2.52f.
27628 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
27629 Use these AC_-prefixed names, not the AM_-prefixed ones.
27631 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
27633 2001-11-05 Jim Meyering <meyering@lucent.com>
27635 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
27637 2001-11-04 Jim Meyering <meyering@lucent.com>
27639 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
27642 2001-11-03 Jim Meyering <meyering@lucent.com>
27644 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
27647 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
27648 know the name of the variable in the macro definition.
27650 2001-11-03 Jim Meyering <meyering@lucent.com>
27652 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
27653 in argmatch_to_argument call.
27655 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
27658 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
27659 e.g., a fault due to an attempt to free a NULL pointer.
27661 2001-11-01 Jim Meyering <meyering@lucent.com>
27663 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
27664 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
27666 2001-11-01 Jim Meyering <meyering@lucent.com>
27668 * lib/dirfd.c, lib/dirfd.h: New files.
27669 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
27671 * lib/hash.c (hash_print) [TESTING]: Clean up.
27673 2001-10-22 Paul Eggert <eggert@twinsun.com>
27675 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
27676 to avoid a warning if -Wall.
27678 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
27681 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
27682 (per RMS's instructions, this is now the canonical source)
27683 * lgpl/, gpl/: New directories.
27685 2001-10-21 Paul Eggert <eggert@twinsun.com>
27687 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
27689 2001-10-21 Jim Meyering <meyering@lucent.com>
27691 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
27692 this code would end up calling gettext even in packages built
27693 with --disable-nls.
27694 * lib/getopt.c (_): Likewise.
27695 * lib/regex.c (_): Likewise.
27697 2001-10-20 Paul Eggert <eggert@twinsun.com>
27699 * m4/error.m4 (jm_PREREQ_ERROR):
27700 Do not invoke AC_CHECK_FUNCS with strerror_r, as
27701 AC_FUNC_STRERROR_R does that.
27702 Check for strerror declaration.
27704 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
27705 are supposed to have them these days.
27706 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
27707 Merge changes from latest Autoconf CVS.
27708 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
27709 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
27710 POSIX decided to standardize on the int flavor of strerror_r.
27712 2001-10-20 Paul Eggert <eggert@twinsun.com>
27714 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
27715 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
27716 Use strerror_r that is only a macro, even if it is not a function.
27717 (strerror): Check for HAVE_DECL_STRERROR before declaring.
27718 (private_strerror): Use prototypes, not old-style function definition.
27719 (print_errno_message): New function.
27720 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
27721 char*-flavored one.
27722 (error_tail, error, error_at_line): Use it.
27724 2001-10-11 Jim Meyering <meyering@lucent.com>
27726 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
27727 and quote_n (1, ... to avoid clobbering a buffer.
27729 2001-10-05 Jim Meyering <meyering@lucent.com>
27731 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
27733 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
27734 * lib/hash-pjw.h: New file.
27736 2001-09-30 Jim Meyering <meyering@lucent.com>
27738 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
27739 `struct fsstat' has the `f_fstypename' member.
27740 Use that to define FS_TYPE, which is now used to make
27741 the getfsstat link test tighter.
27743 2001-09-30 Jim Meyering <meyering@lucent.com>
27745 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
27746 Include <sys/ucred.h>, for Apple Darwin.
27747 Include sys/mount.h and sys/fs_types.h only if available.
27749 (read_filesystem_list): Use FS_TYPE.
27751 2001-09-29 Paul Eggert <eggert@twinsun.com>
27753 * lib/exclude.c (excluded_filename): 0 -> false, since it's
27756 2001-09-29 Jim Meyering <meyering@lucent.com>
27758 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
27759 [one-argument getmntent function]): Include stdio.h before mntent.h.
27760 SunOS 4.1.x needs it for the declaration of `FILE'.
27761 Patch by Volker Borchert.
27763 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
27764 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
27765 sys/fs_types.h, and make the link-test for getfsstat guard #include
27766 directives with appropriate #if HAVE_*_H tests so that we can
27767 detect getfsstat on Apple Darwin1.3.7 systems.
27768 Reported by Nelson Beebe.
27769 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
27771 2001-09-28 Paul Eggert <eggert@twinsun.com>
27773 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
27774 #defines strtoimax. Also treat the other strto* functions
27777 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
27778 Check for strtoul and strtoumax,
27779 as those declarations are made even in the signed case.
27780 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
27781 Likewise, for strtol and strtoimax.
27783 2001-09-28 Paul Eggert <eggert@twinsun.com>
27785 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
27786 #defines strtoimax. Also treat the other strto* functions
27789 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
27790 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
27791 (strtoimax, strtoumax): Do not declare if already defined as a macro.
27793 2001-09-26 Jim Meyering <meyering@lucent.com>
27795 Most macros in unlocked-io.h had the wrong number of arguments.
27796 * lib/gen-uio: New script.
27797 (USE_UNLOCKED_IO): Define to 1 if not already defined.
27798 * lib/unlocked-io.hin: Remove file.
27799 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
27800 rather than trying to embed it here.
27801 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
27802 Reported by Padraig Brady.
27804 2001-09-25 Volker Borchert <bt@teknon.de>
27806 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
27809 2001-09-24 Jim Meyering <meyering@lucent.com>
27811 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
27813 2001-09-23 Jim Meyering <meyering@lucent.com>
27815 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
27816 instead of the mere test for existence of mntent.h. The latter
27817 would get a false-positive on AIX 3.4 systems.
27818 In the outer getmntent if-block, don't die if neither of the getmntent
27819 tests succeeds. Instead, just fall through and continue with the
27822 2001-09-23 Jim Meyering <meyering@lucent.com>
27824 * lib/mountlist.c: Remove useless parentheses in #if directives.
27825 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
27826 the deprecated MOUNTED symbol is no longer defined in mntent.h.
27828 2001-09-22 Jim Meyering <meyering@lucent.com>
27830 * m4/gettext.m4: New file. From gettext.
27831 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
27832 * m4/progtest.m4: Likewise
27833 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
27834 * m4/glibc21.m4: Likewise.
27836 * m4/libintl.m4: Remove. No longer used.
27838 2001-09-22 Jim Meyering <meyering@lucent.com>
27840 * lib/localcharset.c: Update from latest gettext.
27841 * lib/config.charset: Likewise.
27843 2001-09-20 Jim Meyering <meyering@lucent.com>
27845 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
27847 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
27850 2001-09-20 Jim Meyering <meyering@lucent.com>
27852 * lib/xstrtol.c (strtoimax): Guard declaration with
27853 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
27854 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
27855 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
27856 (strtoumax): Likewise, for completeness (it wasn't necessary).
27858 2001-09-17 Paul Eggert <eggert@twinsun.com>
27860 * lib/strtoimax.c (HAVE_LONG_LONG):
27861 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
27862 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
27863 to work around bug in IBM C compiler.
27865 2001-09-17 Jim Meyering <meyering@lucent.com>
27867 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
27868 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
27869 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
27870 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
27871 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
27872 whenever the right hand side need not be expanded by the shell.
27874 2001-09-16 Paul Eggert <eggert@twinsun.com>
27876 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
27877 library. It's not correct, as some older glibcs are buggy.
27878 fnmatch wasn't fixed until glibc 2.2.
27880 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
27881 special shell magic here.
27883 2001-09-16 Jim Meyering <meyering@lucent.com>
27885 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
27886 * m4/jm-macros.m4: Require it.
27888 2001-09-16 Jim Meyering <meyering@lucent.com>
27890 * lib/mkdir.c: New file.
27892 2001-09-15 Jim Meyering <meyering@lucent.com>
27894 * m4/jm-macros.m4: Check for help2man.
27896 2001-09-11 Jim Meyering <meyering@lucent.com>
27898 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
27899 The body, by Paul Eggert, was moved here from configure.in.
27900 * m4/jm-macros.m4: Require UTILS_HOST_OS.
27902 2001-09-04 Paul Eggert <eggert@twinsun.com>
27904 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
27905 (jm_PREREQ): Use it.
27907 2001-09-04 Paul Eggert <eggert@twinsun.com>
27909 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
27910 Use ssize_t, not int, to store result of readlink.
27911 Check for ssize_t overflow as well as size_t overflow,
27912 as POSIX says the result of readlink is implementation-defined
27913 when ssize_t overflows.
27914 Remove unnecessary cast to char*.
27915 Use free+malloc instead of realloc, as the storage doesn't need
27916 to be preserved and it's clearer and can be more efficient that way.
27917 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
27918 * lib/xreadlink.h (xreadlink): Update prototype.
27920 2001-09-04 Paul Eggert <eggert@twinsun.com>
27922 * lib/xgetcwd.c: Revert some of the previous change; intead,
27923 fix the HAVE_GETCWD_NULL code to behave more like the
27924 !HAVE_GETCWD_NULL code used to.
27926 Include "xalloc.h".
27927 (xgetcwd): Do not return NULL when memory is exhausted; instead,
27930 2001-09-03 Paul Eggert <eggert@twinsun.com>
27932 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
27933 sys/param.h, as pathmax.h includes them.
27935 2001-09-03 Paul Eggert <eggert@twinsun.com>
27937 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
27938 (jm_PREREQ_XGETCWD): New macro.
27940 * m4/getcwd.m4: New file.
27942 2001-09-03 Paul Eggert <eggert@twinsun.com>
27944 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
27945 like the HAVE_GETCWD_NULL code.
27946 Include pathmax.h if not HAVE_GETCWD.
27947 Do not include xalloc.h.
27948 (INITIAL_BUFFER_SIZE): New symbol.
27949 Do not use xmalloc / xrealloc, since the caller is responsible for
27950 handling errors. Preserve errno around `free' during failure.
27951 Do not overrun buffer when using getwd.
27953 2001-09-03 Paul Eggert <eggert@twinsun.com>
27955 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
27956 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
27959 2001-09-03 Paul Eggert <eggert@twinsun.com>
27961 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
27962 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
27963 spotted by Jim Meyering.
27965 2001-09-03 Jim Meyering <meyering@lucent.com>
27967 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
27970 2001-09-02 Jim Meyering <meyering@lucent.com>
27972 * lib/error.c: Update from GNU libc.
27974 2001-09-01 Jim Meyering <meyering@lucent.com>
27976 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
27979 2001-09-01 Jim Meyering <meyering@lucent.com>
27981 * lib/xreadlink.c: New file.
27982 * lib/xreadlink.h: New file.
27983 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
27986 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
27987 doesn't conflict with sparc Solaris 7's definition in
27988 /usr/include/sys/int_types.h.
27990 * lib/exclude.c: Use `""', not `<>' to #include non-system header
27992 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
27993 and strncasecmp as r-values. Unixware didn't have declarations.
27995 2001-08-31 Paul Eggert <eggert@twinsun.com>
27997 * lib/xstrtol.h: Add copyright notice.
27998 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
27999 LONGINT_INVALID_SUFFIX_CHAR.
28001 2001-08-31 Paul Eggert <eggert@twinsun.com>
28003 * lib/xstrtol.c (strtoimax): New decl.
28005 2001-08-31 Paul Eggert <eggert@twinsun.com>
28007 * lib/xgetcwd.c: Don't include pathmax.h.
28008 Include stdlib.h and unistd.h if available.
28010 (xmalloc, xstrdup, free): Remove decls.
28011 (xgetcwd): Don't assume sizes fit in unsigned.
28012 Check for overflow when computing sizes.
28013 Simplify reallocation code.
28015 2001-08-31 Paul Eggert <eggert@twinsun.com>
28017 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
28018 a directory's st_size can have an arbitrary value, so the old
28019 usage could waste an arbitrary amount of memory. All uses
28021 * lib/savedir.h: Update prototype.
28023 2001-08-31 Paul Eggert <eggert@twinsun.com>
28025 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
28027 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
28030 Also, make the following further changes to make this file's
28031 configuration more similar to that of strtol.c:
28032 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
28033 (strtoumax, uintmax_t, strtoull, strtol): Remove.
28034 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
28035 (strtoimax): Renamed from strtoumax. All uses of unsigned values
28036 changed to signed values.
28038 And make the following changes as well:
28039 Fix copyright notice, as 1999 was missing.
28040 (verify): New macro.
28041 (strtoimax): Check sizes at compile-time, not run-time.
28042 Prefer strtol to strtoll if both work.
28043 (main): Remove; it was not that useful and was a pain to maintain.
28045 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
28047 2001-08-31 Jim Meyering <meyering@lucent.com>
28049 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
28050 Use an initial, malloc'd, buffer of length 128 rather than
28051 a statically allocated one of length 1024.
28053 2001-08-30 Paul Eggert <eggert@twinsun.com>
28055 Simplify code, partly by assuming autoconf 2.52 semantics.
28057 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
28059 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
28060 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
28062 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
28063 Move AC_REQUIRE to next-to-top level, to avoid confusion.
28064 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
28065 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
28066 jm_AC_HEADER_INTTYPES_H.
28067 * m4/jm-macros.m4 (jm_MACROS): Likewise.
28069 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
28071 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28072 Quote first arg of AC_DEFUN.
28073 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
28074 since they are needed to parse the include file even if we need
28075 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
28076 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
28077 but with opposite signedness.
28079 2001-08-30 Paul Eggert <eggert@twinsun.com>
28081 Merge 'exclude' changes from tar 1.13.22.
28082 This fixes one or two unlikely storage allocation overflow bugs,
28083 but doesn't change user-visible behavior otherwise.
28085 2001-08-30 Paul Eggert <eggert@twinsun.com>
28087 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
28088 (jm_PREREQ_EXCLUDE): New macro.
28090 2001-08-30 Paul Eggert <eggert@twinsun.com>
28092 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
28095 2001-08-30 Paul Eggert <eggert@twinsun.com>
28097 * lib/hash.c: Remove '2001' from copyright notice.
28099 2001-08-30 Paul Eggert <eggert@twinsun.com>
28101 * lib/full-write.h: New file.
28102 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
28103 * lib/full-write.c: Correct credits, as cccp.c no longer
28104 exists and anyway it was so heavily changed from the old cccp
28105 code as to be unrecognizable. Include full-write.h.
28106 (full_write) Return size_t, with short writes meaning failure.
28107 All callers changed. This fixes a bug with large buffers
28109 * lib/utime.c: Include full-write.h.
28111 2001-08-30 Paul Eggert <eggert@twinsun.com>
28113 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
28114 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
28115 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
28116 Include if available.
28117 (<xalloc.h>): Include
28118 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
28119 (verify): New macro. Use it to verify that EXCLUDE macros do not
28120 collide with FNM macros.
28121 (struct patopts): New struct.
28122 (struct exclude): Use it, as exclude patterns now come with options.
28123 (new_exclude): Support above changes.
28124 (new_exclude, add_exclude_file):
28125 Initial size must now be a power of two to simplify overflow checking.
28126 (free_exclude, fnmatch_no_wildcards): New function.
28127 (excluded_filename): No longer requires options arg, as the options
28128 are determined by add_exclude. Now returns bool, not int.
28129 (excluded_filename, add_exclude):
28130 Add support for the fancy new exclusion options.
28131 (add_exclude, add_exclude_file): Now takes int options arg.
28132 Check for arithmetic overflow when computing sizes.
28133 (add_exclude_file): xrealloc might modify errno, so don't
28134 realloc until after errno might be used.
28136 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
28138 (free_exclude): New decl.
28139 (add_exclude, add_exclude_file): Now takes int options arg.
28140 (excluded_filename): No longer requires options arg, as the options
28141 are determined by add_exclude. Now returns bool, not int.
28143 2001-08-30 Paul Eggert <eggert@twinsun.com>
28145 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
28147 2001-08-27 Jim Meyering <meyering@lucent.com>
28149 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
28151 * lib/version-etc.c (N_): Remove definition.
28152 Revert most of last change.
28153 Instead, simply don't mark the `Copyright...' string for translation.
28154 Based on advice from Paul Eggert.
28156 * lib/strtoxmax.c: Tweak comment.
28158 2001-08-26 Jim Meyering <meyering@lucent.com>
28160 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
28162 * m4/xstrtoimax.m4: New file.
28163 * m4/xstrtoumax.m4: Add comments explaining why we
28164 AC_REPLACE_FUNCS(strtol).
28166 2001-08-26 Jim Meyering <meyering@lucent.com>
28168 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
28169 of copyright with `%s' so translators don't get an untranslated
28171 (COPYRIGHT_YEAR): Define.
28172 (version_etc): Use fprintf rather than fputs.
28173 Suggestion from Ulrich Drepper.
28175 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
28177 * lib/strtoll.c: New file, from GNU libc.
28178 * lib/xstrtoimax.c: New file.
28180 * lib/xstrtol.h: Add xstrtoimax.
28181 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
28182 * lib/strtoimax.c: New file. Likewise, but first define
28185 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
28187 * lib/strtoxmax.c: ... then renamed to this.
28189 2001-08-18 Paul Eggert <eggert@twinsun.com>
28191 * m4/inttypes.m4: Add AC_PREREQ(2.13).
28192 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
28193 (jm_AC_TYPE_INTMAX_T): New macro.
28194 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
28196 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
28198 * m4/longlong.m4: Renamed from ulonglong.m4.
28199 * m4/inttypes.m4: Renamed from inttypes_h.m4.
28200 * m4/uintmax_t.m4: Removed.
28202 2001-08-13 Paul Eggert <eggert@twinsun.com>
28204 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
28205 Port to Solaris 8, where 'sed' requires a space after the 'r'
28206 command, and where sh dislikes "$/". Clean up the spacing a bit.
28207 Redirect output to $tmp just once.
28209 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
28211 * lib/addext.c (<errno.h>): Include.
28212 (errno): Declare if not defined.
28213 (addext): Work correctly when pathconf returns -1 and leaves
28214 errno alone because there is no limit. Also, work even if
28215 pathconf returns a value greater than SIZE_MAX.
28217 2001-08-12 Jim Meyering <meyering@lucent.com>
28219 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
28220 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
28221 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
28222 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
28223 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
28224 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
28225 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
28226 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
28227 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
28228 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
28229 utime.m4, utimes.m4, xstrtoumax.m4:
28230 Quote the first argument in each use of AC_DEFUN.
28232 2001-08-12 Jim Meyering <meyering@lucent.com>
28234 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
28235 Simply `return getcwd (NULL, 0);'.
28236 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
28237 Use 1300 as initial value for length, not PATH_MAX.
28239 * lib/pathmax.h: Clean up cpp syntax.
28241 2001-08-12 Jim Meyering <meyering@lucent.com>
28243 * lib/gettimeofday.c: New file.
28244 * lib/gtod.h: New file.
28245 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
28247 2001-08-05 Jim Meyering <meyering@lucent.com>
28249 * m4/jm-macros.m4: Require autoconf-2.52.
28251 2001-08-04 Jim Meyering <meyering@lucent.com>
28253 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
28254 stmt, to get in sync with glibc.
28256 2001-08-03 Paul Eggert <eggert@twinsun.com>
28258 The following changes are from gettext 0.10.39 as maintained by
28261 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
28262 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
28263 with inverted sense. All uses changed.
28265 * lib/mbswidth.c: Don't include <limits.h>.
28266 Include <stdlib.h> and <string.h> unconditionally.
28267 (iswcntrl, mbsinit, ISCNTRL): New macros.
28268 (mbsnwidth): Use K&R style function declarations.
28269 Don't bother checking for MB_LEN_MAX == 1, since the compiler
28270 can optimize it when MB_CUR_MAX == 1.
28271 The width of control characters is zero, not 1.
28273 2001-08-03 Paul Eggert <eggert@twinsun.com>
28275 The following changes are from gettext 0.10.39 as maintained by
28276 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
28278 * m4/codeset.m4: Upgrade to serial AM1.
28279 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
28280 all uses changed. Quote first arg of AC_DEFUN.
28281 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
28283 * m4/iconv.m4: Upgrade to serial AM2.
28284 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
28285 Add --with-libconv-prefix.
28286 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
28287 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
28288 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
28289 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
28290 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
28292 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
28293 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
28294 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
28295 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
28296 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
28297 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
28298 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28299 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
28300 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
28302 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
28305 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
28306 not the default value.
28308 2001-06-25 Bruno Haible <haible@clisp.cons.org>
28309 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
28310 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
28311 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
28312 Also check for iswcntrl, used for wcwidth fallback.
28313 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
28316 2001-08-03 Jim Meyering <meyering@lucent.com>
28318 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
28319 as it was in the original. Reported by Paul Eggert.
28321 2001-07-16 Jim Meyering <meyering@lucent.com>
28323 * m4/gettimeofday.m4: New file.
28324 Prompted by a report from Bernhard Baehr.
28326 2001-07-15 Jim Meyering <meyering@lucent.com>
28328 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
28329 stuff. Now it's in ../Makefile.cfg.
28331 2001-07-15 Jim Meyering <meyering@lucent.com>
28333 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
28334 (BUILT_SOURCES): Add unlocked-io.h.
28335 (io_functions): Define.
28336 (unlocked-io.h): New rule.
28337 (DISTCLEANFILES): Add unlocked-io.h.
28338 (all-local): Depend on unlocked-io.h, to ensure it is created.
28340 * lib/unlocked-io.hin: New file
28342 * lib/regex.c: Update from glibc.
28344 2001-07-05 Jim Meyering <meyering@lucent.com>
28346 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
28348 (libfetish_a_SOURCES): Put all .h files here instead.
28349 Remove a thus-exposed (better checks in automake) duplicate and
28350 two unnecessary .h files.
28352 2001-07-04 Jim Meyering <meyering@lucent.com>
28354 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
28355 that generates jm-glibc-io.m4 so that it doesn't trigger any make
28358 2001-07-02 Jim Meyering <meyering@lucent.com>
28360 The following changes were prompted by suggestions from Bruno Haible.
28362 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
28364 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
28365 definition of EXTRA_DIST.
28366 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
28367 ensure that the generated file is created/updated whenever the list
28368 of $(unlocked_functions) is changed.
28369 (jm-glibc-io.m4): New rule.
28370 (unlocked-io.h): New rule -- currently unused.
28372 2001-06-24 Jim Meyering <meyering@lucent.com>
28374 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
28375 unmatched right bracket, rather than kludging it with an extra,
28376 falsely-matching quote in a comment. Patch by Akim Demaille.
28378 2001-06-11 Jim Meyering <meyering@lucent.com>
28380 * lib/regex.c: Update from GNU libc.
28382 2001-05-27 Jim Meyering <meyering@lucent.com>
28384 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
28385 Check for ut_type in struct utmp.
28387 2001-05-27 Jim Meyering <meyering@lucent.com>
28389 * lib/readutmp.h (UT_TYPE): Define.
28391 2001-05-24 Jim Meyering <meyering@lucent.com>
28393 * lib/argmatch.c: Include "quote.h".
28394 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
28395 quote function. Reported by Göran Uddeborg.
28397 2001-05-22 Jim Meyering <meyering@lucent.com>
28399 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
28400 now that we use the package-supplied version unconditionally.
28401 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
28403 2001-05-21 Jim Meyering <meyering@lucent.com>
28405 * m4/regex.m4: Change a couple backticks to single quotes to avoid
28406 shell syntax errors.
28408 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
28410 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
28412 2001-05-20 Paul Eggert <eggert@twinsun.com>
28414 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
28415 Don't bother to check library strftime, since
28416 we'll be using our own my_strftime function anyway.
28417 Define my_strftime instead of strftime.
28419 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
28421 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
28422 which is not yet declared.
28424 2001-05-15 Jim Meyering <meyering@lucent.com>
28426 * m4/regex.m4: Use proper quoting so brackets appear in the test
28428 Reported by, and with help from, Bruno Haible.
28430 2001-05-13 Jim Meyering <meyering@lucent.com>
28432 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
28435 2001-05-11 Paul Eggert <eggert@twinsun.com>
28437 dirname code cleanup. base_name now behaves more compatibly
28438 with POSIX basename when given file names that have trailing
28439 slashes, and similarly for dir_name. Add new primitives
28440 base_len and dir_len. Put the directory-name-related decls
28443 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
28444 * lib/backupfile.c (base_name): Likewise.
28445 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
28446 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
28447 * lib/makepath.c (strip_trailing_slashes): Likewise.
28448 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
28449 ISSLASH): Likewise.
28450 * lib/rename.c (strip_trailing_slashes): Likewise.
28451 * lib/same.c (base_name): Likewise.
28452 * lib/stripslash.c (ISSLASH): Likewise.
28454 * lib/addext.c: Include <dirname.h> after size_t is defined.
28455 * lib/backupfile.c: Likewise.
28457 * lib/addext.c (addext): Use base_len to trim redundant
28458 trailing slashes instead of doing it ourselves.
28459 But do not trim the last slash if it is not redundant.
28461 * lib/backupfile.c (find_backup_file_name,
28462 max_backup_version): Use base_len instead of rolling it ourselves.
28463 Handle the case of "" and (on DOS) "C:" correctly.
28465 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
28466 needed. Include <string.h>, <dirname.h>.
28467 (base_name): Allow file names ending in slashes, other than names
28468 that are all slashes. In this case, return the basename followed
28469 by the slashes. This is more general, and can be used in places
28470 where the original base_name purposely had an assertion failure.
28471 (base_len): New function.
28473 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
28474 Do not include <assert.h>; no longer needed.
28476 (memrchr): Remove decl.
28477 (dir_name_r): Remove.
28478 (dir_len): Renamed from dirlen. All callers changed.
28479 Rewrite in terms of base_name, for simplicity and consistency.
28480 (dir_name): Never return NULL. All callers changed.
28481 Do not include <stdlib.h> in test program; no longer needed.
28482 return 0; is fine for test program.
28484 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
28486 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
28488 * lib/path-concat.c (path_concat): Use base_len to compute
28489 base length, not strlen; this means we cannot rely on memcpy
28492 * lib/same.c (STREQ): Remove.
28493 (same_name): Handle the case where the basename ends in trailing '/'.
28495 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
28496 a slash was stripped. Do not strip the last slash after a
28497 file system prefix.
28499 2001-05-11 Paul Eggert <eggert@twinsun.com>
28501 * lib/Makefile.am (libfetish_a_SOURCES):
28502 Add strftime.c, since we now compile it on all hosts.
28504 * lib/strftime.c (my_strftime):
28505 Define to nstrftime if emacs, but only if my_strftime is not defined.
28506 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
28507 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
28508 Add one more extra argument: a nanoseconds value.
28511 (my_strftime function): Add %N format.
28512 (emacs_strftimeu): Renamed from emacs_strftime,
28513 with extra ut argument.
28515 2001-05-09 Paul Eggert <eggert@twinsun.com>
28517 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
28519 2001-04-21 Jim Meyering <meyering@lucent.com>
28521 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
28524 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
28526 * m4/ftruncate.m4: Check for chsize.
28527 Link with ftruncate.o unconditionally if ftruncate is missing.
28528 This was required when cross-compiling to i586-mingw32msvc.
28530 2001-04-08 Jim Meyering <meyering@lucent.com>
28532 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
28533 recomputed; that's necessary when the offset spans a DST transition.
28534 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
28536 2001-04-02 Jim Meyering <meyering@lucent.com>
28538 * lib/regex.h, regex.c: Update from GNU libc.
28540 2001-03-24 Jim Meyering <meyering@lucent.com>
28542 * m4/jm-macros.m4: Require autoconf-2.49d.
28544 2001-03-20 Bruno Haible <haible@clisp.cons.org>
28546 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
28548 2001-03-19 Paul Eggert <eggert@twinsun.com>
28550 * lib/version-etc.c (version_etc_copyright): Update to 2001.
28552 2001-03-17 Jim Meyering <meyering@lucent.com>
28554 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
28555 now that the version in autoconf is equivalent.
28556 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
28558 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
28559 Suggestion from Akim Demaille.
28561 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
28562 (jm_PREREQ_TEMPNAME): New function.
28564 2001-03-16 Paul Eggert <eggert@twinsun.com>
28566 * lib/tempname.c (uint64_t): Define to uintmax_t if
28567 not defined, and if UINT64_MAX is not defined.
28568 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
28569 Reported by John David Anglin.
28571 2001-03-15 Bruno Haible <haible@clisp.cons.org>
28573 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
28574 resolve alias if codeset is empty.
28575 * lib/config.charset (BeOS): Use wildcard syntax.
28577 2001-03-13 Jim Meyering <meyering@lucent.com>
28579 * lib/path-concat.c (path_concat)
28580 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
28581 concatenating e.g., `C:' and `foo'.
28584 2001-03-06 Bruno Haible <haible@clisp.cons.org>
28586 * lib/localcharset.c (locale_charset): Don't use
28587 setlocale(LC_CTYPE,NULL). Don't return NULL.
28588 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
28590 2001-03-06 Bruno Haible <haible@clisp.cons.org>
28592 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
28593 support for DOS/DJGPP.
28595 2001-03-01 Paul Eggert <eggert@twinsun.com>
28597 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
28598 lacks mkstemp. Compile our own tempname.c if we compile our own
28599 mkstemp.c, as mkstemp relies on tempname.
28601 2001-03-01 Jim Meyering <meyering@lucent.com>
28603 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
28604 AH_VERBATIM really does output its argument verbatim.
28606 2001-02-28 Paul Eggert <eggert@twinsun.com>
28608 * lib/Makefile.am (libfetish_a_SOURCES):
28609 Add dup-safer.c, fopen-safer.c.
28610 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
28612 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
28613 * lib/unistd-safer.h: New files.
28615 2001-02-25 Paul Eggert <eggert@twinsun.com>
28617 The mkstemp replacement is taken from glibc 2.2.2, with some
28618 portability fixes for use outside glibc, as follows:
28620 * lib/tempname.c (struct_stat64): New macro.
28621 (direxists, __gen_tempname): Use it.
28622 This avoids a portability problem with Solaris 8.
28624 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
28625 (<stddef.h>, <stdint.h>, <string.h>):
28626 Include only if STDC_HEADERS || _LIBC.
28627 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
28628 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
28629 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
28630 (__set_errno): Define this macro if <errno.h> doesn't.
28631 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
28632 Define these macros if <stdio.h> doesn't.
28633 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
28634 Define these macros if <sys/stat.h>
28635 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
28636 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
28637 __xstat64): Define if not _LIBC.
28638 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
28639 (__gen_tempname): Invoke gettimeofday only if
28640 HAVE_GETTIMEOFDAY || _LIBC;
28641 otherwise, fall back on plain "time".
28642 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
28644 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
28646 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
28648 2001-02-18 Paul Eggert <eggert@twinsun.com>
28650 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
28652 2001-02-17 Paul Eggert <eggert@twinsun.com>
28654 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
28655 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
28656 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
28657 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28659 2001-02-17 Paul Eggert <eggert@twinsun.com>
28661 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
28662 Remove workaround macros for hosts that have mbrtowc but not
28663 mbstate_t, as we now insist on proper declarations for both
28664 before using mbrtowc.
28666 2001-02-17 Jim Meyering <meyering@lucent.com>
28668 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
28669 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
28670 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
28673 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
28674 rather than AC_CACHE_VAL.
28676 2001-02-17 Jim Meyering <meyering@lucent.com>
28678 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
28679 around included file name.
28681 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
28683 * lib/strftime.c: Update from GNU libc (the only changes were to
28686 2001-02-17 Jim Meyering <meyering@lucent.com>
28688 * lib/regex.c: Update from libc.
28690 2001-02-17 Bruno Haible <haible@clisp.cons.org>
28692 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
28695 2001-02-16 Paul Eggert <eggert@twinsun.com>
28697 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
28698 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
28699 Reported by Mark Hounschell via Paul Eggert.
28701 2001-02-07 Jim Meyering <meyering@lucent.com>
28703 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
28705 2001-02-05 Jim Meyering <meyering@lucent.com>
28707 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
28708 it includes the patch required for `large file' support with at least
28709 HP-UX's 10.20 /bin/cc.
28711 2001-02-03 Jim Meyering <meyering@lucent.com>
28713 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
28714 AS_IF, now that it works once again (mysteriously).
28715 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
28717 2001-01-30 Jim Meyering <meyering@lucent.com>
28719 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
28720 * m4/chown.m4: Rename conftestchown to conftest.chown.
28721 * m4/rename.m4: s/conftestdir/conftest.d1/ and
28722 s/conftestdir2/conftest.d2/.
28723 * m4/utimes.m4: s/conftestdata/conftest.data/
28724 Inspired by Pavel Roskin's change in autoconf.
28726 2001-01-30 Bruno Haible <haible@clisp.cons.org>
28728 * lib/config.charset: Update for FreeBSD 4.2.
28730 2001-01-27 Jim Meyering <meyering@lucent.com>
28732 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
28734 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
28736 2001-01-26 Jim Meyering <meyering@lucent.com>
28738 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
28739 quotearg.c includes it.
28741 2001-01-26 Jim Meyering <meyering@lucent.com>
28743 * lib/quotearg.c: Include stddef.h.
28744 * lib/quote.c: Include stddef.h.
28745 Reported by Axel Kittenberger.
28747 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
28748 line in double quotes so that it evokes a better diagnostic.
28749 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
28750 Reported by Axel Kittenberger.
28752 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
28754 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
28755 as if it was a `charset'.
28757 2001-01-21 Bruno Haible <haible@clisp.cons.org>
28759 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
28762 2001-01-21 Bruno Haible <haible@clisp.cons.org>
28764 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
28765 to avoid a warning. Add back 'const' to inptr.
28767 2001-01-20 Jim Meyering <meyering@lucent.com>
28769 Be sure that headers are checked before used in code compiled
28770 for the type checks.
28771 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
28772 In place of that, invoke jm_CHECK_ALL_TYPES.
28773 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
28774 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
28775 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
28776 The check for ssize_t was mistakenly run before the test for unistd.h.
28778 The configure-time check for stdbool.h was missing.
28779 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
28780 (jm_PREREQ_HASH): New function.
28782 2001-01-17 Jim Meyering <meyering@lucent.com>
28784 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
28785 for autoconf-2.49c.
28786 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
28788 2001-01-16 Jim Meyering <meyering@lucent.com>
28790 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
28793 2001-01-14 Jim Meyering <meyering@lucent.com>
28795 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
28796 foo and bar. Create conftestdir/ in the script, not in the C code.
28797 Remove directories in the script, not in the C code.
28798 Remove conftestdir{,2} before trying to create the directory.
28799 Make the entire configure script fail if the mkdir fails.
28801 2001-01-14 Jim Meyering <meyering@lucent.com>
28803 * lib/rename.c: New file. From Volker Borchert.
28804 Include stdlib.h, string.h or strings.h, and xalloc.h.
28805 Use strip_trailing_slashes rather than open-coding it.
28807 2001-01-03 Paul Eggert <eggert@twinsun.com>
28809 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
28811 2001-01-03 Jim Meyering <meyering@lucent.com>
28813 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
28814 of local `inptr' to avoid warning with some system declarations of
28817 2001-01-02 Volker Borchert <bt@teknon.de>
28819 * m4/rename.m4: New file.
28820 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
28822 2001-01-01 Jim Meyering <meyering@lucent.com>
28824 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
28825 even on systems with utmpx.h. It's necessary for the declaration of
28826 utmp's ut_user member. Reported by Andreas Jaeger.
28828 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
28829 available. They are required for the declarations of getgrgid and
28831 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
28832 Reported by Andreas Jaeger.
28834 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
28836 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
28837 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
28838 so `make install' also works in VPATH builds.
28840 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
28842 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
28843 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
28844 can be used in subdirectories.
28846 2000-12-29 Paul Eggert <eggert@twinsun.com>
28848 * lib/modechange.c: Do not assume that mode_t uses the
28849 traditional octal encoding. E.g. "chmod 1 FOO" should set
28850 the other-execute bit of FOO even if S_IXOTH != 1.
28852 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
28853 WOTH, XOTH, ALLM): New macros.
28854 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
28855 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
28857 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
28858 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
28860 No need to use uintmax_t; unsigned long is long enough.
28861 Don't bother to get suffix since we don't use it.
28863 2000-12-26 Jim Meyering <meyering@lucent.com>
28865 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
28866 better with autoheader.
28868 2000-12-24 Jim Meyering <meyering@lucent.com>
28870 * lib/hash.c (is_prime): Return explicit boolean values.
28871 (hash_get_first): Return NULL to appease Irix5.6's 89.
28872 Reported by Nelson Beebe.
28874 2000-12-19 Bruno Haible <haible@clisp.cons.org>
28876 * lib/localcharset.c (locale_charset): Add support for Win32.
28878 2000-12-18 Paul Eggert <eggert@twinsun.com>
28880 * lib/physmem.h, lib/physmem.c: New files.
28882 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
28883 (noinst_HEADERS): Add physmem.h.
28885 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
28886 't' for compatibility with Solaris 8 sort.
28888 2000-12-18 Bruno Haible <haible@clisp.cons.org>
28890 * lib/config.charset: Add support for BeOS.
28892 2000-12-17 Jim Meyering <meyering@lucent.com>
28894 * m4/dos.m4 (jm_AC_DOS): New file and macro.
28895 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
28897 2000-12-16 Jim Meyering <meyering@lucent.com>
28899 This bug had a serious impact on chown: `chown N:M FILE' (for integer
28900 N and M) would have treated it like `chown N:N FILE'.
28902 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
28904 2000-12-16 Jim Meyering <meyering@lucent.com>
28906 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
28907 SHELLS_FILE to a file name that's useful on djgpp systems.
28909 (ADDITIONAL_DEFAULT_SHELLS): Define.
28910 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
28911 Based mostly on a patch from Prashant TR.
28913 2000-12-16 Bruno Haible <haible@clisp.cons.org>
28915 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
28916 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
28917 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
28919 2000-12-08 Andreas Schwab <schwab@suse.de>
28921 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
28922 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
28924 2000-12-07 Jim Meyering <meyering@lucent.com>
28926 * lib/stripslash.c (ISSLASH): Define.
28927 (strip_trailing_slashes): Use ISSLASH rather than comparing against
28931 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
28932 (dir_name_r): Declare this function as static.
28933 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
28934 manifest itself on a name containing a mix of slashes and
28936 Make this function work with names starting with a DOS-style
28937 drive letter and colon prefix.
28938 (dir_name): Append `.' if necessary.
28939 Based mostly on patches from Prashant TR and Eli Zaretskii.
28941 * lib/dirname.h (dir_name_r): Remove prototype.
28943 2000-12-06 Paul Eggert <eggert@twinsun.com>
28945 * m4/off_t-format.m4: Remove this file.
28946 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
28948 2000-12-06 Jim Meyering <meyering@lucent.com>
28950 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
28951 replacement strtoull, we may well need the replacement strtoul, too.
28952 Check for declarations of strtoul and strtoull.
28953 Check for strtol. Mainly as a cue to cause automake to include
28954 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
28955 Check for limits.h -- strtol.c needs it.
28957 2000-12-05 Jim Meyering <meyering@lucent.com>
28959 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
28961 2000-12-04 Jim Meyering <meyering@lucent.com>
28963 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
28964 Also include memory.h, stdlib.h, unistd.h if appropriate.
28965 Reported by Andreas Jaeger (conflicting declaration of malloc).
28967 2000-12-02 Jim Meyering <meyering@lucent.com>
28969 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
28970 * m4/jm-macros.m4 (jm_MACROS): require it.
28972 2000-12-02 Jim Meyering <meyering@lucent.com>
28974 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
28976 2000-12-01 Paul Eggert <eggert@twinsun.com>
28978 * lib/memrchr.c: Include <config.h> before any system include file.
28980 2000-11-30 Jim Meyering <meyering@lucent.com>
28982 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
28984 2000-11-30 Jim Meyering <meyering@lucent.com>
28986 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
28988 2000-11-29 Paul Eggert <eggert@twinsun.com>
28990 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
28992 2000-11-26 Jim Meyering <meyering@lucent.com>
28994 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
28996 2000-11-22 Paul Eggert <eggert@twinsun.com>
28998 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
28999 size of (size_t) -1; it's not portable.
29001 2000-11-17 Jim Meyering <meyering@lucent.com>
29003 * lib/strstr.c: Update from GNU libc.
29005 2000-11-17 Akim Demaille <akim@epita.fr>
29007 * lib/obstack.h: Formatting changes.
29008 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
29009 prevent type checking.
29010 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
29011 cast the value to (void *): assigning a `foo *' to a `void *'
29013 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
29015 2000-11-16 Jim Meyering <meyering@lucent.com>
29017 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
29019 2000-11-11 Jim Meyering <meyering@lucent.com>
29021 * lib/error.c: Add a couple #includes, merging from GNU libc version.
29023 2000-11-10 Jim Meyering <meyering@lucent.com>
29025 * lib/obstack.h: Update from GNU libc.
29026 * lib/obstack.c: Likewise.
29028 2000-11-08 Bruno Haible <haible@clisp.cons.org>
29030 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
29032 2000-11-06 Paul Eggert <eggert@twinsun.com>
29034 * lib/getusershell.c (setusershell): Use rewind rather than
29035 fseek/fseeko, to avoid configuration hassles with fseeko.
29036 Don't bother opening SHELLS_FILE if shellstream is NULL;
29037 it's not necessary.
29039 2000-11-05 Jim Meyering <meyering@lucent.com>
29041 * lib/makepath.h (make_dir): Declare.
29042 * lib/makepath.c (make_dir): Remove `static' attribute.
29045 2000-11-04 Jim Meyering <meyering@lucent.com>
29047 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
29049 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
29051 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
29052 last one in a bucket, advance to the next bucket.
29054 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
29056 * lib/fnmatch.c: Do not comment out all the code if we are using
29057 the GNU C library, because in some cases we are replacing buggy
29058 code in the GNU C library itself.
29060 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
29062 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
29063 (regex_compile): Catch bogus \(\1\).
29065 2000-10-30 Paul Eggert <eggert@twinsun.com>
29067 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
29068 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
29069 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
29071 2000-10-30 Paul Eggert <eggert@twinsun.com>
29073 * lib/error.h, getline.h, modechange.h:
29074 Remove "2000" from Copyright line, as the file hasn't been
29075 changed this year other than in the copyright notice.
29077 * lib/xalloc.h: Add "2000" to Copyright line, as this file
29078 was changed this year.
29080 2000-10-29 Jim Meyering <meyering@lucent.com>
29082 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
29084 * m4/ls-mntd-fs.m4: Likewise
29086 2000-10-29 Jim Meyering <meyering@lucent.com>
29088 * lib/xstat.in: Fix grammar in comment.
29090 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
29092 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
29093 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
29094 doesn't define __restrict_arr.
29096 2000-10-28 Jim Meyering <meyering@lucent.com>
29098 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
29099 (jm_PREREQ_MEMCHR): New function.
29101 2000-10-28 Jim Meyering <meyering@lucent.com>
29103 * lib/memchr.c: Update from libc.
29104 Adjust for portability:
29105 [HAVE_STDLIB_H]: Include stdlib.h.
29106 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
29107 Undef __memchr, too.
29108 [!weak_alias]: Define __memchr to memchr.
29110 * lib/regex.c: Update from libc.
29111 * lib/regex.h: Likewise.
29112 * lib/getopt1.c: Likewise.
29113 * lib/memcmp.c: Likewise.
29115 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
29116 Avoid using fseek, when possible -- it's broken by design.
29117 Patch by Ulrich Drepper.
29119 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
29121 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
29122 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
29123 Giving in to popular pressure to shut up the compiler with casts.
29125 2000-10-26 Jim Meyering <meyering@lucent.com>
29127 * lib/strftime.c: Update from libc.
29129 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
29131 * regex.c: More `unsigned char' -> `re_char' changes.
29132 Also change several `int' into `re_wchar_t'.
29133 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
29134 (PUSH_FAILURE_POINTER): Don't cast any more.
29135 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
29136 We want GCC to complain, since this piece of code makes
29137 re_match non-reentrant, which *should* be fixed.
29138 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
29139 (EXTEND_BUFFER): Use RETALLOC.
29140 (SET_LIST_BIT): Don't cast.
29141 (re_wchar_t): New type.
29142 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
29143 that those two functions will always properly return.
29144 (IMMEDIATE_QUIT_CHECK): Cast to void.
29145 (analyse_first): Use recursion rather than an explicit stack.
29146 (re_compile_fastmap): Can't fail anymore.
29147 (re_search_2): Don't check re_compile_fastmap for failure.
29148 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
29149 Now also sets the new value (passed in a new argument).
29150 (re_match_2_internal): Use it.
29151 Also, use a new var `reg' of type size_t when looping through regs
29152 rather than reuse the inappropriate `mcnt'.
29154 2000-10-25 Jim Meyering <meyering@lucent.com>
29156 * lib/obstack.c: Update from libc.
29158 2000-10-24 Kenichi Handa <handa@etl.go.jp>
29160 * regex.c (regex_compile): Change the way of handling a range from
29161 a char less than 256 to a char not less than 256.
29163 2000-10-24 Andrew Innes <andrewi@gnu.org>
29165 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
29167 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
29168 so that re_search functions only quit when callers expect them to.
29170 2000-10-23 Jim Meyering <meyering@lucent.com>
29172 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
29173 wrong. That set_locale call must not have any side effects.
29176 2000-10-22 Jim Meyering <meyering@lucent.com>
29178 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
29179 [CYCLIC]: Remove now-unused definition.
29181 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
29182 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
29183 Suggestion from Ulrich Drepper.
29185 2000-10-21 Jim Meyering <meyering@lucent.com>
29187 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
29188 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
29189 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
29191 2000-10-21 Jim Meyering <meyering@lucent.com>
29193 * lib/dirname.c (memrchr): Declare if necessary.
29194 (dir_name): Remove the restriction that there be no
29195 trailing slashes. Now, this code skips past them, effectively
29197 [TEST_DIRNAME] (main): New unit tests.
29199 * lib/memrchr.c: New file from GNU libc.
29200 Undef __memrchr, too.
29201 [!weak_alias]: Define __memrchr to memrchr.
29202 Guard weak_alias use with `#ifdef weak_alias'.
29204 2000-10-21 Jim Meyering <meyering@lucent.com>
29206 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
29207 (dir_name): Use dir_name_r.
29208 * lib/dirname.h (dir_name_r): Declare it.
29210 2000-10-17 Jim Meyering <meyering@lucent.com>
29212 * lib/quote.h (PARAMS): Define and use.
29213 Reported by Akim Demaille.
29215 * lib/getopt.c: Update from libc.
29217 2000-10-16 Jim Meyering <meyering@lucent.com>
29219 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
29223 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
29225 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
29227 2000-09-25 Jim Meyering <meyering@lucent.com>
29229 * lib/md5.h (rol): Define (from GnuPG).
29231 * lib/sha.c: Give credit (GnuPG) where due.
29232 (M): Use rol rather than open-coding it.
29233 Add a FIXME comment.
29235 2000-09-21 Jim Meyering <meyering@lucent.com>
29237 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
29238 Reported by Michael Stone.
29240 2000-09-20 Jim Meyering <meyering@lucent.com>
29242 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
29243 (noinst_HEADERS): Add sha.h.
29244 Based on code from Scott G. Miller and from GnuPG.
29246 2000-09-18 Jim Meyering <meyering@lucent.com>
29248 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
29249 LIBS. Otherwise, everyone ends up linking with -lelf for some
29251 Reported by Mike Stone.
29253 2000-09-15 Jim Meyering <meyering@lucent.com>
29255 * lib/regex.c: Update from libc.
29257 2000-09-10 Jim Meyering <meyering@lucent.com>
29259 * lib/getopt.c (_getopt_internal): Update from glibc.
29261 2000-09-09 Jim Meyering <meyering@lucent.com>
29263 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
29264 think it should be used as a general replacement for isascii.
29265 * lib/fnmatch.c: Likewise.
29266 * lib/mbswidth.c: Likewise
29267 * lib/regex.c: Likewise.
29270 * lib/userspec.c: Include sys/param.h and limits.h.
29272 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
29273 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
29274 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
29275 UID, GID. Check range.
29277 2000-09-06 Jim Meyering <meyering@lucent.com>
29279 * lib/getopt.c (_getopt_internal): Update from glibc.
29281 2000-08-30 Jim Meyering <meyering@lucent.com>
29283 * lib/strftime.c: Merge in changes from GNU libc.
29285 2000-08-26 Jim Meyering <meyering@lucent.com>
29287 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
29288 * m4/fpending.m4: New file.
29290 2000-08-26 Jim Meyering <meyering@lucent.com>
29292 * lib/closeout.c: Include "__fpending.h".
29293 (close_stdout_status): Return right away if there's nothing to flush.
29295 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
29296 * lib/__fpending.c: New file.
29297 * lib/__fpending.h: New file.
29299 2000-08-20 Jim Meyering <meyering@lucent.com>
29301 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
29302 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
29303 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
29305 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
29307 Improve fileutils installation on systems where running
29308 programs (like install) can't be unlinked.
29309 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
29310 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
29312 2000-08-07 Paul Eggert <eggert@twinsun.com>
29314 Standardize on "memory exhausted" instead of "Memory exhausted"
29315 or "virtual memory exhausted".
29316 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
29317 "virtual memory exhausted".
29318 * lib/same.c (same_name): Invoke xalloc_die instead of printing
29320 * lib/userspec.c (parse_user_spec): Likewise.
29321 * lib/bumpalloc.h: comment fix
29322 * lib/same.c, userspec.c: Include xalloc.h.
29324 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
29325 not char *const and pointing to a constant array.
29326 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
29327 (xrealloc): Comment fix.
29329 * lib/userspec.c (parse_user_spec):
29330 Don't translate a message until just before returning,
29331 to avoid unnecessary translation.
29333 2000-08-07 Jim Meyering <meyering@lucent.com>
29335 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
29336 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
29337 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
29338 getgroups.c, gethostname.c, getopt.h, group-member.c,
29339 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
29340 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
29341 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
29342 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
29343 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
29344 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
29345 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
29346 yesno.c: Back out Copyright date changes for each file with no change
29347 this year. This eases coordination with other programs using the same
29348 source code modules. From Paul Eggert.
29350 2000-08-06 Paul Eggert <eggert@twinsun.com>
29352 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
29353 not char, for compatibility with glibc 2.1.3 strftime.c.
29355 2000-08-03 Greg McGary <greg@mcgary.org>
29357 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
29358 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
29359 (EXTEND_BUFFER): Use them.
29361 2000-08-01 Jim Meyering <meyering@lucent.com>
29363 * lib/dirname.c (ISSLASH): Define.
29364 (BACKSLASH_IS_PATH_SEPARATOR): Define.
29365 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
29366 both `\' and `/' may be use as path separators.
29367 Based on a patch from Prashant TR.
29369 2000-07-31 Paul Eggert <eggert@twinsun.com>
29371 * lib/quotearg.c (quotearg_n_options): Don't make the initial
29372 slot vector a constant, since it might get modified.
29374 2000-07-31 Jim Meyering <meyering@lucent.com>
29376 * lib/xmalloc.c: Use `virtual memory exhausted', not
29377 `Memory exhausted'.
29378 * lib/obstack.c (print_and_abort): Likewise.
29380 2000-07-30 Paul Eggert <eggert@twinsun.com>
29382 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
29383 buffer, so that the caller can always quote one small
29384 component of a "memory exhausted" message in slot 0.
29385 From a suggestion by Jim Meyering.
29387 2000-07-30 Jim Meyering <meyering@lucent.com>
29389 * lib/makepath.c (make_path): Quote the other instance, too.
29391 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
29392 (STATIC_BUF_SIZE): Define.
29393 (quotearg_n_options): Use only statically allocated storage when
29394 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
29395 than STATIC_BUF_SIZE.
29397 2000-07-29 Jim Meyering <meyering@lucent.com>
29399 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
29400 * lib/dirname.c (dir_name): Likewise.
29402 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
29405 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
29406 (dir_name): Assert that there are no trailing slashes.
29408 2000-07-29 Bruno Haible <haible@clisp.cons.org>
29410 * lib/mbswidth.h (mbswidth): Add a flags argument.
29411 (mbswidth): New declaration.
29412 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
29413 * lib/mbswidth.c (mbswidth): Add a flags argument.
29414 (mbsnwidth): New function.
29416 2000-07-24 Jim Meyering <meyering@lucent.com>
29418 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
29420 2000-07-23 Paul Eggert <eggert@twinsun.com>
29422 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
29424 2000-07-23 Paul Eggert <eggert@twinsun.com>
29426 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
29427 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
29428 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
29429 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
29430 invoke multibyte primitives.
29432 2000-07-23 Paul Eggert <eggert@twinsun.com>
29435 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
29436 so that mbstate_t is always defined.
29438 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
29439 be 1 in at least one GCC installation, and this configuration
29440 error is likely to be common. Ignoring MB_LEN_MAX hurts
29441 performance on hosts that have mbrtowc but have only unibyte
29442 locales, but I assume these hosts are rare.
29444 2000-07-23 Paul Eggert <eggert@twinsun.com>
29446 * lib/mbswidth.c (_XOPEN_SOURCE):
29447 Don't define; this causes problems on Solaris 7.
29448 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
29450 2000-07-23 Jim Meyering <meyering@lucent.com>
29452 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
29453 too: getgrgid, getpwuid, getuid.
29455 2000-07-23 Jim Meyering <meyering@lucent.com>
29457 * lib/basename.c (base_name): Add an assertion.
29459 2000-07-23 Bruno Haible <haible@clisp.cons.org>
29461 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
29462 shadow its mbsinit function.
29464 2000-07-17 Bruno Haible <haible@clisp.cons.org>
29466 * lib/mbswidth.h: New file.
29467 * lib/mbswidth.c: New file.
29468 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
29469 (noinst_HEADERS): Add mbswidth.h.
29471 2000-07-17 Bruno Haible <haible@clisp.cons.org>
29473 * lib/config.charset: Add support for FreeBSD. Improve support for
29476 2000-07-16 Bruno Haible <haible@clisp.cons.org>
29478 * m4/mbswidth.m4: New file.
29479 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
29481 2000-07-15 Jim Meyering <meyering@lucent.com>
29483 * lib/makepath.c: Include quote.h.
29484 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
29485 corresponding argument in a `quote (...)' call.
29486 Give better diagnostics.
29488 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
29489 (noinst_HEADERS): Add quote.h.
29491 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
29492 from tar's src/misc.c.
29493 * lib/quote.h: New file. Prototypes for same.
29495 2000-07-14 Paul Eggert <eggert@twinsun.com>
29497 From a suggestion by Bruno Haible.
29498 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
29499 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
29500 to decide whether to define the BeOS workaround macro;
29501 this adjusts to the change to AC_MBSTATE_T.
29503 2000-07-14 Jim Meyering <meyering@lucent.com>
29505 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
29506 jm_AC_TYPE_UINTMAX_T.
29508 2000-07-13 Paul Eggert <eggert@twinsun.com>
29510 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
29512 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
29513 quotearg_buffer_restyled): Add support for
29514 clocale_quoting_style. Undo previous change to
29515 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
29516 and "{RIGHT QUOTATION MARK}" msgids.
29518 2000-07-10 Paul Eggert <eggert@twinsun.com>
29520 From a suggestion by Bruno Haible.
29521 * m4/mbstate_t.m4 (AC_MBSTATE_T):
29522 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
29523 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
29524 and mbstate_t, to a single-part test that simply defines mbstate_t.
29525 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
29526 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
29528 2000-07-10 Jim Meyering <meyering@lucent.com>
29530 * m4/strerror_r.m4: Mirror the correction made in autoconf.
29532 * m4/gnu-source.m4: Output to confdefs.h directly.
29533 Suggestion from Akim Demaille.
29535 2000-07-09 Paul Eggert <eggert@twinsun.com>
29537 The old behavior of quoting `like this' doesn't look good with
29538 newer, ISO-style fonts. See:
29539 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
29541 Instead, quote "like this" by default. Let the translator
29542 tailor the locale-specific quoting behavior by providing
29543 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
29545 * lib/quotearg.c (N_): New macro.
29546 (gettext_default): New function.
29547 (quotearg_buffer_restyled): Use
29548 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
29549 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
29551 2000-07-09 Jim Meyering <meyering@lucent.com>
29553 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
29554 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
29556 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
29557 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
29559 2000-07-09 Jim Meyering <meyering@lucent.com>
29561 * lib/Most files: Update copyright dates to include 2000.
29563 2000-07-08 Jim Meyering <meyering@lucent.com>
29565 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
29567 (xgethostname): Remove now-unnecessary #ifdef.
29568 Move declaration of `err' into loop where it's used.
29570 2000-07-05 Paul Eggert <eggert@twinsun.com>
29571 and Bruno Haible <haible@clisp.cons.org>
29573 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
29574 only if the test for an object-type mbstate_t fails. This
29575 prevents us from mistakenly reporting that mbstate_t is a
29576 system object type after we "#define mbstate_t int" to work
29579 2000-07-05 Paul Eggert <eggert@twinsun.com>
29580 and Bruno Haible <haible@clisp.cons.org>
29582 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
29584 2000-07-05 Bruno Haible <haible@clisp.cons.org>
29586 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
29588 Include <ctype.h> for use of isalpha.
29590 2000-07-05 Bruno Haible <haible@clisp.cons.org>
29592 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
29593 by allocating a larger buffer. Test the gethostname return value for
29594 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
29595 returns an error and ENAMETOOLONG isn't defined.
29597 2000-07-05 Bruno Haible <haible@clisp.cons.org>
29599 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
29602 2000-07-04 Jim Meyering <meyering@lucent.com>
29604 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
29605 of the deprecated AC_CHECKING.
29607 2000-07-04 Jim Meyering <meyering@lucent.com>
29609 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
29610 Reported by Bruno Haible.
29612 2000-07-04 Jim Meyering <meyering@lucent.com>
29614 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
29615 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
29618 2000-07-03 Paul Eggert <eggert@twinsun.com>
29620 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
29621 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
29623 2000-07-03 Paul Eggert <eggert@twinsun.com>
29624 and Bruno Haible <haible@clisp.cons.org>
29626 * lib/quotearg.c (mbrtowc):
29627 Assign to *pwc, and return 1 only if result is nonzero.
29628 (iswprint): Use ISPRINT when substituting our own mbrtowc.
29630 2000-07-03 Jim Meyering <meyering@lucent.com>
29632 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
29634 2000-07-03 Jim Meyering <meyering@lucent.com>
29636 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
29637 This is necessary to get a definition of e.g., UTMP_FILE on
29641 2000-07-02 Jim Meyering <meyering@lucent.com>
29643 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
29645 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
29646 AC_LIBOBJ(function_name).
29647 * m4/chown.m4: Likewise.
29648 * m4/fnmatch.m4: Likewise.
29649 * m4/ftruncate.m4: Likewise.
29650 * m4/getgroups.m4: Likewise.
29651 * m4/getline.m4: Likewise.
29652 * m4/group-member.m4: Likewise.
29653 * m4/jm-macros.m4: Likewise.
29654 * m4/lstat.m4: Likewise.
29655 * m4/malloc.m4: Likewise.
29656 * m4/memcmp.m4: Likewise.
29657 * m4/nanosleep.m4: Likewise.
29658 * m4/putenv.m4: Likewise.
29659 * m4/realloc.m4: Likewise.
29660 * m4/regex.m4: Likewise.
29661 * m4/stat.m4: Likewise.
29662 * m4/strftime.m4: Likewise.
29664 2000-07-02 Jim Meyering <meyering@lucent.com>
29666 * lib/quotearg.c (mbstate_t): Don't define here.
29668 2000-07-02 Jim Meyering <meyering@lucent.com>
29670 * lib/nanosleep.c (SIGCONT): Define if not already defined.
29672 2000-07-01 Jim Meyering <meyering@lucent.com>
29674 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
29676 2000-07-01 Jim Meyering <meyering@lucent.com>
29678 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
29681 2000-07-01 Bruno Haible <haible@clisp.cons.org>
29683 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
29684 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
29686 2000-07-01 Bruno Haible <haible@clisp.cons.org>
29688 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
29689 per change in ../m4/ls-mntd-fs.m4.
29690 (read_filesystem_list): Ignore symbolic links.
29692 2000-06-29 Jim Meyering <meyering@lucent.com>
29694 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
29695 for declaration of strcmp.
29697 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
29699 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
29700 Avoid warning by casting result to `char *' to remove `const'.
29702 2000-06-28 Jim Meyering <meyering@lucent.com>
29704 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
29705 included by quotearg.c, for which we perform this test. From
29708 2000-06-27 Bruno Haible <haible@clisp.cons.org>
29710 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
29711 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
29712 <utmpx.h> exists, put readutmp.o into LIBOBJS.
29714 2000-06-27 Bruno Haible <haible@clisp.cons.org>
29716 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
29718 2000-06-26 Paul Eggert <eggert@twinsun.com>
29720 savedir now sets errno on failure and invokes xmalloc to get memory.
29721 Fix a couple of other minor bugs while we're at it.
29723 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
29724 (NAMLEN): Remove macro.
29725 (malloc, realloc): Remove decls.
29726 (stpcpy): Likewise.
29727 ("xalloc.h"): Include.
29728 (NAME_SIZE_DEFAULT): New macro.
29729 (savedir): Use xmalloc / xrealloc to allocate memory.
29730 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
29731 Skip "" directory entries.
29732 Use strlen to calculate directory entry length, since the old method
29733 is rarely used these days and isn't worth supporting.
29734 Don't use a pointer after freeing it.
29735 Check for integer overflow when calculating allocation size.
29736 Use memcpy to copy entries, instead of stpcpy.
29737 Set errno properly when returning NULL.
29738 Check for readdir error.
29740 2000-06-26 Jim Meyering <meyering@lucent.com>
29742 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
29744 2000-06-25 Jim Meyering <meyering@lucent.com>
29746 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
29747 Linux header bug when _XOPEN_SOURCE is defined to 500.
29749 2000-06-25 Bruno Haible <haible@clisp.cons.org>
29751 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
29754 2000-06-25 Bruno Haible <haible@clisp.cons.org>
29756 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
29758 Don't include <stdlib.h>. Don't declare malloc, realloc.
29760 2000-06-24 Jim Meyering <meyering@lucent.com>
29762 * m4/strerror_r.m4: Revive this file -- to try out an experimental
29763 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
29764 for which strerror does return char*, but which lacks a conveniently
29765 accessible declaration of the function. If the compile-test says
29766 strerror_r doesn't work, then resort to a `run'-test that works on
29767 BeOS and segfaults on DEC Unix.
29769 2000-06-24 Jim Meyering <meyering@lucent.com>
29771 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
29773 2000-06-23 Paul Eggert <eggert@twinsun.com>
29775 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
29776 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
29778 2000-06-23 Paul Eggert <eggert@twinsun.com>
29780 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
29781 (mbrtowc, mbstate_t): Define substitutes if
29782 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
29783 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
29784 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
29786 2000-06-23 Jim Meyering <meyering@lucent.com>
29788 * m4/afs.m4: Add missing AC_MSG_RESULT.
29789 Reported by Bruno Haible.
29791 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
29792 Suggestion from Bruno Haible.
29794 2000-06-23 Jim Meyering <meyering@lucent.com>
29796 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
29798 2000-06-21 Jim Meyering <meyering@lucent.com>
29800 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
29802 2000-06-21 Jim Meyering <meyering@lucent.com>
29804 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
29805 (noinst_HEADERS): Add getstr.h.
29807 * lib/getline.c (getstr): Move into a separate file.
29808 * lib/getstr.c (getstr): New file, extracted from getline.c, with
29809 the following changes: new parameter, delim2; both delim[12]
29810 parameters have type `int', not `char'. The latter would lose
29811 with 8-bit delimiters.
29812 * lib/getstr.h: New file.
29814 2000-06-21 Bruno Haible <haible@clisp.cons.org>
29816 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
29817 than 1024, return a memory chunk of least possible size, instead
29818 of size PATH_MAX + 2. In the loop, increment the size proportionally.
29819 Use free/xmalloc instead of xrealloc to avoid copying for very long
29822 2000-06-21 Bruno Haible <haible@clisp.cons.org>
29824 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
29827 2000-06-21 Bruno Haible <haible@clisp.cons.org>
29829 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
29830 address, not strdup. Include <stdlib.h> and don't declare free().
29832 2000-06-19 Jim Meyering <meyering@lucent.com>
29834 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
29836 2000-06-18 Jim Meyering <meyering@lucent.com>
29838 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
29840 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
29841 `checking whether...' message to be consistent with that of the
29844 2000-06-18 Jim Meyering <meyering@lucent.com>
29846 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
29847 Besides, these days every porting target provides a mkdir function.
29849 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
29850 needed. (this snippet comes from src/system.h).
29852 2000-06-16 Bruno Haible <haible@clisp.cons.org>
29854 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
29856 2000-06-15 Paul Eggert <eggert@twinsun.com>
29858 * lib/human.c (adjust_value): New function.
29859 (human_readable_inexact): Apply rounding style even when
29860 printing approximate values.
29862 2000-06-14 Paul Eggert <eggert@twinsun.com>
29864 * lib/human.c (human_readable_inexact): Allow an input block
29865 size that is not a multiple of the output block size, and vice versa.
29866 Reported by Piergiorgio Sartor.
29868 2000-06-14 Paul Eggert <eggert@twinsun.com>
29870 * lib/getdate.y (get_date): Apply relative times after time
29871 zone indicator, not before. Reported by Todd A. Jacobs.
29873 2000-06-13 Jim Meyering <meyering@lucent.com>
29875 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
29877 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
29879 2000-06-12 Paul Eggert <eggert@twinsun.com>
29881 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
29883 2000-06-12 Jim Meyering <meyering@lucent.com>
29885 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
29886 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
29888 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
29889 the optional argument, `lib'.
29891 2000-06-08 Jim Meyering <meyering@lucent.com>
29893 * m4/largefile.m4: Remove file (now that it's part of autoconf).
29895 2000-06-04 Paul Eggert <eggert@twinsun.com>
29897 Rewrite largefile configuration so that we don't need to run
29898 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
29899 AC_CANONICAL_HOST in configure.in -- jmm]
29901 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
29902 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
29903 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
29904 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
29905 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
29907 Instead of inspecting the output of getconf, try to compile the
29908 test program without and with the macro definition.
29909 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
29910 for getconf. Instead, check for the needed flags by compiling
29913 2000-06-04 Paul Eggert <eggert@twinsun.com>
29915 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
29917 2000-06-04 Jim Meyering <meyering@lucent.com>
29919 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
29920 SunOS 4.1.4 for which gid_t is an unsigned type.
29922 2000-06-03 Jim Meyering <meyering@lucent.com>
29924 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
29925 now that autoconf requires that.
29927 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
29928 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
29929 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
29931 2000-06-03 Jim Meyering <meyering@lucent.com>
29933 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
29935 2000-06-03 Bruno Haible <haible@clisp.cons.org>
29937 * m4/glibc21.m4: New file.
29938 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
29940 2000-06-03 Bruno Haible <haible@clisp.cons.org>
29942 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
29943 newer, don't install charset.alias.
29944 * lib/config.charset: Change the Linux/glibc rules so they become empty
29945 on glibc-2.1 or newer.
29947 2000-06-02 Jim Meyering <meyering@lucent.com>
29949 * lib/mountlist.c: Back out last change. Instead, do this...
29950 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
29951 me_dummy member using the same `ignore'-testing code.
29952 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
29956 2000-05-29 Jim Meyering <meyering@lucent.com>
29958 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
29959 mounts with the `ignore' attribute. Based on a patch from
29962 2000-05-28 Jim Meyering <meyering@lucent.com>
29964 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
29965 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29966 * m4/stat.m4: Likewise.
29967 * m4/lstat.m4: Likewise.
29968 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
29970 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
29971 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
29973 2000-05-26 Jim Meyering <meyering@lucent.com>
29975 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
29977 2000-05-24 Jim Meyering <meyering@lucent.com>
29979 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
29980 autoconf requires that.
29981 * m4/lib-check.m4: Likewise.
29982 * m4/jm-macros.m4: Likewise.
29983 * m4/strftime.m4: Likewise.
29985 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
29986 AC_CHECK_DECLS, now that autoconf requires that.
29988 2000-05-22 Jim Meyering <meyering@lucent.com>
29990 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29991 * m4/lstat.m4: Likewise.
29993 2000-05-22 Jim Meyering <meyering@lucent.com>
29995 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
29997 2000-05-20 Jim Meyering <meyering@lucent.com>
29999 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
30000 (jm_PREREQ): Use it.
30002 2000-05-18 Jim Meyering <meyering@lucent.com>
30004 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
30005 back, too, since it may have been modified by allocate_entry.
30006 (hash_delete): Rewrite to use neither the assignment operator
30007 nor the comma operator in an if-expression.
30009 2000-05-15 Paul Eggert <eggert@twinsun.com>
30012 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
30013 Remove; no longer needed.
30014 "quotearg.h": Add include.
30015 (file_name): Do not bother to explicitly initialize to NULL; it's less
30016 efficient on some hosts.
30017 (close_stdout_status): Remove test as to whether stdout was already
30018 closed; it breaks for the case "echo x | sort >&-".
30019 Quote file name colons.
30020 Do not assume that _("write error") lacks format strings.
30022 2000-05-15 Jim Meyering <meyering@lucent.com>
30024 * lib/version-etc.c (version_etc_copyright): Update the copyright
30025 string used in all --version output.
30027 2000-05-14 Jim Meyering <meyering@lucent.com>
30029 * lib/closeout.c (close_stdout_set_file_name): New function.
30030 (close_stdout_status): Use new file-scoped global.
30031 Return right away if fstat says the stdout file descriptor is invalid.
30032 * lib/closeout.h (close_stdout_set_file_name): Declare.
30034 2000-05-10 Jim Meyering <meyering@lucent.com>
30036 * lib/closeout.c [default_exit_status]: New file-scoped variable.
30037 (close_stdout_set_status): New function.
30038 * lib/closeout.h (close_stdout_set_status): Declare.
30040 2000-05-09 Jim Meyering <meyering@lucent.com>
30042 * m4/gettext.m4: Rename this...
30043 * m4/libintl.m4: ...to this.
30045 2000-05-08 Jim Meyering <meyering@lucent.com>
30047 * lib/long-options.c: Don't include closeout.h.
30048 (parse_long_options): Don't call close_stdout for --version.
30050 2000-05-06 Paul Eggert <eggert@twinsun.com>
30052 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
30053 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
30054 2.1.3 bug. This avoids a clash when files like regex.c define
30057 2000-05-06 Jim Meyering <meyering@lucent.com>
30059 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
30060 (AC_REPLACE_FUNCS): Add strnlen.
30062 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
30063 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
30065 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
30066 AC_SEARCH_LIBS call for nanosleep.
30067 (LIB_NANOSLEEP): Set and AC_SUBST.
30069 2000-05-06 Jim Meyering <meyering@lucent.com>
30071 * lib/strnlen.c: Undefine __strnlen and strnlen.
30072 [!weak_alias]: Define __strnlen to strnlen.
30074 * lib/atexit.c: New file, from libiberty.
30076 2000-05-06 Jim Meyering <meyering@lucent.com>
30078 * lib/closeout.c (close_stdout_status): Also check for errors on the
30081 2000-05-05 Jim Meyering <meyering@lucent.com>
30083 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
30084 AC_SEARCH_LIBS call for clock_gettime.
30085 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
30087 * m4/search-libs.m4: Update from autoconf.
30089 su doesn't work on Solaris 2.6.
30090 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
30091 <shadow.h>. Reported by Dragos Harabor.
30093 2000-05-05 Bruno Haible <haible@clisp.cons.org>
30095 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
30096 memcpy instead of xmalloc, xrealloc, path_concat.
30097 (locale_charset): Treat empty environment variables as absent.
30098 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
30100 2000-05-04 Jim Meyering <meyering@lucent.com>
30102 * lib/getopt.c: Update from glibc.
30103 * lib/obstack.c: Likewise.
30104 * lib/obstack.h: Likewise.
30105 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
30108 * lib/regex.h: Likewise.
30109 * lib/strndup.c: Likewise.
30110 * lib/strnlen.c: New file, from glibc.
30112 2000-05-03 Jim Meyering <meyering@lucent.com>
30114 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
30116 2000-05-02 Paul Eggert <eggert@twinsun.com>
30118 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
30119 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
30120 compile-time test, rather than inspecting host and OS, to
30121 decide whether to define _LARGEFILE_SOURCE.
30123 2000-05-01 Jim Meyering <meyering@lucent.com>
30125 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
30127 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
30128 Based on a patch from Bruno Haible.
30130 2000-05-01 Jim Meyering <meyering@lucent.com>
30132 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
30134 2000-04-29 Jim Meyering <meyering@lucent.com>
30136 * lib/path-concat.c: Declare strdup only if it's not defined.
30137 * lib/canon-host.c: Likewise.
30139 2000-04-28 Jim Meyering <meyering@lucent.com>
30141 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
30142 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
30143 is included first, then limits.h is included by locale.h by libintl.h.
30144 From John David Anglin.
30146 2000-04-25 Jim Meyering <meyering@lucent.com>
30148 * lib/makepath.c (S_IRWXUGO): Define.
30149 (make_path): Always perform explicit chmod if MODE specifies any
30150 of the `special' permission bits. Prompted by a bug report against
30151 install from Mate Wierdl and Joost van Baal.
30153 2000-04-18 Jim Meyering <meyering@lucent.com>
30155 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
30156 (jm_PREREQ): Use it.
30158 2000-04-18 Jim Meyering <meyering@lucent.com>
30160 * lib/README: New file.
30162 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
30163 getpagesize. For BeOS. Based on a patch from Bruno Haible.
30165 2000-04-17 Jim Meyering <meyering@lucent.com>
30168 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
30169 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
30170 Suggestion from Akim Demaille.
30172 2000-04-17 Jim Meyering <meyering@lucent.com>
30174 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
30175 the definition of it to rpl_strftime also defined-away the system's
30178 2000-04-15 Jim Meyering <meyering@lucent.com>
30180 Use `C' to denote so-called `contiguous' files, the same way
30182 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
30183 (ftypelet): Use S_ISCTG.
30184 From Michael Deutschmann.
30186 2000-04-14 Jim Meyering <meyering@lucent.com>
30188 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
30189 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
30192 2000-04-14 Jim Meyering <meyering@lucent.com>
30194 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
30196 2000-04-13 Jim Meyering <meyering@lucent.com>
30198 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
30199 AH_VERBATIM to insert required #ifndef into config.h.in.
30200 Suggestion from Akim Demaille.
30202 2000-04-12 Jim Meyering <meyering@lucent.com>
30204 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
30205 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
30206 Christian Krackowizer.
30208 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
30209 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
30210 (AC_SYS_LARGEFILE): Require.
30211 (AM_C_PROTOTYPES): Require.
30213 2000-04-08 Jim Meyering <meyering@lucent.com>
30215 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
30216 names don't conflict. Reported by Eli Zaretskii.
30218 2000-04-07 Jim Meyering <meyering@lucent.com>
30220 * lib/putenv.c: Move inclusion of errno.h so it follows that of
30221 sys/types.h, to work around system header problems on AIX 3.2.5.
30224 2000-04-07 Bruno Haible <haible@clisp.cons.org>
30226 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
30227 bug. Deal with the different error behavior of Irix iconv.
30229 2000-04-05 Paul Eggert <eggert@twinsun.com>
30231 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
30232 IRIX if the installer said otherwise.
30234 2000-04-05 Jim Meyering <meyering@lucent.com>
30236 Portability tweaks required for ultrix4.3.
30237 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
30238 (jm_CHECK_DECLS): Add getutent to the list of functions.
30239 (_jm_DECL_HEADERS): Add utmpx.h.
30240 From John David Anglin.
30242 * m4/strftime.m4: Back out the 2000-04-02 change.
30243 Instead of that change, simply undefine putenv in the test program.
30245 2000-04-05 Jim Meyering <meyering@lucent.com>
30247 Portability tweaks required for ultrix4.3.
30248 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
30250 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
30251 * lib/canon-host.c: Declare strdup.
30252 * lib/path-concat.c: Likewise.
30253 From John David Anglin.
30255 2000-04-04 Jim Meyering <meyering@lucent.com>
30257 Be more DOS 8.3-friendly.
30258 * lib/ref-add.sin: Renamed from ref-add.sed.in.
30259 * lib/ref-del.sin: Renamed from ref-del.sed.in.
30260 * lib/Makefile.am: Reflect renaming.
30261 Reported by Eli Zaretskii.
30263 Use a temporary file name that won't clash with `charset.alias'
30264 in the DOS 8.3 name space.
30265 * lib/Makefile.am (charset_tmp): Define.
30266 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
30267 (uninstall-local): Likewise.
30268 Reported by Eli Zaretskii.
30270 2000-04-03 Jim Meyering <meyering@lucent.com>
30272 * m4/gettext.m4: Fix typo in comment.
30274 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
30275 textutils/configure.in). Suggestion from Paul Eggert.
30276 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
30278 2000-04-02 Paul Eggert <eggert@twinsun.com>
30280 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
30281 variable in the shell rather than using putenv, which isn't
30282 portable. This avoids the configure-time inter-test dependency
30283 on the potentially-renamed putenv function.
30285 2000-03-30 Paul Eggert <eggert@twinsun.com>
30287 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
30288 before checking struct stat.st_blksize, so that
30289 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
30291 2000-03-29 Paul Eggert <eggert@twinsun.com>
30293 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
30294 since strftime.c uses HAVE_STRFTIME to decide whether to use
30295 the underlying strftime.
30297 2000-03-29 Paul Eggert <eggert@twinsun.com>
30299 * lib/time/strftime.c (my_strftime): Make sure we call the system
30300 strftime, not ourselves, when invoking the underlying strftime.
30302 2000-03-24 Jim Meyering <meyering@lucent.com>
30304 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
30305 (charset_alias): Define.
30306 (install-exec-local): Factor out common code.
30307 (uninstall-local): Split lines longer than 80.
30308 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
30309 (SUFFIXES): Define.
30310 (.sed.in.sed): New rule. Don't redirect directly to $@.
30311 (CLEANFILES): Add ref-add.sed and ref-del.sed.
30313 2000-03-19 Bruno Haible <haible@clisp.cons.org>
30315 * lib/config.charset: Output a line containing "Packages using this
30317 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
30318 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
30319 ref-del.sed): New rules.
30321 2000-03-17 Jim Meyering <meyering@lucent.com>
30323 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
30324 Otherwise, include <strings.h>
30326 2000-03-17 Bruno Haible <haible@clisp.cons.org>
30328 * lib/unicodeio.c (utf8_wctomb): New function.
30329 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
30330 format instead of in UCS-4 with platform dependent endianness.
30332 2000-03-10 Jim Meyering <meyering@lucent.com>
30334 * m4/lib-check.m4: Look for getspnam in -lgen, too.
30335 From Marco Franzen.
30337 2000-03-07 Paul Eggert <eggert@twinsun.com>
30339 * lib/savedir.c (savedir): Work even if directory size is
30340 negative; this can happen with some screwy NFS configurations.
30342 2000-03-06 Jim Meyering <meyering@lucent.com>
30344 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
30345 if it's NULL (because we ran out of memory). From Bruno Haible.
30347 2000-03-05 Jim Meyering <meyering@lucent.com>
30349 * lib/localcharset.c ("path-concat.h"): Include.
30350 (get_charset_aliases): Use path_concat instead of ANSI string
30353 * lib/unicodeio.h (PARAMS): Define.
30354 Use it to guard prototype.
30356 2000-03-04 Jim Meyering <meyering@lucent.com>
30358 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
30359 for lib/localcharset.c.
30361 2000-03-04 Jim Meyering <meyering@lucent.com>
30363 * lib/Makefile.am (install-exec-local): Create $(libdir) before
30364 installing into it.
30365 (uninstall-local): Uncomment this rule so `make distcheck' works
30368 * lib/unicodeio.c (<errno.h>): Include it.
30369 (errno): Declare if not defined.
30371 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
30373 * lib/config.charset: New version, incorporating remarks from a linux
30374 i18n mailing list. From Bruno Haible.
30376 2000-03-04 Bruno Haible <haible@clisp.cons.org>
30378 * m4/codeset.m4: New file.
30379 * m4/iconv.m4: New file.
30380 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
30382 2000-03-03 Jim Meyering <meyering@lucent.com>
30384 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
30386 2000-03-02 Jim Meyering <meyering@lucent.com>
30388 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
30389 the messages come out on separate lines.
30391 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
30392 rather than jm_CHECK_DECLARATIONS.
30393 * m4/decl.m4: Remove now-unused file.
30395 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
30398 2000-03-02 Jim Meyering <meyering@lucent.com>
30400 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
30402 2000-03-01 Jim Meyering <meyering@lucent.com>
30404 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
30405 * lib/unicodeio.c: Likewise.
30407 2000-03-01 Bruno Haible <haible@clisp.cons.org>
30409 * lib/config.charset: New file.
30410 * lib/localcharset.c: New file.
30411 * lib/unicodeio.h, lib/unicodeio.c: New files.
30412 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
30413 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
30414 (noinst_HEADERS): Add unicodeio.h.
30415 (all-local, install-exec-local, charset.alias): New targets.
30417 2000-02-28 Paul Eggert <eggert@twinsun.com>
30419 * lib/quotearg.c (ALERT_CHAR): New macro.
30420 (quotearg_buffer_restyled): Use it.
30422 2000-02-27 Jim Meyering <meyering@lucent.com>
30424 * m4/check-decl.m4: Add getenv to the list.
30426 2000-02-27 Jim Meyering <meyering@lucent.com>
30428 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
30429 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
30431 * lib/backupfile.c: Guard inclusion of stdlib.h with
30432 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
30433 Declare malloc if needed.
30435 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
30436 `#ifndef HAVE_DECL..'
30437 now that autoconf always defines the HAVE_DECL_ symbols.
30438 * lib/human.c: Likewise.
30439 * lib/same.c: Likewise.
30440 * lib/strtoumax.c: Likewise.
30442 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
30443 declaration check was not run.
30444 * lib/hash.c: Likewise.
30445 * lib/human.c: Likewise.
30446 * lib/same.c: Likewise.
30447 * lib/strtoumax.c: Likewise.
30449 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
30450 `.', then first look up the entire `.'-containing string as a login
30453 2000-02-23 Jim Meyering <meyering@lucent.com>
30455 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
30456 in place of my hack.
30458 2000-02-18 Paul Eggert <eggert@twinsun.com>
30460 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
30461 (textint): New typedef.
30462 (parser_control): Member year changed from int to textint.
30464 (YYSTYPE): Removed; replaced by %union with int and textint members.
30465 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
30466 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
30467 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
30468 (tSNUMBER, tUNUMBER): Now of type <textintval>.
30469 (date, number, to_year): Use width of number in digits, not its value,
30470 to determine whether it's a 2-digit year, or a 2-digit time.
30471 (yylex): Store number of digits of numeric tokens.
30472 Reported by John Kendall.
30474 (parser_control): Changed from struct parser_control to typedef (for
30475 consistency). All uses changed.
30477 (tID): Removed; not used.
30478 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
30480 2000-02-14 Paul Eggert <eggert@twinsun.com>
30482 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
30483 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
30485 2000-02-12 Jim Meyering <meyering@lucent.com>
30487 * lib/userspec.c (ISDIGIT): Define it.
30488 (isdigit): Remove definition.
30489 (is_number): Use ISDIGIT, not isdigit.
30490 <libintl.h>: Include.
30491 (_ and N_): Define.
30492 (parse_user_spec): Mark translatable strings.
30494 2000-02-10 Jim Meyering <meyering@lucent.com>
30496 With these changes, nanosleep.[ch] are finally enough like the other
30497 lib/* replacement files to compile on a few more losing systems.
30499 * lib/nanosleep.h: Don't include config.h.
30500 Remove prototype from declaration of nanosleep.
30501 (PARAMS): Remove now-unneeded definition.
30502 * lib/nanosleep.c: #undef nanosleep.
30503 (rpl_nanosleep): Rename from nanosleep.
30505 2000-02-10 Jim Meyering <meyering@lucent.com>
30507 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
30508 gnu_nanosleep to rpl_nanosleep.
30510 2000-02-09 Jim Meyering <meyering@lucent.com>
30512 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
30513 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
30515 2000-02-08 Akim Demaille <akim@epita.fr>
30517 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
30518 `[' and `]' and remove uses of `changequote'.
30519 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
30520 (AC_SYS_LARGEFILE): Likewise.
30521 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30522 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
30524 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
30525 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
30526 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
30527 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
30529 2000-02-05 Jim Meyering <meyering@lucent.com>
30531 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
30532 Remove explicit use of AC_HEADER_TIME. It is required by
30533 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
30534 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
30535 in autoconf whereby the expansion of the latter ended up preceding
30536 the expansion of its prerequisite, AC_HEADER_TIME.
30537 Reported by Volker Borchert.
30539 2000-02-03 Jim Meyering <meyering@lucent.com>
30541 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
30543 2000-02-03 Jim Meyering <meyering@lucent.com>
30545 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
30546 rather than with `#if HAVE_UTMPNAME'.
30548 2000-02-02 Jim Meyering <meyering@lucent.com>
30550 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
30551 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
30552 Reported by Eli Zaretskii.
30554 2000-02-01 Jim Meyering <meyering@lucent.com>
30556 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
30558 2000-01-31 Jim Meyering <meyering@lucent.com>
30560 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
30561 functions. Add the time.h and sys/time.h headers along with the
30562 AC_REQUIRE'ment of AC_HEADER_TIME.
30564 2000-01-31 Jim Meyering <meyering@lucent.com>
30566 * lib/nanosleep.h (nanosleep): Guard declaration with
30567 `#if ! HAVE_DECL_NANOSLEEP'.
30568 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
30569 the declaration in that vendor's sys/timers.h.
30570 Reported by Christian Krackowizer.
30572 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
30573 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
30574 (ISPRINT): Likewise.
30575 Reported by Tom Tromey.
30577 2000-01-30 Jim Meyering <meyering@lucent.com>
30579 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
30581 * m4/prereq.m4 (utmp_includes): Define.
30582 Check for ut_user and ut_name members in both struct utmpx
30585 2000-01-30 Jim Meyering <meyering@lucent.com>
30587 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
30588 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
30589 header files where only utmpx.ut_user is declared.
30591 * lib/readutmp.h (UT_USER): Define.
30593 2000-01-29 Jim Meyering <meyering@lucent.com>
30595 * m4/lib-check.m4: New file containing library-related checks from
30596 fileutils and sh-utils (textutils had none).
30598 2000-01-28 Jim Meyering <meyering@lucent.com>
30600 * m4/perl.m4: Change format of warning message to look more like that
30601 from the missing script. Suggestion from François Pinard.
30603 2000-01-25 Jim Meyering <meyering@lucent.com>
30605 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
30606 well as time.h in the compile check.
30607 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
30608 Fix typo in cross-compiling case: s/yes/no/.
30610 2000-01-23 Jim Meyering <meyering@lucent.com>
30612 * m4/jm-macros.m4: Move df-related tests here from
30613 fileutils/configure.in
30615 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
30616 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
30618 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
30619 s/space/ac_fsusage_space/.
30620 (jm_FILE_SYSTEM_USAGE): Take two parameters.
30622 * m4/ftruncate.m4: New file (derived from part of
30623 fileutils/configure.in).
30624 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
30625 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
30627 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
30628 AC_SUBST these here, rather than just in sh-util/configure.in, so
30629 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
30631 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
30632 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
30633 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
30634 (AC_SUBST(POW_LIBM)): Likewise.
30635 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
30637 2000-01-23 Jim Meyering <meyering@lucent.com>
30639 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
30642 2000-01-22 Jim Meyering <meyering@lucent.com>
30644 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
30646 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
30648 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
30650 (AC_CHECK_HEADERS): Likewise for sh-utils.
30651 (AC_CHECK_HEADERS): Likewise for textutils.
30652 Merge the three lists of headers.
30654 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
30655 from fileutils' configure.in.
30657 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
30658 code. Moved tests into their own function (_jm_DECL_HEADERS) in
30661 * m4/check-decl.m4: Use #if rather than #ifdef.
30662 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
30663 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
30664 (_jm_DECL_HEADERS): Define new function.
30665 (jm_CHECK_DECLARATIONS): Require it.
30667 2000-01-22 Jim Meyering <meyering@lucent.com>
30669 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
30670 [! HAVE_DECL_STRTOULL]: Declare strtoull.
30671 Required for some AIX systems. Reported by Christian Krackowizer.
30672 [TESTING] (main): New function.
30674 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
30675 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
30678 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
30681 * lib/strverscmp.c (ISDIGIT): Define.
30682 (strverscmp): Use ISDIGIT, not isdigit.
30684 2000-01-19 Jim Meyering <meyering@lucent.com>
30686 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
30687 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
30688 defines `struct timespec' in <sys/time.h>
30690 * m4/c-bs-a.m4: Remove uses of changequote altogether.
30691 Thanks to Akim for explaining.
30693 2000-01-17 Paul Eggert <eggert@twinsun.com>
30695 * lib/nanosleep.c (nanosleep):
30696 Don't use SA_INTERRUPT to decide whether to call sigaction, as
30697 POSIX.1 doesn't require SA_INTERRUPT and some systems
30698 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
30699 it's been part of POSIX.1 since day 1 (in 1988).
30701 2000-01-17 Jim Meyering <meyering@lucent.com>
30703 * lib/interlock: Remove unused file. Reported by François Pinard.
30705 2000-01-16 Paul Eggert <eggert@twinsun.com>
30707 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
30708 alert, backslash, formfeed, and vertical tab unnecessarily in
30709 shell quoting style.
30711 2000-01-16 Jim Meyering <meyering@lucent.com>
30713 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
30714 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
30715 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
30716 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
30718 2000-01-16 Jim Meyering <meyering@lucent.com>
30720 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
30721 because the latter didn't work.
30723 2000-01-15 Jim Meyering <meyering@lucent.com>
30725 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
30726 (AC_REPLACE_FUNCS): Add memcpy and memset.
30727 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
30729 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
30731 2000-01-12 Jim Meyering <meyering@lucent.com>
30733 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
30734 (jm_PREREQ): Use it.
30735 (jm_PREREQ_READUTMP): New macro.
30736 (jm_PREREQ): Use it.
30738 2000-01-11 Paul Eggert <eggert@twinsun.com>
30740 Quote multibyte characters correctly.
30741 * m4/c-bs-a.m4: New file.
30742 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
30743 (jm_PREREQ): Use it.
30745 2000-01-11 Paul Eggert <eggert@twinsun.com>
30747 * m4/uintmax_t.m4: Port to autoconf 2.13.
30749 2000-01-08 Jim Meyering <meyering@ascend.com>
30751 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
30752 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
30754 2000-01-04 Jim Meyering <meyering@ascend.com>
30756 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
30757 jm_STRUCT_DIRENT_D_TYPE.
30758 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
30759 jm_STRUCT_DIRENT_D_INO.
30760 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
30762 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
30764 * m4/utime.m4: Likewise.
30766 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
30767 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
30769 2000-01-03 Paul Eggert <eggert@twinsun.com>
30771 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
30772 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
30774 2000-01-02 Jim Meyering <meyering@ascend.com>
30776 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
30777 remember if this is necessary.
30779 1999-12-26 Jim Meyering <meyering@ascend.com>
30781 * m4/jm-macros.m4: Use it here.
30782 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
30784 1999-12-23 Jim Meyering <meyering@ascend.com>
30786 * m4/jm-macros.m4: Check for clock_gettime (moved from
30787 fileutils/configure.in)
30788 Check for gettimeofday.
30790 1999-12-20 Jim Meyering <meyering@ascend.com>
30792 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
30793 autoconf-2.14a-1999-12-20.
30795 1999-12-19 Jim Meyering <meyering@ascend.com>
30797 * m4/lstat-slash.m4: New file.
30798 * m4/jm-macros.m4: Use the new macro:
30799 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30801 1999-12-07 Jim Meyering <meyering@ascend.com>
30803 * m4/perl.m4: Require that File::Compare be available, too.
30804 Too many systems seem to lack it.
30806 * m4/strftime.m4: Add checks for most of the cpp macros tested in
30807 GNU's strftime.c. Prompted by a patch from Paul Eggert.
30809 1999-11-18 Paul Eggert <eggert@twinsun.com>
30811 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
30812 problem with the QNX 4.25 shell, which doesn't propagate exit
30813 status of failed commands inside shell assignments.
30815 1999-11-17 Jim Meyering <meyering@ascend.com>
30817 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
30819 1999-11-07 Jim Meyering <meyering@ascend.com>
30821 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
30823 1999-11-06 Jim Meyering <meyering@ascend.com>
30825 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
30826 * m4/jm-macros.m4 (jm_MACROS): Use it here.
30828 1999-11-05 Jim Meyering <meyering@ascend.com>
30830 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
30831 configure.in of textutils, fileutils, and sh-utils into this one
30832 (shared between those packages) file.
30833 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
30834 AC_STRUCT_ST_BLKSIZE.
30836 1999-11-03 Jim Meyering <meyering@ascend.com>
30838 * m4/ssize_t.m4: Remove file. No longer needed since the new version
30839 of AC_CHECK_TYPE checks includes unistd.h.
30840 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
30841 Suggestion from Akim Demaille.
30843 1999-10-30 Jim Meyering <meyering@ascend.com>
30845 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
30847 * m4/ls-mntd-fs.m4: Likewise.
30848 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
30849 * m4/jm-winsz1.m4: Likewise.
30851 * m4/const.m4: Remove file, since the fix made it into the experimental
30852 version of autoconf.
30853 * m4/mktime.m4: Likewise.
30855 * m4/check-type.m4: Remove file, now that the latest version of
30856 AC_CHECK_TYPE takes a third arg to specify additional #includes.
30858 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
30859 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
30862 1999-10-04 Jim Meyering <meyering@ascend.com>
30864 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
30866 1999-09-22 Paul Eggert <eggert@twinsun.com>
30868 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
30869 2.95.1 bug with HP-UX 10.20.
30871 1999-09-17 Jim Meyering <meyering@ascend.com>
30873 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
30874 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
30875 due to missing strdup (against sh-utils-2.0).
30877 1999-08-29 Jim Meyering <meyering@ascend.com>
30879 * m4/jm-macros.m4: Require jm_BISON.
30880 * m4/bison.m4: New file.
30882 1999-08-17 Paul Eggert <eggert@twinsun.com>
30884 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
30885 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
30887 1999-08-05 Jim Meyering <meyering@ascend.com>
30889 * m4/getline.m4: Rename test file from conftestdata to conftest.data
30890 to avoid conflicts with `conftest' on 8+3 filesystems.
30891 Suggestion from Eli Zaretskii.
30893 1999-08-04 Jim Meyering <meyering@ascend.com>
30895 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
30896 fileutils and sh-utils (textutils's getline test was inadequate).
30897 (AM_FUNC_GETLINE): Run this test.
30898 (AC_CHECK_FUNCS): Check for getdelim.
30899 Reported by Bob Proulx.
30901 1999-08-02 Jim Meyering <meyering@ascend.com>
30903 * m4/jm-macros.m4: Add a comment.
30905 1999-08-01 Paul Eggert <eggert@twinsun.com>
30907 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
30908 <inttypes.h> defines strtoumax as a macro (and not as a
30911 1999-08-01 Paul Eggert <eggert@twinsun.com>
30913 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
30914 that we can shift, multiply and divide unsigned long long
30915 values; Ultrix cc can't do it.
30917 1999-08-01 Paul Eggert <eggert@twinsun.com>
30919 * m4/mktime.m4: New file, which is a preview of what should appear
30920 in the next public autoconf release.
30922 1999-08-01 Paul Eggert <eggert@twinsun.com>
30924 * m4/lfs.m4: Remove this file.
30925 * m4/largefile.m4: New file. It contains the old contents of
30926 lfs.m4, except that all names with prefix AC_LFS have been
30927 changed to use the prefix AC_SYS_LARGEFILE instead, to be
30928 compatible with future autoconf versions. Also, some minor m4
30929 quoting problems have been fixed.
30931 1999-08-01 Paul Eggert <eggert@twinsun.com>
30933 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
30934 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
30935 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
30936 and simplify the shell code.
30938 1999-08-01 Jim Meyering <meyering@ascend.com>
30940 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
30943 1999-07-20 Jim Meyering <meyering@ascend.com>
30945 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
30947 1999-07-15 Jim Meyering <meyering@ascend.com>
30949 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
30951 1999-05-22 Jim Meyering <meyering@ascend.com>
30953 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
30955 1999-05-20 Jim Meyering <meyering@ascend.com>
30957 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
30958 Add a colon after each `then' in case $4 is empty.
30960 1999-05-16 Jim Meyering <meyering@ascend.com>
30962 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
30964 1999-05-10 Jim Meyering <meyering@ascend.com>
30966 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
30968 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
30971 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
30973 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
30975 1999-05-04 Paul Eggert <eggert@twinsun.com>
30977 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
30978 not CPPFLAGS, so that linking works correctly in IRIX.
30980 1999-04-30 Paul Eggert <eggert@twinsun.com>
30982 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
30984 1999-04-20 Paul Eggert <eggert@twinsun.com>
30986 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
30987 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
30988 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
30989 jm_AC_TYPE_UNSIGNED_LONG_LONG.
30990 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
30992 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
30994 1999-04-20 Jim Meyering <meyering@ascend.com>
30996 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
30997 AC_REPLACE xstroull if necessary. From Paul Eggert.
30998 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
31000 1999-04-18 Jim Meyering <meyering@ascend.com>
31002 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
31003 * m4/jm-macros.m4: Use it.
31005 1999-04-06 Jim Meyering <meyering@ascend.com>
31007 * m4/strftime.m4: Remove test for %f.
31009 1999-03-29 Jim Meyering <meyering@ascend.com>
31011 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
31012 superset of the AC_TYPE_* checks in the textutils, fileutils,
31013 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
31016 1999-03-28 Jim Meyering <meyering@ascend.com>
31018 * m4/jm-macros.m4: Define GNU_PACKAGE here.
31019 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
31020 replaced e.g., in the *.sh files of the sh-utils.
31022 1999-03-20 Jim Meyering <meyering@ascend.com>
31024 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
31025 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
31026 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
31028 1999-03-19 Jim Meyering <meyering@ascend.com>
31030 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
31032 1999-03-12 Jim Meyering <meyering@ascend.com>
31034 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
31036 1999-03-07 Jim Meyering <meyering@ascend.com>
31038 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
31041 1999-02-17 Jim Meyering <meyering@ascend.com>
31043 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
31044 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
31046 1999-02-07 Jim Meyering <meyering@ascend.com>
31048 * m4/group-member.m4: New file -- extracted from sh-utils'
31051 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
31052 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
31054 1999-02-06 Jim Meyering <meyering@ascend.com>
31056 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
31057 * m4/fnmatch.m4: Likewise.
31058 * m4/getgroups.m4: Likewise.
31059 * m4/lstat.m4: Likewise.
31060 * m4/malloc.m4: Likewise.
31061 * m4/putenv.m4: Likewise.
31062 * m4/realloc.m4: Likewise.
31063 * m4/regex.m4: Likewise.
31064 * m4/stat.m4: Likewise.
31065 * m4/strftime.m4: Likewise.
31066 Suggestion from Alain Magloire.
31068 * m4/chown.m4: Use `.$ac_objext', not `.o'.
31069 * m4/fnmatch.m4: Likewise.
31070 * m4/getgroups.m4: Likewise.
31071 * m4/getline.m4: Likewise.
31072 * m4/lstat.m4: Likewise.
31073 * m4/malloc.m4: Likewise.
31074 * m4/memcmp.m4: Likewise.
31075 * m4/putenv.m4: Likewise.
31076 * m4/realloc.m4: Likewise.
31077 * m4/regex.m4: Likewise.
31078 * m4/stat.m4: Likewise.
31079 * m4/strftime.m4: Likewise.
31080 Suggestion from Alain Magloire.
31082 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
31085 * m4/regex.m4: Add a run-time Test for proper operation of
31086 re_compile_pattern.
31088 1999-01-31 Jim Meyering <meyering@ascend.com>
31090 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
31092 1999-01-30 Jim Meyering <meyering@ascend.com>
31094 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
31096 * m4/jm-mktime.m4: Make this a wrapper around the official
31097 AM_FUNC_MKTIME rather than my private copy, now that the official one
31099 * m4/mktime.m4: Remove file.
31101 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
31102 * m4/uptime.m4: Likewise.
31103 * m4/uintmax_t.m4: Likewise.
31105 1999-01-28 Jim Meyering <meyering@ascend.com>
31107 * m4/jm-macros.m4: Use jm_AFS.
31108 * m4/afs.m4: New file (from fileutils' configure.in).
31110 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
31111 * m4/chown.m4: Likewise.
31112 * m4/d-ino.m4: Likewise.
31113 * m4/d-type.m4: Likewise.
31114 * m4/fnmatch.m4: Likewise.
31115 * m4/getgroups.m4: Likewise.
31116 * m4/gettext.m4: Likewise.
31117 * m4/jm-mktime.m4: Likewise.
31118 * m4/jm-winsz2.m4: Likewise.
31119 * m4/lcmessage.m4: Likewise.
31120 * m4/ls-mntd-fs.m4: Likewise.
31121 * m4/malloc.m4: Likewise.
31122 * m4/memcmp.m4: Likewise.
31123 * m4/putenv.m4: Likewise.
31124 * m4/realloc.m4: Likewise.
31125 * m4/st_mtim.m4: Likewise.
31126 * m4/strftime.m4: Likewise.
31128 1999-01-16 Jim Meyering <meyering@ascend.com>
31130 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
31131 (ARGMATCH_DIE_DECL): Define.
31133 1999-01-12 Jim Meyering <meyering@ascend.com>
31135 * m4/Makefile.am.in: Rewrite to avoid using fmt.
31136 Reported by Lars Hecking.
31138 1999-01-10 Jim Meyering <meyering@ascend.com>
31140 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
31142 * m4/inttypes_h.m4: Likewise.
31143 * m4/lstat.m4: Likewise.
31144 * m4/malloc.m4: Likewise.
31145 * m4/readdir.m4: Likewise.
31146 * m4/realloc.m4: Likewise.
31147 * m4/st_dm_mode.m4: Likewise.
31148 * m4/stat.m4: Likewise.
31149 * m4/utimbuf.m4: Likewise.
31150 * m4/utimes.m4: Likewise.
31152 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
31153 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
31154 comments in config.h.in are meaningful.
31156 * m4/jm-macros.m4: Require autoconf-2.13 here.
31158 * m4/regex.m4: By default, don't use the included regex.c on systems
31159 with glibc 2. Suggestion from Uli Drepper.
31161 1999-01-02 Jim Meyering <meyering@ascend.com>
31163 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
31165 1998-12-18 Jim Meyering <meyering@ascend.com>
31167 * m4/Makefile.am.in (Makefile.am): Simplify rule.
31168 Based on a suggestion from Lars Hecking.
31170 1998-11-16 Paul Eggert <eggert@twinsun.com>
31172 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
31174 1998-11-16 Jim Meyering <meyering@ascend.com>
31176 * m4/lfs.m4: Double-quote the `uname...` expression.
31178 1998-11-14 Jim Meyering <meyering@ascend.com>
31180 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
31181 * m4/stat.m4: Likewise.
31183 1998-11-03 Jim Meyering <meyering@ascend.com>
31185 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
31186 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
31188 1998-10-18 Jim Meyering <meyering@ascend.com>
31190 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
31192 1998-10-17 Jim Meyering <meyering@ascend.com>
31194 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
31195 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
31196 calls for those previously hard-coded headers. Instead, take a new
31198 (jm_CHECK_DECLARATIONS): Reflect interface change.
31199 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
31200 (jm_CHECK_DECL_LOCALTIME_R): New macro.
31202 * m4/mktime.m4: Test for spring-forward gap before long-running test.
31204 1998-10-14 Jim Meyering <meyering@ascend.com>
31206 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
31207 instead of "TZ=America/Vancouver". From Paul Eggert.
31209 1998-10-11 Jim Meyering <meyering@ascend.com>
31211 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
31212 This adds a test for a recently added compatibility fix for mktime.c.
31213 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
31215 1998-09-27 Jim Meyering <meyering@ascend.com>
31217 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
31219 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
31220 ../configure.in, including a change from Gordon Matzigkeit to allow
31221 cross-compiling for the Hurd.
31223 * m4/glibc.m4: New file/macro to test for the GNU C Library
31224 versions 1 and 2. From Gordon Matzigkeit.
31227 1998-09-21 Jim Meyering <meyering@ascend.com>
31229 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
31231 1998-08-18 Paul Eggert <eggert@twinsun.com>
31233 Port nanosecond-resolution times to UnixWare 2.1.2 and
31234 pedantic Solaris 2.6.
31236 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
31238 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
31239 Generate name of ns member, instead of just 1 or undef.
31240 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
31242 1998-08-15 Jim Meyering <meyering@ascend.com>
31244 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
31245 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
31246 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
31247 instead of jm_TYPE_SSIZE_T.
31249 1998-08-12 Jim Meyering <meyering@ascend.com>
31251 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
31253 1998-08-02 Jim Meyering <meyering@ascend.com>
31255 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
31256 in acconfig.h manually.
31258 1998-07-31 Paul Eggert <eggert@twinsun.com>
31260 * m4/st_mtim.m4: New file.
31262 1998-07-28 Jim Meyering <meyering@ascend.com>
31264 * m4/utimes.m4: Undef stat.
31266 1998-07-25 Jim Meyering <meyering@ascend.com>
31268 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
31269 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
31271 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
31273 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
31274 uid and gid actually remain unchanged.
31276 1998-07-07 Jim Meyering <meyering@ascend.com>
31278 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
31280 1998-07-04 Jim Meyering <meyering@ascend.com>
31282 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
31283 to prove that this macro can be used in packages without regex.c.
31285 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
31287 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
31290 1998-07-03 Jim Meyering <meyering@ascend.com>
31292 * m4/gettext.m4: Add -lintl if it's found to be necessary.
31294 * m4/gettext.m4: New file -- from gettext-0.10.35.
31295 * m4/lcmessage.m4: Likewise.
31296 * m4/progtest.m4: Likewise.
31298 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
31299 * m4/jm-macros.m4: Require the new macro.
31301 1998-06-29 Jim Meyering <meyering@ascend.com>
31303 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
31304 for the definition of NGROUPS (used in a system header included
31307 1998-06-28 Jim Meyering <meyering@ascend.com>
31309 * m4/ls-mntd-fs.m4: New file.
31310 * m4/fstypename.m4: New file.
31312 * m4/jm-macros.m4: Require the new macro.
31313 * m4/jm-glibc-io.m4: New file.
31315 1998-05-19 Jim Meyering <meyering@ascend.com>
31317 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
31318 * m4/lchown.m4: New file.
31320 * m4/Makefile.am.in: New file.
31321 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
31323 1998-05-14 Jim Meyering <meyering@ascend.com>
31325 * m4/Makefile.am (EXTRA_DIST): Add them.
31326 * m4/jm-macros.m4: New file.
31327 * m4/utimbuf.m4: New file.
31329 1998-05-12 Jim Meyering <meyering@ascend.com>
31331 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
31333 1998-05-11 Jim Meyering <meyering@ascend.com>
31335 * m4/isc-posix.m4: New file.
31337 1998-05-10 Jim Meyering <meyering@ascend.com>