1 2007-04-30 Eric Blake <ebb9@byu.net>
3 Prefer fseeko to fseek.
4 * modules/getpass (Depends-on): Add fseeko.
5 * lib/getpass.c (getpass): Use fseeko, not fseek.
7 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
9 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
10 assumes the sorting is stable, while most qsort implementations
11 are not. Use argument addresses to ensure they never compare as
14 * tests/test-argp-2.sh (usage-indent test): Fix output
15 (func_compare): Restore diff options
16 * tests/test-argp.c: Restore #include "progname.h"
18 2007-04-29 Bruno Haible <bruno@clisp.org>
20 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
21 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
23 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
25 (configure.ac): Define CHECK_SNPRINTF_POSIX.
26 (TESTS, check_PROGRAMS): Add test-snprintf.
27 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
28 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
29 (TESTS, check_PROGRAMS): Add test-vsnprintf.
30 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31 assertions that fail on HP-UX, OSF/1, or IRIX.
32 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34 2007-04-29 Bruno Haible <bruno@clisp.org>
36 * MODULES.html.sh (posix_functions): Remove 'contents'.
38 2007-04-29 Karl Berry <karl@gnu.org>
40 * config/srclist.txt (gendocs_template_min): new entry.
42 2007-04-29 Bruno Haible <bruno@clisp.org>
44 Work around fpurge bug on BSD systems.
45 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
46 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
47 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48 fpurge to rpl_fpurge if the system already has this function.
49 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50 the case where the system already has this function. Correct invariants
52 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
57 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
58 proposed by Sven Verdoolaege.
60 * tests/test-argp.c: Fix option ordering. Test deeply clustered
62 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
63 (usage and help tests): Update
65 2007-04-29 Bruno Haible <bruno@clisp.org>
67 * tests/test-fflush.c (main): Use a file of size 17, not 10.
68 Print more information in case of failure. Disable a test on BeOS.
70 2007-04-29 Bruno Haible <bruno@clisp.org>
72 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
73 This helps debugging on systems on which no gdb is available.
75 2007-04-29 Bruno Haible <bruno@clisp.org>
77 * lib/freading.h: Improve comments.
78 * lib/fwriting.h: Likewise.
79 * tests/test-freading.c (main): Don't check freading immediately after
80 repositioning. Needed for glibc.
82 2007-04-29 Bruno Haible <bruno@clisp.org>
84 * lib/freading.c (freading): Trivial simplification.
86 2007-04-28 Bruno Haible <bruno@clisp.org>
88 * tests/test-fwriting.c (main): Also test the interaction between
90 * modules/fwriting-tests (Depends-on): Add fflush.
92 * tests/test-freading.c (main): Also test the interaction between
94 * modules/freading-tests (Depends-on): Add fflush.
96 2007-04-28 Bruno Haible <bruno@clisp.org>
98 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
100 Suggested by Eric Blake.
102 2007-04-28 Jim Meyering <jim@meyering.net>
104 Avoid false-negative in gl_STDINT_H's C99 conformance test.
105 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
106 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
108 2007-04-27 Eric Blake <ebb9@byu.net>
110 * doc/headers/assert.texi (assert.h): Document assert module use.
112 2007-04-27 Bruno Haible <bruno@clisp.org>
114 * doc/headers/*.texi: New files.
115 * doc/gnulib.texi (Header File Substitutes): New chapter.
116 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
118 (standards.info ,standards.html, standards.dvi): Update dependencies.
119 (mostlyclean, clean): New targets.
121 2007-04-27 Bruno Haible <bruno@clisp.org>
123 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
124 * modules/sysexits (Files, Makefile.am): Update.
126 * lib/sys_socket_.h: Renamed from lib/socket_.h.
127 * modules/sys_socket (Files, Makefile.am): Update.
129 * lib/sys_stat_.h: Renamed from lib/stat_.h.
130 * modules/sys_stat (Files, Makefile.am): Update.
132 2007-04-27 Eric Blake <ebb9@byu.net>
134 * lib/freading.h: Improve comments.
135 * lib/fwriting.h: Likewise.
136 * lib/fflush.c: Likewise.
138 Fix closein for mingw.
139 * modules/closein-tests: Add tests for closein.
140 * tests/test-closein.c: New file.
141 * tests/test-closein.sh: Likewise.
142 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
143 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
145 2007-04-27 Bruno Haible <bruno@clisp.org>
147 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
149 * lib/math_.h [__DECC]: Likewise.
150 * lib/stdio_.h [__DECC]: Likewise.
151 * lib/stdlib_.h [__DECC]: Likewise.
152 * lib/string_.h [__DECC]: Likewise.
153 * lib/time_.h [__DECC]: Likewise.
154 * lib/wchar_.h [__DECC]: Likewise.
155 * lib/wctype_.h [__DECC]: Likewise.
157 2007-04-27 Bruno Haible <bruno@clisp.org>
159 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
161 2007-04-27 Bruno Haible <bruno@clisp.org>
163 * lib/fflush.c: Add comments.
164 * modules/fpurge-tests (Depends-on): Add fflush.
165 * modules/freadable-tests (Depends-on): Likewise.
166 * modules/fwritable-tests (Depends-on): Likewise.
168 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
170 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
171 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
172 Report by Bruno Haible <bruno@clisp.org>.
174 2007-04-26 Eric Blake <ebb9@byu.net>
177 * modules/fflush (Depends-on): Add freading.
178 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
181 2007-04-26 Eric Blake <ebb9@byu.net>
182 and Bruno Haible <bruno@clisp.org>
184 Implement freading and fwriting.
185 * lib/freading.c: New file.
186 * lib/freading.h: Likewise.
187 * m4/freading.m4: Likewise.
188 * modules/freading: Likewise.
189 * modules/freading-tests: Likewise.
190 * tests/test-freading.c: Likewise.
191 * lib/fwriting.c: New file.
192 * lib/fwriting.h: Likewise.
193 * m4/fwriting.m4: Likewise.
194 * modules/fwriting: Likewise.
195 * modules/fwriting-tests: Likewise.
196 * tests/test-fwriting.c: Likewise.
197 * MODULES.html.sh (File stream based Input/Output): Mention them.
199 2007-04-26 Bruno Haible <bruno@clisp.org>
201 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
202 'long' when we assume it.
203 Suggested by Eric Blake.
205 2007-04-26 Bruno Haible <bruno@clisp.org>
207 Ensure fseeko, ftello are declared on glibc systems.
208 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
209 * modules/fseeko (configure.ac-early): Likewise.
210 * modules/ftello (configure.ac-early): Likewise.
211 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
212 AC_FUNC_FSEEKO for this.
213 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
214 (gl_CHECK_FSEEKO): Remove macro.
216 2007-04-26 Bruno Haible <bruno@clisp.org>
218 * tests/test-fflush.c (main): Also check the ftell result after
219 fflush and fseek/fseeko.
220 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
221 file descriptor position cache in the stream.
222 * lib/fseeko.c (rpl_fseeko): Likewise.
224 2007-04-26 Bruno Haible <bruno@clisp.org>
226 * modules/fflush-tests (Depends-on): Add fseeko.
228 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
229 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
231 * lib/argz_.h: ensure error_t definition is obtained in same
232 mechanism system argz.h would have.
233 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
234 argz facilities are known bad. Err on the side of caution if
237 2007-04-25 Eric Blake <ebb9@byu.net>
239 * lib/fpurge.c (includes): Use stdlib.h for free.
240 * tests/test-fflush.c (main): Also test fflush-fseeko.
242 2007-04-25 Bruno Haible <bruno@clisp.org>
244 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
245 * lib/fseeko.c: New file.
246 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
247 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
248 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
250 (gl_FUNC_FSEEKO): Invoke it.
251 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
252 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
253 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
255 2007-04-25 Bruno Haible <bruno@clisp.org>
257 * modules/fflush (Depends-on): Add ftello.
259 2007-04-25 Bruno Haible <bruno@clisp.org>
261 * modules/ftello-tests: New file.
262 * tests/test-ftello.c: New file.
264 * modules/ftello: New file.
265 * m4/ftello.m4: New file.
266 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
268 * lib/stdio_.h (ftello): New declaration.
269 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
272 2007-04-25 Bruno Haible <bruno@clisp.org>
274 * modules/fseeko-tests: New file.
275 * tests/test-fseeko.c: New file.
277 * modules/fseeko: New file.
278 * m4/fseeko.m4: New file.
279 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
281 * lib/stdio_.h (fseeko): New declaration.
282 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
285 2007-04-25 Bruno Haible <bruno@clisp.org>
287 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
289 2007-04-25 Bruno Haible <bruno@clisp.org>
291 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
292 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
293 * tests/test-unistd.c: Likewise.
294 * tests/test-fcntl.c: Likewise.
296 2007-04-23 Eric Blake <ebb9@byu.net>
298 * lib/fflush.c: Fix missing include.
299 Reported by Bruno Haible.
301 2007-04-23 Bruno Haible <bruno@clisp.org>
303 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
304 Reported by Eric Blake.
306 2007-04-23 Bruno Haible <bruno@clisp.org>
308 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
310 2007-04-23 Bruno Haible <bruno@clisp.org>
312 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
314 2007-04-23 Bruno Haible <bruno@clisp.org>
316 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
319 2007-04-16 Eric Blake <ebb9@byu.net>
321 Make fflush rely on fpurge.
322 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
323 open coding all variants.
324 * modules/fflush (Depends-on): Add fpurge and unistd.
325 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
326 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
328 Fix --with-tests compilation on cygwin.
329 * modules/argmatch-tests (Makefile.am): List gnulib library first
331 * modules/argp-tests (Makefile.am): Likewise.
332 * modules/array-list-tests (Makefile.am): Likewise.
333 * modules/array-oset-tests (Makefile.am): Likewise.
334 * modules/avltree-list-tests (Makefile.am): Likewise.
335 * modules/avltree-oset-tests (Makefile.am): Likewise.
336 * modules/avltreehash-list-tests (Makefile.am): Likewise.
337 * modules/carray-list-tests (Makefile.am): Likewise.
338 * modules/dirname-tests (Makefile.am): Likewise.
339 * modules/frexp-tests (Makefile.am): Likewise.
340 * modules/isnanl-tests (Makefile.am): Likewise.
341 * modules/linked-list-tests (Makefile.am): Likewise.
342 * modules/linkedhash-list-tests (Makefile.am): Likewise.
343 * modules/lock-tests (Makefile.am): Likewise.
344 * modules/rbtree-list-tests (Makefile.am): Likewise.
345 * modules/rbtree-oset-tests (Makefile.am): Likewise.
346 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
347 * modules/tls-tests (Makefile.am): Likewise.
348 * modules/tsearch-tests (Makefile.am): Likewise.
349 * modules/xvasprintf-tests (Makefile.am): Likewise.
351 Fix fpurge for cygwin.
352 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
354 * modules/fpurge-tests (Depends-on): Clean up trash.
356 2007-04-16 Simon Josefsson <simon@josefsson.org>
358 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
360 * m4/autobuild.m4: Re-indent.
362 2007-04-13 Bruno Haible <bruno@clisp.org>
364 * modules/fpurge-tests: New file.
365 * tests/test-fpurge.c: New file.
367 * modules/fpurge: New file.
368 * lib/fpurge.h: New file.
369 * lib/fpurge.c: New file.
370 * m4/fpurge.m4: New file.
372 2007-04-13 Bruno Haible <bruno@clisp.org>
374 * modules/fbufmode-tests: New file.
375 * tests/test-fbufmode.c: New file.
377 * modules/fbufmode: New file.
378 * lib/fbufmode.h: New file.
379 * lib/fbufmode.c: New file.
380 * m4/fbufmode.m4: New file.
382 2007-04-13 Bruno Haible <bruno@clisp.org>
384 * modules/fwritable-tests: New file.
385 * tests/test-fwritable.c: New file.
387 * modules/fwritable: New file.
388 * lib/fwritable.h: New file.
389 * lib/fwritable.c: New file.
390 * m4/fwritable.m4: New file.
392 2007-04-13 Bruno Haible <bruno@clisp.org>
394 * modules/freadable-tests: New file.
395 * tests/test-freadable.c: New file.
397 * modules/freadable: New file.
398 * lib/freadable.h: New file.
399 * lib/freadable.c: New file.
400 * m4/freadable.m4: New file.
402 2007-04-13 Bruno Haible <bruno@clisp.org>
404 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
407 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
409 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
410 gzip bootstrap.conf to avoid dragging in i18n machinery.
411 (gnulib_tool_option): Use it.
413 2007-04-13 Bruno Haible <bruno@clisp.org>
415 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
417 * tests/test-vasprintf-posix.c (test_function): Likewise.
418 * tests/test-snprintf-posix.h (test_function): Likewise.
419 * tests/test-sprintf-posix.h (test_function): Likewise.
420 * tests/test-fprintf-posix.h (test_function): Likewise.
421 * tests/test-printf-posix.h (test_function): Likewise.
422 * tests/test-fprintf-posix.out: Likewise.
424 2007-04-13 Bruno Haible <bruno@clisp.org>
426 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
427 * modules/tls-tests (configure.ac): Likewise.
428 Reported by Arto C. Nirkko <anirkko@insel.ch>.
430 2007-04-13 Bruno Haible <bruno@clisp.org>
432 * lib/tls.c (glthread_tls_get): Fix return type.
433 Patch by Arto C. Nirkko <anirkko@insel.ch>.
435 2007-04-12 Eric Blake <ebb9@byu.net>
437 * modules/gettime (Depends-on): Remove gettime.
438 Reported by Dmitry V. Levin.
440 2007-04-12 Bruno Haible <bruno@clisp.org>
442 * modules/fflush (Include): Mention <stdio.h>.
443 * modules/strtoimax (Include): Mention <inttypes.h>.
444 * modules/strtoumax (Include): Likewise.
446 2007-04-12 Eric Blake <ebb9@byu.net>
448 * .cvsignore: New file.
449 * .gitignore: Likewise.
451 2007-04-12 Bruno Haible <bruno@clisp.org>
453 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
454 not before, since $(LDADD) often contains libgnu.a.
455 * modules/striconv-tests (test_striconv_LDADD): Likewise.
456 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
457 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
460 2007-04-12 Eric Blake <ebb9@byu.net>
462 Work around glibc's failure to flush stdin on fclose.
463 * lib/closein.c (close_stdin): Flush stdin before closing.
465 Work around glibc's failure to reset seekable stdin on exit.
466 * modules/closein: New module.
467 * lib/closein.c: New file.
468 * lib/closein.h: Likewise.
469 * m4/closein.m4: Likewise.
470 * MODULES.html.sh (File stream based Input/Output): Document it.
472 2007-04-12 Simon Josefsson <simon@josefsson.org>
474 * gnulib-tool: Rename generated 'autobuild' script to
475 'do-autobuild' in --create-megatestdir output.
477 * doc/gnulib.texi (Build robot for gnulib): Fix.
479 2007-04-12 Simon Josefsson <simon@josefsson.org>
481 * modules/sysexits (Depends-on): Add absolute-header.
483 2007-04-12 Eric Blake <ebb9@byu.net>
485 No need to preserve errno on success.
486 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
487 Reported by Bruno Haible.
489 2007-04-12 Simon Josefsson <simon@josefsson.org>
491 * MODULES.html.sh (Support for maintaining and releasing
492 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
494 2007-04-12 Simon Josefsson <simon@josefsson.org>
496 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
498 2007-04-12 Simon Josefsson <simon@josefsson.org>
500 * modules/autobuild: New module.
502 * m4/autobuild.m4: New file.
504 2007-04-11 Bruno Haible <bruno@clisp.org>
506 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
507 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
508 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
509 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
510 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
511 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
512 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
513 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
514 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
515 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
516 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
517 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
518 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
519 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
520 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
521 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
522 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
523 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
524 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
525 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
526 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
527 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
528 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
529 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
530 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
531 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
532 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
533 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
534 Reported by Eric Blake.
536 2007-04-11 Bruno Haible <bruno@clisp.org>
538 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
540 2007-04-10 Bruno Haible <bruno@clisp.org>
542 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
543 for NaN and Infinity. Needed on FreeBSD 6.1.
544 * tests/test-vasnprintf-posix.c (test_function): Undo last change
545 regarding results for "%010a" of Infinity and NaN.
546 * tests/test-vasprintf-posix.c (test_function): Likewise.
547 * tests/test-snprintf-posix.h (test_function): Likewise.
548 * tests/test-sprintf-posix.h (test_function): Likewise.
549 * tests/test-fprintf-posix.h (test_function): Likewise.
550 * tests/test-printf-posix.h (test_function): Likewise.
551 * tests/test-fprintf-posix.out: Likewise.
553 2007-04-10 Bruno Haible <bruno@clisp.org>
555 * modules/locale-tests: New file.
556 * tests/test-locale.c: New file.
558 * modules/locale: New file.
559 * lib/locale_.h: New file.
560 * m4/locale_h.m4: New file.
562 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
563 Bruno Haible <bruno@clisp.org>
565 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
566 be determined, test for availability of the copysignf, copysign,
568 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
569 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
570 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
572 2007-04-09 Eric Blake <ebb9@byu.net>
574 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
575 * modules/stdio (Makefile.am): Support fflush.
576 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
577 * modules/fflush: New file.
578 * lib/fflush.c: Likewise.
579 * m4/fflush.m4: Likewise.
580 * modules/fflush-tests: New test.
581 * tests/test-fflush.c: Likewise.
582 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
584 2007-04-06 Bruno Haible <bruno@clisp.org>
586 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
587 (VASNPRINTF): Use signbit for faster determination whether to print a
589 * modules/vasnprintf (Files): Remove lib/float+.h.
590 * modules/fprintf-posix (Depends-on): Add signbit.
591 * modules/snprintf-posix (Depends-on): Likewise.
592 * modules/sprintf-posix (Depends-on): Likewise.
593 * modules/vasnprintf-posix (Depends-on): Likewise.
594 * modules/vasprintf-posix (Depends-on): Likewise.
595 * modules/vfprintf-posix (Depends-on): Likewise.
596 * modules/vsnprintf-posix (Depends-on): Likewise.
597 * modules/vsprintf-posix (Depends-on): Likewise.
599 2007-04-06 Bruno Haible <bruno@clisp.org>
601 * tests/test-frexp.c (main): Test also the sign bit of zero results.
602 * tests/test-frexpl.c (main): Likewise.
603 * tests/test-ldexpl.c (main): Likewise.
604 * modules/frexp-tests (Depends-on): Add signbit.
605 * modules/frexpl-tests (Depdends-on): Likewise.
606 * modules/ldexpl-tests (Depdends-on): Likewise.
608 2007-04-06 Bruno Haible <bruno@clisp.org>
610 * modules/signbit-tests: New file.
611 * tests/test-signbit.c: New file.
613 * modules/signbit: New file.
614 * lib/signbitf.c: New file.
615 * lib/signbitd.c: New file.
616 * lib/signbitl.c: New file.
617 * m4/signbit.m4: New file.
618 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
619 (signbit): New macro.
620 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
622 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
623 REPLACE_FREXPL into math.h.
625 2007-04-06 Bruno Haible <bruno@clisp.org>
627 * modules/isnanf-nolibm-tests: New file.
628 * tests/test-isnanf.c: New file.
630 * modules/isnanf-nolibm: New file.
631 * lib/isnanf.h: New file.
632 * lib/isnanf.c: New file.
633 * lib/isnan.c: Consider the USE_FLOAT macro.
634 * m4/isnanf.m4: New file.
636 2007-04-06 Bruno Haible <bruno@clisp.org>
638 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
641 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
643 2007-04-06 Bruno Haible <bruno@clisp.org>
645 Assume the 'long double' type.
646 * m4/longdouble.m4: Remove file.
647 * config/srclist.txt: Don't mention longdouble.m4.
648 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
649 * lib/float+.h: Likewise.
650 * lib/frexp.c: Likewise.
651 * lib/printf-args.h: Likewise.
652 * lib/printf-args.c: Likewise.
653 * lib/printf-frexp.c: Likewise.
654 * lib/printf-parse.c: Likewise.
655 * lib/vasnprintf.c: Likewise.
656 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
657 * m4/intl.m4: Likewise.
658 * m4/isnanl.m4: Likewise.
659 * m4/printf.m4: Likewise.
660 * m4/printf-frexpl.m4: Likewise.
661 * m4/vasnprintf.m4: Likewise.
662 * modules/allocsa (Files): Remove m4/longdouble.m4.
663 * modules/gettext (Files): Likewise.
664 * modules/relocatable-prog-wrapper (Files): Likewise.
665 * modules/vasnprintf (Files): Likewise.
666 * modules/isnanl (Files): Likewise.
668 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
670 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
672 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
673 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
674 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
675 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
676 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
677 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
678 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
679 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
680 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
681 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
682 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
683 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
684 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
685 * tests/test-isnanl.c: Likewise.
686 * tests/test-snprintf-posix.h: Likewise.
687 * tests/test-sprintf-posix.h: Likewise.
688 * tests/test-vasnprintf-posix.c: Likewise.
689 * tests/test-vasnprintf-posix2.c: Likewise.
690 * tests/test-vasprintf-posix.c: Likewise.
692 2007-04-06 Bruno Haible <bruno@clisp.org>
694 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
695 * lib/math_.h [__DECC]: Include the overridden include file through
696 #include_next, outside the double-inclusion guard.
697 * lib/stdio_.h [__DECC]: Likewise.
698 * lib/stdlib_.h [__DECC]: Likewise.
699 * lib/string_.h [__DECC]: Likewise.
700 * lib/time_.h [__DECC]: Likewise.
701 * lib/wchar_.h [__DECC]: Likewise.
702 * lib/wctype_.h [__DECC]: Likewise.
703 * lib/inttypes_.h [__DECC]: Likewise.
704 Reported by Albert Chin <china@thewrittenword.com> in
705 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
707 2007-04-04 Eric Blake <ebb9@byu.net>
709 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
712 2007-04-04 Bruno Haible <bruno@clisp.org>
714 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
715 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
717 2007-04-04 Bruno Haible <bruno@clisp.org>
719 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
720 results for "%010a" of Infinity and NaN.
721 * tests/test-vasprintf-posix.c (test_function): Likewise.
722 * tests/test-snprintf-posix.h (test_function): Likewise.
723 * tests/test-sprintf-posix.h (test_function): Likewise.
724 * tests/test-fprintf-posix.h (test_function): Remove these tests.
725 * tests/test-printf-posix.h (test_function): Likewise.
726 * tests/test-fprintf-posix.out: Update.
727 Needed for FreeBSD 6.1.
729 2007-04-04 Bruno Haible <bruno@clisp.org>
731 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
732 directly used by the gnulib modules nor by gnulib-tool.
734 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
736 * DEPENDENCIES: Give overall description of version dependency
737 desirability. Use more-typical names for apps.
738 Add shell, coreutils, diffutils, grep, tar, gzip.
740 2007-04-04 Simon Josefsson <simon@josefsson.org>
742 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
744 2007-04-04 Karl Berry <karl@gnu.org>
746 * MODULES.html.sh (func_module): missing '.
748 2007-04-03 Bruno Haible <bruno@clisp.org>
750 * modules/argmatch-tests (Makefile.am): New variable
752 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
753 * modules/array-list-tests (Makefile.am): New variable
754 test_array_list_LDADD.
755 * modules/array-oset-tests (Makefile.am): New variable
756 test_array_oset_LDADD.
757 * modules/avltree-list-tests (Makefile.am): New variable
758 test_avltree_list_LDADD.
759 * modules/avltree-oset-tests (Makefile.am): New variable
760 test_avltree_oset_LDADD.
761 * modules/avltreehash-list-tests (Makefile.am): New variable
762 test_avltreehash_list_LDADD.
763 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
764 test_canonicalize_lgpl_LDADD.
765 * modules/carray-list-tests (Makefile.am): New variable
766 test_carray_list_LDADD.
767 * modules/dirname-tests (Makefile.am): New variable
769 * modules/linked-list-tests (Makefile.am): New variable
770 test_linked_list_LDADD.
771 * modules/linkedhash-list-tests (Makefile.am): New variable
772 test_linkedhash_list_LDADD.
773 * modules/rbtree-list-tests (Makefile.am): New variable
774 test_rbtree_list_LDADD.
775 * modules/rbtree-oset-tests (Makefile.am): New variable
776 test_rbtree_oset_LDADD.
777 * modules/rbtreehash-list-tests (Makefile.am): New variable
778 test_rbtreehash_list_LDADD.
779 * modules/xvasprintf-tests (Makefile.am): New variable
780 test_xvasprintf_LDADD.
781 Reported by Eric Blake.
783 2007-04-03 Eric Blake <ebb9@byu.net>
785 * DEPENDENCIES: Weaken m4 requirements.
787 2007-04-03 Bruno Haible <bruno@clisp.org>
789 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
790 * modules/isnanl-tests (configure.ac): Likewise.
792 2007-04-03 Ben Pfaff <blp@gnu.org>
794 * modules/iconv_open: Add $(srcdir)/ to source directory
795 references in Makefile fragments that call gperf, to fix VPATH
798 2007-04-03 Bruno Haible <bruno@clisp.org>
800 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
801 * lib/ldexpl.c: Undo last change.
803 2007-04-03 Bruno Haible <bruno@clisp.org>
805 * modules/printf-frexpl (Depends-on): Undo last change.
806 (Files): Add m4/ldexpl.m4.
808 2007-04-03 Bruno Haible <bruno@clisp.org>
810 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
811 * modules/isnanl (Link): New section.
813 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
814 * modules/frexp (Link): New section.
816 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
817 * modules/frexpl (Link): New section.
819 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
820 * modules/ldexpl (Link): New section.
822 2007-04-03 Bruno Haible <bruno@clisp.org>
824 * modules/TEMPLATE-EXTENDED: New file.
825 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
827 2007-04-03 Bruno Haible <bruno@clisp.org>
829 * DEPENDENCIES: New file.
830 Suggested by Simon Josefsson.
832 2007-04-03 Bruno Haible <bruno@clisp.org>
834 * doc/gnulib.texi: Escape @.
836 2007-04-03 James Youngman <jay@gnu.org>
837 and Paul Eggert <eggert@cs.ucla.edu>
839 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
840 birthtime on all systems that have birthtime, not just those which
841 use st_birthtimensec rather than st_birthtim. Putting zero in
842 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
843 that the birth time is not available for files on an NFS mount.
845 2007-04-03 Simon Josefsson <simon@josefsson.org>
847 * modules/memxor: Move back from crypto/, suggested by Bruno.
848 * modules/crypto/hmac-sha1: Fix memxor dependency.
850 * modules/crypto/gc: Moved from ../.
852 2007-04-02 Eric Blake <ebb9@byu.net>
854 * lib/ldexpl.c (includes): Avoid libm.
856 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
858 2007-04-02 Bruno Haible <bruno@clisp.org>
860 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
863 2007-04-02 Bruno Haible <bruno@clisp.org>
865 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
866 x86 or x86_64 platforms running MacOS X.
867 Reported by Ryan Schmidt <@ryandesign.com>.
869 2007-04-02 Bruno Haible <bruno@clisp.org>
871 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
874 2007-04-01 Simon Josefsson <simon@josefsson.org>
876 * modules/crypto/arcfour: Moved from ../.
877 * modules/crypto/arcfour-tests: Moved from ../.
878 * modules/crypto/arctwo: Moved from ../.
879 * modules/crypto/arctwo-tests: Moved from ../.
880 * modules/crypto/des: Moved from ../.
881 * modules/crypto/des-tests: Moved from ../.
882 * modules/crypto/gc-arcfour: Moved from ../.
883 * modules/crypto/gc-arcfour-tests: Moved from ../.
884 * modules/crypto/gc-arctwo: Moved from ../.
885 * modules/crypto/gc-arctwo-tests: Moved from ../.
886 * modules/crypto/gc-des: Moved from ../.
887 * modules/crypto/gc-des-tests: Moved from ../.
888 * modules/crypto/gc-hmac-md5: Moved from ../.
889 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
890 * modules/crypto/gc-hmac-sha1: Moved from ../.
891 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
892 * modules/crypto/gc-md2: Moved from ../.
893 * modules/crypto/gc-md2-tests: Moved from ../.
894 * modules/crypto/gc-md4: Moved from ../.
895 * modules/crypto/gc-md4-tests: Moved from ../.
896 * modules/crypto/gc-md5: Moved from ../.
897 * modules/crypto/gc-md5-tests: Moved from ../.
898 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
899 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
900 * modules/crypto/gc-random: Moved from ../.
901 * modules/crypto/gc-rijndael: Moved from ../.
902 * modules/crypto/gc-rijndael-tests: Moved from ../.
903 * modules/crypto/gc-sha1: Moved from ../.
904 * modules/crypto/gc-sha1-tests: Moved from ../.
905 * modules/crypto/gc-tests: Moved from ../.
906 * modules/crypto/hmac-md5: Moved from ../.
907 * modules/crypto/hmac-md5-tests: Moved from ../.
908 * modules/crypto/hmac-sha1: Moved from ../.
909 * modules/crypto/hmac-sha1-tests: Moved from ../.
910 * modules/crypto/md2: Moved from ../.
911 * modules/crypto/md2-tests: Moved from ../.
912 * modules/crypto/md4: Moved from ../.
913 * modules/crypto/md4-tests: Moved from ../.
914 * modules/crypto/md5: Moved from ../.
915 * modules/crypto/md5-tests: Moved from ../.
916 * modules/crypto/memxor: Moved from ../.
917 * modules/crypto/rijndael: Moved from ../.
918 * modules/crypto/rijndael-tests: Moved from ../.
919 * modules/crypto/sha1: Moved from ../.
921 2007-03-30 James Youngman <jay@gnu.org>
923 * tests/test-stat-time.c (prepare_test): use chmod() rather than
924 rename() to change the ctime of a file (because ctime is unaffected
925 by rename on jfs2 on AIX 5.1).
926 (main): Start by doing cleanup, in case a previous run failed leaving
929 2007-03-31 Bruno Haible <bruno@clisp.org>
931 Support old proprietary implementations of iconv.
932 * modules/iconv_open: New file.
933 * lib/iconv_.h: New file.
934 * m4/iconv_h.m4: New file.
935 * lib/iconv_open.c: New file.
936 * lib/iconv_open-aix.gperf: New file.
937 * lib/iconv_open-hpux.gperf: New file.
938 * lib/iconv_open-irix.gperf: New file.
939 * lib/iconv_open-osf.gperf: New file.
940 * m4/iconv_open.m4: New file.
941 * modules/linebreak (Depends-on): Add iconv_open.
942 * modules/striconv (Depends-on): Likewise.
943 * modules/striconveh (Depends-on): Likewise.
944 * modules/unicodeio (Depends-on): Likewise.
945 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
947 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
948 conversion if cd is (iconv_t)(-1).
949 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
952 2007-03-31 Bruno Haible <bruno@clisp.org>
954 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
955 work on Solaris either. Protect also second use of "autodetect_jp".
957 2007-03-31 Bruno Haible <bruno@clisp.org>
959 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
960 the function is not present.
962 2007-03-31 Bruno Haible <bruno@clisp.org>
964 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
965 the function is not present.
967 2007-03-31 Bruno Haible <bruno@clisp.org>
969 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
970 a bug in HP-UX iconv_open().
972 2007-03-31 Bruno Haible <bruno@clisp.org>
974 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
975 (Mathematics <math.h>): New section, add fpieee.
976 (Input/output <stdio.h>): Add fseterr.
977 (Mathematics <math.h>): New section, add printf-frexp.
978 (Container data structures): Add sublist.
979 (Core language properties): Add fpucw, inline.
980 (Functions for greatest-width integer types <inttypes.h>): Add
981 imaxabs, imaxdiv, inttypes.
982 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
983 isnanl-nolibm, ldexp.
984 (Mathematics <math.h>): New section, add printf-frexpl.
985 (Support for systems lacking POSIX:2001): Add fprintf-posix,
986 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
987 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
988 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
989 (Unicode string functions): Add unistr/u*-mbtoucr.
990 (Java): Add javacomp-script, javaexec-script.
991 (C#): Add csharpcomp-script, csharpexec-script.
992 (Support for building libraries and executables): Add havelib,
994 (Support for maintaining and releasing projects): Renamed from
995 'Support for maintaining and release projects'. Add announce-gen.
997 2007-03-31 Bruno Haible <bruno@clisp.org>
999 * README: Talk primarily about git.
1000 (git and CVS): Renamed from CVS.
1001 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
1002 gnulib is available through git.
1003 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
1005 2007-03-30 Bruno Haible <bruno@clisp.org>
1007 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
1008 * lib/poll_.h: Likewise.
1009 * lib/stat_.h: Likewise.
1010 * lib/sys_time_.h: Likewise.
1011 * lib/sysexit_.h: Likewise.
1012 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
1013 * lib/stdbool_.h: Likewise.
1014 * lib/byteswap_.h: Add double-inclusion guard.
1016 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
1018 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
1020 2007-03-30 Karl Berry <karl@gnu.org>
1022 * config/srclist-update: double space after USA in the license
1023 substitution, since that's how it's usually (?) written.
1025 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
1027 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
1028 reported by Bruno Haible.
1030 2007-03-29 Bruno Haible <bruno@clisp.org>
1032 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
1033 a bug in AIX iconv().
1035 2007-03-29 Bruno Haible <bruno@clisp.org>
1037 * modules/ldexpl-tests: New file.
1038 * tests/test-ldexpl.c: New file.
1040 2007-03-29 Bruno Haible <bruno@clisp.org>
1042 * lib/ldexpl.c: Include fpucw.h.
1043 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
1045 * modules/ldexpl (Depends-on): Add fpucw.
1047 2007-03-29 Bruno Haible <bruno@clisp.org>
1049 * modules/ldexpl: New file.
1050 * m4/ldexpl.m4: New file.
1051 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
1053 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
1055 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
1057 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
1058 gl_FUNC_LDEXPL_WORKS.
1059 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
1060 * modules/mathl (Files): Remove lib/ldexpl.c.
1061 (Depends-on): Add ldexpl.
1063 2007-03-29 Bruno Haible <bruno@clisp.org>
1065 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
1067 2007-03-29 Bruno Haible <bruno@clisp.org>
1069 * tests/test-striconveh.c (main): Don't assume that a direct conversion
1070 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
1071 and possibly also HP-UX.
1072 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
1073 work on AIX, IRIX, HP-UX, OSF/1.
1074 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1075 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1076 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1077 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1078 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
1079 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1081 2007-03-29 Bruno Haible <bruno@clisp.org>
1083 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
1085 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
1087 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
1088 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
1090 2007-03-29 Eric Blake <ebb9@byu.net>
1092 * lib/acl-internal.h: Remove redundant include.
1093 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
1094 Cygwin when a file is locked.
1096 2007-03-29 Bruno Haible <bruno@clisp.org>
1098 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
1100 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
1102 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
1104 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
1105 try to remove a parent directory if the child couldn't be removed
1106 (except for the first rmdir, which could fail because the child
1107 doesn't exist). Problem reported by Jeff Blaine in
1108 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
1110 2007-03-28 Bruno Haible <bruno@clisp.org>
1112 * lib/striconveh.c (utf8conv_carefully): New function.
1113 (mem_cd_iconveh_internal): Invoke it.
1115 2007-03-28 Bruno Haible <bruno@clisp.org>
1117 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
1118 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
1120 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
1121 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
1124 2007-03-28 Bruno Haible <bruno@clisp.org>
1126 * modules/unistr/u8-mbtoucr: New file.
1127 * lib/unistr/u8-mbtoucr.c: New file.
1128 * modules/unistr/u16-mbtoucr: New file.
1129 * lib/unistr/u16-mbtoucr.c: New file.
1130 * modules/unistr/u16-mbtoucr: New file.
1131 * lib/unistr/u16-mbtoucr.c: New file.
1132 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
1134 2007-03-27 Simon Josefsson <simon@josefsson.org>
1135 Bruno Haible <bruno@clisp.org>
1137 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
1138 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
1139 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
1141 * m4/stdio_h.m4: Add stubs for vasprintf too.
1143 * modules/stdio: Support vasprintf in sed command.
1145 * modules/vasprintf: Depend on stdio for prototypes. Remove
1146 vasprintf.h. Add stdio module indicator.
1148 * lib/stdio_.h: Declare asprintf and vasprintf, based on
1151 * lib/vasprintf.h: File removed.
1153 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
1154 * lib/vasprintf.c: Ditto.
1155 * lib/xvasprintf.c: Ditto.
1156 * tests/test-vasprintf-posix.c: Ditto.
1157 * tests/test-vasprintf.c: Ditto.
1159 2007-03-27 Bruno Haible <bruno@clisp.org>
1161 Make vasnprintf multithread-safe.
1162 * lib/vasnprintf.c (decimal_point_char): New function.
1163 (VASNPRINTF): Use it.
1164 Suggested by Simon Josefsson.
1166 2007-03-27 Eric Blake <ebb9@byu.net>
1168 Support sub-second birthtime on cygwin.
1169 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
1170 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
1171 (get_stat_birthtime): Also work with st_birthtim.
1173 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
1175 * lib/stat-time.h (USE_BIRTHTIME): Remove.
1176 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
1177 (get_stat_birthtime_ns): Do not try to use "spare" fields.
1178 (get_stat_birthtime_ns): Simplify compile-time tests.
1179 (get_stat_birthtime): Change the API to look like
1180 get_stat_mtime etc., except return a negative tv_nsec on error.
1181 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1182 Don't check for "spare" fields.
1183 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
1184 or for struct stat.st_birthtime, as these tests aren't used.
1185 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
1187 2007-03-27 Bruno Haible <bruno@clisp.org>
1189 * lib/stat-time.h: Include <sys/stat.h>.
1191 2007-03-27 James Youngman <jay@gnu.org>
1193 * lib/stat-time.h (get_stat_birthtime): New function for
1194 retrieving st_birthtime as provided by UFS2 (hence *BSD).
1195 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
1197 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
1198 * modules/stat-time-test: New file.
1199 * tests/test-stat-time.c: New test, devised by Bruno Haible.
1201 2007-03-26 Bruno Haible <bruno@clisp.org>
1203 Better support of signalling NaNs.
1204 * lib/atanl.c: Include isnanl.h.
1205 (atanl): Perform test for NaN at the beginning of the function and
1206 through a call to isnanl.
1207 * lib/cosl.c: Include isnanl.h.
1208 (cosl): Perform test for NaN at the beginning of the function and
1209 through a call to isnanl.
1210 * lib/ldexpl.c: Include isnanl.h.
1211 (ldexpl): Perform test for NaN through a call to isnanl.
1212 * lib/logl.c: Include isnanl.h.
1213 (logl): Perform test for NaN at the beginning of the function and
1214 through a call to isnanl.
1215 * lib/sinl.c: Include isnanl.h.
1216 (sinl): Perform test for NaN at the beginning of the function and
1217 through a call to isnanl.
1218 * lib/sqrtl.c: Include isnanl.h.
1219 (sqrtl): Perform test for NaN at the beginning of the function and
1220 through a call to isnanl.
1221 * lib/tanl.c: Include isnanl.h.
1222 (tanl): Perform test for NaN at the beginning of the function and
1223 through a call to isnanl.
1224 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
1225 * modules/mathl (Depends-on): Add isnanl.
1227 2007-03-26 Eric Blake <ebb9@byu.net>
1229 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
1230 regression in logic sense of previous patch.
1232 2007-03-26 Bruno Haible <bruno@clisp.org>
1234 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
1235 unportable shell command "if ! ...".
1236 Reported by Ralf Wildenhues.
1238 2007-03-25 Bruno Haible <bruno@clisp.org>
1240 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
1241 <sysexits.h> file, and only add EX_CONFIG.
1242 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
1243 absolute file name and whether it is sufficient. Substitute also
1244 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
1245 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
1246 ABSOLUTE_SYSEXITS_H into sysexits.h.
1248 2007-03-25 Bruno Haible <bruno@clisp.org>
1250 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
1253 2007-03-25 Bruno Haible <bruno@clisp.org>
1255 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
1256 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
1258 2007-03-25 Bruno Haible <bruno@clisp.org>
1260 * lib/vasnprintf.c: Include langinfo.h.
1261 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
1263 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
1264 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
1265 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1266 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1267 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1268 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1269 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1270 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
1271 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1272 Reported by Simon Josefsson.
1274 2007-03-25 Bruno Haible <bruno@clisp.org>
1276 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
1277 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
1278 * modules/vasnprintf (Depends-on): Add stdint.
1280 2007-03-25 Bruno Haible <bruno@clisp.org>
1282 * modules/fpieee: New file.
1283 * m4/fpieee.m4: New file.
1284 * modules/isnan-nolibm (Depends-on): Add fpieee.
1285 * modules/isnanl-nolibm (Depends-on): Add fpieee.
1286 * modules/isnanl (Depends-on): Add fpieee.
1288 2007-03-25 Bruno Haible <bruno@clisp.org>
1290 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
1292 2007-03-25 Bruno Haible <bruno@clisp.org>
1294 Avoid test failures on IRIX 6.5.
1295 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
1297 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
1301 2007-03-25 Bruno Haible <bruno@clisp.org>
1303 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
1304 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
1305 exists but doesn't work.
1306 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
1307 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
1308 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
1309 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
1311 2007-03-25 Bruno Haible <bruno@clisp.org>
1313 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
1314 returns inf. Needed on IRIX 6.5.
1316 2007-03-25 Bruno Haible <bruno@clisp.org>
1318 * tests/test-frexpl.c: Include isnanl-nolibm.h.
1319 (main): Use isnanl instead of x != x idiom.
1320 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
1322 * tests/test-frexp.c: Include isnan.h.
1323 (main): Use isnan instead of x != x idiom.
1324 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
1326 2007-03-25 Bruno Haible <bruno@clisp.org>
1328 * tests/test-frexp.c (NaN): New function/macro.
1329 (main): Use it instead of 0.0 / 0.0.
1330 * tests/test-isnan.c (NaN): New function/macro.
1331 (main): Use it instead of 0.0 / 0.0.
1332 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
1333 (test_function): Use it instead of 0.0 / 0.0.
1334 * tests/test-vasprintf-posix.c (NaN): New function/macro.
1335 (test_function): Use it instead of 0.0 / 0.0.
1336 * tests/test-snprintf-posix.h (NaN): New function/macro.
1337 (test_function): Use it instead of 0.0 / 0.0.
1338 * tests/test-sprintf-posix.h (NaN): New function/macro.
1339 (test_function): Use it instead of 0.0 / 0.0.
1340 * tests/test-fprintf-posix.h (NaN): New function/macro.
1341 (test_function): Use it instead of 0.0 / 0.0.
1342 * tests/test-printf-posix.h (NaN): New function/macro.
1343 (test_function): Use it instead of 0.0 / 0.0.
1345 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
1347 2007-03-25 Bruno Haible <bruno@clisp.org>
1349 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
1351 2007-03-25 Bruno Haible <bruno@clisp.org>
1353 * lib/regexec.c (merge_state_with_log): Make static.
1355 2007-03-25 Bruno Haible <bruno@clisp.org>
1357 * lib/trigl.c (kernel_rem_pio2): Make static.
1359 2007-03-25 Bruno Haible <bruno@clisp.org>
1361 * lib/sincosl.c (sincosl_table): Make static.
1363 2007-03-25 Bruno Haible <bruno@clisp.org>
1365 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
1366 if the compiler does not support C99.
1368 2007-03-25 Bruno Haible <bruno@clisp.org>
1370 * modules/time (Makefile.am): Ensure all rule action lines start with a
1373 2007-03-24 Bruno Haible <bruno@clisp.org>
1375 * modules/tsearch-tests: New file.
1376 * tests/test-tsearch.sh: New file.
1377 * tests/test-tsearch.c: New file, mostly copied from glibc.
1379 * modules/search-tests: New file.
1380 * tests/test-search.c: New file.
1382 * modules/search: New file.
1383 * lib/search_.h: New file, incorporating lib/tsearch.h.
1384 * m4/search_h.m4: New file.
1385 * lib/tsearch.h: Remove file.
1386 * lib/tsearch.c: Include search.h instead of tsearch.h.
1387 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
1389 * modules/tsearch (Files): Remove lib/tsearch.h.
1390 (Depends-on): Add search.
1391 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
1392 (Include): Change tsearch.h into search.h.
1394 2007-03-24 Bruno Haible <bruno@clisp.org>
1396 * modules/fpucw: New file.
1397 * lib/fpucw.h: New file.
1398 * lib/frexp.c: Include fpucw.h.
1399 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
1401 * lib/printf-frexp.c: Include fpucw.h.
1402 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
1404 * lib/vasnprintf.c: Include fpucw.h.
1405 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
1406 'long double' calculations.
1407 * tests/test-frexpl.c: Include fpucw.h.
1408 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
1409 * tests/test-printf-frexpl.c: Include fpucw.h.
1410 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
1411 * modules/frexpl (Depends-on): Add fpucw.
1412 * modules/printf-frexpl (Depends-on): Likewise.
1413 * modules/fprintf-posix (Depends-on): Likewise.
1414 * modules/snprintf-posix (Depends-on): Likewise.
1415 * modules/sprintf-posix (Depends-on): Likewise.
1416 * modules/vasnprintf-posix (Depends-on): Likewise.
1417 * modules/vasprintf-posix (Depends-on): Likewise.
1418 * modules/vfprintf-posix (Depends-on): Likewise.
1419 * modules/vsnprintf-posix (Depends-on): Likewise.
1420 * modules/vsprintf-posix (Depends-on): Likewise.
1421 * modules/frexpl-tests (Depends-on): Likewise.
1422 * modules/printf-frexpl-tests (Depends-on): Likewise.
1424 2007-03-24 Bruno Haible <bruno@clisp.org>
1426 * lib/float+.h: New file.
1427 * lib/isnan.c: Include float+.h.
1429 (FUNC): Compare only SIZE bytes of the value.
1430 * lib/vasnprintf.c: Include float+.h.
1431 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
1432 SIZEOF_LDBL or SIZEOF_DBL bytes.
1433 * modules/isnan-nolibm (Files): Add lib/float+.h.
1434 * modules/isnanl-nolibm (Files): Add lib/float+.h.
1435 * modules/isnanl (Files): Add lib/float+.h.
1436 * modules/vasnprintf (Files): Add lib/float+.h.
1438 2007-03-24 Bruno Haible <bruno@clisp.org>
1440 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
1441 include isnanl-nolibm.h.
1443 2007-03-24 Bruno Haible <bruno@clisp.org>
1445 * tests/test-read-file.c (main): Don't produce spurious output for
1446 expected situations. Make the test fail if it encountered unexpected
1449 2007-03-24 Bruno Haible <bruno@clisp.org>
1451 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
1452 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
1454 2007-03-24 Bruno Haible <bruno@clisp.org>
1456 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
1458 2007-03-24 Bruno Haible <bruno@clisp.org>
1460 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
1461 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
1463 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
1464 * modules/utf8-ucs4: Turn into a symbolic link to module
1467 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
1469 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
1470 unistr/u8-mbtouc-unsafe.
1472 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
1473 * modules/utf16-ucs4: Turn into a symbolic link to module
1476 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
1478 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
1479 unistr/u16-mbtouc-unsafe.
1481 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
1482 * modules/ucs4-utf8: Turn into a symbolic link to module
1485 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
1486 * modules/ucs4-utf16: Turn into a symbolic link to module
1489 2007-03-24 Bruno Haible <bruno@clisp.org>
1491 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
1492 Enable the function only if HAVE_INLINE.
1493 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
1494 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
1495 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
1496 Enable the function only if HAVE_INLINE.
1497 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
1498 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
1499 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
1500 Enable the function only if HAVE_INLINE.
1501 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
1502 Enable the function only if HAVE_INLINE.
1503 * modules/utf8-ucs4: Update.
1504 * modules/utf8-ucs4-unsafe: Update.
1505 * modules/utf16-ucs4: Update.
1506 * modules/utf16-ucs4-unsafe: Update.
1507 * modules/ucs4-utf8: Update.
1508 * modules/ucs4-utf16: Update.
1510 2007-03-24 Bruno Haible <bruno@clisp.org>
1512 * lib/utf8-ucs4.h: Remove file.
1513 * lib/utf8-ucs4-unsafe.h: Remove file.
1514 * lib/utf16-ucs4.h: Remove file.
1515 * lib/utf16-ucs4-unsafe.h: Remove file.
1516 * lib/ucs4-utf8.h: Remove file.
1517 * lib/ucs4-utf16.h: Remove file.
1518 * lib/unistr.h: Include their previous contents.
1519 * m4/utf-ucs4.m4: Remove file.
1520 * m4/ucs4-utf.m4: Remove file.
1521 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
1522 (Depends-on): Add unistr/base.
1523 (configure.ac): Remove gl_UTF_UCS4.
1524 (Makefile.am): Update.
1525 (Include): Change to unistr.h.
1526 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
1527 (Depends-on): Add unistr/base.
1528 (configure.ac): Remove gl_UTF_UCS4.
1529 (Makefile.am): Update.
1530 (Include): Change to unistr.h.
1531 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
1532 (Depends-on): Add unistr/base.
1533 (configure.ac): Remove gl_UTF_UCS4.
1534 (Makefile.am): Update.
1535 (Include): Change to unistr.h.
1536 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
1537 (Depends-on): Add unistr/base.
1538 (configure.ac): Remove gl_UTF_UCS4.
1539 (Makefile.am): Update.
1540 (Include): Change to unistr.h.
1541 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
1542 (Depends-on): Add unistr/base.
1543 (configure.ac): Remove gl_UCS4_UTF.
1544 (Makefile.am): Update.
1545 (Include): Change to unistr.h.
1546 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
1547 (Depends-on): Add unistr/base.
1548 (configure.ac): Remove gl_UCS4_UTF.
1549 (Makefile.am): Update.
1550 (Include): Change to unistr.h.
1551 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
1552 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
1554 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
1555 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
1556 utf16-ucs4-unsafe.h.
1557 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
1558 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
1559 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
1560 * lib/unistr/u8-strchr.c: Likewise.
1561 * lib/unistr/u8-strrchr.c: Likewise.
1562 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
1563 * lib/unistr/u16-strchr.c: Likewise.
1564 * lib/unistr/u16-strrchr.c: Likewise.
1565 * lib/striconveh.c: Update.
1566 * lib/linebreak.c: Update.
1568 2007-03-24 Bruno Haible <bruno@clisp.org>
1570 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
1571 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
1573 2007-03-22 Bruno Haible <bruno@clisp.org>
1575 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
1577 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
1579 * MODULES.html.sh (File system functions): New module write-any-file.
1580 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
1581 * m4/write-any-file.m4: New files.
1583 2007-03-23 Eric Blake <ebb9@byu.net>
1585 * gnulib-tool: Rearrange space-tab sequences, since some editors
1588 2007-03-23 Eric Blake <ebb9@byu.net>
1590 * lib/version-etc.c (version_etc_va): Update license wording to
1591 be more concise. Recommended by Richard Stallman.
1593 2007-03-22 Bruno Haible <bruno@clisp.org>
1595 * lib/poll.c (MSG_PEEK): New fallback definition.
1597 2007-03-22 Bruno Haible <bruno@clisp.org>
1599 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
1600 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
1602 Fixes a compilation error on BeOS.
1604 2007-03-22 Bruno Haible <bruno@clisp.org>
1606 * modules/frexpl-tests: New file.
1607 * tests/test-frexpl.c: New file.
1609 * modules/frexpl: New file.
1610 * m4/frexpl.m4: New file.
1611 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
1612 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
1613 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
1614 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
1615 (Depends-on): Add frexpl. Remove isnanl-nolibm.
1616 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
1618 2007-03-22 Bruno Haible <bruno@clisp.org>
1620 * lib/frexpl.c: Share code with lib/frexp.c.
1621 * modules/mathl (Files): Add lib/frexp.c.
1622 (Depends-on): Add isnanl-nolibm.
1624 2007-03-22 Bruno Haible <bruno@clisp.org>
1626 * modules/printf-frexp (Files): Add m4/frexp.m4.
1627 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
1628 only if the found frexp function actually works.
1630 2007-03-22 Bruno Haible <bruno@clisp.org>
1632 * lib/frexp.c: Remove older implementation that uses divisions.
1634 2007-03-21 Bruno Haible <bruno@clisp.org>
1636 * modules/frexp-tests: New file.
1637 * tests/test-frexp.c: New file.
1639 * modules/frexp: New file.
1640 * lib/frexp.c: New file.
1641 * m4/frexp.m4: New file.
1642 * lib/math_.h (frexp): New declaration.
1643 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
1645 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
1647 2007-03-21 Bruno Haible <bruno@clisp.org>
1649 * modules/isnanl-tests: New file.
1650 * tests/test-isnanl.c: New file.
1652 * modules/isnanl: New file.
1653 * lib/isnanl.h: New file.
1654 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
1655 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
1656 gl_FUNC_ISNANL_WORKS.
1657 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
1660 2007-03-21 Bruno Haible <bruno@clisp.org>
1662 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
1665 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
1666 * lib/vasnprintf.c: Update.
1667 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
1668 tests/test-isnanl.h, remove tests/test-isnanl.c.
1669 (Makefile.am): Update.
1670 * tests/test-isnanl-nolibm.c: New file.
1671 * tests/test-isnanl.h: New file.
1672 * tests/test-isnanl.c: Remove file.
1674 2007-03-21 Jim Meyering <jim@meyering.net>
1676 When trying to open ".", treat ESTALE like EACCES.
1677 * lib/savewd.c (savewd_save): Resort to forking not just upon
1678 failure with EACCES, but also when errno is ESTALE.
1680 2007-03-20 Bruno Haible <bruno@clisp.org>
1682 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
1683 Needed on AIX 5.1. Reported by Matthew Woehlke.
1685 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
1687 Suggestions by Bruno Haible:
1688 * lib/acl-internal.h: Include "gettext.h" rather than rolling
1690 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
1691 * modules/acl (Depends-on): Add gettext.
1693 2007-03-19 Bruno Haible <bruno@clisp.org>
1695 * modules/iconvme: Remove file.
1696 * lib/iconvme.h: Remove file.
1697 * lib/iconvme.c: Remove file.
1698 * m4/iconvme.m4: Remove file.
1700 2007-03-19 Bruno Haible <bruno@clisp.org>
1702 * doc/relocatable-maint.texi: Break long shell script line.
1703 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
1705 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
1707 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
1708 handle file_has_acl.
1709 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
1710 * lib/acl.c: Move header inclusions and related macro defns into
1712 (S_ISLNK): Remove defn, since that's now done for us.
1713 (file_has_acl): Move to lib/file-has-acl.c.
1714 Call acl_trivial if available. This is the crucial part of the fix.
1715 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
1716 shared within the library. Rewrite a bit, partly to make it compatible
1717 with the GNU coding style.
1718 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
1719 Remove unnecessary double-quotes.
1720 Don't test for acl_to_text; the build will catch that.
1721 Replace acl_entries if it doesn't exist and it is needed.
1722 Check for -lsec and acl_trivial (as used on Solaris 10).
1723 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
1725 (Depends-on): Add sys_stat, for S_ISLNK.
1727 2007-03-19 Ben Pfaff <blp@gnu.org>
1729 * doc/gnulib.texi: Fix typos.
1730 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
1732 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
1734 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
1735 If size is zero here, buf must be zero.
1737 2007-03-19 Simon Josefsson <simon@josefsson.org>
1739 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
1742 2007-03-18 Bruno Haible <bruno@clisp.org>
1744 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
1745 Suggested by Eric Blake.
1747 2007-03-18 Ben Pfaff <blp@gnu.org>
1749 * doc/relocatable.texi: Recommend using as prefix a directory
1750 that does not exist and will never be created. Based on
1751 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
1754 2007-03-17 Bruno Haible <bruno@clisp.org>
1756 * lib/fchownat.c: Include lchown.h.
1758 2007-03-17 Bruno Haible <bruno@clisp.org>
1760 Fix endless loop when the given allocated size was > INT_MAX.
1761 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
1762 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
1763 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
1764 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
1765 * lib/sprintf.c (sprintf): Likewise.
1767 2007-03-17 Bruno Haible <bruno@clisp.org>
1769 * tests/test-argp-2.sh (func_compare): Output a context diff.
1771 2007-03-17 Bruno Haible <bruno@clisp.org>
1773 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
1774 locale's decimal-point character.
1776 2007-03-17 Bruno Haible <bruno@clisp.org>
1778 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
1779 before comparing it. Needed because on some platforms (e.g. x86) a
1780 'long double' occupies less bytes than sizeof (long double).
1782 2007-03-17 Bruno Haible <bruno@clisp.org>
1784 * tests/test-crc.c (main): Make printf statements 64-bit clean.
1785 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
1786 * tests/test-getaddrinfo.c (simple): Likewise.
1787 * tests/test-read-file.c (main): Likewise.
1789 2007-03-17 Bruno Haible <bruno@clisp.org>
1791 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
1793 2007-03-17 Bruno Haible <bruno@clisp.org>
1795 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
1798 2007-03-17 Bruno Haible <bruno@clisp.org>
1800 * tests/test-c-strcasecmp.c: Include c-strcase.h.
1801 * tests/test-c-strncasecmp.c: Likewise.
1803 2007-03-17 Bruno Haible <bruno@clisp.org>
1805 * modules/stdlib (Depends-on): Add unistd.
1806 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
1807 Needed for MacOS X 10.3.
1809 2007-03-17 Bruno Haible <bruno@clisp.org>
1811 * lib/unistr/u-strdup.h: Include <stdlib.h>.
1813 2007-03-17 Bruno Haible <bruno@clisp.org>
1815 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
1817 2007-03-17 Bruno Haible <bruno@clisp.org>
1819 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
1820 to reflect files copied from gnulib (with or without modifications).
1821 Suggested by Jim Meyering.
1823 2007-03-17 Eric Blake <ebb9@byu.net>
1825 * NEWS: Document stdlib change from 2007-02-18.
1827 2007-03-17 Jim Meyering <jim@meyering.net>
1829 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
1830 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
1831 someone uses a name containing shell meta-characters.
1832 Reported by Alfred M. Szmidt.
1834 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
1836 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
1838 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
1839 and copy gettext configuration files only if configure.ac contains
1840 a use of AM_GNU_GETTEXT_VERSION.
1842 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
1844 * build-aux/bootstrap (gnulib_name): New variable.
1845 (gnulib_tool_options): Use it.
1847 2007-03-13 Simon Josefsson <simon@josefsson.org>
1849 * tests/test-des.c: Use new namespace.
1851 2007-03-15 Bruno Haible <bruno@clisp.org>
1853 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
1854 Reported by James Youngman <jay@gnu.org>.
1856 2007-03-15 Bruno Haible <bruno@clisp.org>
1858 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
1859 declared prototype. Needed with cc on OSF/1 5.1.
1861 2007-03-15 Bruno Haible <bruno@clisp.org>
1863 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
1864 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
1865 (struct gl_list_implementation): Add dispose_fn argument to the
1866 'create_empty', 'create' methods.
1867 (struct gl_list_impl_base): Add field 'dispose_fn'.
1868 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
1870 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
1871 dispose_fn argument.
1872 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
1873 dispose_fn on the dropped values.
1874 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
1875 dispose_fn argument.
1876 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
1878 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
1879 (gl_tree_remove_node): Call dispose_fn on the dropped value.
1880 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
1881 (gl_tree_remove_node): Call dispose_fn on the dropped value.
1882 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
1884 (gl_tree_list_free): Call dispose_fn on the dropped values.
1885 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
1887 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
1888 Add dispose_fn argument.
1889 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
1890 Call dispose_fn on the dropped values.
1891 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
1892 Add dispose_fn argument.
1893 (gl_sublist_create): Initialize the 'dispose_fn' field.
1894 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
1895 * tests/test-array_list.c (main): Update.
1896 * tests/test-carray_list.c (main): Update.
1897 * tests/test-avltree_list.c (main): Update.
1898 * tests/test-rbtree_list.c (main): Update.
1899 * tests/test-avltreehash_list.c (main): Update.
1900 * tests/test-rbtreehash_list.c (main): Update.
1901 * tests/test-linked_list.c (main): Update.
1902 * tests/test-linkedhash_list.c (main): Update.
1903 * tests/test-array_oset.c (main): Update.
1905 2007-03-15 Bruno Haible <bruno@clisp.org>
1907 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
1908 (gl_oset_create_empty): Add dispose_fn argument.
1909 (struct gl_oset_implementation): Add dispose_fn argument to
1910 'create_empty' method.
1911 (struct gl_oset_impl_base): Add dispose_fn field.
1912 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
1913 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
1914 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
1916 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
1917 (gl_tree_oset_free): Call dispose_fn on the dropped values.
1918 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
1920 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
1922 * tests/test-array_oset.c (main): Update.
1923 * tests/test-avltree_oset.c (main): Update.
1924 * tests/test-rbtree_oset.c (main): Update.
1925 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
1927 2007-03-13 Bruno Haible <bruno@clisp.org>
1929 * tests/test-stdbool.c (i): Update after last patch.
1931 2007-03-12 Bruno Haible <bruno@clisp.org>
1933 * lib/quotearg.c: Include <wctype.h> early, before the definition of
1934 the iswprint macro. Needed on Solaris 2.5.1.
1936 2007-03-12 Bruno Haible <bruno@clisp.org>
1938 * tests/test-printf-frexp.c (main): Declare x as volatile.
1940 2007-03-12 Simon Josefsson <simon@josefsson.org>
1942 * doc/gnulib.texi (Build robot for gnulib): New section.
1944 2007-03-12 Jim Meyering <jim@meyering.net>
1946 * build-aux/bootstrap: New file.
1947 * build-aux/bootstrap.conf: New file, from coreutils.
1949 2007-03-11 Bruno Haible <bruno@clisp.org>
1951 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
1953 2007-03-12 Simon Josefsson <simon@josefsson.org>
1955 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
1956 avoid collisions with 'des_setkey'. Reported by Bruno Haible
1957 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
1959 2007-03-11 Bruno Haible <bruno@clisp.org>
1961 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
1962 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
1964 2007-03-11 Bruno Haible <bruno@clisp.org>
1966 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
1967 formula. Needed for SunPRO C 5.0.
1969 2007-03-11 Bruno Haible <bruno@clisp.org>
1971 * modules/long-options (Depends-on): Add getopt.
1973 2007-03-11 Bruno Haible <bruno@clisp.org>
1975 * modules/modechange (Depends-on): Add stdbool.
1977 2007-03-11 Bruno Haible <bruno@clisp.org>
1979 * modules/i-ring (Depends-on): Add stdbool.
1981 2007-03-11 Bruno Haible <bruno@clisp.org>
1983 * modules/gc-des (Depends-on): Add stdbool.
1985 2007-03-11 Bruno Haible <bruno@clisp.org>
1987 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
1989 2007-03-11 Bruno Haible <bruno@clisp.org>
1991 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
1993 2007-03-11 Bruno Haible <bruno@clisp.org>
1995 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
1997 2007-03-11 Bruno Haible <bruno@clisp.org>
1999 * lib/vasnprintf.c (sprintf): Undefine.
2001 2007-03-11 Bruno Haible <bruno@clisp.org>
2003 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
2004 initializers in SunPRO C and Compaq C compilers.
2006 2007-03-11 Bruno Haible <bruno@clisp.org>
2008 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
2009 decrementing code ANSI C compliant.
2011 2007-03-11 Bruno Haible <bruno@clisp.org>
2013 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
2014 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
2016 2007-03-11 Bruno Haible <bruno@clisp.org>
2018 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
2019 <stdbool.h> substitute doesn't pass.
2021 2007-03-11 Bruno Haible <bruno@clisp.org>
2023 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
2025 2007-03-11 Bruno Haible <bruno@clisp.org>
2027 * gnulib-tool (func_create_megatestdir): Create also an autobuild
2028 script, for submission to autobuild.josefsson.org.
2030 2007-03-10 Bruno Haible <bruno@clisp.org>
2032 * modules/canonicalize-lgpl-tests: New file.
2033 * tests/test-canonicalize-lgpl.sh: New file.
2034 * tests/test-canonicalize-lgpl.c: New file.
2036 * modules/c-strcase-tests: New file.
2037 * tests/test-c-strcase.sh: New file.
2038 * tests/test-c-strcasecmp.c: New file.
2039 * tests/test-c-strncasecmp.c: New file.
2041 * modules/atexit-tests: New file.
2042 * tests/test-atexit.sh: New file.
2043 * tests/test-atexit.c: New file.
2045 2007-03-10 Bruno Haible <bruno@clisp.org>
2047 * tests/test-binary-io.sh: Use temporary filenames that are not so
2048 likely to clash with those of other tests (in a parallel make).
2049 * tests/test-binary-io.c: Likewise.
2051 2007-03-10 Bruno Haible <bruno@clisp.org>
2053 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
2054 fallback; use #error instead.
2055 Suggested by Simon Josefsson.
2057 2007-03-10 Bruno Haible <bruno@clisp.org>
2059 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
2060 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
2063 2007-03-10 Bruno Haible <bruno@clisp.org>
2065 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
2067 2007-03-10 Bruno Haible <bruno@clisp.org>
2069 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
2071 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
2072 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
2073 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
2075 2007-03-10 Bruno Haible <bruno@clisp.org>
2077 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
2079 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
2082 2007-03-09 Eric Blake <ebb9@byu.net>
2083 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
2085 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
2086 types are not being provided by gnulib.
2087 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
2088 types are supported.
2090 2007-03-10 Bruno Haible <bruno@clisp.org>
2092 * lib/stdio_.h (__attribute__): New macro.
2093 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
2094 vsprintf): Specify __attribute__ __format__ for GCC.
2095 Suggested by Eric Blake.
2097 2007-03-09 Bruno Haible <bruno@clisp.org>
2099 * modules/printf-posix-tests: New file.
2100 * tests/test-printf-posix.sh: New file.
2101 * tests/test-printf-posix.c: New file.
2103 * modules/printf-posix: New file.
2104 * lib/printf.c: New file.
2105 * m4/printf-posix-rpl.m4: New file.
2106 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
2108 * lib/stdio_.h (printf): New declaration.
2109 (format, __format__, ____printf____, ____scanf____, ____strftime____,
2110 ____strfmon____): New macros.
2111 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
2114 2007-03-09 Bruno Haible <bruno@clisp.org>
2116 * tests/test-vasnprintf-posix2.sh: New file.
2117 * tests/test-vasnprintf-posix2.c: New file.
2118 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
2119 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2120 (Makefile.am): Activate test-vasnprintf-posix2.sh.
2122 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
2123 a locale dependent decimal point, rather than always '.'.
2125 2007-03-09 Eric Blake <ebb9@byu.net>
2127 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
2128 spite of platforms like Tandem/NSK that define it to -1.
2130 2007-03-08 Bruno Haible <bruno@clisp.org>
2132 * modules/vprintf-posix-tests: New file.
2133 * tests/test-vprintf-posix.sh: New file.
2134 * tests/test-vprintf-posix.c: New file.
2135 * tests/test-printf-posix.h: New file.
2137 * modules/vprintf-posix: New file.
2138 * lib/vprintf.c: New file.
2139 * m4/vprintf-posix.m4: New file.
2140 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
2142 * lib/stdio_.h (vprintf): New declaration.
2143 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
2146 2007-03-08 Bruno Haible <bruno@clisp.org>
2148 * modules/fprintf-posix-tests: New file.
2149 * tests/test-fprintf-posix.sh: New file.
2150 * tests/test-fprintf-posix.c: New file.
2152 * modules/fprintf-posix: New file.
2153 * lib/fprintf.c: New file.
2154 * m4/fprintf-posix.m4: New file.
2155 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
2157 * lib/stdio_.h (fprintf): New declaration.
2158 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
2161 2007-03-08 Bruno Haible <bruno@clisp.org>
2163 * modules/vfprintf-posix-tests: New file.
2164 * tests/test-vfprintf-posix.sh: New file.
2165 * tests/test-vfprintf-posix.c: New file.
2166 * tests/test-fprintf-posix.h: New file.
2167 * tests/test-fprintf-posix.out: New file.
2169 * modules/vfprintf-posix: New file.
2170 * lib/vfprintf.c: New file.
2171 * m4/vfprintf-posix.m4: New file.
2172 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
2174 * lib/stdio_.h (vfprintf): New declaration.
2175 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
2178 2007-03-08 Bruno Haible <bruno@clisp.org>
2180 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
2182 2007-03-08 Bruno Haible <bruno@clisp.org>
2184 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
2185 instead of 'expr' invocations.
2186 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2187 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2188 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2189 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2190 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2191 Suggested by Paul Eggert.
2193 2007-03-08 Bruno Haible <bruno@clisp.org>
2195 * modules/fseterr-tests: New file.
2196 * tests/test-fseterr.c: New file.
2198 * modules/fseterr: New file.
2199 * lib/fseterr.h: New file.
2200 * lib/fseterr.c: New file.
2202 2007-03-08 Bruno Haible <bruno@clisp.org>
2204 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
2205 * lib/getopt_.h: Likewise.
2206 * lib/mbswidth.h: Likewise.
2207 * lib/setenv.h: Likewise.
2208 * lib/vasnprintf.h: Likewise.
2209 * lib/vasprintf.h: Likewise.
2210 * lib/verror.h: Likewise.
2211 * lib/xsetenv.h: Likewise.
2212 * lib/xvasprintf.h: Likewise.
2214 2007-03-08 Jim Meyering <jim@meyering.net>
2216 * users.txt: Add parted.
2218 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
2220 2007-03-07 Bruno Haible <bruno@clisp.org>
2222 * m4/printf.m4: Make the shell script snippets copy&pastable.
2224 2007-03-02 Bruno Haible <bruno@clisp.org>
2226 * lib/netinet_in_.h: New file.
2227 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
2228 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
2229 * modules/netinet_in (Files): Add lib/netinet_in_.h.
2230 (Depends-on): Add absolute-header.
2231 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
2234 2007-03-03 Bruno Haible <bruno@clisp.org>
2236 * lib/sys_select_.h: New file.
2237 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
2238 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
2239 * modules/sys_select (Files): Add lib/sys_select_.h.
2240 (Depends-on): Add absolute-header.
2241 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
2244 2007-03-02 Bruno Haible <bruno@clisp.org>
2246 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
2247 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
2249 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
2250 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
2251 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
2252 * modules/sys_socket (Depends-on): Add absolute-header.
2253 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
2254 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
2255 (Include): Remove requirement of inclusion of <sys/types.h>.
2257 2007-03-02 Bruno Haible <bruno@clisp.org>
2259 * lib/byteswap_.h (bswap_32): Fix formula.
2261 2007-03-06 Bruno Haible <bruno@clisp.org>
2263 * modules/sprintf-posix-tests: New file.
2264 * tests/test-sprintf-posix.c: New file.
2266 * modules/sprintf-posix: New file.
2267 * lib/sprintf.c: New file.
2268 * m4/sprintf-posix.m4: New file.
2269 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
2271 * lib/stdio_.h (sprintf): New declaration.
2272 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
2275 2007-03-06 Bruno Haible <bruno@clisp.org>
2277 * modules/vsprintf-posix-tests: New file.
2278 * tests/test-vsprintf-posix.c: New file.
2279 * tests/test-sprintf-posix.h: New file.
2281 * modules/vsprintf-posix: New file.
2282 * lib/vsprintf.c: New file.
2283 * m4/vsprintf-posix.m4: New file.
2284 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
2286 * lib/stdio_.h (vsprintf): New declaration.
2287 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
2290 2007-03-06 Bruno Haible <bruno@clisp.org>
2292 * modules/vsnprintf (Depend-on): Remove minmax.
2294 2007-03-06 Bruno Haible <bruno@clisp.org>
2296 * modules/snprintf-posix-tests: New file.
2297 * tests/test-snprintf-posix.c: New file.
2299 * modules/snprintf-posix: New file.
2300 * m4/snprintf-posix.m4: New file.
2301 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
2303 (gl_FUNC_SNPRINTF): Invoke it.
2304 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
2305 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
2307 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
2309 2007-03-06 Bruno Haible <bruno@clisp.org>
2311 * modules/vsnprintf-posix-tests: New file.
2312 * tests/test-vsnprintf-posix.c: New file.
2313 * tests/test-snprintf-posix.h: New file.
2315 * modules/vsnprintf-posix: New file.
2316 * m4/vsnprintf-posix.m4: New file.
2317 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
2319 (gl_FUNC_VSNPRINTF): Invoke it.
2320 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
2321 * lib/stdio_.h (vsnprintf): Define as a replacement if
2322 REPLACE_VSNPRINTF is set.
2323 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
2325 2007-03-06 Bruno Haible <bruno@clisp.org>
2327 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
2328 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
2330 2007-03-06 Bruno Haible <bruno@clisp.org>
2332 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
2333 (asinl): Declare also if HAVE_DECL_ASINL is set.
2334 (atanl): Declare also if HAVE_DECL_ATANL is set.
2335 (ceill): Declare also if HAVE_DECL_CEILL is set.
2336 (cosl): Declare also if HAVE_DECL_COSL is set.
2337 (expl): Declare also if HAVE_DECL_EXPL is set.
2338 (floorl): Declare also if HAVE_DECL_FLOORL is set.
2339 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
2340 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
2341 (logl): Declare also if HAVE_DECL_LOGL is set.
2342 (sinl): Declare also if HAVE_DECL_SINL is set.
2343 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
2344 (tanl): Declare also if HAVE_DECL_TANL is set.
2345 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
2346 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
2347 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
2348 declaration of frexpl, ldexpl.
2349 * modules/printf-frexpl (Depends-on): Add math.
2350 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
2352 2007-03-05 Bruno Haible <bruno@clisp.org>
2354 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
2355 frexpl and ldexpl are declared.
2356 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
2358 2007-03-05 Bruno Haible <bruno@clisp.org>
2360 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
2361 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
2363 2007-03-05 Bruno Haible <bruno@clisp.org>
2365 * lib/stdio_.h: Include <stddef.h>.
2367 2007-03-05 Bruno Haible <bruno@clisp.org>
2369 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
2371 2007-03-05 Bruno Haible <bruno@clisp.org>
2373 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
2374 NetBSD 4, from Ralf Wildenhues.
2376 2007-03-04 Bruno Haible <bruno@clisp.org>
2378 * lib/vasprintf.h: Update #if logic for the case when the functions
2379 exist but are overridden.
2381 2007-03-04 Bruno Haible <bruno@clisp.org>
2383 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
2384 implementations: glibc-2.4 and MacOS X 10.3.
2385 * tests/test-vasnprintf-posix.c (test_function): Test also the case
2386 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
2387 * tests/test-vasprintf-posix.c (test_function): Likewise.
2389 2007-03-04 Bruno Haible <bruno@clisp.org>
2391 * modules/vasprintf-posix-tests: New file.
2392 * tests/test-vasprintf-posix.c: New file.
2394 * modules/vasprintf-posix: New file.
2395 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
2397 * m4/vasprintf-posix.m4: New file.
2398 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
2400 (gl_FUNC_VASPRINTF): Invoke it.
2401 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
2403 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
2405 2007-03-04 Bruno Haible <bruno@clisp.org>
2407 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
2408 REPLACE_GETTIMEOFDAY.
2409 * modules/sys_time (Makefile.am): Likewise.
2410 * m4/sys_time_h.m4: Likewise.
2411 * m4/gettimeofday.m4: Likewise.
2413 2007-03-04 Bruno Haible <bruno@clisp.org>
2415 * modules/vasnprintf-posix-tests: New file.
2416 * tests/test-vasnprintf-posix.c: New file.
2418 * modules/vasnprintf-posix: New file.
2419 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
2421 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
2422 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
2423 REPLACE_VASNPRINTF is defined.
2424 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
2426 (gl_FUNC_VASNPRINTF): Invoke it.
2427 * m4/vasnprintf-posix.m4: New file.
2428 * m4/printf.m4: New file.
2430 2007-03-04 Bruno Haible <bruno@clisp.org>
2432 Compile progreloc.c only if --enable-relocatable is specified.
2433 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
2434 if --enable-relocatable was specified.
2435 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
2438 2007-03-04 Jim Meyering <jim@meyering.net>
2440 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
2441 Use it consistently, rather than enumerating errno constants.
2443 2007-03-04 Bruno Haible <bruno@clisp.org>
2445 * modules/xvasprintf-tests: New file.
2446 * tests/test-xvasprintf.c: New file.
2448 * modules/vasprintf-tests: New file.
2449 * tests/test-vasprintf.c: New file.
2451 * modules/vasnprintf-tests: New file.
2452 * tests/test-vasnprintf.c: New file.
2454 * modules/vsnprintf-tests: New file.
2455 * tests/test-vsnprintf.c: New file.
2457 * modules/snprintf-tests: New file.
2458 * tests/test-snprintf.c: New file.
2460 2007-03-04 Bruno Haible <bruno@clisp.org>
2462 Compile relocatable.c only if --enable-relocatable is specified.
2463 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
2464 gl_RELOCATABLE_LIBRARY.
2465 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
2466 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
2467 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
2468 gl_RELOCATABLE_LIBRARY.
2469 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
2470 (Makefile.am): Remove lib_SOURCES.
2471 * modules/relocatable-lib-lgpl (configure.ac): Invoke
2472 gl_RELOCATABLE_LIBRARY.
2473 (Makefile.am): Remove lib_SOURCES.
2474 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
2476 * modules/relocatable-prog-wrapper (configure.ac): Invoke
2477 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
2479 2007-03-04 Bruno Haible <bruno@clisp.org>
2481 * modules/argmatch-tests: New file.
2482 * tests/test-argmatch.c: New file.
2484 * tests/test-allocsa.c (main): Halve the number of loop runs.
2486 * modules/alloca-opt-tests: New file.
2487 * tests/test-alloca-opt.c: New file.
2489 2007-03-04 Jim Meyering <jim@meyering.net>
2491 Work around difference between Linux ACLs and Solaris 10 ZFS.
2492 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
2495 2007-03-03 Bruno Haible <bruno@clisp.org>
2497 * modules/relocatable-prog (Depends-on): Add back progreloc's
2498 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
2500 2007-03-03 Bruno Haible <bruno@clisp.org>
2502 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
2503 * modules/relocatable-lib: New file.
2505 2007-03-03 Bruno Haible <bruno@clisp.org>
2507 * modules/relocatable-prog: Renamed from modules/relocatable.
2508 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
2510 2007-03-03 Bruno Haible <bruno@clisp.org>
2512 * modules/relocatable-script (Files): Add doc/relocatable.texi,
2513 m4/relocatable-lib.m4.
2514 (Depends-on): Remove 'relocatable'.
2515 (configure.ac): Add gl_RELOCATABLE_NOP.
2517 2007-03-03 Bruno Haible <bruno@clisp.org>
2519 * modules/relocatable-prog-wrapper: New file.
2520 * modules/relocatable (Depends-on): Add it. Remove all other
2521 dependencies except progname.
2522 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
2524 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
2525 (gl_FUNC_STRERROR): Nop.
2526 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
2528 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
2529 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
2531 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
2532 (gl_FUNC_READLINK): Update.
2534 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
2536 2007-03-03 Bruno Haible <bruno@clisp.org>
2538 * lib/xreadlink.c: Include <unistd.h> unconditionally.
2539 * modules/xreadlink (Depends-on): Add unistd.
2540 * modules/xreadlink-with-size (Depends-on): Likewise.
2542 2007-03-03 Bruno Haible <bruno@clisp.org>
2544 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
2545 extracted from gt_FUNC_SETENV.
2546 (gt_FUNC_SETENV): Remove macro.
2547 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
2548 remove gt_FUNC_SETENV.
2550 2007-03-03 Bruno Haible <bruno@clisp.org>
2552 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
2553 ENABLE_RELOCATABLE here.
2554 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
2556 2007-03-03 Bruno Haible <bruno@clisp.org>
2558 * modules/rbtreehash-list-tests (Depends-on): Add progname.
2559 * tests/test-rbtreehash_list.c: Include progname.h.
2560 (main): Call set_program_name.
2562 * modules/rbtree-oset-tests (Depends-on): Add progname.
2563 * tests/test-rbtree_oset.c: Include progname.h.
2564 (main): Call set_program_name.
2566 * modules/rbtree-list-tests (Depends-on): Add progname.
2567 * tests/test-rbtree_list.c: Include progname.h.
2568 (main): Call set_program_name.
2570 * modules/linked-list-tests (Depends-on): Add progname.
2571 * tests/test-linked_list.c: Include progname.h.
2572 (main): Call set_program_name.
2574 2007-03-03 Bruno Haible <bruno@clisp.org>
2576 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
2577 All uses of __restrict changed to _Restrict_.
2578 * lib/glob_.h (__restrict): Remove macro.
2580 2007-03-02 Bruno Haible <bruno@clisp.org>
2582 * modules/gettext (configure.ac): Require gettext infrastructure
2583 from version 0.16.1.
2585 2007-03-02 Bruno Haible <bruno@clisp.org>
2587 * modules/linkedhash-list-tests (Depends-on): Add progname.
2588 * tests/test-linkedhash_list.c: Include progname.h.
2589 (main): Call set_program_name.
2591 * modules/carray-list-tests (Depends-on): Add progname.
2592 * tests/test-carray_list.c: Include progname.h.
2593 (main): Call set_program_name.
2595 * modules/avltreehash-list-tests (Depends-on): Add progname.
2596 * tests/test-avltreehash_list.c: Include progname.h.
2597 (main): Call set_program_name.
2599 * modules/avltree-oset-tests (Depends-on): Add progname.
2600 * tests/test-avltree_oset.c: Include progname.h.
2601 (main): Call set_program_name.
2603 * modules/avltree-list-tests (Depends-on): Add progname.
2604 * tests/test-avltree_list.c: Include progname.h.
2605 (main): Call set_program_name.
2607 * modules/array-oset-tests (Depends-on): Add progname.
2608 * tests/test-array_oset.c: Include progname.h.
2609 (main): Call set_program_name.
2611 * modules/array-list-tests (Depends-on): Add progname.
2612 * tests/test-array_list.c: Include progname.h.
2613 (main): Call set_program_name.
2615 * modules/argp-tests (Depends-on): Add progname.
2616 * tests/test-argp.c: Include argp.h first. Include progname.h.
2617 (main): Call set_program_name.
2619 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
2621 * doc/gnulib-tool.texi (Initial import): Reword description of
2622 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
2623 limited effect even if defined after the first system include.
2625 2007-03-01 Bruno Haible <bruno@clisp.org>
2627 * build-aux/config.libpath: Update to libtool-1.5.22.
2628 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2630 2007-03-01 Bruno Haible <bruno@clisp.org>
2632 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
2634 Reported by Ralf Wildenhues.
2636 2007-03-01 Bruno Haible <bruno@clisp.org>
2638 * build-aux/install-reloc: Remove object files left over by some
2640 Reported by Ralf Wildenhues.
2642 2007-03-01 Bruno Haible <bruno@clisp.org>
2644 * build-aux/install-reloc: Break long lines.
2646 2007-03-01 Bruno Haible <bruno@clisp.org>
2648 * doc/relocatable.texi: Document that it may not work on OpenBSD.
2649 Reported by Ralf Wildenhues.
2651 2007-03-01 Bruno Haible <bruno@clisp.org>
2653 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
2654 include ordering constraints.
2656 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
2658 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
2659 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
2660 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
2662 * lib/time_.h: Fix misspelling.
2663 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2664 Require gl_HEADER_TIME_H_DEFAULTS.
2665 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
2666 * m4/time_r.m4 (gl_TIME_R): Likewise.
2667 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
2669 2007-03-01 Bruno Haible <bruno@clisp.org>
2671 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
2672 * m4/utimens.m4 (gl_UTIMENS): Likewise.
2674 2007-03-01 Jim Meyering <jim@meyering.net>
2676 * modules/xreadlink (Maintainer): Add my name.
2677 * modules/xreadlink-with-size (Depends-on): Alphabetize.
2679 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
2680 Bruno Haible <bruno@clisp.org>
2682 * build-aux/install-reloc: Compile also c-ctype.c.
2683 * build-aux/relocatable.sh.in: New file.
2684 * doc/relocatable.texi: New file.
2685 * doc/relocatable-maint.texi: New file.
2686 * doc/gnulib.texi: Include relocatable-maint.texi.
2687 * lib/progreloc.c: Include unistd.h unconditionally.
2688 * lib/relocwrapper.c: Include unistd.h unconditionally.
2690 (add_dotbin): Use c_tolower.
2691 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
2692 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
2693 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
2694 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
2695 to m4/relocatable-lib.m4.
2696 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
2697 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
2698 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
2699 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
2700 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
2701 * modules/relocatable: New file.
2702 * modules/relocatable-lib: New file.
2703 * modules/relocatable-script: New file.
2705 2007-02-28 Bruno Haible <bruno@clisp.org>
2707 Import --enable-relocatable infrastructure.
2708 * build-aux/config.libpath: New file, from GNU gettext.
2709 * build-aux/install-reloc: New file, from GNU gettext.
2710 * build-aux/reloc-ldflags: New file, from GNU gettext.
2711 * lib/relocatable.h: New file, from GNU gettext.
2712 * lib/relocatable.c: New file, from GNU gettext.
2713 * lib/relocwrapper.c: New file, from GNU gettext.
2714 * m4/relocatable.m4: New file, from GNU gettext.
2716 2007-02-28 Bruno Haible <bruno@clisp.org>
2718 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
2720 * modules/xreadlink: New file, from GNU gettext with modifications.
2721 * lib/xreadlink.c: New file, from GNU gettext.
2722 * lib/xreadlink.h: Add comments.
2723 (xreadlink): New declaration.
2725 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
2726 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
2727 lib/xreadlink-with-size.c.
2728 (configure.ac): Remove gl_XREADLINK invocation.
2729 (Makefile.am): Augment lib_SOURCES.
2730 * m4/xreadlink.m4: Remove file.
2731 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
2732 (xreadlink_with_size): Renamed from xreadink.
2733 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
2734 * modules/canonicalize (Depends-on): Replace xreadlink with
2735 xreadlink-with-size.
2736 * lib/canonicalize.c (canonicalize_filename_mode): Update.
2738 2007-02-25 Jim Meyering <jim@meyering.net>
2740 * build-aux/announce-gen: When complaining about excess arguments,
2743 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
2745 * README: Document signed integer overflow situation more
2748 2007-02-25 Bruno Haible <bruno@clisp.org>
2750 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
2751 'a' or 'A' conversion.
2753 2007-02-25 Bruno Haible <bruno@clisp.org>
2755 * modules/filename: Renamed from modules/pathname.
2756 (Files): Replace lib/pathname.h with lib/filename.h. Replace
2757 lib/concatpath.c with lib/concat-filename.c.
2758 (Makefile.am): Update.
2759 (Include): Replace pathname.h with filename.h.
2760 * lib/filename.h: Renamed from lib/pathname.h.
2761 (concatenated_filename): Renamed from concatenated_pathname.
2762 * lib/concat-filename.c: Renamed from lib/concatpath.c.
2763 (concatenated_filename): Renamed from concatenated_pathname.
2764 * lib/findprog.c: Include filename.h instead of pathname.h.
2765 (find_in_path): Update.
2766 * lib/javacomp.c: Include filename.h instead of pathname.h.
2767 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
2768 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
2769 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
2770 is_oldgcj_14_13_usable, is_javac_usable): Update.
2771 * lib/javaexec.c: Include filename.h instead of pathname.h.
2772 (execute_java_class): Update.
2773 * modules/findprog: Update.
2774 * modules/javacomp: Update.
2775 * modules/javaexec: Update.
2776 * MODULES.html.sh (File system functions): Add 'filename', remove
2779 2007-02-25 Bruno Haible <bruno@clisp.org>
2781 * modules/printf-frexpl-tests: New file.
2782 * tests/test-printf-frexpl.c: New file.
2784 * modules/printf-frexpl: New file.
2785 * lib/printf-frexpl.h: New file.
2786 * lib/printf-frexpl.c: New file.
2787 * m4/printf-frexpl.m4: New file.
2789 2007-02-25 Bruno Haible <bruno@clisp.org>
2791 * modules/printf-frexp-tests: New file.
2792 * tests/test-printf-frexp.c: New file.
2794 * modules/printf-frexp: New file.
2795 * lib/printf-frexp.h: New file.
2796 * lib/printf-frexp.c: New file.
2797 * m4/printf-frexp.m4: New file.
2799 2007-02-25 Bruno Haible <bruno@clisp.org>
2801 Assume automake >= 1.10 for the tests.
2802 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
2803 * modules/arctwo-tests: Likewise.
2804 * modules/argp-tests: Likewise.
2805 * modules/avltree-list-tests: Likewise.
2806 * modules/avltree-oset-tests: Likewise.
2807 * modules/avltreehash-list-tests: Likewise.
2808 * modules/carray-list-tests: Likewise.
2809 * modules/crc-tests: Likewise.
2810 * modules/des-tests: Likewise.
2811 * modules/gc-arcfour-tests: Likewise.
2812 * modules/gc-arctwo-tests: Likewise.
2813 * modules/gc-des-tests: Likewise.
2814 * modules/gc-hmac-md5-tests: Likewise.
2815 * modules/gc-hmac-sha1-tests: Likewise.
2816 * modules/gc-md2-tests: Likewise.
2817 * modules/gc-md4-tests: Likewise.
2818 * modules/gc-md5-tests: Likewise.
2819 * modules/gc-pbkdf2-sha1-tests: Likewise.
2820 * modules/gc-rijndael-tests: Likewise.
2821 * modules/gc-sha1-tests: Likewise.
2822 * modules/gc-tests: Likewise.
2823 * modules/getaddrinfo-tests: Likewise.
2824 * modules/hmac-md5-tests: Likewise.
2825 * modules/hmac-sha1-tests: Likewise.
2826 * modules/linked-list-tests: Likewise.
2827 * modules/linkedhash-list-tests: Likewise.
2828 * modules/lock-tests: Likewise.
2829 * modules/md2-tests: Likewise.
2830 * modules/md4-tests: Likewise.
2831 * modules/md5-tests: Likewise.
2832 * modules/rbtree-list-tests: Likewise.
2833 * modules/rbtree-oset-tests: Likewise.
2834 * modules/rbtreehash-list-tests: Likewise.
2835 * modules/read-file-tests: Likewise.
2836 * modules/rijndael-tests: Likewise.
2837 * modules/stdint-tests: Likewise.
2838 * modules/tls-tests: Likewise.
2840 2007-02-24 Bruno Haible <bruno@clisp.org>
2842 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
2843 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
2844 function; instead check whether isnan with a double argument links.
2845 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
2846 function; instead check whether isnan with a 'long double' argument
2848 Reported by Eric Blake <ebb9@byu.net>.
2850 2007-02-24 Bruno Haible <bruno@clisp.org>
2852 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
2854 * lib/isnanl.c: Remove all code. Just include isnan.c.
2855 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
2857 2007-02-25 Jim Meyering <jim@meyering.net>
2859 Avoid conflicting types for 'unsetenv' on FreeBSD.
2860 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
2861 conflicting with FreeBSD's (5.0 and 6.1) function declaration
2864 2007-02-24 Bruno Haible <bruno@clisp.org>
2866 * modules/isnanl-nolibm-tests: New file.
2867 * tests/test-isnanl.c: New file.
2869 * modules/isnanl-nolibm: New file.
2870 * lib/isnanl.h: New file.
2871 * lib/isnanl.c: New file.
2872 * m4/isnanl.m4: New file.
2874 2007-02-24 Bruno Haible <bruno@clisp.org>
2876 * modules/isnan-nolibm-tests: New file.
2877 * tests/test-isnan.c: New file.
2879 * modules/isnan-nolibm: New file.
2880 * lib/isnan.h: New file.
2881 * lib/isnan.c: New file.
2882 * m4/isnan.m4: New file.
2884 2007-02-24 Bruno Haible <bruno@clisp.org>
2886 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
2887 assume that an exponent fits in 20 bits.
2889 2007-02-24 Jim Meyering <jim@meyering.net>
2891 * m4/regex.m4: Update the description of the configure-time option,
2892 --without-included-regex, to state accurately what the defaults are,
2893 and perhaps to give people an idea why using this option is risky.
2895 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
2897 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
2898 loops on small arguments. This attempts to avoid the problem
2899 Bruno Haible reported for AIX 4.3.2 in
2900 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
2902 2007-02-23 Bruno Haible <bruno@clisp.org>
2904 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
2905 Needed for help2man.
2907 2007-02-23 Karl Berry <karl@gnu.org>
2909 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
2910 exists, foo.h should be cvs-ignored, not committed.
2912 2007-02-23 Eric Blake <ebb9@byu.net>
2914 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
2915 * lib/stat-time.h (includes): Likewise.
2916 * lib/utimecmp.c (includes): Likewise.
2917 * lib/utimens.h (includes): Likewise.
2918 * lib/getdate.y (includes): Also include "timespec.h" for use
2919 internal to the module.
2920 * modules/utimens (Depends-on): Revert yesterday's patch.
2921 * modules/nanosleep (Depends-on): Add missing dependency.
2923 2007-02-22 Bruno Haible <bruno@clisp.org>
2925 * lib/glob.c: Don't include getlogin_r.h.
2927 2007-02-22 Jim Meyering <jim@meyering.net>
2929 * modules/utimens (Depends-on): Add timespec, required for
2930 utimens.h's inclusion of timespec.h.
2932 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
2934 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
2935 long unreadable paths in GNU/Linux. Problem reported by Andreas
2937 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
2938 I'll try to think of a better way to fix the Solaris problem.
2940 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
2941 like glibc; on Solaris 10, it fails with errno == EINVAL.
2942 POSIX says the behavior is unspecified if the first argument is NULL,
2943 so play it safe and never pass NULL to the system getcwd.
2945 2007-02-21 Jim Meyering <jim@meyering.net>
2947 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
2948 of gettimeofday. It would conflict with the one now always
2949 provided via sys_time_.h. Reported by Matthew Woehlke, as
2950 an IRIX 6.5 build failure.
2952 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
2954 Minor fixups to port to Solaris 10 with Sun C 5.8.
2955 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
2956 * modules/getcwd (Depends-on): Add dirfd.
2957 * lib/putenv.c (putenv): #undef it.
2958 (rpl_putenv): New decl.
2959 (malloc, free): Include <stdlib.h> rather than prototyping separately.
2961 2007-02-20 Bruno Haible <bruno@clisp.org>
2963 * modules/stdio-tests: New file.
2964 * tests/test-stdio.c: New file.
2966 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
2967 (Depends-on): Add stdio.
2968 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
2969 (Include): Use <stdio.h> instead of vsnprintf.h.
2970 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
2971 HAVE_DECL_VSNPRINTF.
2972 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
2974 * modules/snprintf (Files): Remove lib/snprintf.h.
2975 (Depends-on): Add stdio.
2976 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
2977 (Include): Use <stdio.h> instead of snprintf.h.
2978 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
2980 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
2981 * lib/getaddrinfo.c: Likewise.
2983 * modules/stdio: New file.
2984 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
2985 * lib/snprintf.h: Remove file.
2986 * lib/vsnprintf.h: Remove file.
2987 * lib/.cppi-disable: Remove snprintf.h.
2988 * m4/stdio_h.m4: New file.
2989 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
2991 2007-02-20 Jim Meyering <jim@meyering.net>
2993 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
2994 used by e.g., mingw. From Bruno Haible.
2996 2007-02-19 Bruno Haible <bruno@clisp.org>
2998 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
3000 Reported by Ben Pfaff <blp@cs.stanford.edu>.
3002 2007-02-19 Bruno Haible <bruno@clisp.org>
3004 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
3007 2007-02-19 Bruno Haible <bruno@clisp.org>
3009 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
3011 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
3013 2007-02-19 Jim Meyering <jim@meyering.net>
3015 Don't use FD after a successful "fdopendir (fd)".
3016 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
3017 Reset it by calling dirfd on the just-obtained DIR*.
3019 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
3020 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
3022 2007-02-18 Bruno Haible <bruno@clisp.org>
3024 * lib/readlink.c: Include <unistd.h>.
3025 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
3027 * modules/readlink (Depends-on): Add unistd.
3028 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3029 (Include): Add <unistd.h>.
3031 * lib/getlogin_r.h: Remove file.
3032 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
3033 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
3034 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
3035 HAVE_DECL_GETLOGIN_R.
3036 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
3037 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3038 (Include): Use <unistd.h> instead of getlogin_r.h.
3040 * lib/getcwd.h: Remove file.
3041 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
3042 * lib/xgetcwd.c: Likewise.
3043 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
3044 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
3045 * modules/getcwd (Files): Remove lib/getcwd.h.
3046 (Depends-on): Add unistd.
3047 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3048 (Include): Use <unistd.h> instad of getcwd.h.
3050 * lib/ftruncate.c: Include <unistd.h> first.
3051 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
3053 * modules/ftruncate (Depends-on): Add unistd.
3054 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3056 * lib/fchdir.c: Include <unistd.h> first.
3057 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
3058 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
3059 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
3060 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3061 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
3063 * lib/dup2.c: Include <unistd.h> first.
3064 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
3066 * modules/dup2 (Depends-on): Add unistd.
3067 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3069 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
3070 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
3071 REPLACE_CHOWN. Don't define chown as a macro here.
3072 * modules/chown (Depends-on): Add unistd.
3073 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3075 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
3076 Add definition for GL_LINK_WARNING.
3077 (chown, dup2): New declarations.
3078 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
3080 (ftruncate): New declaration.
3081 (getcwd): New declaration, taken from old getcwd.h.
3082 (getlogin_r): New declaration, taken from old getlogin_r.h.
3083 (readlink): New declaration.
3084 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
3085 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
3086 (gl_PREREQ_UNISTD): Remove macro.
3087 (gl_UNISTD_MODULE_INDICATOR): New macro.
3088 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
3089 many new variables. Don't set UNISTD_H.
3090 * modules/unistd (Description): Change.
3091 (Depends-on): Add link-warning.
3092 (configure.ac): Update.
3093 (Makefile.am): Create unistd.h always. Substitute many new variables
3096 2007-02-18 Bruno Haible <bruno@clisp.org>
3098 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
3099 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
3101 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
3102 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
3103 * lib/getsubopt.h: Remove file.
3104 * modules/getsubopt (Files): Remove lib/getsubopt.h.
3105 (Depends-on): Add stdlib.
3106 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3107 (Includes): Use <stdlib.h> instead of getsubopt.h.
3108 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
3110 * lib/getsubopt.c: Don't include getsubopt.h.
3112 2007-02-18 Bruno Haible <bruno@clisp.org>
3114 * modules/fchdir (Depends-on): Add dup2.
3116 2007-02-18 Bruno Haible <bruno@clisp.org>
3118 * lib/stdlib_.h: Handle glibc's special invocation convention
3121 2007-02-18 Bruno Haible <bruno@clisp.org>
3123 * modules/stdlib-tests: New file.
3124 * tests/test-stdlib.c: New file.
3126 * modules/mkstemp (Files): Remove lib/mkstemp.h.
3127 (Depends-on): Add stdlib.
3128 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3129 (Includes): Use <stdlib.h> instead of mkstemp.h.
3130 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
3131 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
3132 * lib/mkstemp.c: Don't include mkstemp.h.
3133 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
3134 * lib/stdlib--.h: Don't include mkstemp.h.
3136 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
3137 (Depends-on): Add stdlib.
3138 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3139 (Includes): Use <stdlib.h> instead of mkdtemp.h.
3140 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
3142 * lib/mkdtemp.c: Don't include mkdtemp.h.
3143 * lib/clean-temp.c: Don't include mkdtemp.h.
3145 * modules/exit (Files): Remove lib/exit.h.
3146 (Depends-on): Add stdlib.
3147 (Makefile.am): Remove lib_SOURCES.
3148 (Include): Use <stdlib.h> instead of exit.h.
3149 * lib/argmatch.c: Don't include exit.h.
3150 * lib/execute.c: Likewise.
3151 * lib/pagealign_alloc.c: Likewise.
3152 * lib/pipe.c: Likewise.
3153 * lib/wait-process.c: Likewise.
3154 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
3155 * lib/exitfail.c: Likewise.
3156 * lib/savewd.c: Likewise.
3157 * lib/xsetenv.c: Likewise.
3159 * modules/stdlib: New file.
3160 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
3161 and extra comments about mkstemp().
3162 * lib/exit.h: Remove file.
3163 * lib/mkdtemp.h: Remove file.
3164 * lib/mkstemp.h: Remove file.
3165 * m4/stdlib_h.m4: New file.
3166 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
3168 2007-02-18 Bruno Haible <bruno@clisp.org>
3170 * modules/math-tests: New file.
3171 * tests/test-math.c: New file.
3173 * modules/math: New file.
3174 * modules/mathl (Files): Remove lib/mathl.h.
3175 (Depends-on): Add math.
3176 (Makefile.am): Don't mention mathl.h.
3177 (Include): Use <math.h> instead of mathl.h.
3178 * lib/math_.h: New file.
3179 * lib/mathl.h: Remove file.
3180 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
3182 * lib/asinl.c: Likewise.
3183 * lib/atanl.c: Likewise.
3184 * lib/ceill.c: Likewise.
3185 * lib/cosl.c: Likewise.
3186 * lib/expl.c: Likewise.
3187 * lib/floorl.c: Likewise.
3188 * lib/frexpl.c: Likewise.
3189 * lib/ldexpl.c: Likewise.
3190 * lib/logl.c: Likewise.
3191 * lib/sincosl.c: Likewise.
3192 * lib/sinl.c: Likewise.
3193 * lib/sqrtl.c: Likewise.
3194 * lib/tanl.c: Likewise.
3195 * lib/trigl.c: Likewise.
3196 * m4/math_h.m4: New file.
3197 * MODULES.html.sh (Mathematics): Add math.
3199 2007-02-17 Bruno Haible <bruno@clisp.org>
3201 * modules/wctype-tests: New file.
3202 * tests/test-wctype.c: New file.
3204 * modules/wchar-tests: New file.
3205 * tests/test-wchar.c: New file.
3207 * modules/unistd-tests: New file.
3208 * tests/test-unistd.c: New file.
3210 * modules/time-tests: New file.
3211 * tests/test-time.c: New file.
3213 * modules/sysexits-tests: New file.
3214 * tests/test-sysexits.c: New file.
3216 * modules/sys_time-tests: New file.
3217 * tests/test-sys_time.c: New file.
3219 * modules/sys_stat-tests: New file.
3220 * tests/test-sys_stat.c: New file.
3222 * modules/sys_socket-tests: New file.
3223 * tests/test-sys_socket.c: New file.
3225 * modules/sys_select-tests: New file.
3226 * tests/test-sys_select.c: New file.
3228 * modules/string-tests: New file.
3229 * tests/test-string.c: New file.
3231 * modules/stdbool-tests: New file.
3232 * tests/test-stdbool.c: New file.
3234 * modules/netinet_in-tests: New file.
3235 * tests/test-netinet_in.c: New file.
3237 * modules/inttypes-tests: New file.
3238 * tests/test-inttypes.c: New file.
3240 * modules/fcntl-tests: New file.
3241 * tests/test-fcntl.c: New file.
3243 * modules/byteswap-tests: New file.
3244 * tests/test-byteswap.c: New file.
3246 * modules/arpa_inet-tests: New file.
3247 * tests/test-arpa_inet.c: New file.
3249 2007-02-17 Bruno Haible <bruno@clisp.org>
3251 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
3252 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
3253 if the corresponding module is not enabled. Emit link warnings if
3254 the function is used nevertheless.
3255 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
3256 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
3257 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
3258 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
3259 * modules/inttypes (Depends-on): Add link-warning.
3260 (Makefile.am): Copy the contents of build-aux/link-warning.h into
3261 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
3262 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
3263 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
3264 * modules/imaxdiv (configure.ac): Likewise.
3265 * modules/strtoimax (configure.ac): Likewise.
3266 * modules/strtoumax (configure.ac): Likewise.
3268 2007-02-17 Bruno Haible <bruno@clisp.org>
3270 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
3271 gl_STRING_MODULE_INDICATOR_DEFAULTS.
3272 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
3273 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
3275 2007-02-17 Bruno Haible <bruno@clisp.org>
3277 * modules/link-warning: New file.
3278 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
3279 * lib/string_.h (GL_LINK_WARNING): Remove definition.
3280 * modules/string (Depends-on): Add link-warning.
3281 (Makefile.am): Copy the contents of build-aux/link-warning.h into
3283 * MODULES.html.sh (Support for building libraries and executables): Add
3286 2007-02-17 Bruno Haible <bruno@clisp.org>
3288 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
3289 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
3290 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
3293 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
3294 Bruno Haible <bruno@clisp.org>
3296 * modules/tmpfile: New file.
3297 * lib/tmpfile.c: New file.
3298 * m4/tmpfile.m4: New file.
3299 * MODULES.html.sh (func_all_modules): New section "Input/output".
3301 2007-02-15 Bruno Haible <bruno@clisp.org>
3303 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
3304 (supports_delete_on_close): New function.
3305 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
3307 2007-02-14 Bruno Haible <bruno@clisp.org>
3309 * modules/mbspcasecmp-tests: New file.
3310 * tests/test-mbspcasecmp.sh: New file.
3311 * tests/test-mbspcasecmp.c: New file.
3313 New module mbspcasecmp.
3314 * modules/mbspcasecmp: New file.
3315 * lib/mbspcasecmp.c: New file.
3316 * lib/string_.h (strncasecmp): Change warning message.
3317 (mbspcasecmp): New declaration.
3318 * m4/mbspcasecmp.m4: New file.
3319 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3321 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
3322 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
3324 2007-02-14 Bruno Haible <bruno@clisp.org>
3326 * modules/mbsncasecmp-tests: New file.
3327 * tests/test-mbsncasecmp.sh: New file.
3328 * tests/test-mbsncasecmp.c: New file.
3330 New module mbsncasecmp.
3331 * modules/mbsncasecmp: New file.
3332 * lib/mbsncasecmp.c: New file.
3333 * lib/string_.h (mbsncasecmp): New declaration.
3334 * m4/mbsncasecmp.m4: New file.
3335 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3337 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
3338 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
3340 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
3342 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
3343 Verify that it doesn't overlap with our flags.
3344 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
3345 do not have the desired effect in multibyte locales; instead, use
3347 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
3348 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
3349 we don't require GNU fnmatch ourselves (if our users require it, they
3350 should do so explicitly).
3352 Fix regex code so it doesn't rely on strcasecmp.
3353 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
3354 Otherwise, include gnulib's langinfo.h.
3355 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
3356 undesirable behavior in non-C locales. Instead, rely on localecharset.
3357 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
3358 * modules/regex (FILES): Remove m4/codeset.m4.
3359 (Depends-on): Add localcharset. Remove strcase.
3361 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3363 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
3364 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3366 2007-02-13 Bruno Haible <bruno@clisp.org>
3368 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
3369 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3371 2007-02-12 Bruno Haible <bruno@clisp.org>
3373 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
3374 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
3375 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
3376 time warning rather than a link error.
3378 2007-02-12 Bruno Haible <bruno@clisp.org>
3380 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
3381 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3382 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3384 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
3386 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
3389 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
3391 New module 'time', so that apps can include <time.h> as per
3392 POSIX and GNU instead of separate include files like time_r.h
3393 and timegm.h. This implementation tries out a simpler approach
3394 for replacing decls in standard include files (as compared to
3395 the string module), somewhat as an experiment.
3397 * config/srclist.txt: Comment out mktime.c for now.
3398 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
3399 since it doesn't apply any more. Use generic wording instead.
3400 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
3402 * lib/time_.h, m4/time_h.m4, modules/time: New files.
3403 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
3404 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
3405 Don't include <sys/types.h>; no longer needed since we assume C89.
3406 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
3407 * lib/strftime.c: Likewise.
3408 * lib/time_r.c: Likewise.
3409 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
3410 * lib/nanosleep.c: Include <time.h> first, to check interface.
3411 * lib/strptime.c: Likewise.
3412 * lib/time_r.c: Likewise.
3413 * lib/timegm.c: Likewise.
3414 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
3416 * lib/timegm.c: Don't include timegm.h; no longer needed.
3417 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
3418 time.h now handles any problems in that area.
3419 (struct timespec, nanosleep): Remove; time.h now arranges for these.
3420 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
3421 that time.h defines struct timespec.
3422 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
3423 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
3425 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
3426 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
3427 needed. Set REPLACE_LOCALTIME.
3428 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
3429 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
3430 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
3431 nanosleep; time_h.m4 now does that. Don't require
3432 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
3433 module handles this now.
3434 * modules/getdate (Depends-on): Remove timespec. Add time.
3435 * modules/nanosleep (Depends-on): Likewise.
3436 * modules/stat-time (Depends-on): Likewise.
3437 * modules/nanosleep (Include): Include time.h, not timespec.h.
3438 * modules/strptime (Files): Remove lib/strptime.h.
3439 (Depends-on): Add extensions, time.
3440 (Include): Include time.h, not strptime.h.
3441 * modules/time_r (Files): Remove lib/time_r.h.
3442 (Depends-on): Add time.
3443 (Include): Include time.h, not time_r.h.
3444 * modules/timegm: Likewise.
3445 * modules/timespec (Description): Now does timespec-related decls
3446 of our own, instead of struct timespec itself.
3447 (Depends-on): Add time; remove extensions.
3448 (Maintainer): Add self.
3449 * modules/utimecmp (Depends-on): Add time; remove timespec.
3450 * modules/utimens (Depends-on): Likewise.
3451 * modules/xnanosleep (Depends-on): Likewise.
3453 2007-02-11 Bruno Haible <bruno@clisp.org>
3455 * lib/c-strstr.c: Include allocsa.h.
3456 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3457 * lib/c-strcasestr.c: Include allocsa.h.
3458 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3459 * lib/strcasestr.c: Include allocsa.h.
3460 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3461 * lib/mbsstr.c: Include allocsa.h.
3462 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
3463 allocsa/freesa instead of malloc/free.
3464 * lib/mbscasestr.c: Include allocsa.h.
3465 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
3466 allocsa/freesa instead of malloc/free.
3467 * modules/c-strstr (Depends-on): Add allocsa.
3468 * modules/c-strcasestr (Depends-on): Likewise.
3469 * modules/strcasestr (Depends-on): Likewise.
3470 * modules/mbsstr (Depends-on): Likewise.
3471 * modules/mbscasestr (Depends-on): Likewise.
3473 2007-02-11 Bruno Haible <bruno@clisp.org>
3475 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
3477 * modules/mbsspn-tests: New file.
3478 * tests/test-mbsspn.sh: New file.
3479 * tests/test-mbsspn.c: New file.
3481 2007-02-11 Bruno Haible <bruno@clisp.org>
3483 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
3485 * modules/mbspbrk-tests: New file.
3486 * tests/test-mbspbrk.sh: New file.
3487 * tests/test-mbspbrk.c: New file.
3489 2007-02-11 Bruno Haible <bruno@clisp.org>
3491 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
3494 * modules/mbscspn-tests: New file.
3495 * tests/test-mbscspn.sh: New file.
3496 * tests/test-mbscspn.c: New file.
3498 2007-02-11 Bruno Haible <bruno@clisp.org>
3500 * modules/mbscasecmp-tests: New file.
3501 * tests/test-mbscasecmp.sh: New file.
3502 * tests/test-mbscasecmp.c: New file.
3504 2007-02-11 Bruno Haible <bruno@clisp.org>
3506 Ensure O(n) worst-case complexity of mbscasestr.
3507 * lib/mbscasestr.c: Include stdbool.h.
3508 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
3510 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
3511 the bookkeeping indicates that it's worth it.
3512 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
3514 * modules/mbscasestr-tests: New file.
3515 * tests/test-mbscasestr1.c: New file.
3516 * tests/test-mbscasestr2.sh: New file.
3517 * tests/test-mbscasestr2.c: New file.
3518 * tests/test-mbscasestr3.sh: New file.
3519 * tests/test-mbscasestr3.c: New file.
3520 * tests/test-mbscasestr4.sh: New file.
3521 * tests/test-mbscasestr4.c: New file.
3522 * m4/locale-tr.m4: New file.
3524 2007-02-11 Bruno Haible <bruno@clisp.org>
3526 Ensure O(n) worst-case complexity of mbsstr.
3527 * lib/mbsstr.c: Include stdbool.h.
3528 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
3530 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
3531 bookkeeping indicates that it's worth it.
3532 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
3534 * modules/mbsstr-tests: New file.
3535 * tests/test-mbsstr1.c: New file.
3536 * tests/test-mbsstr2.sh: New file.
3537 * tests/test-mbsstr2.c: New file.
3538 * tests/test-mbsstr3.sh: New file.
3539 * tests/test-mbsstr3.c: New file.
3540 * m4/locale-fr.m4: New file.
3542 2007-02-11 Bruno Haible <bruno@clisp.org>
3544 * lib/mbsrchr.c (mbsrchr): Fix bug.
3546 * modules/mbsrchr-tests: New file.
3547 * tests/test-mbsrchr.sh: New file.
3548 * tests/test-mbsrchr.c: New file.
3550 2007-02-11 Bruno Haible <bruno@clisp.org>
3552 * lib/mbschr.c (mbschr): Fix bug.
3554 * modules/mbschr-tests: New file.
3555 * tests/test-mbschr.sh: New file.
3556 * tests/test-mbschr.c: New file.
3557 * m4/locale-zh.m4: New file.
3559 2007-02-11 Bruno Haible <bruno@clisp.org>
3561 Support for copying multibyte string iterators.
3562 * lib/mbiter.h: Include <string.h>.
3563 (mbiter_multi_copy): New function.
3564 (mbi_copy): New macro.
3565 * lib/mbuiter.h: Include <string.h>.
3566 (mbuiter_multi_copy): New function.
3567 (mbui_copy): New macro.
3569 2007-02-11 Bruno Haible <bruno@clisp.org>
3572 * modules/mbslen: New file.
3573 * lib/mbslen.c: New file.
3574 * lib/string_.h (mbslen): New declaration.
3575 * m4/mbslen.m4: New file.
3576 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3578 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
3579 * MODULES.html.sh (Internationalization functions): Add mbslen.
3581 2007-02-11 Bruno Haible <bruno@clisp.org>
3583 Ensure O(n) worst-case complexity of strcasestr substitute.
3584 * lib/strcasestr.c: Include stdbool.h.
3585 (knuth_morris_pratt): New function.
3586 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
3587 bookkeeping indicates that it's worth it.
3588 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
3590 * modules/strcasestr-tests: New file.
3591 * tests/test-strcasestr.c: New file.
3593 2007-02-11 Bruno Haible <bruno@clisp.org>
3595 Ensure O(n) worst-case complexity of c_strcasestr.
3596 * lib/c-strcasestr.c: Include stdbool.h, string.h.
3597 (knuth_morris_pratt): New function.
3598 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
3599 the bookkeeping indicates that it's worth it.
3600 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
3602 * modules/c-strcasestr-tests: New file.
3603 * tests/test-c-strcasestr.c: New file.
3605 2007-02-11 Bruno Haible <bruno@clisp.org>
3607 Ensure O(n) worst-case complexity of c_strstr.
3608 * lib/c-strstr.c: Include stdbool.h, string.h.
3609 (knuth_morris_pratt): New function.
3610 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
3611 bookkeeping indicates that it's worth it.
3612 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
3614 * lib/c-strstr.c: Complete rewrite for maintainability.
3616 * modules/c-strstr-tests: New file.
3617 * tests/test-c-strstr.c: New file.
3619 2007-02-11 Bruno Haible <bruno@clisp.org>
3621 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
3622 5.2.1 and earlier, whereby \055 was treated just like the range
3624 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3626 2007-02-08 Bruno Haible <bruno@clisp.org>
3628 * modules/regex (Depends-on): Add stdbool.
3629 Reported by Dalibor Topic <robilad@kaffe.org>.
3631 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
3633 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
3634 Prefer returning from main to exiting from it.
3635 Remove unnecessary parens after sizeof.
3637 2007-02-05 Bruno Haible <bruno@clisp.org>
3640 * modules/mbssep: New file.
3641 * lib/mbssep.c: New file.
3642 * lib/string_.h (strsep): Add a conditional link warning.
3643 (mbssep): New declaration.
3644 * m4/mbssep.m4: New file.
3645 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3647 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
3648 * MODULES.html.sh (Internationalization functions): Add mbssep.
3650 2007-02-05 Bruno Haible <bruno@clisp.org>
3652 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
3653 Optimize search in case of 1 delimiter.
3655 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
3657 * lib/acl.h: Include sys/types.h before sys/acl.h.
3659 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
3661 Merge upstream fix for glibc bugzilla #3957:
3663 2007-02-05 Jakub Jelinek <jakub@redhat.com>
3665 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
3666 bit for RE_HAT_LISTS_NOT_NEWLINE.
3667 (build_charclass_op): Remove bogus comment.
3669 2007-02-05 Simon Josefsson <simon@josefsson.org>
3671 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
3673 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
3675 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
3676 * lib/memmem.c [!defined _LIBC]: Include config.h.
3678 2007-02-04 Bruno Haible <bruno@clisp.org>
3680 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
3683 2007-02-04 Bruno Haible <bruno@clisp.org>
3685 New module mbstok_r.
3686 * modules/mbstok_r: New file.
3687 * lib/mbstok_r.c: New file.
3688 * lib/string_.h (strtok_r): Change argument names to match the
3689 comments. Add a conditional link warning.
3690 (mbstok_r): New declaration.
3691 * m4/mbstok_r.m4: New file.
3692 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3694 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
3695 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
3697 2007-02-04 Bruno Haible <bruno@clisp.org>
3700 * modules/mbsspn: New file.
3701 * lib/mbsspn.c: New file.
3702 * lib/string_.h (strspn): Add a conditional link warning.
3703 (mbsspn): New declaration.
3704 * m4/mbsspn.m4: New file.
3705 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3707 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
3708 * MODULES.html.sh (Internationalization functions): Add mbsspn.
3710 2007-02-04 Bruno Haible <bruno@clisp.org>
3713 * modules/mbspbrk: New file.
3714 * lib/mbspbrk.c: New file.
3715 * lib/string_.h (strpbrk): Add a conditional link warning.
3716 (mbspbrk): New declaration.
3717 * m4/mbspbrk.m4: New file.
3718 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3720 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
3721 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
3723 2007-02-04 Bruno Haible <bruno@clisp.org>
3726 * modules/mbscspn: New file.
3727 * lib/mbscspn.c: New file.
3728 * lib/string_.h (strcspn): Add a conditional link warning.
3729 (mbscspn): New declaration.
3730 * m4/mbscspn.m4: New file.
3731 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3733 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
3734 * MODULES.html.sh (Internationalization functions): Add mbscspn.
3736 2007-02-04 Bruno Haible <bruno@clisp.org>
3738 New module mbscasestr, reduced goal of strcasestr.
3739 * modules/mbscasestr: New file.
3740 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
3741 (mbscasestr): Renamed from strcasestr.
3742 * lib/strcasestr.c: Don't include mbuiter.h.
3743 (strcasestr): Remove support for multibyte locales.
3744 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
3745 Change the conditional link warning.
3746 (mbscasestr): New declaration.
3747 * m4/mbscasestr.m4: New file.
3748 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
3749 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
3751 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
3752 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3753 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
3754 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
3755 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
3756 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
3757 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
3758 (Depends-on): Remove mbuiter.
3759 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
3761 2007-02-04 Bruno Haible <bruno@clisp.org>
3763 Simplify handling of strncasecmp.
3764 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
3765 the conditional link warning.
3766 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3767 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
3768 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
3769 * modules/strcase (configure.ac): Don't invoke
3770 gl_STRING_MODULE_INDICATOR.
3771 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
3773 2007-02-04 Bruno Haible <bruno@clisp.org>
3775 New module mbscasecmp, reduced goal of strcasecmp.
3776 * modules/mbscasecmp: New file.
3777 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
3778 (mbscasecmp): Renamed from strcasecmp.
3779 * lib/strcasecmp.c: Don't include mbuiter.h.
3780 (strcasecmp): Remove support for multibyte locales.
3781 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
3782 Change the conditional link warning.
3783 (mbscasecmp): New declaration.
3784 * m4/mbscasecmp.m4: New file.
3785 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
3786 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
3788 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
3789 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3791 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
3792 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
3793 * modules/strcase (Files): Remove m4/mbrtowc.m4.
3794 (Depends-on): Remove mbuiter.
3795 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
3797 2007-02-04 Bruno Haible <bruno@clisp.org>
3799 New module mbsstr. Remove module strstr.
3800 * modules/mbsstr: New file.
3801 * modules/strstr: Remove file.
3802 * lib/mbsstr.c: Renamed from lib/strstr.c.
3803 (mbsstr): Renamed from strstr.
3804 * lib/string_.h (strstr): Remove declaration. Change the conditional
3806 (mbsstr): New declaration.
3807 * m4/mbsstr.m4: New file.
3808 * m4/strstr.m4: Remove file.
3809 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3811 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
3812 Don't initialize GNULIB_STRSTR.
3813 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
3814 substitute GNULIB_STRSTR and REPLACE_STRSTR.
3815 * MODULES.html.sh (Internationalization functions): Add mbsstr.
3816 (Support for systems lacking ANSI C 89): Remove strstr.
3818 2007-02-04 Bruno Haible <bruno@clisp.org>
3821 * modules/mbsrchr: New file.
3822 * lib/mbsrchr.c: New file.
3823 * lib/string_.h (strrchr): Add a conditional link warning.
3824 (mbsrchr): New declaration.
3825 * m4/mbsrchr.m4: New file.
3826 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3828 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
3829 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
3831 2007-02-04 Bruno Haible <bruno@clisp.org>
3834 * modules/mbschr: New file.
3835 * lib/mbschr.c: New file.
3836 * lib/string_.h (strchr): Add a conditional link warning.
3837 (mbschr): New declaration.
3838 * m4/mbschr.m4: New file.
3839 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3841 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
3842 * MODULES.html.sh (Internationalization functions): Add mbschr.
3844 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
3846 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
3848 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
3850 2007-02-04 Bruno Haible <bruno@clisp.org>
3852 New module description section 'configure.ac-early'.
3853 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
3854 (func_get_autoconf_early_snippet): New function.
3855 (func_import, func_create_testdir): Use it. Remove special cases for
3856 modules 'extensions' and 'lock'.
3857 * modules/extensions (configure.ac-early): Require
3858 gl_USE_SYSTEM_EXTENSIONS.
3859 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
3861 2007-02-04 Bruno Haible <bruno@clisp.org>
3863 Make use of gcj-4.3's -fsource and -ftarget option.
3864 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
3865 and if so try the options -fsource and -ftarget.
3866 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
3867 source_version, ftarget_option, target_version arguments.
3868 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
3869 (is_envjavac_oldgcj_14_14_usable): Renamed from
3870 is_envjavac_gcj_14_14_usable.
3871 (is_envjavac_oldgcj_14_13_usable): Renamed from
3872 is_envjavac_gcj_14_13_usable.
3873 (is_gcj_present): Update.
3874 (is_gcj_43, is_gcj43_usable): New functions.
3875 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
3876 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
3877 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
3878 try the options -fsource and -ftarget.
3880 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
3882 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
3883 checking code. Set N = ceil (1.5 * N) rather than to a slightly
3886 2007-02-03 Jim Meyering <jim@meyering.net>
3888 Give tools a better chance to allocate space for very large buffers.
3889 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
3891 Make pwd and readlink work also when run with an unreadable parent dir
3892 on systems with openat support.
3893 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
3894 provided getcwd function, even when we have openat support.
3895 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
3897 2007-02-02 Bruno Haible <bruno@clisp.org>
3899 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
3900 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
3901 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
3902 portability problems if one of these functions is only used on specific
3904 Reported by Paul Eggert.
3906 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
3908 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
3909 is causing more trouble than it's curing.
3910 * lib/regex_internal.h (__mempcpy): Remove.
3911 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
3912 (and make the code a tad smaller to boot).
3913 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
3915 2007-02-02 Jim Meyering <jim@meyering.net>
3917 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
3918 section, not in the Makefile.am: one.
3920 2007-02-02 Eric Blake <ebb9@byu.net>
3922 * lib/strchrnul.c: Always include config.h first.
3924 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
3925 gnulib strstr is not necessary here.
3927 2007-02-02 Simon Josefsson <simon@josefsson.org>
3929 * m4/socklen.m4: Fix typo.
3931 2007-02-02 Eric Blake <ebb9@byu.net>
3933 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
3934 * modules/netinet_in (Makefile.am): Likewise.
3936 2007-02-01 Bruno Haible <bruno@clisp.org>
3938 * lib/string_.h (GL_LINK_WARNING): New macro.
3939 (strcasecmp, strstr, strcasestr): If provided by the system,
3940 conditionally define as a macro that leads to a warning instead of to
3942 (strncasecmp): Conditionally define as a macro that leads to a warning.
3944 2007-02-01 Karl Berry <karl@gnu.org>
3946 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
3948 2007-02-01 Bruno Haible <bruno@clisp.org>
3950 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
3953 2007-02-01 Eric Blake <ebb9@byu.net>
3955 * modules/regex (Depends-on): Revert dependence on mempcpy.
3956 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
3957 module's definition of mempcpy.
3958 Reported by Paul Eggert.
3960 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
3962 * lib/string_.h: If the gnulib module XYZ is not present, undefine
3963 the symbol XYZ before redefining it. This fixes a problem with
3964 programs that don't use XYZ, when compiled on systems that define
3965 XYZ to something else.
3967 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
3969 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
3970 occurs when "mkdir -m foo" creates a setgid directory that is (1)
3971 writeable to group or other and (2) is intended to have a special
3972 mode bit that is set or cleared. In such a case, the directory
3973 should be neither group- nor other-writeable until the special
3974 mode bits are right.
3976 2007-01-31 Eric Blake <ebb9@byu.net>
3978 * modules/mountlist (Depends-on): Add strstr.
3980 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
3982 * modules/string (Makefile.am): Remove redundant replacement.
3983 * modules/regex (Depends-on): Add mempcpy.
3985 2007-01-31 Bruno Haible <bruno@clisp.org>
3987 New module description field 'Link'.
3988 * gnulib-tool (func_usage): Document --extract-link-directive.
3989 (sed_extract_prog): Recognize 'Link' directive.
3990 (func_get_link_directive): New function.
3991 (func_import): Show summary of link directives.
3992 Handle --extract-link-directive option.
3993 * modules/acl (Link): New section.
3994 * modules/clock-time (Link): New section.
3995 * modules/euidaccess (Link): New section.
3996 * modules/gettext (Link): New section.
3997 * modules/iconv (Link): New section.
3998 * modules/lock (Link): New section.
3999 * modules/nanosleep (Link): New section.
4000 * modules/readline (Link): New section.
4002 2007-01-27 Bruno Haible <bruno@clisp.org>
4004 Enforce the use of gnulib modules for unportable <string.h> functions.
4005 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
4006 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
4007 (gl_HEADER_STRING_H_BODY): Require it.
4008 * lib/string_.h: If the gnulib module XYZ is not present, redefine
4009 the symbol XYZ to one that gives a link error.
4010 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
4011 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
4012 * modules/mempcpy (configure.ac): Likewise.
4013 * modules/memrchr (configure.ac): Likewise.
4014 * modules/stpcpy (configure.ac): Likewise.
4015 * modules/stpncpy (configure.ac): Likewise.
4016 * modules/strcase (configure.ac): Likewise.
4017 * modules/strcasestr (configure.ac): Likewise.
4018 * modules/strchrnul (configure.ac): Likewise.
4019 * modules/strdup (configure.ac): Likewise.
4020 * modules/strndup (configure.ac): Likewise.
4021 * modules/strnlen (configure.ac): Likewise.
4022 * modules/strpbrk (configure.ac): Likewise.
4023 * modules/strsep (configure.ac): Likewise.
4024 * modules/strstr (configure.ac): Likewise.
4025 * modules/strtok_r (configure.ac): Likewise.
4027 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
4029 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
4031 2007-01-30 Jim Meyering <jim@meyering.net>
4033 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
4035 2007-01-29 Bruno Haible <bruno@clisp.org>
4037 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
4038 * lib/execute.c: Likewise.
4039 * lib/pipe.c: Likewise.
4040 * lib/printf-args.h: Likewise.
4041 * lib/printf-args.c: Likewise.
4042 * lib/printf-parse.c: Likewise.
4043 * lib/vasnprintf.c: Likewise.
4045 2007-01-29 Eric Blake <ebb9@byu.net>
4047 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
4050 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
4052 * lib/strptime.h (strptime): Use 'restrict' for args where
4053 POSIX requires this.
4054 * lib/strptime.c (strptime): Likewise.
4055 Change license notice from LGPL to GPL, since gnulib-tool will
4056 change this as needed.
4057 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
4059 Include "strptime.h" first, to check interface.
4060 Do not #undef _LIBC and _NL_CURRENT.
4061 Do not include <stdlib.h>; no longer needed.
4062 Include "time_r.h" and declare ptime_locale_status
4063 only if _LIBC is not defined.
4064 (__P): Remove unused macro.
4065 (match_string): Bring back glibc version, but use it only if _LIBC
4067 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
4068 Remove unnecessary assertion and abort() call.
4069 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
4070 * m4/strptime.m4: Fix serial number comment.
4071 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
4072 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
4073 (Depends-on): Add time_r.
4075 2007-01-29 Bruno Haible <bruno@clisp.org>
4077 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4079 * modules/strptime (Depends-on): Add stdbool.
4080 * lib/strptime.h: Include <time.h> always. Add comments.
4082 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
4084 * modules/strptime: New file.
4085 * lib/strptime.h: New file.
4086 * lib/strptime.c: New file.
4087 * m4/strptime.m4: New file.
4089 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
4091 * MODULES.html.sh: New module mpsort.
4092 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
4094 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
4095 a circularity problem with HP-UX ia64 reported by Bob Proulx in
4096 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
4098 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
4100 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
4102 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
4103 the parameter matches the prototype.
4105 2007-01-28 Jim Meyering <jim@meyering.net>
4107 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
4108 sys/time.h here, reverting that part of the previous patch:
4109 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
4111 2007-01-28 Bruno Haible <bruno@clisp.org>
4113 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
4114 value of $(SYS_TIME_H).
4115 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
4116 remove it conditionally, too. [added by Jim Meyering]
4117 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
4118 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
4119 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
4120 GETTIMEOFDAY_REPLACEMENT to 1.
4122 2007-01-28 Bruno Haible <bruno@clisp.org>
4124 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
4125 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
4126 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
4127 Set UNISTD_H instead of UNISTD_H2.
4128 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
4130 2007-01-28 Bruno Haible <bruno@clisp.org>
4132 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
4133 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
4135 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4137 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
4138 (func_create_testdir): Ensure C locale for `grep' and `tr'
4140 (func_create_megatestdir): Avoid one `grep'. Fix bug in
4141 ACLOCAL_AMFLAGS parsing state machine.
4143 2007-01-27 Bruno Haible <bruno@clisp.org>
4145 * modules/unistr/base: Update.
4147 2007-01-27 Bruno Haible <bruno@clisp.org>
4149 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
4150 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
4151 * modules/unistr/u32-mbtouc-unsafe: Renamed from
4152 modules/unistr/u32-mbtouc.
4153 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
4154 * lib/unistr.h: Update.
4155 * lib/linebreak.c: Update.
4156 * modules/unistr/u32-mbtouc: Renamed from
4157 modules/unistr/u32-mbtouc-safe.
4158 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
4159 * lib/unistr.h: Update.
4160 * lib/unistr/u32-to-u8.c: Update.
4161 * lib/unistr/u32-to-u16.c: Update.
4163 2007-01-27 Bruno Haible <bruno@clisp.org>
4165 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
4166 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
4167 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
4168 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
4169 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
4170 * modules/unistr/u16-mbtouc-unsafe: Renamed from
4171 modules/unistr/u16-mbtouc.
4172 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
4173 * lib/unistr.h: Update.
4174 * lib/linebreak.c: Update.
4175 * modules/linebreak: Update.
4176 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
4177 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
4178 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
4179 * modules/unistr/u16-mbtouc: Renamed from
4180 modules/unistr/u16-mbtouc-safe.
4181 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
4182 * lib/unistr.h: Update.
4183 * lib/unistr/u16-to-u8.c: Update.
4184 * modules/unistr/u16-to-u8: Update.
4185 * lib/unistr/u16-to-u32.c: Update.
4186 * modules/unistr/u16-to-u32: Update.
4188 2007-01-27 Bruno Haible <bruno@clisp.org>
4190 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
4191 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
4192 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
4193 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
4194 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
4195 * modules/unistr/u8-mbtouc-unsafe: Renamed from
4196 modules/unistr/u8-mbtouc.
4197 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
4198 * lib/unistr.h: Update.
4199 * lib/striconveh.c: Update.
4200 * modules/striconveh: Update.
4201 * lib/linebreak.c: Update.
4202 * modules/linebreak: Update.
4203 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
4204 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
4205 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
4206 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
4207 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
4208 * lib/unistr.h: Update.
4209 * lib/striconveh.c: Update.
4210 * modules/striconveh: Update.
4211 * lib/unistr/u8-to-u16.c: Update.
4212 * modules/unistr/u8-to-u16: Update.
4213 * lib/unistr/u8-to-u32.c: Update.
4214 * modules/unistr/u8-to-u32: Update.
4216 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4219 * lib/argz.c: Do not include strings.h nor memory.h, include
4220 string.h unconditionally. Patch by Simon Josefsson.
4222 2007-01-27 Bruno Haible <bruno@clisp.org>
4224 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
4225 from gl_HEADER_STRING_H_BODY.
4226 (gl_HEADER_STRING_H_BODY): Require it.
4227 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
4228 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
4229 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
4230 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
4231 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4232 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
4233 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4234 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
4235 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
4236 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4237 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
4238 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
4239 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
4240 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4241 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4243 2007-01-27 Bruno Haible <bruno@clisp.org>
4245 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
4246 check_PROGRAMS into noinst_PROGRAMS.
4247 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
4248 check_PROGRAMS in this case.
4249 (func_import): Set for_test to false.
4250 (func_create_testdir): Set for_test to true.
4252 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4253 Bruno Haible <bruno@clisp.org>
4255 * modules/strcasestr (Files): Remove lib/strcasestr.h.
4256 (Depends-on): Add string.
4257 (Includes): Use <string.h> instead of strcasestr.h.
4258 * modules/string (Makefile.am): Also substitute the value of
4260 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
4261 assume strcasestr is declared in <string.h> not <strings.h>. Also
4262 set REPLACE_STRCASESTR.
4263 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
4265 * lib/strcasestr.h: Remove file.
4266 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
4267 * lib/string_.h (strcasestr): New declaration.
4269 2007-01-27 Bruno Haible <bruno@clisp.org>
4271 * lib/string_.h: Use 'extern'.
4273 2007-01-27 Jim Meyering <jim@meyering.net>
4275 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
4276 of set-but-not-used local, "q".
4278 * lib/mempcpy.c: Include <config.h> before <string.h>.
4279 This fixes a compilation error on HP-UX, due to the system's
4280 "restrict"-using mempcpy prototype.
4282 2007-01-26 Bruno Haible <bruno@clisp.org>
4285 * lib/javacomp.c: Include c-strstr.h.
4286 (is_envjavac_gcj): Use c_strstr instead of strstr.
4287 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
4289 2007-01-26 Bruno Haible <bruno@clisp.org>
4291 * MODULES.html.sh (Unicode string functions): Add the new modules.
4293 * modules/uniconv/u32-strconv-to-locale: New file.
4294 * lib/uniconv/u32-strconv-to-locale.c: New file.
4296 * modules/uniconv/u16-strconv-to-locale: New file.
4297 * lib/uniconv/u16-strconv-to-locale.c: New file.
4299 * modules/uniconv/u8-strconv-to-locale: New file.
4300 * lib/uniconv/u8-strconv-to-locale.c: New file.
4302 * modules/uniconv/u32-strconv-from-locale: New file.
4303 * lib/uniconv/u32-strconv-from-locale.c: New file.
4305 * modules/uniconv/u16-strconv-from-locale: New file.
4306 * lib/uniconv/u16-strconv-from-locale.c: New file.
4308 * modules/uniconv/u8-strconv-from-locale: New file.
4309 * lib/uniconv/u8-strconv-from-locale.c: New file.
4311 * modules/uniconv/u32-strconv-to-enc: New file.
4312 * lib/uniconv/u32-strconv-to-enc.c: New file.
4313 * modules/uniconv/u32-strconv-to-enc-tests: New file.
4314 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
4316 * modules/uniconv/u16-strconv-to-enc: New file.
4317 * lib/uniconv/u16-strconv-to-enc.c: New file.
4318 * lib/uniconv/u-strconv-to-enc.h: New file.
4319 * modules/uniconv/u16-strconv-to-enc-tests: New file.
4320 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
4322 * modules/uniconv/u8-strconv-to-enc: New file.
4323 * lib/uniconv/u8-strconv-to-enc.c: New file.
4324 * modules/uniconv/u8-strconv-to-enc-tests: New file.
4325 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
4327 * modules/uniconv/u32-strconv-from-enc: New file.
4328 * lib/uniconv/u32-strconv-from-enc.c: New file.
4329 * modules/uniconv/u32-strconv-from-enc-tests: New file.
4330 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
4332 * modules/uniconv/u16-strconv-from-enc: New file.
4333 * lib/uniconv/u16-strconv-from-enc.c: New file.
4334 * modules/uniconv/u16-strconv-from-enc-tests: New file.
4335 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
4337 * modules/uniconv/u8-strconv-from-enc: New file.
4338 * lib/uniconv/u8-strconv-from-enc.c: New file.
4339 * lib/uniconv/u-strconv-from-enc.h: New file.
4340 * modules/uniconv/u8-strconv-from-enc-tests: New file.
4341 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
4343 * modules/uniconv/u32-conv-from-enc: New file.
4344 * lib/uniconv/u32-conv-from-enc.c: New file.
4345 * modules/uniconv/u32-conv-from-enc-tests: New file.
4346 * tests/uniconv/test-u32-conv-from-enc.c: New file.
4348 * modules/uniconv/u16-conv-from-enc: New file.
4349 * lib/uniconv/u16-conv-from-enc.c: New file.
4350 * lib/uniconv/u-conv-from-enc.h: New file.
4351 * modules/uniconv/u16-conv-from-enc-tests: New file.
4352 * tests/uniconv/test-u16-conv-from-enc.c: New file.
4354 * modules/uniconv/u8-conv-from-enc: New file.
4355 * lib/uniconv/u8-conv-from-enc.c: New file.
4356 * modules/uniconv/u8-conv-from-enc-tests: New file.
4357 * tests/uniconv/test-u8-conv-from-enc.c: New file.
4359 * modules/uniconv/base: New file.
4360 * lib/uniconv.h: New file.
4362 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
4364 * doc/gnulib-tool.texi (Initial import): Update to match current
4365 behavior with strdup module.
4366 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
4367 * lib/memmem.h: Remove; all uses removed. This is now done
4369 * lib/mempcpy.h: Likewise.
4370 * lib/memrchr.h: Likewise.
4371 * lib/stpcpy.h: Likewise.
4372 * lib/stpncpy.h: Likewise.
4373 * lib/strcase.h: Likewise.
4374 * lib/strchrnul.h: Likewise.
4375 * lib/strdup.h: Likewise.
4376 * lib/strndup.h: Likewise.
4377 * lib/strnlen.h: Likewise.
4378 * lib/strpbrk.h: Likewise.
4379 * lib/strsep.h: Likewise.
4380 * lib/strstr.h: Likewise.
4381 * lib/strtok_r.h: Likewise.
4382 * lib/string_.h: New file.
4383 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
4384 Rely on <string.h> instead.
4385 * lib/canon-host.c: Likewise.
4386 * lib/chdir-long.c: Likewise.
4387 * lib/concatpath.c: Likewise.
4388 * lib/exclude.c: Likewise.
4389 * lib/fchdir.c: Likewise.
4390 * lib/getaddrinfo.c: Likewise.
4391 * lib/getcwd.c: Likewise.
4392 * lib/getsubopt.c: Likewise.
4393 * lib/glob.c: Likewise.
4394 * lib/hard-locale.c: Likewise.
4395 * lib/iconvme.c: Likewise.
4396 * lib/javacomp.c: Likewise.
4397 * lib/mempcpy.c: Likewise.
4398 * lib/memrchr.c: Likewise.
4399 * lib/regex_internal.h: Likewise.
4400 * lib/stpncpy.c: Likewise.
4401 * lib/strcasecmp.c: Likewise.
4402 * lib/strchrnul.c: Likewise.
4403 * lib/strdup.c: Likewise.
4404 * lib/striconv.c: Likewise.
4405 * lib/striconveh.c: Likewise.
4406 * lib/striconveha.c: Likewise.
4407 * lib/strncasecmp.c: Likewise.
4408 * lib/strndup.c: Likewise.
4409 * lib/strnlen.c: Likewise.
4410 * lib/strsep.c: Likewise.
4411 * lib/strstr.c: Likewise.
4412 * lib/strtok_r.c: Likewise.
4413 * lib/userspec.c: Likewise.
4414 * lib/w32spawn.h: Likewise.
4415 * lib/xstrndup.c: Likewise.
4416 * lib/mountlist.c (strstr): Remove decl.
4417 * m4/string_h.m4: New file.
4418 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
4419 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
4420 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
4421 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
4422 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
4423 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
4424 Set REPLACE_STRCASECMP if necessary.
4425 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
4426 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
4427 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
4428 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
4429 HAVE_DECL_STRDUP if necessary.
4430 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
4431 since gl_FUNC_STRNDUP does that now.
4432 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
4433 Check for decl here...
4434 (gl_PREREQ_STRNLEN): ... not here.
4435 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
4436 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
4437 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
4438 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
4440 * modules/string: New file.
4441 * modules/memmem (Files): Remove special-purpose include file.
4442 (Depends-on): Add string.
4443 (Include): Include <string.h>, not the removed file.
4444 * modules/mempcpy: Likewise.
4445 * modules/memrchr: Likewise.
4446 * modules/stpcpy: Likewise.
4447 * modules/stpncpy: Likewise.
4448 * modules/strcase: Likewise.
4449 * modules/strchrnul: Likewise.
4450 * modules/strdup: Likewise.
4451 * modules/strndup: Likewise.
4452 * modules/strnlen: Likewise.
4453 * modules/strpbrk: Likewise.
4454 * modules/strsep: Likewise.
4455 * modules/strstr: Likewise.
4456 * modules/strtok_r: Likewise.
4457 * tests/test-dirname.c: Don't include "strdup.h", since
4458 <string.h> now suffices.
4459 * tests/test-memmem.c: Don't include "memmem.h", since
4460 <string.h> now suffices.
4462 2007-01-25 Bruno Haible <bruno@clisp.org>
4464 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
4467 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
4468 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
4469 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
4470 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
4472 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
4473 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
4474 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
4475 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
4476 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
4477 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
4479 2007-01-24 Bruno Haible <bruno@clisp.org>
4481 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
4482 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
4483 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
4484 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
4486 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
4487 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
4488 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4489 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
4490 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
4491 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
4493 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
4495 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
4496 Reported by Ralf Wildenhues.
4498 2007-01-24 Bruno Haible <bruno@clisp.org>
4500 Drop AC_REQUIRE calls that are redundant with the module dependencies.
4501 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
4503 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
4504 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
4505 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
4507 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
4509 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
4510 Don't use 'exit'; just return from 'main'.
4511 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
4513 * lib/fnmatch_.h: Readjust white space and comments to match
4514 glibc, to avoid spurious diffs.
4516 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
4518 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
4519 2004-12-01 change by Jakub Jelinek, since this code won't compile
4520 if !LIBC. Problem reported by Bob Proulx.
4522 2007-01-23 Bruno Haible <bruno@clisp.org>
4524 * lib/striconveh.c: Include c-strcaseeq.h.
4525 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
4526 * modules/striconveh (Depends-on): Add c-strcaseeq.
4528 2007-01-23 Bruno Haible <bruno@clisp.org>
4530 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
4532 * modules/c-strcaseeq: New file.
4533 * lib/c-strcaseeq.h: New file.
4535 * modules/streq: New file.
4536 * lib/streq.h: New file.
4538 2007-01-23 Bruno Haible <bruno@clisp.org>
4540 * modules/striconveha-tests: New file.
4541 * tests/test-striconveha.c: New file.
4543 * lib/striconveha.h: Include <stdbool.h>.
4544 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
4545 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
4546 (mem_iconveha_notranslit): Renamed from mem_iconveha.
4547 (mem_iconveha): New function.
4548 (str_iconveha_notranslit): Renamed from str_iconveha.
4549 (str_iconveha): New function.
4550 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
4553 2007-01-23 Bruno Haible <bruno@clisp.org>
4555 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
4556 encodings without forgiving before trying any encoding with handler.
4557 (str_iconveha): Try all encodings without forgiving before trying any
4558 encoding with handler.
4560 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
4562 Import the following changes from libc.
4564 2005-10-14 Ulrich Drepper <drepper@redhat.com>
4566 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
4568 2004-12-01 Jakub Jelinek <jakub@redhat.com>
4570 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
4571 normal_bracket label.
4573 2004-09-01 Jakub Jelinek <jakub@redhat.com>
4576 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
4577 to normal_bracket after fetching the next character.
4579 2007-01-22 Bruno Haible <bruno@clisp.org>
4581 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
4583 * lib/striconveh.c (iconv_carefully_1): New function.
4584 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
4586 (str_cd_iconveh): Update.
4587 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
4588 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
4589 * tests/test-striconveh.c (MAGIC): New macro.
4590 (new_offsets): New function.
4591 (main): Test call with and without offsets.
4593 2007-01-22 Bruno Haible <bruno@clisp.org>
4595 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
4596 * modules/sys_select (Makefile.am): Likewise.
4597 * modules/sys_socket (Makefile.am): Likewise.
4598 * modules/sys_time (Makefile.am): Likewise.
4600 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
4602 * modules/gettimeofday (License): Change from GPL to LGPL, since
4603 gettimeofday is a library function.
4605 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4607 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
4609 2007-01-21 Bruno Haible <bruno@clisp.org>
4611 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
4613 2007-01-21 Bruno Haible <bruno@clisp.org>
4615 * modules/striconveha: New file.
4616 * lib/striconveha.h: New file.
4617 * lib/striconveha.c: New file.
4618 * MODULES.html.sh (Internationalization functions): Add striconveha.
4619 * lib/striconv.c (str_iconv): Optimize the case of an empty input
4621 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
4623 2007-01-21 Bruno Haible <bruno@clisp.org>
4625 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
4626 * lib/striconveh.c (str_iconveh): Likewise.
4628 2007-01-21 Bruno Haible <bruno@clisp.org>
4630 * lib/striconveh.h (mem_iconveh): New declaration.
4631 * lib/striconveh.c (mem_iconveh): New function.
4632 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
4634 2007-01-21 Bruno Haible <bruno@clisp.org>
4636 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
4638 * lib/striconveh.h (mem_cd_iconveh): Change specification.
4639 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
4640 original result buffer.
4641 (str_cd_iconveh): Update.
4642 * tests/test-striconveh.c (main): Update.
4644 * lib/striconv.h (mem_cd_iconv): Change specification.
4645 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
4647 (str_cd_iconv): Update.
4648 * tests/test-striconv.c (main): Update.
4650 2007-01-21 Bruno Haible <bruno@clisp.org>
4652 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
4654 2007-01-20 Jim Meyering <jim@meyering.net>
4656 * lib/userspec.c (parse_with_separator): If a user or group string
4657 starts with "+", skip the corresponding name-to-ID look-up, since
4658 such a look-up must fail: user and group names may not include "+".
4660 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
4662 * lib/poll.c: Include sys/time.h and time.h unconditionally,
4663 since we now assume the sys_time module.
4664 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
4665 check for sys/time.h; no longer needed.
4666 * modules/poll (Depends-on): Depend on sys_time.
4668 2007-01-18 Bruno Haible <bruno@clisp.org>
4670 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
4671 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
4673 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
4676 * tests/test-gettimeofday.c: Include <time.h>.
4677 (dummy): Remove variable.
4679 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
4680 gl_HEADER_SYS_TIME_H.
4681 (gl_HEADER_SYS_TIME_H): New macro.
4683 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
4684 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4685 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4686 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
4687 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4688 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
4689 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
4690 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4691 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
4692 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
4693 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4695 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
4696 last change; it caused a compilation error when cross-compiling to
4699 2007-01-18 Jim Meyering <jim@meyering.net>
4701 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
4702 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
4703 than the race-prone "test -d sys || mkdir sys".
4704 (configure.ac): Use AC_PROG_MKDIR_P.
4705 * modules/sys_select: Likewise.
4706 * modules/sys_socket: Likewise.
4707 * modules/sys_time: Likewise.
4709 2007-01-18 Eric Blake <ebb9@byu.net>
4711 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
4712 replace gettimeofday.
4713 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
4714 name, to avoid infinite recursion.
4716 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
4718 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
4720 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
4721 assume timespec.h defines struct timeval.
4722 * lib/settime.c: Likewise.
4723 * lib/utimens.c: Likewise.
4724 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
4725 since we now assume the gettimeofday module.
4726 * lib/tempname.c (__gen_tempname): Likewise.
4727 * lib/gettimeofday.h: Remove.
4728 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
4729 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
4730 Include <time.h>, for 'time()'.
4731 (localtime_buffer_addr): Also use this workaround if
4732 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
4733 to simplify the uses. All uses changed.
4734 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
4735 that #undef is inside {}, and 'const' follows type name consistently.
4736 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
4737 (gettimeofday): Do not use the maximum possible value for
4738 tv->tv_usec, since that might break usages other than ls.c.
4739 Instead, we'll leave ls.c alone. This undoes today's patch
4740 by Bruno. Add a compile-time warning for 1s-clock resolution;
4741 we've never observed the problem but might as well keep the
4743 * lib/nanosleep.c: Include timespec.h first, for interface check.
4744 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
4745 now assume the sys_time module.
4746 * lib/tempname.c: Likewise.
4747 * lib/timespec.h: Likewise.
4748 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
4750 * lib/strftime.c: Likewise.
4751 * lib/timespec.h: Likewise.
4752 * lib/posixtm.c: Include posixtm.h first, for interface check.
4753 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
4754 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
4755 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
4756 * lib/sys_time_.h: New file.
4757 * lib/timespec.h (struct timespec): Use long int, not long.
4758 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
4759 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
4760 Remove obsolescent call to AC_HEADER_TIME.
4761 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4762 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4763 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
4764 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
4766 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4767 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
4768 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
4769 into the sys_time module. Check for gettimeofday just once.
4770 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
4771 for gettimeofday signature to just check the signature. Merely
4772 compile it, since linking doesn't test signature. Improve test for
4773 whether gettimeofday.o is actually needed.
4774 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
4775 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
4776 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
4777 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4778 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
4779 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
4780 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
4781 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
4782 than worrying about sys/time.h.
4783 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4784 Don't bother worrying about TIME_WITH_SYS_TIME.
4785 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
4786 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
4787 * m4/sys_time_h.m4: New file.
4788 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
4789 Don't include sys/time.h. Return from main rather than exiting.
4790 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
4792 * modules/gethrxtime (Depends-on): Add sys_time.
4793 * modules/gettime (Depends-on): Likewise.
4794 * modules/gettimeofday (Depends-on): Likewise.
4795 * modules/nanosleep (Depends-on): Likewise.
4796 * modules/settime (Depends-on): Likewise.
4797 * modules/tempname (Depends-on): Likewise.
4798 * modules/utimens (Depends-on): Likewise.
4799 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
4800 (Include:) Change back to <sys/time.h>.
4801 (Maintainer:) Add self.
4802 * modules/sys_time: New file.
4803 * modules/tempname (Depends-on): Add gettimeofday.
4804 * tests/test-gettimeofday.c: Include <sys/time.h>
4805 rather than gettimeofday.h.
4807 2007-01-17 Bruno Haible <bruno@clisp.org>
4809 * gnulib-tool (func_get_license): Revert last patch. Instead, let
4810 the license default to GPL.
4811 (func_create_testdir): Don't complain if a module is LGPL and its
4812 tests module depends on GPLed modules.
4814 2007-01-17 Bruno Haible <bruno@clisp.org>
4816 * lib/gettimeofday.c (gettimeofday): Add code for the case
4817 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
4818 maximum possible value for tv->tv_usec, rather than the minimum one.
4820 2005-10-08 Martin Lambers <marlam@marlam.de>
4821 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
4822 2007-01-16 Bruno Haible <bruno@clisp.org>
4824 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
4825 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
4826 gl_FUNC_GETTIMEOFDAY.
4827 (Include): Add gettimeofday.h.
4828 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
4829 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
4830 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
4831 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
4832 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
4833 * lib/gettimeofday.h: New file.
4834 * lib/gettimeofday.c: Include <sys/timeb.h>.
4835 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
4836 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4837 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
4838 fall back on time().
4840 * tests/test-gettimeofday.c: New file.
4841 * modules/gettimeofday-tests: New file.
4843 2007-01-16 Eric Blake <ebb9@byu.net>
4845 * modules/fnmatch (Depends-on): Depend on wchar.
4846 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
4847 * m4/fnmatch.m4: Likewise.
4848 * modules/mbchar (Makefile.am): Assume <wchar.h>.
4849 * m4/mbchar.m4: Likewise.
4850 * modules/mbswidth (Depends-on): Depend on wchar.
4851 * lib/mbswidth.c: Assume <wchar.h>.
4852 * m4/mbswidth.m4: Likewise.
4853 * modules/quotearg (Depends-on): Depend on wchar.
4854 * lib/quotearg.c: Assume <wchar.h>.
4855 * m4/quotearg.m4: Likewise.
4856 * modules/regex (Depends-on): Depend on wchar.
4857 * lib/regex_internal.h: Assume <wchar.h>.
4858 * m4/regex.m4: Likewise.
4859 * modules/stdint (Depends-on): Depend on wchar.
4860 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
4861 * m4/stdint.m4: Likewise.
4862 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
4863 * modules/strftime (Depends-on): Depend on wchar.
4864 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
4865 * modules/strtol (Depends-on): Depend on wchar.
4866 * lib/strtol.c: Assume <wchar.h>.
4867 * modules/wcwidth (Depends-on): Depend on wchar.
4868 * lib/wcwidth.h: Assume <wchar.h>.
4869 * m4/wcwidth.m4: Likewise.
4871 2007-01-16 Bruno Haible <bruno@clisp.org>
4873 * modules/csharpexec-script: New, created from...
4874 * modules/csharpexec: ... this.
4876 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
4878 * modules/javaexec-script: New, created from...
4879 * modules/javaexec: ... this.
4881 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4883 * modules/poll (Dependencies): Add sys_select.
4885 2007-01-15 Jim Meyering <jim@meyering.net>
4887 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
4888 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
4889 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
4890 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
4892 2007-01-15 Bruno Haible <bruno@clisp.org>
4894 * modules/striconveh: New file.
4895 * lib/striconveh.h: New file.
4896 * lib/striconveh.c: New file.
4897 * MODULES.html.sh (Internationalization functions): Add striconveh.
4899 * modules/striconveh-tests: New file.
4900 * tests/test-striconveh.c: New file.
4902 2007-01-15 Bruno Haible <bruno@clisp.org>
4904 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
4905 not from GNU libiconv or GNU libc.
4907 2007-01-15 Bruno Haible <bruno@clisp.org>
4909 * doc/gnulib-intro.texi (Copyright): Explain the different license
4910 terms for module descriptions, autoconf macros, tests, documentation.
4912 2007-01-14 Bruno Haible <bruno@clisp.org>
4914 * modules/striconv-tests: New file.
4915 * tests/test-striconv.c: New file.
4917 2007-01-14 Bruno Haible <bruno@clisp.org>
4919 * modules/iconv-tests: New file.
4920 * tests/test-iconv.c: New file.
4922 2007-01-14 Bruno Haible <bruno@clisp.org>
4924 * gnulib-tool (func_get_license): For test modules, use the license of
4927 2007-01-14 Bruno Haible <bruno@clisp.org>
4929 * modules/iconv (Include): Clarify that <iconv.h> can only be included
4930 if iconv is found to exist.
4932 2007-01-14 Bruno Haible <bruno@clisp.org>
4934 * modules/c-ctype-tests: New file.
4935 * tests/test-c-ctype.c: New file.
4937 2007-01-14 Bruno Haible <bruno@clisp.org>
4939 * modules/binary-io-tests: New file.
4940 * tests/test-binary-io.sh: New file.
4941 * tests/test-binary-io.c: New file.
4943 2007-01-14 Bruno Haible <bruno@clisp.org>
4945 * modules/array-oset-tests: New file.
4946 * tests/test-array_oset.c: New file.
4948 2007-01-14 Bruno Haible <bruno@clisp.org>
4950 * modules/array-list-tests: New file.
4951 * tests/test-array_list.c: New file.
4953 2007-01-14 Bruno Haible <bruno@clisp.org>
4955 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
4957 Reported by Simon Josefsson in
4958 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
4960 2007-01-14 Bruno Haible <bruno@clisp.org>
4962 * modules/allocsa-tests: New file.
4963 * tests/test-allocsa.c: New file.
4965 2007-01-14 Bruno Haible <bruno@clisp.org>
4967 * modules/fchdir (Depends-on): Add absolute-header.
4968 * modules/unistd (Depends-on): Likewise.
4970 2006-12-30 Bruno Haible <bruno@clisp.org>
4972 * modules/fchdir: New file.
4973 * modules/unistd (Files): Add lib/unistd_.h.
4974 (Makefile.am): Generate unistd.h from unistd_.h.
4975 * lib/fchdir.c: New file.
4976 * lib/dirent_.h: New file.
4977 * lib/unistd_.h: New file.
4978 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
4979 * m4/fchdir.m4: New file.
4980 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
4981 (gl_HEADER_UNISTD): Invoke it.
4982 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
4984 * lib/backupfile.c (opendir, closedir): Undefine.
4985 * lib/chown.c (open, close): Undefine.
4986 * lib/clean-temp.c (open, close): Undefine.
4987 * lib/copy-file.c (open, close): Undefine.
4988 * lib/execute.c (open, close): Undefine.
4989 * lib/fsusage.c (open, close): Undefine.
4990 * lib/gc-gnulib.c (open, close): Undefine.
4991 * lib/getcwd.c (opendir, closedir): Undefine.
4992 * lib/glob.c (opendir, closedir): Undefine.
4993 * lib/javacomp.c (open, close): Undefine.
4994 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
4995 * lib/openat-proc.c (open, close): Undefine.
4996 * lib/pagealign_alloc.c (open, close): Undefine.
4997 * lib/pipe.c (open, close): Undefine.
4998 * lib/progreloc.c (open, close): Undefine.
4999 * lib/savedir.c (opendir, closedir): Undefine.
5000 * lib/utime.c (open, close): Undefine.
5001 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
5003 2007-01-10 Bruno Haible <bruno@clisp.org>
5005 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
5007 2007-01-12 Eric Blake <ebb9@byu.net>
5009 Provide a robust <wchar.h>. Further simplifications are now
5010 possible in other modules, but not included here.
5011 * modules/wchar: New module.
5012 * m4/wchar.m4: New file.
5013 * lib/wchar_.h: Likewise.
5014 * modules/mbchar (Depends-on): Depend on wchar, as the first use
5016 * MODULES.html.sh (Extended multibyte and wide character utilities):
5019 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
5021 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
5022 to a reasonable default for memory allocation.
5023 (xreadlink): Don't allocate a huge buffer, to work around a buggy
5024 file system that reports garbage st_size values for symlinks.
5025 Problem reported by Liyang Hu.
5027 2007-01-11 Simon Josefsson <simon@josefsson.org>
5029 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
5030 Emacs .#* auto-save files).
5032 2007-01-11 Bruno Haible <bruno@clisp.org>
5034 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
5037 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
5039 Use @...@ consistently in lib/wctype_.h.
5040 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
5041 on it being set to 1 or 0.
5042 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
5043 go back to AC_SUBSTing it.
5044 * modules/wctype (Makefile.am): Undo previous change.
5046 2007-01-10 Eric Blake <ebb9@byu.net>
5048 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
5049 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
5050 * modules/wctype (Makefile.am): Likewise.
5051 Reported by Chris McGuire.
5053 2007-01-10 Jim Meyering <jim@meyering.net>
5055 fts.c: a small readability/maintainability improvement
5056 * lib/fts.c (fts_read): Make this code slightly more readable and
5057 maintainable by hoisting the "sp->fts_cur = p" assignments to
5058 immediately follow the statements that set P. Derived from
5059 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
5061 2007-01-10 Eric Blake <ebb9@byu.net>
5063 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
5064 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
5065 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5066 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5067 Reported by Chris McGuire.
5069 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5071 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
5074 2007-01-09 Bruno Haible <bruno@clisp.org>
5076 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
5077 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
5079 (func_module): Use them.
5081 2007-01-09 Bruno Haible <bruno@clisp.org>
5083 * modules/unistr/base: New file.
5084 * lib/unistr.h: New file.
5086 * modules/unistr/u8-to-u16: New file.
5087 * lib/unistr/u8-to-u16.c: New file.
5089 * modules/unistr/u8-to-u32: New file.
5090 * lib/unistr/u8-to-u32.c: New file.
5092 * modules/unistr/u16-to-u8: New file.
5093 * lib/unistr/u16-to-u8.c: New file.
5095 * modules/unistr/u16-to-u32: New file.
5096 * lib/unistr/u16-to-u32.c: New file.
5098 * modules/unistr/u32-to-u8: New file.
5099 * lib/unistr/u32-to-u8.c: New file.
5101 * modules/unistr/u32-to-u16: New file.
5102 * lib/unistr/u32-to-u16.c: New file.
5104 * modules/unistr/u8-check: New file.
5105 * modules/unistr/u16-check: New file.
5106 * modules/unistr/u32-check: New file.
5107 * lib/unistr/u8-check.c: New file.
5108 * lib/unistr/u16-check.c: New file.
5109 * lib/unistr/u32-check.c: New file.
5111 * modules/unistr/u8-chr: New file.
5112 * modules/unistr/u16-chr: New file.
5113 * modules/unistr/u32-chr: New file.
5114 * lib/unistr/u8-chr.c: New file.
5115 * lib/unistr/u16-chr.c: New file.
5116 * lib/unistr/u32-chr.c: New file.
5118 * modules/unistr/u8-cmp: New file.
5119 * modules/unistr/u16-cmp: New file.
5120 * modules/unistr/u32-cmp: New file.
5121 * lib/unistr/u8-cmp.c: New file.
5122 * lib/unistr/u16-cmp.c: New file.
5123 * lib/unistr/u32-cmp.c: New file.
5125 * modules/unistr/u8-cpy: New file.
5126 * modules/unistr/u16-cpy: New file.
5127 * modules/unistr/u32-cpy: New file.
5128 * lib/unistr/u8-cpy.c: New file.
5129 * lib/unistr/u16-cpy.c: New file.
5130 * lib/unistr/u32-cpy.c: New file.
5131 * lib/unistr/u-cpy.h: New file.
5133 * modules/unistr/u8-cpy-alloc: New file.
5134 * modules/unistr/u16-cpy-alloc: New file.
5135 * modules/unistr/u32-cpy-alloc: New file.
5136 * lib/unistr/u8-cpy-alloc.c: New file.
5137 * lib/unistr/u16-cpy-alloc.c: New file.
5138 * lib/unistr/u32-cpy-alloc.c: New file.
5139 * lib/unistr/u-cpy-alloc.h: New file.
5141 * modules/unistr/u8-endswith: New file.
5142 * modules/unistr/u16-endswith: New file.
5143 * modules/unistr/u32-endswith: New file.
5144 * lib/unistr/u8-endswith.c: New file.
5145 * lib/unistr/u16-endswith.c: New file.
5146 * lib/unistr/u32-endswith.c: New file.
5147 * lib/unistr/u-endswith.h: New file.
5149 * modules/unistr/u8-mblen: New file.
5150 * modules/unistr/u16-mblen: New file.
5151 * modules/unistr/u32-mblen: New file.
5152 * lib/unistr/u8-mblen.c: New file.
5153 * lib/unistr/u16-mblen.c: New file.
5154 * lib/unistr/u32-mblen.c: New file.
5156 * modules/unistr/u8-mbtouc: New file.
5157 * modules/unistr/u16-mbtouc: New file.
5158 * modules/unistr/u32-mbtouc: New file.
5159 * lib/unistr/u8-mbtouc.c: New file.
5160 * lib/unistr/u16-mbtouc.c: New file.
5161 * lib/unistr/u32-mbtouc.c: New file.
5163 * modules/unistr/u8-mbtouc-safe: New file.
5164 * modules/unistr/u16-mbtouc-safe: New file.
5165 * modules/unistr/u32-mbtouc-safe: New file.
5166 * lib/unistr/u8-mbtouc-safe.c: New file.
5167 * lib/unistr/u16-mbtouc-safe.c: New file.
5168 * lib/unistr/u32-mbtouc-safe.c: New file.
5170 * modules/unistr/u8-move: New file.
5171 * modules/unistr/u16-move: New file.
5172 * modules/unistr/u32-move: New file.
5173 * lib/unistr/u8-move.c: New file.
5174 * lib/unistr/u16-move.c: New file.
5175 * lib/unistr/u32-move.c: New file.
5176 * lib/unistr/u-move.h: New file.
5178 * modules/unistr/u8-next: New file.
5179 * modules/unistr/u16-next: New file.
5180 * modules/unistr/u32-next: New file.
5181 * lib/unistr/u8-next.c: New file.
5182 * lib/unistr/u16-next.c: New file.
5183 * lib/unistr/u32-next.c: New file.
5185 * modules/unistr/u8-prev: New file.
5186 * modules/unistr/u16-prev: New file.
5187 * modules/unistr/u32-prev: New file.
5188 * lib/unistr/u8-prev.c: New file.
5189 * lib/unistr/u16-prev.c: New file.
5190 * lib/unistr/u32-prev.c: New file.
5192 * modules/unistr/u8-set: New file.
5193 * modules/unistr/u16-set: New file.
5194 * modules/unistr/u32-set: New file.
5195 * lib/unistr/u8-set.c: New file.
5196 * lib/unistr/u16-set.c: New file.
5197 * lib/unistr/u32-set.c: New file.
5198 * lib/unistr/u-set.h: New file.
5200 * modules/unistr/u8-startswith: New file.
5201 * modules/unistr/u16-startswith: New file.
5202 * modules/unistr/u32-startswith: New file.
5203 * lib/unistr/u8-startswith.c: New file.
5204 * lib/unistr/u16-startswith.c: New file.
5205 * lib/unistr/u32-startswith.c: New file.
5206 * lib/unistr/u-startswith.h: New file.
5208 * modules/unistr/u8-stpcpy: New file.
5209 * modules/unistr/u16-stpcpy: New file.
5210 * modules/unistr/u32-stpcpy: New file.
5211 * lib/unistr/u8-stpcpy.c: New file.
5212 * lib/unistr/u16-stpcpy.c: New file.
5213 * lib/unistr/u32-stpcpy.c: New file.
5214 * lib/unistr/u-stpcpy.h: New file.
5216 * modules/unistr/u8-stpncpy: New file.
5217 * modules/unistr/u16-stpncpy: New file.
5218 * modules/unistr/u32-stpncpy: New file.
5219 * lib/unistr/u8-stpncpy.c: New file.
5220 * lib/unistr/u16-stpncpy.c: New file.
5221 * lib/unistr/u32-stpncpy.c: New file.
5222 * lib/unistr/u-stpncpy.h: New file.
5224 * modules/unistr/u8-strcat: New file.
5225 * modules/unistr/u16-strcat: New file.
5226 * modules/unistr/u32-strcat: New file.
5227 * lib/unistr/u8-strcat.c: New file.
5228 * lib/unistr/u16-strcat.c: New file.
5229 * lib/unistr/u32-strcat.c: New file.
5230 * lib/unistr/u-strcat.h: New file.
5232 * modules/unistr/u8-strchr: New file.
5233 * modules/unistr/u16-strchr: New file.
5234 * modules/unistr/u32-strchr: New file.
5235 * lib/unistr/u8-strchr.c: New file.
5236 * lib/unistr/u16-strchr.c: New file.
5237 * lib/unistr/u32-strchr.c: New file.
5239 * modules/unistr/u8-strcmp: New file.
5240 * modules/unistr/u16-strcmp: New file.
5241 * modules/unistr/u32-strcmp: New file.
5242 * lib/unistr/u8-strcmp.c: New file.
5243 * lib/unistr/u16-strcmp.c: New file.
5244 * lib/unistr/u32-strcmp.c: New file.
5246 * modules/unistr/u8-strcpy: New file.
5247 * modules/unistr/u16-strcpy: New file.
5248 * modules/unistr/u32-strcpy: New file.
5249 * lib/unistr/u8-strcpy.c: New file.
5250 * lib/unistr/u16-strcpy.c: New file.
5251 * lib/unistr/u32-strcpy.c: New file.
5252 * lib/unistr/u-strcpy.h: New file.
5254 * modules/unistr/u8-strcspn: New file.
5255 * modules/unistr/u16-strcspn: New file.
5256 * modules/unistr/u32-strcspn: New file.
5257 * lib/unistr/u8-strcspn.c: New file.
5258 * lib/unistr/u16-strcspn.c: New file.
5259 * lib/unistr/u32-strcspn.c: New file.
5260 * lib/unistr/u-strcspn.h: New file.
5262 * modules/unistr/u8-strdup: New file.
5263 * modules/unistr/u16-strdup: New file.
5264 * modules/unistr/u32-strdup: New file.
5265 * lib/unistr/u8-strdup.c: New file.
5266 * lib/unistr/u16-strdup.c: New file.
5267 * lib/unistr/u32-strdup.c: New file.
5268 * lib/unistr/u-strdup.h: New file.
5270 * modules/unistr/u8-strlen: New file.
5271 * modules/unistr/u16-strlen: New file.
5272 * modules/unistr/u32-strlen: New file.
5273 * lib/unistr/u8-strlen.c: New file.
5274 * lib/unistr/u16-strlen.c: New file.
5275 * lib/unistr/u32-strlen.c: New file.
5276 * lib/unistr/u-strlen.h: New file.
5278 * modules/unistr/u8-strmblen: New file.
5279 * modules/unistr/u16-strmblen: New file.
5280 * modules/unistr/u32-strmblen: New file.
5281 * lib/unistr/u8-strmblen.c: New file.
5282 * lib/unistr/u16-strmblen.c: New file.
5283 * lib/unistr/u32-strmblen.c: New file.
5285 * modules/unistr/u8-strmbtouc: New file.
5286 * modules/unistr/u16-strmbtouc: New file.
5287 * modules/unistr/u32-strmbtouc: New file.
5288 * lib/unistr/u8-strmbtouc.c: New file.
5289 * lib/unistr/u16-strmbtouc.c: New file.
5290 * lib/unistr/u32-strmbtouc.c: New file.
5292 * modules/unistr/u8-strncat: New file.
5293 * modules/unistr/u16-strncat: New file.
5294 * modules/unistr/u32-strncat: New file.
5295 * lib/unistr/u8-strncat.c: New file.
5296 * lib/unistr/u16-strncat.c: New file.
5297 * lib/unistr/u32-strncat.c: New file.
5298 * lib/unistr/u-strncat.h: New file.
5300 * modules/unistr/u8-strncmp: New file.
5301 * modules/unistr/u16-strncmp: New file.
5302 * modules/unistr/u32-strncmp: New file.
5303 * lib/unistr/u8-strncmp.c: New file.
5304 * lib/unistr/u16-strncmp.c: New file.
5305 * lib/unistr/u32-strncmp.c: New file.
5307 * modules/unistr/u8-strncpy: New file.
5308 * modules/unistr/u16-strncpy: New file.
5309 * modules/unistr/u32-strncpy: New file.
5310 * lib/unistr/u8-strncpy.c: New file.
5311 * lib/unistr/u16-strncpy.c: New file.
5312 * lib/unistr/u32-strncpy.c: New file.
5313 * lib/unistr/u-strncpy.h: New file.
5315 * modules/unistr/u8-strnlen: New file.
5316 * modules/unistr/u16-strnlen: New file.
5317 * modules/unistr/u32-strnlen: New file.
5318 * lib/unistr/u8-strnlen.c: New file.
5319 * lib/unistr/u16-strnlen.c: New file.
5320 * lib/unistr/u32-strnlen.c: New file.
5321 * lib/unistr/u-strnlen.h: New file.
5323 * modules/unistr/u8-strpbrk: New file.
5324 * modules/unistr/u16-strpbrk: New file.
5325 * modules/unistr/u32-strpbrk: New file.
5326 * lib/unistr/u8-strpbrk.c: New file.
5327 * lib/unistr/u16-strpbrk.c: New file.
5328 * lib/unistr/u32-strpbrk.c: New file.
5329 * lib/unistr/u-strpbrk.h: New file.
5331 * modules/unistr/u8-strrchr: New file.
5332 * modules/unistr/u16-strrchr: New file.
5333 * modules/unistr/u32-strrchr: New file.
5334 * lib/unistr/u8-strrchr.c: New file.
5335 * lib/unistr/u16-strrchr.c: New file.
5336 * lib/unistr/u32-strrchr.c: New file.
5338 * modules/unistr/u8-strspn: New file.
5339 * modules/unistr/u16-strspn: New file.
5340 * modules/unistr/u32-strspn: New file.
5341 * lib/unistr/u8-strspn.c: New file.
5342 * lib/unistr/u16-strspn.c: New file.
5343 * lib/unistr/u32-strspn.c: New file.
5344 * lib/unistr/u-strspn.h: New file.
5346 * modules/unistr/u8-strstr: New file.
5347 * modules/unistr/u16-strstr: New file.
5348 * modules/unistr/u32-strstr: New file.
5349 * lib/unistr/u8-strstr.c: New file.
5350 * lib/unistr/u16-strstr.c: New file.
5351 * lib/unistr/u32-strstr.c: New file.
5352 * lib/unistr/u-strstr.h: New file.
5354 * modules/unistr/u8-strtok: New file.
5355 * modules/unistr/u16-strtok: New file.
5356 * modules/unistr/u32-strtok: New file.
5357 * lib/unistr/u8-strtok.c: New file.
5358 * lib/unistr/u16-strtok.c: New file.
5359 * lib/unistr/u32-strtok.c: New file.
5360 * lib/unistr/u-strtok.h: New file.
5362 * modules/unistr/u8-uctomb: New file.
5363 * modules/unistr/u16-uctomb: New file.
5364 * modules/unistr/u32-uctomb: New file.
5365 * lib/unistr/u8-uctomb.c: New file.
5366 * lib/unistr/u16-uctomb.c: New file.
5367 * lib/unistr/u32-uctomb.c: New file.
5369 * MODULES.html.sh (Unicode string functions): Add the new modules.
5371 2007-01-08 Bruno Haible <bruno@clisp.org>
5373 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
5374 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
5377 2007-01-08 Karl Berry <karl@gnu.org>
5379 * doc/error.texi: mention that main() fns must set program_name
5380 when progname is used.
5382 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
5384 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
5385 WCTYPE_H is empty, for the benefit of builds from non-distclean
5386 directories. Problem reported by Eric Blake in
5387 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
5389 2007-01-08 Bruno Haible <bruno@clisp.org>
5391 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
5392 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
5393 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
5394 PROVIDE_CANONICALIZE_FILENAME_MODE.
5395 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
5397 2007-01-08 Bruno Haible <bruno@clisp.org>
5399 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
5400 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
5401 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
5402 * lib/fts.c: Likewise.
5403 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
5405 2006-12-25 Bruno Haible <bruno@clisp.org>
5407 * modules/utf8-ucs4-safe: New file.
5408 * lib/utf8-ucs4-safe.h: New file.
5409 * lib/unistr/utf8-ucs4-safe.c: New file.
5411 * modules/utf16-ucs4-safe: New file.
5412 * lib/utf16-ucs4-safe.h: New file.
5413 * lib/unistr/utf16-ucs4-safe.c: New file.
5415 * MODULES.html.sh (Unicode string functions): Add the new modules.
5417 2007-01-08 Bruno Haible <bruno@clisp.org>
5419 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
5420 (Depends-on): Add unitypes.
5421 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
5422 (u8_mbtouc_aux): Move out to separate file.
5423 (u8_mbtouc): Use ucs4_t, uint8_t types.
5424 * lib/unistr/utf8-ucs4.c: New file.
5426 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
5427 (Depends-on): Add unitypes.
5428 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
5429 (u16_mbtouc_aux): Move out to separate file.
5430 (u16_mbtouc): Use ucs4_t, uint16_t types.
5431 * lib/unistr/utf16-ucs4.c: New file.
5433 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
5434 (Depends-on): Add unitypes.
5435 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
5436 (u8_uctomb_aux): Move out to separate file.
5437 (u8_uctomb): Use ucs4_t, uint8_t types.
5438 * lib/unistr/ucs4-utf8.c: New file.
5440 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
5441 (Depends-on): Add unitypes.
5442 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
5443 (u16_uctomb_aux): Move out to separate file.
5444 (u16_uctomb): Use ucs4_t, uint16_t types.
5445 * lib/unistr/ucs4-utf16.c: New file.
5447 2006-12-25 Bruno Haible <bruno@clisp.org>
5449 * modules/unitypes: New file.
5450 * lib/unitypes.h: New file.
5451 * MODULES.html.sh (func_all_modules): New section "Unicode string
5452 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
5453 this section. Add unitypes.
5455 2007-01-08 Bruno Haible <bruno@clisp.org>
5457 Avoid variable names that conflict with those from libtool.
5458 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
5459 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
5460 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
5461 library_names_spec to acl_library_names_spec, hardcode_* to
5463 Reported by Ralf Wildenhues.
5465 2007-01-08 Bruno Haible <bruno@clisp.org>
5467 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
5469 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
5471 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
5472 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
5474 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
5476 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
5477 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
5478 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
5479 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
5481 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
5483 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
5484 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
5486 * lib/gc-libgcrypt.c: Likewise.
5487 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
5488 * modules/gc-arctwo (configure.ac): Likewise.
5489 * modules/gc-des (configure.ac): Likewise.
5490 * modules/gc-hmac-md5 (configure.ac): Likewise.
5491 * modules/gc-hmac-sha1 (configure.ac): Likewise.
5492 * modules/gc-md2 (configure.ac): Likewise.
5493 * modules/gc-md4 (configure.ac): Likewise.
5494 * modules/gc-md5 (configure.ac): Likewise.
5495 * modules/gc-random (configure.ac): Likewise.
5496 * modules/gc-rijndael (configure.ac): Likewise.
5497 * modules/gc-sha1 (configure.ac): Likewise.
5499 2007-01-08 Bruno Haible <bruno@clisp.org>
5501 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
5503 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
5505 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
5507 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
5508 * modules/fcntl-safer (configure.ac): Likewise.
5509 * modules/fopen-safer (configure.ac): Likewise.
5510 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
5511 GNULIB_FWRITEERROR macro definition.
5513 2007-01-08 Bruno Haible <bruno@clisp.org>
5515 * m4/gnulib-common.m4: New file.
5516 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
5517 (func_get_filelist): Add m4/gnulib-common.m4.
5519 2007-01-08 Bruno Haible <bruno@clisp.org>
5521 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
5524 2007-01-08 Jim Meyering <jim@meyering.net>
5526 Use a more robust test for a "can't happen" condition.
5527 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
5528 narrowed the st_size value. Presuming the "can't happen" condition
5529 is true, that narrowing could conceivably convert an invalid st_size
5530 value into a valid one. Instead, use a change based on Matthew
5531 Woehlke's original patch.
5533 Slight readability improvement: use an assert-like macro
5534 in place of literal "abort ()" uses.
5535 * lib/fts.c (fts_assert): Define.
5536 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
5537 Use this macro instead of a bare 'abort'.
5539 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
5541 Don't worry about using IRIX 5.3's wctype.h broken definitions;
5542 simply work around them.
5543 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
5544 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
5545 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
5547 Don't bother to define as macros, since the standard doesn't require it.
5548 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
5549 longer worry about IRIX 5.3.
5550 (HAVE_WCTYPE_CTMP_BUG): Remove.
5552 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
5554 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
5555 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
5556 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
5557 Problems reported by Georg Schwarz for IRIX 5.3.
5559 * gnulib-tool (autoconf_minversion): Take the maximum version number
5560 found, not the minimum. Problem reported by James Youngman.
5562 2007-01-03 Karl Berry <karl@gnu.org>
5564 * doc/error.texi: new file, explaining interaction with progname.
5565 * doc/gnulib.texi: include it. Update copyright.
5567 2007-01-03 Simon Josefsson <simon@josefsson.org>
5569 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
5570 AC_CANONICAL_HOST, to improve autobuild outputs.
5572 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
5573 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5575 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
5576 sockets, server sockets, and other file descriptors. Count errors
5577 to compute the return value. Reorder the code a bit to be easier
5578 to follow. Don't set event bits that were not requested (except
5579 POLLERR and POLLHUP).
5581 2007-01-01 Bruno Haible <bruno@clisp.org>
5583 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
5585 2007-01-03 Jim Meyering <jim@meyering.net>
5587 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
5589 2007-01-02 Bruno Haible <bruno@clisp.org>
5591 * modules/settime (Include): Require timespec.h.
5592 * modules/nanosleep (Include): Likewise.
5594 2007-01-01 Bruno Haible <bruno@clisp.org>
5596 * gnulib-tool (func_emit_copyright_notice): Bump year.
5597 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
5599 2007-01-01 Bruno Haible <bruno@clisp.org>
5601 Improve support for OpenBSD.
5602 * build-aux/config.rpath (libname_spec): Export.
5603 (library_names_spec): New variable. Export.
5604 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
5605 library_names_spec from the config.rpath output. Locate shared library
5606 through the name pattern in library_names_spec.
5608 2007-01-01 Eric Blake <ebb9@byu.net>
5610 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
5612 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
5614 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
5615 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
5616 assume the C locale, and avoid an "eval" that could cause trouble.
5617 Problem with SORT reported by Bob Proulx.
5619 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
5620 Define. Trivial patch from Henning Nielsen Lund, originally
5621 sent to bug-grep@gnu.org today.
5623 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
5625 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
5626 struct stat. Problem reported by Henning Nielsen Lund.
5627 * lib/acl.c: Include acl.h first, to check interface. Don't
5628 bother to include sys/types.h and sys/stat.h again.
5630 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
5632 Import the following change from libc; problem reported by
5635 2005-10-13 Ulrich Drepper <drepper@redhat.com>
5638 * lib/argp.h: Remove __NTH for __argp_usage inline function.
5640 2006-12-28 Jim Meyering <jim@meyering.net>
5642 * build-aux/announce-gen: Do not assume that the package
5643 builds any of tar.gz, tar.bz2, and .xdelta files.
5644 Suggestion from Simon Josefsson.
5646 2006-12-28 Simon Josefsson <simon@josefsson.org>
5648 * modules/announce-gen: New file.
5650 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
5652 * lib/mbchar.h: Just include <wctype.h>; the wctype module
5653 handles its gotchas now.
5654 * lib/mbswidth.c: Likewise.
5655 * lib/wcwidth.h: Likewise.
5656 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
5657 and iswcntrl; the wctype module does this stuff now.
5658 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5659 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5660 * modules/mbchar (Depends-on): Add wctype.
5661 * modules/mbswidth (Depends-on): Likewise.
5662 * modules/wcwidth (Depends-on): Likewise.
5664 2006-12-27 Eric Blake <ebb9@byu.net>
5666 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
5667 module uses more than what <wctype.h> is required to provide.
5669 2006-12-26 Eric Blake <ebb9@byu.net>
5671 * gnulib-tool (sed_extract_prog): Avoid space-tab.
5673 2006-12-26 Eric Blake <ebb9@byu.net>
5675 * modules/absolute-header: New module.
5676 * modules/fcntl (Depends-on): Depend on it.
5677 * modules/inttypes (Depends-on): Likewise.
5678 * modules/stdint (Depends-on): Likewise.
5679 * modules/sys_stat (Depends-on): Likewise.
5680 * modules/wctype (Depends-on): Likewise.
5681 * MODULES.html.sh (Support for building libraries and
5682 executables): Document it.
5684 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
5686 * gnulib-tool (SED): Remove, undoing previous change.
5687 The problem was that it broke coreutils on Solaris, because
5688 "sed --posix" leaked into a makefile.
5689 (sed): New alias, if 'alias' and GNU sed.
5691 2006-12-24 Jim Meyering <jim@meyering.net>
5693 Work around an fchownat bug in glibc-2.4:
5694 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
5695 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
5696 in spite of the -P option.
5697 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
5699 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
5700 * modules/openat (Files): Add lib/fchownat.c.
5701 * lib/openat.c (fchownat): Don't define here. Move to...
5702 * lib/fchownat.c: ...this new file.
5704 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
5706 Fix bug reported by Bruno Haible in
5707 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
5708 where quotearg.c didn't compile on Mac OS X 10.2 because it
5709 lacks <wchar.h> and wint_t.
5710 * lib/wctype_.h (__wctype_wint_t): New type.
5711 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
5712 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
5713 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
5714 Arg is now of type __wctype_wint_t, not wint_t.
5715 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
5716 substitute HAVE_WINT_T.
5717 * modules/wctype (Files): Add m4/wint_t.m4.
5718 (wctype.h): Substitute HAVE_WINT_T.
5720 2006-12-23 Bruno Haible <bruno@clisp.org>
5722 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
5724 2006-12-23 Bruno Haible <bruno@clisp.org>
5726 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
5728 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
5731 2006-12-22 Bruno Haible <bruno@clisp.org>
5733 * lib/copy-file.c: Include acl.h.
5734 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
5735 Close the file descriptors only after being done with copy_acl.
5736 * modules/copy-file (Depends-on): Add acl.
5738 2006-12-22 Bruno Haible <bruno@clisp.org>
5740 * gnulib-tool (SED): New variable.
5741 Use $SED instead of sed everywhere.
5743 2006-12-22 Bruno Haible <bruno@clisp.org>
5745 * modules/no-c++: New file.
5746 * m4/no-c++.m4: New file.
5747 * MODULES.html.sh (Support for building libraries and executables):
5750 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
5752 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
5753 Include <limits.h>, and use its INT_MAX to rewrite the
5754 j loop so that it does not overflow 'int'. Problem reported by
5756 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
5757 Play it safe by shifting left by 1 rather than multiplying by 2,
5758 as GCC is less likely to optimize this away when the value
5759 is signed (when it assumes overflow leads to undefined behavior).
5760 Also, don't assume time_t uses two's complement.
5762 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
5764 * MODULES.html.sh: New module wctype.
5765 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
5766 * lib/fnmatch.c: Don't bother to include <wchar.h> before
5767 <wctype.h>, since the new wctype module should fix this.
5768 * lib/quotearg.c: Include <wctype.h> unconditionally, since
5769 the wctype module should arrange for it.
5770 * lib/regex_internal.h: Likewise.
5771 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
5772 since the wctype module should handle this now.
5773 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
5774 * modules/fnmatch (Depends-on): Add wctype.
5775 * modules/quotearg (Depends-on): Likewise.
5776 * modules/regex (Depends-on): Likewise.
5778 2006-12-19 Bruno Haible <bruno@clisp.org>
5780 * lib/strdup.h [C++]: Wrap definitions in extern "C".
5781 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
5783 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5785 * modules/savewd (Depends-on): Fix dependency on fcntl.
5787 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
5789 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
5790 conforms to C99, rather than relying on the user's environment
5791 setting of STDINT_H.
5793 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
5794 and Eric Blake <ebb9@byu.net>
5796 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
5797 This is more consistent with the other defines here.
5798 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
5799 Port to z/OS. Problem reported by Paul Gilmartin.
5800 Change local vars to use gl_ prefix rather than ac_.
5801 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
5803 * modules/double-slash-root: New module.
5804 * modules/dirname (Files): Remove m4/double-slash-root.m4.
5805 (Depends-on): Add double-slash-root.
5806 * MODULES.html.sh (File system functions): Mention new module.
5808 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
5810 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
5811 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
5812 This is for the benefit of gzip, which doesn't do i18n.
5814 2006-12-12 Jim Meyering <jim@meyering.net>
5816 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
5817 Reported by Andreas Schwab <schwab@suse.de>.
5819 2006-12-12 Bruno Haible <bruno@clisp.org>
5821 Merge these changes.
5822 2006-09-05 Bruno Haible <bruno@clisp.org>
5823 * lib/iconvme.c (iconv_string): No need to save and restore errno when
5824 iconv_alloc succeeded.
5825 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
5826 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
5827 test for " && dest " at the end - dest is always != NULL there. Call
5828 iconv with 4xNULL arguments initially, to reset the state. Call iconv
5829 with 2xNULL arguments, also to flush the state storage. Handle the
5830 IRIX iconv behaviour. Realloc the final result, to throw away unused
5833 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
5835 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
5836 and fchmodat unconditionally, since glibc 2.4 has them.
5837 Problem reported by Arkadiusz Miskiewicz.
5839 2006-12-10 Bruno Haible <bruno@clisp.org>
5841 * gnulib-tool (func_import): Show the include files only for those
5842 modules that are copied and specified.
5843 Reported by Karl Berry.
5845 2006-12-08 Jim Meyering <jim@meyering.net>
5847 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
5848 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
5850 * build-aux/announce-gen: Add two new options, both optional:
5851 --bootstrap-tools=TOOL_LIST
5852 a comma-separated list of tools, e.g.,
5853 autoconf,automake,bison,gnulib
5854 --gnulib-snapshot-date=DATE
5855 if gnulib is in the bootstrap tool list,
5856 then report this as the snapshot date.
5857 If not specified, use the current date/time.
5858 If you specify a date here, be sure it's UTC.
5860 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5862 * tests/test-argp-2.sh: Fix test to match actual output.
5863 (func_compare): Fix sed script to be portable.
5865 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
5867 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
5868 workaround for this case. It is not autoconfigured now; offhand
5869 it's hard to see how to autoconfigure it.
5871 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
5873 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
5874 a directory that is about to be chowned. Such a directory's
5875 initial file permissions should permit the owner only and this
5876 should not be changed until after the chown, since the group and
5877 other bits would be incorrect if they granted permission before
5880 Fix porting problem for iswctype reported by Georg Schwarz in:
5881 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
5882 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
5883 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
5884 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
5885 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5887 2006-12-03 Jim Meyering <jim@meyering.net>
5889 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
5890 p->fts_statp may not yet be defined.
5891 (fts_read): Instead, set it in the caller, once p->fts_statp is
5892 sure to be defined, and corresponds to a top-level directory.
5893 This bug made du -x fail. Here's the coreutils test case:
5894 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
5895 Reported by Mike Frysinger.
5897 2006-12-01 Jim Meyering <jim@meyering.net>
5899 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
5900 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
5901 Reported by Simon Josefsson.
5903 2006-11-30 Jim Meyering <jim@meyering.net>
5905 * m4/warning.m4: Use the all-permissive copyright notice
5906 recommended by RMS (rather than LGPL).
5907 * m4/vararrays.m4: Likewise.
5908 * m4/flexmember.m4: Likewise.
5910 2006-11-29 Bruno Haible <bruno@clisp.org>
5912 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5913 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
5915 Reported by Simon Josefsson <simon@josefsson.org>.
5917 2006-11-28 James Youngman <jay@gnu.org>
5919 * README: Advise users that they might find the bug-gnulib@gnu.org
5920 and autotools-announce@gnu.org mailing lists useful.
5922 2006-11-28 Bruno Haible <bruno@clisp.org>
5924 * m4/ptrdiff_max.m4: Remove file.
5926 2006-11-21 Bruno Haible <bruno@clisp.org>
5928 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
5930 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
5931 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
5933 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
5934 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
5936 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
5938 2006-11-28 Jim Meyering <jim@meyering.net>
5940 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
5941 warning from "gcc -Wshadow" about shadowing the builtin.
5943 2006-11-27 Bruno Haible <bruno@clisp.org>
5945 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
5947 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
5949 2006-11-27 Bruno Haible <bruno@clisp.org>
5950 Paul Eggert <eggert@cs.ucla.edu>
5952 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
5954 2006-11-26 Bruno Haible <bruno@clisp.org>
5956 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5959 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
5960 Bruno Haible <bruno@clisp.org>
5962 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
5963 if compiling with "gcc -ansi".
5965 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
5967 Fix some incompatibilities with gcc -ansi -pedantic.
5968 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
5969 if compiling pedantically with GCC, unless it's C99 or later.
5970 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
5971 it mishandles gcc -ansi -pedantic as well.
5972 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
5974 * lib/regexec.c (check_node_accept_bytes): Don't use auto
5975 initializers for struct if -pedantic, unless it's C99 or later.
5977 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
5979 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
5980 Don't close an fd more than once. Identical atimes indicate
5981 success, not failure.
5983 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
5985 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
5987 2006-11-23 Jim Meyering <jim@meyering.net>
5989 * build-aux/announce-gen: New file. From coreutils.
5991 2006-11-22 Jim Meyering <jim@meyering.net>
5993 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
5994 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
5995 (fts_read): Use a temporary to narrow the overused st_size member
5996 before using it in a switch statement. Reported by Matthew Woehlke.
5998 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
5999 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6001 2006-11-20 Bruno Haible <bruno@clisp.org>
6003 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
6004 changequote instead of pairs of brackets.
6005 Reported by Andreas Schwab <schwab@suse.de>.
6007 2006-11-21 Jim Meyering <jim@meyering.net>
6009 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
6010 so as to remain compatible with older compilers.
6011 Patch from Michael Deutschmann.
6013 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
6015 * MODULES.html.sh (File system functions): Add openat.
6017 * lib/openat.h (rpl_fstatat): New macro, if
6018 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
6019 (fstatat): Define to rpl_fstatat under the same conditions,
6020 unless COMPILING_FSTATAT.
6021 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
6022 seems to have the bug.
6023 * lib/fstatat.c: New file.
6024 * modules/openat (Files): Add it.
6026 2006-11-20 Bruno Haible <bruno@clisp.org>
6028 * Makefile: New file.
6030 2006-11-20 Jim Meyering <jim@meyering.net>
6032 The beginnings of syntax-related checks for gnulib.
6033 * lib/Makefile: New file.
6034 * lib/t-idcache: New script. Ensure that the two halves of
6035 idcache.c stay in sync.
6037 * lib/idcache.c: Adjust comments in user- and group- portions to
6038 be more accurate, and to be consistent with one another.
6040 2006-11-20 Jim Meyering <jim@meyering.net>
6042 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
6043 continue using the flexible array member (thus, this module performs
6044 half as many malloc calls), with the addition that...
6045 (getgroup, getuser): Consistently record a non-match via an empty
6046 "name" string, and map an empty string match to a NULL return value.
6047 * modules/idcache (Depends-on): Re-add flexmember.
6049 * lib/idcache.c (getuser): Remove all uses of the register keyword.
6050 (getuidbyname, getgroup, getgidbyname): Likewise.
6052 Use cleaner syntax: NULL rather than 0.
6053 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
6055 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
6057 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
6058 It mishandled the case where the group was missing.
6059 Problem reported by Greg Schafer.
6060 * modules/idcache: Likewise.
6062 2006-11-18 Jim Meyering <jim@meyering.net>
6064 * check-module (%exempt_header): Add exception for some
6065 conditionally-included headers.
6067 * modules/i-ring (Depends-on): Add verify.
6068 (License): Change to LGPL.
6070 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
6072 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
6073 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
6074 and inttostr.h. Use snprintf rather than uinttostr, so that
6075 LGPLed code doesn't depend on GPLed.
6077 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
6079 * modules/inline (License): Change from GPL to LGPL.
6081 2006-11-17 Jim Meyering <jim@meyering.net>
6083 * modules/d-type (License): Switch to LGPL.
6085 2006-11-15 Bruno Haible <bruno@clisp.org>
6087 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
6089 2006-11-15 Eric Blake <ebb9@byu.net>
6091 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
6092 the module dependency.
6094 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6095 Bruno Haible <bruno@clisp.org>
6097 * gnulib-tool (func_create_testdir): Add license consistency check.
6099 2006-11-15 Eric Blake <ebb9@byu.net>
6101 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
6102 random "(cached)" in configure output.
6104 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6106 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
6107 test for conforming inttypes.h is both announced and cached.
6109 * MODULES.html.sh (seen_modules, seen_files): New variables.
6110 (func_module): Rewrite to use a few less gnulib-tool and sed
6111 invocations. Avoid a couple of quadratic algorithms for ...
6112 (missed_modules, missed_files): ... these, with ...
6113 (func_append, func_tmpdir): ... these new functions, from
6114 gnulib-tool. Analogously, install traps for cleanup.
6116 * tests/test-gc.c (main): Remove unused variables.
6117 * tests/test-read-file.c: Include stdlib.h, for 'free'.
6119 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
6121 * modules/inttostr (License): Change to LGPL.
6123 2006-11-14 Eric Blake <ebb9@byu.net>
6125 * modules/tempname (License): Change to LGPL.
6127 2006-11-14 Eric Blake <ebb9@byu.net>
6129 * doc/functions.texi (Function Portability): *printf functions on
6130 Cygwin now understand all POSIX size specifiers.
6132 2006-11-14 Bruno Haible <bruno@clisp.org>
6134 * modules/c-ctype (License): Change to LGPL.
6136 2006-11-12 Bruno Haible <bruno@clisp.org>
6138 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6139 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
6140 for GNOME libraries, for which the include files are installed in
6141 subdirectories of $prefix/include.
6143 2006-11-12 Bruno Haible <bruno@clisp.org>
6145 * m4/lib-link.m4: Require at least autoconf-2.54.
6146 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
6147 name to underscores for the --with option.
6149 2006-11-13 Bruno Haible <bruno@clisp.org>
6151 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
6152 the tests directory.
6153 Reported by Ralf Wildenhues.
6155 2006-11-13 Bruno Haible <bruno@clisp.org>
6157 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
6158 (func_emit_initmacro_end): Undo the override here.
6159 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
6160 Works around the famous automake error in coreutils.
6162 2006-11-13 Eric Blake <ebb9@byu.net>
6164 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
6165 element, not its node.
6167 2006-11-12 Bruno Haible <bruno@clisp.org>
6169 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
6170 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
6172 2006-11-12 Bruno Haible <bruno@clisp.org>
6174 * gnulib-tool: New option --local-symlink.
6175 (func_usage): Document it.
6176 (lsymbolic): New variable.
6177 (func_import, func_create_testdir): If --symlink was not specified,
6178 test whether --local-symlink was specified and the file comes from
6179 the local_gnulib_dir.
6181 2006-11-12 Bruno Haible <bruno@clisp.org>
6183 * gnulib-tool (func_ln): New function.
6184 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
6186 2006-11-12 Bruno Haible <bruno@clisp.org>
6188 Finish support for source files in subdirectories.
6189 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
6190 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
6192 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
6194 2006-11-12 Bruno Haible <bruno@clisp.org>
6196 * gnulib-tool (func_get_automake_snippet): Synthesize also an
6197 EXTRA_lib_SOURCES augmentation.
6198 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
6200 2006-11-12 Jim Meyering <jim@meyering.net>
6202 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
6203 file descriptors. This also averts a failure on systems with
6204 native openat support when a traversed directory lacks "x" access.
6205 * lib/fts_.h: Include "i-ring.h"
6206 (struct FTS) [fts_fd_ring]: New member.
6207 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
6208 (FCHDIR): Add parentheses.
6209 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
6210 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
6211 When descending, rather than simply closing the previous
6212 fts_cwd_fd value, push that file descriptor onto the ring.
6213 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
6214 (fts_open): Initialize the new fd_ring member.
6215 (fts_close): Clear the ring.
6216 (fts_safe_changedir): When possible, use our new fd_ring to skip
6217 the diropen and fstat and dev/ino comparison that would normally
6218 accompany a virtual `chdir ("..")'.
6220 * modules/fts (Depends-on): Add i-ring.
6221 * modules/i-ring: New module.
6222 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
6223 * m4/i-ring.m4: New file.
6225 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6227 * gnulib-tool (func_create_testdir): Fix replacement of
6228 `build-aux' in configure.ac. Run autotools in gltests
6230 (func_create_testdir, func_create_megatestdir, test): There is
6231 no need for '--force' in most autotool invocations in a new
6232 tree. Actually fail the whole test if any of the tools, or the
6233 configure or make stages fail.
6236 * build-aux/gnupload: Revert last change. Add pointer to upload
6237 instructions of the GNU Maintenance Instructions.
6238 Suggestion by Karl Berry.
6240 2006-11-10 Jim Meyering <jim@meyering.net>
6242 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
6244 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
6246 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
6247 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
6248 (bind_textdomain_codeset) [! ENABLE_NLS]:
6249 Evaluate all the arguments. That way, callers get compatible behavior
6250 if the arguments have side effects. Also, it avoids some GCC
6251 diagnostics in some cases; Joel E. Denny reported problems when Bison
6252 was configured with --enable-gcc-warnigs.
6254 2006-11-10 Jim Meyering <jim@meyering.net>
6256 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
6257 relevant options in CFLAGS (like -O, -fno-inline) are taken into
6260 2006-11-10 Jim Meyering <jim@meyering.net>
6262 * modules/inline: New file/module.
6263 * modules/xalloc (Files): Remove m4/inline.m4.
6264 (Depends-on): Add inline, instead.
6265 * modules/oset: Likewise.
6266 * modules/list: Likewise.
6268 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
6270 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
6271 Problem reported by Matthew Woehlke.
6273 2006-11-09 Bruno Haible <bruno@clisp.org>
6275 * lib/tempname.c (gen_tempname): Remove variant that invokes
6277 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
6280 2006-11-08 Bruno Haible <bruno@clisp.org>
6282 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
6283 to 'yes' instead of 'cross-compiling'.
6285 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
6287 * lib/quotearg.h (quotearg_free): New decl.
6288 * lib/quotearg.c (quotearg_free): New function.
6289 (slot0, nslots, slotvec0, slotvec):
6290 Now file-scope so that quotearg_free can get at them.
6292 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6295 * build-aux/gnupload: Add missing 'gnu' to example URL.
6296 Report by Karl Berry.
6298 2006-11-08 Bruno Haible <bruno@clisp.org>
6300 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
6301 Suggested by Paul Eggert.
6303 2006-11-08 Jim Meyering <jim@meyering.net>
6305 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
6306 It's already included if !_LIBC.
6307 (fts_safe_changedir): Add a comment.
6309 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
6311 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
6312 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
6315 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
6316 definitions up, to avoid colliding with change below.
6317 (static_inline) [HAVE_INLINE]: New macro.
6318 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
6319 Provide extern decls when !HAVE_INLINE. Do not define unless
6320 static_inline is defined, either by us or by xmalloc.c. Use
6321 static_inline rather than static inline.
6322 (XCALLOC): Optimize sizeof(T) = 1 case.
6323 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
6325 2006-11-07 Bruno Haible <bruno@clisp.org>
6327 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
6328 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
6330 * modules/xalloc (Files): Add m4/inline.m4.
6332 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6335 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
6336 (Miscellanous Notes): ...from this.
6338 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
6340 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6341 Mention that offsetof should be used instead of sizeof.
6344 2006-11-07 Bruno Haible <bruno@clisp.org>
6346 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
6348 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
6350 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
6351 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
6352 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
6353 (gl_tree_add_before, gl_tree_add_after):
6354 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
6355 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
6356 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
6357 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
6358 (gl_linked_add_after, gl_linked_add_at): Likewise.
6359 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
6360 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
6361 (gl_tree_add_before, gl_tree_add_after): Likewise.
6362 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
6363 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
6364 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6366 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6368 * lib/gl_oset.h: Use C comment style, not C++ comment style.
6370 2006-11-06 Bruno Haible <bruno@clisp.org>
6372 * m4/inline.m4: New file.
6373 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
6374 * modules/list (Files): Add m4/inline.m4.
6375 * modules/oset (Files): Likewise.
6377 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
6379 * lib/idcache.c: Include <stddef.h>, for offsetof.
6380 (struct userid.name): Change from char * to a flexible array member.
6382 * modules/idcache (Depends-on): Add flexmember.
6384 * MODULES.html.sh (Core language properties): New module flexmember.
6385 * modules/flexmember, m4/flexmember.m4: New files.
6387 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
6388 inline functions that are identical with the old xnmalloc_inline,
6389 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
6390 that we can avoid some unnecessary integer multiplications and
6391 divisions in the common case where the element size is known at
6393 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
6395 (xnboundedmalloc): Remove.
6396 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
6397 arguments, for consistency with rest of this header.
6398 (xcharalloc): Rewrite using XNMALLOC.
6399 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
6400 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
6401 versions have been moved to lib/xalloc.h and renamed to be the
6402 non-*_inline versions.
6403 (xmalloc, xrealloc): Implement without reference to the xnmalloc
6404 and xnrealloc functions, since those functions are now inline and
6406 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
6407 renaming described above.
6408 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
6409 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
6410 captures the dependency in AC_C_INLINE.
6412 New module canonicalize-lgpl, proposed by Charles Wilson in
6413 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
6414 with a few small changes afterwards.
6415 * MODULES.html.sh (File system functions): New module
6417 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
6418 and canonicalize_file_name.
6419 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
6420 * modules/canonicalize-lgpl: New files.
6422 2006-11-05 Bruno Haible <bruno@clisp.org>
6424 * gnulib-tool (func_import, func_create_testdir): Create directories
6425 also for files in subdirectories of lib/.
6427 2006-11-05 Bruno Haible <bruno@clisp.org>
6429 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
6432 2006-11-03 Bruno Haible <bruno@clisp.org>
6434 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
6435 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
6436 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
6437 (xnboundedmalloc): New inline function.
6438 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
6439 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
6441 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
6443 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
6444 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
6445 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
6447 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
6448 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
6450 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
6451 gl_tree_add_after): Use XMALLOC instead of xmalloc.
6452 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
6454 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
6455 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
6456 gl_tree_add_after): Use XMALLOC instead of xmalloc.
6457 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
6458 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
6459 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
6460 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
6462 2006-11-03 Bruno Haible <bruno@clisp.org>
6464 * lib/c-ctype.h [C++]: Define functions without name mangling.
6465 * lib/fwriteerror.h [C++]: Likewise.
6466 * lib/gcd.h [C++]: Likewise.
6467 * lib/linebreak.h [C++]: Likewise.
6469 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
6471 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
6472 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
6473 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
6474 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
6475 Check for functions and headers just once.
6476 Check for declaration of canonicalize_file_name.
6477 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
6479 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
6481 * gnulib-tool (func_import): Fix typo in actioncmd.
6483 2006-11-02 Bruno Haible <bruno@clisp.org>
6485 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
6486 newline sequence in the Makefile.am snippet as a space, like "make"
6488 Reported by Roger Persson <perrog@gmail.com>.
6490 2006-11-01 Bruno Haible <bruno@clisp.org>
6492 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
6493 already declared in <string.h>.
6494 * lib/strcase.h (strncasecmp): Don't declare it if yes.
6496 2006-11-01 Bruno Haible <bruno@clisp.org>
6498 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
6499 * lib/strcase.h: Include <string.h>.
6500 (strcasecmp): Define to rpl_strcasecmp here.
6502 2006-11-01 Bruno Haible <bruno@clisp.org>
6504 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
6506 2006-11-01 Eric Blake <ebb9@byu.net>
6508 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
6510 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
6512 2006-10-29 Bruno Haible <bruno@clisp.org>
6514 Make it compile in C++ mode.
6515 * lib/full-write.c (full_rw): Add a cast.
6517 2006-11-01 Bruno Haible <bruno@clisp.org>
6519 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
6521 Reported by Roger Persson <perrog@gmail.com>.
6523 2006-11-01 Eric Blake <ebb9@byu.net>
6525 * lib/getopt_.h: Fix comments.
6527 2006-10-31 Eric Blake <ebb9@byu.net>
6529 * modules/tmpdir (Depends-on): Add sys_stat.
6530 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
6531 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
6532 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
6533 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
6536 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
6538 Avoid some C++ diagnostics reported by Bruno Haible.
6539 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
6541 (quotearg_alloc): Use xcharalloc rather than xmalloc.
6542 (struct slotvec): Move to top level.
6543 (quotearg_n_options): Rewrite to avoid xmalloc.
6544 * lib/xalloc.h (xcharalloc): New function.
6545 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
6546 [defined __cplusplus]: Add function template that provides result
6547 type propagation. This part of the change is from Bruno Haible.
6549 2006-10-29 Bruno Haible <bruno@clisp.org>
6551 Make it compile in C++ mode.
6552 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
6553 * lib/strnlen1.c (strnlen1): Cast memchr result.
6554 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
6555 * lib/clean-temp.c (string_equals, string_hash): Add casts.
6556 (create_temp_dir): Rename local variable 'template'.
6557 (compile_csharp_using_sscli): Add cast.
6558 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
6559 * lib/findprog.c (find_in_path): Likewise.
6560 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
6561 * lib/wait-process.c (register_slave_subprocess): Likewise.
6563 2006-10-22 Bruno Haible <bruno@clisp.org>
6565 * modules/tsearch: New file.
6566 * lib/tsearch.h: New file.
6567 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
6568 * m4/tsearch.m4: New file.
6569 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
6571 2006-10-29 Eric Blake <ebb9@byu.net>
6573 * lib/arcfour.c: Assume config.h.
6574 * lib/arctwo.c: Likewise.
6575 * lib/base64.c: Likewise.
6576 * lib/check-version.c: Likewise.
6577 * lib/crc.c: Likewise.
6578 * lib/des.c: Likewise.
6579 * lib/gc-gnulib.c: Likewise.
6580 * lib/gc-libgcrypt.c: Likewise.
6581 * lib/gc-pbkdf2-sha1.c: Likewise.
6582 * lib/getaddrinfo.c: Likewise.
6583 * lib/getdelim.c: Likewise.
6584 * lib/getline.c: Likewise.
6585 * lib/hmac-md5.c: Likewise.
6586 * lib/hmac-sha1.c: Likewise.
6587 * lib/iconvme.c: Likewise.
6588 * lib/md2.c: Likewise.
6589 * lib/md4.c: Likewise.
6590 * lib/memxor.c: Likewise.
6591 * lib/read-file.c: Likewise.
6592 * lib/readline.c: Likewise.
6593 * lib/rijndael-alg-fst.c: Likewise.
6594 * lib/rijndael-api-fst.c: Likewise.
6595 * lib/xgetdomainname.c: Likewise.
6597 2006-10-28 Eric Blake <ebb9@byu.net>
6599 * lib/xstrndup.c: Assume config.h.
6601 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
6603 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
6604 stat-macros.h is now for our own macros, whereas stat_h is for
6605 macros in the <sys/stat.h> name space.
6606 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
6607 (STAT_MACROS_H): Remove.
6608 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
6609 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
6610 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
6611 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
6612 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
6613 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
6614 Move these macros to ...
6615 * lib/stat_.h: here. Don't include stat-macros.h.
6616 * lib/canonicalize.c: Don't include stat-macros.h.
6617 * lib/chown.c: Likewise.
6618 * lib/euidaccess.c: Likewise.
6619 * lib/file-type.c: Likewise.
6620 * lib/filemode.c: Likewise.
6621 * lib/glob.c: Likewise.
6622 * lib/isapipe.c: Likewise.
6623 * lib/lchown.c: Likewise.
6624 * lib/lstat.c: Likewise.
6625 * lib/mkdir-p.c: Likewise.
6626 * lib/rmdir.c: Likewise.
6627 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
6628 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
6629 unless mkdir isn't declared, to speed up 'configure'.
6630 Always create sys/stat.h, since it's unlikely any real sys/stat.h
6631 would define all the S_* symbols.
6632 * modules/canonicalize (Depends-on):
6633 Depend on sys_stat, not stat-macros.
6634 * modules/chown: Likewise.
6635 * modules/euidaccess: Likewise.
6636 * modules/filemode: Likewise.
6637 * modules/file-type: Likewise.
6638 * modules/glob: Likewise.
6639 * modules/isapipe: Likewise.
6640 * modules/lchown: Likewise.
6641 * modules/lstat: Likewise.
6642 * modules/mkancesdirs: Likewise.
6643 * modules/rmdir: Likewise.
6644 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
6645 * modules/modechange: Likewise.
6646 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
6647 (configure.ac): Remove gl_STAT_MACROS.
6648 * modules/sys_stat (Depends-on): Remove stat-macros.
6650 2006-10-27 Bruno Haible <bruno@clisp.org>
6652 * m4/signed.m4: Remove file.
6653 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
6655 * modules/vasnprintf (Files): Remove m4/signed.m4.
6657 2006-10-27 Bruno Haible <bruno@clisp.org>
6659 Update to GNU gettext 0.16.
6660 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
6661 m4/inttypes-h.m4, m4/signed.m4.
6662 * m4/gettext.m4: Update to GNU gettext 0.16.
6663 * m4/intl.m4: New file, from GNU gettext.
6664 * m4/intldir.m4: New file, from GNU gettext.
6665 * config/srclist.txt: Update
6667 2006-10-27 Eric Blake <ebb9@byu.net>
6669 * MODULES.html.sh: Document tempname.
6670 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
6672 (Files): Move lib/tempname.c...
6673 * modules/tempname: ...to this new module.
6674 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
6675 (gl_PREREQ_TEMPNAME): Move...
6676 * m4/tempname.m4: ...to this new file.
6677 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
6678 * modules/sys_stat (Depends-on): Add stat-macros.
6679 * lib/stat_.h (includes): Pick up stat macros.
6680 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
6681 if stat macros are broken.
6682 * lib/tempname.c (includes): No need to include "stat-macros.h".
6683 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
6684 (direxists, __path_search) [!_LIBC]: Don't compile these in
6685 gnulib; the tmpdir module covers that.
6686 * lib/tempname.h: New file.
6688 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
6690 * COPYING: Explain how gnulib-tool converts licence headers.
6691 Almost all wording by Eric Blake.
6693 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
6695 * lib/mbchar.h (is_basic_table): Make read-only.
6696 * lib/mbchar.c (is_basic_table): Likewise.
6697 Reported by John Darrington.
6699 2006-10-25 Bruno Haible <bruno@clisp.org>
6701 * lib/progname.h (set_program_name): Undefine before defining.
6703 2006-10-25 Bruno Haible <bruno@clisp.org>
6705 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
6706 false for non-gcc C++ compilers.
6707 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6709 2006-10-24 Bruno Haible <bruno@clisp.org>
6711 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
6712 iconv implementations like Irix iconv.
6714 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
6716 * modules/vararrays: New file.
6717 * m4/vararrays.m4: New file, taken from diffutils.
6718 * MODULES.html.sh: New module vararrays.
6720 2006-10-24 Karl Berry <karl@gnu.org>
6722 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
6723 Don't call GNU Unix.
6725 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6727 * users.txt: Add Libtool.
6731 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
6733 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
6734 to gnulib's policy of including config.h unconditionally.
6736 2006-10-24 Bruno Haible <bruno@clisp.org>
6738 * modules/wcwidth (Files): Add m4/wint_t.m4.
6739 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
6740 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
6742 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
6744 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
6745 to pacify GCC with some -W flags enabled. Problem reported by
6748 2006-10-24 Jim Meyering <jim@meyering.net>
6750 * MODULES.html.sh: Remove uinttostr. It's not a module.
6751 Reported by Karl Berry.
6753 2006-10-23 Bruno Haible <bruno@clisp.org>
6755 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
6757 2006-10-24 Bruno Haible <bruno@clisp.org>
6759 * lib/gl_list.h: Use C comment style, not C++ comment style.
6761 2006-10-23 Eric Blake <ebb9@byu.net>
6763 * lib/getaddrinfo.c (includes): Add missing include.
6765 2006-10-23 Bruno Haible <bruno@clisp.org>
6766 Paul Eggert <eggert@cs.ucla.edu>
6768 Ability to rename obstack_free.
6769 * lib/obstack.h (__obstack_free): New macro. Declare instead of
6771 (obstack_free): Invoke the __obstack_free macro.
6772 * lib/obstack.c (obstack_free): Use __obstack_free macro.
6774 2006-10-23 Bruno Haible <bruno@clisp.org>
6775 Paul Eggert <eggert@cs.ucla.edu>
6777 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
6778 __argc, __argv from the declaration. (They are defined as macros on
6781 2006-10-22 Bruno Haible <bruno@clisp.org>
6783 * doc/gnulib-intro.texi: New file.
6784 * doc/gnulib.texi: Include it.
6786 2006-10-21 Bruno Haible <bruno@clisp.org>
6788 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
6789 "Introduction", "Miscellanous Notes", "Particular Modules".
6791 2006-10-21 Bruno Haible <bruno@clisp.org>
6793 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6794 Change mostlyclean-local rule to avoid sh syntax error from bash
6795 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
6797 2006-10-23 Jim Meyering <jim@meyering.net>
6799 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
6800 in place of snprintf.
6802 * modules/inttostr (Files): Add lib/uinttostr.c.
6803 * lib/uinttostr.c (inttostr): New file/function.
6804 * lib/inttostr.h (uinttostr): Declare.
6805 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
6806 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
6808 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
6810 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
6812 * lib/canonicalize.c (ELOOP): Define if not already defined.
6813 Problem reported by Bruno Haible in
6814 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
6816 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
6818 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
6819 Problem reported by Perry Smith and Ville Laurikari.
6821 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
6824 2006-10-19 Bruno Haible <bruno@clisp.org>
6826 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
6829 2006-10-19 Bruno Haible <bruno@clisp.org>
6831 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
6834 2006-10-19 Bruno Haible <bruno@clisp.org>
6836 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
6838 2006-10-19 Bruno Haible <bruno@clisp.org>
6840 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
6843 2006-10-19 Bruno Haible <bruno@clisp.org>
6845 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
6848 2006-10-19 Bruno Haible <bruno@clisp.org>
6850 * gnulib-tool (func_create_testdir): Don't include ftruncate and
6851 mountlist by default.
6853 2006-10-16 Bruno Haible <bruno@clisp.org>
6855 * lib/c-strstr.c: Include c-strstr.h.
6857 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
6859 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
6862 2006-10-18 Bruno Haible <bruno@clisp.org>
6864 * lib/lock.h [C++]: Wrap definitions in extern "C".
6866 2006-10-18 Bruno Haible <bruno@clisp.org>
6868 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
6871 2006-10-18 Bruno Haible <bruno@clisp.org>
6873 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
6875 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
6877 * lib/xstrtol.h: Include gettext.h.
6878 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
6879 Problem reported by Eric Blake.
6880 * modules/xstrtol (Depends-on): Add gettext-h.
6882 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
6884 * lib/strftime.c (advance): New macro.
6885 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
6886 incomplete type, so you can't add 0 to it. Problem and patch
6887 reported by Eelco Dolstra for dietlibc.
6889 2006-10-18 Jim Meyering <jim@meyering.net>
6891 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
6892 type for a local, and rename it: s/up/user_proc/.
6894 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
6896 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
6897 READ_UTMP_USER_PROCESS.
6898 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
6900 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
6902 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
6903 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
6905 2006-10-17 Eric Blake <ebb9@byu.net>
6907 * lib/sigprocmask.c (sigprocmask): Fix typo.
6909 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
6911 * modules/clean-temp (Makefile.am): Don't add to make output...
6912 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
6915 2006-10-17 Bruno Haible <bruno@clisp.org>
6917 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
6918 differently if DEFAULT_TEXT_DOMAIN is set.
6920 2006-10-16 Bruno Haible <bruno@clisp.org>
6922 * lib/clean-temp.c: Include fwriteerror.h.
6924 2006-10-16 Bruno Haible <bruno@clisp.org>
6926 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
6928 2006-10-16 Bruno Haible <bruno@clisp.org>
6930 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
6931 * lib/sigprocmask.h: Include <sys/types.h>.
6932 (sigset_t): Use the system's definition if present.
6934 2006-10-17 Eric Blake <ebb9@byu.net>
6936 * lib/xvasprintf.c (includes): Assume config.h.
6937 * lib/xasprintf.c (includes): Likewise.
6939 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
6941 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
6942 at least as wide as intmax_t.
6944 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
6946 (Imported from Automake.)
6947 * build-aux/gnupload: Update to version 1.1 of directive file.
6949 2006-10-16 Eric Blake <ebb9@byu.net>
6951 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
6952 match Automake 1.10a.
6954 2006-10-14 Bruno Haible <bruno@clisp.org>
6956 * modules/sigprocmask: New file.
6957 * lib/sigprocmask.h: New file.
6958 * lib/sigprocmask.c: New file.
6959 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
6960 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
6961 request sigprocmask.o.
6962 (gl_PREREQ_SIGPROCMASK): New macro.
6963 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
6964 (Depends-on): Add sigprocmask.
6965 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
6966 gt_SIGNALBLOCKING. Test for 'raise' only once.
6967 * lib/fatal-signal.c: Include sigprocmask.h.
6968 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
6969 unblock_fatal_signals): Define always.
6970 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6973 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
6976 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
6977 which incorrectly sets the mode of an existing destination
6978 directory. In some cases the unpatched install-sh could do the
6979 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
6980 system. We hope this is rare in practice, but it's clearly worth
6981 fixing. Problem reported by Alex Unleashed in
6982 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
6983 Also, don't bother to check for -m bugs unless we're using -m;
6984 suggested by Stepan Kasal.
6986 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6989 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
6990 `-c' flag, so they appear at the same position as in %FASTDEP%
6991 mode in depend2.am. Fixes build failure for FreeBSD's c89,
6992 which ignores unknown options only after the first non-option.
6993 Bug report against M4 by Nelson H. F. Beebe.
6995 2006-10-13 Jim Meyering <jim@meyering.net>
6997 Fix a bug in yesterday's change.
6998 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
6999 p->fts_statp->st_dev would be used uninitialized.
7000 Ensures that we always call fts_stat on the very first entry.
7001 Miklos Szeredi reported that find -xdev stopped working.
7003 2006-10-12 Bruno Haible <bruno@clisp.org>
7005 * gnulib-tool (func_get_automake_snippet): Append an automatically
7006 computed EXTRA_DIST augmentation.
7007 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
7008 * modules/alloca-opt (Makefile.am): Likewise.
7009 * modules/allocsa (Makefile.am): Likewise.
7010 * modules/arcfour (Makefile.am): Likewise.
7011 * modules/arctwo (Makefile.am): Likewise.
7012 * modules/argmatch (Makefile.am): Likewise.
7013 * modules/argz (Makefile.am): Likewise.
7014 * modules/atexit (Makefile.am): Likewise.
7015 * modules/backupfile (Makefile.am): Likewise.
7016 * modules/byteswap (Makefile.am): Likewise.
7017 * modules/c-strtod (Makefile.am): Likewise.
7018 * modules/c-strtold (Makefile.am): Likewise.
7019 * modules/calloc (Makefile.am): Likewise.
7020 * modules/canon-host (Makefile.am): Likewise.
7021 * modules/canonicalize (Makefile.am): Likewise.
7022 * modules/chdir-long (Makefile.am): Likewise.
7023 * modules/chdir-safer (Makefile.am): Likewise.
7024 * modules/check-version (Makefile.am): Likewise.
7025 * modules/chown (Makefile.am): Likewise.
7026 * modules/cloexec (Makefile.am): Likewise.
7027 * modules/close-stream (Makefile.am): Likewise.
7028 * modules/closeout (Makefile.am): Likewise.
7029 * modules/crc (Makefile.am): Likewise.
7030 * modules/csharpexec (Makefile.am): Likewise.
7031 * modules/cycle-check (Makefile.am): Likewise.
7032 * modules/des (Makefile.am): Likewise.
7033 * modules/dev-ino (Makefile.am): Likewise.
7034 * modules/dirfd (Makefile.am): Likewise.
7035 * modules/dirname (Makefile.am): Likewise.
7036 * modules/dup2 (Makefile.am): Likewise.
7037 * modules/eealloc (Makefile.am): Likewise.
7038 * modules/error (Makefile.am): Likewise.
7039 * modules/euidaccess (Makefile.am): Likewise.
7040 * modules/exclude (Makefile.am): Likewise.
7041 * modules/exitfail (Makefile.am): Likewise.
7042 * modules/fcntl-safer (Makefile.am): Likewise.
7043 * modules/fcntl (Makefile.am): Likewise.
7044 * modules/file-type (Makefile.am): Likewise.
7045 * modules/fileblocks (Makefile.am): Likewise.
7046 * modules/filemode (Makefile.am): Likewise.
7047 * modules/filenamecat (Makefile.am): Likewise.
7048 * modules/fnmatch (Makefile.am): Likewise.
7049 * modules/fopen-safer (Makefile.am): Likewise.
7050 * modules/fpending (Makefile.am): Likewise.
7051 * modules/fprintftime (Makefile.am): Likewise.
7052 * modules/free (Makefile.am): Likewise.
7053 * modules/fsusage (Makefile.am): Likewise.
7054 * modules/ftruncate (Makefile.am): Likewise.
7055 * modules/fts (Makefile.am): Likewise.
7056 * modules/gc-arcfour (Makefile.am): Likewise.
7057 * modules/gc-des (Makefile.am): Likewise.
7058 * modules/gc-hmac-md5 (Makefile.am): Likewise.
7059 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
7060 * modules/gc-md4 (Makefile.am): Likewise.
7061 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
7062 * modules/gc-sha1 (Makefile.am): Likewise.
7063 * modules/gc (Makefile.am): Likewise.
7064 * modules/getaddrinfo (Makefile.am): Likewise.
7065 * modules/getcwd (Makefile.am): Likewise.
7066 * modules/getdelim (Makefile.am): Likewise.
7067 * modules/getdomainname (Makefile.am): Likewise.
7068 * modules/getgroups (Makefile.am): Likewise.
7069 * modules/gethostname (Makefile.am): Likewise.
7070 * modules/gethrxtime (Makefile.am): Likewise.
7071 * modules/getline (Makefile.am): Likewise.
7072 * modules/getloadavg (Makefile.am): Likewise.
7073 * modules/getlogin_r (Makefile.am): Likewise.
7074 * modules/getndelim2 (Makefile.am): Likewise.
7075 * modules/getopt (Makefile.am): Likewise.
7076 * modules/getpagesize (Makefile.am): Likewise.
7077 * modules/getpass-gnu (Makefile.am): Likewise.
7078 * modules/getpass (Makefile.am): Likewise.
7079 * modules/getsubopt (Makefile.am): Likewise.
7080 * modules/gettime (Makefile.am): Likewise.
7081 * modules/gettimeofday (Makefile.am): Likewise.
7082 * modules/getugroups (Makefile.am): Likewise.
7083 * modules/getusershell (Makefile.am): Likewise.
7084 * modules/glob (Makefile.am): Likewise.
7085 * modules/group-member (Makefile.am): Likewise.
7086 * modules/hard-locale (Makefile.am): Likewise.
7087 * modules/hash (Makefile.am): Likewise.
7088 * modules/hmac-md5 (Makefile.am): Likewise.
7089 * modules/hmac-sha1 (Makefile.am): Likewise.
7090 * modules/human (Makefile.am): Likewise.
7091 * modules/idcache (Makefile.am): Likewise.
7092 * modules/imaxabs (Makefile.am): Likewise.
7093 * modules/imaxdiv (Makefile.am): Likewise.
7094 * modules/inet_ntop (Makefile.am): Likewise.
7095 * modules/inet_pton (Makefile.am): Likewise.
7096 * modules/intprops (Makefile.am): Likewise.
7097 * modules/inttostr (Makefile.am): Likewise.
7098 * modules/inttypes (Makefile.am): Likewise.
7099 * modules/isapipe (Makefile.am): Likewise.
7100 * modules/javaversion (Makefile.am): Likewise.
7101 * modules/lchmod (Makefile.am): Likewise.
7102 * modules/lchown (Makefile.am): Likewise.
7103 * modules/localcharset (Makefile.am): Likewise.
7104 * modules/long-options (Makefile.am): Likewise.
7105 * modules/lstat (Makefile.am): Likewise.
7106 * modules/malloc (Makefile.am): Likewise.
7107 * modules/mathl (Makefile.am): Likewise.
7108 * modules/mbchar (Makefile.am): Likewise.
7109 * modules/md2 (Makefile.am): Likewise.
7110 * modules/md4 (Makefile.am): Likewise.
7111 * modules/md5 (Makefile.am): Likewise.
7112 * modules/memcasecmp (Makefile.am): Likewise.
7113 * modules/memchr (Makefile.am): Likewise.
7114 * modules/memcmp (Makefile.am): Likewise.
7115 * modules/memcoll (Makefile.am): Likewise.
7116 * modules/memcpy (Makefile.am): Likewise.
7117 * modules/memmem (Makefile.am): Likewise.
7118 * modules/memmove (Makefile.am): Likewise.
7119 * modules/mempcpy (Makefile.am): Likewise.
7120 * modules/memrchr (Makefile.am): Likewise.
7121 * modules/memset (Makefile.am): Likewise.
7122 * modules/memxor (Makefile.am): Likewise.
7123 * modules/mkancesdirs (Makefile.am): Likewise.
7124 * modules/mkdir-p (Makefile.am): Likewise.
7125 * modules/mkdir (Makefile.am): Likewise.
7126 * modules/mkdtemp (Makefile.am): Likewise.
7127 * modules/mkstemp (Makefile.am): Likewise.
7128 * modules/mktime (Makefile.am): Likewise.
7129 * modules/modechange (Makefile.am): Likewise.
7130 * modules/mountlist (Makefile.am): Likewise.
7131 * modules/nanosleep (Makefile.am): Likewise.
7132 * modules/obstack (Makefile.am): Likewise.
7133 * modules/openat (Makefile.am): Likewise.
7134 * modules/pagealign_alloc (Makefile.am): Likewise.
7135 * modules/pathmax (Makefile.am): Likewise.
7136 * modules/physmem (Makefile.am): Likewise.
7137 * modules/poll (Makefile.am): Likewise.
7138 * modules/posixtm (Makefile.am): Likewise.
7139 * modules/posixver (Makefile.am): Likewise.
7140 * modules/putenv (Makefile.am): Likewise.
7141 * modules/quote (Makefile.am): Likewise.
7142 * modules/quotearg (Makefile.am): Likewise.
7143 * modules/raise (Makefile.am): Likewise.
7144 * modules/read-file (Makefile.am): Likewise.
7145 * modules/readline (Makefile.am): Likewise.
7146 * modules/readlink (Makefile.am): Likewise.
7147 * modules/readtokens (Makefile.am): Likewise.
7148 * modules/readutmp (Makefile.am): Likewise.
7149 * modules/realloc (Makefile.am): Likewise.
7150 * modules/regex (Makefile.am): Likewise.
7151 * modules/rename-dest-slash (Makefile.am): Likewise.
7152 * modules/rename (Makefile.am): Likewise.
7153 * modules/rijndael (Makefile.am): Likewise.
7154 * modules/rmdir (Makefile.am): Likewise.
7155 * modules/rpmatch (Makefile.am): Likewise.
7156 * modules/safe-read (Makefile.am): Likewise.
7157 * modules/safe-write (Makefile.am): Likewise.
7158 * modules/same-inode (Makefile.am): Likewise.
7159 * modules/same (Makefile.am): Likewise.
7160 * modules/save-cwd (Makefile.am): Likewise.
7161 * modules/savedir (Makefile.am): Likewise.
7162 * modules/setenv (Makefile.am): Likewise.
7163 * modules/settime (Makefile.am): Likewise.
7164 * modules/sha1 (Makefile.am): Likewise.
7165 * modules/sig2str (Makefile.am): Likewise.
7166 * modules/snprintf (Makefile.am): Likewise.
7167 * modules/stat-macros (Makefile.am): Likewise.
7168 * modules/stat-time (Makefile.am): Likewise.
7169 * modules/stdbool (Makefile.am): Likewise.
7170 * modules/stdint (Makefile.am): Likewise.
7171 * modules/stdlib-safer (Makefile.am): Likewise.
7172 * modules/stpcpy (Makefile.am): Likewise.
7173 * modules/stpncpy (Makefile.am): Likewise.
7174 * modules/strcase (Makefile.am): Likewise.
7175 * modules/strcasestr (Makefile.am): Likewise.
7176 * modules/strchrnul (Makefile.am): Likewise.
7177 * modules/strcspn (Makefile.am): Likewise.
7178 * modules/strdup (Makefile.am): Likewise.
7179 * modules/strerror (Makefile.am): Likewise.
7180 * modules/strftime (Makefile.am): Likewise.
7181 * modules/strndup (Makefile.am): Likewise.
7182 * modules/strnlen (Makefile.am): Likewise.
7183 * modules/strpbrk (Makefile.am): Likewise.
7184 * modules/strsep (Makefile.am): Likewise.
7185 * modules/strstr (Makefile.am): Likewise.
7186 * modules/strtod (Makefile.am): Likewise.
7187 * modules/strtoimax (Makefile.am): Likewise.
7188 * modules/strtok_r (Makefile.am): Likewise.
7189 * modules/strtol (Makefile.am): Likewise.
7190 * modules/strtoll (Makefile.am): Likewise.
7191 * modules/strtoul (Makefile.am): Likewise.
7192 * modules/strtoull (Makefile.am): Likewise.
7193 * modules/strtoumax (Makefile.am): Likewise.
7194 * modules/strverscmp (Makefile.am): Likewise.
7195 * modules/sys_socket (Makefile.am): Likewise.
7196 * modules/sys_stat (Makefile.am): Likewise.
7197 * modules/sysexits (Makefile.am): Likewise.
7198 * modules/time_r (Makefile.am): Likewise.
7199 * modules/timegm (Makefile.am): Likewise.
7200 * modules/timespec (Makefile.am): Likewise.
7201 * modules/tmpfile-safer (Makefile.am): Likewise.
7202 * modules/trim (Makefile.am): Likewise.
7203 * modules/unistd-safer (Makefile.am): Likewise.
7204 * modules/unlinkdir (Makefile.am): Likewise.
7205 * modules/unlocked-io (Makefile.am): Likewise.
7206 * modules/userspec (Makefile.am): Likewise.
7207 * modules/utime (Makefile.am): Likewise.
7208 * modules/utimecmp (Makefile.am): Likewise.
7209 * modules/utimens (Makefile.am): Likewise.
7210 * modules/vasnprintf (Makefile.am): Likewise.
7211 * modules/vasprintf (Makefile.am): Likewise.
7212 * modules/vsnprintf (Makefile.am): Likewise.
7213 * modules/xalloc (Makefile.am): Likewise.
7214 * modules/xgetcwd (Makefile.am): Likewise.
7215 * modules/xnanosleep (Makefile.am): Likewise.
7216 * modules/xreadlink (Makefile.am): Likewise.
7217 * modules/xstrtod (Makefile.am): Likewise.
7218 * modules/xstrtol (Makefile.am): Likewise.
7219 * modules/xstrtold (Makefile.am): Likewise.
7220 * modules/yesno (Makefile.am): Likewise.
7221 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
7223 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
7225 * modules/error (Makefile.am): Distribute files through
7226 EXTRA_DIST, not lib_SOURCES.
7228 2006-10-12 Eric Blake <ebb9@byu.net>
7230 * modules/error (Makefile.am): Distribute files in /lib.
7231 * modules/obstack (Makefile.am): Likewise.
7233 2006-10-12 Bruno Haible <bruno@clisp.org>
7235 * modules/acl (Makefile.am): Distribute all files in lib/ through
7237 * modules/arcfour (Makefile.am): Likewise.
7238 * modules/arctwo (Makefile.am): Likewise.
7239 * modules/argmatch (Makefile.am): Likewise.
7240 * modules/argz (Makefile.am): Likewise.
7241 * modules/atexit (Makefile.am): Likewise.
7242 * modules/backupfile (Makefile.am): Likewise.
7243 * modules/c-strtod (Makefile.am): Likewise.
7244 * modules/c-strtold (Makefile.am): Likewise.
7245 * modules/calloc (Makefile.am): Likewise.
7246 * modules/canon-host (Makefile.am): Likewise.
7247 * modules/canonicalize (Makefile.am): Likewise.
7248 * modules/chdir-long (Makefile.am): Likewise.
7249 * modules/chdir-safer (Makefile.am): Likewise.
7250 * modules/check-version (Makefile.am): Likewise.
7251 * modules/chown (Makefile.am): Likewise.
7252 * modules/cloexec (Makefile.am): Likewise.
7253 * modules/close-stream (Makefile.am): Likewise.
7254 * modules/closeout (Makefile.am): Likewise.
7255 * modules/crc (Makefile.am): Likewise.
7256 * modules/cycle-check (Makefile.am): Likewise.
7257 * modules/des (Makefile.am): Likewise.
7258 * modules/dirfd (Makefile.am): Likewise.
7259 * modules/dirname (Makefile.am): Likewise.
7260 * modules/dup2 (Makefile.am): Likewise.
7261 * modules/euidaccess (Makefile.am): Likewise.
7262 * modules/exclude (Makefile.am): Likewise.
7263 * modules/exitfail (Makefile.am): Likewise.
7264 * modules/fcntl-safer (Makefile.am): Likewise.
7265 * modules/file-type (Makefile.am): Likewise.
7266 * modules/fileblocks (Makefile.am): Likewise.
7267 * modules/filemode (Makefile.am): Likewise.
7268 * modules/filenamecat (Makefile.am): Likewise.
7269 * modules/fnmatch (Makefile.am): Likewise.
7270 * modules/fopen-safer (Makefile.am): Likewise.
7271 * modules/fpending (Makefile.am): Likewise.
7272 * modules/fprintftime (Makefile.am): Likewise.
7273 * modules/free (Makefile.am): Likewise.
7274 * modules/fsusage (Makefile.am): Likewise.
7275 * modules/ftruncate (Makefile.am): Likewise.
7276 * modules/fts (Makefile.am): Likewise.
7277 * modules/gc (Makefile.am): Likewise.
7278 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
7279 * modules/getaddrinfo (Makefile.am): Likewise.
7280 * modules/getcwd (Makefile.am): Likewise.
7281 * modules/getdelim (Makefile.am): Likewise.
7282 * modules/getdomainname (Makefile.am): Likewise.
7283 * modules/getgroups (Makefile.am): Likewise.
7284 * modules/gethostname (Makefile.am): Likewise.
7285 * modules/gethrxtime (Makefile.am): Likewise.
7286 * modules/getline (Makefile.am): Likewise.
7287 * modules/getloadavg (Makefile.am): Likewise.
7288 * modules/getlogin_r (Makefile.am): Likewise.
7289 * modules/getopt (Makefile.am): Likewise.
7290 * modules/getpass (Makefile.am): Likewise.
7291 * modules/getpass-gnu (Makefile.am): Likewise.
7292 * modules/getsubopt (Makefile.am): Likewise.
7293 * modules/gettime (Makefile.am): Likewise.
7294 * modules/gettimeofday (Makefile.am): Likewise.
7295 * modules/getugroups (Makefile.am): Likewise.
7296 * modules/getusershell (Makefile.am): Likewise.
7297 * modules/glob (Makefile.am): Likewise.
7298 * modules/group-member (Makefile.am): Likewise.
7299 * modules/hard-locale (Makefile.am): Likewise.
7300 * modules/hash (Makefile.am): Likewise.
7301 * modules/hmac-md5 (Makefile.am): Likewise.
7302 * modules/hmac-sha1 (Makefile.am): Likewise.
7303 * modules/human (Makefile.am): Likewise.
7304 * modules/idcache (Makefile.am): Likewise.
7305 * modules/imaxabs (Makefile.am): Likewise.
7306 * modules/imaxdiv (Makefile.am): Likewise.
7307 * modules/inet_ntop (Makefile.am): Likewise.
7308 * modules/inet_pton (Makefile.am): Likewise.
7309 * modules/inttostr (Makefile.am): Likewise.
7310 * modules/isapipe (Makefile.am): Likewise.
7311 * modules/lchown (Makefile.am): Likewise.
7312 * modules/long-options (Makefile.am): Likewise.
7313 * modules/lstat (Makefile.am): Likewise.
7314 * modules/malloc (Makefile.am): Likewise.
7315 * modules/mathl (Makefile.am): Likewise.
7316 * modules/mbchar (Makefile.am): Likewise.
7317 * modules/md2 (Makefile.am): Likewise.
7318 * modules/md4 (Makefile.am): Likewise.
7319 * modules/md5 (Makefile.am): Likewise.
7320 * modules/memcasecmp (Makefile.am): Likewise.
7321 * modules/memchr (Makefile.am): Likewise.
7322 * modules/memcmp (Makefile.am): Likewise.
7323 * modules/memcoll (Makefile.am): Likewise.
7324 * modules/memcpy (Makefile.am): Likewise.
7325 * modules/memmem (Makefile.am): Likewise.
7326 * modules/memmove (Makefile.am): Likewise.
7327 * modules/mempcpy (Makefile.am): Likewise.
7328 * modules/memrchr (Makefile.am): Likewise.
7329 * modules/memset (Makefile.am): Likewise.
7330 * modules/memxor (Makefile.am): Likewise.
7331 * modules/mkancesdirs (Makefile.am): Likewise.
7332 * modules/mkdir (Makefile.am): Likewise.
7333 * modules/mkdir-p (Makefile.am): Likewise.
7334 * modules/mkdtemp (Makefile.am): Likewise.
7335 * modules/mkstemp (Makefile.am): Likewise.
7336 * modules/mktime (Makefile.am): Likewise.
7337 * modules/modechange (Makefile.am): Likewise.
7338 * modules/mountlist (Makefile.am): Likewise.
7339 * modules/nanosleep (Makefile.am): Likewise.
7340 * modules/openat (Makefile.am): Likewise.
7341 * modules/pagealign_alloc (Makefile.am): Likewise.
7342 * modules/physmem (Makefile.am): Likewise.
7343 * modules/poll (Makefile.am): Likewise.
7344 * modules/posixtm (Makefile.am): Likewise.
7345 * modules/posixver (Makefile.am): Likewise.
7346 * modules/putenv (Makefile.am): Likewise.
7347 * modules/quote (Makefile.am): Likewise.
7348 * modules/quotearg (Makefile.am): Likewise.
7349 * modules/raise (Makefile.am): Likewise.
7350 * modules/read-file (Makefile.am): Likewise.
7351 * modules/readline (Makefile.am): Likewise.
7352 * modules/readlink (Makefile.am): Likewise.
7353 * modules/readtokens (Makefile.am): Likewise.
7354 * modules/readutmp (Makefile.am): Likewise.
7355 * modules/realloc (Makefile.am): Likewise.
7356 * modules/regex (Makefile.am): Likewise.
7357 * modules/rename (Makefile.am): Likewise.
7358 * modules/rename-dest-slash (Makefile.am): Likewise.
7359 * modules/rijndael (Makefile.am): Likewise.
7360 * modules/rmdir (Makefile.am): Likewise.
7361 * modules/rpmatch (Makefile.am): Likewise.
7362 * modules/safe-read (Makefile.am): Likewise.
7363 * modules/safe-write (Makefile.am): Likewise.
7364 * modules/same (Makefile.am): Likewise.
7365 * modules/save-cwd (Makefile.am): Likewise.
7366 * modules/savedir (Makefile.am): Likewise.
7367 * modules/setenv (Makefile.am): Likewise.
7368 * modules/settime (Makefile.am): Likewise.
7369 * modules/sha1 (Makefile.am): Likewise.
7370 * modules/sig2str (Makefile.am): Likewise.
7371 * modules/snprintf (Makefile.am): Likewise.
7372 * modules/stdlib-safer (Makefile.am): Likewise.
7373 * modules/stpcpy (Makefile.am): Likewise.
7374 * modules/stpncpy (Makefile.am): Likewise.
7375 * modules/strcase (Makefile.am): Likewise.
7376 * modules/strcasestr (Makefile.am): Likewise.
7377 * modules/strchrnul (Makefile.am): Likewise.
7378 * modules/strcspn (Makefile.am): Likewise.
7379 * modules/strdup (Makefile.am): Likewise.
7380 * modules/strerror (Makefile.am): Likewise.
7381 * modules/strftime (Makefile.am): Likewise.
7382 * modules/strndup (Makefile.am): Likewise.
7383 * modules/strnlen (Makefile.am): Likewise.
7384 * modules/strpbrk (Makefile.am): Likewise.
7385 * modules/strsep (Makefile.am): Likewise.
7386 * modules/strstr (Makefile.am): Likewise.
7387 * modules/strtod (Makefile.am): Likewise.
7388 * modules/strtoimax (Makefile.am): Likewise.
7389 * modules/strtok_r (Makefile.am): Likewise.
7390 * modules/strtol (Makefile.am): Likewise.
7391 * modules/strtoll (Makefile.am): Likewise.
7392 * modules/strtoul (Makefile.am): Likewise.
7393 * modules/strtoull (Makefile.am): Likewise.
7394 * modules/strtoumax (Makefile.am): Likewise.
7395 * modules/strverscmp (Makefile.am): Likewise.
7396 * modules/time_r (Makefile.am): Likewise.
7397 * modules/timegm (Makefile.am): Likewise.
7398 * modules/tmpfile-safer (Makefile.am): Likewise.
7399 * modules/unistd-safer (Makefile.am): Likewise.
7400 * modules/unlinkdir (Makefile.am): Likewise.
7401 * modules/userspec (Makefile.am): Likewise.
7402 * modules/utime (Makefile.am): Likewise.
7403 * modules/utimecmp (Makefile.am): Likewise.
7404 * modules/utimens (Makefile.am): Likewise.
7405 * modules/vasnprintf (Makefile.am): Likewise.
7406 * modules/vasprintf (Makefile.am): Likewise.
7407 * modules/vsnprintf (Makefile.am): Likewise.
7408 * modules/xalloc (Makefile.am): Likewise.
7409 * modules/xgetcwd (Makefile.am): Likewise.
7410 * modules/xnanosleep (Makefile.am): Likewise.
7411 * modules/xreadlink (Makefile.am): Likewise.
7412 * modules/xstrtod (Makefile.am): Likewise.
7413 * modules/xstrtol (Makefile.am): Likewise.
7414 * modules/xstrtold (Makefile.am): Likewise.
7415 * modules/yesno (Makefile.am): Likewise.
7417 2006-10-12 Jim Meyering <jim@meyering.net>
7419 * m4/getloadavg.m4: Revert the change below.
7421 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
7422 lib/getloadavg.c using "ls -L", not "test -f". The latter would
7423 fail with a symlink, which is what coreutils' ./bootstrap now
7426 2006-10-12 Bruno Haible <bruno@clisp.org>
7428 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
7430 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
7431 MSVC and mingw explicitly.
7433 2006-10-11 Simon Josefsson <jas@extundo.com>
7434 Bruno Haible <bruno@clisp.org>
7436 Add support for multiple gnulib-tool invocations in the scope of a
7437 single configure.ac file.
7438 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
7439 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
7440 with the same contents as the _LIBADD variable.
7441 (func_emit_initmacro_start, func_emit_initmacro_end,
7442 func_emit_initmacro_done): New functions.
7443 (func_import, func_create_testdir): Invoke them. Allow the identifiers
7444 gl_LIBOBJS and gl_LTLIBOBJS.
7446 2006-10-11 Bruno Haible <bruno@clisp.org>
7448 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
7449 (func_create_testdir): Don't create po/Makefile.am, don't invoke
7450 autoreconf. Instead, invoke autopoint explicitly but move back the
7451 *.m4 files from gnulib.
7453 2006-10-11 Bruno Haible <bruno@clisp.org>
7455 * gnulib-tool (func_usage): Make module names after --create-testdir
7457 (func_create_testdir): If no module was specified, use nearly all
7460 2006-10-12 Jim Meyering <jim@meyering.net>
7462 Big performance improvement for fts-based tools that use FTS_NOSTAT.
7463 Avoid spurious inode-mismatch problems on non-POSIX file systems.
7464 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
7465 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
7466 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
7467 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
7468 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
7469 (fts_set_stat_required): New function.
7470 (fts_open): Defer the calls to fts_stat, if possible or requested.
7471 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
7472 into fts_stat itself.
7473 (fts_read): Perform any required (deferred) fts_stat call.
7474 (fts_build): Likewise, for the directory we're about to open and read.
7475 In the readdir loop, carefully decide whether each entry will require
7476 an eventual call to fts_stat, using dirent.d_type info if available.
7477 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
7478 a command line argument into this function. Update all callers.
7479 Map a return value of FTS_DOT to FTS_D for a command line argument.
7480 * modules/fts (Depends-on): Add d-type. Alphabetize.
7481 Thanks to Miklos Szeredi for his tenacity and for the initial
7482 bug report about "find" failing on a FUSE-based file system.
7484 * lib/fts.c (fts_open): Use consistent indentation.
7486 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
7488 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
7489 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
7490 reported by Jim Meyering. All uses of cache variables renamed
7491 to match Autoconf's.
7492 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
7495 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7496 Fix misspelling in diagnostic.
7498 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
7500 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
7501 defined. Problem reported by Matthew Woehlke.
7503 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
7504 Add support for Tandem NonStop R series.
7505 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
7508 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
7509 (has_trailing_slash): Omit size arg; all callers changed.
7510 Omit 'inline', since it doesn't help performance and we'd
7511 need to configure it.
7512 Don't count //, ///, etc. as having a trailing slash.
7513 As a side effect, this removes a C99ism reported by Matthew Woehlke.
7514 (rpl_rename_dest_slash): On failure, use rename's errno rather
7515 than (in some cases) an incorrect or junk errno.
7516 Simplify code by removing need to compute length; this does
7517 cause it to make two passes instead of one over the file name,
7520 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
7521 change, since Autoconf's version may no longer be appropriate now
7522 that we are using CVS Autoconf's version. Add support for Tandem.
7524 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
7525 Bruno Haible <bruno@clisp.org>
7527 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
7528 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
7529 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
7530 gl_AC_TYPE_LONG_LONG.
7532 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
7533 instead of HAVE_LONG_LONG.
7534 * lib/printf-args.c (printf_fetchargs): Likewise.
7535 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7536 * lib/vasnprintf.c (VASNPRINTF): Likewise.
7537 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
7538 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
7539 gl_AC_TYPE_LONG_LONG.
7541 2006-10-11 Bruno Haible <bruno@clisp.org>
7543 * m4/longlong.m4: Add comments.
7544 * m4/ulonglong.m4: Likewise.
7546 2006-10-10 Bruno Haible <bruno@clisp.org>
7548 Make it possible to #define stpcpy, strdup to aliases.
7549 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
7550 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
7552 2006-10-10 Bruno Haible <bruno@clisp.org>
7554 Make it possible to #define gcd to an alias.
7555 * lib/gcd.c: Include config.h.
7557 2006-10-10 Bruno Haible <bruno@clisp.org>
7559 Make it possible to #define c_isascii to an alias.
7560 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
7561 defined. Undefine the macros before defining them, to avoid gcc
7563 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
7564 define NO_C_CTYPE_MACROS early.
7566 2006-10-10 Bruno Haible <bruno@clisp.org>
7568 Make it possible to #define set_program_name to an alias.
7569 * lib/progname.c: Don't undefine set_program_name; instead, undefine
7570 ENABLE_RELOCATABLE early.
7572 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
7574 Port to Tandem NSK OSS, which has 64-bit signed int but at most
7575 32-bit unsigned int. Problem reported by Matthew Woehlke in:
7576 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
7577 More generally, don't assume that 64-bit signed int is available
7578 if unsigned int is, and vice versa.
7579 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
7580 unsigned symbols, not on their signed counterparts.
7581 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
7582 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
7583 (UINT64_C, UINTMAX_C):
7585 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
7586 unsigned counterparts.
7587 (Have_long_long, Unsigned): New macros.
7588 (Int): Renamed from INT.
7589 (strtoimax): Use the new macros.
7590 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
7591 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
7592 * modules/inttypes (inttypes.h): Substitute
7593 HAVE_UNSIGNED_LONG_LONG_INT.
7594 * modules/stdint (stdint.h): Likewise.
7595 (Files): Add m4/ulonglong.m4.
7597 2006-10-10 Bruno Haible <bruno@clisp.org>
7599 Fix a gcc -Wshadow warning.
7600 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
7602 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
7603 gl_linked_indexof_from_to): Likewise.
7604 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
7606 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
7608 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
7609 Reported by Eric Blake.
7611 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
7613 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
7614 for NetBSD. Problem reported by Bruno Haible.
7616 2006-10-09 Jim Meyering <jim@meyering.net>
7618 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
7619 Patch from Bruno Haible.
7621 2006-10-09 Jim Meyering <jim@meyering.net>
7623 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
7624 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
7625 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
7627 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
7629 Don't include <config.h> twice; this doesn't work in some cases,
7630 e.g., when config.h has "#define intmax_t long long int" and
7631 we include <config.h>, <inttypes.h>, <config.h> in that order.
7632 Problem reported by Matthew Woehlke in:
7633 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
7634 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
7635 * lib/fts-cycle.c: Don't include config.h.
7636 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
7637 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
7638 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
7639 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
7641 * lib/xstrtoumax.c: Likewise.
7642 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
7643 __strtol and the like, so that this module is more like its siblings.
7644 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
7645 Remove; no longer needed now that we assume gnulib inttypes.h.
7647 2006-10-08 Bruno Haible <bruno@clisp.org>
7649 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
7652 2006-10-07 Jim Meyering <jim@meyering.net>
7654 * modules/inttypes (inttypes.h): Revert what seems to have been
7655 an inadvertent part of today's change: use "|", not "/" in the
7656 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
7658 2006-10-07 Bruno Haible <bruno@clisp.org>
7660 * modules/sublist: New file.
7662 2006-10-07 Bruno Haible <bruno@clisp.org>
7664 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
7665 * modules/argz (argz.h): Likewise.
7666 * modules/arpa_inet (arpa/inet.h): Likewise.
7667 * modules/byteswap (byteswap.h): Likewise.
7668 * modules/configmake (configmake.h): Likewise.
7669 * modules/fcntl (fcntl.h): Likewise.
7670 * modules/fnmatch (fnmatch.h): Likewise.
7671 * modules/getopt (getopt.h): Likewise.
7672 * modules/glob (glob.h): Likewise.
7673 * modules/inttypes (inttypes.h): Likewise.
7674 * modules/netinet_in (netinet/in.h): Likewise.
7675 * modules/poll (poll.h): Likewise.
7676 * modules/stdbool (stdbool.h): Likewise.
7677 * modules/stdint (stdint.h): Likewise.
7678 * modules/sys_select (sys/select.h): Likewise.
7679 * modules/sys_socket (sys/socket.h): Likewise.
7680 * modules/sys_stat (sys/stat.h): Likewise.
7681 * modules/sysexits (sysexits.h): Likewise.
7682 * modules/unistd (unistd.h): Likewise.
7683 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7684 Add a "DO NOT EDIT" comment to the generated file.
7685 (func_import): Likewise for gnulib-comp.m4.
7687 2006-10-07 Bruno Haible <bruno@clisp.org>
7689 * lib/gl_sublist.h: New file.
7690 * lib/gl_sublist.c: New file.
7692 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
7694 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
7695 name (relative to the original working directory) and the file
7696 name component (relative to the temporary working directory). All
7698 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
7699 * lib/mkdir-p.c (make_dir_parents): Likewise.
7700 * lib/mkdir-p.h (make_dir_parents): Likewise.
7702 2006-10-06 Eric Blake <ebb9@byu.net>
7704 Define several macros for use by the clean-temp module.
7705 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
7706 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
7707 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
7709 * lib/clean-temp.h (close_stream_temp): New declaration.
7710 * lib/clean-temp.c (includes): Pull in headers according to what
7711 other modules are in use.
7712 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
7714 2006-10-06 Bruno Haible <bruno@clisp.org>
7716 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
7717 instead of fopen, fwriteerror.
7719 2006-10-06 Bruno Haible <bruno@clisp.org>
7721 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
7722 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
7724 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
7725 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
7726 Return an error indicator.
7727 Suggested by Eric Blake.
7729 2006-10-06 Bruno Haible <bruno@clisp.org>
7731 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
7732 Reported by Eric Blake.
7734 2006-10-06 Bruno Haible <bruno@clisp.org>
7736 * modules/closeout (Description): Mention stderr too.
7738 2006-10-06 Bruno Haible <bruno@clisp.org>
7739 and Paul Eggert <eggert@cs.ucla.edu>
7741 * lib/closeout.c (close_stdout): Also close stderr.
7742 * lib/closeout.h: Update comment.
7744 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
7746 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
7747 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
7748 * lib/dirchownmod.c: Include lchown.h.
7749 * lib/lchown.c: Don't include files that lchown.h now includes.
7750 Don't declare chown, since lchown.h now does that.
7751 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
7752 (lchown): Define to rpl_chown if lchown is declared but
7753 does not exist. Declare using a prototype if lchown is not
7754 declared. Add a copyright notice.
7755 * lib/mkstemp.h: Include <unistd.h>.
7756 * lib/openat.c: Include lchown.h.
7758 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
7759 we now test for that separately.
7760 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
7761 rather than O_NOFOLLOW, when testing whether it's possible to
7762 avoid a race condition reliably.
7763 * lib/savewd.c (savewd_chdir): Likewise.
7765 Remove macros that are no longer needed now that stdint.h is
7767 * lib/fsusage.c (UINTMAX_MAX): Remove.
7768 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
7769 * lib/utimecmp.c (SIZE_MAX): Remove.
7771 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
7773 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
7774 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
7777 2006-10-05 Bruno Haible <bruno@clisp.org>
7779 * lib/gl_list.h (gl_sortedlist_search_from_to,
7780 gl_sortedlist_indexof_from_to): New declarations.
7781 (gl_list_implementation): New fields sortedlist_search_from_to,
7782 sortedlist_indexof_from_to.
7783 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
7785 * lib/gl_list.c (gl_sortedlist_search_from_to,
7786 gl_sortedlist_indexof_from_to): New functions.
7787 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
7789 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
7790 (gl_array_sortedlist_search_from_to): New function.
7791 (gl_array_list_implementation): Update.
7792 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
7794 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
7795 (gl_carray_sortedlist_search_from_to): New function.
7796 (gl_carray_list_implementation): Update.
7797 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
7798 gl_linked_sortedlist_indexof_from_to): New functions.
7799 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7800 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7801 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
7802 gl_tree_sortedlist_indexof_from_to): New functions.
7803 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7804 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7806 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7807 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
7810 2006-10-05 Bruno Haible <bruno@clisp.org>
7812 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
7813 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
7814 (struct gl_list_implementation): Add fields search_from_to,
7815 indexof_from_to. Remove fields search, indexof.
7816 (gl_list_search): Use the search_from_to method.
7817 (gl_list_search_from, gl_list_search_from_to): New functions.
7818 (gl_list_indexof): Use the indexof_from_to method.
7819 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
7820 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
7821 (gl_list_search_from, gl_list_search_from_to): New functions.
7822 (gl_list_indexof): Use the indexof_from_to method.
7823 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
7824 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
7825 gl_array_indexof. Add start_index, end_index arguments.
7826 (gl_array_search_from_to): Renamed from gl_array_search. Add
7827 start_index, end_index arguments.
7828 (gl_array_remove, gl_array_list_implementation): Update.
7829 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
7830 gl_carray_indexof. Add start_index, end_index arguments.
7831 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
7832 start_index, end_index arguments.
7833 (gl_carray_remove, gl_carray_list_implementation): Update.
7834 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
7835 gl_linked_search. Add start_index, end_index arguments.
7836 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
7837 start_index, end_index arguments.
7838 (gl_linked_remove): Update.
7839 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7840 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7841 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
7843 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
7844 gl_tree_search. Add start_index, end_index arguments.
7845 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
7846 start_index, end_index arguments.
7847 (gl_tree_remove): Update.
7848 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7849 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7850 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
7852 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
7853 gl_tree_search. Add start_index, end_index arguments.
7854 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
7855 start_index, end_index arguments.
7856 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7858 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7860 2006-10-05 Bruno Haible <bruno@clisp.org>
7862 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
7864 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
7865 fwriteerror_temp): New declarations.
7866 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
7867 (descriptors): New variable.
7868 (cleanup): First, close the descriptors.
7869 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
7870 fclose_temp, fwriteerror_temp): New functions.
7872 2006-10-04 Jim Meyering <jim@meyering.net>
7874 * lib/fts.c (fts_open): Tiny comment change.
7876 2006-10-04 Bruno Haible <bruno@clisp.org>
7878 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
7879 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
7881 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
7882 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
7884 (gl_LOCK): Require gl_LOCK_BODY.
7886 2006-10-04 Bruno Haible <bruno@clisp.org>
7888 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
7889 (gl_oset_search_atleast): New declaration.
7890 (struct gl_oset_implementation): Add field 'search_atleast'.
7891 (gl_oset_search_atleast): New inline function.
7892 * lib/gl_oset.c (gl_oset_search_atleast): New function.
7893 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
7894 (gl_array_oset_implementation): Update.
7895 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
7896 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
7897 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
7899 2006-10-04 Bruno Haible <bruno@clisp.org>
7901 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
7903 2006-10-03 Bruno Haible <bruno@clisp.org>
7905 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
7906 from gl_avltreehash_list_implementation.
7908 2006-10-03 Bruno Haible <bruno@clisp.org>
7910 * lib/gl_oset.c (gl_oset_add): Fix return type.
7912 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
7914 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
7916 2006-10-02 Eric Blake <ebb9@byu.net>
7918 * modules/strnlen (Depends-on): Add extensions.
7920 2006-10-02 Eric Blake <ebb9@byu.net>
7922 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
7923 definition in 2.60+.
7925 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
7927 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
7930 2006-10-02 Bruno Haible <bruno@clisp.org>
7932 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
7933 to the AUTOMAKE_OPTIONS.
7934 Reported by Jim Meyering.
7936 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
7938 Work around bug in Solaris 10 /proc file system:
7939 /proc/self/fd/NNN/.. isn't the parent directory of
7940 the directory whose file descriptor is NNN. This needs to
7941 be worked around at run time, not compile time, since a
7942 program might be built on Solaris 8, where things work, and
7944 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
7945 to use the following interface instead:
7946 (OPENAT_BUFFER_SIZE): New macro.
7947 (openat_proc_name): New function.
7948 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
7949 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
7951 * lib/openat-proc.c: New file.
7952 * modules/openat (Files): Add lib/openat-proc.c.
7953 (Depends-on): Add same-inode, stdbool.
7954 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
7956 2006-09-29 Bruno Haible <bruno@clisp.org>
7958 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
7959 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
7960 argument. Set stdout_closed before testing for ferror, not after.
7961 (fwriteerror, fwriteerror_no_ebadf): New functions.
7963 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7965 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
7967 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
7969 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
7970 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
7972 2006-09-28 Jim Meyering <jim@meyering.net>
7974 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
7977 2006-09-28 Bruno Haible <bruno@clisp.org>
7979 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
7980 * modules/linkedhash-list (Depends-on): Likewise.
7981 * modules/rbtreehash-list (Depends-on): Likewise.
7983 2006-09-28 Bruno Haible <bruno@clisp.org>
7985 * lib/strndup.h: Simplify the redefinition of strndup.
7986 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
7987 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
7989 2006-09-28 Bruno Haible <bruno@clisp.org>
7991 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
7992 * lib/gl_linkedhash_list.c: Likewise.
7993 * lib/gl_rbtreehash_list.c: Likewise.
7995 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
7997 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
8000 * lib/__fpending.h: Don't include <stdio_ext.h> unless
8001 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
8002 it causes <stdio_ext.h> to cause a compile-time error.
8003 Problem reported by Nelson H. F. Beebe.
8004 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
8005 of HAVE_DECL___PENDING.
8007 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
8008 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
8011 2006-09-27 Jim Meyering <jim@meyering.net>
8013 This file could end up with a definition for a function
8014 named __strndup, rather than rpl_strndup on a system with
8015 incomplete weak_alias support.
8016 * lib/strndup.c (strndup): Rename from __strndup.
8017 Remove #defines that used to map __strndup to strndup.
8018 Don't use K&R prototypes.
8019 Remove LIBC-related code, since this file is not sync'd with glibc.
8020 * lib/strndup.h: Revamp, accordingly.
8021 * m4/strndup.m4: Modernize.
8023 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
8025 * modules/savewd (Depends-on): Add 'raise'.
8026 * lib/savewd.c: Include <signal.h>, for 'raise'.
8028 2006-09-26 Jim Meyering <jim@meyering.net>
8030 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
8031 when we detect Darwin 8.7.0's acl_get_file bug.
8032 Rearrange to perform the new (below) run-test while $LIBS
8033 contains any acl-related library. Set USE_ACL at the end.
8034 (gl_ACL_GET_FILE): New function.
8036 2006-09-26 Eric Blake <ebb9@byu.net>
8038 * lib/verror.c: Include <config.h> unconditionally.
8040 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
8042 * modules/clock-time (Maintainer): Add self.
8043 * modules/getlogin_r (Depends-on): Add extensions.
8045 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8047 * modules/clock-time: New module.
8048 * modules/nanosleep (Depends-on): Add clock-time.
8049 * modules/gethrxtime (Depends-on): Likewise.
8050 * modules/gettime (Depends-on): Likewise.
8051 * modules/settime (Depends-on): Likewise.
8053 * modules/fts-lgpl: Depend on openat.
8054 * modules/mkancesdirs: Depend on savewd.
8055 * modules/mkdir-p: Likewise.
8057 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8059 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
8061 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
8062 `gl_have_arbitrary_file_name_length_limit' to
8063 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
8064 actually works between configure runs.
8066 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8067 Bruno Haible <bruno@clisp.org>
8069 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
8071 2006-09-25 Jim Meyering <jim@meyering.net>
8073 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
8074 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
8076 2006-09-25 Eric Blake <ebb9@byu.net>
8078 * gnulib-tool (func_import, func_create_testdir): Fix typos in
8079 exec's in 2006-09-18 patch when shuffling fds.
8081 2006-09-25 Bruno Haible <bruno@clisp.org>
8083 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
8084 Reported by Jim Meyering.
8086 2006-09-24 Jim Meyering <jim@meyering.net>
8088 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
8089 compare a pointer against a literal "0". That caused failures with
8090 at least HP-UX's hpcc.
8092 2006-09-22 Simon Josefsson <jas@extundo.com>
8096 * modules/gc-hmac-sha1:
8097 * modules/gc-hmac-md5:
8099 * modules/gc-arcfour: Distribute more files.
8101 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8103 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
8104 (gl_linked_iterator_from_to): Initialize struct completely.
8105 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
8106 (gl_tree_iterator_from_to): Likewise
8107 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
8108 * lib/gl_array_list.c [lint] (gl_array_iterator)
8109 (gl_array_iterator_from_to): Likewise.
8110 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
8111 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
8112 (gl_carray_iterator_from_to): Likewise.
8114 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
8115 * lib/md4.c (md4_process_block): Remove unused variable.
8116 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
8117 parentheses for clarity.
8119 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8121 * modules/bison-i18n (Depends-on): Add gettext.
8123 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8125 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
8126 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8127 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
8128 also add missing comma that caused broken test.
8129 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
8130 stdlib.h, for `abort'.
8131 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
8133 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
8134 include unistd.h if present, for `rmdir'.
8135 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
8137 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
8138 in the process include standard headers for prototypes.
8139 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
8140 gets declared on GNU/Linux.
8141 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
8142 unistd.h, for `rmdir'.
8143 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
8145 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
8147 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
8149 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
8151 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8153 * gnulib-tool (func_version): Create output all at once. This
8154 may help avoid triggering unnecessary SIGPIPEs, and at any
8155 rate it doesn't hurt.
8157 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8158 Bruno Haible <bruno@clisp.org>
8160 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
8161 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8162 * m4/signed.m4 (bh_C_SIGNED): Likewise.
8164 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
8165 (gl_FUNC_VASPRINTF): Invoke it.
8167 2006-09-22 Bruno Haible <bruno@clisp.org>
8169 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
8170 getloadavg.c as first argument.
8172 2006-09-22 Bruno Haible <bruno@clisp.org>
8174 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
8175 at the beginning of the gl_INIT macro.
8176 * modules/getloadavg (configure.ac): Pass $gl_source_base to
8179 2006-09-22 Bruno Haible <bruno@clisp.org>
8181 * gnulib-tool (func_create_megatestdir): Don't include the config-h
8183 Suggested by Ralf Wildenhues.
8185 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
8187 Import this patch from libc:
8189 2006-09-06 Jakub Jelinek <jakub@redhat.com>
8191 * lib/regex_internal.c (re_string_reconstruct): Handle
8192 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8193 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8194 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8195 re_string_context_at.
8197 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
8199 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
8200 gl_REGEX now does it for us.
8201 (gl_REGEX): Add test taken from
8202 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
8204 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
8205 Check that large offsets work. Modernize Autoconf usages.
8206 Prefer "yes" to mean a good thing rather than a bad.
8207 Don't put "#define mkstemp" in config.h, as this might interfere
8208 with standard system headers that "#define mkstemp mkstemp64".
8210 * modules/mkstemp (Depends-on): Add extensions, so that
8211 mkstemp is visible on some platforms.
8212 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
8213 (Include): Change to "mkstemp.h" from <stdlib.h>.
8214 (Files): Add mkstemp.h.
8216 * lib/mkstemp.h: New file, since some standard headers
8218 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
8219 Include "mkstemp.h".
8220 Make the _LIBC code resemble glibc original more,
8221 e.g., use K&R style.
8222 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
8223 (mkstemp): Remove, since mkstemp.h does this for us.
8224 * lib/stdlib--.h: Include mkstemp.h.
8226 Import this patch from libc:
8228 2006-04-07 Ulrich Drepper <drepper@redhat.com>
8230 * lib/tempname.c (__gen_tempname): Change attempts_min
8231 into a macro. Use preprocessor to decide how to initialize
8232 attempts [Coverity CID 67].
8234 2006-09-20 Bruno Haible <bruno@clisp.org>
8236 * lib/mkdtemp.c: Import from libc.
8237 2006-04-07 Ulrich Drepper <drepper@redhat.com>
8238 * sysdeps/posix/tempname.c (__gen_tempname): Change
8239 attempts_min into a macro. Use preprocessor to decide how to
8240 initialize attempts [Coverity CID 67].
8241 2001-11-27 Paul Eggert <eggert@twinsun.com>
8242 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8243 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8245 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8247 * gnulib-tool (func_exit): New function, to allow to pass the
8248 exit status portably through the trap. Use everywhere.
8249 (--help, --version): Signal a write error.
8250 (trap): catch SIGPIPE, for write errors.
8251 Exit at the end of the trap, with the correct exit status.
8253 2006-09-19 Karl Berry <karl@gnu.org>
8255 * doc/gnulib.texi: note about the license texinfo files.
8257 2006-09-19 Eric Blake <ebb9@byu.net>
8259 * gnulib-tool: Avoid space-tab.
8261 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
8263 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
8264 that prevented coreutils 6.1 from building. Problem reported
8265 by Petter Reinholdtsen.
8267 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
8269 * gnulib-tool (avoidlist): Fix typo that broke options like
8270 --avoid=lock that are used by coreutils bootstrap.
8272 2006-09-18 Mark D. Baushke <mdb@gnu.org>
8274 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
8275 more systematically.
8277 2006-09-18 Jim Meyering <jim@meyering.net>
8279 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
8281 2006-09-18 Bruno Haible <bruno@clisp.org>
8283 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
8285 2006-09-18 Bruno Haible <bruno@clisp.org>
8287 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
8288 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
8289 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
8290 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
8291 * m4/gettext.m4: Require autoconf >= 2.52.
8292 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
8293 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
8294 of gl_cv_header_inttypes_h.
8296 2006-09-18 Bruno Haible <bruno@clisp.org>
8298 * lib/javaversion.c: Include configmake.h.
8300 2006-09-18 Bruno Haible <bruno@clisp.org>
8302 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
8303 avoid that the while loops be executed in a subshell.
8305 2006-09-18 Bruno Haible <bruno@clisp.org>
8307 * MODULES.html.sh (func_module): Break long lines.
8308 Suggested by Bruce Korb <bkorb@gnu.org>.
8310 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8312 Speed up by a factor of 1.12.
8313 * gnulib-tool (nl): New variable.
8314 (func_import): Rewrite include directive extraction to only read each
8317 2006-09-17 Bruno Haible <bruno@clisp.org>
8319 * modules/javaversion (Makefile.am): Remove DEFS setting.
8320 (Depends-on): Add configmake, for PKGDATADIR definition.
8322 2006-09-17 Bruno Haible <bruno@clisp.org>
8324 * gnulib-tool (func_create_testdir): Rewrite all files at once.
8326 2006-09-17 Bruno Haible <bruno@clisp.org>
8328 * gnulib-tool (func_append): New function, stolen from libtool.m4.
8329 (func_modules_transitive_closure, func_modules_add_dummy,
8330 func_modules_to_filelist, func_import, func_create_testdir,
8331 func_create_megatestdir, ...): Use it wherever possible.
8332 Suggested by Ralf Wildenhues.
8334 2006-09-16 Karl Berry <karl@gnu.org>
8336 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
8337 to avoid sectioning errors.
8338 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
8339 [ifinfo]: blank line after @center-ed titles.
8340 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
8341 Spell FSF address consistently with others.
8342 (These changes approved by rms.)
8344 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8346 Speed up by a factor of 1.61.
8347 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
8348 already checked module names again.
8350 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8352 Speed up by a factor of 1.13.
8353 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
8354 for new_files, and the input to func_add_or_update.
8356 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8358 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
8359 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
8361 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
8363 * modules/mkancesdirs (Depends-on): Add fcntl.
8364 * modules/savewd: New file.
8365 * MODULES.html.sh (File system functions): Add savewd.
8367 * modules/configmake (Makefile.am): Add support for the
8368 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
8370 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
8372 * m4/savewd.m4: New file.
8374 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
8376 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
8377 (dirchownmod): New arg FD. All callers changed.
8378 Use FD rather than opening the directory ourself, as opening is
8379 now the caller's responsibility.
8380 * lib/dirchownmod.h: Likewise.
8381 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
8382 hosts that require <sys/types.h> before <sys/stat.h>. Include
8383 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
8385 (mkancesdirs): Return length of prefix of FILE that has already
8386 been made, or -2 if there is a child doing the work. Redo
8387 algorithm so that it is O(N) rather than O(N**2). Optimize away
8388 ".", and treat ".." specially since it might stray back into
8389 already-created areas. Use a subprocess if necessary. New arg
8390 WD; all users changed. MAKE_DIR function should now return 1
8391 if it creates a directory that is not readable. Return -2 if
8392 a child process is spun off.
8393 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
8394 Adjust signature to match code.
8395 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
8396 (make_dir_parents): Use a subprocess if necessary. New arg WD;
8398 * lib/savewd.c, lib/savewd.h: New files.
8400 2006-09-15 Jim Meyering <jim@meyering.net>
8402 * modules/rename-dest-slash: New module.
8403 * MODULES.html.sh (posix_compat): Add it here.
8405 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
8407 2006-09-15 Jim Meyering <jim@meyering.net>
8409 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
8412 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
8414 2006-09-15 Jim Meyering <jim@meyering.net>
8416 * lib/rename-dest-slash.c (has_trailing_slash): Use
8417 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
8418 (rpl_rename_dest_slash): Perform the cheaper trailing slash
8419 test before testing whether SRC is a directory.
8420 Suggestions from Bruno Haible.
8422 Avoid a warning about an unused variable.
8423 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
8424 into the #ifdef block where it's used.
8426 * lib/rename-dest-slash.c: New file.
8428 2006-09-14 Bruno Haible <bruno@clisp.org>
8430 * lib/allocsa.c: Include <config.h> unconditionally.
8431 * lib/asnprintf.c: Likewise.
8432 * lib/asprintf.c: Likewise.
8433 * lib/c-strcasecmp.c: Likewise.
8434 * lib/c-strcasestr.c: Likewise.
8435 * lib/c-strncasecmp.c: Likewise.
8436 * lib/c-strstr.c: Likewise.
8437 * lib/classpath.c: Likewise.
8438 * lib/clean-temp.c: Likewise.
8439 * lib/concatpath.c: Likewise.
8440 * lib/copy-file.c: Likewise.
8441 * lib/csharpcomp.c: Likewise.
8442 * lib/csharpexec.c: Likewise.
8443 * lib/execute.c: Likewise.
8444 * lib/fatal-signal.c: Likewise.
8445 * lib/findprog.c: Likewise.
8446 * lib/fwriteerror.c: Likewise.
8447 * lib/gl_array_list.c: Likewise.
8448 * lib/gl_array_oset.c: Likewise.
8449 * lib/gl_avltree_list.c: Likewise.
8450 * lib/gl_avltree_oset.c: Likewise.
8451 * lib/gl_avltreehash_list.c: Likewise.
8452 * lib/gl_carray_list.c: Likewise.
8453 * lib/gl_linked_list.c: Likewise.
8454 * lib/gl_linkedhash_list.c: Likewise.
8455 * lib/gl_list.c: Likewise.
8456 * lib/gl_oset.c: Likewise.
8457 * lib/gl_rbtree_list.c: Likewise.
8458 * lib/gl_rbtree_oset.c: Likewise.
8459 * lib/gl_rbtreehash_list.c: Likewise.
8460 * lib/imaxabs.c: Likewise.
8461 * lib/imaxdiv.c: Likewise.
8462 * lib/javacomp.c: Likewise.
8463 * lib/javaexec.c: Likewise.
8464 * lib/javaversion.c: Likewise.
8465 * lib/linebreak.c: Likewise.
8466 * lib/localcharset.c: Likewise.
8467 * lib/lock.c: Likewise.
8468 * lib/mbchar.c: Likewise.
8469 * lib/mbswidth.c: Likewise.
8470 * lib/mkdtemp.c: Likewise.
8471 * lib/pipe.c: Likewise.
8472 * lib/printf-args.c: Likewise.
8473 * lib/printf-parse.c: Likewise.
8474 * lib/progname.c: Likewise.
8475 * lib/progreloc.c: Likewise.
8476 * lib/readlink.c: Likewise.
8477 * lib/sh-quote.c: Likewise.
8478 * lib/stpcpy.c: Likewise.
8479 * lib/stpncpy.c: Likewise.
8480 * lib/strcasecmp.c: Likewise.
8481 * lib/strcasestr.c: Likewise.
8482 * lib/strcspn.c: Likewise.
8483 * lib/striconv.c: Likewise.
8484 * lib/strncasecmp.c: Likewise.
8485 * lib/strnlen1.c: Likewise.
8486 * lib/strstr.c: Likewise.
8487 * lib/strtok_r.c: Likewise.
8488 * lib/tls.c: Likewise.
8489 * lib/tmpdir.c: Likewise.
8490 * lib/unicodeio.c: Likewise.
8491 * lib/unsetenv.c: Likewise.
8492 * lib/vasnprintf.c: Likewise.
8493 * lib/vasprintf.c: Likewise.
8494 * lib/wait-process.c: Likewise.
8495 * lib/xallocsa.c: Likewise.
8496 * lib/xsetenv.c: Likewise.
8497 * lib/xstriconv.c: Likewise.
8499 2006-09-13 Simon Josefsson <jas@extundo.com>
8501 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
8502 that internally, suggested by Ralf Wildenhues
8503 <Ralf.Wildenhues@gmx.de>.
8505 2006-09-13 Simon Josefsson <jas@extundo.com>
8507 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
8509 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8511 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
8513 * lib/_fpending.c: Include <config.h> unconditionally, since we no
8514 longer worry about uses that don't define HAVE_CONFIG_H.
8515 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
8516 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
8517 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
8518 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
8519 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
8520 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
8521 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
8522 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
8523 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
8524 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
8525 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
8526 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
8527 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
8528 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
8529 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
8530 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
8531 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
8532 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
8533 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
8534 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
8535 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
8536 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
8537 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
8538 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
8539 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
8540 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
8541 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
8542 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
8543 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
8544 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
8545 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
8546 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
8547 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
8548 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
8549 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
8550 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
8551 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
8552 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
8553 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
8554 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
8555 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
8558 2006-09-13 Eric Blake <ebb9@byu.net>
8560 * lib/getopt.c: Fix typo in last commit.
8562 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
8564 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
8567 2006-09-12 Jim Meyering <jim@meyering.net>
8569 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
8570 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
8571 Reported by Nelson H. F. Beebe.
8573 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
8575 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
8576 program_invocation_name and program_invocation_short_name are
8578 * lib/argp-namefrob.h: Move declarations of program_invocation_name
8579 and program_invocation_short_name to argp.h, so they are visible
8581 * lib/argp.h: Likewise
8583 2006-09-10 Bruno Haible <bruno@clisp.org>
8585 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
8586 m4/inttypes_h.m4, m4/uintmax_t.m4.
8588 2006-09-10 Bruno Haible <bruno@clisp.org>
8590 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
8591 gl_AC_TYPE_UINTMAX_T.
8593 2006-09-10 Bruno Haible <bruno@clisp.org>
8595 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
8597 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
8599 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
8600 convention. Text proposed by Bruno Haible.
8601 (struct argp_option): Document the use of N_() wrappers.
8603 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
8604 '\v', and translate the two parts separately, instead of feeding
8605 the whole string to gettext. This allows to exclude
8606 '\v' from the strings visible to the translator by writing doc
8607 strings as N_("..") "\v" N_("..").
8609 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
8611 * config/srclist.txt: Undo latest change; the bug was fixed.
8613 2006-09-09 Bruno Haible <bruno@clisp.org>
8615 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
8616 assignments if building a library without libtool.
8617 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
8618 in func_emit_lib_Makefile_am.
8619 (func_import): When building a static library libfoo.a, arrange to
8620 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
8621 (func_create_testdir): Likewise.
8622 * modules/gc (configure.ac, Makefile.am): If building statically,
8623 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
8624 * modules/iconvme (configure.ac, Makefile.am): Likewise.
8625 * modules/striconv (configure.ac, Makefile.am): Likewise.
8626 Based on a suggestion by Ralf Wildenhues.
8628 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
8630 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8631 Check for unistd.h too, since Autoconf doesn't assume POSIX.
8634 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
8635 Add year_2050_test to catch glibc bug 2821
8636 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
8638 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
8639 Prefer #ifdef to #if.
8641 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
8642 Return from 'main' instead of calling 'exit'.
8644 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
8646 * lib/mktime.c (guess_time_tm): Fix bug where mktime
8647 returned the maximum time_t value rather than (time_t) -1.
8648 Problem originally reported by William Bardwell
8649 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
8651 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
8653 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
8656 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
8658 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
8661 2006-09-08 Jim Meyering <jim@meyering.net>
8663 Don't make generated files read-only. That would bother too many
8664 people. However, do retain the ability to work when targets are
8665 read-only: remove the destination and temporary files before writing
8666 them (when generated via sed or echo), or by using the -f option for
8667 both cp and mv commands. Suggestion to use -f from Paul Eggert.
8668 * modules/alloca-opt, modules/argz, modules/arpa_inet:
8669 * modules/byteswap, modules/configmake, modules/fcntl:
8670 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
8671 * modules/localcharset, modules/netinet_in, modules/poll:
8672 * modules/stdbool, modules/stdint, modules/sys_select:
8673 * modules/sys_socket, modules/sys_stat, modules/sysexits:
8675 2006-09-08 Jim Meyering <jim@meyering.net>
8677 Avoid new build failure on FreeBSD 6.0.
8678 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
8679 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
8680 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
8682 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8684 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
8686 2006-09-07 Jim Meyering <jim@meyering.net>
8688 Fix global typo in last change: use chmod u-w, not chmod u-x.
8689 Spotted by Paul Eggert and Bruce Korb.
8690 * modules/alloca-opt, modules/argz, modules/arpa_inet:
8691 * modules/byteswap, modules/configmake, modules/fcntl:
8692 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
8693 * modules/localcharset, modules/netinet_in, modules/poll:
8694 * modules/stdbool, modules/stdint, modules/sys_select:
8695 * modules/sys_socket, modules/sys_stat, modules/sysexits:
8697 2006-09-06 Jim Meyering <jim@meyering.net>
8699 Make generated files be read-only.
8700 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
8701 Ensure that each generated file is now read-only.
8702 * modules/argz: Likewise.
8703 * modules/arpa_inet: Likewise.
8704 * modules/byteswap: Likewise.
8705 * modules/configmake: Likewise.
8706 * modules/fcntl: Likewise.
8707 * modules/fnmatch: Likewise.
8708 * modules/getopt: Likewise.
8709 * modules/glob: Likewise.
8710 * modules/inttypes: Likewise.
8711 * modules/netinet_in: Likewise.
8712 * modules/poll: Likewise.
8713 * modules/stdbool: Likewise.
8714 * modules/stdint: Likewise.
8715 * modules/sys_select: Likewise.
8716 * modules/sys_socket: Likewise.
8717 * modules/sys_stat: Likewise.
8718 * modules/sysexits: Likewise.
8719 * modules/localcharset: Same as above, but continue using temporary
8720 file named "t-$@" (why different?) rather than the "$@-t" used
8723 * modules/sysexits (Makefile.am): Replace literal occurrences
8724 of "sysexit.h" more readable, and more consistent, "$@".
8726 2006-09-06 Bruno Haible <bruno@clisp.org>
8728 * modules/striconv: New file.
8729 * modules/xstriconv: New file.
8730 * MODULES.html.sh (Internationalization functions): Add striconv,
8733 2006-09-06 Bruno Haible <bruno@clisp.org>
8735 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
8736 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
8737 not using libtool correctly.
8739 2006-09-06 Bruno Haible <bruno@clisp.org>
8741 * lib/striconv.h: New file.
8742 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
8744 * lib/xstriconv.h: New file.
8745 * lib/xstriconv.c: New file.
8747 2006-09-06 Bruno Haible <bruno@clisp.org>
8749 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8752 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8754 * lib/argz_.h: Sync from Libtool.
8756 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
8757 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8759 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
8761 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
8763 * modules/trim: New file.
8765 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
8767 * lib/trim.h: New file.
8768 * lib/trim.c: New file.
8770 2006-09-05 Bruno Haible <bruno@clisp.org>
8772 * MODULES.html.sh (String handling): Add trim.
8774 2006-09-04 Karl Berry <karl@gnu.org>
8776 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
8779 2006-09-03 Bruno Haible <bruno@clisp.org>
8781 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
8784 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
8786 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
8787 not gl_GETLOADAVG. Omit unneeded semicolons.
8788 Problems reported by Ralf Wildenhues in
8789 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
8790 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
8791 at the end, which is the usual gnulib style.
8793 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
8794 of doing all the work ourselves.
8795 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
8796 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
8798 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
8800 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
8801 Problem reported by Ralf Wildenhues in
8802 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
8804 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
8805 HAVE_STRUCT_STATFS_F_FSTYPENAME.
8807 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
8809 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
8810 yesterday's patch by changing test -n to test -z.
8812 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
8814 * modules/getloadavg (Files): Add m4/getloadavg.m4.
8815 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
8816 the former is now obsolescent.
8818 * modules/chdir-long (Depends-on): Add fcntl.
8820 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
8822 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
8823 obsolescent, and programs should use gnulib instead.
8824 * m4/getloadavg.m4: New file, with contents taken from Autoconf
8825 but with prefixes changed.
8827 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
8829 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
8830 or stdbool.h, because they might not exist while configuring.
8832 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
8833 Don't include unistd.h or limits.h; not needed, since chdir-long.h
8835 (O_DIRECTORY): Remove.
8837 2006-08-31 Eric Blake <ebb9@byu.net>
8839 * gnulib-tool: Don't let emacs change spaces to TAB.
8841 2006-08-31 Bruno Haible <bruno@clisp.org>
8843 * gnulib-tool: When calling func_import more than once, do it in a
8845 Reported by Eric Blake <ebb9@byu.net>.
8847 2006-08-31 Bruno Haible <bruno@clisp.org>
8849 * gnulib-tool (nl): Remove variable.
8850 (sed_transform_lib_file): Use more robust test for config-h module.
8851 (func_import): Fix typo in 2006-08-25 patch.
8853 2006-08-31 Bruno Haible <bruno@clisp.org>
8855 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
8856 specified, augment Makefile.am variables instead of assigning them.
8858 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
8860 Work around a bug in both the Linux and SunOS 64-bit kernels:
8861 nanosleep mishandles sleeps for longer than 2**31 seconds.
8862 Problem reported by Frank v Waveren in
8863 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
8864 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
8865 Check for nanosleep bug.
8866 (LIB_NANOSLEEP): Append clock_gettime library if needed.
8868 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
8870 Work around a bug in both the Linux and SunOS 64-bit kernels:
8871 nanosleep mishandles sleeps for longer than 2**31 seconds.
8872 Problem reported by Frank v Waveren in
8873 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
8874 * lib/nanosleep.c (BILLION): New constant.
8875 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
8876 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
8879 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
8881 * modules/nanosleep (Depends-on): Add gettime.
8883 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
8884 and Simon Josefsson <jas@extundo.com>
8885 and Oskar Liljeblad <oskar@osk.mine.nu>
8887 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
8888 * gnulib-tool (func_import): New license type 'unmodifiable license
8890 * modules/fdl: Use it. Longer description.
8891 * module/gpl, module/lgpl: New files.
8893 2006-08-30 Jim Meyering <jim@meyering.net>
8895 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
8896 shadowing the parameter.
8898 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8902 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8904 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
8905 sharing with gnulib. Report by Eric Blake.
8907 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
8909 * modules/isapipe: New file.
8910 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
8912 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
8914 * modules/configmake (Makefile.am): Add a comment, and omit
8915 the CONFIGMAKE_ prefix from generated macro names. Suggested
8918 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
8920 * m4/isapipe.m4: New file.
8922 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
8924 * lib/isapipe.c, lib/isapipe.h: New files.
8926 2006-08-29 Jim Meyering <jim@meyering.net>
8928 * modules/configmake (Makefile.am): Make configmake.h depend on
8929 Makefile. Otherwise, a stale configmake.h could hang around.
8931 2006-08-29 Eric Blake <ebb9@byu.net>
8933 * lib/error.c (error_at_line, print_errno_message): Match libc, after
8934 resolution of upstream bug 3044.
8936 2006-08-29 Bruno Haible <bruno@clisp.org>
8938 * modules/localcharset (Depends-on): Add configmake.
8939 (Makefile.am): Remove setting of LIBDIR through DEFS.
8941 2006-08-29 Bruno Haible <bruno@clisp.org>
8943 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
8946 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
8948 * modules/fcntl: New file.
8949 * modules/chdir-safer (Depends-on): Add fcntl.
8950 * modules/fts: Likewise.
8951 * modules/mkdir-p: Likewise.
8953 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
8954 This undoes the most recent change, since we're now addressing the
8955 problem in a different way.
8957 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
8958 into output, since the output might be called Makefile.am even
8959 if $makefile_name is something different.
8960 (func_import): Use $makefile_am rather than
8961 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
8964 * modules/inttypes (Files): Add m4/inttypes-h.m4.
8966 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
8968 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
8969 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
8970 recent change to stdint.m4, since we're now addressing the problem in a
8973 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
8975 * m4/fcntl_h.m4: New file.
8977 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
8979 * lib/fcntl_.h: New file.
8980 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
8982 * lib/dirchownmod.c: Likewise.
8983 * lib/fts.c: Likewise.
8985 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
8986 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
8987 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
8988 just before including <inttypes.h>, to avoid circular inclusion.
8990 2006-08-28 Jim Meyering <jim@meyering.net>
8992 * doc/visibility.texi: Actually read and correct the grammar of the
8993 sentence affected by yesterday's change.
8995 2006-08-28 Eric Blake <ebb9@byu.net>
8997 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
9000 2006-08-28 Eric Blake <ebb9@byu.net>
9002 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
9004 2006-08-28 Eric Blake <ebb9@byu.net>
9006 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
9008 2006-08-28 Bruno Haible <bruno@clisp.org>
9010 * modules/c-strstr: New file, from GNU gettext.
9011 * MODULES.html.sh (String handling): Add c-strstr.
9013 2006-08-28 Bruno Haible <bruno@clisp.org>
9015 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
9017 Reported by Eric Blake.
9019 2006-08-28 Bruno Haible <bruno@clisp.org>
9021 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
9022 (VASNPRINTF): Return a string of length > INT_MAX without failing.
9023 * lib/vasprintf.c: Include errno.h, limits.h.
9024 (EOVERFLOW): New fallback definition.
9025 (vasprintf): Test here whether the string length is > INT_MAX.
9026 * lib/vsnprintf.c: Include errno.h, limits.h.
9027 (EOVERFLOW): New fallback definition.
9028 (vsnprintf): Fix bug when generated string was too long for the buffer.
9029 Test here whether the string length is > INT_MAX.
9031 2006-08-28 Bruno Haible <bruno@clisp.org>
9033 * lib/inttypes_.h (SCNX*): Remove definitions.
9034 Reported by Eric Blake.
9036 2006-08-28 Bruno Haible <bruno@clisp.org>
9038 * lib/c-strstr.h: New file, from GNU gettext.
9039 * lib/c-strstr.c: New file, from GNU gettext.
9041 2006-08-28 Bruno Haible <bruno@clisp.org>
9043 * gnulib-tool: Reorder some statements.
9045 2006-08-28 Bruno Haible <bruno@clisp.org>
9047 * gnulib-tool: New option --makefile-name.
9048 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
9050 (func_import): Write $makefile_name to the cache file, and read it from
9051 there unless explicitly specified. Use $makefile_name as file name
9052 instead of Makefile.am. Adjust the recommendations accordingly.
9054 2006-08-28 Bruno Haible <bruno@clisp.org>
9056 * gnulib-tool (func_verify_module): Check against misapplying patch.
9058 2006-08-28 Bruno Haible <bruno@clisp.org>
9060 * gnulib-tool (func_relativize, func_relconcat): New functions.
9061 Give an error if --local-dir is given with --update.
9062 Remove trailing slashes from $local_gnulib_dir.
9063 (func_import): Store the relativized $local_gnulib_dir in
9064 gnulib-cache.m4, and read it from there if not specified explicitly.
9066 2006-08-28 Bruno Haible <bruno@clisp.org>
9068 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
9069 is the current directory. Respect also $local_gnulib_dir.
9071 2006-08-28 Bruno Haible <bruno@clisp.org>
9072 Simon Josefsson <jas@extundo.com>
9075 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
9077 2006-08-27 Jim Meyering <jim@meyering.net>
9079 * doc/visibility.texi: Remove duplicate word: "pointer".
9081 2006-08-26 Bruno Haible <bruno@clisp.org>
9083 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
9084 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
9085 (Makefile.am): Create inttypes.h from inttypes_.h.
9086 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
9088 * modules/imaxabs: New file.
9090 * modules/imaxdiv: New file.
9092 2006-08-26 Bruno Haible <bruno@clisp.org>
9094 * m4/inttypes.m4: New file.
9095 * m4/_inttypes_h.m4: Remove file.
9096 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
9098 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
9100 * m4/imaxabs.m4: New file.
9102 * m4/imaxdiv.m4: New file.
9104 2006-08-26 Bruno Haible <bruno@clisp.org>
9106 * lib/inttypes_.h: New file.
9107 * lib/inttypes.h: Remove file.
9108 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
9110 * lib/imaxabs.c: New file.
9112 * lib/imaxdiv.c: New file.
9114 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
9116 New config-h module, so that "make" output needn't be cluttered
9118 * MODULES.html.sh (Support for building libraries and executables):
9120 * modules/config-h: New file.
9121 * gnulib-tool (nl, sed_transform_lib_file): New vars.
9122 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
9123 the config-h module is used.
9125 New configmake module, so that "make" output needn't be cluttered
9126 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
9127 * MODULES.html.sh (Support for building libraries and executables):
9129 * modules/configmake: New file.
9131 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
9133 * m4/config-h.m4: New file.
9135 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
9137 * config/srclist.txt: Add elisp-comp.
9139 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
9141 * MODULES.html.sh (Support for building libraries and executables):
9143 * build-aux/elisp-comp: New file.
9144 * modules/elisp-comp: New file.
9146 2006-08-24 Bruno Haible <bruno@clisp.org>
9148 * gnulib-tool (func_create_testdir): Use non-default values of
9149 sourcebase and m4base.
9151 2006-08-24 Bruno Haible <bruno@clisp.org>
9153 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
9156 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
9158 * modules/openat (Depends-on): Add lchown.
9160 2006-08-23 Bruno Haible <bruno@clisp.org>
9162 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
9163 of gl_LOCK_EARLY instead of gl_LOCK.
9165 2006-08-23 Bruno Haible <bruno@clisp.org>
9167 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
9169 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
9171 2006-08-23 Bruno Haible <bruno@clisp.org>
9173 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
9176 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
9177 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
9178 (gl_LOCK): New macro.
9180 2006-08-22 Simon Josefsson <jas@extundo.com>
9182 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
9185 2006-08-22 Simon Josefsson <jas@extundo.com>
9187 * MODULES.html.sh: Add "Support for maintaining and release
9190 * build-aux/gnupload: New file, from coreutils.
9192 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
9194 Avoid the need for AC_LIBSOURCES in m4 macros.
9195 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
9196 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
9197 * modules/check-version (EXTRA_DIST): Add check-version.h.
9198 * modules/crc (EXTRA_DIST): Add crc.h.
9199 * modules/des (EXTRA_DIST): Add des.h.
9200 * modules/gc (EXTRA_DIST): Add gc.h.
9201 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
9202 * modules/getline (EXTRA_DIST): Add getline.h.
9203 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
9204 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
9205 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
9206 * modules/md2 (EXTRA_DIST): Add md2.h.
9207 * modules/md4 (EXTRA_DIST): Add md4.h.
9208 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
9209 * modules/read-file (EXTRA_DIST): Add read-file.h.
9210 * modules/readline (EXTRA_DIST): Add readline.h.
9211 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
9214 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
9216 * m4/rijndael.m4 (gl_ARCFOUR):
9217 * m4/arctwo.m4 (gl_ARCTWO):
9218 * m4/check-version.m4 (gl_CHECK_VERSION):
9219 * m4/crc.m4 (gl_CRC):
9220 * m4/des.m4 (gl_DES):
9221 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
9223 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
9224 * m4/getline.m4 (gl_FUNC_GETLINE):
9225 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
9226 * m4/hmac-md5.m4 (gl_HMAC_MD5):
9227 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
9228 * m4/md2.m4 (gl_MD2):
9229 * m4/md4.m4 (gl_MD4):
9230 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
9231 * m4/read-file.m4 (gl_FUNC_READ_FILE):
9232 * m4/readline.m4 (gl_FUNC_READLINE):
9233 * m4/rijndael.m4 (gl_RIJNDAEL):
9234 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
9235 to get the necessary .h files and whatnot.
9237 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
9239 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
9240 gnulib rather than the other way around.
9241 * config/srclistvars.sh (COREUTILS): Remove.
9243 2006-08-22 Jim Meyering <jim@meyering.net>
9245 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
9247 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
9249 2006-08-22 Eric Blake <ebb9@byu.net>
9251 * modules/regexprops-generic: New file.
9252 * MODULES.html.sh (Support for building documentation): List it.
9254 2006-08-22 Eric Blake <ebb9@byu.net>
9256 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
9257 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9258 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
9259 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9261 2006-08-22 Bruno Haible <bruno@clisp.org>
9263 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
9264 and lib_LTLIBRARIES like the other lib_* variables.
9266 2006-08-22 Bruno Haible <bruno@clisp.org>
9268 * build-aux/x-to-1.in: New file, from GNU gettext.
9270 2006-08-22 Bruno Haible <bruno@clisp.org>
9272 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
9275 2006-08-22 Bruno Haible <bruno@clisp.org>
9277 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
9280 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
9283 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
9285 Problem reported by Bruno Haible.
9287 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
9289 Avoid the need for AC_LIBSOURCES in m4 macros.
9290 * modules/acl (EXTRA_DIST): Add acl.h.
9291 * modules/argmatch (Files): Add m4/argmatch.m4.
9292 (configure.ac): Add gl_ARGMATCH.
9293 (EXTRA_DIST): Renamed from lib_SOURCES, for
9294 consistency with the other modules. Remove argmatch.c.
9295 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
9296 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
9297 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
9298 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
9299 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
9300 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
9301 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
9302 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
9303 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
9304 * modules/closeout (EXTRA_DIST): Add closeout.h.
9305 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
9306 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
9307 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
9308 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
9309 dirname.h; remove basename.c and stripslash.c.
9310 * modules/exclude (EXTRA_DIST): Add exclude.h.
9311 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
9312 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
9313 * modules/file-type (EXTRA_DIST): Add file-type.h.
9314 * modules/filemode (EXTRA_DIST): Add filemode.h.
9315 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
9316 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
9317 * modules/fpending (EXTRA_DIST): Add __fpending.h.
9318 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
9319 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
9320 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
9321 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
9322 * modules/getdate (EXTRA_DIST): Add getdate.c.
9323 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
9324 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
9325 * modules/getpass (EXTRA_DIST): Add getpass.h.
9326 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
9327 * modules/group-member (EXTRA_DIST): Add group-member.h.
9328 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
9329 * modules/hash (EXTRA_DIST): Add hash.h.
9330 * modules/human (EXTRA_DIST): Add human.h.
9331 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
9332 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
9333 * modules/lchown (EXTRA_DIST): Add lchown.h.
9334 * modules/long-options (EXTRA_DIST): Add long-options.h.
9335 * modules/lstat (EXTRA_DIST): Add lstat.h.
9336 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
9337 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
9338 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
9339 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
9340 * modules/memxor (EXTRA_DIST): Add memxor.h.
9341 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
9342 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
9343 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
9344 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
9345 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
9346 * modules/physmem (EXTRA_DIST): Add physmem.h.
9347 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
9348 * modules/posixver (EXTRA_DIST): Add posixver.h.
9349 * modules/quote (EXTRA_DIST): Add quote.h.
9350 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
9351 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
9352 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
9353 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
9354 regex_internal.h regexec.c.
9355 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
9356 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
9357 * modules/same (EXTRA_DIST): Add same.h.
9358 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
9359 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
9360 * modules/savedir (EXTRA_DIST): Add savedir.h.
9361 * modules/sha1 (EXTRA_DIST): Add sha1.h.
9362 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
9363 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
9364 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
9365 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
9366 * modules/strdup (EXTRA_DIST): Add strdup.h.
9367 * modules/strftime (EXTRA_DIST): Add strftime.h.
9368 * modules/strndup (EXTRA_DIST): Add strndup.h.
9369 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
9370 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
9371 * modules/time_r (EXTRA_DIST): Add time_r.h.
9372 * modules/timespec (EXTRA_DIST): Add timespec.h.
9373 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
9374 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
9375 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
9376 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
9377 * modules/userspec (EXTRA_DIST): Add userspec.h.
9378 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
9379 * modules/utimens (EXTRA_DIST): Add utimens.h.
9380 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
9381 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
9382 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
9383 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
9384 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
9385 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
9386 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
9387 * modules/yesno (EXTRA_DIST): Add yesno.h.
9389 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
9391 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
9393 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
9394 * m4/dev-ino.m4, same-inode.m4: Remove.
9396 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
9397 * m4/acl.m4 (AC_FUNC_ACL):
9398 * m4/backupfile.m4 (gl_BACKUPFILE):
9399 * m4/c-strtod.m4 (gl_C99_STRTOLD):
9400 * m4/canon-host.m4 (gl_CANON_HOST):
9401 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9402 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
9403 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
9404 * m4/cloexec.m4 (gl_CLOEXEC):
9405 * m4/close-stream.m4 (gl_CLOSE_STREAM):
9406 * m4/closeout.m4 (gl_CLOSEOUT):
9407 * m4/dirfd.m4 (gl_FUNC_DIRFD):
9408 * m4/dirname.m4 (gl_DIRNAME):
9409 * m4/exclude.m4 (gl_EXCLUDE):
9410 * m4/exitfail.m4 (gl_EXITFAIL):
9411 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
9412 * m4/file-type.m4 (gl_FILE_TYPE):
9413 * m4/filemode.m4 (gl_FILEMODE):
9414 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
9415 * m4/fpending.m4 (gl_FUNC_FPENDING):
9416 * m4/fprintftime.m4 (gl_FPRINTFTIME):
9417 * m4/fts.m4 (gl_FUNC_FTS):
9418 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
9419 * m4/getdate.m4 (gl_GETDATE):
9420 * m4/gethrxtime.m4 (gl_GETHRXTIME):
9421 * m4/getpagesize.m4 (gl_GETPAGESIZE):
9422 * m4/getpass.m4 (gl_FUNC_GETPASS):
9423 * m4/gettime.m4 (gl_GETTIME):
9424 * m4/getugroups.m4 (gl_GETUGROUPS):
9425 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
9426 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
9427 * m4/hard-locale.m4 (gl_HARD_LOCALE):
9428 * m4/hash.m4 (gl_HASH):
9429 * m4/idcache.m4 (gl_IDCACHE):
9430 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
9431 * m4/lchown.m4 (gl_FUNC_LCHOWN):
9432 * m4/long-options.m4 (gl_LONG_OPTIONS):
9433 * m4/lstat.m4 (gl_FUNC_LSTAT):
9434 * m4/md5.m4 (gl_MD5):
9435 * m4/memcasecmp.m4 (gl_MEMCASECMP):
9436 * m4/memcoll.m4 (gl_MEMCOLL):
9437 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
9438 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
9439 * m4/memxor.m4 (gl_MEMXOR):
9440 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
9441 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
9442 * m4/modechange.m4 (gl_MODECHANGE):
9443 * m4/mountlist.m4 (gl_MOUNTLIST):
9444 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
9445 * m4/openat.m4 (gl_FUNC_OPENAT):
9446 * m4/pathmax.m4 (gl_PATHMAX):
9447 * m4/physmem.m4 (gl_PHYSMEM):
9448 * m4/posixtm.m4 (gl_POSIXTM):
9449 * m4/posixver.m4 (gl_POSIXVER):
9450 * m4/quote.m4 (gl_QUOTE):
9451 * m4/quotearg.m4 (gl_QUOTEARG):
9452 * m4/readtokens.m4 (gl_READTOKENS):
9453 * m4/readutmp.m4 (gl_READUTMP):
9454 * m4/regex.m4 (gl_REGEX):
9455 * m4/safe-read.m4 (gl_SAFE_READ):
9456 * m4/safe-write.m4 (gl_SAFE_WRITE):
9457 * m4/same.m4 (gl_SAME):
9458 * m4/save-cwd.m4 (gl_SAVE_CWD):
9459 * m4/savedir.m4 (gl_SAVEDIR):
9460 * m4/settime.m4 (gl_SETTIME):
9461 * m4/sha1.m4 (gl_SHA1):
9462 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
9463 * m4/stat-macros.m4 (gl_STAT_MACROS):
9464 * m4/stat-time.m4 (gl_STAT_TIME):
9465 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
9466 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
9467 * m4/strdup.m4 (gl_FUNC_STRDUP):
9468 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
9469 * m4/strndup.m4 (gl_FUNC_STRNDUP):
9470 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
9471 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
9472 * m4/time_r.m4 (gl_TIME_R):
9473 * m4/timespec.m4 (gl_TIMESPEC):
9474 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
9475 * m4/unlinkdir.m4 (gl_UNLINKDIR):
9476 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
9477 * m4/userspec.m4 (gl_USERSPEC):
9478 * m4/utimecmp.m4 (gl_UTIMECMP):
9479 * m4/utimens.m4 (gl_UTIMENS):
9480 * m4/xalloc.m4 (gl_XALLOC):
9481 * m4/xgetcwd.m4 (gl_XGETCWD):
9482 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
9483 * m4/xreadlink.m4 (gl_XREADLINK):
9484 * m4/xstrtod.m4 (gl_XSTRTOD):
9485 * m4/yesno.m4 (gl_YESNO):
9486 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
9487 to get the necessary .h files and whatnot.
9489 2006-08-21 Mark D. Baushke <mdb@gnu.org>
9490 Bruno Haible <bruno@clisp.org>
9492 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
9493 /bin/sh understanding of '!' conditional negation.
9495 2006-08-21 Jim Meyering <jim@meyering.net>
9497 * modules/openat (Depends-on): Really alphabetize.
9499 * modules/acl (Depends-on): Add error and quote.
9501 * check-module (find_included_lib_files): Add at-func.c to the
9502 ok-to-include-more-than-once white list.
9504 * modules/openat (Depends-on): Add lstat. Alphabetize.
9506 2006-08-21 Bruno Haible <bruno@clisp.org>
9508 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9509 Emit a pkgdata_DATA variable only if some snippets add contents to it.
9510 Reported by Martin Lambers <marlam@marlam.de>.
9512 2006-08-21 Bruno Haible <bruno@clisp.org>
9514 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
9515 specify an installation location, don't emit a noinst_LIBRARIES or
9516 noinst_LTLIBRARIES assignment.
9518 2006-08-21 Bruno Haible <bruno@clisp.org>
9521 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
9522 BeOS has mbrtowc() but no <wctype.h>.
9524 2006-08-21 Bruno Haible <bruno@clisp.org>
9527 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
9530 2006-08-21 Bruno Haible <bruno@clisp.org>
9533 * lib/mbchar.h: Include <wctype.h> only if it exists.
9535 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
9537 Remove files that are no longer needed by their respective modules.
9538 * m4/obstack.m4: Remove.
9539 * m4/strerror_r.m4: Remove.
9540 * m4/uint32_t.m4: Remove.
9541 * m4/uintptr_t.m4: Remove.
9542 * m4/ullong_max.m4: Remove.
9543 * m4/xstrtoimax.m4: Remove.
9544 * m4/xstrtoumax.m4: Remove.
9546 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
9547 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
9548 dependencies now capture this.
9550 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
9551 Do not use AC_LIBSOURCES, since gnulib modules now do this.
9552 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
9553 * m4/human.m4 (gl_HUMAN): Likewise.
9554 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
9555 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
9557 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
9559 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
9560 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
9562 * m4/human.m4 (gl_HUMAN): Likewise.
9563 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
9564 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
9565 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
9566 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
9567 * m4/xstrtol (gl_XSTRTOL): Likewise.
9569 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
9570 AC_TYPE_LONG_LONG_INT.
9571 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
9572 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
9573 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
9574 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
9576 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
9579 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
9580 (gl_PREREQ_XSTRTOUL): Remove.
9582 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
9584 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
9587 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
9589 Add and change modules to make it easier for coreutils to use
9591 * modules/backupfile (Files): Remove m4/d-ino.m4.
9592 (Depends-on): Add d-ino.
9593 * modules/cycle-check (Depends-on): Add stdint.
9594 (lib_SOURCES): Add cycle-check.h.
9595 * modules/d-ino: New module.
9596 * modules/d-type: New module.
9597 * modules/error (Files): Remove m4/strerror_r.m4.
9598 * modules/filemode (Files): Add m4/st_dm_mode.m4.
9599 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
9600 m4/inttypes_h.m4, m4/uintmax_t.m4.
9601 (Depends-on): Add stdint.
9602 (lib_SOURCES): Add fsusage.h.
9603 * modules/getcwd (Files): Remove d-ino.m4.
9604 (Depends-on): Add d-ino.
9605 * modules/getndelim2 (Depends-on): Add stdint.
9606 * modules/glob (Files): Remove m4/d-type.m4.
9607 (Depends-on): Add d-type.
9608 * modules/host-os: New module.
9609 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
9610 m4/inttypes_h.m4, m4/uintmax_t.m4.
9611 * Depends-on: Add stdint.
9612 (lib_SOURCES): Add human.h.
9613 * modules/inttostr (Files): Remove m4/intmax_t.m4,
9614 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
9615 m4/uintmax_t.m4, m4/ulonglong.m4.
9616 (Depends-on): Add stdint.
9617 (EXTRA_DIST): Add inttostr.h.
9618 * modules/lchmod: New module.
9619 * modules/link-follow: New module.
9620 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
9621 (Depends-on): Add lchmod.
9622 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
9623 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
9624 (Depends-on): Add stdint.
9625 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
9626 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
9627 (Depends-on): Add stdint.
9628 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
9629 * modules/perl: New module.
9630 * modules/regex (Depends-on): Add stdint.
9631 * modules/rmdir-errno: New module.
9632 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
9634 (Depends-on): Add stdint.
9635 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
9637 (Depends-on): Add stdint.
9638 * modules/unlink-busy: New module.
9639 * modules/utimecmp (Depends-on): Add stdint.
9640 * modules/uptime: New module.
9641 * modules/winsz-ioctl: New module.
9642 * modules/winsz-termios: New module.
9643 * modules/xnanosleep (Depends-on): Add nanosleep.
9644 * modules/ullong_max: Remove.
9645 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
9646 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
9647 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
9648 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
9649 (Depends-on): Add inttypes.
9650 (lib_SOURCES): Add xstrtol.h.
9651 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
9652 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
9653 * MODULES.html.sh: Move 'assert' into the assert section.
9654 Move 'dummy' into the linking section.
9656 Add section for compatibility checks for POSIX:2001 functions,
9657 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
9658 winsz-ioctl, and winsz-termios into it.
9660 Add top-level Misc section and put host-os, perl, and uptime
9663 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
9665 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
9666 now assume the stdint module. Do not include inttypes.h.
9667 * lib/fsusage.h: Likewise.
9668 * lib/getndelim2.c: Likewise.
9669 * lib/human.h: Likewise.
9670 * lib/inttostr.h: Likewise.
9671 * lib/obstack.c: Likewise.
9672 * lib/regex_internal.h: Likewise.
9673 * lib/tempname.c: Likewise.
9674 * lib/utimecmp.c: Likewise.
9675 * lib/xstrtol.h: Likewise.
9677 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
9679 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
9680 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
9681 * lib/xtime.h: Likewise.
9683 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
9685 * modules/openat (Files): Add lib/fchmodat.c.
9686 Fixes problem reported by Jay Youngman.
9688 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
9690 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
9691 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
9693 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
9694 Bruno Haible <bruno@clisp.org>
9696 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
9697 and is a script that invokes bison. Tighten the code. Add comments.
9699 2006-08-18 Jim Meyering <jim@meyering.net>
9701 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
9702 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
9703 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
9704 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
9706 2006-08-18 Bruno Haible <bruno@clisp.org>
9708 * modules/bison-i18n: New file.
9709 * MODULES.html.sh (Internationalization functions): Add it.
9711 2006-08-18 Bruno Haible <bruno@clisp.org>
9713 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
9714 sys/statvfs.h. When getmntinfo was found, check its declaration and
9715 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
9717 2006-08-18 Bruno Haible <bruno@clisp.org>
9719 * m4/bison-i18n.m4: New file, from bison.
9721 2006-08-18 Bruno Haible <bruno@clisp.org>
9723 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
9724 (ME_DUMMY): Treat "kernfs" as a dummy.
9725 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
9727 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
9729 Update from coreutils.
9731 2006-08-15 Jim Meyering <jim@meyering.net>
9733 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
9735 2006-01-17 Jim Meyering <jim@meyering.net>
9737 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
9739 2006-01-11 Jim Meyering <jim@meyering.net>
9741 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
9742 Check for the lchmod function.
9744 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
9746 Update from coreutils.
9748 * lib/__fpending.h: Add copyright notice.
9749 * lib/fprintftime.h: Likewise.
9750 * lib/savedir.c: Use (C) in copyright notice.
9751 * lib/savedir.h: Likewise.
9753 2006-08-15 Jim Meyering <jim@meyering.net>
9755 * lib/at-func.c: New file, with the logic of all emulated at-functions.
9756 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
9757 in support of the EXPECTED_ERRNO macro.
9758 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
9759 definitions. Instead, define the appropriate symbols and include
9761 * lib/mkdirat.c (mkdirat): Likewise.
9762 * lib/fchmodat.c (fchmodat): Likewise.
9763 (ENOSYS): Remove definition.
9764 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
9765 it. Don't include "unistd--.h" -- it wasn't ever used.
9767 2006-01-17 Jim Meyering <jim@meyering.net>
9769 Rewrite fts.c not to change the current working directory,
9770 by using openat, fstatat, fdopendir, etc..
9772 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
9773 (HAVE_OPENAT_SUPPORT): Define.
9774 [_LIBC] (fchdir): Don't undef or define; no longer used.
9775 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
9776 Now, this `function' always succeeds, and consumes its file descriptor
9777 parameter -- so callers must not close such FDs. Update callers.
9778 (diropen_fd, opendirat, cwd_advance_fd): New functions.
9779 (diropen): Add parameter, SP. Adjust all callers.
9780 Implement using diropen_fd, rather than open.
9781 (fts_open): Initialize new member, fts_cwd_fd.
9782 Remove fts_rft-setting code.
9783 (fts_close): Close fts_cwd_fd, if necessary.
9784 (__opendir2): Define in terms of opendir or opendirat,
9785 depending on whether the FST_NOCHDIR flag is set.
9786 (fts_build): Since fts_safe_changedir consumes its FD, and since
9787 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
9788 and close the dup'd file descriptor upon failure.
9789 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
9790 (fts_safe_changedir): Tweak semantics to reflect that this function
9791 now calls cwd_advance_fd and hence consumes its FD argument.
9792 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
9793 [struct FTS] (fts_rft): Remove now-unused member.
9794 [struct FTS] (fts_cycle.state): Improve comment.
9796 * lib/openat.c (openat_needs_fchdir): New function.
9797 * lib/openat.h (openat_needs_fchdir): Declare it.
9799 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
9801 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
9802 Problem and fix reported by Pádraig Brady in
9803 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
9805 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
9807 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
9809 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
9811 * lib/memcoll.c (memcoll): Optimize for the common case where the
9812 arguments are bytewise equal.
9814 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
9816 * doc/regexprops-generic.texi: Add a copyright notice.
9818 2006-08-15 Bruno Haible <bruno@clisp.org>
9820 * modules/tmpdir (License): Change to LGPL.
9822 2006-08-15 Bruno Haible <bruno@clisp.org>
9824 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
9827 2006-08-14 Simon Josefsson <jas@extundo.com>
9829 * config/srclist.txt: Add gnupload.
9831 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
9833 Change copyright notice from LGPL 2 to GPL 2, since that's the
9834 standard form used in the gnulib repository.
9835 * tests/test-lock.c: Likewise.
9836 * tests/test-stdint.c: Likewise.
9837 * tests/test-tls.c: Likewise.
9839 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
9840 prelude-manager. User shorter URLs for GNU projects, without '?'.
9841 Add copyright notice.
9843 * check-module: Add copyright notice. Output a copyright
9844 notice if "--version" is specified.
9845 * modules/COPYING: New file.
9846 * tests/test-getaddrinfo.c: Add copyright notice.
9847 * tests/test-verify.c: Likewise.
9849 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
9851 Change copyright notice from LGPL 2 to GPL 2, since that's the
9852 standard form used in the gnulib repository.
9853 * lib/lock.c: LGPL -> GPL.
9854 * lib/lock.h: Likewise.
9855 * lib/strnlen1.c: Likewise.
9856 * lib/strnlen1.h: Likewise.
9857 * lib/tls.c: Likewise.
9858 * lib/tls.h: Likewise.
9859 * lib/tmpdir.c: Likewise.
9861 * lib/TODO: Remove; this belongs only in coreutils.
9863 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
9865 Add copyright notices to long-enough files that lack them, since
9866 otherwise the files aren't clearly free. Use the same notice that
9867 getdate.texi already uses.
9868 * doc/alloca-opt.texi: Add copyright notice.
9869 * doc/alloca.texi: Likewise.
9870 * doc/ctime.texi: Likewise.
9871 * doc/functions.texi: Likewise.
9872 * doc/gcd.texi: Likewise.
9873 * doc/gnulib-tool.texi: Likewise.
9874 * doc/inet_ntoa.texi: Likewise.
9875 * doc/visibility.texi: Likewise.
9877 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
9878 * doc/quote.texi: Add copyright notice.
9880 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
9881 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
9882 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
9883 Mention SunOS 5.11. Mention that everything before SunOS 5.7
9884 is now obsolete, and give a pointer to the Sun list.
9885 Add copyright notice.
9887 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
9889 * config/srclistvars.sh: Add copyright notice.
9891 2006-08-14 Eric Blake <ebb9@byu.net>
9893 Import the following change from libc:
9895 2006-08-12 Ulrich Drepper <drepper@redhat.com>
9898 * lib/misc/error.c: Add space between program name and message if file
9901 2006-08-12 Karl Berry <karl@gnu.org>
9903 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
9904 remove, these originate in gnulib now.
9906 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9908 * doc/Makefile (standards.info standards.html standards.dvi):
9909 Also depend on make-stds.texi.
9911 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
9913 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
9914 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
9916 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
9917 in wchar_t. Problem reported by Eric Blake.
9919 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
9920 LEN is smaller than SIZE. Suggested by Bruno Haible.
9921 Also, help the compiler to keep LEN in a register.
9923 2006-08-11 Eric Blake <ebb9@byu.net>
9925 * users.txt: Sort. Add tar.
9927 2006-08-11 Bruno Haible <bruno@clisp.org>
9929 * users.txt: New file.
9931 2006-08-11 Bruno Haible <bruno@clisp.org>
9933 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
9934 before <wchar.h>. Needed for OSF/1 and BSD/OS.
9936 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
9938 * modules/snprintf (Depends-on): Remove minmax.
9939 (Maintainer): Add self and Bruno.
9941 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
9943 * lib/.cppi-disable: Add snprintf.h, socket_.h.
9944 * lib/snprintf.c: Include <errno.h> and <limits.h>.
9945 (EOVERFLOW): Define if the system does not.
9946 Do not include "minmax.h"; it wasn't used.
9947 (snprintf): Don't assume size_t promotes to an unsigned type.
9948 Fix bug when generated string was too long for the buffer: the
9949 buffer's contents are supposed to be the initial prefix of the
9950 output. Don't assume vasnprintf returns EOVERFLOW if the size
9951 exceeds INT_MAX; do the check ourselves.
9953 Import the following changes from libc:
9955 2006-06-02 Jakub Jelinek <jakub@redhat.com>
9957 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
9958 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
9959 set wc to the byte which couldn't be converted.
9960 (re_string_reconstruct): Don't clear valid_raw_len before calling
9961 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9962 tip_context using re_string_context_at.
9964 2006-05-02 Ulrich Drepper <drepper@redhat.com>
9966 * lib/posix/regex.h: g++ still cannot handled [restrict].
9968 2006-04-21 Ulrich Drepper <drepper@redhat.com>
9970 * lib/posix/regex.h: Remove special handling for VMS.
9972 2006-08-10 Jim Meyering <jim@meyering.net>
9974 * modules/same-inode: New module.
9975 * modules/dev-ino: New module.
9976 * modules/cycle-check: Depend on these modules, rather than simply
9977 including their .h files.
9978 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
9979 required via m4/cycle-check.m4.
9980 * modules/same: Depend on new same-inode module, rather than
9981 including same-inode.h.
9982 * modules/chdir-safer: New file.
9984 * modules/chown (Depends-on): Add stat-macros.
9986 2006-08-10 Jim Meyering <jim@meyering.net>
9988 * m4/cycle-check.m4: New file.
9989 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
9990 * m4/dev-ino.m4, m4/same-inode.m4: New files.
9992 2006-08-10 Eric Blake <ebb9@byu.net>
9994 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
9995 in from original proposal.
9997 2006-08-10 Eric Blake <ebb9@byu.net>
9998 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10000 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
10003 2006-08-10 Bruno Haible <bruno@clisp.org>
10005 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
10008 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
10010 Sync from coreutils.
10012 2006-07-19 Mike Frysinger <vapier@gentoo.org>
10014 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
10015 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
10017 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
10019 * modules/restrict: Remove; no longer needed now that we assume
10020 Autoconf 2.59 or later.
10021 * MODULES.html.sh: Remove 'restrict'.
10022 * modules/argp (Depends-on): Remove 'restrict'.
10023 * modules/base64 (Depends-on): Likewise.
10024 * modules/gc (Depends-on): Likewise.
10025 * modules/getaddrinfo (Depends-on): Likewise.
10026 * modules/glob (Depends-on): Likewise.
10027 * modules/inet_ntop (Depends-on): Likewise.
10028 * modules/inet_pton (Depends-on): Likewise.
10029 * modules/memxor (Depends-on): Likewise.
10030 * modules/regex (Depends-on): Likewise.
10031 * modules/strtok_r (Depends-on): Likewise.
10032 * modules/time_r (Depends-on): Likewise.
10034 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
10036 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
10037 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
10038 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10039 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
10040 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10041 * m4/memxor.m4 (gl_MEMXOR): Likewise.
10042 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
10043 gl_C_RESTRICT replaced by AC_C_RESTRICT.
10045 Merge from coreutils.
10046 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
10047 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
10048 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10049 * m4/time_r.m4 (gl_TIME_R): Likewise.
10051 2006-08-09 Karl Berry <karl@gnu.org>
10053 * config/srclist.txt: no more gettext-tools, per Bruno.
10055 2006-08-08 Eric Blake <ebb9@byu.net>
10057 * modules/verror: New module.
10058 * MODULES.html.sh: Document it.
10060 2006-08-08 Eric Blake <ebb9@byu.net>
10062 * lib/verror.h, lib/verror.c: New files.
10064 2006-08-08 Eric Blake <ebb9@byu.net>
10066 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
10067 verror_at_line output complies with GNU Coding Standards even when
10070 2006-08-07 Bruno Haible <bruno@clisp.org>
10072 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
10074 Reported by Ralf Wildenhues.
10076 2006-08-07 Bruno Haible <bruno@clisp.org>
10078 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
10079 in an AC_DEFUN. Needed so that the autoconf snippets can use
10082 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10084 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10085 Initialize pkgdata_DATA.
10086 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
10089 2006-08-06 Eric Blake <ebb9@byu.net>
10091 * lib/error.h: Fold in some upstream changes from glibc.
10092 * lib/error.c: Likewise.
10094 2006-08-04 Bruno Haible <bruno@clisp.org>
10096 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10097 Make the mostlyclean-local rule depend on mostlyclean-generic.
10098 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
10100 2006-07-31 Bruno Haible <bruno@clisp.org>
10102 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
10103 <stdlib.h>, <string.h>.
10105 2006-07-30 Bruno Haible <bruno@clisp.org>
10107 * modules/readlink (License): Change to LGPL.
10109 2006-07-30 Bruno Haible <bruno@clisp.org>
10111 * modules/javaversion (Makefile.am): Distribute javaversion.java and
10112 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
10113 set PKGDATADIR to point to it.
10115 2006-07-30 Bruno Haible <bruno@clisp.org>
10117 * modules/csharpexec (configure.ac): Comment out macro invocation.
10118 * modules/javaexec (configure.ac): Likewise.
10119 * modules/javacomp-script (configure.ac): Likewise.
10121 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
10123 2006-07-30 Bruno Haible <bruno@clisp.org>
10125 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
10128 2006-07-30 Bruno Haible <bruno@clisp.org>
10130 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
10132 2006-07-30 Bruno Haible <bruno@clisp.org>
10134 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10135 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
10138 2006-07-29 Bruno Haible <bruno@clisp.org>
10140 Make it possible for gnulib-tool to work with locally modified or
10141 augmented gnulib repositories.
10142 * gnulib-tool (func_usage): Document --local-dir option.
10143 (local_gnulib_dir): New variable.
10144 Handle --local-dir option.
10145 (func_lookup_file): New function.
10146 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
10147 (func_get_description, func_get_filelist, func_get_description,
10148 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
10149 func_get_automake_snippet, func_get_include_directive,
10150 func_get_license, func_get_maintainer): Use func_lookup_file.
10151 (func_import, func_create_testdir): Use func_lookup_file.
10153 2006-07-29 Bruno Haible <bruno@clisp.org>
10155 * modules/setenv (Depends-on): Add unistd.
10157 2006-07-29 Bruno Haible <bruno@clisp.org>
10159 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
10161 2006-07-29 Bruno Haible <bruno@clisp.org>
10163 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
10165 2006-07-29 Bruno Haible <bruno@clisp.org>
10167 * gnulib-tool (import, update): If there is no Makefile.am, look at
10168 aclocal.m4, instead of bailing out.
10170 2006-07-29 Bruno Haible <bruno@clisp.org>
10172 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
10173 Categorize the options by when they are useful.
10175 2006-07-29 Bruno Haible <bruno@clisp.org>
10177 * gnulib-tool (func_usage): Document option --no-libtool.
10178 Handle option --no-libtool.
10179 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
10180 for changed semantics of $libtool variable.
10181 (func_import): Likewise. If libtool is not used, show this through
10182 an option --no-libtool.
10183 (func_create_testdir): Update.
10185 2006-07-29 Bruno Haible <bruno@clisp.org>
10187 * gnulib-tool (func_import): Extend error message about missing
10190 2006-07-29 Bruno Haible <bruno@clisp.org>
10192 * gnulib-tool (func_import): Don't create the $docbase directory if
10193 there is no file to store there.
10195 2006-07-29 Bruno Haible <bruno@clisp.org>
10197 * gnulib-tool (autoconf_minversion): If a --dir option is given and
10198 relevant, look for configure.ac there, not in the current directory.
10199 Also use a simple search for AC_PREREQ, not "autoconf --trace".
10201 2006-07-29 Bruno Haible <bruno@clisp.org>
10203 * gnulib-tool (SORT): New variable.
10204 (func_usage): Undocument --assume-autoconf option.
10205 Remove --assume-autoconf option handling.
10206 (autoconf_minversion): Determine from the contents of configure.ac.
10207 (func_import): Remove autoconf_minversion handling.
10208 Suggested by Eric Blake.
10210 2006-07-29 Bruno Haible <bruno@clisp.org>
10212 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
10214 2006-07-29 Bruno Haible <bruno@clisp.org>
10216 * config/srclist.txt (*setenv.[ch]): Remove rules.
10218 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10220 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
10222 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10224 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
10227 2006-07-28 Simon Josefsson <jas@extundo.com>
10229 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
10230 * modules/inet_pton (Depends-on): Likewise.
10232 2006-07-28 Simon Josefsson <jas@extundo.com>
10234 * m4/netinet_in_h.m4: New file.
10236 2006-07-28 Simon Josefsson <jas@extundo.com>
10238 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
10241 2006-07-28 Simon Josefsson <jas@extundo.com>
10243 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
10246 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
10248 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
10249 setgid on directories only if they set these bits.
10250 * lib/modechange.h: Remove obsolete comment about masks.
10252 2006-07-28 Eric Blake <ebb9@byu.net>
10254 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
10257 2006-07-28 Bruno Haible <bruno@clisp.org>
10259 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
10261 2006-07-28 Bruno Haible <bruno@clisp.org>
10263 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
10265 2006-07-28 Bruno Haible <bruno@clisp.org>
10267 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10268 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10270 Avoids link error on FreeBSD 4.x.
10271 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10273 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
10275 * lib/mbswidth.c (iswcntrl): Likewise.
10277 2006-07-27 Bruno Haible <bruno@clisp.org>
10279 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
10282 2006-07-27 Bruno Haible <bruno@clisp.org>
10284 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
10285 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
10288 2006-07-26 Eric Blake <ebb9@byu.net>
10290 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
10292 2006-07-26 Eric Blake <ebb9@byu.net>
10294 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
10295 like mingw that lack mkstemp.
10296 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
10297 avoid compilation warning on mingw.
10299 2006-07-26 Bruno Haible <bruno@clisp.org>
10301 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
10302 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
10303 INT_FAST*_MIN, INTPTR_MIN.
10305 2006-07-25 Bruno Haible <bruno@clisp.org>
10307 * modules/version-etc (Depends-on): Add stdarg.
10309 2006-07-25 Bruno Haible <bruno@clisp.org>
10311 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
10314 2006-07-25 Bruno Haible <bruno@clisp.org>
10316 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
10317 defined in <stdarg.h> or config.h.
10319 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
10321 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
10322 (gl_STDIO_SAFER): Remove.
10324 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
10326 * MODULES.html.sh (File stream based Input/Output):
10327 Add fopen-safer, tmpfile-safer; remove stdio-safer.
10328 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
10329 * modules/fopen-safer, modules/tmpfile-safer: New files.
10330 * modules/stdio-safer: Remove.
10332 2006-07-24 Bruno Haible <bruno@clisp.org>
10334 * modules/tmpdir: New file.
10335 * MODULES.html.sh (File system functions): Add it.
10337 2006-07-24 Bruno Haible <bruno@clisp.org>
10339 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
10340 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
10342 2006-07-24 Bruno Haible <bruno@clisp.org>
10344 * modules/clean-temp: New file.
10346 2006-07-24 Bruno Haible <bruno@clisp.org>
10348 * m4/tmpdir.m4: New file, from GNU gettext.
10350 2006-07-24 Bruno Haible <bruno@clisp.org>
10352 * lib/tmpdir.h: New file, from GNU gettext.
10353 * lib/tmpdir.c: New file, from GNU gettext.
10355 2006-07-24 Bruno Haible <bruno@clisp.org>
10357 * lib/clean-temp.h: New file, from GNU gettext.
10358 * lib/clean-temp.c: New file, from GNU gettext.
10360 2006-07-23 Eric Blake <ebb9@byu.net>
10362 * modules/stdio-safer (Files): Add tmpfile-safer.c.
10363 (Depends-on): Add binary-io.
10365 2006-07-23 Eric Blake <ebb9@byu.net>
10367 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
10369 2006-07-23 Eric Blake <ebb9@byu.net>
10371 * lib/tmpfile-safer.c: New file.
10372 * lib/stdio-safer.h (fopen_safer): Add prototype.
10373 * lib/stdio--.h (tmpfile): Make safer.
10375 2006-07-23 Bruno Haible <bruno@clisp.org>
10377 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
10378 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
10379 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
10380 gl_linked_remove_at): Use it.
10382 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10383 and Simon Josefsson <jas@extundo.com>
10385 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
10387 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
10389 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
10391 * modules/close-stream: New file.
10392 * modules/closeout (Description): Make it clear that it exits
10393 with a diagnostic on error.
10394 (Depends-on): Add close-stream. Remove fpending, stdbool.
10395 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
10397 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
10399 * m4/close-stream.m4: New file.
10401 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
10403 * lib/close-stream.c, lib/close-stream.h: New files.
10405 2006-07-22 Bruno Haible <bruno@clisp.org>
10407 Merge from GNU gettext 0.15.
10409 2006-05-01 Bruno Haible <bruno@clisp.org>
10411 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
10413 2006-07-22 Bruno Haible <bruno@clisp.org>
10415 * modules/javaversion: New file.
10416 * MODULES.html.sh (Java): Add javaversion.
10418 2006-03-12 Bruno Haible <bruno@clisp.org>
10420 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
10422 2005-12-04 Bruno Haible <bruno@clisp.org>
10424 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
10427 2006-06-21 Bruno Haible <bruno@clisp.org>
10429 Avoid warnings from recent versions of mcs.
10430 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
10431 -o, -L, -r any more. Use options documented since mcs-1.0
10432 instead. Similarly for -g.
10434 2005-12-04 Bruno Haible <bruno@clisp.org>
10436 * build-aux/csharpcomp.sh.in: Suffix for resources is
10437 .resources, not .resource.
10439 2005-07-09 Bruno Haible <bruno@clisp.org>
10441 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
10443 Reported by Mark Junker <mjscod@gmx.de>.
10445 2006-07-22 Bruno Haible <bruno@clisp.org>
10447 * modules/gettext: Upgrade to gettext-0.15.
10448 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
10450 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
10452 2006-07-22 Bruno Haible <bruno@clisp.org>
10454 Merge from GNU gettext 0.15.
10456 2006-03-25 Bruno Haible <bruno@clisp.org>
10458 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
10460 2006-07-21 Bruno Haible <bruno@clisp.org>
10462 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
10465 2006-05-09 Bruno Haible <bruno@clisp.org>
10467 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
10468 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
10469 for the conftestver execution.
10471 2006-05-01 Bruno Haible <bruno@clisp.org>
10473 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
10474 optional target-version argument. Verify that the compiler
10475 groks source of the specified source-version, or add -source
10476 option as necessary. Verify that the compiler produces
10477 bytecode in the specified target-version, or add -target and
10478 -source options as necessary. Make the result of the test
10479 available as variable CONF_JAVAC. Also log error output in
10482 2006-03-11 Bruno Haible <bruno@clisp.org>
10484 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
10486 2006-05-09 Bruno Haible <bruno@clisp.org>
10488 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
10489 CLASSPATH_SEPARATOR to a semicolon.
10491 2006-03-12 Bruno Haible <bruno@clisp.org>
10493 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
10494 available as variable CONF_JAVA, for subsequent autoconf
10495 tests. Also log error output in config.log.
10497 2006-07-19 Bruno Haible <bruno@clisp.org>
10499 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
10500 that getline works on glibc2 systems. Needed to avoid trouble
10502 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
10504 2005-12-04 Bruno Haible <bruno@clisp.org>
10506 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
10507 launcher (untested).
10509 2005-12-04 Bruno Haible <bruno@clisp.org>
10511 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
10513 2006-07-22 Bruno Haible <bruno@clisp.org>
10515 * gettext.m4: Update from GNU gettext-0.15.
10516 * nls.m4: Likewise.
10518 * inttypes-pri.m4: Likewise.
10519 * inttypes-h.m4: Renamed from inttypes.m4.
10520 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
10522 2006-07-22 Bruno Haible <bruno@clisp.org>
10524 Merge from GNU gettext 0.15.
10526 2005-07-05 Bruno Haible <bruno@clisp.org>
10528 * printf-args.c (printf_fetchargs): Work around broken
10529 definition of wint_t on mingw.
10531 2005-02-12 Bruno Haible <bruno@clisp.org>
10533 * xallocsa.h: Add extern "C" for C++.
10535 2006-05-17 Bruno Haible <bruno@clisp.org>
10537 Cygwin portability.
10538 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
10540 2006-04-30 Bruno Haible <bruno@clisp.org>
10542 * progreloc.c: Include <mach-o/dyld.h> if available.
10543 (find_executable): Use _NSGetExecutablePath when possible.
10545 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
10547 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
10550 2005-12-29 Bruno Haible <bruno@clisp.org>
10552 * progreloc.c (set_program_name_and_installdir): Fix
10555 2005-12-04 Bruno Haible <bruno@clisp.org>
10557 Cygwin portability.
10558 * progreloc.c: Include <windows.h> also on Cygwin.
10559 (find_executable): Add support for Cygwin.
10560 (set_program_name_and_installdir): Handle also platforms with
10563 2006-07-11 Bruno Haible <bruno@clisp.org>
10565 * javacomp.c: Fix a comment.
10566 Reported by Jim Meyering.
10568 2006-04-30 Bruno Haible <bruno@clisp.org>
10570 * javacomp.h (compile_java_class): Add source_version,
10571 target_version arguments.
10572 * javacomp.c: Rewritten to choose only a compiler that
10573 respects the specified source_version and target_version.
10575 2006-06-27 Bruno Haible <bruno@clisp.org>
10577 Assume correct S_ISDIR macro.
10578 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
10580 2006-07-22 Bruno Haible <bruno@clisp.org>
10582 * javaversion.h: New file, from GNU gettext.
10583 * javaversion.c: New file, from GNU gettext.
10584 * javaversion.java: New file, from GNU gettext.
10585 * javaversion.class: New file, from GNU gettext.
10587 2006-05-17 Bruno Haible <bruno@clisp.org>
10589 Cygwin portability.
10590 * javaexec.c (execute_java_class): Test for jview program
10593 2006-04-09 Bruno Haible <bruno@clisp.org>
10595 * fatal-signal.c: Don't include string.h.
10596 (at_fatal_signal): Use a copying loop instead of memcpy.
10598 2005-12-04 Bruno Haible <bruno@clisp.org>
10600 * csharpexec.c: Add support for 'clix' launcher (untested).
10601 (execute_csharp_using_sscli): New function.
10602 (execute_csharp_program): Call it.
10604 2006-06-21 Bruno Haible <bruno@clisp.org>
10606 Avoid warnings from recent versions of mcs.
10607 * csharpcomp.c (compile_csharp_using_mono): Don't use options
10608 -o, -L, -r any more. Use options documented since mcs-1.0
10609 instead. Similarly for -g.
10611 2005-07-09 Bruno Haible <bruno@clisp.org>
10613 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
10615 Reported by Mark Junker <mjscod@gmx.de>.
10617 2006-06-17 Bruno Haible <bruno@clisp.org>
10619 * config.charset: Update for NetBSD 3.0.
10621 2006-05-17 Bruno Haible <bruno@clisp.org>
10623 Cygwin portability.
10624 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
10626 2006-05-16 Bruno Haible <bruno@clisp.org>
10628 * localcharset.c [CYGWIN]: Include <windows.h>.
10629 (get_charset_aliases): For Cygwin, return the same CPxxx
10630 aliases list as under WIN32.
10631 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
10632 the environment variables. Fall back to GetACP().
10634 2006-04-05 Bruno Haible <bruno@clisp.org>
10636 * config.charset: Update Juan Manuel Guerrero's address.
10638 2005-02-12 Bruno Haible <bruno@clisp.org>
10640 * allocsa.h: Add extern "C" for C++.
10642 2005-02-10 Bruno Haible <bruno@clisp.org>
10644 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
10645 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
10647 2006-07-22 Bruno Haible <bruno@clisp.org>
10649 * gettext.h: Update to GNU gettext-0.15.
10651 2006-07-22 Bruno Haible <bruno@clisp.org>
10653 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
10654 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
10655 lib-prefix.m4, longdouble.m4, ssize_t.m4.
10657 2006-07-21 Eric Blake <ebb9@byu.net>
10659 * modules/stdlib-safer: New file.
10660 * MODULES.html.sh (File stream based Input/Output): Add
10663 2006-07-21 Eric Blake <ebb9@byu.net>
10665 * lib/stdlib-safer.h: New file from coreutils, required by
10668 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
10670 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
10672 2006-07-20 Bruno Haible <bruno@clisp.org>
10674 * gnulib-tool: Recognize new option --assume-autoconf.
10675 (autoconf_minversion): New variable.
10676 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
10678 2006-07-20 Bruno Haible <bruno@clisp.org>
10680 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
10682 2006-07-19 Derek R. Price <derek@ximbiot.com>
10684 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
10685 Reindent and repaginate.
10687 2006-07-19 Derek Price <derek@ximbiot.com>
10689 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
10692 2006-07-17 Bruno Haible <bruno@clisp.org>
10694 * modules/list: New file.
10695 * modules/array-list: New file.
10696 * modules/carray-list, modules/carray-list-tests: New files.
10697 * modules/linked-list, modules/linked-list-tests: New files.
10698 * modules/avltree-list, modules/avltree-list-tests: New files.
10699 * modules/rbtree-list, modules/rbtree-list-tests: New files.
10700 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
10701 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
10702 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
10703 * modules/oset: New file.
10704 * modules/array-oset: New file.
10705 * modules/avltree-oset, modules/avltree-oset-tests: New files.
10706 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
10707 * tests/test-carray_list.c: New file.
10708 * tests/test-linked_list.c: New file.
10709 * tests/test-avltree_list.c: New file.
10710 * tests/test-rbtree_list.c: New file.
10711 * tests/test-linkedhash_list.c: New file.
10712 * tests/test-avltreehash_list.c: New file.
10713 * tests/test-rbtreehash_list.c: New file.
10714 * tests/test-avltree_oset.c: New file.
10715 * tests/test-rbtree_oset.c: New file.
10716 * MODULES.html.sh (Container data structures): New section.
10718 2006-07-17 Bruno Haible <bruno@clisp.org>
10720 * m4/gl_list.m4: New file.
10722 2006-07-17 Bruno Haible <bruno@clisp.org>
10724 * lib/gl_list.h: New file.
10725 * lib/gl_list.c: New file.
10726 * lib/gl_array_list.h: New file.
10727 * lib/gl_array_list.c: New file.
10728 * lib/gl_carray_list.h: New file.
10729 * lib/gl_carray_list.c: New file.
10730 * lib/gl_linked_list.h: New file.
10731 * lib/gl_linked_list.c: New file.
10732 * lib/gl_anylinked_list1.h: New file.
10733 * lib/gl_anylinked_list2.h: New file.
10734 * lib/gl_avltree_list.h: New file.
10735 * lib/gl_avltree_list.c: New file.
10736 * lib/gl_anyavltree_list1.h: New file.
10737 * lib/gl_anyavltree_list2.h: New file.
10738 * lib/gl_rbtree_list.h: New file.
10739 * lib/gl_rbtree_list.c: New file.
10740 * lib/gl_anyrbtree_list1.h: New file.
10741 * lib/gl_anyrbtree_list2.h: New file.
10742 * lib/gl_anytree_list1.h: New file.
10743 * lib/gl_anytree_list2.h: New file.
10744 * lib/gl_linkedhash_list.h: New file.
10745 * lib/gl_linkedhash_list.c: New file.
10746 * lib/gl_anyhash_list1.h: New file.
10747 * lib/gl_anyhash_list2.h: New file.
10748 * lib/gl_avltreehash_list.h: New file.
10749 * lib/gl_avltreehash_list.c: New file.
10750 * lib/gl_rbtreehash_list.h: New file.
10751 * lib/gl_rbtreehash_list.c: New file.
10752 * lib/gl_anytreehash_list1.h: New file.
10753 * lib/gl_anytreehash_list2.h: New file.
10755 * lib/gl_oset.h: New file.
10756 * lib/gl_oset.c: New file.
10757 * lib/gl_array_oset.h: New file.
10758 * lib/gl_array_oset.c: New file.
10759 * lib/gl_avltree_oset.h: New file.
10760 * lib/gl_avltree_oset.c: New file.
10761 * lib/gl_rbtree_oset.h: New file.
10762 * lib/gl_rbtree_oset.c: New file.
10763 * lib/gl_anytree_oset.h: New file.
10765 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
10767 * m4/mkancesdirs.m4: New file.
10768 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
10769 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
10770 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
10773 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
10775 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
10776 * lib/mkancesdirs.h: New files.
10777 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
10778 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
10779 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
10780 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
10781 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
10782 callers changed. Revamp internals significantly, by not
10783 attempting to create directories that are temporarily more
10784 permissive than the final results. Do not attempt to use
10785 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
10786 This removes some race conditions, fixes some bugs, and simplifies
10787 things. Use new dirchownmod function to do owner and mode changes.
10788 * lib/mkdir-p.h: Likewise.
10789 * lib/modechange.c (octal_to_mode): New function.
10790 (struct mode_change): New member mentioned.
10791 (make_node_op_equals): New arg mentioned. All callers changed.
10792 (mode_compile): Keep track of which mode bits the user has explicitly
10794 (mode_adjust): New arg DIR, so that we implement the X op correctly.
10795 New arg PMODE_BITS, to keep track of which mode bits the user
10796 mentioned; it treats S_ISUID and S_ISGID speciall.
10797 All callers changed.
10798 * lib/modechange.h: Likewise.
10800 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
10802 * MODULES.html.sh: Add mkancestors.
10803 * modules/mkancesdirs: New module.
10804 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
10805 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
10806 The chdir-safer and afs files are now orphans; I'll remove them
10807 unless someone speaks up.
10808 Add lib/dirchownmod.c, lib/dirchownmod.h.
10809 (Depends-on): Remove alloca, chown, save-cwd, dirname.
10810 Add lchown, mkancesdirs.
10811 (Maintainer): Add self.
10813 2006-07-15 Karl Berry <karl@gnu.org>
10815 * gnulib-tool: help message wording/arrangement.
10817 2006-07-14 Simon Josefsson <jas@extundo.com>
10819 * doc/gnulib.texi (Libtool and Windows): New section.
10821 2006-07-12 Simon Josefsson <jas@extundo.com>
10823 * modules/gendocs (License): Fix license, approved by Karl.
10825 2006-07-12 Eric Blake <ebb9@byu.net>
10827 * MODULES.html.sh: Add gendocs.
10829 2006-07-11 Eric Blake <ebb9@byu.net>
10831 * modules/fdl: New module, to install doc/fdl.texi.
10832 * MODULES.html.sh: Add new section for documentation modules.
10833 * gnulib-tool: Avoid space-tab.
10834 (--doc-base): New option, to manage files from doc.
10836 2006-07-11 Eric Blake <ebb9@byu.net>
10838 * m4/absolute-header.m4: Fix comments to match recent change.
10840 2006-07-11 Eric Blake <ebb9@byu.net>
10842 * gnulib-tool: List --doc-base before --tests-base.
10844 2006-07-11 Derek R. Price <derek@ximbiot.com>
10846 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
10848 2006-07-11 Bruno Haible <bruno@clisp.org>
10850 * README: Mention where to put documentation.
10852 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10854 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
10856 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
10858 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
10861 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
10863 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
10864 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
10865 "no/such/file/stdint.h" when there is no such file, so that
10866 the resulting C code can be parsed by dodgy compilers.
10867 Problems reported by Bob Proulx.
10869 2006-07-10 Derek R. Price <derek@ximbiot.com>
10871 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
10872 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
10873 macros into the GNU _D_EXACT_NAMLEN.
10874 * lib/savedir.c: Likewise.
10875 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
10877 2006-07-10 Derek R. Price <derek@ximbiot.com>
10878 and Paul Eggert <eggert@cs.ucla.edu>
10880 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
10882 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
10883 macros into the GNU _D_EXACT_NAMLEN.
10885 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
10887 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
10888 around the absolute name, to work around a problem with the HP-UX
10889 11.23 native C compiler, reported by Bob Proulx.
10891 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
10893 * doc/maintain.texi, make-stds.texi: Sync from
10894 <http://savannah.gnu.org/projects/gnustandards>.
10896 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
10898 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
10900 2006-07-09 Jim Meyering <jim@meyering.net>
10902 * m4/glob.m4: Remove a doubled word in a comment.
10904 2006-07-09 Jim Meyering <jim@meyering.net>
10906 * lib/argp-pv.c: Remove a doubled word in a comment.
10907 * lib/check-version.c (check_version): Likewise.
10908 * lib/javacomp.c (compile_java_class): Likewise.
10910 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
10912 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
10913 for the benefit of people using Autoconf 2.60. If you want to
10914 support older Autoconf versions you can copy m4/onceonly_2_57.m4
10915 (or m4/onceonly.m4, if pre-2.57) manually.
10917 2006-07-08 Jim Meyering <jim@meyering.net>
10919 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
10921 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
10922 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
10925 2006-07-08 Jim Meyering <jim@meyering.net>
10927 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
10929 2006-07-07 Simon Josefsson <jas@extundo.com>
10931 * tests/test-crc.c: Change expected crc value, the test vector
10932 were probably computed using the old broken crc.c?
10934 2006-07-06 Simon Josefsson <jas@extundo.com>
10936 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
10937 now the canonical place for the M4 file).
10939 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
10940 from the sys_socket dependency now.
10942 * modules/inet_pton (Files): Ditto.
10944 * modules/inet_ntop (Files): Ditto.
10946 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10948 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
10949 not gl_PREREQ_GETUSERSHELL.
10951 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10953 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
10954 with only one argument, for Autoconf 2.60.
10955 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
10956 expand to nothing, so add a shell command to avoid syntax error.
10957 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10959 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10961 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
10963 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
10965 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
10966 no longer needed. Check for isblank decl.
10967 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
10968 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
10971 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
10973 * lib/getloadavg.c: Use __VMS, not VMS.
10974 * lib/getopt.c: Likewise.
10975 * lib/getpagesize.h: Likewise.
10976 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
10977 and probably does not work.
10979 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
10981 * lib/.cppi-disable: Add wcwidth.
10982 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
10983 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
10984 (ISGRAPH): Remove. All uses changed to isgraph.
10985 (FOLD) [!defined _LIBC]: Remove special case.
10986 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
10987 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
10989 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
10992 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
10994 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
10995 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
10996 brackets. Other minor changes to suppress some compiler
10999 2006-07-06 Derek R. Price <derek@ximbiot.com>
11000 and Paul Eggert <eggert@cs.ucla.edu>
11002 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
11003 of invoking obsolescent AC_HEADER_DIRENT macro.
11004 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11005 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
11006 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11007 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11008 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
11009 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11010 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
11011 * m4/readdir.m4: Remove; no longer needed.
11013 2006-07-06 Derek R. Price <derek@ximbiot.com>
11014 and Paul Eggert <eggert@cs.ucla.edu>
11016 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
11017 Don't worry about this obsolete case any more.
11018 (HAVE_DIR): Remove. All uses removed; we now assume you can read
11020 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
11021 worry about this obsolete case any more.
11022 * lib/fts.c: Likewise.
11023 * lib/getcwd.c: Likewise.
11024 * lib/glob.h: Likewise.
11025 * lib/savedir.c: Likewise.
11027 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
11029 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
11030 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
11031 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
11034 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
11035 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
11036 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
11038 * m4/getdate.m4 (gl_GETDATE): Likewise.
11039 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
11040 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
11041 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11042 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
11043 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
11044 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
11045 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
11048 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
11050 * lib/memcasecmp.c: Include <limits.h>.
11051 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
11052 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
11053 Don't assume isdigit succeeds only on '0' through '9'.
11055 2006-07-05 Eric Blake <ebb9@byu.net>
11057 * modules/getaddrinfo (Depends-on): Add snprintf.
11059 2006-07-05 Eric Blake <ebb9@byu.net>
11061 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
11062 to avoid 'header present but could not be compiled' on cygwin.
11064 2006-07-05 Eric Blake <ebb9@byu.net>
11066 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
11067 missing from netdb.h.
11068 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
11070 2006-07-05 Derek R. Price <derek@ximbiot.com>
11072 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
11074 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
11075 * m4/getdate.m4 (gl_GETDATE): Likewise.
11076 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
11077 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
11078 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11079 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
11080 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
11082 2006-07-05 Derek R. Price <derek@ximbiot.com>
11084 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
11085 All uses of is_space replaced by isspace.
11086 * lib/exit.h: Don't talk about STDC_HEADERS.
11087 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
11088 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
11089 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
11090 replaced by isprint etc.
11091 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
11092 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
11093 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
11094 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
11095 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
11096 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
11098 2006-07-05 Bruno Haible <bruno@clisp.org>
11100 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
11101 the function exists, before testing against AIX.
11102 Reported by Martin Lambers <marlam@marlam.de>.
11104 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
11106 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
11107 From Mark D. Baushke.
11109 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
11111 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
11112 to the absolute name, not just one, to bypass Sun C 5.8's
11113 "warning: #include of /usr/include/... may be non-portable".
11115 2006-07-04 Eric Blake <ebb9@byu.net>
11117 * modules/dirname-tests: New test module.
11118 * tests/test-dirname.c: New file, replacing dirname.c
11119 TEST_DIRNAME section that was recently deleted.
11121 2006-07-04 Bruno Haible <bruno@clisp.org>
11123 Assume ANSI C header files and <ctype.h> functions.
11124 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
11125 (mbsnwidth): Use isprint, iscntrl instead.
11127 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
11129 Merge from coreutils.
11130 * MODULES.html.sh: Add xstrtold.
11131 * modules/xstrtold: New file.
11132 * modules/cycle-check (Files): Add lib/same-inode.h.
11133 * modules/dirname (Files): Add m4/double-slash-root.m4.
11134 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
11135 * modules/mkdir-p (Files): Add lib/same-inode.h.
11136 * modules/same (Files): Add lib/same-inode.h.
11138 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
11140 * m4/absolute-header.m4: Renamed from full-header-path.m4.
11141 This is to keep the terminology clean; POSIX talks about
11142 "absolute pathnames", not "full pathnames", but the GNU
11143 Coding Standards say to use "path" for something else;
11144 so use "absolute" to keep both sides happy.
11145 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
11146 Set gl_absolute_header, not gl_full_header_path.
11147 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
11148 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
11151 Merge from coreutils.
11153 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
11155 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
11156 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
11157 want to require the building of c-strtod.o.
11158 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
11159 needs -lm directly.
11160 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
11162 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
11164 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
11165 --as-needed option if available. Problem reported by Albert Chin in
11166 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
11167 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
11168 cc merely issues a bunch of annoying warnings for --as-needed
11169 (this problem was reported by Bob Proulx). Also, try linking with
11170 -lm to detect a bug in binutils 2.16 (this problem was reported
11171 by Ralf Wildenhues).
11173 2006-06-18 Jim Meyering <jim@meyering.net>
11175 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
11176 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
11178 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
11179 also check for glibc-2.4's abort-inducing bug.
11181 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
11182 Low-probability clean-up should be to use rmdir to get rid of
11183 the just-created directory, not unlink.
11185 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
11186 configure fail, and request a bug report to inform us about it.
11187 Add a comment that, barring reports to the contrary, in 2007 we'll
11188 assume ftruncate is universally available.
11190 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
11192 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
11194 2006-03-12 Jim Meyering <jim@meyering.net>
11196 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
11197 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
11198 * m4/same.m4 (gl_SAME): Likewise.
11199 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
11201 2006-03-11 Eric Blake <ebb9@byu.net>
11203 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
11204 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
11205 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
11206 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
11208 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
11210 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
11211 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
11212 reported by Mark D. Baushke, one in
11213 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
11215 Merge from coreutils.
11217 * lib/.cppi-disable: Add stdint_.h.
11218 * lib/.cvsignore: Add stdint.h.
11220 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
11222 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
11223 both double and long double versions.
11224 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
11225 * lib/xstrtold.c: New file.
11226 * lib/xstrtod.h (xstrtold): New decl.
11228 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
11230 * lib/filemode.c (setst): Remove.
11231 (strmode): Rewrite to avoid setst. This makes the code shorter,
11232 (arguably) clearer, and the generated code is a bit smaller on my
11233 Debian GNU/Linux stable x86 host.
11235 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
11237 * lib/filemode.c: Include "filemode.h" first, to test the interface.
11238 Assume that filemode.h includes sys/types.h and sys/stat.h.
11239 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
11240 (ftypelet): Reorder to put common cases first, for efficiency.
11241 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
11243 (strmode): Renamed from mode_string, and now stores 12 bytes instead
11244 of 10, for compatibility with FreeBSD. All callers changed.
11245 (filemodestring): Now stores 12 bytes instead of 10, and sets file
11246 types that can't be deduced solely from st_mode. First arg is now a
11248 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
11249 (strmode): Renamed from mode_string.
11250 (filemodestring): New decl.
11251 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
11252 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
11254 (S_ISPORT, S_ISWHT): New macros, if not already defined.
11256 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
11258 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
11259 fsusage.h now does that. Include fsusage.h first, to test interface.
11260 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
11261 at most one method (the old code could have generated decls that
11262 didn't conform to C89, not that this was ever exercised).
11263 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
11265 2006-03-19 Jim Meyering <jim@meyering.net>
11267 Work even in a chroot where d_ino values for entries in "/"
11268 don't match the stat.st_ino values for the same names.
11269 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
11270 number, iterate through all entries again, using lstat instead.
11271 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
11272 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
11274 * lib/getcwd.c (__getcwd): Clarify a comment.
11275 Use memcpy in place of a call to strcpy.
11277 2006-03-12 Jim Meyering <jim@meyering.net>
11279 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
11280 matches that of the current directory (which we're about to chdir ".."
11281 out of), then save the dev-ino of the parent, instead.
11283 * lib/same-inode.h (SAME_INODE): New file/macro.
11284 * lib/chdir-safer.c (SAME_INODE): Remove definition.
11285 Include "same-inode.h", instead.
11286 * lib/same.c: Likewise.
11287 * lib/cycle-check.h: Include "same-inode.h".
11288 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
11289 * lib/cycle-check.c (SAME_INODE): Remove definition.
11290 * lib/root-dev-ino.h: Include "same-inode.h".
11292 2006-03-11 Eric Blake <ebb9@byu.net>
11294 * lib/same.c (same_name): s/base_name/last_component/
11295 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
11296 * lib/filenamecat.c (file_name_concat): Likewise.
11298 2006-03-11 Eric Blake <ebb9@byu.net>,
11299 Paul Eggert <eggert@cs.ucla.edu>
11301 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
11302 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
11304 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
11305 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
11306 (last_component): New method.
11307 * lib/dirname.c (dir_len): Determine when drive letters need a
11308 subsequent slash. Preserve // when it is special.
11309 (dir_name): Don't append dot when drive letter is absolute.
11310 [TEST_DIRNAME]: Move into a full-blown gnulib test.
11311 * lib/basename.c (base_name): New semantics - malloc the result.
11312 Preserve // when it is special. Preserve relative files that look
11313 like drive letters.
11314 (base_len): Preserve // when it is special.
11315 (last_component): New method, similar to old base_name semantics.
11316 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
11317 base_name. Strip redundant slashes from ///.
11319 2006-07-03 Jim Meyering <jim@meyering.net>
11321 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
11322 macro is used before the first cycle_check call.
11324 2006-07-03 Eric Blake <ebb9@byu.net>
11326 * modules/dirname (Depends-on): Add xstrndup.
11328 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
11330 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
11331 test cases, so that config.log is a bit easier to follow.
11333 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
11335 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
11336 both are 64 bits, since this seems to be the tradition, and this
11337 prevents gcc -Wformat from warning about usages with PRIuMAX. If
11338 we ever run into a host that prefers long long to long in this
11339 case, we'll need another configure-time test. Problem reported by
11342 2006-07-02 Eric Blake <ebb9@byu.net>
11344 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
11346 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
11348 * modules/inttypes (Depends-on): No longer depends on stdint.
11349 * modules/stdint (Description): Say more about assumptions.
11350 Say that the fast types might differ. Say macros are used.
11351 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
11352 (Makefile.am): Revise list of substituted symbols to match
11354 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
11355 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
11356 * tests/test-stdint.c (verify_same_types)
11357 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
11358 the code conforms to C99/C89.
11359 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
11360 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
11362 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
11364 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
11365 but fix a bug, by requiring at least 64 bits.
11366 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
11367 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
11368 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
11369 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
11371 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
11372 changes. Make 2.59 a prerequisite. Check and substitute for
11373 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
11374 inttypes.h. Do not use special include files; just use the
11375 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
11376 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
11377 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
11378 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
11379 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
11380 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
11381 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
11382 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
11383 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
11384 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
11385 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
11386 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
11387 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
11388 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
11389 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
11390 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
11391 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
11392 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
11393 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
11394 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
11395 WINT_MAX. Check for C99 conformance more strictly, by detecting
11396 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
11397 not check for things that C99 does not require, e.g., int8_t. If
11398 a test isn't needed unless <stdint.h> isn't working, and is
11399 unlikely to be needed for any other reason, then don't do it
11400 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
11401 size_t, since we assume C89 freestanding at least. Do not check
11402 for sig_atomic_t, wchar_t, or wint_t, since the code now does
11403 the right thing even if the types are not defined. Instead use:
11404 (gl_STDINT_TYPE_PROPERTIES): New macro.
11405 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
11406 testing whether <sys/types.h> clashes, as Autoconf does this for
11407 us now. All uses removed.
11408 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
11409 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
11410 (gl_CHECK_TYPE_SAME):
11411 Remove; no longer needed.
11412 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
11413 exists, since we'll return 0 anyway in that case.
11414 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
11416 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
11418 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
11419 possible collision with system files.
11420 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
11421 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
11422 WCHAR_MIN and WCHAR_MAX in this case.
11423 (<stddef.h>): Do not include; no longer needed.
11424 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
11425 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
11426 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
11427 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
11428 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
11429 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
11430 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
11431 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
11432 !defined(__c99))]: Include in this case too, since it's harmless
11434 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
11435 dangerous to do so.
11436 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
11437 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
11438 (_STDINT_MIN, _STDINT_MAX): New macros.
11439 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
11440 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
11441 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
11442 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
11443 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
11444 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
11445 macros, not typedefs; this simplifies things quite a bit.
11446 Use long int for all types narrower than int64_t.
11447 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
11448 Define in terms of long long int or int64_t or long int,
11449 not int64_t or int32_t. This saves some compile-time testing.
11450 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
11451 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
11452 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
11453 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
11454 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
11455 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
11456 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
11457 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
11458 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
11459 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
11460 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
11461 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
11462 undef any previous version and define our own version, for
11463 simplicity and consistency with the new macros for types.
11464 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
11465 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
11466 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
11467 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
11468 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
11469 @WINT_T_SUFFIX@ to keep things simple here.
11470 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
11471 Simplify by assuming typical 8/16/32/64 host, since we're
11472 already doing that elsewhere anyway.
11473 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
11474 and assume long long int is 64 bits if available. This
11475 speeds up 'configure'.
11477 2006-07-01 Eric Blake <ebb9@byu.net>
11479 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
11480 Reported by Andreas Buening.
11482 2006-07-01 Eric Blake <ebb9@byu.net>
11484 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
11486 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
11488 * lib/getaddrinfo.c: fixed typo
11490 2006-06-29 Jim Meyering <jim@meyering.net>
11492 * modules/strftime (Maintainer): Add my name, since with the
11493 FPRINTFTIME changes strftime.c has forked from glibc.
11495 2006-06-29 Eric Blake <ebb9@byu.net>
11497 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
11499 2006-06-29 Eric Blake <ebb9@byu.net>
11501 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
11503 2006-06-29 Eric Blake <ebb9@byu.net>
11505 * lib/stat_.h: New file.
11507 2006-06-29 Eric Blake <ebb9@byu.net>
11509 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
11510 unused static function.
11512 2006-06-29 Eric Blake <ebb9@byu.net>
11514 * doc/functions.texi (Function Portability): Document missing lstat
11517 2006-06-29 Eric Blake <ebb9@byu.net>
11519 * MODULES.html.sh: Add sys_stat.
11520 * modules/sys_stat: New module.
11521 * modules/mkstemp (Depends-on): Add sys_stat.
11523 2006-06-29 Derek R. Price <derek@ximbiot.com>
11525 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
11527 2006-06-29 Derek R. Price <derek@ximbiot.com>
11529 * m4/c-bs-a.m4: Removed.
11531 2006-06-29 Derek R. Price <derek@ximbiot.com>
11533 * lib/strftime.c: Assume strftime() exists.
11535 2006-06-29 Derek Price <derek@ximbiot.com>
11537 * modules/c-bs-a: Removed - \a is C89.
11538 * MODULES.html.sh: Remove c-bs-a.
11540 2006-06-29 Bruno Haible <bruno@clisp.org>
11542 * modules/wcwidth (License): Change to LGPL.
11544 2006-06-28 Simon Josefsson <jas@extundo.com>
11546 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
11549 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
11552 2006-06-28 Simon Josefsson <jas@extundo.com>
11554 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
11556 2006-06-28 Simon Josefsson <jas@extundo.com>
11558 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
11559 functions there. It will succeed on Windows XP, but on Windows
11560 2000 and (presumably) earlier, it will fail, and use the internal
11562 (use_win32_p): New function.
11563 (getaddrinfo): Use strtoul on servname, to support numeric ports.
11564 Support AI_NUMERICSERV to disable getservbyname.
11565 (getnameinfo): New function, only supports
11566 NI_NUMERICHOST|NI_NUMERICSERV for now.
11568 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
11569 only have some of them. Add AI_NUMERICSERV. Add prototype for
11572 2006-06-28 Eric Blake <ebb9@byu.net>
11574 * modules/wcwidth: New file.
11575 * modules/mbchar (Depends-on): Add wcwidth.
11576 * modules/mbswidth (Depends-on): Add wcwidth.
11577 * MODULES.html.sh: Add wcwidth.
11579 2006-06-28 Eric Blake <ebb9@byu.net>
11581 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
11582 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
11584 2006-06-28 Eric Blake <ebb9@byu.net>
11586 * lib/xvasprintf.h: Fix comments.
11588 2006-06-28 Eric Blake <ebb9@byu.net>
11590 * lib/mbchar.h (wcwidth): Include wcwidth.h.
11591 * lib/mbswidth.c (wcwidth): Move from here...
11592 * lib/wcwidth.h: ...to this new file.
11594 2006-06-28 Derek R. Price <derek@ximbiot.com>
11596 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
11598 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
11600 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
11602 2006-06-28 Derek R. Price <derek@ximbiot.com>
11604 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
11605 Autoconf 2.60 says this stuff was obsolete.
11607 2006-06-28 Bruno Haible <bruno@clisp.org>
11609 * modules/wcwidth (Files): Add m4/wchar_t.m4.
11611 2006-06-28 Bruno Haible <bruno@clisp.org>
11613 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
11616 2006-06-28 Bruno Haible <bruno@clisp.org>
11618 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
11619 declaration for wcwidth.
11620 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
11622 2006-06-28 Bruno Haible <bruno@clisp.org>
11624 * lib/mkdtemp.c [MINGW]: Include <io.h>.
11625 (mkdir): Define using _mkdir.
11627 2006-06-28 Bruno Haible <bruno@clisp.org>
11629 * lib/getaddrinfo.h: Fix POSIX URL.
11630 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
11632 (use_win32_p): Make static.
11633 (getaddrinfo): Reject service name if it is empty or does not consist
11634 solely of decimal digits, or if its value is > 65535.
11635 (getnameinfo): Remove useless casts.
11637 2006-06-27 Simon Josefsson <jas@extundo.com>
11639 * modules/sys_select: New file, suggested by Bruno Haible, Paul
11640 Eggert and Martin Lambers.
11642 2006-06-27 Simon Josefsson <jas@extundo.com>
11644 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
11645 Eggert and Martin Lambers.
11647 2006-06-27 Bruno Haible <bruno@clisp.org>
11649 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
11650 result to 0, not to empty.
11651 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
11653 2006-06-27 Bruno Haible <bruno@clisp.org>
11655 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
11657 2006-06-26 Simon Josefsson <jas@extundo.com>
11659 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
11662 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
11664 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
11665 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
11666 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
11668 2006-06-26 Mark D. Baushke <mdb@gnu.org>
11670 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
11672 2006-06-26 Bruno Haible <bruno@clisp.org>
11674 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
11676 2006-06-26 Bruno Haible <bruno@clisp.org>
11678 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
11680 2006-06-26 Bruno Haible <bruno@clisp.org>
11682 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
11683 SGI C compiler in pre-C99 mode.
11684 Suggested by Mark D. Baushke and Larry Jones.
11686 2006-06-26 Bruno Haible <bruno@clisp.org>
11688 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
11690 Reported by Mark D. Baushke and Larry Jones.
11692 2006-06-26 Bruno Haible <bruno@clisp.org>
11694 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
11696 Suggested by Mark D. Baushke and Larry Jones.
11698 2006-06-23 Simon Josefsson <jas@extundo.com>
11699 Bruno Haible <bruno@clisp.org>
11701 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
11702 Emit mostlyclean-local rule.
11703 (func_emit_tests_Makefile_am): Likewise.
11704 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
11706 2006-06-23 Mark D. Baushke <mdb@gnu.org>
11708 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
11710 2006-06-23 Bruno Haible <bruno@clisp.org>
11712 * tests/test-stdint.c: Update to match ISO C 99 Technical
11715 2006-06-23 Bruno Haible <bruno@clisp.org>
11717 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
11719 2006-06-23 Bruno Haible <bruno@clisp.org>
11721 * lib/stdint_.h: Treat IRIX like OpenBSD.
11723 2006-06-23 Bruno Haible <bruno@clisp.org>
11725 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
11726 ISO C 99 Technical Corrigendum 1.
11728 2006-06-22 Simon Josefsson <jas@extundo.com>
11730 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
11733 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
11735 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
11736 needed. Some compiler complained about some of them. Problem reported
11738 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
11740 2006-06-21 Simon Josefsson <jas@extundo.com>
11742 * tests/test-getaddrinfo.c: New file.
11744 * modules/getaddrinfo-tests: New file.
11746 * MODULES.html.sh: Add inet_pton.
11748 * modules/inet_pton: New file.
11750 2006-06-21 Simon Josefsson <jas@extundo.com>
11752 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
11753 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
11754 of using the (limited) gnulib implementation on Windows XP.
11756 * m4/inet_pton.m4: New file.
11758 2006-06-21 Simon Josefsson <jas@extundo.com>
11760 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
11763 * lib/socket_.h: Don't define WINVER.
11765 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
11766 slightly modified to work in gnulib.
11768 2006-06-21 Simon Josefsson <jas@extundo.com>
11770 * doc/gnulib.texi (Windows sockets): Add.
11772 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
11774 * lib/read-file.c (fread_file): Start with buffer allocation of
11775 0 bytes rather than 1 byte; this simplifies the code.
11776 Don't invoke feof; it's not needed. Refactor to avoid duplicate
11777 code to free buffer and save/restore errno.
11778 (internal_read_file): Remove unused local.
11780 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
11782 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
11783 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
11784 Problem reported by Denis Excoffier in
11785 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
11787 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11789 * modules/sys_socket, modules/socklen: Include sys/types since
11790 FreeBSD 4.x's sys/socket.h needs it.
11792 2006-06-19 Simon Josefsson <jas@extundo.com>
11794 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
11796 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
11798 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
11800 2006-06-19 Bruno Haible <bruno@clisp.org>
11802 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
11803 and FULL_PATH_INTTYPES_H in angle brackets.
11804 Reported by Mark D. Baushke <mdb@gnu.org>.
11806 2006-06-17 Eric Blake <ebb9@byu.net>
11808 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
11811 2006-06-17 Bruno Haible <bruno@clisp.org>
11813 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
11816 2006-06-17 Bruno Haible <bruno@clisp.org>
11818 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
11819 whether errno is declared. Assume <errno.h> declares errno.
11821 2006-06-17 Bruno Haible <bruno@clisp.org>
11823 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
11825 2006-06-17 Bruno Haible <bruno@clisp.org>
11827 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
11828 problem on Solaris 2.5.1.
11830 2006-06-16 Eric Blake <ebb9@byu.net>
11832 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
11833 * lib/unicodeio.c [!defined errno]: Likewise.
11834 * lib/strtol.c [!defined errno]: Likewise.
11835 * lib/strtod.c [!defined errno]: Likewise.
11837 2006-06-15 Eric Blake <ebb9@byu.net>
11839 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
11841 2006-06-15 Eric Blake <ebb9@byu.net>
11843 * config/srclist.txt (ssize_t.m4): Lose sync.
11845 2006-06-15 Bruno Haible <bruno@clisp.org>
11847 * modules/stdint (Files): Include m4/full-header-path.m4,
11848 m4/size_max.m4, m4/wchar_t.m4.
11849 (Makefile.am): Many more substitutions.
11850 * modules/stdint-tests: New file.
11851 * tests/test-stdint.c: New file.
11853 2006-06-15 Bruno Haible <bruno@clisp.org>
11855 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
11856 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
11857 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
11858 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
11859 gl_CHECK_TYPE_SAME): New macros.
11861 2006-06-15 Bruno Haible <bruno@clisp.org>
11863 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
11865 2006-06-15 Bruno Haible <bruno@clisp.org>
11867 * lib/stdint_.h: Rewritten to be fully auto-configured.
11868 Fixes bug on HP-UX/IA64.
11870 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
11872 * lib/getdate.y (__attribute__): Don't define if already defined.
11873 Problem reported by Larry Jones.
11874 * lib/utimens.c (__attribute__): Likewise.
11876 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
11878 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
11879 reported by Andreas Schwab.
11881 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11882 Bruno Haible <bruno@clisp.org>
11884 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
11885 check for the declaration of strnlen and a run test that exposes the
11886 AIX 5.1 strnlen bug. In the failure case, #define strndup to
11889 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11890 Bruno Haible <bruno@clisp.org>
11892 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
11894 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11896 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
11897 compile test, for Tru64 4.0D.
11899 2006-05-28 Karl Berry <karl@gnu.org>
11901 * config/srclist.txt (printf-args.c): lose sync.
11903 2006-05-26 Martin Lambers <marlam@marlam.de>
11905 * lib/getpass.c: Updates the test for the native W32 API, and adds
11906 missing includes, thus fixing compilation warnings.
11908 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
11910 * lib/exclude.c (exclude_fnmatch): New function.
11911 (excluded_file_name): Call exclude_fnmatch.
11912 * lib/exclude.h (excluded_file_name): New prototype
11914 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
11916 * lib/tempname.c (small_open, large_open): New macros.
11917 (__open, __open64) [!_LIBC]: Remove.
11918 (__gen_tempname): Use small_open and large_open instead of __open
11919 and __open64. This fixes a portability bug on HP-UX 11.11i
11920 reported by Simon Wing-Tang in
11921 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
11923 2006-05-24 Bruno Haible <bruno@clisp.org>
11925 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
11926 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
11927 Reported by Thorsten Maerz <torte@netztorte.de> via
11928 Aaron Stone <aaron@serendipity.cx>.
11930 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
11932 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
11933 gl_ rather than jm_. Link, don't run, so that cross-compiles are
11934 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
11935 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
11936 not really conditional on the cache.
11937 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
11939 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
11941 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
11942 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
11943 (my_usleep): Don't mishandle maximum value.
11945 2006-05-19 Jim Meyering <jim@meyering.net>
11947 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
11949 2006-05-17 Bruno Haible <bruno@clisp.org>
11951 Cygwin portability.
11952 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
11954 2006-05-17 Bruno Haible <bruno@clisp.org>
11956 * lib/stdint_.h: Fix recognition of Cygwin.
11958 2006-05-15 Bruno Haible <bruno@clisp.org>
11960 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
11961 on libtool patch by Ralf Wildenhues.
11963 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
11965 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
11966 test for C99 conformance; (bool) 0.5 is an integer constant
11967 expression, but (bool) -0.5 is not. Problem reported by Fedor
11968 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
11970 2006-05-11 Simon Josefsson <jas@extundo.com>
11972 * m4/xvasprintf.m4: Fix obvious typo.
11974 2006-05-11 Jim Meyering <jim@meyering.net>
11976 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
11979 2006-05-10 Simon Josefsson <jas@extundo.com>
11981 * lib/md4.c: Typo fix, update copyright years.
11982 (K1, K2): Don't use L because it turn computations into 64-bit on
11985 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
11987 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
11988 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
11989 unwanted sign propagation, e.g., on hosts with 64-bit int.
11990 There still are some problems with reeelly weird theoretical hosts
11991 (e.g., 33-bit int) but it's not worth worrying about now.
11992 * lib/sha1.c (rol): Likewise.
11993 (K1, K2, K3, K4): Remove unnecessary L suffix.
11995 2006-05-10 Bruno Haible <bruno@clisp.org>
11997 * lib/des.c: Cast to avoid warnings.
11999 2006-05-09 Bruno Haible <bruno@clisp.org>
12001 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
12002 (Depends-on): Depend also on xsize, stdarg.
12003 (configure.ac): Add gl_XVASPRINTF.
12005 2006-05-09 Bruno Haible <bruno@clisp.org>
12007 * m4/xvasprintf.m4: New file.
12009 2006-05-09 Bruno Haible <bruno@clisp.org>
12011 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
12012 (EOVERFLOW): Define fallback value.
12013 (xstrcat): New function.
12014 (xvasprintf): Recognize the special case of a string concatenation.
12016 2006-05-08 Eric Blake <ebb9@byu.net>
12018 * gnulib-tool (func_version): Base copyright year on CVS date.
12019 (func_emit_copyright_notice): New function.
12020 (func_emit_lib_Makefile_am): Use it.
12021 (func_emit_tests_Makefile_am): Likewise.
12022 (func_import): Likewise.
12024 2006-05-08 Bruno Haible <bruno@clisp.org>
12026 * modules/stdarg: New file.
12027 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
12029 2006-05-08 Bruno Haible <bruno@clisp.org>
12031 * m4/stdarg.m4: New file, from GNU gettext.
12033 2006-05-08 Bruno Haible <bruno@clisp.org>
12035 * config/srclist.txt (build-aux/config.rpath): different from latest
12038 2006-05-08 Bruno Haible <bruno@clisp.org>
12040 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
12042 2006-05-05 Jim Meyering <jim@meyering.net>
12044 * m4/warning.m4: New file, derived from bison's file by the same name.
12046 2006-05-03 Bruno Haible <bruno@clisp.org>
12048 * lib/stdint_.h: Shorter URL.
12049 * lib/inttypes.h: Likewise.
12051 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
12053 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
12055 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
12057 * lib/verify.h: Document the internals better. Most of this change
12058 was written by Bruno Haible.
12060 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
12062 * doc/verify.texi: New file, partly based on a proposal by
12065 2006-05-02 Bruno Haible <bruno@clisp.org>
12067 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
12069 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
12071 2006-04-29 Bruno Haible <bruno@clisp.org>
12073 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
12074 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
12076 2006-04-29 Bruno Haible <bruno@clisp.org>
12078 * gnulib-tool: Make --update option actually work.
12080 2006-04-29 Bruno Haible <bruno@clisp.org>
12082 * doc/gcd.texi: New file.
12083 * doc/gnulib.texi: Include it.
12085 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
12087 * lib/getdate.y (get_date): When adding relative date, start with the
12088 initial time, not with the result of the first mktime call.
12090 2006-04-25 Bruno Haible <bruno@clisp.org>
12092 * gnulib-tool (func_import): Output the include directives in three
12093 blocks, sorted separately.
12094 Reported by Ben Pfaff <blp@cs.stanford.edu>.
12096 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
12098 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
12099 to define main with arguments, for C++. Reported by Eric Blake.
12100 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12101 Prefer 'int main ()' to 'int main (void)', for C++.
12102 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12103 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
12104 for 'main', for C99 and C++.
12106 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
12108 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
12109 Don't assume that exit status -1 is valid.
12110 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12111 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12112 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12113 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
12114 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
12115 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
12116 not AC_TRY_RUN. Use return, not exit. Don't assume that
12117 functions can be used without declaring them, or that you can
12118 exit with status -1.
12119 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
12121 2006-04-24 Karl Berry <karl@gnu.org>
12123 * config/srclist.txt (longdouble.m4): sync lost.
12125 2006-04-24 Eric Blake <ebb9@byu.net>
12127 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
12129 2006-04-24 Bruno Haible <bruno@clisp.org>
12131 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
12132 poll() implementation in AIX.
12133 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12135 2006-04-24 Bruno Haible <bruno@clisp.org>
12137 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
12138 assigned exactly once.
12140 2006-04-23 Claudio Fontana <claudio@gnu.org>
12141 Bruno Haible <bruno@clisp.org>
12143 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
12144 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
12147 2006-04-23 Bruno Haible <bruno@clisp.org>
12149 * modules/copy-file: Depend on unistd.
12150 * modules/execute: Likewise.
12151 * modules/fatal-signal: Likewise.
12152 * modules/findprog: Likewise.
12153 * modules/mkdtemp : Likewise.
12154 * modules/pipe: Likewise.
12155 * modules/wait-process: Likewise.
12157 2006-04-23 Bruno Haible <bruno@clisp.org>
12159 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
12160 condition was already detected.
12161 Reported by Ben Pfaff <blp@cs.stanford.edu>.
12163 2006-04-23 Bruno Haible <bruno@clisp.org>
12165 * lib/copy-file.c: Include <unistd.h> unconditionally.
12166 * lib/execute.c: Likewise.
12167 * lib/fatal-signal.c: Likewise.
12168 * lib/findprog.c: Likewise.
12169 * lib/mkdtemp.c: Likewise.
12170 * lib/pipe.h: Likewise.
12171 * lib/pipe.c: Likewise.
12172 * lib/wait-process.h: Likewise.
12174 2006-04-23 Bruno Haible <bruno@clisp.org>
12176 * gnulib-tool (func_usage): Fix --import description. Document
12178 (func_import): Create temporary file in a temporary directory, if
12179 --dry-run is specified. Silence errors from 'grep' when there are no
12180 m4 files in $m4dir.
12181 (func_create_testdir): Silence errors from 'grep' when there are no
12182 m4 files in $m4dir.
12183 Reported by Karl Berry <karl@freefriends.org>.
12185 2006-04-20 Bruno Haible <bruno@clisp.org>
12187 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
12188 one argument, so that the code will be portable to Autoconf 2.60.
12189 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
12190 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12191 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
12193 2006-04-19 Derek Price <derek@ximbiot.com>
12194 Eric Blake <ebb9@byu.net>
12196 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
12197 rather than "/full/path.h". Update comment to match. Shorten &
12198 generalize m4_translit call via AS_TR_CPP.
12200 2006-04-19 Derek Price <derek@ximbiot.com>
12201 Eric Blake <ebb9@byu.net>
12203 * lib/inttypes.h: Correct grammar in comment.
12205 2006-04-18 Derek Price <derek@ximbiot.com>
12206 Paul Eggert <eggert@cs.ucla.edu>
12208 * modules/inttypes: New file.
12209 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
12211 2006-04-18 Derek Price <derek@ximbiot.com>
12212 Paul Eggert <eggert@cs.ucla.edu>
12214 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
12217 2006-04-18 Derek Price <derek@ximbiot.com>
12218 Paul Eggert <eggert@cs.ucla.edu>
12220 * lib/inttypes.h: New file.
12221 * lib/strtoimax.c: Assume <inttypes.h>.
12223 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
12225 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
12226 isn't mounted. Problem reported by Kir Kolyshkin.
12228 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
12230 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
12231 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
12233 * lib/regex.h (RE_DUP_MAX): Update comment to match current
12236 2006-04-12 Eric Blake <ebb9@byu.net>
12238 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
12239 is now done automatically by the corresponding Autoconf macro.
12241 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
12243 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
12246 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
12248 Merge regex changes from libc, removing some of our
12249 POSIX-conformance changes that were rejected and redoing them in a
12250 less-intrusive way.
12252 * lib/regcomp.c (re_compile_internal, init_dfa):
12253 Length arg is now size_t, not Idx. All uses changed.
12254 (peek_token): Forward decl now says internal_function.
12255 (__re_error_msgid, __re_error_msgid_idx):
12256 Now static rather than extern with attribute_hidden.
12257 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
12258 For some reason libc prefers K&R style defns for external functions.
12259 (regerror) [!defined _LIBC]: Likewise.
12260 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
12261 (seek_collating_symbol_entry, lookup_collation_sequence_value):
12262 (build_range_exp, build_collating_symbol):
12263 Use K&R-style defn.
12264 (re_compile_fastmap): Use '\0' to memset, not 0.
12265 (utf8_sb_map): Make the calculations more obvious.
12266 (init_dfa, parse_bracket_exp, build_charclass_op):
12267 Call calloc and cast result, as glibc does.
12268 (init_word_char, fetch_token, peek_token, peek_token_bracket):
12269 (build_range_exp, build_collating_symbol):
12270 Now internal functions.
12272 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
12274 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
12275 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
12276 Don't depend on VMS; depend on __VMS instead, for POSIX
12277 namespace cleanness.
12278 (regoff_t): Define to ssize_t, not long int.
12280 Remove the REG_ macros named below. Instead, make the old names
12281 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
12283 (REG_BACKSLASH_ESCAPE_IN_LISTS):
12284 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
12285 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
12286 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
12287 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
12288 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
12289 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
12290 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
12291 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
12292 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
12293 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
12294 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
12295 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
12296 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
12297 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
12298 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
12299 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
12301 Remove. All uses replaced by the old RE_* names.
12302 (RE_BACKSLASH_ESCAPE_IN_LISTS):
12303 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
12304 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
12305 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
12306 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
12307 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
12308 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
12309 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
12310 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
12311 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
12312 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
12313 Don't bother having these macros be independent of each others'
12314 values, since they no longer exist in the POSIX name space.
12316 Rename the following member names back to their old names,
12317 unless !__USE_GNU_REGEX. All uses changed back.
12318 (buffer): Renamed from re_buffer.
12319 (allocated): Renamed from re_allocated.
12320 (used): Renamed from re_used.
12321 (syntax): Renamed from re_syntax.
12322 (fastmap): Renamed from re_fastmap.
12323 (translate): Renamed from re_translate.
12324 (can_be_null): Renamed from re_can_be_null.
12325 (regs_allocated): Renamed from re_regs_allocated.
12326 (fastmap_accurate): Renamed from re_fastmap_accurate.
12327 (no_sub): Renamed from re_no_sub.
12328 (not_bol): Renamed from re_not_bol.
12329 (not_eol): Renamed from re_not_eol.
12330 (newline_anchor): Renamed from re_newline_anchor.
12331 (num_regs): Renamed from rm_num_regs.
12332 (start): Renamed from rm_start.
12333 (end): Renamed from rm_end.
12335 (free_state): Move up a bit.
12337 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
12338 #define to be empty.
12339 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
12340 when that is what is intended.
12341 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
12342 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
12344 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
12345 All uses changed back to re_malloc, etc. It's now the caller's
12346 responsibility to check for overflow; all callers changed.
12347 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
12348 (re_x2nrealloc): Remove.
12349 (free_state): Remove decl.
12351 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
12352 (re_set_registers, re_exec):
12353 Use K&R-style defn.
12355 2006-01-31 Roland McGrath <roland@redhat.com>
12357 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
12358 Reported by Mike Frysinger <vapier@gentoo.org>.
12360 2006-01-15 Andreas Jaeger <aj@suse.de>
12363 * lib/regex_internal.c (re_string_reconstruct): Adjust for
12364 build_wcs_upper_buffer change.
12365 (build_wcs_upper_buffer): Change return type.
12367 2005-12-10 Ulrich Drepper <drepper@redhat.com>
12369 * lib/regex_internal.h: Include <stdint.h> if available.
12371 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
12373 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
12375 2005-10-14 Ulrich Drepper <drepper@redhat.com>
12377 * lib/regcomp.c: Adjust for changed secondary hash function.
12379 2005-09-30 Ulrich Drepper <drepper@redhat.com>
12381 * lib/regex.h: Pretty printing.
12382 Clean up namespace a bit.
12384 2005-09-30 Jakub Jelinek <jakub@redhat.com>
12386 * lib/regexec.c (update_cur_sifted_state, check_arrival,
12387 check_arrival_add_next_nodes): Avoid using uninitialized variable.
12389 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
12390 Ulrich Drepper <drepper@redhat.com>
12393 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
12395 (bitset_word_t): Renamed from bitset_word. All uses changed.
12397 2005-09-22 Ulrich Drepper <drepper@redhat.com>
12400 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
12401 * lib/regcomp.c: Remove unnecessary uses of
12402 unsigned RE_TRANSLATE_TYPE.
12403 * lib/regex_internal.h: Likewise.
12404 * lib/regex_internal.c: Likewise.
12405 * lib/regexec.c: Likewise.
12406 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
12408 2005-09-07 Ulrich Drepper <drepper@redhat.com>
12410 * lib/regexec.c (find_recover_state): Remove unnecessary
12412 (transit_state_bkref): Make DFA a const pointer.
12413 (get_subexp): Likewise.
12414 (check_arrival): Likewise.
12415 (update_cur_sifted_state): Likewise.
12416 (re_search_internal): Likewise.
12417 (prune_impossible_nodes): Likewise.
12418 (acquire_init_state_context): Likewise.
12419 (proceed_next_node): Likewise.
12420 (set_regs): Likewise.
12421 (free_fail_stack_return): Likewise.
12422 (check_arrival_expand_ecl): Mark DFA parameter as const.
12423 (check_arrival_expand_ecl_sub): Likewise.
12424 (check_subexp_limits): Likewise.
12425 (sub_epsilon_src_nodes): Likewise.
12426 (add_epsilon_src_nodes): Likewise.
12427 (merge_state_array): Likewise.
12428 (update_regs): Likewise.
12429 (build_trtable): Likewise.
12430 (sift_states_backward): Mark MCTX parameter as const.
12431 (build_sifted_states): Likewise.
12432 (update_cur_sifted_state): Likewise.
12433 (sift_states_mkref): Likewise.
12434 (check_arrival_expand_ecl): Mark eclosure as const.
12435 (check_dst_limits_calc_pos_1): Likewise.
12436 * lib/regex_internal.h (re_match_context_t): Make dfa a const
12439 2005-09-06 Ulrich Drepper <drepper@redhat.com>
12441 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
12442 (transit_state_sb): Likewise.
12443 (transit_state_mb): Likewise.
12444 (sift_states_iter_mb): Likewise.
12445 (check_arrival_add_next_nodes): Likewise.
12446 (check_node_accept_bytes): Change first parameter to pointer-to-const.
12447 [_LIBC] (re_search_2_stub): Use mempcpy.
12449 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
12450 mbrtowc for very simple UTF-8 case.
12452 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
12453 a pointer-to-const.
12454 (re_acquire_state_context): Likewise.
12455 * lib/regex_internal.h: Adjust prototypes.
12457 * lib/regex.c: Prevent using C++ compilers.
12459 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
12460 (re_acquire_state_context): Likewise.
12462 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
12464 * modules/regex (Depends-on): Add ssize_t.
12466 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
12468 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
12471 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
12473 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
12475 2006-03-29 Mark D. Baushke <mdb@gnu.org>
12476 Bruno Haible <bruno@clisp.org>
12478 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
12479 <sys/types.h> and <inttypes.h>.
12481 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12483 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
12484 `__error_t_defined', so argp.h will not typedef the former.
12486 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
12488 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
12489 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
12490 glibc names. Even if glibc is changed to conform to POSIX, the
12491 traditional names will be available anyway, since regex depends on
12492 the extensions module. Also, fix a longstanding typo in the
12493 implementation of Spencer ERE test #75 from grep 2.3. Problems
12494 reported by Emanuele Giaquinta. Also, change sense of cached
12495 variable, so that the message makes sense.
12497 2006-03-24 Simon Josefsson <jas@extundo.com>
12499 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
12500 including some doc fixes.
12501 (base64_encode_alloc): Fix +1 bug on allocation failures.
12503 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12505 * lib/base64.c (base64_encode): Do not read past end of array with
12506 unsanitized input on systems with CHAR_BIT > 8.
12508 2006-03-24 Eric Blake <ebb9@byu.net>
12510 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
12512 2006-03-22 Karl Berry <karl@gnu.org>
12514 * config/srclist.txt (*setenv.[ch]): get from coreutils.
12515 * config/srclistvars.sh (COREUTILS): new var.
12517 2006-03-17 Jim Meyering <jim@meyering.net>
12519 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
12520 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
12522 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
12524 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
12525 no longer needs it. Instead, check that regoff_t is as least
12526 as wide as ptrdiff_t.
12528 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
12529 so that our regex.h stays compatible with the installed regex.
12530 This is helpful for installers who configure --without-included-regex.
12531 Problem reported by Emanuele Giaquinta.
12533 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
12535 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
12536 Typedef to long int, not to off_, as POSIX will likely change
12539 2006-03-15 Eric Blake <ebb9@byu.net>
12541 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
12543 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
12545 * lib/argp-help.c (validate_uparams): Fix typo
12546 * lib/argp-parse.c (argp_default_options): Consistently begin help
12547 messages with a lowercase letter.
12549 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
12551 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
12552 overrun buffers and shouldn't be used (much as gets shouldn't be
12554 * lib/time_r.c (asctime_r, ctime_r): Likewise.
12556 2006-03-08 Simon Josefsson <jas@extundo.com>
12558 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
12559 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12561 2006-03-08 Simon Josefsson <jas@extundo.com>
12563 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
12564 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12566 2006-03-08 Simon Josefsson <jas@extundo.com>
12568 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
12569 signal that configure disabled the device.
12571 2006-03-08 Simon Josefsson <jas@extundo.com>
12573 * build-aux/maint.mk: Fix refresh-po, to handle no translated
12576 2006-03-07 Simon Josefsson <jas@extundo.com>
12578 * modules/getopt (Depends-on): Add unistd.
12580 * modules/unistd: New file.
12582 2006-03-07 Simon Josefsson <jas@extundo.com>
12584 * modules/gc-random: New file.
12586 2006-03-07 Simon Josefsson <jas@extundo.com>
12588 * m4/unistd_h.m4: New file.
12590 2006-03-07 Simon Josefsson <jas@extundo.com>
12592 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
12593 test to be side-effect free by storing the result in the cache
12594 variable gl_cv_lib_readline, and moving the assignment of
12595 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
12596 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12598 2006-03-07 Simon Josefsson <jas@extundo.com>
12600 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
12601 error on missing devices (the functions will return an error).
12603 * m4/gc.m4: Move random stuff to gc-random.m4
12605 2006-03-07 Simon Josefsson <jas@extundo.com>
12607 * lib/unistd_.h: New file.
12609 2006-03-07 Simon Josefsson <jas@extundo.com>
12611 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
12613 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
12615 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
12616 Problem reported by Juan Manuel Guerrero.
12618 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
12620 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
12622 * lib/getlogin_r.c: Likewise.
12623 * lib/getlogin_r.h: Likewise.
12624 * lib/glob.c: Likewise.
12625 * lib/pagealign_alloc.c: Likewise.
12626 * lib/unistd_.h: Remove; no longer needed.
12628 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
12630 * MODULES.html.sh (Support for systems lacking POSIX:2001):
12632 * modules/c-stack (Depends-on): Add unistd.
12633 * modules/getlogin_r: Likewise.
12634 * modules/glob: Likewise.
12635 * modules/pagealign_alloc: Likewise.
12636 * modules/unistd (Files): Remove lib/unistd_.h.
12637 (EXTRA_DIST): Remove.
12638 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
12640 (MOSTLYCLEANFILES): Remove unistd.h-t.
12642 2006-03-03 Simon Josefsson <jas@extundo.com>
12644 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
12646 2006-03-03 Simon Josefsson <jas@extundo.com>
12648 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
12651 2006-03-03 Simon Josefsson <jas@extundo.com>
12653 * build-aux/maint.mk: Add indent target.
12655 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
12657 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
12658 our replacement poll.h in any case, to avoid a differing
12659 declaration from a system header. Seen on AIX.
12661 2006-03-01 Simon Josefsson <jas@extundo.com>
12663 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
12666 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
12668 * modules/gettime (Depends-on): Add extensions module.
12669 * modules/nanosleep (Depends-on): Likewise.
12670 * modules/settime (Depends-on): Likewise.
12672 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
12674 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
12675 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
12677 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12678 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
12680 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
12681 not "==". Reported by Ralf Wildenhues.
12683 2006-03-01 Karl Berry <karl@gnu.org>
12685 * doc/Copyright/request-*: new files, synced from gnuorg.
12687 2006-03-01 Karl Berry <karl@gnu.org>
12689 * config/srclist.txt (Copyright/*): new entries.
12691 2006-02-28 Simon Josefsson <jas@extundo.com>
12693 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
12695 2006-02-27 Simon Josefsson <jas@extundo.com>
12697 * lib/base64.h: Indent #define's. From Jim Meyering
12698 <jim@meyering.net>.
12700 2006-02-27 Jim Meyering <jim@meyering.net>
12702 Revert the change of 2006-02-24, so these files can continue
12703 to be sync'd from gettext.
12704 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
12707 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
12709 * modules/intprops: New file.
12710 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
12712 * modules/getloadavg (Files): Remove lib/intprops.h.
12713 (Depends-on): Add intprops.
12714 * modules/human: Likewise.
12715 * modules/inttostr: Likewise.
12716 * modules/openat: Likewise.
12717 * modules/sig2str: Likewise.
12718 * modules/userspec: Likewise.
12719 * modules/utimecmp: Likewise.
12720 * modules/xnanosleep: Likewise.
12721 * modules/xstrtol: Likewise.
12723 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
12725 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
12726 * modules/lock-tests (TESTS): Use $(EXEEXT).
12727 * modules/tls-tests: Likewise.
12728 * modules/argp-tests: Likewise.
12729 (check_PROGRAMS): New var, replacing...
12730 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
12732 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12734 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
12737 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
12739 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
12741 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12743 Sync from coreutils.
12744 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
12747 2006-02-22 Jim Meyering <jim@meyering.net>
12749 Sync from coreutils.
12750 * m4/chdir-safer.m4: New file.
12752 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
12754 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
12755 AT_FDCWD exceeds INT_MAX.
12756 * lib/openat.h (AT_FDCWD): Likewise.
12758 2006-02-17 Eric Blake <address@hidden>
12760 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
12762 2006-02-16 Simon Josefsson <jas@extundo.com>
12764 * modules/getaddrinfo (Depends-on): Add sys_socket.
12766 2006-02-15 Simon Josefsson <jas@extundo.com>
12768 * build-aux/maint.mk: Add dsyntax-check rule.
12770 2006-02-15 Eric Blake <ebb9@byu.net>
12772 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
12773 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
12774 'present but cannot compile' warnings on cygwin.
12775 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
12776 use ws2tcpip.h if sys/socket.h works.
12777 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
12778 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
12780 2006-02-14 Simon Josefsson <jas@extundo.com>
12782 * modules/maintainer-makefile (Files): Rename.
12784 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
12785 and (the local) Makefile.cfg to maint-cfg.mk.
12787 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
12790 * modules/maintainer-makefile: New module.
12792 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
12793 severaly stripped to make it possible to build it up from scratch
12794 with reliable tests.
12796 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
12797 fixes to permit overriding the default actions when configure and
12798 makefile are not available.
12800 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
12802 Sync from coreutils.
12803 * modules/lstat (Depends-on): Don't depend on xalloc.
12804 (License): Change from GPL to LGPL, since this is now simply a
12805 replacement for a libc function.
12807 2006-02-14 Jim Meyering <jim@meyering.net>
12809 Sync from coreutils.
12811 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
12812 failure on deficient systems, and simplify gnulib lgpl dependencies.
12813 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
12814 xmalloc/lstat combination. Based on a patch from Bruno Haible.
12816 * lib/xalloc-die.c: Remove unused definition of N_.
12818 2006-02-14 Jim Meyering <jim@meyering.net>
12820 Sync from coreutils.
12821 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
12822 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
12823 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
12824 double-quote uses of that variable, to accommodate the rare case in
12825 which getmntent is available in none of the libraries checked. This
12826 happens at least on FreeBSD 5.0.
12828 2006-02-13 Simon Josefsson <jas@extundo.com>
12830 * gnulib-tool (Usage): Fix --import, from
12831 karl@freefriends.org (Karl Berry).
12833 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
12835 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
12837 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
12839 * lib/argp-namefrob.h: Restore changes accidentally lost during the
12840 "autoupdate" on 2005-12-12.
12842 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
12844 * modules/closeout (Depends-on): Remove atexit.
12846 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
12848 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
12849 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
12851 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
12853 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
12854 __EXTENSIONS__ if this causes compilation to fail. Problem
12855 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
12856 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
12858 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
12860 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
12861 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
12862 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
12865 2006-01-26 Simon Josefsson <jas@extundo.com>
12867 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
12868 prototype is visible on mingw32.
12870 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
12873 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
12876 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
12878 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
12879 attempt to open for write; this always fails, at least on POSIX
12880 hosts. This reinstates the 2006-01-09 change, which was
12881 inadvertently removed.
12883 2006-01-26 Bruno Haible <bruno@clisp.org>
12885 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
12886 Reported by Paul Eggert.
12888 2006-01-26 Bruno Haible <bruno@clisp.org>
12889 Paul Eggert <eggert@cs.ucla.edu>
12891 * lib/stdbool_.h (_Bool)
12892 [(! (defined __cplusplus || defined __BEOS__)
12893 && !defined __GNUC__
12894 && !(defined __HP_cc || defined __xlc__
12895 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
12896 || defined __sgi))]:
12897 #define to signed char in these cases too; this simplifies
12898 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
12899 etc., separately) and makes it more conservative.
12901 2006-01-25 Simon Josefsson <jas@extundo.com>
12903 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
12904 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
12905 ws2tcpip.h with WINVER=0x0501. All for mingw32.
12907 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
12909 * lib/argp-namefrob.h: Bugfix. Remove stray #
12911 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
12913 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
12914 so that we test the test.
12915 Check for yet another HP-UX cc bug involving *bool |= bool.
12917 2006-01-25 Karl Berry <karl@gnu.org>
12919 * config/srclist.txt (vasnprintf.c): sync lost.
12921 2006-01-25 Jim Meyering <jim@meyering.net>
12923 Sync from the stable (b5) branch of coreutils:
12925 * lib/fts.c (fts_children): Don't let close() clobber errno from
12928 * lib/fts.c (fts_stat): When following a symlink-to-directory,
12929 don't necessarily interpret stat-fails+lstat-succeeds as indicating
12930 a dangling symlink. That can also happen at least for ELOOP.
12931 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
12932 FYI, this bug predates the inclusion of fts.c in coreutils.
12934 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
12935 in their own block, so pre-c99 compilers don't object.
12937 Avoid the double-free (first in fts_read, second in fts_close) that
12938 would occur when an `active' directory is made inaccessible (e.g.,
12939 via chmod a-x) during a traversal.
12940 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
12941 before returning. Reproduce this failure by
12942 mkdir -p a/b; cd a; chmod a-x . b
12943 Reported by Stavros Passas.
12945 2006-01-25 Jim Meyering <jim@meyering.net>
12947 * lib/fileblocks.c: Remove more useless parentheses.
12948 * lib/readutmp.h: Likewise.
12950 2006-01-25 Bruno Haible <bruno@clisp.org>
12952 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
12954 Reported by Paul Eggert.
12956 2006-01-25 Bruno Haible <bruno@clisp.org>
12958 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
12959 rid of a trap command. For Solaris sh.
12960 Reported by Mark D. Baushke <mdb@gnu.org>.
12962 2006-01-24 Simon Josefsson <jas@extundo.com>
12964 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
12967 2006-01-24 Karl Berry <karl@gnu.org>
12969 * config/srclist.txt (argp-namefrob.h): sync lost.
12971 2006-01-24 Jim Meyering <jim@meyering.net>
12973 * modules/openat (Files): Add lib/intprops.h.
12974 From Mark D. Baushke.
12976 2006-01-24 Jim Meyering <jim@meyering.net>
12978 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
12979 Reported by Mark D. Baushke.
12981 2006-01-24 Jim Meyering <jim@meyering.net>
12983 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
12985 2006-01-24 Bruno Haible <bruno@clisp.org>
12987 * modules/strnlen (Maintainer): Change from glibc to all.
12989 2006-01-24 Bruno Haible <bruno@clisp.org>
12991 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
12992 Patch by Paul Eggert.
12994 2006-01-24 Bruno Haible <bruno@clisp.org>
12996 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
12998 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
13001 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
13002 'signed char' to avoid problems with the built-in _Bool type.
13003 Reported by Paul Eggert on 2005-11-26.
13005 2006-01-24 Bruno Haible <bruno@clisp.org>
13007 * gnulib-tool (func_import): Avoid constructing complicated sed
13008 expressions inside backquote.
13009 Report and solution by Mark D. Baushke <mdb@gnu.org>.
13011 2006-01-23 Ulrich Drepper <drepper@redhat.com>
13013 These changes imported from libc.
13014 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
13015 test and two separate function calls.
13016 * lib/strndup.c (__strndup): Add libc_hidden_def.
13018 2006-01-23 Simon Josefsson <jas@extundo.com>
13020 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
13021 Remove the test_*_SOURCES variable: automake infers it by default.
13022 * modules/tls-tests: Likewise.
13024 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
13026 Work around porting bugs reported by Dieter in
13027 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
13028 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
13029 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
13030 Include "getopt.h" first, to check interface.
13031 (getenv): Declare only if defined HAVE_DECL_GETENV &&
13033 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
13034 (__strndup): Revert to K&R-style function dfns, the glibc style.
13035 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
13036 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
13037 Include strnlen.h first, to get prototype properly.
13038 (strnlen): Renamed from __strnlen.
13041 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
13043 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
13045 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
13047 * config/srclist.txt: Adjust to reflect glibc reorganization.
13048 This affects only comments.
13050 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13052 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
13053 Reported by Bruce Korb <bkorb@gnu.org>.
13055 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
13057 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
13058 to pacify gcc -Wswitch-default.
13060 2006-01-22 Bruno Haible <bruno@clisp.org>
13062 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
13063 temporary buffer for sprintf, take into account the precision also
13064 for 'd', 'i', 'u', 'o', 'x', 'X'.
13066 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
13068 * modules/argp-tests: New module
13069 * tests/test-argp.c: New file
13070 * tests/test-argp-2.sh: New file
13072 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
13074 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
13075 (__argp_base_name): Removed
13076 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
13078 (__argp_base_name): Provide macro definition or extern declaration
13079 depending on the configuration
13081 2006-01-20 Simon Josefsson <jas@extundo.com>
13083 * modules/inet_ntop (Depends-on): Depend on sys_socket.
13085 2006-01-20 Simon Josefsson <jas@extundo.com>
13087 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
13089 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
13091 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
13092 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
13093 Suggested by Bruno Haible.
13095 2006-01-20 Karl Berry <karl@gnu.org>
13097 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
13098 until changes propagate, I guess.
13100 2006-01-19 Simon Josefsson <jas@extundo.com>
13102 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
13104 2006-01-19 Simon Josefsson <jas@extundo.com>
13106 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
13108 2006-01-19 Simon Josefsson <jas@extundo.com>
13110 * gnulib-tool: Set check_PROGRAMS.
13112 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
13113 modules/des-tests, modules/gc-arcfour-tests,
13114 modules/gc-arctwo-tests, modules/gc-des-tests,
13115 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
13116 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
13117 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
13118 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
13119 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
13120 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
13121 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
13124 2006-01-18 Simon Josefsson <jas@extundo.com>
13126 * modules/socklen (Depends-on): Depend on sys_socket.
13128 2006-01-18 Simon Josefsson <jas@extundo.com>
13130 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
13131 modules/des-tests, modules/gc-arcfour-tests,
13132 modules/gc-arctwo-tests, modules/gc-des-tests,
13133 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
13134 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
13135 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
13136 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
13137 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
13138 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
13139 $(EXEEXT) to automake TESTS variable, for mingw32.
13141 2006-01-17 Simon Josefsson <jas@extundo.com>
13143 * modules/socklen (Include): Need sys/socket.h.
13145 2006-01-17 Bruno Haible <bruno@clisp.org>
13147 * modules/ssize_t (Include): Add <sys/types.h>.
13149 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
13151 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
13152 it's not portable and it doesn't work with cross-compiles.
13153 Problem reported by Bruno Haible. Fix missing-$ typo in
13154 'test "gl_cv_ignore_unused_libraries" ...' that prevented
13155 -zignore from being used with Sun's C compiler.
13157 2006-01-12 Simon Josefsson <jas@extundo.com>
13159 * lib/base64.c: Fix warning, reported by Bruno Haible
13160 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
13162 2006-01-12 Bruno Haible <bruno@clisp.org>
13164 * modules/ldd: New file.
13165 * build-aux/ldd.sh.in: New file.
13166 * MODULES.html.sh (Support for building libraries and executables): Add
13169 2006-01-12 Bruno Haible <bruno@clisp.org>
13171 * m4/ldd.m4: New file.
13173 2006-01-12 Bruno Haible <bruno@clisp.org>
13175 * gnulib-tool (func_import, func_create_testdir): Don't go into an
13176 endless loop while replacing $auxdir with build-aux.
13178 2006-01-11 Simon Josefsson <jas@extundo.com>
13180 * lib/stdint_.h (SIZE_MAX): Add missing (.
13182 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
13184 Sync from coreutils.
13185 * lib/md5.c: Fix commentary typos.
13186 (alignof, UNALIGNED_P): No need for a GCC-specific version.
13187 * lib/md5.h (__attribute__): Remove; unused.
13188 * lib/sha1.c: Fix commentary to match md5 better.
13189 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
13190 so that we don't need to worry about alignment. All uses changed.
13191 This merges the 2005-10-28 md5 change into sha1.
13193 2006-01-11 Jim Meyering <jim@meyering.net>
13195 Sync from coreutils.
13196 * lib/md5.c (OP): Fix spacing.
13198 2006-01-11 Bruno Haible <bruno@clisp.org>
13200 Ensure automatic ordering between gl_LOCK and gl_ARGP.
13201 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
13202 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
13204 2006-01-11 Bruno Haible <bruno@clisp.org>
13206 Ensure automatic ordering between gl_LOCK and gl_ARGP.
13207 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
13208 the "early" section as well.
13210 2006-01-11 Bruno Haible <bruno@clisp.org>
13212 Avoid "ar: no archive members specified" error on MacOS X.
13213 * gnulib-tool (func_modules_add_dummy): New function.
13214 (func_import, func_create_testdir): Invoke it.
13216 2006-01-11 Bruno Haible <bruno@clisp.org>
13218 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
13219 with $auxdir in AC_CONFIG_FILES statements.
13221 2006-01-11 Bruno Haible <bruno@clisp.org>
13223 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13224 Initialize also noinst_HEADERS to empty.
13226 2006-01-11 Bruno Haible <bruno@clisp.org>
13228 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
13230 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
13233 2006-01-11 Bruno Haible <bruno@clisp.org>
13235 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
13236 overridable by the user.
13237 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13239 2006-01-10 Simon Josefsson <jas@extundo.com>
13241 * modules/sys_socket: New file.
13243 2006-01-10 Simon Josefsson <jas@extundo.com>
13245 * m4/sys_socket_h.m4: New file.
13247 2006-01-10 Simon Josefsson <jas@extundo.com>
13249 * lib/socket_.h: New file.
13251 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
13253 * modules/readutmp (Maintainer): Add myself.
13255 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
13257 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
13258 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
13259 People who are still concerned with buggy memcmp implementations
13260 can invoke gl_FUNC_MEMCMP themselves.
13262 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
13264 * lib/regex_internal.h (BITSET_WORD_BITS):
13265 Work around a bug in 64-bit PGC (before version 6.1-2), where the
13266 preprocessor mishandles large unsigned values as if they were signed.
13267 Problem reported by Claudio Fontana in
13268 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
13270 2006-01-10 Jim Meyering <jim@meyering.net>
13272 Avoid the double-free (first in fts_read, second in fts_close) that
13273 would occur when an `active' directory is made inaccessible (e.g.,
13274 via chmod a-x) during a traversal.
13275 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
13276 before returning. Reproduce this failure by
13277 mkdir -p a/b; cd a; chmod a-x . b
13278 Reported by Stavros Passas.
13280 Sync from coreutils.
13281 * lib/sha1.c: Tweak grammar in a comment.
13283 2006-01-10 Jim Meyering <jim@meyering.net>
13285 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
13286 Patch by Joerg Sonnenberger.
13288 2006-01-10 Bruno Haible <bruno@clisp.org>
13290 * modules/readutmp: Depend on module free.
13291 * modules/strtok_r: Depend on module restrict.
13293 2006-01-10 Bruno Haible <bruno@clisp.org>
13295 * modules/gettext (configure.ac): Add an invocation of
13296 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
13298 2006-01-10 Bruno Haible <bruno@clisp.org>
13300 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
13301 Reported by Werner Lemberg <wl@gnu.org>.
13303 2006-01-10 Bruno Haible <bruno@clisp.org>
13305 * lib/localcharset.c: Update from GNU gettext.
13307 2006-01-10 Bruno Haible <bruno@clisp.org>
13309 * lib/argp.h (__const): Remove macro. Use const instead.
13310 * lib/argp-fmtstream.h (__const): Likewise.
13311 * lib/glob_.h (__const): Remove macro.
13312 * lib/glob-libc.h: Use const instead of __const.
13314 2006-01-10 Bruno Haible <bruno@clisp.org>
13316 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
13318 Needed to avoid an automake error regarding the 'gettext' module.
13320 2006-01-09 Simon Josefsson <jas@extundo.com>
13322 * modules/inet_ntop (Depends-on): Add restrict.
13324 2006-01-09 Simon Josefsson <jas@extundo.com>
13326 * modules/gc-rijndael-tests (License): Put under LGPL.
13328 * modules/gc-des-tests (License): Likewise.
13330 * modules/gc-arcfour-tests (License): Likewise.
13332 * modules/gc-arctwo-tests (License): Likewise.
13334 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
13336 * modules/gc-hmac-sha1-tests (Files): Likewise.
13338 * modules/gc-hmac-md5-tests (License): Likewise.
13340 * modules/gc-sha1-tests (License): Likewise.
13342 * modules/gc-md5-tests (License): Likewise.
13344 * modules/gc-md4-tests (License): Likewise.
13346 * modules/gc-md2-tests (License): Likewise.
13348 * modules/gc-tests (License): Likewise.
13350 * modules/des-tests (License): Likewise.
13352 * modules/md4-tests (License): Likewise.
13354 * modules/md2-tests (License): Likewise.
13356 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
13358 Sync from coreutils:
13360 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
13361 * modules/lib-ignore: New file.
13362 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
13363 chdir-safer.m4, lchmod.m4.
13364 * modules/openat: Add mkdirat.c, openat-priv.h.
13366 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
13368 Sync from coreutils.
13369 * m4/lib-ignore.m4: New file.
13370 * m4/lchmod.m4: New file.
13372 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
13374 Sync from coreutils.
13375 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
13376 for write access: POSIX says that must fail.
13377 * lib/fts.c (diropen): Likewise.
13378 * lib/save-cwd.c (save_cwd): Likewise.
13379 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
13380 well, for minor improvements on hosts that lack O_DIRECTORY.
13381 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
13382 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
13383 Fall back on chown if open failed with EACCES.
13385 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
13386 Report an error at compile-time if only a 1-second nominal clock
13387 resolution is found.
13389 * lib/lchmod.h: New file.
13390 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
13391 (make_dir_parents): Use lchown rather than chown, and
13392 lchmod rather than chmod.
13394 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
13395 dummies too. Problem with "none" reported by Bob Proulx. Problem with
13396 "proc" reported by n0dalus.
13398 * lib/mountlist.c: Include <limits.h>.
13399 (dev_from_mount_options)
13400 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
13401 New function. It no longer assumes "dev=" has the System V meaning
13402 on Linux (since it doesn't). It also parses "dev=" more carefully.
13403 (read_file_system_list)
13404 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
13405 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
13408 * lib/posixtm.h (PDS_PRE_2000): New macro.
13409 * lib/posixtm.c (year): Arg is now syntax_bits rather than
13410 allow_century. All usages changed. Reject dates outside the range
13411 1969-1999 if PDS_PRE_2000 is used.
13413 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
13415 Sync from coreutils.
13416 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
13417 (Time of day items): Mention the possibility of leap seconds.
13418 Problem reported by Dr. David Alan Gilbert.
13420 2006-01-09 Jim Meyering <jim@meyering.net>
13422 Sync from coreutils.
13424 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
13426 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
13428 * lib/modechange.c (mode_compile): Reject an invalid mode string
13429 that starts with an octal digit. From Andreas Gruenbacher.
13431 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
13432 and dup to open_safer and dup_safer, respectively.
13433 (openat_permissive): Fix typo in comment.
13435 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
13436 "gettext.h"; either no longer needed or are guaranteed by openat.h.
13437 (_): Remove; no longer needed.
13438 (openat): Renamed from rpl_openat; no need for rpl_openat
13439 since openat.h renames openat for us.
13440 Replace most of the body with a call to openat_permissive,
13441 to avoid duplicate code.
13442 Port to (probably hypothetical) environments were mode_t is
13444 (openat_permissive): Require mode arg, so that we can check
13445 types better. Put it just after flags. Change cwd failure
13446 indicator from pointer-to-bool to pointer-to-errno-value.
13447 All callers changed.
13448 Invoke openat_save_fail and/or openat_restore_fail if
13449 cwd_errno is null, so that openat can call us.
13450 (openat_permissive, fdopendir, fstatat, unlinkat):
13451 Simplify errno handling to avoid some duplicate code,
13452 as it's OK to set errno on success.
13453 * lib/openat.h: Revamp code so that function macros depend on
13454 __OPENAT_PREFIX only, not also on AT_FDCWD.
13455 (openat_ro): Remove. Caller changed to use openat_permissive.
13456 (openat_permissive): Now a macro, if not a function.
13457 (openat_restore_fail, openat_save_fail): Now always functions,
13458 since mkdirat needs them even if __OPENAT_PREFIX is defined.
13460 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
13462 * lib/mkdirat.c: Include openat-priv.h.
13463 Remove definitions of macros defined therein.
13464 * lib/openat.c: Likewise.
13466 * lib/mkdirat.c (mkdirat): New file and function.
13467 * lib/openat.h (mkdirat): Declare.
13469 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
13471 * lib/openat.h (openat_permissive): Declare.
13472 (openat_ro): Define.
13474 * lib/openat.c (EXPECTED_ERRNO): New macro.
13475 (openat_permissive): New function -- used in remove.c rewrite.
13476 (all functions): Set errno just before returning, only if there
13477 was an actual failure.
13478 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
13480 Emulate openat-family functions using Linux's procfs, if possible.
13481 Idea and some code based on Ulrich Drepper's glibc changes.
13483 * lib/openat.c: (BUILD_PROC_NAME): New macro.
13484 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
13485 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
13486 before falling back on save_cwd and restore_cwd.
13487 (fdopendir, fstatat, unlinkat): Likewise.
13489 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
13490 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
13492 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
13493 as second argument to va_arg. Otherwise, some versions of gcc
13494 warn that `if this code is reached, the program will abort'.
13496 2006-01-09 Jim Meyering <jim@meyering.net>
13498 Sync from coreutils.
13499 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
13500 Require openat-priv.h.
13502 2006-01-09 Bruno Haible <bruno@clisp.org>
13504 * modules/strnlen (Include): Use strnlen.h.
13506 2006-01-09 Bruno Haible <bruno@clisp.org>
13508 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
13510 2006-01-09 Bruno Haible <bruno@clisp.org>
13512 * lib/sysexit_.h (EX_OK): New macro.
13513 Suggested by Martin Lambers <marlam@marlam.de>.
13515 2006-01-09 Bruno Haible <bruno@clisp.org>
13517 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
13518 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
13520 2006-01-09 Bruno Haible <bruno@clisp.org>
13522 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
13525 2006-01-09 Bruno Haible <bruno@clisp.org>
13527 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
13528 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
13529 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
13530 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
13532 2006-01-09 Bruno Haible <bruno@clisp.org>
13534 * build-aux/javacomp.sh.in: New file, moved from lib/.
13535 * modules/javacomp-script (Files): Update.
13536 (configure.ac): Add AC_CONFIG_FILES invocation.
13537 (EXTRA_DIST): Remove variable.
13539 * build-aux/javaexec.sh.in: New file, moved from lib/.
13540 * modules/javaexec (Files): Update.
13541 (configure.ac): Add AC_CONFIG_FILES invocation.
13542 (EXTRA_DIST): Remove javaexec.sh.in.
13544 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
13545 * modules/csharpcomp-script (Files): Update.
13546 (configure.ac): Add AC_CONFIG_FILES invocation.
13547 (EXTRA_DIST): Remove variable.
13549 * build-aux/csharpexec.sh.in: New file, moved from lib/.
13550 * modules/csharpexec (Files): Update.
13551 (configure.ac): Add AC_CONFIG_FILES invocation.
13552 (EXTRA_DIST): Remove csharpexec.sh.in.
13554 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
13556 Sync from coreutils.
13558 Add POSIX ACL support
13559 * lib/acl.h (copy_acl, set_acl): Add declarations.
13560 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
13561 systems other than Linux.
13562 (chmod_or_fchmod): New function: use fchmod when possible,
13563 and chmod otherwise.
13564 (file_has_acl): Add a POSIX ACL implementation, with a
13565 Linux-specific subcase.
13566 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
13567 S_ISVTX from one file to another. Fall back to fchmod/chmod when
13568 acls are unsupported.
13569 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
13570 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
13573 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
13575 Sync from coreutils.
13576 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
13578 2006-01-07 Bruno Haible <bruno@clisp.org>
13580 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
13583 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
13585 * lib/strftime.c (tzname): Don't declare if it is already #defined.
13586 Problem reported for Mingw by Mark Junker.
13588 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
13590 * README: Gnulib normally doesn't generate a tarball.
13592 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
13594 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
13595 long int, not int, for nanosecond counts, so that people who are
13596 used to POSIX struct timespec won't be surprised. Reported by Jim
13599 2005-12-28 Bruno Haible <bruno@clisp.org>
13601 * build-aux/config.rpath: Update from GNU gettext.
13603 2005-12-16 Jim Meyering <jim@meyering.net>
13605 * modules/fprintftime: New module.
13606 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
13608 2005-12-16 Jim Meyering <jim@meyering.net>
13610 * m4/fprintftime.m4: New file.
13612 2005-12-16 Jim Meyering <jim@meyering.net>
13614 * lib/fprintftime.c, lib/fprintftime.h: New files.
13616 2005-12-15 Simon Josefsson <jas@extundo.com>
13618 * modules/socklen (configure.ac): Fix M4 macro name, to align with
13621 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
13623 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
13624 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
13626 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
13628 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
13629 * lib/argp-help.c (fill_in_uparams): Check if the constructed
13630 struct uparams is valid. Fall back to the default values if it is
13633 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
13635 * modules/argp (Files): Add argp-pin.c
13636 (Depends-on): dirname
13637 (lib_SOURCES): Add argp-pin.c
13639 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
13641 * m4/argp.m4: Check if program_invocation_name and
13642 program_invocation_short_name are declared and define appropriate
13643 macros if they are not.
13645 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
13647 * lib/argp-help.c (__argp_base_name): New function
13648 (__argp_short_program_name): Rewrite using __argp_base_name
13649 * lib/argp-namefrob.h: Define program_invocation_name and
13650 program_invocation_short_name if requested
13651 (__argp_base_name): Add prototype
13652 * lib/argp-parse.c (argp_def): Use gettext wrappers
13653 (argp_default_parser): Use __argp_base_name
13654 * lib/argp-pin.c: New file. Defines program_invocation_name and
13655 program_invocation_short_name on systems that lack them.
13657 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
13659 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
13660 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
13661 porting problem reported by Georg Schwarz in
13662 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
13664 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
13666 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
13667 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
13668 porting problem reported by Georg Schwarz in
13669 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
13671 2005-12-05 Bruno Haible <bruno@clisp.org>
13673 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
13674 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
13675 Reported by Mark Junker <mjscod@gmx.de>.
13677 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
13679 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
13680 Use implementation from Albert Chin, with some
13681 comments/corrections by Stepan Kasal and myself.
13683 2005-12-02 Bruno Haible <bruno@clisp.org>
13685 * gnulib-tool (func_import): Accept GPLed build tool modules when
13687 * modules/csharpcomp-script: New file.
13688 * modules/csharpcomp: Depend on it.
13689 * modules/javacomp-script: New file.
13690 * modules/javacomp: Depend on it.
13691 Suggested by Simon Josefsson.
13693 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
13695 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
13696 statement, to work around an HP-UX 10.20 compiler bug reported by
13699 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
13701 * modules/savedir (Depends-on): Add openat.
13703 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
13705 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
13706 (uintmax_t) [defined uintmax_t]: Do not declare.
13707 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
13708 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
13709 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
13710 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
13711 sake of portability to weird hosts that C allows (though we don't
13712 know of any practical examples).
13714 * lib/savedir.h (fdsavedir): New decl.
13715 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
13716 contains most of the former guts of savedir.
13717 (savedir): Use savedirstream.
13718 Include "openat.h".
13720 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
13722 * modules/obstack (Files): Add m4/ulonglong.m4.
13723 Problem reported by Davide Angelocola.
13725 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
13727 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
13728 coreutils no longer futzes with rounding modes.
13730 2005-11-14 Jim Meyering <jim@meyering.net>
13732 * lib/mkstemp-safer.c: Include <config.h>, required for possible
13733 replacement of mkstemp.
13735 2005-11-10 Simon Josefsson <jas@extundo.com>
13737 * lib/readline.c: Remove EOL.
13739 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
13741 * modules/gethrxtime (Depends-on): Add gettime.
13743 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
13745 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
13746 or gettimeofday; no longer needed.
13748 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
13750 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
13752 (gethrxtime) [! (HAVE_NANOUPTIME
13753 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
13754 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
13755 our own approximation.
13757 2005-11-08 Eric Blake <ebb9@byu.net>
13759 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
13761 2005-11-08 Eric Blake <ebb9@byu.net>
13763 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
13765 2005-11-04 Bruno Haible <bruno@clisp.org>
13767 * gnulib-tool: Implement --update mode.
13769 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
13771 Fix porting problem reported by Theodoros V. Kalamatianos.
13772 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
13773 Don't assume that futimes failing means we must fail.
13775 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
13777 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
13778 variables to suggest the intended function of the PATH_MAX check.
13780 2005-10-30 Kean Johnston <jkj@sco.com>
13782 Trivial changes to support SCO systems.
13783 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
13785 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
13786 where __ptr is null when no I/O is pending.
13788 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
13790 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
13791 leave errno alone. Problem reported by Dmitry V. Levin.
13793 2005-10-28 Simon Josefsson <jas@extundo.com>
13795 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
13798 * tests/test-gc-md2.c, tests/test-md2.c: New files.
13800 * modules/md2, modules/md2-tests: New files.
13802 2005-10-28 Simon Josefsson <jas@extundo.com>
13804 * m4/inet_ntop.m4: More tests.
13806 * m4/gc-md2.m4, md2.m4: New file.
13808 2005-10-28 Simon Josefsson <jas@extundo.com>
13810 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
13811 "restrict" keywords, as per POSIX. Protect the function
13812 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
13813 Don't use K&R prototypes. Check the sprintf return values.
13814 Re-define EAFNOSUPPORT if not present. Indent.
13816 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
13817 suggested by Bruno Haible <bruno@clisp.org>.
13819 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
13821 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
13823 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
13826 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
13828 * lib/md2.h, lib/md2.c: New files.
13830 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
13832 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
13833 errno alone. Problem reported by Frederic Jolliton.
13835 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
13837 * modules/verify (License): Change from GPL to LGPL. This is a
13838 tiny module and there are apparently near-equivalents that are
13839 under the BSD license.
13841 2005-10-24 Simon Josefsson <jas@extundo.com>
13843 * modules/sha1: Relicense to LGPL.
13845 2005-10-24 Simon Josefsson <jas@extundo.com>
13847 * lib/md4.h: Shrink buffer size, now that we changed the type.
13849 2005-10-23 Simon Josefsson <jas@extundo.com>
13851 * gnulib-tool (func_import): Fix --tests-base.
13853 2005-10-22 Simon Josefsson <jas@extundo.com>
13855 * modules/arcfour (Depends-on): Need stdint.
13857 2005-10-22 Simon Josefsson <jas@extundo.com>
13859 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
13860 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
13862 2005-10-22 Simon Josefsson <jas@extundo.com>
13864 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
13865 suggested by Bruno Haible <bruno@clisp.org>.
13867 2005-10-22 Simon Josefsson <jas@extundo.com>
13869 * lib/crc.h: Include stddef.h, for size_t.
13871 2005-10-22 Simon Josefsson <jas@extundo.com>
13873 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
13874 arcfour_context struct (simplify test vector testing in GNU
13877 2005-10-21 Simon Josefsson <jas@extundo.com>
13879 * modules/des, modules/des-tests: New files.
13881 * modules/gc-des, modules/gc-des-tests: New files.
13883 * tests/test-des.c, tests/test-gc-des.c: New file.
13885 2005-10-21 Simon Josefsson <jas@extundo.com>
13887 * modules/arctwo, modules/arctwo-tests: New files.
13889 * tests/test-arctwo.c: New file.
13891 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
13893 * tests/test-gc-arctwo.c: New file.
13895 2005-10-21 Simon Josefsson <jas@extundo.com>
13897 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
13898 Bruno Haible <bruno@clisp.org>.
13900 * m4/gc-des.m4: New file.
13902 2005-10-21 Simon Josefsson <jas@extundo.com>
13904 * m4/arctwo.m4: New file.
13906 * m4/gc-arctwo.m4: New file.
13908 2005-10-21 Simon Josefsson <jas@extundo.com>
13910 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
13913 2005-10-21 Simon Josefsson <jas@extundo.com>
13915 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
13918 * lib/hmac-sha1.c (hmac_sha1): Likewise.
13920 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
13921 Bruno Haible <bruno@clisp.org>.
13923 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
13926 2005-10-21 Simon Josefsson <jas@extundo.com>
13928 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
13930 2005-10-21 Simon Josefsson <jas@extundo.com>
13932 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
13934 2005-10-21 Simon Josefsson <jas@extundo.com>
13936 * lib/des.h, lib/des.c: New files.
13938 * lib/gc-gnulib.c: Support DES.c
13940 2005-10-21 Simon Josefsson <jas@extundo.com>
13942 * lib/arctwo.h, lib/arctwo.c: New files.
13944 * lib/gc-gnulib.c: Support ARCTWO.
13946 2005-10-21 Simon Josefsson <jas@extundo.com>
13948 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
13949 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13951 2005-10-21 Simon Josefsson <jas@extundo.com>
13953 * gnulib-tool (func_import, func_create_testdir): Define automake
13954 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
13955 Makefile.am snippet),
13956 suggested by Bruno Haible <bruno@clisp.org>.
13958 * modules/gc (Makefile.am): Use it.
13960 2005-10-21 Bruno Haible <bruno@clisp.org>
13962 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
13965 2005-10-19 Simon Josefsson <jas@extundo.com>
13967 * tests/test-gc-rijndael.c: New file.
13969 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
13971 2005-10-19 Simon Josefsson <jas@extundo.com>
13973 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
13976 2005-10-19 Simon Josefsson <jas@extundo.com>
13978 * tests/test-gc-arcfour.c: New file.
13980 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
13982 2005-10-19 Simon Josefsson <jas@extundo.com>
13984 * modules/gc-md4, modules/gc-md4-tests: New file.
13986 * tests/test-gc-md4.c: New file.
13988 2005-10-19 Simon Josefsson <jas@extundo.com>
13990 * m4/gc-md4.m4: New file.
13992 2005-10-19 Simon Josefsson <jas@extundo.com>
13994 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
13995 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
13998 2005-10-19 Simon Josefsson <jas@extundo.com>
14000 * m4/gc-arcfour.m4: New file.
14002 * m4/gc-rijndael.m4: New file.
14004 2005-10-19 Simon Josefsson <jas@extundo.com>
14006 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
14008 2005-10-19 Simon Josefsson <jas@extundo.com>
14010 * lib/gc-gnulib.c: Support ARCFOUR.
14012 2005-10-19 Simon Josefsson <jas@extundo.com>
14014 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
14017 * lib/gc.h: Add ECB enum type.
14019 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
14021 2005-10-18 Simon Josefsson <jas@extundo.com>
14023 * tests/test-md5.c: New file.
14025 * modules/md5-tests: New file.
14027 2005-10-18 Simon Josefsson <jas@extundo.com>
14029 * tests/test-md4.c: New file.
14031 * modules/md4, modules/md4-tests: New files.
14033 2005-10-18 Simon Josefsson <jas@extundo.com>
14035 * m4/md4.m4: New file.
14037 2005-10-18 Simon Josefsson <jas@extundo.com>
14039 * lib/md4.h, lib/md4.c: New files, based on md5.?.
14041 2005-10-17 Stepan Kasal <kasal@ucw.cz>
14043 * gnulib-tool (func_create_testdir): Omit the second check whether
14044 BUILT_SOURCES in nonempty.
14046 2005-10-17 Simon Josefsson <jas@extundo.com>
14048 * tests/test-rijndael.c: New file.
14050 2005-10-17 Simon Josefsson <jas@extundo.com>
14052 * modules/sha1: Depend on stdint instead of md5.
14054 * modules/md5: Depend on stdint, remove uint32_t.
14056 2005-10-17 Simon Josefsson <jas@extundo.com>
14058 * modules/gc-sha1-tests: New file.
14060 * tests/test-gc-sha1.c: New file.
14062 2005-10-17 Simon Josefsson <jas@extundo.com>
14064 * m4/md5.m4: Remove call to uint32_t.m4.
14066 2005-10-17 Simon Josefsson <jas@extundo.com>
14068 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
14070 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
14073 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
14075 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
14077 2005-10-17 Simon Josefsson <jas@extundo.com>
14079 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
14081 2005-10-17 Simon Josefsson <jas@extundo.com>
14083 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
14085 2005-10-17 Simon Josefsson <jas@extundo.com>
14087 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
14089 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
14091 2005-10-17 Bruno Haible <bruno@clisp.org>
14093 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
14094 that it can also be used in a test.
14096 2005-10-16 Bruno Haible <bruno@clisp.org>
14098 * gnulib-tool (func_emit_tests_Makefile_am): Also define
14099 TESTS_ENVIRONMENT, so that individual tests can augment it.
14101 * gnulib-tool (func_create_testdir): Use an intermediate target for
14102 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
14103 macros, like $(ALLOCA_H), which cannot be passed through the command
14106 2005-10-15 Simon Josefsson <jas@extundo.com>
14108 * modules/rijndael-tests: New file.
14110 * modules/rijndael: New file.
14112 2005-10-15 Simon Josefsson <jas@extundo.com>
14114 * m4/rijndael.m4: New file.
14116 2005-10-15 Simon Josefsson <jas@extundo.com>
14118 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
14120 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
14122 2005-10-14 Simon Josefsson <jas@extundo.com>
14124 * tests/test-arcfour.c: New file.
14126 * modules/arcfour, modules/arcfour-tests: New files.
14128 2005-10-14 Simon Josefsson <jas@extundo.com>
14130 * m4/arcfour.m4: New file.
14132 2005-10-14 Simon Josefsson <jas@extundo.com>
14134 * lib/arcfour.h, lib/arcfour.c: New files.
14136 2005-10-14 Roland McGrath <roland@redhat.com>
14138 Import from libc. [BZ #1331]
14139 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
14141 Reported by Matej Vela <vela@debian.org>.
14143 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
14145 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
14146 include <wchar.h>; no longer needed.
14148 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
14150 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
14152 2005-10-14 Jakub Jelinek <jakub@redhat.com>
14153 and Ulrich Drepper <drepper@redhat.com>
14156 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
14157 instead of inline stream orientation test and two separate
14158 function calls. Pay no attention to USE_IN_LIBIO.
14160 2005-10-13 Simon Josefsson <jas@extundo.com>
14162 * modules/gc-hmac-md5-tests: New file.
14164 * tests/test-gc-hmac-sha1.c: New file.
14166 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
14168 * modules/gc-hmac-md5-tests: New file.
14170 * tests/test-gc-md5.c: New file.
14172 * modules/gc-md5-tests: New file.
14174 2005-10-13 Simon Josefsson <jas@extundo.com>
14176 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
14177 Move memory allocation outside of loop.
14179 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
14181 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
14182 intermediate directory is in a read-only file system. Problem
14183 reported by Eric Blake.
14185 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
14187 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
14189 2005-10-12 Simon Josefsson <jas@extundo.com>
14191 * tests/test-hmac-sha1.c: New file.
14193 * modules/hmac-sha1-tests: New file.
14195 * modules/hmac-sha1: New file.
14197 2005-10-12 Simon Josefsson <jas@extundo.com>
14199 * modules/gc-sha1: New file.
14201 2005-10-12 Simon Josefsson <jas@extundo.com>
14203 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
14205 * tests/test-gc-pbkdf2-sha1.c: New file.
14207 2005-10-12 Simon Josefsson <jas@extundo.com>
14209 * modules/gc-md5, modules/gc-hmac-md5: New files.
14211 * modules/gc (Files): Remove md5, memxor and hmac files.
14213 2005-10-12 Simon Josefsson <jas@extundo.com>
14215 * m4/gc-pbkdf2-sha1.m4: New file.
14217 * m4/gc-hmac-sha1.m4: New file.
14219 * m4/gc-sha1: New file.
14221 * m4/hmac-sha1.m4: New file.
14223 2005-10-12 Simon Josefsson <jas@extundo.com>
14225 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
14227 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
14229 2005-10-12 Simon Josefsson <jas@extundo.com>
14231 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
14232 suggested by Bruno Haible <bruno@clisp.org>.
14234 2005-10-12 Simon Josefsson <jas@extundo.com>
14236 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
14238 2005-10-12 Simon Josefsson <jas@extundo.com>
14240 * lib/gc-pbkdf2-sha1.c: New file.
14242 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
14244 2005-10-12 Simon Josefsson <jas@extundo.com>
14246 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
14248 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
14250 2005-10-12 Simon Josefsson <jas@extundo.com>
14252 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
14253 GC_USE_HMAC_MD5, respectively.
14255 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
14256 (gc_md5): Fix typo.
14258 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
14260 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
14262 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
14264 2005-10-12 Bruno Haible <bruno@clisp.org>
14266 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
14267 Reported by Stepan Kasal <kasal@ucw.cz>.
14269 2005-10-11 Simon Josefsson <jas@extundo.com>
14271 * tests/test-crc.c: New file.
14273 * modules/crc, modules/crc-tests: New files.
14275 2005-10-11 Simon Josefsson <jas@extundo.com>
14277 * m4/crc.m4: New file.
14279 2005-10-11 Simon Josefsson <jas@extundo.com>
14281 * lib/gc.h: Add gc_hash and gc_hash_buffer.
14283 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
14285 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
14287 2005-10-11 Simon Josefsson <jas@extundo.com>
14289 * lib/crc.h, lib/crc.c: New files.
14291 * lib/gc.h (gc_hash_buffer): Add doc.
14293 2005-10-11 Bruno Haible <bruno@clisp.org>
14295 * modules/c-strcasestr: New file.
14296 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
14298 2005-10-11 Bruno Haible <bruno@clisp.org>
14300 * modules/c-strcase: New file.
14301 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
14303 2005-10-11 Bruno Haible <bruno@clisp.org>
14305 * lib/strcasecmp.c: Include limits.h.
14306 (strcasecmp): Avoid integer overflow on exotic platforms.
14307 * lib/strncasecmp.c: Include limits.h.
14308 (strncasecmp): Avoid integer overflow on exotic platforms.
14309 Reported by Paul Eggert.
14311 2005-10-11 Bruno Haible <bruno@clisp.org>
14313 * lib/c-strcasestr.h: New file, from GNU gettext.
14314 * lib/c-strcasestr.c: New file, from GNU gettext.
14316 2005-10-11 Bruno Haible <bruno@clisp.org>
14318 * lib/c-strcase.h: New file, from GNU gettext.
14319 * lib/c-strcasecmp.c: New file, from GNU gettext.
14320 * lib/c-strncasecmp.c: New file, from GNU gettext.
14322 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
14324 * modules/mempcpy (License): GPL -> LGPL.
14325 * modules/strchrnul (License): Likewise.
14326 * modules/sysexits (License): Likewise.
14328 2005-10-08 Simon Josefsson <jas@extundo.com>
14330 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
14332 2005-10-07 Simon Josefsson <jas@extundo.com>
14334 * m4/memxor.m4: Remove gl_C_RESTRICT call.
14336 2005-10-06 Simon Josefsson <jas@extundo.com>
14338 * tests/test-hmac-md5.c: New file.
14340 * modules/hmac-md5-tests: New file.
14342 * modules/hmac-md5: New file.
14344 2005-10-06 Simon Josefsson <jas@extundo.com>
14346 * m4/hmac-md5.m4: New file.
14348 * m4/memxor.m4: Require gl_C_RESTRICT.
14350 2005-10-06 Simon Josefsson <jas@extundo.com>
14352 * lib/memxor.c (memxor): Avoid casts and warnings.
14354 2005-10-06 Simon Josefsson <jas@extundo.com>
14356 * lib/hmac-md5.c: New file.
14358 * lib/hmac.h: New file.
14360 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
14362 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
14363 promotes to int, not unsigned int, to catch the AIX 5.3
14366 2005-10-05 Simon Josefsson <jas@extundo.com>
14368 * modules/memxor: New file.
14370 * modules/iconv (Files): Move config.rpath to havelib, it is used
14373 * modules/havelib (Files): Add config.rpath.
14375 2005-10-05 Simon Josefsson <jas@extundo.com>
14377 * m4/memxor.m4: New file.
14379 2005-10-05 Simon Josefsson <jas@extundo.com>
14381 * lib/memxor.c (memxor): Fix compiler error.
14383 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
14384 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
14386 * lib/memxor.h, lib/memxor.c: New files.
14388 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
14389 we assume all systems have it, suggested by Jim Meyering
14390 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
14391 any systems lack sys/socket.h; mingw32 is known to lack it, but we
14392 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
14395 2005-10-05 Simon Josefsson <jas@extundo.com>
14397 * config/srclist.txt: Add glibc bug 1423 for md5.h.
14399 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
14401 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
14402 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
14403 needed, since the source code now assumes these .h files.
14405 2005-10-05 Derek Price <derek@ximbiot.com>
14407 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
14409 2005-10-05 Bruno Haible <bruno@clisp.org>
14411 * modules/stdint (License): Change to LGPL.
14413 2005-10-04 Simon Josefsson <jas@extundo.com>
14415 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
14416 D. Baushke" <mdb@gnu.org>.
14418 2005-10-04 Bruno Haible <bruno@clisp.org>
14420 * lib/verify.h (verify_true): Provide alternative definition for C++.
14422 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
14424 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
14425 (SSIZE_MAX): New macro, if not already defined.
14426 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
14429 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
14431 Sync from coreutils.
14432 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
14433 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
14434 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
14435 ULLONG_MAX doesn't work with 2.7.2.1.
14437 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
14439 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
14442 * modules/exclude (Depends-on): Depend on verify.
14443 * modules/strtoimax (Depends-on): Likewise.
14444 * modules/utimecmp (Depends-on): Likewise.
14446 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
14448 * lib/exclude.c: Include verify.h.
14449 (verify): Remove. All callers changed to use verify.h's version.
14450 * lib/strtoimax.c: Likewise.
14451 * lib/utimecmp.c: Likewis.e
14453 Sync from coreutils.
14454 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
14455 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
14456 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
14457 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
14458 bother returning ENOSYS if settimeofday or stime fails; just let
14459 them return whatever errno they want to return.
14460 * lib/utimens.c: Include unistd.h, for dup2.
14461 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
14462 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
14464 2005-10-02 Jim Meyering <jim@meyering.net>
14466 Sync from coreutils.
14467 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
14468 from glibc-2.2.5 that fails for read-only files.
14470 2005-10-02 Jim Meyering <jim@meyering.net>
14472 Sync from coreutils.
14473 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
14474 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
14475 `#if HAVE_CONFIG_H'.
14476 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
14477 Remove AT_FDCWD test.
14478 Do not consume the fd unless successful.
14479 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
14480 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
14481 block, so that we don't even try to compile it if settimeofday is
14482 available. This works around a compilation failure on OSF1 V5.1,
14483 due to stime requiring a `long int*' while tv_sec is `int'.
14485 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
14487 Sync from coreutils.
14488 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
14489 against `yes', rather than just testing for nonempty.
14491 2005-10-01 Simon Josefsson <jas@extundo.com>
14493 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
14496 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
14497 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
14498 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
14499 freeaddrinfo and gai_strerror are declared by the POSIX headers.
14500 Check if struct addrinfo is declared.
14502 2005-10-01 Simon Josefsson <jas@extundo.com>
14504 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
14505 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
14506 AI_* and EAI_* definitions. Protect function declarations.
14508 2005-10-01 Jim Meyering <jim@meyering.net>
14510 Sync from coreutils.
14512 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
14513 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
14514 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
14515 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
14516 in the inet and nsl libraries. Required on Solaris 5.7.
14518 2005-10-01 Jim Meyering <jim@meyering.net>
14520 Sync from coreutils.
14521 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
14522 in the inet and nsl libraries. Required on Solaris 5.7.
14524 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
14526 * lib/getdelim.c (getdelim): Remove unused variables.
14528 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
14530 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
14531 so that the code works even with ancient cpp. Portability problem
14532 with GCC 2.7.2.1 reported by Thomas M.Ott.
14534 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
14536 * modules/regex (Depends-on): Add strcase.
14538 * modules/gethostname (Licence): Change from GPL to LGPL, since
14539 gethostname.c is a trivial implementation of a standard library
14541 * modules/poll (License): Change from GPL to LGPL, since it's
14542 derived from LGPL code.
14544 2005-09-27 Jim Meyering <jim@meyering.net>
14546 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
14549 * lib/intprops.h (signed_type_or_expr__): Define.
14550 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
14551 for unsigned types.
14553 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
14555 * lib/verify.h (verify_expr): Remove, replacing with:
14556 (verify_true): New macro that returns true instead of void.
14557 (verify_type__): Remove.
14558 (verify): Use verify_true rather than verify_type__.
14560 2005-09-26 Bruno Haible <bruno@clisp.org>
14562 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
14564 (lib_SOURCES): Remove mbchar.c.
14565 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
14566 (Files): Add m4/mbrtowc.m4.
14567 * modules/mbiter: Likewise.
14568 * modules/mbuiter: Likewise.
14570 2005-09-26 Bruno Haible <bruno@clisp.org>
14572 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
14573 compile mbchar.c if they are not both present.
14574 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
14575 * m4/mbiter.m4 (gl_MBITER): Likewise.
14576 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
14577 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
14578 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
14580 2005-09-25 Jim Meyering <jim@meyering.net>
14582 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
14583 also uses socklen_t.
14585 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
14587 * lib/utimens.c (ENOSYS): Define if not already defined.
14588 (futimens): Support having a null PATH if the file descriptor
14591 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
14593 (__attribute): Define to empty unless GCC 3.1 or later.
14594 This works around a core dump on OpenBSD 3.4, which has GCC
14595 2.95.3, which dumps core when given __attribute__(()). It also
14596 simplifies other tests, since we really don't want to bother with
14597 worrying about which ancient version of GCC supported what.
14598 Original problem reported by Yoann Vandoorselaere, with part of
14599 the fix suggested by Derek Price.
14601 2005-09-24 Jim Meyering <jim@meyering.net>
14603 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
14604 so we can once again use a positive bitfield width of 1 -- now we
14605 don't have to explain why we were using a bitfield width of 2.
14607 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
14609 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
14610 and similarly for the other external symbols. Problem reported
14613 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
14614 bug reported by Jim Meyering.
14616 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
14617 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
14618 not needed, since socklen is a prerequisite module.
14620 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
14622 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
14623 Problem reported by Eric Blake.
14624 (getaddrinfo): Initialize se so that it's not garbage.
14625 Redo internal storage allocation so that it doesn't make unportable
14626 assumptions about alignment.
14629 * lib/utimens.c (futimens): Use futimesat if available.
14630 Prefer it to futimes since it doesn't have the futimes bug.
14632 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
14633 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
14634 Instead, declare a function that returns a pointer to an array,
14635 and use verify_type__ to declare the size of the array.
14636 Problem and germ of a solution reported by Bruno Haible.
14637 (verify_type__): Use 2, not 1, for bitfield size, to avoid
14638 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
14640 2005-09-23 Jim Meyering <jim@meyering.net>
14642 Sync from coreutils.
14643 Correct build failure (socklen_t not defined) on at least
14644 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
14645 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
14647 2005-09-23 Jim Meyering <jim@meyering.net>
14649 * modules/getaddrinfo (Depends-on): Add socklen.
14651 2005-09-23 Bruno Haible <bruno@clisp.org>
14653 * tests/test-verify.c: New file.
14655 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
14657 Sync from coreutils.
14659 * modules/argmatch (Depends-on): Add verify.
14660 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
14662 * modules/save-cwd (Depends-on): Likewise.
14664 * modules/openat (Files): Add lib/openat-die.c.
14665 (Depends-on): Remove error, exitfail.
14668 * modules/verify: New file.
14669 * MODULES.html.sh (Diagnostics <assert.h>): New section,
14670 with "verify" module.
14672 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
14674 Sync from coreutils.
14676 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
14677 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
14678 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
14679 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
14680 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
14681 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
14682 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
14683 Don't bother checking for string.h, stdlib.h, unistd.h.
14684 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
14685 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
14687 * m4/jm-macros.m4 (gl_MACROS): Likewise.
14688 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
14690 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
14691 (gl_GETDATE): Use it.
14693 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
14695 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
14697 Sync from coreutils.
14699 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
14701 * lib/argmatch.h: Include verify.h
14702 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
14703 (ARGMATCH_ASSERT): Remove; unused.
14704 * lib/canonicalize.c: Assume STDC_HEADERS.
14705 * lib/exclude.c: Include "strcase.h".
14706 * lib/regex_internal.h [!defined _LIBC]: Likewise.
14707 * lib/getusershell.c: Include stdio--.h rather than stdio.h
14709 (getusershell): Call fopen, not fopen_safer.
14710 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
14711 Do not include unistd-safer.h.
14712 (save_cwd): Don't call fd_safer; no longer needed
14713 now that we include fcntl--.h.
14715 * lib/getdate.y (relative_time): New type.
14716 (RELATIVE_TIME_0): New constant.
14717 (parser_control): Use relative_time instead of doing it ourselves.
14718 (%union): Add new relative_time rel member.
14719 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
14721 (relunit, relunit_snumber): Now of type rel.
14722 (zone, rel, relunit, get_date): Adjust to above changes.
14724 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
14725 Do not include unistd-safer.h.
14726 (getloadavg): Don't call fd_safer; no longer needed
14727 now that we include fcntl--.h.
14729 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
14730 (make_dir_parents): Treat ENOSYS like EEXIST.
14732 Improve quality of diagnostics on restore_cwd failure.
14733 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
14734 (make_dir_parents): Last arg is now int * (for errno), not bool *.
14735 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
14736 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
14737 each time through the loop. Do not diagnose restore_cwd failure;
14738 that is the caller's job (and perhaps the caller does not care).
14740 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
14741 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
14742 If the file already exists but is not a directory, don't bother
14743 to try to make its parents.
14744 Close potential file descriptor leak if we can't chdir("/") (!).
14745 Don't always return true if chdir($PWD) fails; return true only
14746 if the requested action was done successfully (except for the
14748 Don't log final directory unless we actually made it.
14749 Refactor to avoid duplicate code to fix up permissions.
14750 Don't attempt to fix up parent permissions if chdir($PWD) fails.
14752 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
14753 to make it a bit faster and (I hope) clearer.
14754 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
14755 Fix bug in formats like %2N.
14757 * lib/verify.h: New file.
14759 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
14761 Sync from coreutils.
14762 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
14764 2005-09-22 Jim Meyering <jim@meyering.net>
14766 Sync from coreutils.
14768 * m4/lstat.m4 (gl_FUNC_LSTAT):
14769 Use AC_LIBSOURCES to require lstat.c and lstat.h.
14770 Remove obsolete comment.
14771 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
14772 * m4/xstrtod.m4: Likewise.
14774 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
14776 2005-09-22 Jim Meyering <jim@meyering.net>
14778 Sync from coreutils.
14780 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
14782 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
14783 the .tm_year member, since otherwise gcc-4.0 would now warn about
14784 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
14786 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
14787 order to avoid an unsuppressible warning from gcc on 64-bit systems.
14789 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
14790 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
14791 when run in a time zone for which daylight savings time is in effect
14792 for the starting date.
14794 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
14795 stop us from restricting permissions of just-created absolute-named
14797 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
14798 to restore initial working directory.
14799 * lib/mkdir-p.c (make_dir_parents): New parameter:
14800 different_working_dir, to tell caller if/when we change the working
14801 directory and are unable to return to the initial one.
14802 * lib/mkdir-p.h (make_dir_parents): Update prototype.
14803 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
14804 `return false'. This fixes a bug introduced on 2004-07-30.
14806 * lib/openat.c (fdopendir): Be sure to close the supplied
14807 file descriptor before returning. This makes our replacement
14808 implementation a little closer to Solaris's, where fdopendir
14809 ties the file descriptor to the returned DIR* pointer.
14810 * lib/openat.c (unlinkat): New function.
14811 * lib/openat.h (unlinkat): Add prototype.
14812 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
14813 (openat_restore_fail): Rename from openat_restore_die.
14814 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
14816 Provide an alternative to exiting immediately upon save_cwd or
14817 restore_cwd failure. Now, an application can arrange e.g.,
14818 to perform a longjump in that case.
14819 * lib/openat.c: Include dirname.h.
14820 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
14821 (rpl_openat, fdopendir, fstatat): Call openat_save_die
14822 and openat_restore_die rather than calling error directly.
14823 Don't include "error.h" or "exitfail.h"; they're no longer needed.
14825 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
14826 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
14829 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
14830 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
14831 int utc, int nanoseconds);
14833 date should not have to allocate a megabyte of virtual memory to
14834 handle a format argument like +%1048575T. When implemented with
14835 strftime, it must allocate such a buffer, use strftime to fill it
14836 in, print it, then free it.
14837 With fprintftime, it simply prints everything and exits.
14838 With no need for memory allocation, that's one fewer way to fail.
14839 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
14840 optional field width, not before, so we accept %9:z, not %:9z.
14841 (my_strftime): Be sure to use L_('x') for literals.
14843 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
14844 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
14845 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
14846 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
14847 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
14848 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
14849 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
14850 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
14851 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
14852 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
14853 * lib/xgethostname.c, lib/xreadlink.c:
14854 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
14856 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
14857 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
14858 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
14859 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
14860 and don't include <sys/file.h>).
14862 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
14864 Sync from coreutils.
14866 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
14867 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
14868 [!LDAV_DONE]: Avoid unused variable warning.
14870 2005-09-21 Bruno Haible <bruno@clisp.org>
14872 * lib/unicodeio.h (unicode_to_mb): New declaration.
14874 2005-09-20 Derek Price <derek@ximbiot.com>
14876 * lib/getaddrinfo.c: Don't include <netdb.h> included from
14879 2005-09-20 Bruno Haible <bruno@clisp.org>
14881 * gnulib-tool: Remove trailing slashes from the values specified for
14882 --source-base, --m4-base, --tests-base, --aux-dir.
14883 Suggested by Simon Josefsson <jas@extundo.com>.
14885 2005-09-20 Bruno Haible <bruno@clisp.org>
14887 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
14888 func_modules_to_filelist, func_import, func_create_testdir): Make all
14889 sorting results locale-independent, so that gnulib-cache.m4 doesn't
14890 change when gnulib-tool is invoked in a different locale.
14892 2005-09-19 Simon Josefsson <jas@extundo.com>
14894 * m4/socklen.m4: Fix typo.
14896 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14898 Use a consistent style for including <config.h>.
14899 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
14900 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
14901 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
14902 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
14903 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
14904 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
14905 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
14906 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
14907 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
14908 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
14909 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
14910 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
14911 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
14912 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
14913 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
14914 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
14915 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
14916 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
14917 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
14918 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
14919 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
14920 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
14921 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
14922 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
14923 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
14924 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
14925 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
14926 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
14927 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
14928 lib/xstrtoumax.c, lib/yesno.c:
14929 Standardize inclusion of config.h.
14930 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
14931 lib/inttostr.h: Removed inclusion of config.h from header files.
14932 * lib/inttostr.c: Adjusted in-tree users.
14933 * lib/timespec.h: Remove superfluous warning to include config.h.
14934 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
14935 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
14936 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
14937 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
14938 config.h with HAVE_CONFIG_H.
14940 2005-09-19 Jim Meyering <jim@meyering.net>
14942 * modules/pathmax (License): Change to LGPL.
14944 2005-09-19 Derek Price <derek@ximbiot.com>
14946 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
14948 2005-09-19 Bruno Haible <bruno@clisp.org>
14950 * gnulib-tool (import): Provide default for --tests-base.
14952 2005-09-19 Bruno Haible <bruno@clisp.org>
14954 * doc/quote.texi: New file, extracted from gnulib.texi.
14955 * doc/ctime.texi: New file, extracted from gnulib.texi.
14956 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
14957 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
14958 * doc/gnulib.texi: Include them.
14960 2005-09-18 Bruno Haible <bruno@clisp.org>
14963 * gnulib-tool (func_readlink): New function.
14964 (func_ln_if_changed): Use it.
14966 2005-09-18 Bruno Haible <bruno@clisp.org>
14968 * gnulib-tool: Support --with-tests also with --import.
14969 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
14970 (func_import): Use variables $testsbase and $inctests. Emit a
14971 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
14972 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
14973 SUBDIRS += $testsdir.
14974 (func_create_testdir): Update.
14976 2005-09-18 Bruno Haible <bruno@clisp.org>
14978 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
14979 instead of $dry_run.
14980 (func_cp_if_changed, func_mv_if_changed): Remove functions.
14981 (func_ln_if_changed): Don't handle dry-run here.
14982 (func_import): In dry-run mode, detect more precisely which actions
14983 would be performed, and don't use "...ing" verbs.
14985 2005-09-18 Bruno Haible <bruno@clisp.org>
14987 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
14988 (func_import): Use join on two temporary files instead of three nested
14989 loops, in order to determine which files are new or old.
14991 2005-09-18 Bruno Haible <bruno@clisp.org>
14993 * gnulib-tool (func_import): Comment out code that spits out the
14994 new files with --dry-run.
14996 2005-09-18 Bruno Haible <bruno@clisp.org>
14998 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
15000 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
15002 * lib/stat-time.h: New file.
15003 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
15004 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
15005 in a different way.
15006 (timespec_cmp): New function.
15007 * lib/utimecmp.c: Include stat-time.h.
15008 (SYSCALL_RESOLUTION): Depend on whether various struct stat
15009 members exist, not on the obsolescent ST_MTIM_NSEC.
15010 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
15012 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
15014 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
15016 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
15018 * MODULES.html.sh (File system functions): Add stat-time.
15019 * modules/stat-time: New file.
15020 * modules/timespec (Files): Remove m4/st_mtim.m4; this
15021 is now done in a different way, by the stat-time module.
15022 * modules/utimecmp (Depends-on): Add stat-time.
15024 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
15026 * m4/st_mtim.m4: Remove. Superseded by...
15027 * m4/stat-time.m4: New file.
15028 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
15029 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
15031 2005-09-15 Derek Price <derek@ximbiot.com>
15033 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
15035 2005-09-15 Derek Price <derek@ximbiot.com>
15037 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
15038 * lib/regex_internal.c: Ditto, using this...
15039 (__GNUC_PREREQ): ...new macro.
15040 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
15042 (__GNUC_PREREQ): ...this new macro.
15044 * lib/strstr.h: Include string.h. Define strstr as a macro here.
15046 2005-09-15 Derek Price <derek@ximbiot.com>
15047 Paul Eggert <eggert@cs.ucla.edu>
15049 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
15050 changes, consolidating in...
15051 * lib/regex_internal.h: ...this file.
15053 2005-09-13 Jim Meyering <jim@meyering.net>
15055 * lib/canon-host.c: Filter through gnu indent and reword comments
15057 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
15059 2005-09-13 Derek Price <derek@ximbiot.com>
15061 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
15063 Reported by Jim Meyering <jim@meyering.net>.
15065 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15067 * lib/base64.c: Typo.
15068 (base64_encode): Put b64str in initialized data section.
15070 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
15072 Merge glibc and coreutils changes into gnulib, plus a few
15074 * lib/md5.c: Use #error rather than a string.
15075 (CYCLIC): New macro, from glibc source. Use it instead of rol.
15076 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
15077 (__attribute__): Define to empty for non recent-GCC.
15078 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
15079 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
15080 Renamed from their non-__ counterparts, with new macros replacing
15081 them if not _LIBC. Add __THROW attribute.
15083 (struct md5_ctx): Align buffer if using GCC.
15084 * lib/sha1.h (struct sha1_ctx): Likewise.
15085 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
15086 The old name was backwards.
15087 (NOTSWAP): Remove; not used.
15088 (rol): New macro, moved here from md5.h.
15089 (sha1_process_block): Remove a FIXME that doesn't make sense.
15091 2005-09-12 Derek Price <derek@ximbiot.com>
15093 Return usable errors from canon-host.
15094 * lib/canon-host.h: New file.
15095 * lib/canon-host.c (canon_host): Wrap...
15096 (canon_host_r): ...this new function, which now relies exclusively on
15098 (ch_strerror): New function.
15099 (last_cherror): New global.
15100 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
15102 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
15104 (freeaddrinfo): Free ai->ai_canonname when set.
15106 2005-09-12 Derek Price <derek@ximbiot.com>
15108 Make canon-host require getaddrinfo.
15109 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
15110 AC_LIBSOURCE canon-host.h. Call...
15111 (gl_PREREQ_CANON_HOST): ...this new function, which requires
15113 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
15115 2005-09-12 Derek Price <derek@ximbiot.com>
15117 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
15119 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
15121 2005-09-12 Derek Price <derek@ximbiot.com>
15123 * lib/gai_strerror.c: Include config.h when available. Include
15124 getaddrinfo.h before other headers to test interface.
15125 Reported by Larry Jones <lawrence.jones@ugs.com>.
15127 2005-09-12 Derek Price <derek@ximbiot.com>
15128 Paul Eggert <eggert@cs.ucla.edu>
15130 * modules/glob (Files): Add glob-libc.h.
15132 2005-09-12 Derek Price <derek@ximbiot.com>
15133 Paul Eggert <eggert@cs.ucla.edu>
15135 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
15136 glob_.h, glob-libc.h.
15137 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
15139 2005-09-12 Derek Price <derek@ximbiot.com>
15140 Paul Eggert <eggert@cs.ucla.edu>
15142 * lib/glob-libc.h: Renamed from glob_.h. The new version is
15143 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
15144 protecting things that should be done only in gnulib contexts.
15145 * lib/glob_.h: New file, containing only the glob things needed for
15147 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
15148 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
15149 (glob, globfree, glob_pattern_p): Now defined simply in terms of
15150 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
15151 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
15152 and to respect the namespace rules better.
15154 2005-09-08 Simon Josefsson <jas@extundo.com>
15156 * modules/socklen: New file.
15158 2005-09-08 Simon Josefsson <jas@extundo.com>
15160 * m4/socklen.m4: New file.
15162 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
15164 * modules/utimens (Files): Add m4/utimbuf.m4, since
15165 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
15166 Reported by Sergey Poznyakoff.
15168 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
15170 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
15171 definitions, since that's the preferred style in glibc.
15172 Fix a minor spacing issue, and update copyright notice to match
15175 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
15177 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
15179 2005-09-06 Simon Josefsson <jas@extundo.com>
15181 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
15182 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
15184 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
15186 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
15189 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
15191 * config/srclist.txt: Add glibc bug 1302.
15193 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
15195 Change bitset word type from unsigned int to unsigned long int,
15196 as this has better performance on typical 64-bit hosts.
15197 Port bitset code to hosts with unusual word sizes.
15198 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
15199 (build_collating_symbol):
15200 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
15201 argument is a bitset. This is merely a style issue, but it makes
15202 it clearer that an entire array is expected.
15203 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
15204 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
15205 Port to the case where bitset_word is not the same as unsigned int.
15206 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
15207 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
15209 * lib/regexec.c (check_dst_limits_calc_pos_1,
15210 check_subexp_matching_top):
15211 (build_trtable, group_nodes_into_DFAstates):
15213 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
15214 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
15215 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
15216 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
15217 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
15218 * lib/regcomp.c (optimize_subexps, lower_subexp):
15219 Work even if bitset_word has holes in its bitwise representation.
15220 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
15221 * lib/regexec.c (check_dst_limits_calc_pos_1,
15222 check_subexp_matching_top):
15224 * lib/regex_internal.c (re_string_reconstruct):
15225 Don't assume UCHAR_MAX == 255.
15226 * lib/regex_internal.h (bitset_set_all): Likewise.
15227 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
15229 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
15230 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
15232 (BITSET_WORD_MAX): New macro.
15233 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
15234 (bitset_set_all, bitset_copy): Now inline functions, not macros.
15235 (bitset_empty, bitset_copy):
15236 Prefer sizeof (bitset) to multiplying it out ourselves.
15237 (bitset_not_merge): Remove; unused.
15238 (bitset_contain): Return bool, not unsigned int with one bit on.
15239 All callers changed.
15240 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
15241 alignment than re_node_set; do this by defining a new internal
15242 type struct dests_alloc and using it to allocate memory.
15244 2005-09-05 Bruno Haible <bruno@clisp.org>
15246 * gnulib-tool (func_import): Fix comparison in handling of symbolic
15249 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
15251 * modules/size_max (Makefile.am): Add size_max.h
15253 2005-09-04 Derek Price <derek@ximbiot.com>
15255 * gnulib-tool (func_import): Fix reversed $symbolic logic.
15257 2005-09-03 Simon Josefsson <jas@extundo.com>
15259 * gnulib-tool: Fix typo.
15261 2005-09-03 Simon Josefsson <jas@extundo.com>
15263 * config/srclist.txt: Add glibc bug 1293.
15265 2005-09-03 Derek Price <derek@ximbiot.com>
15267 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
15268 From Larry Jones <lawrence.jones@ugs.com>.
15270 2005-09-02 Simon Josefsson <jas@extundo.com>
15272 * modules/socklen: New file.
15274 2005-09-02 Simon Josefsson <jas@extundo.com>
15276 * modules/havelib: New module.
15278 * modules/gettext, modules/iconv, modules/lock, modules/readline:
15281 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
15283 Check for arithmetic overflow when calculating sizes, to prevent
15284 some buffer-overflow issues. These patches are conservative, in the
15285 sense that when I couldn't determine whether an overflow was possible,
15286 I inserted a run-time check.
15287 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
15289 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
15290 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
15291 (re_xnrealloc, re_x2nrealloc): New inline functions.
15292 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
15293 parse_bracket_exp):
15294 (build_equiv_class, build_charclass): Check for arithmetic overflow
15295 in size expression calculations.
15296 * lib/regex_internal.c (re_string_realloc_buffers):
15297 (build_wcs_upper_buffer, re_node_set_add_intersect):
15298 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
15299 (re_dfa_add_node, register_state): Likewise.
15300 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
15301 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
15302 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
15303 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
15305 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
15307 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15308 m4/ulonglong.m4. Problem reported by Martin Lambers.
15310 2005-09-02 Bruno Haible <bruno@clisp.org>
15312 Support for lib vs. lib64 distinction on biarch platforms.
15313 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
15314 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
15315 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
15317 2005-09-02 Bruno Haible <bruno@clisp.org>
15319 * gnulib-tool (import): In the other first-use case, provide defaults
15322 2005-09-02 Bruno Haible <bruno@clisp.org>
15324 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
15325 patches not yet found in the latest gettext release.
15327 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
15329 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
15330 to avoid a collision with bits/local_lim.h in glibc.
15331 All uses changed. Problem reported by Dmitry V. Levin in
15332 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
15334 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
15335 bugs in int versus size_t comparisons.
15336 (re_string_context_at): Fix bug where the code assumed that
15339 Use bool where appropriate.
15340 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
15341 All callers changed.
15342 (calc_eclosure_iter): Likewise, for ROOT arg.
15343 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
15344 (build_charclass_op): Likewise, for NON_MATCH arg.
15345 * lib/regex_internal.c (re_string_allocate, re_string_construct):
15346 (re_string_construct_common): Likewise, for ICASE arg.
15347 * lib/regexec.c (re_search_2_stub, re_search_stub):
15348 Likewise, for RET_LEN arg.
15349 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
15350 (set_regs): Likewise, for FL_BACKTRACK arg.
15351 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
15352 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
15353 (calc_eclosure_iter, parse_bracket_exp):
15354 Use bool for internal variables that are booleans.
15355 * lib/regexec.c (re_search_internal, check_matching,
15356 proceed_next_node):
15357 (set_regs, build_sifted_states, sift_states_bkref):
15358 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
15359 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
15360 (find_collation_sequence_value):
15362 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
15363 (re_node_set_compare):
15364 Return bool, not int. All callers changed.
15365 * lib/regexec.c (check_halt_node_context, check_dst_limits):
15366 (build_trtable, check_node_accept): Likewise.
15367 * lib/regex_internal.h: Include stdbool.h.
15369 Fix bugs uncovered when converting to bool.
15370 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
15371 failure instead of charging ahead blindly.
15372 * lib/regex_internal.c (register_state): Likewise.
15373 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
15374 for freeing internal storage.
15375 (group_nodes_into_DFA_states): Use unsigned int, not int, for
15376 bitset pieces used as boolean, to avoid undefined behavior
15377 on hosts that do int overflow checking.
15379 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
15381 * config/srclist.txt: Add glibc bugs 1285-1287.
15383 2005-09-01 Jim Meyering <jim@meyering.net>
15385 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
15386 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
15387 Require gl_STAT_MACROS, too.
15389 2005-09-01 Bruno Haible <bruno@clisp.org>
15391 * gnulib-tool (import): In the first-use case, provide defaults.
15393 2005-09-01 Bruno Haible <bruno@clisp.org>
15395 * gnulib-tool (func_import): Remove the .tmp files.
15397 2005-09-01 Bruno Haible <bruno@clisp.org>
15399 * gnulib-tool (func_import): Fix handling of symbolic links.
15401 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
15403 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
15404 old glibc regex code mishandles strings longer than 2**31 bytes.
15405 This patch fixes this when the regex code is used in gnulib
15406 (i.e., outside glibc).
15408 This patch should not affect the use of the regex code inside
15409 glibc. No doubt this problem also needs to be handled for glibc
15410 as well, but the result will be an incompatible change to the
15411 glibc ABI, and the old ABI will have to be supported too. That
15412 can be the the subject for another patch.
15414 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
15415 governing whether the rest of this patch is active. By default,
15416 the macro is disabled and the patch has no effect.
15417 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
15418 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
15419 (struct re_pattern_buffer, re_search, re_search_2, re_match):
15420 (re_match_2, re_set_registers): Use the new types.
15421 * lib/regex_internal.h (Idx, re_hashval_t): New types.
15422 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
15424 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
15425 (re_string_context_at, bin_tree_t, re_dfastate_t):
15426 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
15427 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
15428 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
15429 (re_string_char_size_at, re_string_wchar_at):
15430 (re_string_elem_size_at):
15431 Use the new types and macros to port to 64-bit hosts.
15432 Use unsigned types for internal values, so that the code
15433 mostly works even for arrays larger than SSIZE_MAX.
15434 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
15435 (search_duplicated_node, calc_eclosure_iter, fetch_number):
15436 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
15437 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
15438 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
15439 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
15440 (calc_inveclosure, parse_dup_op, build_range_exp):
15441 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
15442 (fetch_number, create_token_tree, mark_opt_subexp):
15444 * lib/regex_internal.c (re_string_construct_common,
15445 create_ci_newstate):
15446 (create_cd_newstate, re_string_allocate, re_string_construct):
15447 (re_string_realloc_buffers, build_wcs_upper_buffer):
15448 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
15449 (re_string_reconstruct, re_string_peek_byte_case):
15450 (re_string_fetch_byte_case, re_string_context_at):
15451 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
15452 (re_node_set_init_copy, re_node_set_add_intersect):
15453 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
15454 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
15455 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
15456 (re_acquire_state, re_acquire_state_context, register_state):
15458 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
15459 search_cur_bkref_entry):
15460 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
15461 (re_search_internal, re_search_2_stub, re_search_stub)
15462 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
15463 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
15464 (update_cur_sifted_state, check_dst_limits):
15465 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
15466 (check_subexp_limits, sift_states_bkref, merge_state_array):
15467 (check_subexp_matching_top, get_subexp, get_subexp_sub):
15468 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
15469 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
15470 (expand_bkref_cache, check_node_accept_bytes):
15471 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
15472 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
15473 (acquire_init_state_context, check_halt_node_context):
15474 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
15475 (sift_states_backward, clean_state_log_if_needed):
15476 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
15477 (find_recover_state, transit_state_sb, transit_state_mb):
15478 (transit_state_bkref, build_trtable, match_ctx_clean):
15480 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
15481 to work around an assumption that REG_MISSING is negative.
15483 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
15484 (seek_collating_symbol_entry) [defined _LIBC]:
15485 (lookup_collation_sequence_value) [defined _LIBC]:
15486 (build_range_exp, build_collating_symbol) [defined _LIBC]:
15487 Use prototypes rather than old-style function definitions.
15488 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
15489 (transit_state_sb) [0]:
15490 (find_collation_sequence_value) [defined _LIBC]: Likewise.
15492 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
15495 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
15496 (optimize_subexps, lower_subexp):
15497 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
15498 since the signed shift might overflow. Use 1u<<31 instead.
15499 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
15501 * lib/regexec.c (check_dst_limits_calc_pos_1,
15502 check_subexp_matching_top): Likewise.
15504 * lib/regcomp.c (optimize_subexps, lower_subexp):
15505 Use CHAR_BIT rather than 8, for clarity.
15506 * lib/regexec.c (check_dst_limits_calc_pos_1):
15507 (check_subexp_matching_top): Likewise.
15508 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
15509 have to worry about portability issues when shifting it left.
15510 Remove no-longer-needed test for table_size > 0.
15511 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
15512 in a word, as the resulting behavior is undefined.
15513 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
15514 in one case, a <= should have been an <, and in another case the
15515 whole test was missing.
15516 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
15517 the standard name CHAR_BIT.
15518 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
15519 this is not true on one's complement and signed-magnitude hosts.
15521 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
15523 (struct re_dfa_t): Remove unused member states_alloc.
15524 * lib/regcomp.c (init_dfa): Don't initialize unused members.
15526 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
15528 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
15529 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
15530 and large-file glibc and in 32-bit large-file Solaris.
15532 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
15534 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
15535 lengths fit in regoff_t; this isn't true if regoff_t is the same
15537 * lib/regex.c (re_search_internal): 5th arg is LAST_START
15538 (= START + RANGE) instead of RANGE. This avoids overflow
15539 problems when regoff_t is the same width as size_t.
15540 All callers changed.
15541 (re_search_2_stub): Check for overflow when adding the
15542 sizes of the two strings.
15543 (re_search_stub): Check for overflow when adding START
15544 to RANGE; if it occurs, substitute the extreme value.
15546 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
15548 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
15550 2005-08-31 Jim Meyering <jim@meyering.net>
15552 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
15553 a pointer-to-const.
15554 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
15555 (register_state): Likewise.
15556 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
15557 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
15558 (group_nodes_into_DFAstates): Likewise.
15560 2005-08-31 Jim Meyering <jim@meyering.net>
15562 * check-module: Add a FIXME comment.
15564 2005-08-31 Eric Blake <ebb9@byu.net>
15566 * modules/unistd-safer (Files): Add unistd--.h.
15567 * modules/stdio-safer (Files): Add stdio--.h.
15569 2005-08-31 Derek Price <derek@ximbiot.com>
15571 * lib/getdelim.c (getdelim): Return EOF on EOF.
15572 Reported by Larry Jones <lawrence.jones@ugs.com>.
15574 2005-08-31 Bruno Haible <bruno@clisp.org>
15576 Avoid unnecessary diffs in the generated lib/Makefile.am.
15577 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
15578 the generated files.
15579 (func_import): Don't set cmd.
15581 2005-08-31 Bruno Haible <bruno@clisp.org>
15583 * lib/strstr.c: Include <stddef.h>, for NULL.
15584 * lib/strcasestr.c: Likewise.
15585 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15587 2005-08-31 Bruno Haible <bruno@clisp.org>
15589 * gnulib-tool: New option --macro-prefix.
15590 (func_import): Use macro_prefix.
15591 (import): Handle option --macro-prefix.
15593 2005-08-31 Bruno Haible <bruno@clisp.org>
15595 * gnulib-tool (import): Rename most ac_* variables to cached_*.
15596 Also use new variables cached_lgpl, cached_libtool.
15598 2005-08-31 Bruno Haible <bruno@clisp.org>
15600 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
15601 always instantiating them.
15603 2005-08-31 Bruno Haible <bruno@clisp.org>
15605 * gnulib-tool (func_import): Read the previous cached settings
15606 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
15607 earlier added by gnulib but are now dropped. Warn when a gnulib file
15608 overwrites a non-gnulib file.
15610 2005-08-31 Bruno Haible <bruno@clisp.org>
15612 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
15613 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
15614 projects that don't keep autogenerated files in CVS. Put into
15615 actioncmd only the specified modules, not the transitive closure.
15617 2005-08-31 Bruno Haible <bruno@clisp.org>
15619 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
15620 Create directories that shall be filled.
15621 (import): Don't look for gl_* macros in configure.ac. Recurse across
15622 all directories containing a gnulib-cache.m4 files, if meaningful.
15624 2005-08-31 Bruno Haible <bruno@clisp.org>
15626 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
15627 (import): Set seen_libtool when we see gl_LIBTOOL.
15629 2005-08-31 Bruno Haible <bruno@clisp.org>
15631 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
15632 declaration macro definitions from generated gnulib.m4.
15634 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
15636 * lib/iconvme.h: Add prototype for iconv_alloc.
15638 2005-08-29 Simon Josefsson <jas@extundo.com>
15640 * lib/iconvme.c: Fix errno.
15642 2005-08-29 Bruno Haible <bruno@clisp.org>
15644 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
15645 that it works when the directory contains spaces.
15647 2005-08-29 Bruno Haible <bruno@clisp.org>
15649 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
15651 2005-08-29 Bruno Haible <bruno@clisp.org>
15653 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
15656 2005-08-29 Bruno Haible <bruno@clisp.org>
15657 and Stepan Kasal <kasal@ucw.cz>
15659 * check-module: If more parameters are given, check each of them
15660 separately; add more exceptions, as noted by Jim Meyering.
15661 (check_module): New procedure.
15662 (%exempt_header): Now contains all exceptions.
15664 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
15666 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
15668 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
15670 * lib/iconvme.c: Split iconv_string into iconv_alloc.
15672 2005-08-28 Bruno Haible <bruno@clisp.org>
15674 * m4/gnulib-tool.m4: New file.
15676 2005-08-27 Jim Meyering <jim@meyering.net>
15678 * modules/unistd-safer (Files): Add pipe-safer.c.
15679 * modules/fcntl-safer (Files): Add creat-safer.c.
15681 2005-08-27 Jim Meyering <jim@meyering.net>
15683 * m4/stdlib-safer.m4: New file. From coreutils.
15684 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
15685 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
15686 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
15687 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
15688 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
15690 2005-08-27 Jim Meyering <jim@meyering.net>
15692 * lib/fopen-safer.c: Merge minor changes from coreutils.
15693 * lib/dup-safer.c: Likewise.
15694 * lib/fd-safer.c: Likewise.
15696 Merge from coreutils.
15697 * lib/stdio--.h: New file.
15698 * lib/stdlib--.h: New file.
15699 * lib/mkstemp-safer.c: New file.
15701 GNU tar needs these.
15702 * lib/pipe-safer.c: New file.
15703 * lib/creat-safer.c: New file.
15704 * lib/fcntl--.h (creat): Define to creat_safer.
15705 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
15706 * lib/unistd--.h (pipe): Define to pipe_safer.
15707 * lib/unistd-safer.h: Declare pipe_safer.
15709 2005-08-26 Simon Josefsson <jas@extundo.com>
15711 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
15712 Haible <bruno@clisp.org>.
15714 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
15716 * lib/regex_internal.h: Remove all references to
15717 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
15719 (bitset_not, bitset_merge, bitset_not_merge):
15720 (bitset_mask, re_string_allocate, re_string_construct):
15721 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
15722 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
15723 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
15724 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
15725 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
15726 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
15727 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
15728 (re_acquire_state_context):
15729 Remove unnecessary forward decls.
15730 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
15731 Put __attribute at function definition,
15732 now that the function decl has been removed.
15733 * lib/regex_internal.c (re_string_peek_byte_case):
15734 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
15737 2005-08-25 Stepan Kasal <kasal@ucw.cz>
15739 * m4/regex.m4: Add AC_PREREQ(2.50).
15740 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
15742 2005-08-25 Simon Josefsson <jas@extundo.com>
15744 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
15747 2005-08-25 Simon Josefsson <jas@extundo.com>
15749 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
15750 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
15751 GLIBC specific code.
15753 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
15755 Make regex safe for g++. This fixes one real bug (an "err"
15756 that should have been "*err"). g++ problem reported by
15758 * lib/regex_internal.h (re_calloc): New macro, consistent with
15759 re_malloc etc. All callers of calloc changed to use re_calloc.
15760 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
15761 not int. All callers changed.
15762 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
15763 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
15764 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
15765 (find_recover_state): Change "err" to "*err"; this fixes what
15766 appears to be a real bug.
15767 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
15770 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
15772 * modules/regex (Depends-on): Add malloc, since the code
15773 assumes that !malloc(0) means failure.
15775 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
15777 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
15779 alloca modernization/simplification for regex.
15780 * lib/regex.c: Remove portability cruft for alloca. This no longer
15781 needs to be at the start of the file, and can be moved into
15782 regex_internal.h and simplified.
15783 * lib/regex_internal.h: Include <alloca.h>.
15784 (__libc_use_alloca) [!defined _LIBC]: New macro.
15785 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
15786 now works outside glibc.
15788 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
15790 * config/srclist.txt: Add glibc bugs 1241, 1245.
15792 2005-08-25 Jim Meyering <jim@meyering.net>
15794 * lib/open-safer.c: Include <config.h>.
15795 Otherwise, we'd lose LARGEFILE support in any file using
15798 2005-08-25 Bruno Haible <bruno@clisp.org>
15800 * m4/minmax.m4: Require autoconf 2.52.
15801 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
15802 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
15803 alternatives of translit over the alphabet.
15804 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
15806 2005-08-24 Simon Josefsson <jas@extundo.com>
15808 * tests/test-getpass.c: New file.
15810 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
15812 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
15813 for GNU regex features.
15815 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
15817 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
15818 * lib/regex.h (regerror): Likewise.
15820 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
15821 requires this. (The code never needed it.)
15823 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
15824 All uses of recently-renamed identifiers changed to use the new,
15825 POSIX-compliant names. The code will build and run just fine
15826 without these changes, but it's better to eat our own dog food
15827 and use the standard-conforming names.
15829 * lib/regex.h: Fix a multitude of POSIX name space violations.
15830 These changes have an effect only for programs that define
15831 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
15832 do not change anything for programs compiled in the normal way.
15833 Also, there is no effect on the ABI.
15835 (_REGEX_SOURCE): New macro.
15836 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
15837 defined and _GNU_SOURCE is not; this fixes a name space violation.
15839 Rename the following macros to obey POSIX requirements.
15840 The old names are still visible as macros if _REGEX_SOURCE is defined.
15841 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
15842 RE_BACKSLASH_ESCAPE_IN_LISTS.
15843 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
15844 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
15845 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
15846 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
15847 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
15848 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
15849 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
15850 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
15851 (REG_INTERVALS): renamed from RE_INTERVALS.
15852 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
15853 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
15854 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
15855 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
15856 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
15857 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
15858 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
15859 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
15860 RE_UNMATCHED_RIGHT_PAREN_ORD.
15861 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
15862 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
15863 (REG_DEBUG): renamed from RE_DEBUG.
15864 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
15865 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
15866 unusual, since we can't clash with the POSIX REG_ICASE.
15867 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
15868 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
15869 (REG_NO_SUB): renamed from RE_NO_SUB.
15870 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
15871 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
15872 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
15873 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
15874 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
15875 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
15876 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
15877 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
15878 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
15879 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
15880 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
15881 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
15882 RE_SYNTAX_POSIX_MINIMAL_BASIC.
15883 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
15884 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
15885 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
15886 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
15887 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
15888 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
15889 (REG_FIXED): Renamed from REGS_FIXED.
15890 (REG_NREGS): Renamed from RE_NREGS.
15892 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
15893 of other REG_* macros, since POSIX says the user is allowed to
15894 #undef these macros selectively.
15896 (reg_errcode_t): Update comment stating what other tables need
15899 Rename the following enum values to obey POSIX requirements.
15900 The old names are still visible as macros.
15901 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
15902 is not defined, since GNU is supposed to be a superset of POSIX as
15903 much as possible, and since we want reg_errcode_t to be a signed
15904 type for implementation consistency.
15905 (_REG_NOERROR): Renamed from REG_NOERROR.
15906 (_REG_NOMATCH): Renamed from REG_NOMATCH.
15907 (_REG_BADPAT): Renamed from REG_BADPAT.
15908 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
15909 (_REG_ECTYPE): Renamed from REG_ECTYPE.
15910 (_REG_EESCAPE): Renamed from REG_EESCAPE.
15911 (_REG_ESUBREG): Renamed from REG_ESUBREG.
15912 (_REG_EBRACK): Renamed from REG_EBRACK.
15913 (_REG_EPAREN): Renamed from REG_EPAREN.
15914 (_REG_EBRACE): Renamed from REG_EBRACE.
15915 (_REG_BADBR): Renamed from REG_BADBR.
15916 (_REG_ERANGE): Renamed from REG_ERANGE.
15917 (_REG_ESPACE): Renamed from REG_ESPACE.
15918 (_REG_BADRPT): Renamed from REG_BADRPT.
15919 (_REG_EEND): Renamed from REG_EEND.
15920 (_REG_ESIZE): Renamed from REG_ESIZE.
15921 (_REG_ERPAREN): Renamed from REG_ERPAREN.
15922 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
15923 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
15924 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
15925 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
15927 (_REG_RE_NAME, _REG_RM_NAME): New macros.
15928 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
15929 changed. But support the old name if the new one is not defined
15930 and if _REGEX_SOURCE.
15932 Change the following member names in struct re_pattern_buffer.
15933 The old names are still supported if !_REGEX_SOURCE.
15934 The new names are always supported, regardless of _REGEX_SOURCE.
15935 (re_buffer): Renamed from buffer.
15936 (re_allocated): Renamed from allocated.
15937 (re_used): Renamed from used.
15938 (re_syntax): Renamed from syntax.
15939 (re_fastmap): Renamed from fastmap.
15940 (re_translate): Renamed from translate.
15941 (re_can_be_null): Renamed from can_be_null.
15942 (re_regs_allocated): Renamed from regs_allocated.
15943 (re_fastmap_accurate): Renamed from fastmap_accurate.
15944 (re_no_sub): Renamed from no_sub.
15945 (re_not_bol): Renamed from not_bol.
15946 (re_not_eol): Renamed from not_eol.
15947 (re_newline_anchor): Renamed from newline_anchor.
15949 Change the following member names in struct re_registers.
15950 The old names are still supported if !_REGEX_SOURCE.
15951 The new names are always supported, regardless of _REGEX_SOURCE.
15952 (rm_num_regs): Renamed from num_regs.
15953 (rm_start): Renamed from start.
15954 (rm_end): Renamed from end.
15956 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
15957 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
15958 Prepend __ to parameter names.
15960 Undo yesterday's changes.
15962 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
15964 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
15965 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
15968 2005-08-24 Jim Meyering <jim@meyering.net>
15970 Sync from coreutils.
15971 * m4/fcntl-safer.m4: New file.
15973 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
15974 and object files for this module.
15976 2005-08-24 Jim Meyering <jim@meyering.net>
15978 Sync from coreutils.
15979 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
15981 2005-08-24 Jim Meyering <jim@meyering.net>
15983 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
15984 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
15986 2005-08-24 Jim Meyering <jim@meyering.net>
15988 * modules/fcntl-safer: New module.
15989 * modules/fts (Depends-on): Add fcntl-safer.
15990 * MODULES.html.sh (File descriptor based Input/Output):
15993 2005-08-24 Bruno Haible <bruno@clisp.org>
15995 Support for unit test modules.
15996 * modules/README: Mention tests modules.
15997 * modules/TEMPLATE-TESTS: New file.
15998 * gnulib-tool: New options --extract-tests-module, --with-tests and
15999 --tests-base (unused for the moment).
16000 (testsbase, inctests): New variables.
16001 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
16002 (func_verify_module): Exclude TEMPLATE-TESTS.
16003 (func_verify_nontests_module, func_verify_tests_module): New functions.
16004 (func_get_dependencies): Add implicit dependency for tests modules.
16005 (func_get_tests_module): New function.
16006 (func_modules_transitive_closure): When --with-tests was specified,
16007 include the unit tests as well, unless explicitly avoided.
16008 (func_emit_lib_Makefile_am): Ignore the tests modules here.
16009 (func_emit_tests_Makefile_am): New function.
16010 (func_create_testdir): When --with-tests was specified, emit a
16012 * MODULES.html.sh (Future developments): Update.
16014 2005-08-24 Bruno Haible <bruno@clisp.org>
16016 * modules/tls-tests: New file.
16017 * tests/test-tls.c: New file, from GNU gettext.
16019 2005-08-24 Bruno Haible <bruno@clisp.org>
16021 * modules/lock-tests: New file.
16022 * tests/test-lock.c: New file, from GNU gettext.
16024 2005-08-24 Bruno Haible <bruno@clisp.org>
16026 * lib/lock.h: Add multiple inclusion guard.
16027 * lib/tls.h: Add multiple inclusion guard.
16029 2005-08-24 Bruno Haible <bruno@clisp.org>
16031 * gnulib-tool: Add support for the --aux-dir option to
16032 --create-testdir, --create-megatestdir, --test, --megatest.
16033 (func_create_testdir, func_create_megatestdir): Optionally emit a
16034 AC_CONFIG_AUX_DIR directive.
16035 (create-testdir, create-megatestdir, test, megatest): Provide a
16036 default value for $auxdir.
16038 2005-08-24 Bruno Haible <bruno@clisp.org>
16040 * gnulib-tool (import): Use compound statement instead of subshell
16043 2005-08-24 Bruno Haible <bruno@clisp.org>
16045 * gnulib-tool (import): Change --aux-dir default to "build-aux".
16047 2005-08-24 Bruno Haible <bruno@clisp.org>
16049 * gnulib-tool (func_version): Update.
16051 2005-08-24 Bruno Haible <bruno@clisp.org>
16053 * gnulib-tool (func_import, func_create_testdir,
16054 func_create_megatestdir): Quote all autoconf macro arguments.
16056 2005-08-24 Bruno Haible <bruno@clisp.org>
16058 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
16059 option --force, because --force causes the aclocal.m4 of each
16060 subdirectory to be newer than the corresponding config.h.in.
16062 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
16064 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
16065 All contents moved to gl_REGEX.
16066 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
16067 assume that it does.
16069 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
16071 * lib/regex.h (REG_NOSYS)
16072 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
16073 Define, since POSIX requires it as of 2001.
16075 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
16076 New private symbol, used to keep the enum signed in all cases.
16077 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
16079 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
16081 * lib/regex_internal.c (re_string_skip_chars, register_state):
16083 Remove forward decls; no longer needed now that we use prototypes.
16084 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
16085 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
16086 (clean_state_log_if_needed): Likewise.
16088 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
16090 * config/srclist.txt: Add glibc bugs 1231-1233.
16092 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
16094 Fix problems reported by Sam Steingold in
16095 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
16096 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
16097 assumed that reg_errcode_t is a signed type, which is not
16098 necessarily true if _XOPEN_SOURCE is not defined.
16099 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
16100 since some compilers warn about it otherwise.
16102 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
16104 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
16105 (init_word_char, create_initial_state, duplicate_node_closure):
16106 (fetch_token, peek_token_bracket, build_range_exp):
16107 (build_collating_symbol): Remove forward decls; no longer needed
16108 now that we use prototypes.
16111 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
16112 (re_compile_fastmap_iter, regcomp, regerror, regfree):
16113 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
16114 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
16115 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
16116 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
16117 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
16118 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
16119 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
16120 (build_range_exp, build_collating_symbol, parse_bracket_exp):
16121 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
16122 (build_charclass, build_charclass_op, fetch_number, create_tree):
16123 (create_token_tree, mark_opt_subexp, duplicate_tree):
16124 Use prototypes rather than old-style definitions.
16126 * lib/regex_internal.c:
16127 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
16128 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
16129 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
16130 (re_string_reconstruct, re_string_peek_byte_case):
16131 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
16132 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
16133 (re_node_set_init_copy, re_node_set_add_intersect):
16134 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
16135 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
16136 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
16137 (re_acquire_state, re_acquire_state_context, register_state):
16138 (create_ci_newstate, create_cd_newstate, free_state):
16140 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
16142 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
16143 (re_search_internal, prune_impossible_nodes):
16144 (acquire_init_state_context, check_matching, static):
16145 (check_halt_node_context, check_halt_state_context, proceed_next_node):
16146 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
16147 (update_regs, sift_states_backward, build_sifted_states):
16148 (clean_state_log_if_needed, merge_state_array):
16149 (update_cur_sifted_state, add_epsilon_src_nodes):
16150 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
16151 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
16152 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
16153 (find_recover_state, check_subexp_matching_top, transit_state_mb):
16154 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
16155 (check_arrival, check_arrival_add_next_nodes):
16156 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
16157 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
16158 (check_node_accept_bytes, check_node_accept, extend_buffers):
16159 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
16160 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
16164 * lib/regex_internal.h:
16165 (re_string_allocate, re_string_construct, re_string_reconstruct):
16166 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
16167 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
16168 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
16169 (re_string_context_at, re_string_peek_byte_case):
16170 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
16171 is defined, since we now use prototypes always.
16173 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
16174 C89 or better. All uses removed.
16176 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
16178 * config/srclist.txt: Add glibc bugs 1220-1227.
16180 2005-08-20 Jim Meyering <jim@meyering.net>
16182 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
16183 of unused local, dfa.
16185 2005-08-20 Bruno Haible <bruno@clisp.org>
16187 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
16189 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
16191 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
16192 (re_node_set_insert_last, re_dfa_add_node):
16193 Rename local variables to avoid GCC shadowing warnings.
16195 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
16197 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
16198 [defined lint]: Suppress bogus uninitialized-variable warnings.
16200 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
16201 and let the caller return REG_ESPACE if out of space. This
16202 removes an uninitialied-variable warning with GCC 4.0.1, and also
16203 avoids taking the address of a local variable. All callers
16206 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
16208 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
16209 $LIBCSRC/posix/regexec.c.
16210 Add glibc bug 1217 for regcomp.c.
16212 2005-08-19 Jim Meyering <jim@meyering.net>
16214 * lib/regexec.c (proceed_next_node): Redo local variables to
16215 avoid GCC shadowing warnings.
16217 2005-08-18 Bruno Haible <bruno@clisp.org>
16219 * lib/strstr.c (strstr): Fix return value in multibyte case.
16220 * lib/strcasestr.c (strcasestr): Likewise.
16222 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
16224 * lib/regex.h: Remove useless space-before-tab. From coreutils.
16226 2005-08-17 Jim Meyering <jim@meyering.net>
16228 Make the %s format (seconds since the epoch) work for a negative
16229 number and when used with a zero-padded field width, e.g. %015s.
16231 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
16232 label so that it precedes the code to set `digits'. Otherwise,
16233 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
16234 print `00-22'. Now, it prints `-0022', as it should.
16236 2005-08-17 Bruno Haible <bruno@clisp.org>
16238 * modules/strstr (Files): Add m4/mbrtowc.m4.
16239 (Depends-on): Add mbuiter.
16241 2005-08-17 Bruno Haible <bruno@clisp.org>
16243 * modules/strcasestr: New file.
16244 * MODULES.html.sh (String handling, based on ANSI C 89): Add
16247 2005-08-17 Bruno Haible <bruno@clisp.org>
16249 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
16251 2005-08-17 Bruno Haible <bruno@clisp.org>
16253 * modules/mbuiter: New file.
16254 * MODULES.html.sh (Extended multibyte and wide character utilities):
16257 2005-08-17 Bruno Haible <bruno@clisp.org>
16259 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
16260 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
16262 2005-08-17 Bruno Haible <bruno@clisp.org>
16264 * m4/strcasestr.m4: New file.
16266 2005-08-17 Bruno Haible <bruno@clisp.org>
16268 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
16269 * lib/strstr.c: Completely rewritten, with multibyte locale support.
16271 2005-08-17 Bruno Haible <bruno@clisp.org>
16273 * lib/strcasestr.h: New file.
16274 * lib/strcasestr.c: New file.
16276 2005-08-17 Bruno Haible <bruno@clisp.org>
16278 * lib/strcasecmp.c: Use mbuiter.h.
16280 2005-08-17 Bruno Haible <bruno@clisp.org>
16282 * lib/mbuiter.h: New file.
16284 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
16286 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
16287 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
16288 and gl_GETOPT are both invoked via different paths (as happens
16289 with GNU tar CVS because it uses both argp and getopt), the former
16292 2005-08-16 Bruno Haible <bruno@clisp.org>
16294 * modules/tls: New file.
16295 * MODULES.html.sh (Multithreading): Add tls.
16297 2005-08-16 Bruno Haible <bruno@clisp.org>
16299 * modules/strnlen1: New file.
16300 * MODULES.html.sh (String handling): Add strnlen1.
16302 2005-08-16 Bruno Haible <bruno@clisp.org>
16304 * modules/strcase (Files): Add m4/mbrtowc.m4.
16305 (Depends-on): Add strnlen1, mbchar.
16307 2005-08-16 Bruno Haible <bruno@clisp.org>
16309 * modules/mbiter: New file.
16310 * MODULES.html.sh (Extended multibyte and wide character utilities):
16313 2005-08-16 Bruno Haible <bruno@clisp.org>
16315 * modules/mbfile: New file.
16316 * MODULES.html.sh (Extended multibyte and wide character utilities):
16319 2005-08-16 Bruno Haible <bruno@clisp.org>
16321 * modules/mbchar: New file.
16322 * MODULES.html.sh (Extended multibyte and wide character utilities):
16325 2005-08-16 Bruno Haible <bruno@clisp.org>
16327 * m4/tls.m4: New file, from GNU gettext.
16329 2005-08-16 Bruno Haible <bruno@clisp.org>
16331 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
16333 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
16335 2005-08-16 Bruno Haible <bruno@clisp.org>
16337 * m4/mbiter.m4: New file.
16339 2005-08-16 Bruno Haible <bruno@clisp.org>
16341 * m4/mbfile.m4: New file.
16343 2005-08-16 Bruno Haible <bruno@clisp.org>
16345 * m4/mbchar.m4: New file.
16347 2005-08-16 Bruno Haible <bruno@clisp.org>
16349 * lib/tls.h: New file, from GNU gettext.
16350 * lib/tls.c: New file, from GNU gettext.
16352 2005-08-16 Bruno Haible <bruno@clisp.org>
16354 * lib/strnlen1.h: New file.
16355 * lib/strnlen1.c: New file.
16357 2005-08-16 Bruno Haible <bruno@clisp.org>
16359 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
16360 (mbi_init): Update.
16361 (mbi_avail, mbi_advance): Let the iteration end before the terminating
16362 NUL byte, not after it.
16364 2005-08-16 Bruno Haible <bruno@clisp.org>
16366 * lib/strcase.h (strcasecmp): Add note in comments.
16367 * lib/strncasecmp.c: Use code from strcasecmp.c.
16368 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
16369 (strcasecmp): Work correctly in multibyte locales.
16371 2005-08-16 Bruno Haible <bruno@clisp.org>
16373 * lib/mbiter.h: New file.
16375 2005-08-16 Bruno Haible <bruno@clisp.org>
16377 * lib/mbfile.h: New file.
16379 2005-08-16 Bruno Haible <bruno@clisp.org>
16381 * lib/mbchar.h: New file.
16382 * lib/mbchar.c: New file.
16384 2005-08-16 Bruno Haible <bruno@clisp.org>
16386 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
16387 the valid ones. Makes the comparison operations transitive:
16388 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
16389 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
16391 2005-08-15 Simon Josefsson <jas@extundo.com>
16393 * modules/ssize_t (License): Change to 'unlimited'.
16395 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
16397 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
16399 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
16400 Add comments for each pending glibc patch.
16402 2005-08-15 Bruno Haible <bruno@clisp.org>
16404 * lib/regex.h (__restrict_arr): Don't define to __restrict if
16405 __cplusplus is defined.
16407 2005-08-14 Jim Meyering <jim@meyering.net>
16409 Sync from coreutils.
16411 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
16412 Use the hash-table-based cycle-detection code not just when
16413 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
16414 Reported by James Youngman in
16415 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
16416 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
16417 FTS_TIGHT_CYCLE_CHECK.
16418 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
16419 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
16421 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
16422 * lib/fts.c (fd_safer): Remove decl.
16423 Include fcntl--.h rather than unistd-safer.h
16424 (fts_safe_changedir): Don't call fd_safer; no longer needed
16425 now that we include fcntl--.h.
16427 2005-08-12 Simon Josefsson <jas@extundo.com>
16429 * modules/getndelim2: Use ssize_t module.
16430 * modules/getnline: Likewise.
16431 * modules/safe-read: Likewise.
16432 * modules/xreadlink: Likewise.
16434 * modules/ssize_t: New file.
16436 2005-08-12 Simon Josefsson <jas@extundo.com>
16438 * m4/readline.m4: Look for termcap, curses or ncurses if required.
16440 2005-08-12 Simon Josefsson <jas@extundo.com>
16442 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16445 2005-08-12 Simon Josefsson <jas@extundo.com>
16447 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
16448 readline, getdelim and check_version.
16449 (Support for systems lacking ISO C 99: Sizes of integer types):
16452 2005-08-12 Bruno Haible <bruno@clisp.org>
16454 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
16456 2005-08-11 Simon Josefsson <jas@extundo.com>
16458 * modules/readline: New file.
16460 * modules/strnlen (Files): Add strnlen.h.
16462 2005-08-11 Simon Josefsson <jas@extundo.com>
16464 * m4/readline.m4: New file.
16466 2005-08-11 Simon Josefsson <jas@extundo.com>
16468 * lib/readline.h, readline.c: New file.
16470 2005-08-11 Simon Josefsson <jas@extundo.com>
16472 * doc/gnulib.texi (Initial import, Finishing touches): Mention
16475 2005-08-11 Bruno Haible <bruno@clisp.org>
16477 * lib/strnlen.h (strnlen): Change parameter name to match comment.
16479 2005-08-10 Stepan Kasal <kasal@ucw.cz>
16481 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
16483 2005-08-10 Simon Josefsson <jas@extundo.com>
16485 * tests/test-iconvme.c: New file.
16487 2005-08-10 Simon Josefsson <jas@extundo.com>
16489 * m4/strnlen.m4: New file.
16491 * m4/strndup.m4: Don't check for strnlen declaration, done in
16494 2005-08-10 Simon Josefsson <jas@extundo.com>
16496 * lib/strndup.c: Use strnlen.h.
16498 * lib/strnlen.h: New file.
16500 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
16504 2005-08-02 Simon Josefsson <jas@extundo.com>
16506 * modules/readline: New file.
16508 2005-08-02 Simon Josefsson <jas@extundo.com>
16510 * modules/getdelim: New file.
16512 * modules/getline: Rewrite, don't use getndelim2.
16514 2005-08-02 Simon Josefsson <jas@extundo.com>
16516 * m4/getline.m4: Separate out getdelim stuff into separate module.
16518 * m4/getdelim.m4: New file.
16520 2005-08-02 Simon Josefsson <jas@extundo.com>
16522 * lib/getline.h, getline.c: Rewrite.
16524 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
16526 2005-07-31 Bruno Haible <bruno@clisp.org>
16528 * lib/lock.h (gl_lock_initializer): New macro.
16529 (gl_lock_define_initialized): Use it.
16530 (gl_rwlock_initializer): New macro.
16531 (gl_rwlock_define_initialized): Use it.
16532 (gl_recursive_lock_initializer): New macro.
16533 (gl_recursive_lock_define_initialized): Use it.
16535 2005-07-30 Karl Berry <karl@gnu.org>
16537 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
16538 Report from Ben Pfaff, regarding getopt.
16540 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
16542 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
16544 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
16545 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
16546 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
16547 (gl_GETOPT): Use the new macros. Most of the implementation
16548 is moved to the new macros. This is for programs like Emacs
16549 that don't want all the functionality of gl_GETOPT.
16551 2005-07-26 Bruno Haible <bruno@clisp.org>
16553 * m4/lock.m4: Update from GNU gettext.
16555 2005-07-26 Bruno Haible <bruno@clisp.org>
16557 * lib/lock.h: Update from GNU gettext.
16558 * lib/lock.c: Update from GNU gettext.
16560 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
16562 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
16563 obsolescent AC_TRY_RUN. Include the default includes files, for
16566 2005-07-24 Bruno Haible <bruno@clisp.org>
16568 * modules/visibility: New file.
16569 * MODULES.html.sh (Misc): Add visibility.
16571 2005-07-24 Bruno Haible <bruno@clisp.org>
16573 * m4/visibility.m4: New file.
16575 2005-07-24 Bruno Haible <bruno@clisp.org>
16577 * doc/visibility.texi: New file.
16579 2005-07-22 Bruno Haible <bruno@clisp.org>
16581 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
16582 $(ALLOCA_H), redundant through BUILT_SOURCES.
16583 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
16584 redundant through BUILT_SOURCES.
16585 * modules/byteswap (Makefile.am): Remove explicit dependency on
16586 $(BYTESWAP_H), redundant through BUILT_SOURCES.
16587 * modules/fnmatch (Makefile.am): Remove explicit dependency on
16588 $(FNMATCH_H), redundant through BUILT_SOURCES.
16589 * modules/getopt (Makefile.am): Remove explicit dependency on
16590 $(GETOPT_H), redundant through BUILT_SOURCES.
16591 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
16592 redundant through BUILT_SOURCES.
16593 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
16594 redundant through BUILT_SOURCES.
16595 * modules/stdbool (Makefile.am): Remove explicit dependency on
16596 $(STDBOOL_H), redundant through BUILT_SOURCES.
16597 * modules/stdint (Makefile.am): Remove explicit dependency on
16598 $(STDINT_H), redundant through BUILT_SOURCES.
16599 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
16600 Remove explicit dependency on $(SYSEXITS_H).
16601 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
16603 2005-07-18 Simon Josefsson <jas@extundo.com>
16605 * lib/check-version.c (check_version): Accept identical versions too.
16607 2005-07-18 Bruno Haible <bruno@clisp.org>
16609 * modules/lock: New file.
16610 * MODULES.html.sh (Multithreading): New section.
16612 2005-07-18 Bruno Haible <bruno@clisp.org>
16614 * m4/lock.m4: New file, from GNU gettext.
16616 2005-07-18 Bruno Haible <bruno@clisp.org>
16618 * lib/lock.h: New file, from GNU gettext.
16619 * lib/lock.c: New file, from GNU gettext.
16621 2005-07-18 Bruno Haible <bruno@clisp.org>
16623 * lib/lock.h (gl_once_t): New type.
16624 (gl_once_define, gl_once): New macros.
16625 * lib/lock.c (fresh_once): New variable.
16626 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
16629 2005-07-16 Simon Josefsson <jas@extundo.com>
16631 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
16632 workaround, suggested by Bruno.
16634 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
16636 * modules/xalloc (Depends-on): Add xalloc-die.
16637 * modules/xvasprintf (Depends-on): Add xalloc-die.
16639 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
16641 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
16642 with a minor change.
16644 2005-07-15 Bruno Haible <bruno@clisp.org>
16646 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
16647 When using lib/poll.c, define poll as rpl_poll.
16649 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
16651 * modules/argp (Depends-on): Remove unlocked-io.
16653 2005-07-14 Derek Price <derek@ximbiot.com>
16655 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
16656 for glob symlink bug.
16658 2005-07-14 Bruno Haible <bruno@clisp.org>
16660 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
16661 Instead, test for *_unlocked function declarations directly.
16663 2005-07-11 Simon Josefsson <jas@extundo.com>
16665 * modules/size_max: New file.
16667 * modules/xsize: Depend on size_max module for size_max.m4.
16669 2005-07-11 Simon Josefsson <jas@extundo.com>
16671 * lib/size_max.h: New file.
16673 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
16675 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
16676 copyright symbol and the year.
16677 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
16678 (version_etc_va): Use parameterized copyright notice.
16679 Reword to conform to the current GNU coding standards.
16681 2005-07-11 Karl Berry <karl@gnu.org>
16683 * doc/gnulib.texi (Quoting): new node.
16684 (Initial import): more info, from Patrice.
16686 2005-07-11 Bruno Haible <bruno@clisp.org>
16688 * gnulib-tool (func_usage): Document option --avoid.
16689 (Command line options): Handle --avoid.
16690 (func_acceptable): New function.
16691 (func_modules_transitive_closure): Use it.
16693 2005-07-11 Bruno Haible <bruno@clisp.org>
16695 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
16696 Reported by Jim Meyering.
16698 2005-07-10 Bruno Haible <bruno@clisp.org>
16700 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
16701 Needed when size_t is smaller than 'unsigned int'.
16702 Reported by Paul Eggert.
16704 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
16706 * modules/argp (Depends-on): Add unlocked-io
16708 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
16710 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
16713 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
16715 * config/srclist.txt: Comment out regcomp.c, since we have a porting
16718 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
16719 and Paul Eggert <eggert@cs.ucla.edu>
16721 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
16722 in wint_t, not wchar_t. Remove now-unnecessary cast.
16724 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
16726 * modules/regex (Files): Add lib/regex_internal.c,
16727 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
16728 (Depends-on): Add extensions.
16729 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
16731 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
16733 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
16735 * m4/same.m4 (gl_SAME): Likewise.
16736 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
16738 * m4/regex.m4: Adjust to new libc regex implementation.
16739 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
16740 all the .c and .h parts of (the new) regex.
16741 Quote the m4 stuff better.
16742 Check for RE_ICASE bug of old gnulib.
16743 Check for REG_STARTEND of recent libc.
16744 Rename local variables from jm_* to gl_*.
16745 Quote operand of "test -f".
16746 Say "recent enough" version of libc, not "version 2".
16747 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
16748 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
16749 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
16750 Remove check for btowc, isascii.
16751 Require AM_LANGINFO_CODESET.
16753 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
16755 * lib/regex.c, regex.h: Sync from libc.
16756 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
16758 New files, synced from libc, except that regex_internal.h
16759 currently has a small porting fix.
16761 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
16763 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
16764 regex_internal.c, regexec.c.
16765 Add regex_internal.h too, but as a comment, since the libc version
16766 is currently broken in gnulib mode.
16768 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
16770 Support programs like Emacs that use gnulib but not gettext.
16771 * MODULES.html.sh (Internationalization functions): Add gettext-h.
16772 * modules/gettext-h: New file.
16773 * modules/gettext (Files): Remove lib/gettext.h.
16774 (Depends-on): Add gettext-h.
16775 (Makefile.am): Remove lib_SOURCES.
16776 * modules/argmatch, modules/c-stack, modules/closeout:
16777 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
16778 * modules/execute, modules/file-type, modules/getaddrinfo:
16779 * modules/getopt, modules/human, modules/javacomp:
16780 * modules/javaexec, modules/mkdir-p, modules/obstack:
16781 * modules/openat, modules/pagealign_alloc, modules/pipe:
16782 * modules/quotearg, modules/regex, modules/rpmatch:
16783 * modules/unicodeio, modules/userspec, modules/version-etc:
16784 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
16786 Depend on gettext-h, not gettext.
16788 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
16790 * gnulib-tool (func_import): Add support for 'public domain' license.
16791 * modules/alloca, modules/atexit, modules/memmove:
16792 Now public domain, not GPL.
16793 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
16794 * modules/realloc, modules/strerror, modules/strtod:
16797 2005-07-05 Bruno Haible <bruno@clisp.org>
16799 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
16800 autoconf CVS. Needed for mingw.
16802 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
16804 Remove the dependency of the strftime module on the tzset module.
16805 * modules/strftime (Depends-on): Remove dependency on tzset.
16807 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
16809 Remove the dependency of the strftime module on the tzset module.
16810 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
16811 gl_FUNC_TZSET_CLOBBER.
16813 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
16815 Remove the dependency of the strftime module on the tzset module.
16816 * lib/strftime.c (my_strftime)
16817 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
16818 Copy the input structure, to work around some of the bug with
16819 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
16820 Solaris releases, you should also use the tzset module, but we won't
16821 require it as a dependency any more since we don't want LGPLed code
16822 to depend on GPLed code.
16824 2005-07-02 Jim Meyering <jim@meyering.net>
16826 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
16827 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
16828 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
16829 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
16831 2005-07-02 Jim Meyering <jim@meyering.net>
16833 * lib/backupfile.c (backup_args): Change a `0' to NULL.
16835 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
16837 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
16838 declares only 'struct timespec;' (!).
16840 2005-07-01 Jim Meyering <jim@meyering.net>
16842 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
16843 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
16844 * lib/save-cwd.c, tempname.c:
16845 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
16846 and don't include <sys/file.h>).
16848 2005-06-29 Jim Meyering <jim@meyering.net>
16850 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
16851 type name. Use the variable name instead.
16852 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
16855 2005-06-28 Simon Josefsson <jas@extundo.com>
16857 * modules/check-version (Files): Add check-version.m4.
16859 2005-06-28 Simon Josefsson <jas@extundo.com>
16861 * m4/check-version.m4: New file, suggested by Jim Meyering
16862 <jim@meyering.net>.
16864 2005-06-28 Simon Josefsson <jas@extundo.com>
16866 * lib/check-version.h, lib/check-version.c: New files.
16868 2005-06-28 Simon Josefsson <jas@extundo.com>
16870 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
16871 collision with global variable. Better indentation. Don't
16872 increment buffer pointer beyond buffer end. Based on comments
16873 from Paul Eggert <eggert@cs.ucla.edu>.
16875 * lib/base64.h: Indent.
16877 2005-06-28 Simon Josefsson <jas@extundo.com>
16879 * doc/gnulib.texi (Library version handling): New section.
16881 2005-06-28 Jim Meyering <jim@meyering.net>
16883 * check-module (find_included_lib_files): Hard-code another
16884 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
16885 but modules/fts-lgpl (correctly) does not list those files.
16887 * modules/canonicalize (Files): Add lib/pathmax.h.
16889 2005-06-25 Simon Josefsson <jas@extundo.com>
16891 * modules/check-version: New file.
16893 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
16895 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
16896 initializer of struct addrinfo, as an indication that we don't
16897 care how many members the structure has.
16899 2005-06-24 Derek Price <derek@ximbiot.com>
16900 and Bruno Haible <bruno@clisp.org>
16902 Remove stat module & update lstat.
16903 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
16904 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16905 * m4/stat.m4: Remove this file.
16907 2005-06-24 Derek Price <derek@ximbiot.com>
16908 and Bruno Haible <bruno@clisp.org>
16910 Remove stat module & update lstat.
16911 * lib/stat.c: Remove this file...
16912 (slash_aware_lstat): ...moving this content and its support...
16913 * lib/lstat.c (rpl_lstat): ...into here.
16914 * lib/lstat.h: New file.
16916 2005-06-24 Derek Price <derek@ximbiot.com>
16917 and Bruno Haible <bruno@clisp.org>
16919 Remove stat module & update lstat.
16920 * config/srclist.txt (libc sources): Remove stat.
16922 2005-06-24 Derek Price <derek@ximbiot.com>
16923 and Bruno Haible <bruno@clisp.org>
16925 Remove stat module & update lstat.
16926 * MODULES.html.sh (stat): Remove.
16927 * MODULES.html: Regenerated.
16928 * modules/lstat (Description): Correct function name.
16929 (Files): Add "lstat.h".
16930 (Depends-on): Remove stat, add xalloc, stat-macros.
16931 * modules/stat: Remove this file.
16932 (Include): Add "lstat.h", remove <sys/stat.h>.
16934 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
16936 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
16937 (ranged_convert): Don't save conversion in a temporary struct.
16938 This causes a warning with GCC 4.0.0, and anyway in the typical
16939 case it's not worth the extra 100 bytes or so of code.
16940 (ranged_convert, __mktime_internal): When calling a function via a
16941 pointer P, use P () rather than (*P) (), as we now assume C89 or
16944 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
16946 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
16947 "who -r" failed to give output. Problem reported by Tim Waugh.
16949 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
16950 (xcalloc): Use it to avoid needless tests.
16951 Problem reported by Jim Meyering.
16953 2005-06-20 Derek Price <derek@ximbiot.com>
16955 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
16956 unnecessary for Autoconfs > 2.59c.
16958 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16960 * lib/argp.h (__option_is_short): Check upper limit of
16961 __key. Isprint() requires its argument to have the value
16962 of an unsigned char or EOF.
16964 2005-06-16 Jim Meyering <jim@meyering.net>
16966 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
16967 when either N or S is zero.
16969 2005-06-16 Derek Price <derek@ximbiot.com>
16971 * m4/bison.m4: Declare YACC & YFLAGS precious.
16973 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
16975 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
16976 multibyte string or pattern, fall back on unibyte matching.
16977 Problem reported by James Youngman.
16979 2005-06-08 Bruno Haible <bruno@clisp.org>
16981 * modules/csharpcomp: New file.
16982 * MODULES.html.sh (C#): Add csharpcomp.
16984 2005-06-08 Bruno Haible <bruno@clisp.org>
16986 * m4/csharpcomp.m4: New file, from GNU gettext.
16988 2005-06-08 Bruno Haible <bruno@clisp.org>
16990 * lib/csharpcomp.h: New file, from GNU gettext.
16991 * lib/csharpcomp.c: New file, from GNU gettext.
16992 * lib/csharpcomp.sh.in: New file, from GNU gettext.
16994 2005-06-08 Bruno Haible <bruno@clisp.org>
16996 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
16999 2005-06-07 Derek Price <derek@ximbiot.com>
17002 * lib/glob_.h: Indent nested #ifdef.
17004 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
17006 Sync from coreutils.
17007 Use "file name" when talking about file names, instead of "filename"
17008 or "path", as per the GNU coding standards.
17009 * lib/mkdir-p.c: Renamed from makepath.c.
17010 (make_dir_parents): Renamed from make_path. All callers changed.
17011 * lib/mkdir-p.h: Likewise. All includers changed.
17012 * lib/filenamecat.c: Renamed from path-concat.c.
17013 (file_name_concat): Renamed from path_concat. All callers changed.
17014 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
17015 * lib/filenamecat.h: Likewise. All includers changed.
17016 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
17017 in comments or local variable names.
17018 * lib/basename.c: Likewise.
17019 * lib/canonicalize.c, canonicalize.h: Likewise.
17020 * lib/dirname.c, dirname.h: Likewise.
17021 * lib/euidaccess.c: Likewise.
17022 * lib/exclude.c: Likewise
17023 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
17024 * lib/fsusage.c, fsuage.h: Likewise.
17025 * lib/fts.c, fts_.h: Likewise.
17026 * lib/getcwd.c: Likewise.
17027 * lib/getloadavg.c: Likewise.
17028 * lib/mkstemp.c: Likewise.
17029 * lib/mountlist.c, mountlist.h: Likewise.
17030 * lib/openat.c, openat.h: Likewise.
17031 * lib/readlink-stub.c: Likewise.
17032 * lib/readutmp.c, readutmp.h: Likewise.
17033 * lib/rename.c: Likewise.
17034 * lib/rmdir.c: Likewise.
17035 * lib/same.c: Likewise.
17036 * lib/savedir.c: Likewise.
17037 * lib/stripslash.c: Likewise.
17038 * lib/tempname.c: Likewise.
17039 * lib/xreadlink.c: Likewise.
17040 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
17042 * lib/exclude.h: Likewise.
17044 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
17045 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
17046 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
17047 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
17048 * lib/pathmax.h: Include <limits.h> unconditionally, since other
17049 files have been getting away with it for years (MORE/BSD 4.3
17051 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
17052 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
17054 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
17055 Define to 256, not 255, as per modern POSIX.
17057 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
17059 Sync from coreutils.
17060 Use "file name" when talking about file names, instead of "filename"
17061 or "path", as per the GNU coding standards.
17062 * MODULES.html.sh: mkdir-p renamed from makepath.
17063 filenamecat renamed from path-concat.
17064 * modules/filenamecat: Renamed from modules/path-concat.
17065 (Files): filenamecat.h and filenamecat.c renamed from
17066 path-concat.h and path-concat.c.
17067 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
17068 (Include): filenamecat.h, not path-concat.h.
17069 * modules/mkdir-p: Renamed from modules/makepath.
17070 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
17072 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
17073 (Include): mkdir-p.h, not makepath.h.
17075 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
17077 Sync from coreutils.
17078 * m4/mkdir-p.m4: Renamed from makepath.m4.
17079 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
17080 Rename files from makepath.c to mkdir-p.c, and from
17081 makepath.h to mkdir-p.h.
17082 * m4/filenamecat.m4: Renamed from path-concat.m4.
17083 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
17084 Rename files from path-concat.c to filenamecat.c,
17085 and from path-concat.h to filenamecat.h.
17086 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
17087 "file name" in local variables or comments.
17088 * m4/rename.m4: Likewise.
17090 2005-06-01 Bruno Haible <bruno@clisp.org>
17092 * modules/csharpexec: New file.
17093 * MODULES.html.sh (C#): New section.
17095 2005-06-01 Bruno Haible <bruno@clisp.org>
17097 * m4/csharp.m4: New file, from GNU gettext.
17098 * m4/csharpexec.m4: New file, from GNU gettext.
17100 2005-06-01 Bruno Haible <bruno@clisp.org>
17102 * lib/csharpexec.h: New file, from GNU gettext.
17103 * lib/csharpexec.c: New file, from GNU gettext.
17104 * lib/csharpexec.sh.in: New file, from GNU gettext.
17106 2005-05-31 Derek Price <derek@ximbiot.com>
17107 Paul Eggert <eggert@cs.ucla.edu>
17110 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
17112 2005-05-31 Derek Price <derek@ximbiot.com>
17113 Paul Eggert <eggert@cs.ucla.edu>
17116 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
17118 2005-05-29 Derek Price <derek@ximbiot.com>
17120 * config/srclist.txt (glob_.h, glob.c): Add these files.
17122 2005-05-29 Derek Price <derek@ximbiot.com>
17124 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
17125 * modules/glob: New file.
17126 * modules/getlogin_r: Add link to POSIX spec in description.
17128 2005-05-29 Derek Price <derek@ximbiot.com>
17129 Paul Eggert <eggert@cs.ucla.edu>
17131 * m4/glob.m4: New file.
17133 2005-05-29 Derek Price <derek@ximbiot.com>
17134 Paul Eggert <eggert@cs.ucla.edu>
17136 * lib/glob_.h, lib/glob.c: New files.
17138 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
17140 * modules/fts (Files): Remove m4/inttypes-pri.m4.
17141 * modules/fts-lgpl (Depends-on): Remove gettext.
17143 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
17145 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
17146 and don't require gt_INTTYPES_PRI.
17148 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
17150 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
17152 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
17153 the configuration hassle isn't worth it.
17154 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
17155 (LONGEST_MODIFIER, PRIuMAX): Remove.
17157 2005-05-27 Bruno Haible <bruno@clisp.org>
17159 * lib/getlogin_r.h: Remove second include of <stddef.h>.
17161 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
17163 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
17164 _POSIX_PTHREAD_SEMANTICS for Solaris.
17166 2005-05-25 Derek Price <derek@ximbiot.com>
17168 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
17170 2005-05-25 Derek Price <derek@ximbiot.com>
17171 Paul Eggert <eggert@cs.ucla.edu>
17173 * modules/getlogin_r, m4/getlogin_r.m4: New files.
17174 * lib/getlogin_r.c, getlogin_r.h: New files.
17176 2005-05-25 Bruno Haible <bruno@clisp.org>
17177 Derek Price <derek@ximbiot.com>
17179 * lib/getlogin_r.h: Simplify API documentation.
17181 2005-05-23 Derek Price <derek@ximbiot.com>
17183 * modules/minmax (Files): Add m4/minmax.m4.
17184 (configure.ac): Add gl_MINMAX.
17186 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
17188 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
17189 so that unistd-safer.h (GPL'ed code) need not be included.
17191 2005-05-22 Bruno Haible <bruno@clisp.org>
17193 * m4/minmax.m4: New file.
17194 Based on a patch by Derek Price <derek@ximbiot.com>.
17196 2005-05-22 Bruno Haible <bruno@clisp.org>
17198 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
17199 (INT64_MIN): Fix definition.
17200 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
17202 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
17203 NEED_SIGNED_INT_TYPES.
17205 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
17206 HAVE_SYSTEM_INTTYPES.
17208 2005-05-22 Bruno Haible <bruno@clisp.org>
17210 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
17211 Also include <sys/param.h> if it defines MIN, MAX.
17212 Based on a patch by Derek Price <derek@ximbiot.com>.
17214 2005-05-21 Jim Meyering <jim@meyering.net>
17216 * modules/fts (Files): Add m4/inttypes-pri.m4.
17217 (Depends-on): Add lstat and remove gettext. Alphabetize.
17219 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
17222 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
17223 (setup_dir, free_dir): New functions.
17224 (enter_dir, leave_dir): Define trivial
17225 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
17226 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
17227 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
17228 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
17229 Move to fts-cycle.c.
17230 (fts_open): Use setup_dir.
17231 (fts_close): Use free_dir.
17232 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
17233 This adds a label and some gotos, but the alternatives were messier.
17234 Check for memory allocation failure when entering a dir.
17235 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
17236 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
17237 (FTS): New member fts_cycle, that is a union that contains the
17238 old active_dir_ht and cycle_state. All uses changed to mention
17239 fts_cycle.ht and fts_cycle.state.
17240 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
17241 fts.c, with the following changes:
17242 (setup_dir, free_dir): New functions.
17243 (enter_dir): Now returns bool. Return true if successful, false
17244 if memory exhausted. All callers changed.
17245 Do not bother partly cleaning up on
17246 memory allocation failure; that is free_dir's job.
17247 However, free ad if hash_insert fails, to avoid memory leak.
17248 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
17249 fts->fts_options to see which union member to use.
17251 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
17253 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
17254 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
17256 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
17258 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
17260 2005-05-20 Jim Meyering <jim@meyering.net>
17262 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
17263 Now a macro, to pacify GCC.
17265 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
17267 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
17270 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
17272 * lib/chown.c (rpl_chown): Return -1 on failure.
17274 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
17276 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
17277 Don't check for stddef.h.
17278 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
17279 don't use its results.
17280 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
17281 since we include them unconditionally. Don't require
17282 AM_STDBOOL_H, since stdbool is a prerequisite.
17283 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
17284 since we assume C89 or better.
17285 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
17286 as we don't use their results.
17287 Don't check for fchdir, memmove, memset, strrchr, as we use
17288 them unconditionally.
17289 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
17290 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
17292 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
17294 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
17295 Include <stddef.h> unconditionally, since we assume C89 now.
17296 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
17297 * lib/fts.c: Include fts_.h first, to check interface.
17298 Do not include intprops.h; no longer needed.
17299 Include cycle-check.h and hash.h, since fts_.h no longer does.
17300 Remove unnecessary casts of closedir to void.
17301 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
17302 decide whether to decrement nlinks.
17303 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
17304 (FTS): Use struct hash_table * instead of Hash_table, so that
17305 we no longer need to include hash.h here.
17307 2005-05-18 Jim Meyering <jim@meyering.net>
17309 * modules/dirfd (License): Change to LGPL. Most of the code
17310 is already in the public domain.
17312 2005-05-18 Jim Meyering <jim@meyering.net>
17314 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
17315 Reported by Yoann Vandoorselaere.
17317 2005-05-17 Jim Meyering <jim@meyering.net>
17319 * m4/fts.m4: New file, from coreutils.
17321 2005-05-17 Jim Meyering <jim@meyering.net>
17323 * lib/fts.c, lib/fts_.h: New files, from coreutils.
17325 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
17327 Sync from coreutils.
17328 * m4/unlinkdir.m4: New file.
17330 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
17332 Sync from coreutils.
17333 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
17334 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
17335 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
17336 White space changes only.
17337 * lib/makepath.c (make_path): Port to hosts where leading "//" is
17339 * lib/yesno.c: Include getline.h, not ctype.h.
17340 (yesno): Don't remove leading white space; POSIX doesn't allow it.
17341 Use getline to remove arbitrary restriction on response length.
17343 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
17345 * config/srclist-update: Spell out "Street" in FSF postal
17346 mail address; this is the style the FSF seems to prefer.
17348 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
17349 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
17350 this updates FSF postal mail address.
17352 Sync from coreutils.
17353 * modules/unlinkdir: New file.
17354 * modules/yesno (Depends-on): Add getline.
17355 * MODULES.html.sh (File system functions): Add unlinkdir.
17357 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
17359 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
17361 Change the initial comment to refer to GPL, not LGPL.
17362 gnulib-tool will change it to LGPL as needed.
17364 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
17365 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
17366 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
17367 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
17368 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
17369 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
17370 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
17371 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
17372 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
17373 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
17374 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
17375 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
17376 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
17377 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
17378 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
17379 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
17380 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
17381 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
17382 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
17383 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
17384 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
17385 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
17386 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
17387 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
17388 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
17389 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
17390 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
17391 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
17392 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
17393 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
17394 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
17395 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
17396 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
17397 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
17398 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
17399 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
17400 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
17401 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
17402 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
17403 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
17404 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
17405 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
17406 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
17407 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
17408 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
17409 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
17410 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
17411 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
17412 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
17413 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
17414 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
17415 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
17416 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
17417 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
17418 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
17419 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
17420 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
17421 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
17422 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
17423 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
17424 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
17425 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
17426 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
17427 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
17428 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
17429 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
17430 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
17431 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
17432 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
17433 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
17434 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
17435 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
17436 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
17437 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
17438 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
17439 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
17440 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
17441 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
17442 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
17443 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
17444 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
17445 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
17446 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
17447 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
17448 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
17449 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
17450 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
17451 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
17452 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
17453 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
17454 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
17455 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
17456 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
17457 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
17458 lib/yesno.c, lib/yesno.h:
17459 Update FSF postal mail address.
17461 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
17463 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
17464 tests/test-memmem.c, tests/test-stpncpy.c:
17465 Update FSF postal mail address.
17467 2005-05-13 Bruno Haible <bruno@clisp.org>
17469 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
17470 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
17471 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
17472 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
17473 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
17474 Add support for 64-bit integers in the MSVC compiler.
17476 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17478 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
17480 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
17482 * gnulib-tool (func_import): Sort and uniquify recommended includes.
17484 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
17486 * doc/getdate.texi (General date syntax): Don't say that date
17487 date --iso-8601=ns generates acceptable dates; it doesn't yet.
17488 Problem reported by Nic Ferrier.
17490 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17492 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
17493 specified in ai_socktype. Fix invalid ai_protocol
17494 check. ai_protocol is usually set to 0 or depending on
17495 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
17496 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
17497 ai_socktype / ai_protocol in the returned addrinfo structure.
17499 2005-05-10 Simon Josefsson <jas@extundo.com>
17501 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
17502 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17504 2005-05-10 Karl Berry <karl@gnu.org>
17506 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
17507 (from http://www.gnu.org/licenses).
17508 * doc/COPYING.LIB: also rename to COPYING.LESSER.
17509 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
17512 2005-05-10 Karl Berry <karl@gnu.org>
17514 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
17515 (COPYING.DOC): remove.
17517 * config/srclist-update: new FSF address.
17519 2005-05-10 Derek Price <derek@ximbiot.com>
17521 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
17524 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17525 Bruno Haible <bruno@clisp.org>
17527 * modules/inet_ntop: New file.
17528 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17531 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17532 Bruno Haible <bruno@clisp.org>
17534 * m4/inet_ntop.m4: New file.
17536 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17537 Bruno Haible <bruno@clisp.org>
17539 * lib/inet_ntop.h: New file.
17540 * lib/inet_ntop.c: New file, from glibc with modifications.
17542 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
17544 * modules/time_r (License): Change to LGPL.
17545 * modules/extensions (License): Change to LGPL. Actually,
17546 the license is more permissive than that, but currently gnulib-tool
17547 doesn't know how to handle more-permissive licenses.
17549 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
17550 Problem reported by Dave Love.
17552 2005-05-08 Jim Meyering <jim@meyering.net>
17554 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
17557 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
17559 * modules/argmatch (Depends-on): Add stdbool.
17560 * modules/backupfile (Depends-on): Likewise.
17561 * modules/chdir-long (Depends-on): Likewise.
17562 * modules/closeout (Depends-on): Likewise.
17563 * modules/cycle-check (Depends-on): Likewise.
17564 * modules/dirname (Depends-on): Likewise.
17565 * modules/fnmatch (Depends-on): Likewise.
17566 * modules/fsusage (Depends-on): Likewise.
17567 * modules/fwriteerror (Depends-on): Likewise.
17568 * modules/getcwd (Depends-on): Likewise.
17569 * modules/getloadavg (Depends-on): Likewise.
17570 * modules/hard-locale (Depends-on): Likewise.
17571 * modules/makepath (Depends-on): Likewise.
17572 * modules/mountlist (Depends-on): Likewise.
17573 * modules/nanosleep (Depends-on): Likewise.
17574 * modules/posixtm (Depends-on): Likewise.
17575 * modules/quotearg (Depends-on): Likewise.
17576 * modules/readtokens (Depends-on): Likewise.
17577 * modules/readtokens0 (Depends-on): Likewise.
17578 * modules/readutmp (Depends-on): Likewise.
17579 * modules/save-cwd (Depends-on): Likewise.
17580 * modules/strftime (Depends-on): Likewise.
17581 * modules/userspec (Depends-on): Likewise.
17582 * modules/utimecmp (Depends-on): Likewise.
17583 * modules/xgetcwd (Depends-on): Likewise.
17584 * modules/xnanosleep (Depends-on): Likewise.
17585 * modules/xstrtod (Depends-on): Likewise.
17586 * modules/yesno (Depends-on): Likewise.
17588 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
17590 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
17593 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
17595 Merge from coreutils. Among other things,
17596 add bulletproofing for cases where stdin, stdout, or stderr are closed.
17597 * lib/fd-safer.c: New file.
17598 * lib/fcntl-safer.h, open-safer.c: Remove.
17599 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
17600 * lib/dup-safer.c: Include unistd-safer.h first.
17601 Don't include errno.h.
17602 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
17603 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
17604 * lib/file-type.c: Rely on file-type.h change.
17605 * lib/getloadavg.c: Include unistd-safer.h.
17606 (getloadavg): Use safer open.
17607 * lib/getusershell.c: Include "stdio-safer.h".
17608 (getusershell): Use safer fopen.
17609 * lib/long-options.c (long_options): Use NULL rather than 0.
17610 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
17612 * lib/modechange.c: Likewise.
17613 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
17614 (MODE_DONE): New constant.
17615 (struct mode_change): Remove 'next' member.
17616 (make_node_op_equals): New function; like the old one of the
17617 same name, except it allocates an array.
17618 (mode_compile, mode_create_from_ref): Use it.
17619 (mode_compile): Allocate result as an array, not a linked list.
17620 Parse octal string ourself, so that we catch mistakes like "+0".
17621 (mode_adjust): Arg is an array, not a linked list.
17622 * lib/modechange.c: Include stat-macros.h, xalloc.h.
17623 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
17624 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
17625 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
17626 Remove. This is now stat-macros.h's job.
17627 (talloc): Remove. All callers replaced by xalloc, so that
17628 our invokers don't have to worry about reporting memory failures.
17629 (make_node_op_equals): Remove.
17630 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
17632 (struct mode_change): Moved here from modechange.h.
17633 (mode_append_entry): Remove.
17634 (mode_compile): Remove MASKED_OPS arg, since it encouraged
17635 apps to have incorrect behavior. Use simpler algorithm for head
17636 and tail. Don't futz with umask; that's now the job of mode_adjust.
17637 Detect more invalid usages rather than having somewhat-random behavior.
17638 Don't insert an "a=" action, as that leads to incorrect behavior.
17639 (mode_compile, mode_create_from_ref): Return NULL on error instead
17640 of an enum, since now there's only one way to have an error. All
17642 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
17643 at the correct time. Simplify calculation of "+u" and its ilk.
17644 Don't mishandle "+X".
17645 (mode_free): Remove "register" and localize decls.
17646 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
17647 (struct mode_change): Move to modechange.c; callers don't
17648 need to see this stuff.
17649 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
17650 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
17651 (mode_change, mode_adjust): Reflect the new signatures noted above.
17652 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
17653 that might redefine system include files.
17654 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
17655 (my_usleep): Use NULL rather than (void *) 0.
17656 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
17657 Use siginterrupt to specify that system calls should be interrupted.
17658 (rpl_nanosleep): Move initialization of suspended closer to call of
17660 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
17661 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
17662 (desirable_utmp_entry): New function.
17663 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
17664 using x2nrealloc, to simplify logic.
17665 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
17666 size calculation. Do not assume utmp file is a regular file.
17667 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
17668 (READ_UTMP_CHECK_PIDS): New constant.
17669 * lib/save-cwd.c: Include unistd-safer.h.
17670 (save_cwd): Use fd_safer.
17671 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
17672 [!_LIBC] Include "stat-macros.h" instead.
17673 * lib/unistd-safer.h (fd_safer): New decl.
17675 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
17677 * modules/getloadavg (Depends-on): Add unistd-safer.
17678 * modules/getusershell (Depends-on): Add stdio-safer.
17679 * modules/lstat (Depends-on): Remove xalloc.
17680 * modules/mkstemp (Depends-on): Add stat-macros.
17681 * modules/modechange (Depends-on): Remove xstrtol.
17682 Add stat-macros, xalloc.
17683 * modules/save-cwd (Depends-on): Add unistd-safer.
17684 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
17685 * modules/unistd-safer (Files): Add lib/fd-safer.c
17686 (Makefile.am): Remove lib_SOURCES.
17688 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
17689 Remove fcntl-safer; unistd-safer supersedes it.
17691 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
17693 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
17695 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
17696 (gl_PREREQ_CHOWN): Remove.
17697 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
17698 it. Don't require AC_HEADER_STAT.
17699 (gl_PREREQ_LSTAT): Remove.
17700 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
17701 Don't require AC_HEADER_STAT.
17702 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
17703 (gl_PREREQ_RMDIR): Remove.
17704 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
17705 mention stat-macros.h or AC_HEADER_STAT, since we'll make
17706 the stat-macros module a prerequisite.
17707 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
17708 * m4/filemode.m4 (gl_FILEMODE): Likewise.
17709 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
17710 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
17711 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
17713 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
17714 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
17716 * m4/fcntl-safer.m4: Remove.
17717 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
17718 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
17719 Invoke gl_PREREQ_FD_SAFER.
17720 (gl_PREREQ_FD_SAFER): New macro.
17721 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
17722 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
17723 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
17724 Remove duplicate call to AC_LIBOBJ(readutmp).
17725 (gl_PREREQ_READUTMP): Remove. All uses inlined.
17727 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
17728 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
17730 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
17732 * MODULES.html.sh (Misc): Add byteswap.
17734 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
17736 * modules/getcwd (Depends-on): Add extensions.
17737 * modules/openat (Depends-on): Likewise.
17739 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
17741 * modules/byteswap: New file.
17743 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
17745 * m4/byteswap.m4: New file.
17747 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
17749 * lib/byteswap_.h: New file.
17751 2005-04-25 Karl Berry <karl@gnu.org>
17753 * m4/gettext.m4: Update from GNU gettext 0.14.4.
17755 2005-04-25 Albert Chin <china@thewrittenword.com>
17757 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
17760 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
17762 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
17763 (func_ln_if_changed) Remove forcibly for no error message
17764 in case file does not exist.
17766 2005-04-19 Simon Josefsson <jas@extundo.com>
17768 * gnulib-tool (Options): Make --symlink mean --symbolic.
17770 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
17772 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
17774 2005-04-16 Simon Josefsson <jas@extundo.com>
17776 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
17778 2005-04-15 Simon Josefsson <jas@extundo.com>
17780 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
17782 2005-04-15 Simon Josefsson <jas@extundo.com>
17784 * gnulib-tool: Rename --symlink to --symbolic.
17786 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
17788 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
17789 symbolic links to files instead of copying/moving. Add --aux-dir,
17790 specifying directory relative --dir where auxiliary build tools
17793 2005-04-14 Bruno Haible <bruno@clisp.org>
17795 * modules/allocsa (License): Change to LGPL.
17796 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17798 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
17800 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
17801 that "UTC +1 second" continues to work. Problem reported
17802 by Dmitry V. Levin.
17803 (relunit_snumber): New rule.
17806 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
17808 * lib/getdate.y (universal_time_zone_table): New constant.
17809 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
17810 universal_time_zone_table.
17811 (lookup_zone): Prefer universal_time_zone_table to
17812 local_time_zone_table, so that "GMT" time stamps are allowed in
17813 London during the summer. Problem reported by Ian Abbott.
17815 2005-04-12 Jim Meyering <jim@meyering.net>
17817 * lib/human.c (humblock): Set *options even when returning due to
17818 xstrtoumax conversion failure. Thanks to a used-uninitialized
17819 warning from gcc-4.
17821 2005-04-09 Jim Meyering <jim@meyering.net>
17823 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
17824 -Wuninitialized: initialize tm0.tm_year.
17826 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
17828 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
17829 count, since there's no maximum. All uses changed.
17830 Add member dsts_seen.
17831 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
17833 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
17834 Use pc_rels_seen to decide whther a date is absolute.
17836 * lib/getdate.y (number): Don't overwrite year.
17837 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
17840 2005-04-02 Simon Josefsson <jas@extundo.com>
17842 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
17843 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
17845 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
17847 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
17848 where no absolute path name can be longer than PATH_MAX.
17850 2005-03-27 Jim Meyering <jim@meyering.net>
17852 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
17854 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
17856 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
17857 "one's complement" -> "ones' complement" in comment, as per Knuth.
17858 "value of type" -> "type or expression" in comment.
17859 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
17861 2005-03-26 Jim Meyering <jim@meyering.net>
17864 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
17865 Correct typos: s/or/of/.
17867 2005-03-26 Jim Meyering <jim@meyering.net>
17869 * modules/check-include-files: Move to ../ and rename to...
17870 * check-module: ...this.
17872 2005-03-25 Jim Meyering <jim@meyering.net>
17874 * modules/xvasprintf (Files): Add xalloc.h.
17876 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
17878 * modules/gettext (Files): config/config.rpath ->
17879 build-aux/config.rpath
17880 * modules/iconv (Files): Likewise.
17881 Problem reported by Oskar Liljeblad.
17883 2005-03-23 Jim Meyering <jim@meyering.net>
17885 * modules/check-include-files: New script to check for
17886 missing dependencies, multiple includes, etc.
17888 * modules/c-strtold (Depends-on): Add xalloc.
17889 * modules/c-strtod (Depends-on): Add xalloc.
17890 * modules/hash (Depends-on): Add xalloc.
17891 (Files): Remove lib/xalloc.h.
17893 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
17894 * modules/userspec (Files): Add lib/inttostr.h.
17896 2005-03-23 Jim Meyering <jim@meyering.net>
17898 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
17900 2005-03-22 Jim Meyering <jim@meyering.net>
17902 * modules/stat-macros: New module.
17903 * modules/canonicalize, modules/euidaccess, modules/file-type,
17904 * modules/filemode, modules/lchown, modules/makepath,
17905 * modules/rmdir, modules/stat: Depend on new stat-macros module
17906 rather than listing lib/stat-macros.h manually.
17907 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
17909 2005-03-22 Jim Meyering <jim@meyering.net>
17911 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
17913 2005-03-22 Bruno Haible <bruno@clisp.org>
17915 * config/srclist.txt: Replace target directory 'config' with
17917 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
17918 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
17921 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
17923 * modules/chdir-long (Depends-on): Add mempcpy.
17925 * modules/acl, modules/backupfile, modules/c-strtod,
17926 modules/c-strtold, modules/canon-host, modules/canonicalize,
17927 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
17928 modules/exclude, modules/exitfail, modules/file-type,
17929 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
17930 modules/getdate, modules/getline, modules/getpagesize,
17931 modules/getpass, modules/getugroups, modules/group-member,
17932 modules/hard-locale, modules/hash, modules/human, modules/idcache,
17933 modules/inttostr, modules/long-options, modules/makepath,
17934 modules/md5, modules/memcasecmp, modules/memcoll,
17935 modules/modechange, modules/mountlist, modules/path-concat,
17936 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
17937 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
17938 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
17939 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
17940 modules/strftime, modules/strndup, modules/strverscmp,
17941 modules/timespec, modules/unlocked-io, modules/userspec,
17942 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
17944 Remove lib_SOURCES line from Makefile.am section, as this is now
17945 done automatically by the corresponding Autoconf macro.
17947 2005-03-21 Jim Meyering <jim@meyering.net>
17949 Changes imported from coreutils.
17951 * lib/cycle-check.c: Don't include xalloc.h.
17953 * lib/path-concat.c: Don't include assert.h.
17954 (path_concat): Remove assertion that would have triggered
17955 for ABASE starting with more than one slash.
17956 Reported by Andreas Schwab.
17958 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
17959 properly when ABASE is an absolute file name.
17960 Correct the description of this function.
17961 Include <assert.h>.
17962 Add an assertion and a test driver.
17963 This fixes a bug introduced on 2004-07-02.
17964 Andreas Schwab reported the resulting failure of cp --parents:
17965 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
17967 2005-03-21 Jim Meyering <jim@meyering.net>
17969 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
17970 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
17972 2005-03-21 Jim Meyering <jim@meyering.net>
17973 and Paul Eggert <eggert@cs.ucla.edu>
17975 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
17976 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
17977 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
17978 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
17979 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
17980 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
17981 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
17982 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
17983 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
17984 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
17985 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
17986 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
17987 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
17988 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
17989 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
17990 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
17991 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
17994 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
17996 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
17997 (which shouldn't happen), generate nothing instead of returning 0
17998 immediately, so that nstrftime (NULL, ...) doesn't return 0.
18000 2005-03-16 Bruno Haible <bruno@clisp.org>
18002 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
18003 HAVE_LONGLONG_64BIT.
18005 2005-03-16 Bruno Haible <bruno@clisp.org>
18007 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
18008 HAVE_LONGLONG_64BIT.
18010 2005-03-16 Bruno Haible <bruno@clisp.org>
18012 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
18013 HAVE_LONGLONG_64BIT.
18015 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
18017 * lib/strftime.c (my_strftime): Prepend space to format so that we can
18018 reliably distinguish strftime failure from empty output on POSIX
18021 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
18023 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
18024 (iconv_string): Don't guess a size-zero buffer, as that might cause
18025 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
18026 result would be 'too large', where 'too large' is (heuristically)
18027 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
18028 overflow concerns. This will prevent some unwanted malloc failures
18029 when the inputs are very large.
18031 2005-03-15 Karl Berry <karl@gnu.org>
18033 * config/srclist.txt (config.rpath): from gettext.
18034 * config/config.rpath: update.
18036 2005-03-15 Bruno Haible <bruno@clisp.org>
18038 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
18041 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
18044 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
18047 2005-03-14 Simon Josefsson <jas@extundo.com>
18049 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
18052 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
18054 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
18055 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
18057 * lib/strtol.c: Likewise.
18059 2005-03-14 Jim Meyering <jim@meyering.net>
18061 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
18062 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
18063 to be nonzero so that we (and caller) can detect the difference
18064 between a valid zero-length expansion and an error return, even
18065 when the underlying strftime fails before writing anything into
18068 2005-03-14 Bruno Haible <bruno@clisp.org>
18070 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
18071 Update from GNU gettext 0.14.3.
18073 2005-03-10 Jim Meyering <jim@meyering.net>
18075 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
18077 2005-03-10 Jim Meyering <jim@meyering.net>
18079 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
18080 so that this module works on systems without fchdir.
18082 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
18084 Factor int-properties macros into a single file, except for
18085 glibc-related files.
18086 * lib/intprops.h: New file.
18087 * lib/getloadavg.c: Include it instead of limits.h.
18088 (INT_STRLEN_BOUND): Remove.
18089 * lib/human.c: Include intprops.h.
18090 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
18091 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
18093 * lib/inttostr.h: Include intprops.h instead of limits.h.
18094 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
18095 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
18096 for consistency with intprops.h.
18097 (time_t_is_integer, twos_complement_arithmetic): Use them.
18098 * lib/sig2str.h: Include <signal.h>, intprops.h.
18099 (INT_STRLEN_BOUND): Remove.
18100 * lib/strftime.c (TYPE_SIGNED): Remove.
18101 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
18102 * lib/strtol.c: Adjust comments to match intprops.h.
18103 * lib/userspec.c: Include intprops.h.
18104 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
18105 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
18106 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
18107 instead of rolling our own expressions.
18108 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
18110 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
18112 (my_strftime): Do not mishandle years close to INT_MAX, by doing
18113 the right thing even if adding 1900 would overflow. Similarly
18114 for tm_mon + 1 and tm_yday + 1.
18115 Make %Y always equivalent to %C%y, and similarly for %G and %g.
18116 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
18117 (DO_SIGNED_NUMBER): New macro.
18118 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
18120 2005-03-07 Bruno Haible <bruno@clisp.org>
18122 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
18124 2005-03-07 Bruno Haible <bruno@clisp.org>
18126 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
18128 2005-03-04 Derek R. Price <derek@ximbiot.com>
18130 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
18131 (func_import): Only replace files via --import when they have actually
18134 2005-03-03 Derek R. Price <derek@ximbiot.com>
18136 * m4/mmap-anon.m4: New file.
18137 * m4/pagealign_alloc.m4: New file.
18139 2005-03-03 Derek R. Price <derek@ximbiot.com>
18140 Bruno Haible <bruno@clisp.org>
18142 * modules/pagealign_alloc: New file.
18143 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
18145 2005-03-03 Derek R. Price <derek@ximbiot.com>
18146 Bruno Haible <bruno@clisp.org>
18148 * lib/pagealign_alloc.h: New file.
18149 * lib/pagealign_alloc.c: New file.
18151 2005-03-03 Bruno Haible <bruno@clisp.org>
18153 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
18154 Use an all-permissive copyright notice, recommended by RMS.
18156 2005-03-02 Bruno Haible <bruno@clisp.org>
18158 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
18159 of AIX, the replacement has to be done only after <string.h> is
18160 included, therefore not in config.h. stpncpy.h does the replacement,
18161 and stpncpy.c uses it.
18163 2005-03-02 Bruno Haible <bruno@clisp.org>
18165 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
18168 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
18170 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
18171 The workaround isn't strictly needed for POSIX conformance, and
18172 it's too much of a pain to configure and maintain. We'll ask
18173 people to fix their kernels instead.
18174 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
18175 (NANOSLEEP_BUG_WORKAROUND): Remove.
18176 (xnanosleep): Remove the workaround.
18178 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
18180 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
18181 Reported by Derek Price.
18182 (Include): Add "timespec.h".
18184 * modules/xnanosleep (Depends-on): Remove gethrxtime.
18186 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
18188 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
18189 to detect nanosleep bug.
18191 2005-03-01 Bruno Haible <bruno@clisp.org>
18193 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
18195 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
18197 * modules/gethrxtime: New file.
18198 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
18199 (Depends-on): Add gethrxtime.
18200 (configure.ac): Add gl_XNANOSLEEP.
18201 (Makefile.am): Remove lib_SOURCES line.
18203 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
18205 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
18206 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
18208 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
18210 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
18211 * lib/timespec.h (gettime): Return void, since it always
18212 succeeds now. All uses changed.
18213 * lib/gettime.c (gettime) Likewise.
18214 [HAVE_NANOTIME]: Prefer nanotime.
18215 Assume gettimeofday succeeds, as POSIX requires.
18216 Assime time () succeeds, since other code already does.
18217 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
18218 (timespec_subtract): Remove.
18219 (NANOSLEEP_BUG_WORKAROUND): New constant.
18220 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
18221 things considerably. Use it only on GNU/Linux hosts, since the
18222 workaround shouldn't be needed elsewhere.
18224 2005-02-24 Bruno Haible <bruno@clisp.org>
18226 * modules/gettext (Files): Add m4/glibc2.m4.
18228 2005-02-24 Bruno Haible <bruno@clisp.org>
18230 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
18231 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
18233 Update from GNU gettext 0.14.2.
18234 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
18236 2005-02-24 Bruno Haible <bruno@clisp.org>
18238 * lib/localcharset.c: Update from GNU gettext 0.14.2.
18239 * lib/config.charset: Update from GNU gettext 0.14.2.
18241 2005-02-24 Bruno Haible <bruno@clisp.org>
18243 * lib/gettext.h: Update from GNU gettext 0.14.2.
18245 2005-02-23 Simon Josefsson <jas@extundo.com>
18247 * m4/iconvme.m4: New file.
18249 2005-02-23 Jim Meyering <jim@meyering.net>
18251 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
18253 Thanks to Bruno Haible for catching it.
18255 2005-02-22 Simon Josefsson <jas@extundo.com>
18257 * modules/iconvme: New file.
18259 * MODULES.html.sh: Add iconvme.
18261 2005-02-22 Simon Josefsson <jas@extundo.com>
18263 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
18265 2005-02-22 Simon Josefsson <jas@extundo.com>
18267 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
18269 2005-02-22 Jim Meyering <jim@meyering.net>
18271 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
18274 2005-02-20 Neil Conway <neilc@samurai.com>
18276 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
18277 returned by OSX/Darwin if the specified buffer is not large
18278 enough for the hostname.
18280 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18282 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
18283 pass it to _help, otherwise the latter coredumps trying to
18284 dereference state.root_argp.
18286 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
18288 * modules/chdir-long (Depends-on): Add memrchr.
18289 * modules/memrchr (Files): Add lib/memrchr.h.
18290 (Include): "memrchr.h".
18292 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
18294 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
18296 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
18298 * lib/memrchr.h: New file.
18299 * lib/chdir-long.c: Include it.
18300 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
18301 Don't bother including stddef.h.
18303 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
18305 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
18307 Include <sys/types.h>, for dev_t.
18308 (ME_DUMMY, ME_REMOTE): Move from here....
18309 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
18310 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
18312 Include mountlist.h first, to test the interface.
18314 2005-01-29 Bruno Haible <bruno@clisp.org>
18316 * lib/progname.c (program_name): Initialize.
18317 Needed when linking statically on MacOS X.
18319 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
18321 Sync from coreutils.
18322 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
18323 (Depends-on): Add c-strtod.
18324 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
18326 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
18328 Sync from coreutils.
18329 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
18331 Remove files that are specific to coreutils.
18332 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
18334 2005-01-28 Bruno Haible <bruno@clisp.org>
18336 * modules/javacomp: New file.
18337 * MODULES.html.sh (Java): Add javacomp.
18339 2005-01-28 Bruno Haible <bruno@clisp.org>
18341 * m4/javacomp.m4: New file, from GNU gettext.
18343 2005-01-28 Bruno Haible <bruno@clisp.org>
18345 * lib/javacomp.sh.in: New file, from GNU gettext.
18346 * lib/javacomp.h: New file, from GNU gettext.
18347 * lib/javacomp.c: New file, from GNU gettext.
18349 2005-01-26 Simon Josefsson <jas@extundo.com>
18351 * lib/gai_strerror.c: Use GPL in header.
18353 2005-01-26 Bruno Haible <bruno@clisp.org>
18355 * modules/javaexec: New file.
18356 * MODULES.html.sh (Java): Add javaexec.
18358 2005-01-26 Bruno Haible <bruno@clisp.org>
18360 * m4/javaexec.m4: New file, from GNU gettext.
18362 2005-01-26 Bruno Haible <bruno@clisp.org>
18364 * lib/javaexec.sh.in: New file, from GNU gettext.
18365 * lib/javaexec.h: New file, from GNU gettext.
18366 * lib/javaexec.c: New file, from GNU gettext.
18368 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18370 * modules/lchown (Depends-on): Remove lchown.h
18372 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18374 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
18375 must be defined if the header file was not found, in order
18376 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
18378 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18380 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
18381 initializers for struct pentry_state.
18382 (__argp_error): Check return value of __asprintf
18383 (__argp_failure): Translate error message
18385 * lib/argp-parse.c: Removed braces around the expansion of N_()
18387 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
18389 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
18390 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
18391 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
18392 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
18393 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
18394 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
18395 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
18396 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
18397 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
18398 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
18399 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
18400 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
18401 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
18402 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
18403 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
18404 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
18405 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
18406 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
18407 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
18408 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
18409 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
18410 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
18411 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
18412 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
18413 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
18414 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
18415 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
18416 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
18417 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
18418 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
18419 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
18420 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
18421 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
18422 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
18423 xstrtol.m4, xstrtoumax.m4, yesno.m4:
18424 Use an all-permissive copyright notice, recommended by RMS.
18426 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
18428 * modules/chdir-long (Depends-on): Remove mempcpy.
18430 2005-01-21 Jim Meyering <jim@meyering.net>
18432 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
18433 same value as for Solaris 9.
18435 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
18436 component length. This included changing the parameter to be
18437 of type `char *' rather than `char const *'.
18438 * lib/chdir-long.h (chdir_long): Update prototype.
18440 * lib/openat.c (fdopendir, fstatat): New functions.
18441 * lib/openat.h: Include headers required for use of DIR and struct
18443 [AT_SYMLINK_NOFOLLOW]: Define.
18444 (fdopendir, fstatat): Add prototypes.
18446 2005-01-21 Bruno Haible <bruno@clisp.org>
18448 * modules/classpath: New file.
18449 * MODULES.html.sh (Java): Add classpath.
18451 2005-01-21 Bruno Haible <bruno@clisp.org>
18453 * lib/classpath.h: New file, from GNU gettext.
18454 * lib/classpath.c: New file, from GNU gettext.
18456 2005-01-20 Simon Josefsson <jas@extundo.com>
18458 * modules/version-etc-fsf: New file.
18460 2005-01-20 Simon Josefsson <jas@extundo.com>
18462 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
18463 * lib/version-etc.c: Remove version_etc_copyright.
18464 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
18465 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
18467 2005-01-20 Simon Josefsson <jas@extundo.com>
18469 * lib/base64.h (isbase64): Add.
18471 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
18472 using a unsigned prototype, don't inline.
18473 (base64_decode): Use it.
18475 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
18477 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
18480 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
18482 * lib/save-cwd.c (save_cwd): Remove code to support the case
18483 where fchdir is missing or flaky.
18485 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
18487 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
18489 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
18491 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
18492 AC_LIBSOURCES now does this.
18493 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
18494 with new ullong_max module.
18496 2005-01-19 Bruno Haible <bruno@clisp.org>
18498 * modules/sh-quote: New file.
18499 * MODULES.html.sh (Executing programs): Add sh-quote.
18501 2005-01-19 Bruno Haible <bruno@clisp.org>
18503 * lib/sh-quote.h: New file, from GNU gettext.
18504 * lib/sh-quote.c: New file, from GNU gettext.
18506 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
18508 Merge from coreutils.
18509 * m4/ullong_max.m4: New file.
18510 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
18511 (gl_MACROS): Assume localeconv exists.
18513 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
18515 Merge changes from coreutils, as described below in several
18516 changelogs dated today.
18518 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
18519 (O_DIRECTORY): Remove; not needed here, since "." must be
18520 a directory. All uses removed.
18521 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
18522 universal on Suns, and we also need to test for IRIX.
18523 Revamp code to use 'if' rather than '#if'.
18524 Avoid unnecessary comparison of cwd->desc to 0.
18526 * lib/utimens.c (futimens): Robustify the previous patch, by checking
18527 for known valid error numbers rather than observed invalid ones.
18529 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
18531 * modules/ullong_max: New file.
18533 * modules/chdir-long, modules/openat: New files.
18534 * modules/save-cwd (Depends-on): Depend on chdir-long.
18535 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
18537 2005-01-18 Jim Meyering <jim@meyering.net>
18539 Merge from coreutils.
18540 * m4/chdir-long.m4, m4/openat.m4: New files.
18541 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
18542 save-cwd.h. Add AC_LIBOBJ for save-cwd.
18543 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
18544 is sane and DOES follow symlinks. Besides, testing 20 different
18545 systems found no broken chown implementations.
18546 Prompted by a change in rsync's copy of this macro.
18547 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
18549 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
18551 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
18552 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
18553 NULL-means-set-to-current-time semantics.
18554 Remove temporary file immediately, rather than waiting
18555 for configure's at-exit trap code to do it.
18557 2005-01-18 Jim Meyering <jim@meyering.net>
18559 * lib/version-etc.c (version_etc_copyright): Update copyright date.
18561 * lib/utimens.c (futimens): Account for the fact that futimes
18562 can also fail with errno == ENOSYS or errno == ENOENT.
18563 Patch from Dmitry V. Levin.
18565 Change the name of the robust chdir function from chdir to chdir_long.
18566 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
18567 (restore_cwd): Use chdir_long, not chdir.
18568 * lib/chdir-long.c: Renamed from chdir.c.
18569 * lib/chdir-long.h: Renamed from chdir.h.
18570 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
18573 2005-01-18 Bruno Haible <bruno@clisp.org>
18575 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
18576 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
18577 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
18578 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
18579 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
18580 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
18581 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
18582 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
18583 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
18584 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
18585 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
18586 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
18587 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
18588 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
18589 Use an all-permissive copyright notice, recommended by RMS.
18591 2005-01-18 Bob Proulx <bob@proulx.com>
18593 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
18594 simplify offsetof() macro construct to avoid compile failure with
18595 native HP-UX 11.0 ANSI C compiler.
18597 2005-01-17 Bruno Haible <bruno@clisp.org>
18599 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
18600 redundant because stpncpy.m4 takes care of it.
18602 2005-01-17 Bruno Haible <bruno@clisp.org>
18604 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
18606 2005-01-17 Bruno Haible <bruno@clisp.org>
18608 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
18611 2005-01-17 Bruno Haible <bruno@clisp.org>
18613 * lib/fwriteerror.h (fwriteerror): Change specification to include
18615 * lib/fwriteerror.c: Include <stdbool.h>.
18616 (fwriteerror): At the end, close the file stream. Record whether
18617 stdout was already closed.
18619 2005-01-17 Bruno Haible <bruno@clisp.org>
18621 * lib/execute.c (environ): Declare if needed.
18622 * lib/pipe.c (environ): Likewise.
18623 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
18625 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18627 * modules/argp: Depend on vsnprintf
18629 2005-01-10 Jim Meyering <jim@meyering.net>
18631 * modules/closeout (Depends-on): Add atexit.
18633 2005-01-06 Bruno Haible <bruno@clisp.org>
18635 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
18637 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
18639 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
18640 definitions to be after all include files, to avoid collisions.
18641 Problem reported by Bob Proulx.
18643 2005-01-04 Jim Meyering <jim@meyering.net>
18645 Changes imported from coreutils.
18646 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
18647 as the mkstemp template, use a temporary directory and an
18648 8.3-friendly template to avoid trouble on systems like DJGPP.
18649 Reported by Juan M. Guerrero via Stepan Kasal.
18650 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
18651 close. Remove the temporary directory right away, rather than waiting
18652 for configure's at-exit trap code to do it.
18653 Suggestion from Stepan Kasal.
18655 2005-01-01 Simon Josefsson <jas@extundo.com>
18657 * gnulib-tool: Print #include directives when --import'ing.
18659 2004-12-28 Simon Josefsson <jas@extundo.com>
18661 * tests/test-base64.c: Include required header files. Remove
18664 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
18666 * modules/error (Depends-on): Remove gettext.
18668 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
18670 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
18671 not needed. This removes a dependency on the gettext module.
18672 [defined _LIBC]: Do not include <libintl.h>; not needed.
18674 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
18676 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
18677 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
18679 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
18681 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
18684 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
18686 * modules/getdate (Depends-on): Remove alloca-opt.
18688 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
18690 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
18692 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
18694 * lib/argp-parse.c: Include <stddef.h>.
18695 (alignof, alignto): New macros.
18696 (parser_init): Don't assume that void * is aligned sufficiently
18699 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
18700 need to extend the stack.
18701 (YYINITDEPTH): New macro, so that the initial stack isn't overly
18704 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18706 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
18708 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
18710 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
18711 (2004-10-24) change. Apparently this was a false alarm.
18713 * modules/getdate: Depend on alloca-opt, not alloca.
18715 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
18717 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
18718 Remove now-obsolete comment about AIX.
18719 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
18720 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
18721 (YYMAXDEPTH): New macro.
18723 2004-12-18 Simon Josefsson <jas@extundo.com>
18725 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
18727 2004-12-18 Bruno Haible <bruno@clisp.org>
18729 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
18731 2004-12-18 Bruno Haible <bruno@clisp.org>
18733 * lib/fatal-signal.c (fatal_signals): Make non-const.
18734 (init_fatal_signals): New function.
18735 (uninstall_handlers, install_handlers): Ignore signals that were set to
18737 (at_fatal_signal): Call init_fatal_signals.
18738 (init_fatal_signal_set): Likewise. Ignore signals that were set to
18740 Reported by Paul Eggert.
18742 2004-12-18 Bruno Haible <bruno@clisp.org>
18744 * doc/alloca.texi: New file.
18745 * doc/alloca-opt.texi: New file.
18747 2004-12-17 Jim Meyering <jim@meyering.net>
18749 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
18750 Otherwise, install-sh could exit with improper exit status when
18751 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
18753 2004-12-16 Simon Josefsson <jas@extundo.com>
18755 * tests/test-base64.c: Add license.
18757 2004-12-15 Stepan Kasal <address@hidden>
18759 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
18761 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
18763 * modules/getcwd (Files): Add m4/d-ino.m4.
18764 Suggested by Mark D. Baushke.
18766 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
18768 * lib/getdate.y (textint): New member "negative".
18769 (time_zone_hhmm): New function.
18770 Expect 14 shift-reduce conflicts, not 13.
18771 (o_colon_minutes): New rule.
18772 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
18773 (yylex): Set the "negative" member of signed numbers.
18775 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
18777 * doc/getdate.texi (Time of day items, Time zone items):
18778 Describe new formats +00:00, UTC+00:00.
18780 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
18782 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
18783 spurious "-l"s. Problem reported by Stepan Kasal.
18785 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
18787 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
18788 in Autoconf 2.59. Problem reported by Mark D. Baushke.
18790 2004-12-04 Simon Josefsson <jas@extundo.com>
18792 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
18793 Vandoorselaere <yoann@prelude-ids.org>.
18795 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
18797 Changes imported from coreutils.
18798 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
18800 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
18802 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
18804 Changes imported from coreutils.
18805 * lib/hard-locale.c: Assume <locale.h> exists.
18806 Include "strdup.h".
18807 (GLIBC_VERSION): New macro.
18808 (hard_locale): Assume setlocale exists.
18809 Rewrite to avoid #ifdef.
18810 Use strdup rather than malloc + strcpy.
18811 * lib/human.c: Assume <locale.h> exists.
18812 (human_readable): Assume localeconv exists.
18814 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
18816 * modules/hard-locale (Depends-on): Add strdup.
18818 2004-12-01 Jakub Jelinek <jakub@redhat.com>
18820 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
18821 convert T2, not T. (Imported from libc.)
18823 2004-11-30 Simon Josefsson <jas@extundo.com>
18825 * modules/restrict (License): Change to LGPL.
18827 2004-11-30 Simon Josefsson <jas@extundo.com>
18829 * m4/restrict.m4: Add copyright and copying conditions.
18831 2004-11-30 Simon Josefsson <jas@extundo.com>
18833 * m4/base64.m4: New file.
18835 2004-11-30 Simon Josefsson <jas@extundo.com>
18837 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
18840 * tests/test-base64.c: New file.
18842 * modules/base64: New file.
18844 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
18846 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
18847 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
18849 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
18851 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
18853 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
18854 (__getcwd.c): Don't restore errno; glibc doesn't.
18855 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
18856 first, falling back to our code only if its results look suspicious.
18857 Ensure that the resulting buffer is only as large as necessary.
18859 * lib/readutmp.c: Include readutmp.h first.
18860 Include <errno.h>, since readutmp.h no longer does that.
18861 * lib/readutmp.h: Don't include <errno.h>,
18862 <sys/param.h>, <time.h>; not needed to establish interface.
18863 (errno): Remove decl.
18864 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
18865 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
18866 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
18868 2004-11-28 Simon Josefsson <jas@extundo.com>
18870 * lib/base64.h, base64.c: New file.
18872 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
18874 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
18876 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
18878 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
18879 (Depends-on): Remove pathmax, same. Add mempcpy.
18880 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
18881 (Makefile.am): Append getcwd.h to lib_SOURCES.
18882 (Include): Add getcwd.h.
18883 (Maintainer): Change from Jim Meyering to "all, glibc",
18884 since getdate now uses intended-for-glibc code.
18885 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
18886 (Depends-on): Depend on getcwd. Do not depend on pathmax.
18888 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
18890 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
18891 HP's ANSI C compiler.
18892 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
18893 Declaring int functions causes warnings on some modern systems and
18894 shouldn't be needed to compile on ancient ones.
18895 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
18898 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
18899 with the following changes.
18900 (__set_errno): Parenthesize properly.
18901 Include <stdbool.h>.
18902 (MIN, MAX, MATCHING_INO): New macros.
18903 (__getcwd): Define with prototype, not K&R form.
18904 Use heuristics to allocate default buffer on stack if possible.
18905 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
18906 behavior, and to avoid the PATH_MAX limit when computing
18908 Use MATCHING_INO to compare inode number to file.
18909 Check for arithmetic overflow in size calculations.
18910 Fix bug in reallocation of dot array that caused getcwd to fail
18911 on directories nested deeper than 75.
18912 Be more careful about saving errno on error.
18913 Do not use realloc; use only free+malloc, as this is a bit
18914 more flexible and avoids a needless copy operation.
18915 Do not inspect st_dev and st_ino for symbolic links; POSIX
18916 doesn't specify the latter.
18917 Check for closedir errors.
18918 Avoid needless casts.
18919 Use "#ifdef weak_alias" around weak_alias, to be like other
18921 The following changes to getcwd.c have effect only when used in
18922 gnulib; they have no effect inside glibc proper.
18923 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
18924 as alloca isn't used.
18925 (alloca, __alloca): Likewise.
18926 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
18927 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18928 unconditionally, as gnulib assumes C89 or better.
18929 Do not include <sys/param.h>.
18930 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
18931 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
18933 (NULL) [!defined NULL]: Remove; we assume C89 or better.
18934 Include <dirent.h> in a way that is compatible with modern Autoconf.
18935 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
18936 New macros, if not already defined.
18937 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
18938 Use "_LIBC", not "defined _LIBC", for consistency.
18939 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
18941 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
18942 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
18943 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
18944 credit only to Jim Meyering and adjust the copyright dates.
18945 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
18946 <stdlib.h>, <unistd.h>, "pathmax.h".
18947 Instead, include "xgetcwd.h" (first) and "getcwd.h".
18948 (INITIAL_BUFFER_SIZE): Remove.
18949 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
18951 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
18953 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
18954 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
18955 Use the _ONCE methods, for efficiency.
18956 Check for fcntl.h. In test program, include <errno.h>
18957 and <fcntl.h> if available. Remove old K&R cruft from
18958 test program. Check for common errors in GNU/Linux,
18959 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
18960 don't do AC_LIBOBJ, as that's getcwd.m4's job.
18961 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
18962 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
18964 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
18965 accommodate new getcwd.c.
18966 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
18967 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
18968 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
18969 that's all we need now.
18971 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18973 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
18974 argp-parse.c depends on getopt internals, that means we should
18975 always use our getopt, to be on the safe side.
18976 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
18977 order not to spoil the result of an eventual previous invocation
18978 of gl_GETOPT_SUBSTITUTE.
18980 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
18982 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
18983 redefinition warnings. To avoid them, include the defines
18984 in `#if !defined __need_getopt ... #endif'. The only place
18985 where __getopt_argv_const is used is in definitions
18986 of getopt_long and getopt_long_only below, which are as well
18987 protected by `#ifndef __need_getopt'.
18988 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
18989 __need_getopt after including <stdio.h> and <unistd.h> These
18990 headers might have defined it.
18992 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
18994 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
18996 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
18998 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
18999 (futimens): New function, which uses futimes if available.
19000 (futimens, utimens): Support timespec==NULL, with same semantics
19001 as utime and utimens.
19002 * lib/utimens.h (futimens): New decl.
19004 2004-11-23 Jim Meyering <jim@meyering.net>
19006 * lib/getopt_.h: Remove trailing blanks.
19008 2004-11-23 Jim Meyering <jim@meyering.net>
19010 * lib/__fpending.c: Add comment.
19012 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
19014 * modules/canonicalize (Depends-on): Add xreadlink.
19015 Problem reported by James Youngman.
19017 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
19019 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
19021 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
19022 optopt): Use them instead of invoking ## directly; otherwise, the
19023 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
19025 2004-11-19 Bruno Haible <bruno@clisp.org>
19027 * lib/strtok_r.c: Move comments from here...
19028 * lib/strtok_r.h: ... to here.
19030 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
19032 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
19033 implementations that mishandle size_t overflow.
19035 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
19037 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
19038 might fail. Problem reported by Yoann Vandoorselaere.
19039 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
19040 implementations that mishandle size_t overflow.
19042 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
19044 * modules/canon-host (Depends-on): Add strdup.
19046 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
19048 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
19050 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
19052 * lib/canon-host.c: Include "strdup.h".
19053 (canon_host): Use getaddrinfo if available, so that IPv6 works.
19054 Use strdup instead of malloc/strcpy to duplicate strings.
19056 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
19057 (human_space_before_unit): New constant.
19058 * lib/human.c (human_readable): Support it.
19060 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
19061 (xgetcwd): Set errno correctly when failing.
19062 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
19063 the failure is actually due to a PATH_MAX problem.
19065 Further getopt changes to make it more likely that glibc will
19066 buy the changes back.
19067 * lib/getopt.c (POSIXLY_CORRECT): New constant.
19068 (getopt): Use it, so to preserve glibc semantic
19069 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
19070 when compiling for libc.
19071 * lib/getopt_.h (__getopt_argv_const): Bring it back.
19072 (getopt_long, getopt_long_only): Use it.
19074 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
19075 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
19076 (getopt): Argv is now char * const *, as per standard.
19077 (_getopt_internal_r, _getopt_internal): Argv is now char **,
19078 not char *__getopt_argv_const *.
19079 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
19080 _getopt_long_only_r): Likewise.
19081 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
19082 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
19083 _getopt_long_r, _getopt_long_only_r): Likewise.
19084 * lib/getopt_.h (__getopt_argv_const): Remove.
19085 (getopt): Argv is now char * const *, as per standard.
19087 * lib/getdate.y (tORDINAL): New token.
19088 (day, relunit): Allow it for relative times.
19089 (relative_time_table): Use tORDINAL for ordinals.
19091 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
19093 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
19094 Document that "second" isn't allowed as an ordinal number.
19096 2004-11-16 Jim Meyering <jim@meyering.net>
19098 * modules/closeout (Depends-on): Add fpending.
19100 2004-11-15 Jim Meyering <jim@meyering.net>
19102 * lib/closeout.c: Include "__fpending.h" once again.
19103 Include <stdbool.h>.
19104 (close_stdout): Don't fail just because stdout was closed initially,
19105 since some programs don't write to stdout in the normal course of
19106 operation (other than --version and --help), and we don't want this
19107 function to make e.g. `touch file >&-' fail.
19108 But do fail if it was closed and someone has tried to write to it.
19109 E.g., `printf foo >&-' must fail.
19111 2004-11-13 Jim Meyering <jim@meyering.net>
19113 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
19115 2004-11-12 Simon Josefsson <jas@extundo.com>
19117 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
19118 small doc fix is still pending.
19120 2004-11-11 Simon Josefsson <jas@extundo.com>
19122 * modules/strtok_r: New file.
19124 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19127 2004-11-11 Simon Josefsson <jas@extundo.com>
19129 * m4/strtok_r.m4: New file.
19131 * m4/getopt.m4: Replace opterr.
19133 2004-11-11 Simon Josefsson <jas@extundo.com>
19135 * lib/strtok_r.h, strtok_r.c: New file.
19137 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
19139 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
19140 of replacing opterr, getopt, etc. This should handle the
19141 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
19143 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
19145 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
19146 we can stop lying to compilers about the constness of argv when we
19147 are compiled outside glibc.
19148 (getopt, getopt_long, getopt_long_only): Use it.
19149 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
19150 _getopt_internal, getopt): Likewise.
19151 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
19152 _getopt_long_only_r): Likewise.
19153 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
19154 _getopt_long_r, _getopt_long_only_r): Likewise.
19156 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
19157 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
19158 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
19159 the other external symbols.
19160 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
19161 declaration, since the above renaming now works around collisions.
19163 2004-11-11 Jim Meyering <jim@meyering.net>
19165 * lib/linebreak.c: Remove trailing blanks.
19166 * lib/alloca_.h: Likewise.
19167 * lib/acosl.c: Likewise.
19168 * lib/euidaccess.c: Likewise.
19169 * lib/allocsa.h: Likewise.
19171 2004-11-10 Simon Josefsson <jas@extundo.com>
19173 * m4/getaddrinfo.m4: New file.
19175 2004-11-10 Simon Josefsson <jas@extundo.com>
19177 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
19179 2004-11-10 Simon Josefsson <jas@extundo.com>
19181 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19184 * modules/getaddrinfo: New file.
19186 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
19188 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
19190 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
19192 * lib/mktime.c (SHR): New macro, which is a portable
19193 substitute for >> that should work even on Crays.
19194 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
19195 Problem reported by Mark D. Baushke in
19196 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
19197 * lib/getdate.y (SHR): Likewise.
19199 * lib/strftime.c (SHR): Likewise.
19201 * lib/quotearg.c (struct quoting_options): Use unsigned int for
19202 quote_these_too, so that right shifts are well defined. All uses
19205 2004-11-10 Jim Meyering <jim@meyering.net>
19207 Ensure that no close failure goes unreported.
19208 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
19209 return early when it seems there's nothing to flush.
19210 Don't include __fpending.h.
19212 2004-11-10 Jim Meyering <jim@meyering.net>
19214 * modules/closeout (Depends-on): Remove fpending.
19216 2004-11-10 Jim Meyering <jim@meyering.net>
19218 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
19220 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
19222 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
19224 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
19225 and AC_REQUIRE when possible, to avoid duplicate checks.
19226 Check for <wchar.h>.
19228 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
19230 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
19232 2004-11-09 Bruno Haible <bruno@clisp.org>
19234 * m4/sockpfaf.m4: New file.
19236 2004-11-05 Bruno Haible <bruno@clisp.org>
19238 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
19239 Reported by Mark D. Baushke <mdb@cvshome.org>.
19241 2004-11-04 Bruno Haible <bruno@clisp.org>
19243 2004-09-11 Bruno Haible <bruno@clisp.org>
19244 * allocsa.valgrind: New file.
19245 2004-02-06 Bruno Haible <bruno@clisp.org>
19246 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
19247 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
19248 Reported by Christopher Seip <chris.seip@hp.com>.
19250 2004-11-04 Bruno Haible <bruno@clisp.org>
19252 * modules/allocsa (Files): Add lib/allocsa.valgrind.
19253 (Makefile.am): Distribute it.
19255 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
19257 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
19258 with errno == ERANGE if the buffer is too small.
19259 Problem reported by Mark D. Baushke.
19261 2004-11-03 Albert Chin <china@thewrittenword.com>
19262 Paul Eggert <eggert@cs.ucla.edu>
19264 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
19265 equivalent, substitute $ac_type for equivalent type rather than
19266 blindly using uint32_t *always* which won't work if uint32_t is not
19267 available. Define _UINT32_T to work around typedef of uint32_t if
19268 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
19271 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
19273 * m4/jm-macros.m4: Sync from coreutils.
19274 (gl_MACROS): Check for mbrlen, for pathchk.
19275 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
19277 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
19279 * lib/xreadlink.c (MAXSIZE): New macro.
19280 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
19281 size does not exceed MAXSIZE. Avoid cast.
19282 As suggested by Mark D. Baushke in
19283 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
19284 if readlink fails with buffer size just under MAXSIZE, try again
19287 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
19289 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
19291 2004-11-02 Derek R. Price <derek@ximbiot.com>
19292 and Paul Eggert <eggert@cs.ucla.edu>
19294 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
19295 (get_date): Overparenthesize to avoid GCC warning.
19297 2004-11-02 Bruno Haible <bruno@clisp.org>
19299 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
19302 2004-11-02 Bruno Haible <bruno@clisp.org>
19304 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
19305 function returns void.
19307 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
19309 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
19310 fflush_unlocked, flockfile, funlockfile, funlockfile,
19311 fputs_unlocked, putc_unlocked.
19313 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
19315 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
19316 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
19319 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
19321 * modules/getdate (Files): Add doc/getdate.texi.
19322 (Depends-on): Add setenv, xalloc.
19324 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
19326 * lib/getdate.y: Add support for TZ="foo" within a date string.
19327 Fix some bugs near time_t boundaries. Reject dates with
19328 out-of-range components, e.g., "Sept 31".
19329 Include <stdlib.h>, "setenv.h", "xalloc.h".
19330 (ISDIGIT_LOCALE): Remove; unused.
19331 Note that the TZ and time functions used here are not reentrant.
19332 (mktime_ok, get_tz): New functions.
19333 (TZBUFSIZE): New constant.
19334 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
19335 This requires that we sometimes generate our own TZ="XXX..." setting.
19337 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
19339 * doc/getdate.texi: New file, from coreutils with modifications for
19340 the new TZ parsing.
19342 2004-10-27 Derek R. Price <derek@ximbiot.com>
19344 * lib/mktime.c (not_equal_tm): Remove redundant check.
19346 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
19348 * modules/regex (lib_SOURCES): Add regex.c.
19349 Reported by James Youngman in
19350 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
19352 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
19354 * lib/getdate.y: Use Bison 1.875 features, and some minor
19355 code cleanups. This change does not affect semantics.
19356 Don't include <stdlib.h>; no longer needed.
19357 Don't include unlocked-io.h; only the "#if TEST" code uses
19358 stdio, and performance isn't crucial there.
19359 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
19360 Bison 1.875 features as described below.
19361 All uses of "PC." replaced by "pc->".
19362 (YYSTYPE): Add a forward declaration.
19363 (yylex, yyerror): Use full prototypes in forward decls.
19364 Use "%pure-parser" rather than obsolescent "%pure_parser".
19365 Use %parse-param and %lex-param instead of obsolescent
19366 YYPARSE_PARAM and YYLEX_PARAM.
19367 (meridian_table, month_and_day_table, time_units_table,
19368 relative_time_table, time_zone_table, military_table,
19369 lookup_zone, lookup_word, get_date):
19370 Use NULL instead of 0 where appropriate.
19371 (to_hour): Avoid abort (), to avoid a dependency on
19373 (yyerror, yylex): Now accepts parser_control * arg.
19374 (main) [TEST]: Use '\0' rather than 0 for char.
19376 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
19378 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
19380 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
19382 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
19383 It's now the caller's responsibility to handle the case where
19384 !HAVE_GETPAGESIZE && !defined getpagesize.
19386 * lib/mktime.c (leapyear): Arg is long int, not int.
19388 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
19390 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
19392 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
19394 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
19395 missing. Problem reported by James Youngman.
19397 2004-10-16 Simon Josefsson <jas@extundo.com>
19399 * gnulib-tool: Fix comments. Fix parse problem.
19400 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
19402 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
19404 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
19405 implementation of getopt_long. Problem reported by Alexander Taler in:
19406 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
19408 2004-10-15 Bruno Haible <bruno@clisp.org>
19410 * gnulib-tool: Untabify. Initialize supplied_libname.
19411 (func_usage): More homogenous output.
19412 (func_modules_transitive_closure, func_modules_to_filelist,
19413 func_emit_lib_Makefile_am): New functions.
19414 (func_import): New function, extracted from big case statement. Use
19415 func_get_license, func_modules_transitive_closure,
19416 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
19417 opt_lgpl. Don't use test -a, as it's not portable.
19418 (func_create_testdir): Use func_modules_transitive_closure,
19419 func_modules_to_filelist, func_emit_lib_Makefile_am.
19421 2004-10-15 Bruno Haible <bruno@clisp.org>
19423 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
19425 2004-10-15 Bruno Haible <bruno@clisp.org>
19427 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
19428 the portions belonging to each module.
19429 Suggested by Derek Robert Price <derek@ximbiot.com>.
19431 2004-10-12 Simon Josefsson <jas@extundo.com>
19433 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
19434 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
19437 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19439 * modules/vsnprintf: New file.
19441 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19443 * m4/vsnprintf.m4: New file.
19445 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19447 * lib/vsnprintf.h: New file.
19448 * lib/vsnprintf.c: New file.
19450 2004-10-11 Bruno Haible <bruno@clisp.org>
19452 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
19455 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
19457 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
19459 2004-10-07 Bruno Haible <bruno@clisp.org>
19461 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
19462 fits into the provided buffer.
19464 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
19466 * lib/diacrit.c, diacrit.h: Add GPL notice.
19468 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
19470 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
19471 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
19472 This avoids a potential constant-folding bug.
19474 2004-10-05 Bruno Haible <bruno@clisp.org>
19476 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
19477 for the declaration of strsep.
19479 2004-10-05 Bruno Haible <bruno@clisp.org>
19481 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
19483 2004-10-04 Simon Josefsson <jas@extundo.com>
19485 * modules/memmem: New file.
19486 * tests/test-memmem.c: New file.
19487 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
19489 2004-10-04 Simon Josefsson <jas@extundo.com>
19491 * m4/memmem.m4: New file.
19493 2004-10-04 Simon Josefsson <jas@extundo.com>
19495 * lib/memmem.h: New file.
19496 * lib/memmem.c: New file, taken from glibc.
19498 2004-10-04 Simon Josefsson <jas@extundo.com>
19500 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
19501 '#ifdef USE_UNLOCKED_IO'.
19503 2004-10-04 Simon Josefsson <jas@extundo.com>
19505 * config/srclist.txt: Add memmem from glibc.
19507 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
19509 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
19511 * modules/argmatch, modules/argp, modules/closeout, modules/error,
19512 modules/exclude, modules/getdate, modules/getline,
19513 modules/getndelim2, modules/getpass, modules/getpass-gnu,
19514 modules/getusershell, modules/linebuffer, modules/md5,
19515 modules/mountlist, modules/posixtm, modules/readtokens,
19516 modules/readutmp, modules/regex, modules/sha1,
19517 modules/version-etc, modules/yesno:
19518 Remove dependency on unlocked-io.
19520 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
19522 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
19524 * m4/unlocked-io.m4: Add copyright notice.
19525 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
19527 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
19529 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
19530 * lib/xmalloc.c (xmemdup): Likewise.
19531 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
19532 XFREE): Remove these long-obsolescent macros.
19533 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
19534 * lib/xstrdup.c: Remove.
19536 * lib/regex.c (re_comp): Cast gettext return value to char *,
19537 Problem reported by Martin Neitzel via Mark D. Baushke.
19539 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
19541 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
19542 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
19543 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
19544 regex.c, sha1.c, version-etc.c, yesno.c:
19545 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
19546 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
19547 the includer's responsibility.
19549 Sync from coreutils.
19551 * lib/modechange.c (mode_compile): Don't decrement a pointer that
19552 points to the start of a string, as the C Standard says the
19553 resulting behavior is undefined.
19555 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
19556 simple -> simple_backups, numbered_existing ->
19557 numbered_existing_backups, numbered -> numbered_backups
19558 to avoid shadowing problems. All uses changed.
19559 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
19560 * lib/backupfile.c (check_extension, numbered_backup):
19561 Rename locals to avoid shadowing 'basename'.
19562 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
19565 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
19566 * lib/.cvsignore: Add getopt.h.
19568 2004-10-04 Bruno Haible <bruno@clisp.org>
19570 * modules/README: New file.
19571 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
19574 2004-10-02 Jim Meyering <jim@meyering.net>
19576 * lib/dirfd.h, getpagesize.h: Add copyright notice.
19578 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
19580 * modules/strsep: New file.
19582 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
19584 * m4/strsep.m4: New file.
19586 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
19588 * lib/strsep.h: New file.
19589 * lib/strsep.c: New file.
19591 2004-10-01 Simon Josefsson <jas@extundo.com>
19593 * lib/snprintf.c (snprintf): Handle size==0.
19595 2004-10-01 Simon Josefsson <jas@extundo.com>
19596 Bruno Haible <bruno@clisp.org>
19598 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
19599 (snprintf): Declare 'args'.
19601 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
19603 * lib/snprintf.c: Remove comments as to why each header is needed.
19605 2004-10-01 Bruno Haible <bruno@clisp.org>
19607 * MODULES.html.sh: Add strsep.
19609 2004-09-30 Simon Josefsson <jas@extundo.com>
19611 * modules/snprintf: New file.
19613 2004-09-30 Simon Josefsson <jas@extundo.com>
19615 * m4/snprintf.m4: New file.
19617 2004-09-30 Simon Josefsson <jas@extundo.com>
19619 * lib/snprintf.h, lib/snprintf.c: New files.
19621 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19623 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
19624 (hol_entry_help): Never translate an empty string.
19625 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
19626 * lib/argp.h (OPTION_NO_TRANS): New option.
19628 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
19630 * modules/argp (Maintainer): Replace Simon Josefsson
19631 by Sergey Poznyakoff.
19633 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
19635 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
19636 changes merged back into glibc.
19638 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
19640 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
19642 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
19644 * lib/xvasprintf.c: Include xalloc.h.
19645 (xvasprintf): Use xalloc_die, not xmalloc_die.
19647 2004-09-29 Bruno Haible <bruno@clisp.org>
19649 * modules/alloca-opt: New file, derived from modules/alloca.
19650 * modules/allocsa: Depend on alloca-opt instead of alloca.
19651 * modules/setenv: Likewise.
19652 * modules/vasnprintf: Likewise.
19653 * MODULES.html.sh: Add alloca-opt.
19655 2004-09-28 Simon Josefsson <jas@extundo.com>
19657 * gnulib-tool: New parameter --lgpl, to asseert that modules are
19658 LGPL, and to replace license template from GPL to LGPL.
19660 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
19662 * modules/dummy: Change license to LGPL.
19664 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
19666 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
19668 2004-09-24 Simon Josefsson <jas@extundo.com>
19670 * modules/minmax (License): Change from GPL to LGPL.
19672 2004-09-23 Simon Josefsson <jas@extundo.com>
19674 * gnulib-tool (--import): Typo.
19676 2004-09-23 Simon Josefsson <jas@extundo.com>
19678 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
19680 2004-09-22 Bruno Haible <bruno@clisp.org>
19682 * modules/*: Add 'License' field.
19683 * gnulib-tool: Accept --extract-license option.
19684 (func_get_license): New function.
19686 2004-09-21 Bruno Haible <bruno@clisp.org>
19688 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
19689 Reported by Simon Josefsson.
19691 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
19693 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
19694 gl_AC_TYPE_LONG_LONG.
19696 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
19698 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
19700 2004-09-18 Simon Josefsson <jas@extundo.com>
19701 and Paul Eggert <eggert@cs.ucla.edu>
19703 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
19704 calls with autoreconf. Define GL_LIB.
19706 2004-09-14 Karl Berry <karl@gnu.org>
19708 * config/srclist.txt: unsync setenv.c, sigh.
19710 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
19712 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
19713 Problem reported by Bruno Haible in:
19714 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
19716 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
19718 * config/srclist.txt: Comment out argp-pvh.c.
19720 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
19722 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
19723 in case some system header has #define'd it. Problem reported by
19724 Soeren D. Schulze in
19725 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
19727 2004-09-09 Karl Berry <karl@gnu.org>
19729 * regex.[ch]: delete from the root. These were supposed to be
19730 synced with emacs cvs, but this has not happened for about
19731 a year, and anyway nothing else uses emacs regex.[ch].
19732 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
19733 lib/regex[.ch] is untouched.
19735 2004-09-09 Bruno Haible <bruno@clisp.org>
19737 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
19739 2004-09-09 Bruno Haible <bruno@clisp.org>
19741 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
19743 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
19745 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
19747 * modules/xvasprintf: New file.
19748 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
19750 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
19752 * lib/xvasprintf.h: New file.
19753 * lib/xvasprintf.c: New file.
19754 * lib/xasprintf.c: New file.
19756 2004-09-08 Bruno Haible <bruno@clisp.org>
19758 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
19760 2004-09-08 Bruno Haible <bruno@clisp.org>
19762 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
19763 length is > INT_MAX.
19764 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
19767 2004-09-08 Bruno Haible <bruno@clisp.org>
19769 * lib/stdint_.h: New file, taken from GNU clisp.
19771 2004-09-08 Bruno Haible <bruno@clisp.org>
19772 Oskar Liljeblad <oskar@osk.mine.nu>
19774 * modules/stdint: New file.
19775 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
19777 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
19779 Import from coreutils.
19780 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
19781 strings on unbounded length. alloca's performance benefits aren't
19782 that important here.
19783 (V_STRDUP): Remove.
19784 (parse_with_separator): New function, with most of the internals
19785 of the old parse_user_spec. Allow user to omit both user and group,
19786 for compatibility with FreeBSD.
19787 Clone only the user name, not the entire spec.
19788 Do not set *uid, *gid unless entirely successful.
19789 Avoid memory leak in some failing cases.
19790 Fix regression for USER.GROUP reported by Dmitry V. Levin in
19791 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
19792 (parse_user_spec): Rewrite to use parse_with_separator.
19794 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
19796 * modules/userspec: Don't depend on alloca.
19798 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
19800 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
19802 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
19804 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
19805 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
19806 utimecmp, utimens, xnanosleep. Rename sha to sha1.
19808 2004-08-16 Simon Josefsson <jas@extundo.com>
19810 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
19811 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
19812 Add --dry-run for --import.
19813 Let user provided command line parameters override configure.ac
19816 2004-08-12 Simon Josefsson <jas@extundo.com>
19818 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
19819 as discussed with Paul Eggert in threads rooted at
19820 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
19822 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
19823 Before, the test was empty, and relied on ELIDE_CODE in source
19825 (gl_PREREQ_GETOPT): New macro.
19826 (gl_GETOPT): Use them.
19828 2004-08-12 Simon Josefsson <jas@extundo.com>
19830 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
19831 * lib/getopt_.h: Renamed from getopt.h.
19833 2004-08-12 Simon Josefsson <jas@extundo.com>
19835 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
19836 Change default library name from libfoo to libgnu.
19837 Now, if you have a configure.ac that says:
19840 gl_MODULES(error getopt etcetera)
19842 you can import all you need by running:
19843 ../gnulib/gnulib-tool --import
19845 * modules/getopt (Files): Rename getopt.h to getopt_.h.
19846 (Makefile.am): Rewrite, use logic from argz.
19847 (Include): Use <getopt.h> instead of "getopt.h".
19849 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
19851 * modules/argp (Files): Add m4/unlocked-io.m4.
19852 (Depends-on): Add extensions.
19854 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
19856 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
19857 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
19858 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
19859 Check for program_invocation_name, program_invocation_short_name,
19860 flockfile, funlockfile, features.h, _getopt_long_only_r.
19862 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
19864 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
19865 its complicated substitute.
19866 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
19867 and program_invocation_name.
19868 (__argp_basename) [!_LIBC]: Remove; the only use was
19869 replaced by its body.
19870 (__argp_short_program_name): Change condition from
19871 !defined __argp_short_program_name to
19872 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
19873 to match argp-namefrob.h.
19874 (__argp_failure): Don't assume strerror_r returns char *.
19875 * lib/argp-parse.c (N_): Define unconditionally.
19876 (argp_default_options): Fill out initializers with 0 to avoid
19879 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
19881 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
19884 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
19886 Merge from coreutils.
19888 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
19890 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
19891 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
19893 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
19895 Merge from coreutils.
19897 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
19898 wmemchr or wmemcpy. Problem reported by Robert Dahlem
19899 for Reliant Unix 5.43.
19901 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
19902 (union fooround): Use uintmax_t, not long int.
19903 The rest is a merge from libc:
19904 [defined _LIBC]: Include <shlib-compat.h>.
19905 (_obstack) [defined _LIBC]: Remove after 2.3.4.
19907 * lib/settime.c (settime): Recode to avoid warning with
19910 * lib/strverscmp.c: Convert to UTF-8.
19912 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
19914 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
19917 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
19919 * modules/xalloc-die: New file.
19920 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
19922 * modules/md5 (Files): Add m4/uint32_t.m4.
19923 * modules/sha1: Renamed from modules/sha.
19925 Rename lib/sha.h to lib/sha1.h.
19926 Rename lib/sha.c to lib/sha1.c.
19927 Rename m4/sha.m4 to m4/sha1.m4.
19928 (lib_SOURCES): Likewise.
19929 (configure.ac): Rename gl_SHA to gl_SHA1.
19930 (Include): sha.h -> sha1.h.
19932 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
19934 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
19935 * m4/sha1.m4: Renamed from sha.m4.
19936 (gl_SHA1): Renamed from gl_SHA. All uses changed.
19938 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
19940 * lib/obstack.h (obstack_empty_p):
19941 Don't assume that chunk->contents is suitably aligned.
19942 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
19943 Likewise. Problem reported by Benno in
19944 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
19946 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
19947 readable. This could be improved further but it'd take some work.
19949 2004-08-08 Simon Josefsson <jas@extundo.com>
19951 * modules/xgethostname (Depends-on): Remove exit and error (not
19954 * modules/getpass-gnu: Add getpass.h.
19955 (Depends-on): Add stdbool.
19956 * modules/getpass: Add getpass.h.
19958 2004-08-08 Simon Josefsson <jas@extundo.com>
19960 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
19961 Check getpass declaration.
19963 2004-08-08 Simon Josefsson <jas@extundo.com>
19965 * lib/xgethostname.c: Don't include error.h (not used).
19967 * lib/getpass.h: Add.
19968 * lib/getpass.c: Include getpass.h first.
19970 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
19972 * lib/xalloc-die.c: New file.
19973 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
19975 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
19976 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
19978 (_, N_, xalloc_die): Move to xalloc-die.c.
19979 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
19980 so that we needn't mess with xalloc_msg_memory_exhausted.
19982 * lib/sha1.h: Renamed from sha.h.
19983 (SHA1_H): Renamed from _SHA_H.
19984 (sha1_ctx): Renamed from sha_ctx.
19985 (sha1_init_ctx): Renamed from sha_init_ctx.
19986 (sha1_process_block): Renamed from sha_process_block.
19987 (sha1_process_bytes): Renamed from sha_process_bytes.
19988 (sha1_finish_ctx): Renamed from sha_finish_ctx.
19989 (sha1_read_ctx): Renamed from sha_read_ctx.
19990 (sha1_stream): Renamed from sha_stream.
19991 (sha1_buffer): Renamed from sha_buffer.
19992 * lib/sha1.c: Likewise; renamed from sha.c.
19993 Do not include <sys/types.h>.
19994 Include <stddef.h> rather than <stdlib.h>.
19996 2004-08-08 Bruno Haible <bruno@clisp.org>
19998 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
19999 FILESYSTEM_PREFIX_LEN.
20000 * lib/progreloc.c: Likewise.
20001 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
20003 2004-08-06 Simon Josefsson <jas@extundo.com>
20005 * modules/progname (Depends-on): Don't depend on stdbool.
20007 2004-08-06 Simon Josefsson <jas@extundo.com>
20009 * modules/getsubopt: New file.
20010 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20013 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
20015 More merge from coreutils.
20017 * m4/utimens.m4, m4/utimecmp.m4: New files.
20018 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
20019 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
20020 prereq.m4, sha.m4: Import changes from coreutils.
20022 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
20024 More merge from coreutils.
20025 * modules/raise, modules/readtokens0, modules/utimens:
20026 * modules/utimecmp, module/xnanosleep: New files.
20027 * modules/strftime: Add lib/strftime.h.
20028 Change include from <time.h> to "strftime.h".
20029 * modules/yesno: Add lib/yesno.h.
20030 * modules/backupfile: Remove lib/addext.c.
20031 * modules/euidaccess: Add stat-macros.h.
20032 * modules/canonicalize, modules/euidaccess,
20033 modules/filemode, modules/lchown, modules/makepath,
20034 modules/rmdir, modules/stat: Likewise.
20036 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
20039 * lib/argp-help.c (make_hol, hol_append): Don't assume that
20040 SIZE_MAX is a valid preprocessor constant.
20041 (__argp_basename): Change from "#ifndef _LIBC"
20042 to "#ifndef __argp_short_program_name", so that
20043 we don't compile these functions for tar.
20045 More merges from coreutils.
20046 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
20047 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
20048 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
20049 * lib/addext.c: Remove; no longer needed.
20050 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
20051 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
20052 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
20053 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
20054 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
20055 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
20056 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
20057 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
20058 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
20059 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
20060 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
20061 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
20062 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
20063 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
20064 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
20065 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
20066 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
20067 Import changes from coreutils.
20069 2004-08-05 Simon Josefsson <jas@extundo.com>
20071 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
20073 2004-08-05 Simon Josefsson <jas@extundo.com>
20075 * m4/getsubopt.m4: New file.
20077 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
20079 Merge from coreutils.
20081 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
20082 * m4/getcwd-path-max.m4: New files.
20084 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
20085 FILESYSTEM_PREFIX_LEN ->
20086 FILE_SYSTEM_PREFIX_LEN.
20087 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
20088 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
20089 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
20090 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
20092 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
20093 prerequisite modules now handle the DOS stuff.
20094 Don't check for unistd.h.
20096 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
20098 Merge from coreutils.
20100 * lib/.gdb-history: Remove; this doesn't belong here.
20102 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
20103 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
20104 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
20105 * lib/getcwd.c: New files.
20107 * lib/dirname.h: Include <stdbool.h>.
20108 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
20109 for consistency with POSIX terminology. All uses changed.
20110 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
20111 (strip_trailing_slashes): Use bool for booleans.
20112 * lib/stripslash.c (strip_trailing_slashes): Likewise.
20114 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
20115 sometimes returns a positive errno value even when it succeeds.
20116 (print_errno_message) [!LIBC]: Fall back on strerror if
20117 __strerror_r fails.
20119 * lib/path-concat.c (mempcpy): Don't define if a system header defines
20120 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
20121 (longest_relative_suffix): New function.
20122 (path_concat): Use it. Assume first argument is not NULL.
20123 Port to DOS. Omit redundant separators.
20124 Report an error instead of returning NULL.
20125 Use mempcpy instead of memcpy.
20126 (xpath_concat): Remove: not declared or used.
20128 * lib/same.h: Include <stdbool.h>
20129 (same_name): Return bool, not int.
20130 * lib/same.c (same_name): Likewise.
20131 (errno): Don't declare; we assume C89 or better now.
20133 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
20134 if not already defined.
20136 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
20137 * lib/dup-safer.c (errno): Likewise.
20139 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
20141 Merge from coreutils.
20142 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
20143 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
20144 * modules/path-concat: Don't depend on strdup.
20146 2004-08-03 Simon Josefsson <jas@extundo.com>
20148 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
20149 * lib/progname.h: Don't include stdbool.h.
20151 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
20153 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
20154 * MODULES.html.sh (func_all_modules): Remove fatal.
20156 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
20158 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
20160 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
20162 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
20165 2004-08-02 Simon Josefsson <jas@extundo.com>
20167 * lib/getsubopt.h: New file, with comments from Bruno Haible.
20168 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
20169 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
20171 2004-08-01 Simon Josefsson <jas@extundo.com>
20173 * lib/xgetdomainname.c: Include stdlib.h, for free().
20175 2004-07-19 Bruno Haible <bruno@clisp.org>
20177 * MODULES.html.sh (func_all_modules): Add dummy.
20179 2004-07-16 Simon Josefsson <jas@extundo.com>
20181 * modules/dummy: New file.
20183 2004-07-16 Simon Josefsson <jas@extundo.com>
20185 * lib/dummy.c: New file.
20187 2004-07-16 Bruno Haible <bruno@clisp.org>
20189 * lib/backupfile.h: Add extern "C" for C++.
20190 * lib/closeout.h: Likewise.
20191 * lib/copy-file.h: Likewise.
20192 * lib/findprog.h: Likewise.
20193 * lib/full-write.h: Likewise.
20194 * lib/pathname.h: Likewise.
20195 * lib/progname.h: Likewise.
20196 * lib/stpcpy.h: Likewise.
20197 * lib/stpncpy.h: Likewise.
20198 * lib/strcase.h: Likewise.
20199 * lib/strstr.h: Likewise.
20200 * lib/xalloc.h: Likewise.
20202 * lib/mbswidth.h: Add extern "C" for C++.
20203 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
20205 2004-07-13 Robert Millan <robertmh@gnu.org>
20207 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
20209 2004-07-09 Simon Josefsson <jas@extundo.com>
20211 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
20212 failed without this.)
20214 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
20216 * modules/chown (Files): Add lib/fchown-stub.c, since
20217 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
20219 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
20221 * lib/fchown-stub.c: New file.
20223 2004-06-24 Jim Meyering <jim@meyering.net>
20225 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
20227 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
20229 * modules/argz: Omit "#include".
20231 * MODULES.html.sh (func_all_modules): Add calloc, to match
20232 2004-06-01 addition of calloc module.
20234 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
20236 * m4/argz.m4: New file, which is autoupdated from libtool.
20238 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
20240 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
20243 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
20245 * config/srclist-update: Don't insist on "USA." before the
20246 close-comment, as libtool omits the period and puts the */ on a
20248 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
20249 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
20251 2004-06-22 Gary V. Vaughan <gary@gnu.org>
20253 * modules/argz: New file.
20254 * MODULES.html.sh (func_all_modules): Add argz.
20256 2004-06-12 Jim Meyering <jim@meyering.net>
20257 and Paul Eggert <eggert@cs.ucla.edu>
20259 * modules/hash (Files): Add lib/xalloc.h.
20260 * modules/pipe (Depends-on): Add wait-process.
20261 * modules/stat (Depends-on): Add xalloc.
20262 * modules/userspec (Files): Add lib/userspec.h.
20265 Upgrade from gettext-0.13.
20266 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
20267 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
20268 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
20270 2004-06-10 Jim Meyering <jim@meyering.net>
20272 * lib/calloc.c: New file.
20274 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
20276 * lib/getdate.y (yylex): Allow space between sign and number.
20277 Problem reported by Dan Jacobson.
20279 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
20281 Merge from coreutils CVS.
20283 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
20284 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
20285 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
20286 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
20287 xstrtol.m4: Fix copyright date and/or serial number.
20289 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
20290 See if we need an fchown replacement.
20291 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
20292 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
20293 and use the replacement function if we detect either defect.
20295 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
20298 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
20299 and Jim Meyering <jim@meyering.net>
20301 Merge from coreutils CVS.
20303 * lib/stat-macros.h: New file, with contents from file-type.h
20304 and coreutils' system.h.
20305 * lib/file-type.c: Include "stat-macros.h".
20306 * lib/file-type.h (file_type): Move all macro definitions to new file,
20309 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
20310 Wrap old code with this conditional.
20311 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
20312 function that does not dereference symlinks.
20313 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
20315 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
20316 dependency problems.
20317 (xreadlink): Accept new arg SIZE, for efficiency.
20318 All decls and uses changed.
20319 * lib/xreadlink.h: Include <stddef.h>, for size_t.
20321 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
20322 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
20324 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
20327 2004-06-01 Jim Meyering <jim@meyering.net>
20329 * m4/calloc.m4: New file.
20331 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
20333 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
20334 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
20335 Also, fix a typo in a diagnostic.
20337 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
20339 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
20340 or AC_FUNC_REALLOC.
20342 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
20344 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
20345 macros to be defined.
20346 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
20347 the allocator returns NULL because the requested size is zero.
20349 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
20351 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
20352 var. Add comment explaining why libc still defines it. This
20353 merges the following patch from glibc:
20354 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
20356 2004-05-20 Andreas Schwab <schwab@suse.de>
20358 * m4/free.m4: Replace free if it not known to work, not the other
20361 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
20363 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
20364 present in glibc since revision 1.1 of this file.
20365 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
20366 obstack_alignment_mask, obstack_alloc, obstack_base,
20367 obstack_blank, obstack_blank_fast, obstack_chunk_size,
20368 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
20369 obstack_grow0, obstack_init, obstack_int_grow,
20370 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
20371 obstack_next_free, obstack_object_size, obstack_ptr_grow,
20372 obstack_ptr_grow_fast, obstack_room): Remove declarations of
20373 nonexistent functions.
20375 2004-05-18 Karl Berry <karl@gnu.org>
20377 * config/srclist.txt: break link for vasnprintf.c.
20379 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
20381 Port obstack to the AS/400, where pointers are 16 bytes wide and
20382 you cannot cast an integer to a valid pointer. This patch is
20383 currently waiting to be integrated into glibc; see
20384 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
20386 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
20387 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
20388 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
20389 (struct obstack): temp member is now a union of a pointer and
20390 an integer, instead of an integer. All integer uses changed.
20391 This does not affect the physical layout of struct obstack,
20392 except on hosts (like the AS/400) where the size or alignment of
20393 void * is greater than that of ptrdiff_t.
20394 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
20395 __STDC__)]: Store temporary in pointer member of union, not
20397 * lib/obstack.c: Include <stddef.h>, for offsetof.
20398 (struct fooalign): Remove; it doesn't need a name.
20399 (union fooround): Change double to long double, and add void *.
20400 (DEFAULT_ALIGNMENT): Use offsetof to compute.
20401 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
20402 not a macro. Hence the values are always int; so remove all
20403 casts-to-int in uses.
20405 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
20407 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
20408 we can get this patch merged into glibc.
20410 2004-05-17 Derek R. Price <derek@ximbiot.com>
20411 Paul Eggert <eggert@cs.ucla.edu>
20413 * m4/argp: Depend on alloca.
20415 2004-05-17 Derek R. Price <derek@ximbiot.com>
20416 Paul Eggert <eggert@cs.ucla.edu>
20418 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
20421 2004-05-17 Bruno Haible <bruno@clisp.org>
20423 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
20424 precision that consists of a '.' followed by an empty digit string.
20425 Patch by Tor Lillqvist <tml@iki.fi>.
20427 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
20429 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
20430 for backward compatibility with older code. We need our own
20431 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
20432 it under some other name, and our alloca.h will define it.
20434 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
20435 Derek Price <derek@ximbiot.com>
20437 * lib/alloca.c: Include <alloca.h>, to get our interface.
20438 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
20439 include <alloca.h> first. Use C89 prototype for alloca; this
20440 requires including <stddef.h> for size_t. Use extern "C" if C++.
20441 Use #elif for simplicity, since we can assume C89 now.
20442 Don't try to source the system alloca.h since it will not be found
20443 and to prevent recursively including its replacement.
20444 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
20445 * lib/regex.c: Likewise.
20447 2004-05-16 Derek Price <derek@ximbiot.com>
20448 Paul Eggert <eggert@cs.ucla.edu>
20450 getline cleanup. This changes the getndelim2 API: both order of
20451 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
20454 * lib/getline.c: Don't include stddef.h or stdio.h, since our
20455 interface does that.
20456 (getline): Always use getdelim, so that we don't have two
20457 copies of this code.
20458 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
20460 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
20461 (GETNDELIM2_MAXIMUM): New macro.
20462 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
20463 instead of the old practice of delim2==0. All callers changed.
20464 Return -1 on overflow, instead of returning junk.
20465 Do not set *linesize unless allocation succeeds.
20466 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
20467 that we include sys/types.h.
20468 * lib/getnline.h: Likewise.
20469 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
20470 (getndelim2): Reorder arguments.
20471 * lib/getnline.c (getnline, getndelim):
20472 Don't discard the NMAX argument.
20473 (getnline): Invoke getndelim, to avoid code duplication.
20474 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
20475 of (size_t) -1 by callers of the getnline family.
20477 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
20479 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
20480 Check for gettimeofday.
20481 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
20482 Check for settimeofday, stime.
20484 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
20486 * lib/nanosleep.c (suspended): Change its type from int to
20487 sig_atomic_t volatile.
20488 (first_call): Make it private to rpl_nanosleep, and have it
20489 be zero initially as that's a bit faster.
20490 (my_usleep): Round up fractional times instead of truncating them,
20491 as this is the usual meaning for 'sleep'.
20493 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
20495 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
20496 (ENOSYS): Define if not defined.
20497 (settime): Fall back on stime if it exists and settimeofday fails.
20498 But don't bother with fallbacks if a method fails with errno == EPERM.
20500 2004-05-11 Jim Meyering <jim@meyering.net>
20502 Prior to this change, the save_cwd caller required read access to the
20503 current directory on most systems (ones with the fchdir function).
20505 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
20506 fails, try write-only, and finally, resort to using xgetcwd.
20508 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
20510 * lib/obstack.c, obstack.h: Import changes from libc.
20512 2004-04-28 Bruno Haible <bruno@clisp.org>
20514 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
20515 also implicitly appends .exe to executables.
20516 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
20517 accepts Windows pathnames.
20518 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
20519 Treat Cygwin like Windows, since it now accepts Windows pathnames.
20520 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
20521 Treat Cygwin like Windows, since it now accepts Windows pathnames.
20522 Reported by Derek Robert Price <derek@ximbiot.com>.
20524 2004-04-21 Karl Berry <karl@gnu.org>
20526 * config/srclist.txt (localcharset.c): break sync.
20528 2004-04-20 Paul Eggert <eggert@twinsun.com>
20530 * m4/host-os.m4: Add a copyright notice.
20532 2004-04-20 Jim Meyering <jim@meyering.net>
20534 Change UTILS_ to gl_ in AC_DEFINE'd names.
20535 Change utils_- and jm_-prefixed variables, too.
20536 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
20537 UTILS_FUNC_MKDIR_TRAILING_SLASH.
20538 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
20540 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
20541 Don't emit trailing blanks.
20542 Also rename jm_-prefixed variables to have gl_ prefix.
20544 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
20545 Also rename jm_-prefixed variables to have gl_ prefix.
20547 * m4/jm-macros.m4: Reflect the renamings.
20548 * m4/prereq.m4: Likewise.
20550 2004-04-20 Jim Meyering <jim@meyering.net>
20552 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
20555 2004-04-20 Jim Meyering <jim@meyering.net>
20556 Bruno Haible <bruno@clisp.org>
20558 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
20559 memory when realloc fails.
20561 2004-04-19 Jim Meyering <jim@meyering.net>
20563 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
20564 now that readutmp.c may call `free (0)'.
20566 2004-04-19 Bruno Haible <bruno@clisp.org>
20568 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
20569 * m4/inttypes_h.m4: Likewise.
20570 * m4/stdint_h.m4: Likewise.
20571 * m4/intmax_t.m4: Likewise.
20572 * m4/uintmax_t.m4: Likewise.
20574 2004-04-18 Jim Meyering <jim@meyering.net>
20576 * m4/prereq.m4: Don't forbid jm_ prefix.
20578 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
20579 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
20580 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
20581 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
20582 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
20583 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
20584 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
20585 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
20586 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
20587 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
20588 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
20589 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
20590 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
20591 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
20592 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
20593 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
20594 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
20595 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
20596 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
20598 2004-04-18 Jim Meyering <jim@meyering.net>
20600 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
20601 failure, don't leak memory and do call END_UTMP_ENT.
20603 2004-04-16 Jim Meyering <jim@meyering.net>
20605 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
20606 coreutils' stat program.
20607 (gl_PREREQ): Don't require jm_PREREQ_STAT.
20609 2004-04-11 Paul Eggert <eggert@twinsun.com>
20611 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
20613 (CHAR_BIT): Remove, since we assume C89.
20614 Include <stdint.h> if available, as per current Autoconf CVS advice.
20616 2004-03-31 Jim Meyering <jim@meyering.net>
20618 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
20619 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
20620 * m4/xalloc.m4: Likewise.
20622 2004-03-30 Paul Eggert <eggert@twinsun.com>
20624 Merge from coreutils.
20626 * m4/inttostr.m4: New file.
20627 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
20628 Require AM_STDBOOL_H and gl_TIMESPEC instead.
20629 Require gl_CLOCK_TIME.
20630 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
20632 2004-03-30 Paul Eggert <eggert@twinsun.com>
20634 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
20635 not bool, to be more consistent with Unix conventions.
20636 Suggested by Bruno Haible.
20638 Merge from coreutils.
20640 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
20641 * lib/umaxtostr.c: New files.
20643 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
20644 the usual <time.h> dance.
20645 (get_date): Change signature to support fractional time stamps.
20646 All callers changed.
20647 * lib/getdate.y: Include "getdate.h" first, as we can now
20648 assume C89 and don't need to worry about 'const'.
20649 Similarly, include "unlocked-io.h" near start, not in middle.
20650 Include <limits.h>.
20651 (textint.value): Use long int rather than int.
20652 (textint.digits): Use size_t rather than int.
20653 (BILLION, LOG10_BILLION): New constants.
20654 (parser_control): New member rel_ns. Members day_ordinal,
20655 time_zone, month, day, hour, minutes, rel_year, rel_month,
20656 rel_day, rel_hour, rel_minutes, rel_seconds
20657 are now long int, not int. Member seconds is now struct timespec,
20658 not int. New member timespec_seen. Members dates_seen, days_seen,
20659 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
20661 (%union.intval): Now long int, not int.
20662 New member timespec.
20663 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
20664 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
20665 (spec): Now is a timespec or an item list.
20666 (timespec, items): New nonterminals.
20667 (time, rel, relunit, number, get_date):
20668 Add support for fractional seconds.
20669 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
20670 (gmtime, localtime, mktime): Remove decls; not needed with C89.
20671 (to_hour): First arg is now long int, not int.
20672 (to_year): Returns long int, not int.
20673 Don't treat year -70 like 70.
20674 (tm_diff): Returns long int, not int.
20675 (lookup_word): Use bool instead of int when appropriate.
20676 (yylex): Use size_t for count, not int.
20677 Detect overflow when parsing large integer constants.
20678 Add support for fractions.
20679 (get_date): Make pointers 'const' if possible.
20680 Use more-portable code to detect integer overflow.
20681 (main) [TEST]: Adjust to above changes. Test for localtime failure.
20682 Don't use ctime; it's not reliable if the year has >4 digits.
20684 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
20685 This is for compatibility with BSD.
20687 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
20688 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
20689 From coreutils' system.h.
20691 * lib/userspec.c: Don't include "posixver.h".
20692 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
20693 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
20694 compatible extension. Simplify code by removing a boolean int
20695 that was always nonzero if a string was nonnull.
20697 2004-03-30 Jim Meyering <jim@meyering.net>
20699 Merge from coreutils.
20701 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
20702 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
20703 on some systems one must include <grp.h> before it.
20704 Reported by Christian Krackowizer.
20706 2004-03-30 Jim Meyering <jim@meyering.net>
20708 Merge from coreutils.
20710 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
20712 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
20713 an empty input stream.
20715 * lib/readtokens.c: Include <stdbool.h>.
20716 (readtoken): Use `size_t' rather than int/long.
20717 All callers adjusted.
20718 Use `bool' rather than `int' where appropriate.
20719 Use memset rather than an explicit loop.
20720 Use x2nrealloc rather than xrealloc.
20721 Allow the use of `\0' as a delimiter.
20722 (readtokens): Likewise.
20723 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
20725 2004-03-30 Jim Meyering <jim@meyering.net>
20727 * m4/realloc.m4: Remove file, since now it does no more than
20728 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
20729 the `configure.ac' section of module/realloc.
20730 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
20732 2004-03-30 Bruno Haible <bruno@clisp.org>
20734 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
20737 2004-03-29 Paul Eggert <eggert@twinsun.com>
20739 Merge changes to getloadavg.c from coreutils and Emacs.
20741 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
20742 Define to an expression, not to the empty string.
20743 Include cloexec.h and xalloc.h.
20744 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
20745 Use set_cloexec_flag rather than rolling our own.
20746 * lib/cloexec.c, lib/cloexec.h: New files.
20748 2004-03-29 Paul Eggert <eggert@twinsun.com>
20750 * m4/cloexec.m4: New file.
20752 2004-03-18 Paul Eggert <eggert@twinsun.com>
20754 * lib/getopt.h: Sync with libc CVS.
20756 2004-03-18 Paul Eggert <eggert@twinsun.com>
20757 Bruno Haible <bruno@clisp.org>
20759 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
20762 2004-03-18 Paul Eggert <eggert@twinsun.com>
20763 Bruno Haible <bruno@clisp.org>
20765 * lib/mbswidth.h: Include <wchar.h> only if
20766 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
20768 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
20770 2004-03-09 Paul Eggert <eggert@twinsun.com>
20772 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
20773 Sync with libc CVS.
20774 * lib/getopt_int.h: New file, also synced from libc.
20776 2004-03-09 Paul Eggert <eggert@twinsun.com>
20778 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
20779 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
20780 Bring back getopt.c, getopt.h, getopt1.c.
20782 2004-03-07 Paul Eggert <eggert@twinsun.com>
20784 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
20785 All uses changed. Check for sa_sigaction member; this fixes
20786 a bug first reported by Jason Andrade in
20787 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
20789 2004-03-07 Paul Eggert <eggert@twinsun.com>
20791 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
20792 '#if' expressions. Unlike the code it replaces, it does not
20793 depend on (defined _SC_PAGESIZE). However, it does depend on
20794 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
20795 first reported by Jason Andrade in
20796 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
20798 2004-02-25 Simon Josefsson <jas@extundo.com>
20800 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
20802 2004-02-25 Simon Josefsson <jas@extundo.com>
20804 * lib/strdup.h: New file.
20805 * lib/strdup.c: Include it.
20806 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
20807 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
20809 2004-02-23 Karl Berry <karl@gnu.org>
20811 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
20812 (from fencepost.gnu.org:/gd/gnuorg).
20814 2004-02-23 Karl Berry <karl@gnu.org>
20816 * config/srclistvars.sh (GNUORG) [karl]: redefine.
20817 * config/srclist.txt: add maintain/standards documents.
20819 2004-02-18 Bruno Haible <bruno@clisp.org>
20821 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
20822 Reported by Derek Robert Price <derek@ximbiot.com>.
20824 2004-02-16 Karl Berry <karl@gnu.org>
20826 * config/mkinstalldirs, install-sh: update from automake.
20828 2004-02-06 Karl Berry <karl@gnu.org>
20830 * m4/po.m4: update from gettext 0.14.1.
20832 2004-02-06 Karl Berry <karl@gnu.org>
20834 * lib/config.charset: update from gettext 0.14.1.
20836 2004-02-05 Paul Eggert <eggert@twinsun.com>
20838 Add comments and code, prompted by suggestions from Bruno Haible
20840 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
20841 describing the enum quoting_style values.
20842 * lib/quotearg.c (quotearg_alloc): New function.
20843 (quotearg_buffer_restyled): Treat lone { and } as special.
20844 Treat = as special. Work around bug with older shells
20845 that "see" a '\' that is really the 2nd byte of a multibyte char.
20846 Quote empty string with shell_quoting_style.
20848 2004-02-03 Bruno Haible <bruno@clisp.org>
20850 * m4/pipe.m4: New file, from GNU gettext.
20852 2004-02-03 Bruno Haible <bruno@clisp.org>
20854 * lib/pipe.h: New file, from GNU gettext.
20855 * lib/pipe.c: New file, from GNU gettext.
20857 2004-01-27 Bruno Haible <bruno@clisp.org>
20859 * m4/execute.m4: New file, from GNU gettext.
20861 2004-01-27 Bruno Haible <bruno@clisp.org>
20863 * lib/execute.h: New file, from GNU gettext.
20864 * lib/execute.c: New file, from GNU gettext.
20865 * lib/w32spawn.h: New file, from GNU gettext.
20867 2004-01-24 Paul Eggert <eggert@twinsun.com>
20869 Merge from diffutils.
20871 * lib/file-type.c (file_type): Add typed memory objects.
20872 * lib/file-type.h (S_TYPEISTMO): New macro.
20874 * lib/c-stack.h (c_stack_action): Remove argv argument.
20875 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
20876 (die): Don't calculate message unless segv_action returns.
20877 (get_stack_location, min_address_from_argv, max_address_from_argv,
20878 volatile stack_base, volatile_stack_size): Remove.
20879 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
20880 that every segmentation violation is a stack overflow. (Ouch!)
20881 See Debian bug 136249 (still outstanding) for more info about why
20882 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
20884 2004-01-24 Paul Eggert <eggert@twinsun.com>
20886 Exit-status fix from coreutils.
20888 Use exit_failure consistently in place of EXIT_FAILURE,
20889 so that program exit statuses are consistent on failure.
20891 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
20892 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
20893 * lib/argmatch.h: Comment fix to match the above.
20894 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
20895 Now a macro referring to exit_failure, instead of a separate
20896 variable. Include "exitfail.h" to get it.
20897 * lib/xstrtol.h: Include "exitfail.h".
20898 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
20900 * lib/long-options.c (parse_long_options): Use prototype
20901 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
20904 2004-01-21 Jim Meyering <jim@meyering.net>
20906 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
20907 so as not to conflict with a different-sized __mktime_internal
20908 function in GNU libc.
20909 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
20910 Problem building statically-linked `ls' reported by Michael Brunnbauer.
20912 2004-01-20 Karl Berry <karl@gnu.org>
20914 * config/config.guess: update from config.
20916 * config/srclistvars.sh: GNUWWWLICENSES for karl.
20918 2004-01-20 Bruno Haible <bruno@clisp.org>
20920 Safer stack allocation.
20921 * lib/setenv.c: Include allocsa.h.
20922 (alloca): Remove fallback definition.
20923 (freea): Remove macro.
20924 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
20927 2004-01-20 Bruno Haible <bruno@clisp.org>
20929 * m4/eealloc.m4: New file, from GNU gettext.
20931 2004-01-20 Bruno Haible <bruno@clisp.org>
20933 * m4/allocsa.m4: New file, from GNU gettext.
20935 2004-01-20 Bruno Haible <bruno@clisp.org>
20937 * lib/xallocsa.h: New file, from GNU gettext.
20938 * lib/xallocsa.c: New file, from GNU gettext.
20940 2004-01-20 Bruno Haible <bruno@clisp.org>
20942 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
20944 2004-01-20 Bruno Haible <bruno@clisp.org>
20946 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
20947 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
20950 2004-01-20 Bruno Haible <bruno@clisp.org>
20952 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
20955 2004-01-20 Bruno Haible <bruno@clisp.org>
20957 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
20959 2004-01-20 Bruno Haible <bruno@clisp.org>
20961 * lib/eealloc.h: New file.
20963 2004-01-20 Bruno Haible <bruno@clisp.org>
20965 * lib/binary-io.h: Avoid warnings on Cygwin.
20967 2004-01-20 Bruno Haible <bruno@clisp.org>
20969 * lib/allocsa.h: New file, from GNU gettext.
20970 * lib/allocsa.c: New file, from GNU gettext.
20972 2004-01-18 Karl Berry <karl@gnu.org>
20974 * doc/gpl.texi, doc/lgpl.texi: new files.
20976 2004-01-18 Karl Berry <karl@gnu.org>
20978 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
20979 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
20981 2004-01-15 Paul Eggert <eggert@twinsun.com>
20983 Merge from coreutils.
20985 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
20986 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
20987 (gl_DEFAULT_POSIX2_VERSION): Move
20988 the documentation from 'configure' into 'config.hin',
20989 so that 'configure --help' isn't burdened by it and
20990 we don't have to worry about its formatting there.
20991 Reword the documentation so that it's more succinct
20992 and can be run together into a single paragraph.
20993 * m4/same.m4 (gl_SAME): Check for pathconf.
20995 2004-01-15 Paul Eggert <eggert@twinsun.com>
20997 Merge from coreutils.
20999 * lib/posixver.c: Include posixver.h.
21001 * lib/same.c: Include <stdbool.h>, <limits.h>.
21002 (_POSIX_NAME_MAX): Define if not defined.
21004 (same_name): If file names are silently truncated, report
21005 that the file names are the same if they are the same after
21006 the silent truncation.
21008 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
21009 conversion function.
21010 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
21011 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
21014 2004-01-15 Jim Meyering <jim@meyering.net>
21016 Merge from coreutils.
21018 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
21019 if no library is required.
21020 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
21021 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
21022 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
21023 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
21024 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
21025 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
21026 value, $ac_cv_search_crypt, if it's "none required".
21027 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
21028 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
21029 not gl_FUNC_GETLOADAVG.
21030 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
21031 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
21033 2004-01-15 Jim Meyering <jim@meyering.net>
21035 Merge from coreutils.
21037 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
21038 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
21039 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
21041 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
21042 optional configure-time default.
21044 * lib/version-etc.c (version_etc_copyright): Update copyright date.
21046 * lib/xreadlink.c (xreadlink): Correct outdated comment.
21048 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
21050 Merge from coreutils.
21052 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
21053 value, $ac_cv_search_nanosleep, if it's "none required".
21055 2004-01-14 Paul Eggert <eggert@twinsun.com>
21057 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
21058 with like-named macro in fnmatch.c.
21059 (EXT): Use an internal constant instead.
21061 Merge fnmatch patches from glibc.
21062 * lib/fnmatch.c (mbsinit): Remove define.
21063 Add libc_hidden_ver (__fnmatch, fnmatch).
21064 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
21065 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
21067 2004-01-14 Karl Berry <karl@gnu.org>
21069 * config/install-sh: update from automake.
21071 2004-01-13 Karl Berry <karl@gnu.org>
21073 * config/install-sh: update from automake.
21075 2004-01-09 Karl Berry <karl@gnu.org>
21077 * config/install-sh: update from automake.
21079 2004-01-05 Karl Berry <karl@gnu.org>
21081 * config/config.{sub,guess}: update from config.
21083 2003-12-31 Karl Berry <karl@gnu.org>
21085 * config/depcomp: update from automake.
21087 2003-12-14 Karl Berry <karl@gnu.org>
21089 * lib/config.charset: update from gettext-runtime.
21091 2003-12-03 Paul Eggert <eggert@twinsun.com>
21093 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
21094 Bug reported by Alfred M. Szmidt.
21096 2003-12-03 Bruno Haible <bruno@clisp.org>
21098 * m4/gettext.m4: Upgrade from gettext-0.13.
21099 * m4/po.m4: Upgrade from gettext-0.13.
21100 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
21101 * m4/intmax.m4: New file, from gettext-0.13.
21102 * m4/printf-posix.m4: New file, from gettext-0.13.
21104 2003-11-29 Karl Berry <karl@gnu.org>
21106 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
21108 2003-11-25 Paul Eggert <eggert@twinsun.com>
21109 Bruno Haible <bruno@clisp.org>
21111 * lib/printf-parse.h: Don't include sys/types.h.
21112 (ARG_NONE): New macro.
21113 (char_directive): Change type of *arg_index fields to size_t.
21114 * lib/printf-parse.c: Don't include sys/types.h.
21115 (SSIZE_MAX): Remove macro.
21116 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
21117 Remove unnecessary overflow check.
21118 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
21121 2003-11-25 Bruno Haible <bruno@clisp.org>
21123 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
21125 2003-11-25 Bruno Haible <bruno@clisp.org>
21127 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
21130 2003-11-24 Paul Eggert <eggert@twinsun.com>
21132 * modules/alloca: Remove dependency on xalloc.
21134 2003-11-24 Paul Eggert <eggert@twinsun.com>
21136 * lib/alloca.c: Remove dependency on xalloc module.
21137 (xalloc_die): Remove.
21138 (memory_full) [!defined emacs]: New macro.
21139 [!defined emacs]: Don't include xalloc.h.
21140 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
21141 address arithmetic overflows. Change datatypes a bit to avoid
21144 2003-11-22 Jim Meyering <jim@meyering.net>
21146 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
21149 2003-11-21 Karl Berry <karl@gnu.org>
21151 * config/config.{sub,guess}: update from config.
21153 2003-11-18 Karl Berry <karl@gnu.org>
21155 * config/config.{sub,guess}: update from config.
21157 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
21159 2003-11-17 Paul Eggert <eggert@twinsun.com>
21161 * README: Mention that S+T cannot overflow if S is the size of
21162 an existing object and T is sufficiently small.
21164 2003-11-17 Jim Meyering <jim@meyering.net>
21166 On systems without utime and without a utimes function capable of
21167 dealing with a NULL struct utimbuf* argument, this utime replacement
21168 could -- in unusual circumstances -- leak a file descriptor.
21169 * lib/utime.c: Include <unistd.h> and <errno.h>.
21170 (utime_null): Be sure to close `fd' and to preserve errno.
21171 Reported by Geoff Collyer via Arnold Robbins.
21173 2003-11-17 Bruno Haible <bruno@clisp.org>
21175 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
21176 (Depends-on): Add xsize.
21178 2003-11-17 Bruno Haible <bruno@clisp.org>
21180 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
21182 2003-11-17 Bruno Haible <bruno@clisp.org>
21184 * lib/vasnprintf.c (alloca): Remove fallback definition.
21185 (freea): Remove definition.
21186 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
21187 Reported by Paul Eggert.
21189 2003-11-16 Paul Eggert <eggert@twinsun.com>
21190 Bruno Haible <bruno@clisp.org>
21192 Protect against address arithmetic overflow.
21193 * lib/printf-args.h: Include stddef.h.
21194 (arguments): Change type of field 'count' to size_t.
21195 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
21196 'unsigned int' where appropriate.
21197 * lib/printf-parse.h: Include sys/types.h.
21198 (char_directive): Change type of *arg_index fields to ssize_t.
21199 (char_directives): Change type of fields 'count', max_*_length to
21201 * lib/printf-parse.c: Include sys/types.h and xsize.h.
21202 (SSIZE_MAX): Define fallback value.
21203 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
21204 instead of 'int' where appropriate. Check a_allocated, d_allocated
21205 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
21206 * lib/vasnprintf.c: Include xsize.h.
21207 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
21208 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
21209 overflow. Avoid wraparound when converting a width or precision from
21212 2003-11-16 Bruno Haible <bruno@clisp.org>
21214 Update from GNU gettext.
21215 * lib/printf-parse.c: Generalize to it can be compiled for wide
21217 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
21218 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
21219 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
21220 SNPRINTF): New macros.
21221 Don't include <alloca.h> if the file is used inside libintl.
21222 (local_wcslen): New function, for Solaris 2.5.1.
21223 (VASNPRINTF): Use it instead of wcslen.
21225 2003-11-16 Bruno Haible <bruno@clisp.org>
21227 * lib/xsize.h (xmax): New function.
21228 (xsum, xsum3, xsum4): Declare as "pure" functions.
21230 2003-11-12 Paul Eggert <eggert@twinsun.com>
21232 * modules/xalloc (Files): Undo latest change, since xalloc.h
21233 no longer needs SIZE_MAX or PTRDIFF_MAX.
21235 2003-11-12 Paul Eggert <eggert@twinsun.com>
21237 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
21240 2003-11-12 Paul Eggert <eggert@twinsun.com>
21242 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
21243 "return", to pacify some unknown compiler. Problem reported
21244 by Joerg Schilling.
21246 2003-11-12 Paul Eggert <eggert@twinsun.com>
21248 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
21249 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
21250 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
21251 heuristic is just as accurate as far as we know, and it removes a
21252 dependency on size_max.m4 and ptrdiff_max.m4.
21254 2003-11-11 Bruno Haible <bruno@clisp.org>
21256 * modules/xsize (Files): Add m4/size_max.m4.
21257 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
21259 2003-11-11 Bruno Haible <bruno@clisp.org>
21261 * m4/size_max.m4: New file.
21262 * m4/ptrdiff_max.m4: New file.
21263 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
21264 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
21265 (gl_XALLOC): Invoke it.
21267 2003-11-11 Bruno Haible <bruno@clisp.org>
21269 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
21270 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
21273 2003-11-10 Paul Eggert <eggert@twinsun.com>
21275 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
21276 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
21277 rejected some allocations of exactly SIZE_MAX - 2 bytes.
21279 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
21280 not (size_t) -1, since it's defined here.
21282 2003-11-09 Karl Berry <karl@gnu.org>
21284 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
21286 2003-11-06 Paul Eggert <eggert@twinsun.com>
21288 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
21289 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
21290 Reject sizes of exactly SIZE_MAX bytes.
21291 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
21292 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
21294 2003-11-05 Bruno Haible <bruno@clisp.org>
21296 * lib/xsize.h: Include limits.h, to avoid a possible collision with
21297 SIZE_MAX defined in <limits.h> on Solaris.
21299 2003-11-04 Jim Meyering <jim@meyering.net>
21301 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
21302 variable names, rather than @VAR@.
21303 * modules/poll: Likewise.
21305 2003-11-04 Bruno Haible <bruno@clisp.org>
21307 * modules/xsize: New file.
21308 * modules/linebreak: Depend on xsize.
21309 * MODULES.html.sh (func_all_modules): Add xsize.
21311 2003-11-04 Bruno Haible <bruno@clisp.org>
21313 * m4/xsize.m4: New file.
21315 2003-11-04 Bruno Haible <bruno@clisp.org>
21317 * lib/xsize.h: New file.
21318 * lib/linebreak.c: Include xsize.h.
21319 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
21320 argument for overflow.
21321 Suggested by Paul Eggert.
21323 2003-11-03 Karl Berry <karl@gnu.org>
21325 * config/config.{guess,sub}: update from config.
21327 2003-11-03 Jim Meyering <jim@meyering.net>
21329 * modules/userspec (lib_SOURCES): Add userspec.h.
21330 (Include): Add "userspec.h".
21331 Improve description.
21333 2003-11-03 Jim Meyering <jim@meyering.net>
21335 * lib/userspec.c: Include "userspec.h".
21336 * lib/userspec.h: New file.
21338 2003-11-03 Bruno Haible <bruno@clisp.org>
21340 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
21342 2003-11-03 Bruno Haible <bruno@clisp.org>
21344 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
21345 available, to avoid (extremely rare) race condition.
21346 Suggested by Paul Eggert.
21348 2003-11-02 Karl Berry <karl@gnu.org>
21350 * config/srclist.txt (vasprintf.c): sync broken, sigh.
21352 2003-10-31 Paul Eggert <eggert@twinsun.com>
21354 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
21355 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
21356 (read_filesystem_list): Set and use me_type_malloced.
21357 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
21358 whatever the type happens to be), for brevity and consistency.
21359 Check for size calculation overflow on Alphas running OSF/1.
21361 2003-10-31 Jim Meyering <jim@meyering.net>
21363 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
21365 * lib/linebuffer.c: Include <string.h> for declaration of memset.
21367 2003-10-30 Paul Eggert <eggert@twinsun.com>
21368 Bruno Haible <bruno@clisp.org>
21370 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
21371 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
21373 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
21375 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
21376 netbsd*-gnu*. Suggested by Robert Millan.
21378 2003-10-29 Paul Eggert <eggert@twinsun.com>
21380 * modules/group-member: Depend on stdbool.
21382 2003-10-29 Paul Eggert <eggert@twinsun.com>
21384 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
21386 2003-10-29 Paul Eggert <eggert@twinsun.com>
21388 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
21389 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
21390 after the 'gnu' in these cases. This fixes some bugs in the
21391 previous change, and is based on suggestions by Robert Millan.
21393 2003-10-29 Paul Eggert <eggert@twinsun.com>
21395 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
21396 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
21398 * lib/quotearg.c (quotearg_n_options): Use it.
21399 * lib/group-member.c: Include <stdbool.h>.
21400 (free_group_info): Arg is now const *; don't free arg.
21401 (get_group_info): Now returns bool and accepts struct group_info *,
21402 rather than returning a malloc'ed struct group_info *.
21403 All uses changed. Check for overflow in internal size calculation.
21405 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
21406 rather than xmalloc/xrealloc.
21407 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
21408 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
21409 conformance bug: the old code used a pointer after freeing the
21410 storage that it addressed.
21411 * lib/hash.c (hash_initialize): Simplify the code by using
21412 xalloc_oversized rather than doing it by hand.
21413 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
21414 the buffer preserved. Use free and xmalloc instead.
21415 * lib/quotearg.c (quotearg_n_options): Likewise.
21416 Use a simpler test for size overflow. Don't use xalloc_oversized
21417 because unsigned int might be wider than size_t (!); this suggests
21418 that we should switch from unsigned int to size_t for slot numbers.
21420 2003-10-28 Paul Eggert <eggert@twinsun.com>
21422 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
21423 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
21424 NetBSD kernels. Requested by Richard Stallman.
21426 2003-10-27 Paul Eggert <eggert@twinsun.com>
21428 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
21429 to allocate the returned structure. Do not allocate a subarray,
21430 as x2nrealloc will do that.
21431 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
21432 instead of xnrealloc.
21433 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
21435 2003-10-27 Bruno Haible <bruno@clisp.org>
21437 * lib/stdbool_.h: Better support for BeOS.
21439 2003-10-26 Paul Eggert <eggert@twinsun.com>
21441 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
21444 2003-10-26 Paul Eggert <eggert@twinsun.com>
21446 * lib/xalloc.h (xalloc_oversized): New static inline function, for
21447 callers that want to do their own size-overflow checking. Include
21448 <stdbool.h>, since xalloc_oversized returns bool.
21449 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
21450 to use xalloc_oversized.
21452 Add two functions x2realloc, x2nrealloc, for programs that grow
21453 arrays dynamically by doubling their sizes.
21454 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
21455 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
21458 Port to C99 semantics for 'inline' of external functions.
21459 Bug reported by Bruno Haible.
21460 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
21461 with the old contents of xnmalloc.
21462 (xnmalloc, xmalloc): Use it.
21463 (xnrealloc_inline): New static inline function,
21464 with the old contents of xnrealloc.
21465 (xnrealloc, xrealloc): Use it.
21467 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
21470 2003-10-26 Karl Berry <karl@gnu.org>
21472 * config/srclist.txt (COPYING.DOC): no longer available from
21473 /gd/gnuorg; don't know where the ultimate source is.
21475 2003-10-25 Paul Eggert <eggert@twinsun.com>
21477 Fix several address-calculation bugs in the hash modules,
21478 plus some minor code cleanup.
21480 * lib/hash.h: Include <stdbool.h>, for bool.
21481 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
21482 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
21483 hash_get_n_entries, hash_get_max_bucket_length,
21484 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
21485 hash_rehash): Use size_t rather than unsigned.
21486 * lib/hash.c (struct hash_table, hash_get_n_buckets,
21487 hash_get_n_buckets_used, hash_get_n_entries,
21488 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
21489 hash_get_entries, hash_do_for_each, hash_string, is_prime,
21490 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
21492 (SIZE_MAX): Define if not defined.
21493 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
21494 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
21496 Use const * when possible.
21497 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
21498 (check_tuning): Fix bug: if tuning parameters were very close to
21499 0 or 1, rounding errors could have caused subscript violations.
21500 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
21501 (hash_initialize): Add 'fail:' label
21502 to free table and return NULL, and use it to simplify code.
21503 Use calloc rather than clearing the storage ourself.
21504 (hash_initialize, hash_rehash): Check for arithmetic overflow in
21505 buffer size calculations.
21506 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
21507 Include <stddef.h>, for size_t.
21508 * lib/hash-pjw.c (hash_pjw): Likewise.
21509 Switch to method described by Bruno Haible.
21510 Include <limits.h>, for CHAR_BIT.
21511 (SIZE_BITS): New macro.
21513 2003-10-23 Paul Eggert <eggert@twinsun.com>
21515 * m4/getline.m4 (AM_FUNC_GETLINE):
21516 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
21517 hosts. Problem reported by Derek Robert Price in
21518 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
21519 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
21520 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
21522 2003-10-21 Paul Eggert <eggert@twinsun.com>
21524 * lib/getndelim2.c (getndelim2): When size calculation overflows,
21525 ceiling the allocation at NMAX bytes rather than silently
21526 discarding input bytes before NMAX is reached. This makes
21527 a difference only if NMAX exceeds SIZE_MAX / 2.
21529 * lib/obstack.c: Merge from glibc.
21530 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
21531 Add libc_hidden_def (_obstack_newchunk).
21532 (_obstack_free) [! defined _LIBC]: Remove.
21533 [defined _LIBC]: Make a strong alias from obstack_free, rather than
21534 a clone of the function body.
21535 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
21536 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
21538 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
21540 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
21543 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
21544 (obstack_ptr_grow_fast, obstack_int_grow_fast):
21545 Don't use lvalue casts, as GCC plans to remove support for them
21546 in GCC 3.5. Reported by Joseph S. Myers. This bug
21547 was also present in the non-GCC version, indicating that this
21548 code had always been buggy and had never been widely used.
21549 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
21550 Use the fast variant of each macro, rather than copying the
21551 definiens of the fast variant; that way, we'll be more likely to
21552 catch future bugs in the fast variants.
21554 2003-10-20 Bruno Haible <bruno@clisp.org>
21556 * modules/wait-process: New file.
21557 * MODULES.html.sh (func_all_modules): Add wait-process.
21559 2003-10-20 Bruno Haible <bruno@clisp.org>
21561 * m4/wait-process.m4: New file.
21563 2003-10-20 Bruno Haible <bruno@clisp.org>
21565 * lib/wait-process.h: New file, from GNU gettext.
21566 * lib/wait-process.c: New file, from GNU gettext.
21568 2003-10-19 Jim Meyering <jim@meyering.net>
21570 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
21573 2003-10-18 Karl Berry <karl@gnu.org>
21575 * config/config.guess: update from config.
21577 2003-10-16 Paul Eggert <eggert@twinsun.com>
21579 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
21580 (getgroups): First arg is int, not size_t.
21581 Don't let 'free' mangle errno.
21583 2003-10-16 Paul Eggert <eggert@twinsun.com>
21585 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
21587 2003-10-16 Karl Berry <karl@gnu.org>
21589 * config/config.{guess,sub}: update from config.
21591 2003-10-16 Jim Meyering <jim@meyering.net>
21593 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
21596 2003-10-15 Paul Eggert <eggert@twinsun.com>
21598 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
21599 (SIZE_MAX): Remove.
21600 (new_exclude, add_exclude_file): Initial size no longer needs to
21602 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
21603 our own address arithmetic overflow checking.
21605 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
21606 (fnmatch): Do not alloca more than 2000 wide characters;
21607 instead, use malloc for large buffers.
21608 Check for address arithmetic overflow, and return -1
21609 with errno set to ENOMEM in that case.
21610 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
21611 (NEW_PATTERN): Do not alloca more than 8000 bytes;
21612 instead, return -1. Check for address arithmetic overflow.
21614 2003-10-14 Paul Eggert <eggert@twinsun.com>
21616 Handle invalid suffixes and overflow independently, so that
21617 callers can treat them independently as needed. Fix some bugs in
21618 suffix handling, e.g., "100k@" was not diagnosed as an invalid
21619 suffix for a human-readable blocksize. The major caller-visible
21620 change is the addition of a new
21621 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
21622 that both overflow and suffix chars were found.
21624 * lib/human.c (humblock): Don't check separately for invalid suffix
21625 char; that is xstrtoumax's job (now that its bug is fixed).
21626 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
21627 INTMAX_MAX]: New macros.
21628 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
21629 TYPE_MAXIMUM): New macros.
21630 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
21631 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
21632 if overflow occurs, as it's what __strtol does and it's more useful
21634 (__xstrtol): If __strtol reports some error other than ERANGE,
21635 reflect it to the caller as LONGINT_INVALID. If it reports
21636 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
21637 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
21638 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
21640 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
21641 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
21642 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
21643 [defined UINTMAX_MAX]: New macros.
21645 2003-10-14 Bruno Haible <bruno@clisp.org>
21647 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
21649 2003-10-14 Bruno Haible <bruno@clisp.org>
21651 * m4/sig_atomic_t: New file, from GNU gettext.
21652 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
21654 2003-10-14 Bruno Haible <bruno@clisp.org>
21656 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
21657 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
21658 Also use volatile where needed.
21660 2003-10-12 Paul Eggert <eggert@twinsun.com>
21662 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
21663 Change maintainer from Bruno Haible to 'all'.
21665 2003-10-12 Paul Eggert <eggert@twinsun.com>
21667 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
21669 2003-10-12 Paul Eggert <eggert@twinsun.com>
21671 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
21672 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
21673 and define in terms of the other primitives.
21674 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
21675 (SIZE_MAX): Define if not already defined.
21676 (array_size_overflow): New function.
21677 (xalloc_die): Abort instead of exiting if 'error' returns.
21678 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
21679 (xmalloc, xrealloc): Use them.
21680 (xcalloc): Check for address arithmetic overflow.
21681 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
21682 a bit faster than strcpy.
21684 2003-10-10 Simon Josefsson <jas@extundo.com>
21686 * modules/argp (Depends-on): Add restrict and strcase.
21688 2003-10-10 Simon Josefsson <jas@extundo.com>
21690 * m4/argp.m4: Add AC_C_INLINE.
21692 2003-10-08 Paul Eggert <eggert@twinsun.com>
21694 Merge getpass from libc, plus a few fixes.
21696 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
21697 Include <stdbool.h>.
21698 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
21699 __fsetlocking to empty.
21700 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
21701 do include <bits/libc-lock.h>.
21702 Do not include <fcntl.h>; not needed.
21703 [_LIBC]: Include <wchar.h>.
21704 (NOTCANCEL_MODE): New macro.
21705 (flockfile, funlockfile) [_LIBC]: New macros.
21706 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
21707 [!_LIBC]: New macros.
21708 (call_fclose): New function.
21709 (getpass): Use it. Save tty stream separately; this simplifies the
21710 code and makes it more reliable if stdin happens to equal stdout.
21711 Invoke __fsetlocking on tty.
21712 Handle thread cancellation if needed.
21713 Namespace cleanup (use __tcgetattr, __getline).
21714 Use bool for Booleans.
21715 [USE_IN_LIBIO]: Handle wide streams.
21716 [!_LIBC]: Unconditionally do the fseek, since we don't know what
21717 stream might go where.
21719 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
21720 doesn't have to include <stdio.h> before us.
21721 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
21722 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
21723 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
21724 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
21725 if not declared, so that we can use getpass.c code from libc without
21727 (flockfile, ftrylockfile, funlockfile): New macros.
21729 2003-10-08 Paul Eggert <eggert@twinsun.com>
21731 * modules/getpass: Depend on stdbool.
21733 2003-10-08 Paul Eggert <eggert@twinsun.com>
21735 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
21737 2003-10-07 Karl Berry <karl@gnu.org>
21739 * config/config.{guess,sub}: update from config.
21741 2003-10-06 Jim Meyering <jim@meyering.net>
21742 Bruno Haible <bruno@clisp.org>
21744 This lets translators provide better translations for the
21745 "Written by ..." part of --version output.
21746 * lib/version-etc.h: Include stdarg.h.
21747 (version_etc_copyright): Declare as readonly.
21748 (version_etc): Make this function variadic with a NULL-terminated list
21749 of author name strings.
21750 (version_etc_va): New declaration.
21751 * lib/version-etc.c: Include stdarg.h, stdlib.h.
21752 (version_etc_copyright): Declare as readonly.
21753 (version_etc_va): New function. Provide a different translatable string
21754 for each possible number of authors < 10. Abbreviate when there are 10
21756 (version_etc): Make this function variadic. Call version_etc_va.
21757 Suggestion from Gary V. Vaughan.
21759 * lib/long-options.h (parse_long_options): Change prototype: the
21760 authors string is moved to the end and becomes variadic.
21761 * lib/long-options.c: Include stdarg.h.
21762 (parse_long_options): Make this function variadic, too.
21763 Call version_etc_va, not version_etc.
21765 2003-10-06 Bruno Haible <bruno@clisp.org>
21767 * modules/version-etc-2: Remove file.
21768 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
21770 2003-10-06 Bruno Haible <bruno@clisp.org>
21772 * modules/fatal-signal: New file.
21773 * MODULES.html.sh (func_all_modules): Add fatal-signal.
21775 2003-10-06 Bruno Haible <bruno@clisp.org>
21777 * m4/fatal-signal.m4: New file.
21778 * m4/signalblocking.m4: New file, from GNU gettext.
21780 2003-10-06 Bruno Haible <bruno@clisp.org>
21782 * lib/version-etc-2.h: Remove file.
21783 * lib/version-etc-2.c: Remove file.
21785 2003-10-06 Bruno Haible <bruno@clisp.org>
21787 * lib/fatal-signal.h: New file, from GNU gettext.
21788 * lib/fatal-signal.c: New file, from GNU gettext.
21790 2003-10-05 Paul Eggert <eggert@twinsun.com>
21792 * README: Rework advice for preventing empty .o files.
21793 Don't recommend ELIDE constructs. Recommend <stddef.h>,
21796 2003-10-04 Karl Berry <karl@gnu.org>
21798 * lib/argp*: update from libc.
21800 2003-10-04 Karl Berry <karl@gnu.org>
21802 * config/config.{guess,sub}: update from config.
21804 2003-10-02 Bruno Haible <bruno@clisp.org>
21806 * modules/lchown (Include): Add lchown.h.
21807 * modules/time_r (Include): Use "..." syntax.
21808 * modules/xgetdomainname (Include): Add xgetdomainname.h.
21810 2003-10-01 Simon Josefsson <jas@extundo.com>
21812 * MODULES.html.sh (func_all_modules): Move gethostname from section
21813 'based on' to section 'lacking' POSIX:2001.
21815 2003-10-01 Larry Jones <lawrence.jones@eds.com>
21817 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
21818 to output mode on the same stream.
21820 2003-09-29 Paul Eggert <eggert@twinsun.com>
21822 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
21823 Fix arg typo in previous patch.
21825 2003-09-28 Jim Meyering <jim@meyering.net>
21827 * lib/error.c: Correct cpp indentation.
21829 2003-09-27 Paul Eggert <eggert@twinsun.com>
21831 * modules/free: New file.
21833 2003-09-27 Paul Eggert <eggert@twinsun.com>
21835 * m4/free.m4: New file.
21837 2003-09-27 Paul Eggert <eggert@twinsun.com>
21839 * lib/minmax.h (MIN, MAX)
21840 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
21841 Omit the special code that used __typeof__, since we worry that
21842 it could be more trouble than it's worth. See:
21843 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
21844 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
21846 * lib/free.c: New file.
21848 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
21850 Trivial fixes to Makefile.am parts of module listings.
21851 * modules/strstr: Append strstr.h to lib_SOURCES.
21852 * modules/strcase: Likewise, for strcase.h.
21854 2003-09-27 Karl Berry <karl@gnu.org>
21856 * config/mkinstalldirs: update from automake.
21858 2003-09-26 Paul Eggert <eggert@twinsun.com>
21860 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
21861 (error_tail): Do not loop, reallocating temporary buffer, since
21862 the output cannot contain more wide characters than the input
21863 contains bytes, the size must be big enough already. This avoids
21864 one potential size overflow calculation. Check for size overflow
21865 when calculating temporary buffer size. Free temporary buffer
21866 when done, if it was allocated with malloc; this plugs a memory
21867 leak. Remove casts from void * to pointers, that are no longer
21868 needed now that we're assuming C89 or better.
21870 Merge error changes from glibc.
21872 * lib/error.c, error.h: Update copyright notice header to match glibc.
21873 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
21874 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
21875 Disable cancellation while printing error.
21876 * lib/error.h: Prepend __ to parameter names.
21878 2003-09-26 Jim Meyering <jim@meyering.net>
21880 * lib/error.c (error_tail): Move some declarations
21881 into inner scope where the local variables are used.
21883 2003-09-26 Bruno Haible <bruno@clisp.org>
21885 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
21887 Don't define stpncpy through config.h; it's now done through stpncpy.h.
21889 2003-09-26 Bruno Haible <bruno@clisp.org>
21891 * lib/stpncpy.h (gnu_stpncpy): New declaration.
21892 (stpncpy): Define as alias for gnu_stpncpy.
21893 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
21895 2003-09-25 Simon Josefsson <jas@extundo.com>
21897 * lib/xgetdomainname.h: New file.
21898 * lib/xgetdomainname.c: New file.
21900 2003-09-25 Simon Josefsson <jas@extundo.com>
21901 Bruno Haible <bruno@clisp.org>
21903 * modules/getdomainname: New file.
21904 * modules/xgetdomainname: New file.
21905 * MODULES.html.sh (func_all_modules): Add getdomainname,
21908 2003-09-25 Simon Josefsson <jas@extundo.com>
21909 Bruno Haible <bruno@clisp.org>
21911 * m4/getdomainname.m4: New file.
21913 2003-09-25 Simon Josefsson <jas@extundo.com>
21914 Bruno Haible <bruno@clisp.org>
21916 * lib/getdomainname.h: New file.
21917 * lib/getdomainname.c: New file.
21919 2003-09-25 Karl Berry <karl@gnu.org>
21921 * lib/argp-fmtstream.c, argp-help.c: update from libc.
21923 2003-09-25 Karl Berry <karl@gnu.org>
21925 * config/install-sh: update from automake.
21927 2003-09-25 Bruno Haible <bruno@clisp.org>
21929 * modules/version-etc-2: New file, from modules/version-etc with
21931 * MODULES.html.sh (func_all_modules): Add version-etc-2.
21933 2003-09-25 Bruno Haible <bruno@clisp.org>
21935 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
21936 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
21938 2003-09-24 Simon Josefsson <jas@extundo.com>
21940 * modules/xgethostname: Add xgethostname.h.
21942 2003-09-24 Paul Eggert <eggert@twinsun.com>
21944 * lib/linebuffer.c (freebuffer): Don't free the argument, just
21945 the buffer associated with the argument. Bug reported by
21948 2003-09-24 Paul Eggert <eggert@twinsun.com>
21950 * README: Document assumptions that 'int' is at least 32 bits
21951 wide, that integer arithmetic is 2's complement without overflow,
21952 that there are no holes in integer values, that adding sizes of
21953 two nonoverlapping objects can't overflow, and that all-bits-zero
21954 yields scalar zero. Fix spelling and capitalization typos.
21956 2003-09-19 Karl Berry <karl@gnu.org>
21958 * lib/argp.h: update from libc.
21960 2003-09-17 Paul Eggert <eggert@twinsun.com>
21962 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
21963 to avoid spurious warnings like "AC_RUN_IFELSE was called before
21964 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
21966 2003-09-17 Paul Eggert <eggert@twinsun.com>
21968 * gnulib-tool: Use "test -h", not "test -L", for portability
21969 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
21970 (tags_regexp): Remove, since \| doesn't conform to POSIX.
21971 (sed_extract_prog): Issue s commands one-by-one, rather than
21972 using \| in one s command.
21974 2003-09-16 Paul Eggert <eggert@twinsun.com>
21976 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
21977 input error, instead of returning NULL the next time we are called
21978 (and therefore losing track of errno).
21980 2003-09-16 Bruno Haible <bruno@clisp.org>
21982 * gnulib-tool (func_create_testdir): Warn about duplicated
21985 2003-09-15 Paul Eggert <eggert@twinsun.com>
21987 * modules/argmatch, modules/fatal, modules/obstack,
21988 modules/xalloc, modules/xgethostname: Sort dependencies by
21989 importance, not alphabetically.
21991 2003-09-15 Paul Eggert <eggert@twinsun.com>
21993 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
21994 fails, so that the caller gets the proper errno.
21996 * lib/readutmp.c (read_utmp): Likewise.
21997 Check for fstat error. Close stream and free storage
22000 2003-09-14 Karl Berry <karl@gnu.org>
22002 * config/srclist.txt (strdup.c): disable for c89 changes.
22004 2003-09-14 Jim Meyering <jim@meyering.net>
22006 * lib/getloadavg.c: Correct cpp indentation.
22007 * lib/strdup.c: Likewise.
22008 * lib/vasnprintf.c: Likewise.
22010 2003-09-14 Bruno Haible <bruno@clisp.org>
22012 * modules/fwriteerror: New file.
22013 * MODULES.html.sh (func_all_modules): Add fwriteerror.
22015 2003-09-14 Bruno Haible <bruno@clisp.org>
22017 * lib/fwriteerror.h: New file.
22018 * lib/fwriteerror.c: New file.
22020 2003-09-12 Paul Eggert <eggert@twinsun.com>
22022 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
22023 modules/xgethostname, modules/xalloc: Depend on exit.
22025 2003-09-12 Paul Eggert <eggert@twinsun.com>
22027 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
22029 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
22030 and AC_MINIX, too, so that their extensions are available.
22032 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
22033 This macro has been superseded by gl_BACKUPFILE.
22035 More patches to assume C89 or better.
22037 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
22039 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
22041 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
22042 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
22043 Include <string.h>, <stdlib.h> unconditionally.
22044 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
22045 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
22046 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
22047 headers or for string.h.
22048 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
22051 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
22053 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
22054 * m4/userspec.m4 (gl_USERSPEC): Likewise.
22055 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
22056 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
22057 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22058 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
22060 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
22061 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
22062 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
22064 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
22065 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
22066 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
22069 2003-09-12 Paul Eggert <eggert@twinsun.com>
22071 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
22072 * lib/obstack.c [!defined _LIBC]: Likewise.
22073 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
22074 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
22075 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
22077 More changes to assume C89 or better.
22079 * lib/error.c (error_tail): Assume vprintf.
22081 * lib/argmatch.c (getenv): Remove decl.
22082 * lib/progreloc.c (get_full_program_name): Define via prototype.
22083 * lib/setenv.c (clearenv): Likewise.
22084 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
22086 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
22087 (malloc, memcpy): Remove decls.
22088 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
22089 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
22090 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
22091 (memcpy): Remove macro.
22092 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
22093 (__P): Remove. All uses removed.
22094 (PTR): Remove. All uses changed to void *.
22095 (CHAR_BIT, NULL): Remove.
22096 (spaces, zeros, memset_space, memset_zero)
22097 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
22099 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
22100 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
22101 Define with prototype.
22102 Remove now-unnecessary prototype decl.
22103 (extra_args_spec): Assume ANSI C. All uses changed.
22104 (extra_args_spec_iso): Remove.
22105 (my_strftime, emacs_strftimeu): Define via prototype.
22106 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
22108 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
22109 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
22110 (strtoul, strtol): Remove decls.
22111 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
22113 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
22114 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
22115 (LOCALE_PARAM_PROTO): New macro.
22116 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
22117 (INTERNAL (strtol), strtol): Define with a prototype.
22118 (PARAMS): Remove. All uses removed.
22119 * lib/tempname.c: Include <string.h> unconditionally.
22120 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
22121 * lib/xgethostname.c (main): Define with a prototype.
22122 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
22123 Include <stdlib.h> unconditionally.
22124 (calloc, malloc, realloc, free): Remove decls.
22125 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
22126 Include <stdlib.h> unconditionally. Sort include file names.
22128 (xstrtod): Define with a prototype.
22129 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
22130 (strtol, strtoul): Remove decls.
22132 2003-09-11 Paul Eggert <eggert@twinsun.com>
22134 More patches to assume C89 or better.
22135 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
22136 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
22137 string.h, memchr, STDC_HEADERS.
22139 2003-09-11 Paul Eggert <eggert@twinsun.com>
22141 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
22142 Include <stdlib.h>, <string.h> unconditionally.
22143 Remove now-unnecessary cast to char *.
22144 * lib/strnlen.c: Include <string.h> unconditionally.
22145 * lib/yesno.c (yesno): Define with a prototype.
22147 2003-09-11 Bruno Haible <bruno@clisp.org>
22149 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
22151 2003-09-10 Jim Meyering <jim@meyering.net>
22153 * lib/error.c: Correct indentation of cpp directives.
22155 2003-09-10 Bruno Haible <bruno@clisp.org>
22157 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
22158 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
22159 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
22160 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
22161 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
22162 <stdlib.h> and <string.h> checks.
22163 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
22164 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
22166 2003-09-10 Bruno Haible <bruno@clisp.org>
22168 * lib/strcspn.c: Include <string.h> unconditionally.
22169 * lib/strpbrk.c: Include <string.h> unconditionally.
22170 * lib/strstr.c: Include <string.h> unconditionally.
22171 * lib/unicodeio.c: Include <string.h> unconditionally.
22172 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
22173 * lib/unsetenv.c: Likewise.
22174 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
22175 * lib/yesno.c: Include <stdlib.h> unconditionally.
22176 (rpmatch): Add prototype.
22178 2003-09-09 Paul Eggert <eggert@twinsun.com>
22180 More patches to assume C89 or better.
22181 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
22182 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
22183 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
22185 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
22187 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
22189 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
22191 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
22192 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
22193 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
22195 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
22196 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
22198 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
22200 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
22201 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
22202 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
22203 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
22204 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
22205 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
22207 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
22208 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
22209 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
22210 C headers, or for string.h.
22211 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
22212 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
22213 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
22214 headers, memory.h, stdlib.h, string.h, strings.h.
22215 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
22216 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
22217 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
22219 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
22220 headers, memory.h, string.h.
22221 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
22222 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
22224 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
22226 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
22227 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
22228 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
22229 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
22230 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
22232 2003-09-09 Paul Eggert <eggert@twinsun.com>
22236 * lib/acosl.c (main): Use a prototype.
22237 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
22240 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
22242 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
22243 (getopt, etopt_long, getopt_long_only, _getopt_internal)
22244 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
22246 * lib/getopt.c (const): Remove macro.
22247 Include <string.h> unconditionally.
22248 (my_index): Remove; all uses changed to strchr.
22249 (strlen): Remove decl.
22250 (exchange): Remove forward decl; no longer needed.
22251 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
22252 Define with prototype.
22253 * lib/getopt1.c (const): Remove macro.
22254 (getopt_long, getopt_long_only, main): Define with prototype.
22256 * lib/getugroups.c: Include <string.h> unconditionally.
22258 * lib/getusershell.c: Include <stdlib.h> unconditionally.
22259 (getusershell, setusershell, endusershell, readname, main):
22260 Define with prototypes.
22262 * lib/group-member.c: Include group-member.h first.
22263 Include <stdlib.h> unconditionally.
22265 * lib/hard-locale.c: Include hard-locale.h first.
22266 Include <stdlib.h>, <string.h> unconditionally.
22268 * lib/hash.c (free, malloc): Remove decls.
22269 Include <stdlib.h> unconditionally.
22271 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
22272 (getenv): Do not declare.
22274 * lib/idcache.c: Include <string.h> unconditionally.
22276 * lib/long-options.c: Include long-options.h first, to test interface.
22277 Include <stdlib.h> unconditionally.
22279 * lib/makepath.c: Include makepath.h first, to test interface.
22280 Include <stdlib.h> and <string.h> unconditionally.
22282 * lib/linebuffer.c: Include <stdlib.h>.
22283 (free): Remove decl.
22285 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
22286 stddef.h. rpl_malloc returns void *, not char *.
22287 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
22290 * lib/md5.h: Include <limits.h> unconditionally.
22291 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
22292 (__P): Remove; all uses removed.
22293 * lib/md5.c: Include "md5.h" first.
22294 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
22295 md5_buffer, md5_process_bytes, md5_process_block):
22296 Define with prototypes.
22297 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
22298 * lib/sha.c: Include "sha.h" first.
22299 Include <stdlib.h>, <string.h> unconditionally.
22301 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
22302 * lib/memcmp.c (__ptr_t): Likewise.
22303 * lib/memrchr.c (__ptr_t): Likewise.
22304 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
22305 Include <string.h> unconditionally.
22306 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
22307 * lib/memchr.c: Include <stdlib.h> unconditionally.
22308 * lib/memchr.c (LONG_MAX): Remove.
22309 * lib/memrchr.c (LONG_MAX): Likewise.
22310 * lib/memchr.c (__memchr): Define via a prototype.
22311 * lib/memrchr.c (__memrchr): Likewise.
22312 * lib/memcmp.c (__P): Remove, and remove all uses.
22313 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
22314 Remove forward decls; no longer needed.
22315 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
22316 Use types required by C89 in prototype.
22318 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
22319 * lib/savedir.c: Likewise.
22320 * lib/mkdir.c (free): Remove decl.
22321 * lib/rmdir.c (rmdir): Define with a prototype.
22322 * lib/savedir.c: Include savedir.h first, to test interface.
22324 * lib/mktime.c (STDC_HEADERS): Remove.
22325 Include <stdlib.h>, <string.h> unconditionally.
22327 * lib/modechange.c: Include <stdlib.h> unconditionally.
22328 (malloc): Remove decl.
22330 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
22331 (free): Remove decl.
22333 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
22334 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
22335 (This type really should be intptr_t, but that's a C99ism.)
22336 (_obstack_memcpy): Remove: all uses changed to memcpy.
22337 Include <string.h> unconditionally.
22338 (struct obstack): Assume __STDC__ for types of members
22339 chunkfun, freefun, extra_arg.
22340 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
22341 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
22342 obstack_begin, obstack_specify_allocation,
22343 obstack_specify_allocation_with_arg, obstack_chunkfun,
22344 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
22345 Remove unprototyped decls and the macros that use them.
22346 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
22347 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
22348 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
22349 (defined __STDC__ && __STDC__)]:
22350 Remove nonprototyped code.
22351 Include <stdlib.h> unconditionally.
22352 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
22353 _obstack_allocated_p, _obstack_free, obstack_free,
22354 _obstack_memory_used, print_and_abort):
22355 Define using prototypes.
22356 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
22357 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
22358 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
22359 obstack_next_free, obstack_object_size, obstack_room) [0]:
22360 Remove unused, unprototyped code.
22362 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
22364 * lib/physmem.c (physmem_total, physmem_available, main): Define
22367 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
22368 (main): Define with a prototype.
22370 * lib/posixver.c (getenv): Remove decl.
22372 * lib/putenv.c (malloc): Returns void *, not char *.
22373 Include <string.h> unconditionally.
22374 (strchr, memcpy, NULL): Do not define.
22376 * lib/readtokens.c: Include readtokens.h first, to test interface.
22377 Include <stdlib.h>, <string.h> unconditionally.
22378 (init_tokenbuffer): Define with a prototype.
22380 * lib/regex.c (PARAMS): Remove. All uses removed.
22381 All uses of _RE_ARGS removed, too.
22382 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
22384 (bzero): Assume memset exists.
22385 (memcmp, memcpy, NULL): Remove.
22386 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
22387 char, or assignments to local vars of type signed char.
22388 (init_syntax_once, PREFIX(extract_number_and_incr),
22389 PREFIX(print_partial_compiled_pattern),
22390 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
22391 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
22392 PREFIX(regex_grow_registers), PREFIX(regex_compile),
22393 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
22394 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
22395 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
22396 wcs_compile_range, byte_compile_range, truncate_wchar,
22397 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
22398 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
22399 count_mbs_length, wcs_re_match_2_internal,
22400 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
22401 PREFIX(alt_match_null_string_p),
22402 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
22403 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
22404 regfree, PREFIX(extract_number)): Define with prototype. Remove
22405 now-unnecessary declaration, if any.
22406 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
22408 Remove now-unnecessary casts among pointer types.
22409 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
22411 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
22412 (free): Remove decl.
22414 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
22416 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
22417 (free): Remove decl.
22419 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
22420 * lib/xgetcwd.c: Likewise.
22422 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
22423 (free): Remove decl.
22425 * lib/strchrnul.c (strchrnul): Define with a prototype.
22426 Fix bug: c_in was not converted to char before searching.
22428 The following changes are not K&R related:
22430 * lib/group-member.h: Include <sys/types.h>, so that this file is
22432 * lib/makepath.h: Likewise.
22434 * lib/getusershell.c (readname, default_index, line_size, readname):
22435 Use size_t, not int, for sizes.
22436 (readname): If the size overflows, report an error instead of
22439 2003-09-09 Paul Eggert <eggert@twinsun.com>
22441 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
22444 2003-09-09 Paul Eggert <eggert@twinsun.com>
22446 * README: New section: portability guidelines.
22448 2003-09-09 Derek Robert Price <derek@ximbiot.com>
22450 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
22453 2003-09-09 Derek Robert Price <derek@ximbiot.com>
22455 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
22457 2003-09-08 Paul Eggert <eggert@twinsun.com>
22459 Assume C89 or better; remove K&R cruft.
22460 A few of these changes were first proposed by Derek Robert Price
22461 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
22463 * lib/addext.c: Include <string.h> unconditionally.
22464 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
22465 Don't declare getenv or malloc.
22467 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
22468 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
22470 (find_stack_direction, alloca): Use prototypes.
22472 * lib/atexit.c (atexit): Define using a prototype.
22474 * lib/basename.c, dirname.c, stripslash.c:
22475 Include <string.h> unconditionally.
22477 * lib/bcopy.c: Include <stddef.h>.
22478 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
22480 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
22482 * lib/error.h (error, error_at_line, error_print_progname)
22483 [! (defined (__STDC__) && __STDC__)]: Remove decls.
22484 * lib/error.c: Include error.h first, to check interface.
22485 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
22486 (VA_START): Remove; all uses changeed to va_start.
22487 (exit, strerror): Remove decls.
22488 (error_print_progname): Prototype uncondionally.
22489 Don't include <errno.h>; no longer needed.
22490 (private_strerror): Remove.
22491 (error_tail): Always define.
22492 (error, error_at_line): Assume C89 or better; always use prototypes.
22493 * lib/fatal.c: Include "fatal.h" first, to test interface.
22494 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
22495 (VA_START): Remove; all uses changed to va_start.
22496 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
22498 (exit): Remove decl.
22499 (fatal): Prototype unconditionally. Assume va_start works.
22500 Abort at end, to pacify gcc.
22502 * lib/euidaccess.c (main): Define with a prototype.
22504 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
22506 * lib/exitfail.c: Include <stdlib.h> unconditionally.
22508 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
22510 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
22511 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
22512 (getenv): Remove decl.
22513 (fnmatch): Define using a prototype.
22514 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
22515 (FCT): Define using a prototype.
22517 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
22519 * lib/gethostname.c: Include <stddef.h>.
22520 (gethostname): Define with prototype. Length is size_t, not int.
22522 2003-09-08 Paul Eggert <eggert@twinsun.com>
22524 Assume C89 or better; remove K&R cruft.
22525 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
22526 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
22527 string.h, getenv, malloc.
22528 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
22530 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
22531 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
22532 do not check for strerror.
22533 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
22534 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
22535 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
22536 do not check for doprnt or vprintf.
22537 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
22538 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
22540 2003-09-08 Paul Eggert <eggert@twinsun.com>
22542 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
22543 getversion.c should have been removed then, but was accidentally
22546 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
22547 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
22549 2003-09-08 Karl Berry <karl@gnu.org>
22551 * config/config.sub, config.guess, srclistvars.sh: update from savannah
22552 config, forget about prep.
22554 * config/depcomp, missing: update from automake.
22556 2003-09-07 Paul Eggert <eggert@twinsun.com>
22558 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
22559 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
22561 2003-09-07 Paul Eggert <eggert@twinsun.com>
22563 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
22564 copy_tm_result. Bug reported by Simon Josefsson in
22565 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
22567 2003-09-06 Paul Eggert <eggert@twinsun.com>
22569 * m4/time_r.m4: New file.
22570 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
22571 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
22572 is. Check for timegm declaration.
22573 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
22574 Do not check for gmtime_r.
22575 Replace mktime if __mktime_internal does not exist and if mktime
22576 hasn't been replaced already.
22578 2003-09-06 Paul Eggert <eggert@twinsun.com>
22580 * lib/time_r.c, lib/time_r.h: New files.
22582 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
22584 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
22585 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
22587 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
22589 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
22590 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
22591 Include <time_r.h>.
22593 * lib/timegm.c: Switch to glibc implementation, with the following
22595 [defined HAVE_CONFIG_H]: Include <config.h>.
22596 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
22597 (__mktime_internal) [!defined _LIBC]: New decl.
22598 (__gmtime_r) [!defined _LIBC]: New macro and function.
22599 (timegm): Use a prototype, since gnulib assumes C89.
22600 Do not bother declaring tmp to be const, as it's not really usefu.
22601 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
22602 (timegm): Declare only if HAVE_DECL_TIMEGM.
22604 2003-09-06 Paul Eggert <eggert@twinsun.com>
22606 * MODULES.html.sh (func_all_modules): Add time_r.
22607 * modules/time_r: New file.
22608 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
22609 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
22611 2003-09-03 Paul Eggert <eggert@twinsun.com>
22613 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
22614 Bug reported by Lute Kamstra in
22615 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
22617 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
22618 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
22619 course with correspondingly smaller numbers for tomorrow and
22620 yesterday. From Tadayoshi Funaba. Originally installed into
22621 sh-utils on 1999-08-07, but the patch got lost (I guess during the
22624 2003-08-31 Simon Josefsson <jas@extundo.com>
22626 * modules/timegm: New file.
22627 * MODULES.html.sh (func_all_modules): Add timegm.
22629 2003-08-31 Simon Josefsson <jas@extundo.com>
22631 * m4/timegm.m4: New file.
22633 2003-08-31 Simon Josefsson <jas@extundo.com>
22635 * lib/timegm.h: New file.
22636 * lib/timegm.c: New file. Based on
22637 wget-1.8.2/src/http.c:mktime_from_utc.
22639 2003-08-31 Karl Berry <karl@gnu.org>
22641 * lib/argp.h: update from libc.
22643 2003-08-28 Bruno Haible <bruno@clisp.org>
22645 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
22646 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
22647 followed by '#define fnmatch fnmatch_posix' gives an error.
22649 2003-08-28 Bruno Haible <bruno@clisp.org>
22651 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
22652 warning on QNX, which defines O_BINARY to 000000.
22654 2003-08-27 Jim Meyering <jim@meyering.net>
22656 * m4/mkstemp.m4: Require that the system mkstemp be able to create
22657 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
22658 would fail after 32. Reported by Danny Levinson. Details here:
22659 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
22661 2003-08-24 Bruno Haible <bruno@clisp.org>
22663 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
22664 MSVC7 <stdio.h> is included later.
22666 2003-08-22 Simon Josefsson <jas@extundo.com>
22668 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
22670 2003-08-20 Karl Berry <karl@gnu.org>
22672 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
22674 2003-08-20 Bruno Haible <bruno@clisp.org>
22676 * modules/progname: New file.
22677 * MODULES.html.sh (func_all_modules): Add progname.
22679 2003-08-20 Bruno Haible <bruno@clisp.org>
22681 * lib/progname.h: New file, from GNU gettext.
22682 * lib/progname.c: New file, from GNU gettext.
22683 * lib/progreloc.c: New file, from GNU gettext.
22685 2003-08-19 Jim Meyering <jim@meyering.net>
22687 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
22688 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
22690 2003-08-19 Bruno Haible <bruno@clisp.org>
22692 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
22695 2003-08-19 Bruno Haible <bruno@clisp.org>
22697 * lib/xstrdup.c: Assume <string.h> exists.
22699 2003-08-18 Paul Eggert <eggert@twinsun.com>
22701 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
22704 2003-08-18 Jim Meyering <jim@meyering.net>
22706 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
22707 * m4/lib-ld.m4: Likewise.
22709 2003-08-18 Jim Meyering <jim@meyering.net>
22711 * lib/setenv.h: Indent nested cpp directive.
22712 * lib/vasnprintf.c: Remove trailing blanks.
22714 2003-08-17 Simon Josefsson <jas@extundo.com>
22716 * modules/xstrndup: New file.
22717 * MODULES.html.sh (func_all_modules): Add xstrndup.
22719 2003-08-17 Simon Josefsson <jas@extundo.com>
22721 * modules/argp: Fix autoconf macro name. Add more dependencies.
22723 2003-08-17 Simon Josefsson <jas@extundo.com>
22725 * m4/xstrndup.m4: New file.
22727 2003-08-17 Simon Josefsson <jas@extundo.com>
22729 * m4/argp.m4: New file.
22731 2003-08-17 Simon Josefsson <jas@extundo.com>
22732 Bruno Haible <bruno@clisp.org>
22734 * lib/xstrndup.h: New file.
22735 * lib/xstrndup.c: New file.
22737 2003-08-17 Bruno Haible <bruno@clisp.org>
22739 * modules/strndup (Files, Include): Add lib/strndup.h.
22741 2003-08-17 Bruno Haible <bruno@clisp.org>
22743 * modules/euidaccess (Files): Add lib/euidaccess.h.
22745 2003-08-17 Bruno Haible <bruno@clisp.org>
22747 * lib/strndup.h: New file.
22749 2003-08-17 Bruno Haible <bruno@clisp.org>
22751 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
22752 like AC_GNU_SOURCE.
22753 * modules/extensions (configure.ac): Comment out the invocation of
22754 gl_USE_SYSTEM_EXTENSIONS.
22756 2003-08-16 Paul Eggert <eggert@twinsun.com>
22758 Merges from coreutils, etc.
22759 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
22760 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
22761 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
22763 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
22764 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
22766 2003-08-16 Paul Eggert <eggert@twinsun.com>
22768 Document merge from coreutils.
22769 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
22770 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
22771 * modules/utime: Add m4/utimes-null.m4.
22773 2003-08-16 Paul Eggert <eggert@twinsun.com>
22775 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
22776 space, undoing this 2003-08-12 change:
22777 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
22779 2003-08-16 Paul Eggert <eggert@twinsun.com>
22781 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
22782 strtoul.c from libc, undoing this 2003-08-12 change:
22783 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
22785 2003-08-16 Jim Meyering <jim@meyering.net>
22787 Merges from coreutils.
22788 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
22789 prefix. Adjust cache variables similarly. Create 500 rather than
22790 just 300 files, to exercise bug on Darwin6.5, too.
22791 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
22793 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
22794 AM_SYS_POSIX_TERMIOS.
22795 Reported by mkc@mathdogs.com.
22796 Also change use of $am_cv_sys_posix_termios
22797 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
22798 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
22799 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
22800 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
22801 in /proc/mounts until it finds one with matching device number. This
22802 is unnecessary when the FILE argument *is* a mount point. No stat call
22803 is necessary in that case. So, disable the statvfs-testing code on
22804 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
22805 as RedHat bug# 84846.
22806 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
22807 to 1MB, so as not to render systems with no stack size limit (e.g.,
22808 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
22809 Include <unistd.h>. On some systems,
22810 it is required for the definition of _SC_PAGESIZE.
22812 2003-08-16 Jim Meyering <jim@meyering.net>
22814 Merge from coreutils.
22815 * lib/xstrtoimax.c: #else #if -> #elif.
22816 * lib/xstrtoumax.c: Likewise.
22818 2003-08-16 Jim Meyering <jim@meyering.net>
22820 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
22821 * m4/utimes.m4: Removed.
22822 * m4/utimes-null.m4: Renamed from utimes.m4.
22824 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
22825 to 1MB, so as not to render systems with no stack size limit (e.g.,
22826 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
22827 Include <unistd.h>. On some systems,
22828 it is required for the definition of _SC_PAGESIZE.
22830 2003-08-16 Jim Meyering <jim@meyering.net>
22831 and Paul Eggert <eggert@cs.ucla.edu>
22833 Merges from coreutils, etc.
22835 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
22836 using the latest version from cvs. This avoids problems with #line
22837 directives using a vendor (Sun) compiler.
22838 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
22839 Don't set GETGROUPS_LIB here; now it's
22840 done via getgroups.m4's wrapper function.
22841 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
22842 rather than just in sh-util/configure.in, so that the
22843 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
22845 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
22846 AC_FUNC_GETLOADAVG where to find getloadavg.c.
22847 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
22848 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
22849 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
22850 Remove code that is now done by the newly-required macros.
22851 Append $(EXEEXT) to DF_PROG.
22852 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
22853 Do not invoke or require the following here,
22854 since prereq.m4 or some gnulib .m4 now does this for us:
22855 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
22856 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
22857 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
22858 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
22859 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
22860 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
22861 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
22863 Do not replace the following functions, as this is now the job
22864 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
22865 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
22866 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
22867 atexit getpass, strdup, getpagesize.
22869 Do not check for the following functions, as this is now the job
22870 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
22871 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
22873 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
22874 Check for sys/sysctl.h.
22875 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
22876 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
22877 of checking for ssize_t ourselves.
22879 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
22880 Require every macro that gnulib/modules/* suggests for us.
22881 (jm_PREREQ_ADDEXT): New macro.
22882 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
22883 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
22885 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
22886 (gl_PHYSMEM): Use it.
22887 Also check for `table' function.
22888 Check for new headers and functions.
22889 Add check for sys/sysmp.h.
22890 With suggestions from Kaveh Ghazi.
22891 Ignore headers that are present but cannot be compiled. This
22892 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
22895 2003-08-15 Paul Eggert <eggert@twinsun.com>
22897 Document merge from coreutils.
22898 * modules/userspec: Depend on posixver.
22899 * modules/strftime: Depend on tzset.
22901 2003-08-15 Paul Eggert <eggert@twinsun.com>
22903 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
22904 rather than tab, after '#' in shell-script copyright notices.
22905 Suggested by Bruno Haible.
22907 2003-08-15 Paul Eggert <eggert@twinsun.com>
22909 * config/srclist-update: Use three spaces, rather than tab, after '#'
22910 in shell-script copyright notices. Suggested by Bruno Haible.
22911 Remove unnecessary parenthesization in regular expression.
22913 2003-08-15 Jim Meyering <jim@meyering.net>
22915 Merge from coreutils.
22916 * lib/xgethostname.c: Include <stdlib.h>.
22917 (xghostname): Don't exit for anything other than memory-related
22918 failure; just return NULL.
22919 * lib/userspec.c: Include "posixver.h".
22920 (parse_user_spec): Accept `.' as a separator only
22921 in pre-POSIX-200112 mode.
22922 * lib/strtoimax.c: Use #elif rather than #else #if.
22923 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
22924 Remove function, now that we can rely on a working tzset function.
22925 [!_LIBC]: Ensure that the required autoconf test has been run.
22926 [!defined _NL_CURRENT && HAVE_STRFTIME]:
22927 Use underlying_strftime for %r.
22928 * lib/sha.c: Merge in some clean-up and optimization changes from
22930 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
22931 Ensure that it is a multiple of 64.
22932 Rearrange loop exit tests so as to avoid performing an
22933 additional fread after encountering an error or EOF.
22934 * lib/realloc.c: Update copyright date.
22936 2003-08-15 Jim Meyering <jim@meyering.net>
22937 and Paul Eggert <eggert@twinsun.com>
22939 Merge from coreutils.
22940 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
22941 member but strut utmpx does not. Needed for AIX 4.3.3.
22942 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
22944 2003-08-15 Jim Meyering <jim@meyering.net>
22945 and Paul Eggert <eggert@cs.ucla.edu>
22947 Merges from coreutils, etc.
22948 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
22949 Require gl_FUNC_TZSET_CLOBBER.
22950 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
22951 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
22954 2003-08-14 Paul Eggert <eggert@twinsun.com>
22956 Help the merge from coreutils.
22957 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
22958 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
22959 * m4/tzset.m4: Use it too.
22961 2003-08-14 Paul Eggert <eggert@twinsun.com>
22963 * modules/tzset: New file.
22965 2003-08-14 Jim Meyering <jim@meyering.net>
22967 Merges from coreutils.
22968 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
22969 variable names, rather than @FNMATCH_H@.
22970 * modules/alloca: Likewise for $(ALLOCA_H).
22972 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
22973 the three copies of the literal target, `fnmatch.h'.
22974 * modules/alloca (alloca.h): Likewise.
22976 2003-08-14 Jim Meyering <jim@meyering.net>
22978 Merge from coreutils.
22979 * m4/tzset.m4: New file.
22980 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
22981 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
22982 otherwise, AIX 5.1 systems would end up using the latter.
22983 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
22984 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
22985 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
22986 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
22988 2003-08-14 Jim Meyering <jim@meyering.net>
22990 Merge from coreutils.
22991 * lib/obstack.h: Whitespace changes.
22992 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
22993 and xcalloc return values.
22994 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
22995 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
22996 hang on OSF/1 5.1 for DIR on both local and remote file systems.
22997 Reported by (and fix confirmed by) Nelson H. F. Beebe.
22998 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
23000 Use mntctl's return value to drive the entry-processing loop, since
23001 we can't rely on the value of the vmt_length member in the last
23002 entry. On some systems doing so could result in exhausting
23003 virtual memory. Based in part on a patch from Mike Jetzer.
23005 2003-08-14 Jim Meyering <jim@meyering.net>
23006 and Paul Eggert <eggert@twinsun.com>
23008 Merges from coreutils, plus other fixes.
23009 * lib/physmem.c: Merge in portability changes from gcc/libiberty
23010 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
23011 for credits and details. Thanks to Kaveh Ghazi for helping
23012 to keep these files in sync.
23013 (ARRAY_SIZE): Define it.
23014 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
23015 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
23016 (memcasecmp): Don't assume size_t fits in unsigned int.
23017 Remove casts and duplicate code.
23018 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
23019 (memcpy): Remove definition.
23020 Merge in some clean-up and optimization changes from glibc.
23021 [BLOCKSIZE]: Move definition to top of file.
23022 Ensure that it is a multiple of 64.
23023 Rearrange loop exit tests so as to avoid performing an
23024 additional fread after encountering an error or EOF.
23025 * lib/md5.h (md5_uintptr): Define.
23026 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
23027 return to the initial working directory. Preserve errno
23029 * lib/idcache.c: Include "xalloc.h".
23030 (xmalloc, xrealloc): Remove decls.
23031 (getuser): Remove casts no longer required in C89.
23032 * lib/human.c: Include stdio.h, for sprintf.
23033 * lib/group-member.c: Include "xalloc.h".
23034 (xmalloc, xrealloc): Remove decls.
23035 (get_group_info): Remove casts no longer required in C89.
23036 * lib/getusershell.c (readname): Remove casts no longer required in
23038 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
23039 * lib/getline.c: Whitespace fix, from coreutils.
23041 2003-08-13 Paul Eggert <eggert@twinsun.com>
23043 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
23046 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
23047 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
23048 Undo previous (whitespace-only) change.
23050 2003-08-13 Paul Eggert <eggert@twinsun.com>
23052 * lib/exclude.c: Include <ctype.h>
23053 (IN_CTYPE_DOMAIN): New macro.
23054 (is_space): New fn.
23055 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
23058 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
23059 Undo previous (whitespace-only) change.
23061 2003-08-13 Paul Eggert <eggert@twinsun.com>
23063 * config/srclist-update: Change update back to the old behavior,
23064 leaving whitespace alone. Use one 'sed' command rather than a
23066 (fixlicense): Now a variable, not a function.
23067 (remove_trailing_blanks): Remove.
23068 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
23069 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
23070 Undo previous (whitespace-only) change.
23072 2003-08-12 Paul Eggert <eggert@twinsun.com>
23074 Merge from coreutils.
23075 * modules/euidaccess: Add lib_SOURCES, include for new
23078 2003-08-12 Paul Eggert <eggert@twinsun.com>
23080 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
23081 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
23082 Normalize leading white space and remove trailing white space.
23084 Merge from coreutils
23085 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
23087 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
23088 0.12.1. These files are now being upgraded automatically by
23089 ../config/srclist-update.
23091 2003-08-12 Paul Eggert <eggert@twinsun.com>
23093 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
23094 Normalize leading white space and remove trailing white space.
23095 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
23096 notice, as per ../config/srclist-update.
23098 Merge from coreutils.
23099 * lib/euidaccess.h: New file.
23100 * lib/euidaccess.c: Include it.
23101 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
23102 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
23103 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
23105 2003-08-12 Paul Eggert <eggert@twinsun.com>
23107 * config/srclist-update: Add copyright notice.
23108 (remove_id_lines, remove_trailing_blanks): New constants.
23109 (fixfile): Use them to normalize spacing a bit in copied files.
23110 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
23111 Normalize leading white space and remove trailing white space.
23113 * config/texinfo.tex: Sync with texinfo.
23115 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
23116 strtoul.c from libc, to merge coreutils whitespace changes.
23118 * config/srclist.txt: Get the following m4 files from gettext:
23119 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
23120 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
23121 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
23124 2003-08-12 Karl Berry <karl@gnu.org>
23126 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
23129 2003-08-11 Paul Eggert <eggert@twinsun.com>
23131 * modules/gnu-source, m4/gnu-source.m4:
23132 Remove; we're assuming Autoconf 2.54 or later now.
23133 Suggested by Bruno Haible.
23134 * MODULES.html.sh (func_all_modules): Remove gnu-source.
23136 2003-08-11 Bruno Haible <bruno@clisp.org>
23138 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
23140 2003-08-11 Bruno Haible <bruno@clisp.org>
23142 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
23143 (vasnprintf): Use it instead of wcslen.
23145 2003-08-11 Bruno Haible <bruno@clisp.org>
23147 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
23148 value to ensure that _Bool promotes to int. Use #define for _Bool when
23149 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
23151 2003-08-10 Karl Berry <karl@gnu.org>
23153 * lib/regex.h: update from libc (whitespace fix).
23155 2003-08-09 Paul Eggert <eggert@twinsun.com>
23157 Merge some files from coreutils. These changes were
23158 originally made by Jim Meyering.
23159 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
23160 many older Unixes require this.
23161 * lib/alloca.c (alloca): Remove cast to argument of free;
23162 no longer needed in C89.
23163 * lib/alloca_.h, regex.h: Fix white space to match
23164 what GNU indent does.
23166 2003-08-09 Paul Eggert <eggert@twinsun.com>
23168 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
23169 apparently Emacs's Unicode mode got confused before my 2003-08-05
23172 2003-08-08 Paul Eggert <eggert@twinsun.com>
23174 * m4/extensions.m4: New file.
23175 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
23176 Require gl_USE_SYSTEM_EXTENSIONS.
23177 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
23178 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
23180 2003-08-08 Paul Eggert <eggert@twinsun.com>
23182 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
23183 * modules/extensions, modules/gnu-source: New files.
23184 * modules/timespec, modules/unlocked-io: Depend on extensions.
23186 2003-08-07 Paul Eggert <eggert@twinsun.com>
23188 * modules/restrict: New file.
23189 * MODULES.html.sh (func_all_modules): Add restrict.
23190 * modules/regex: Depend on restrict.
23192 2003-08-07 Paul Eggert <eggert@twinsun.com>
23194 * m4/restrict.m4: New file.
23195 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
23197 2003-08-07 Bruno Haible <bruno@clisp.org>
23199 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
23200 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
23202 2003-08-07 Bruno Haible <bruno@clisp.org>
23204 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
23205 makes the module 'getndelim2' compatible with the module 'getline'.
23207 2003-08-05 Paul Eggert <eggert@twinsun.com>
23209 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
23210 byte with "\201" to avoid glitches when editing that source file
23211 with multi-gnome-terminal.
23213 2003-08-05 Paul Eggert <eggert@twinsun.com>
23215 * lib/bumpalloc.h: Remove.
23217 2003-08-05 Paul Eggert <eggert@twinsun.com>
23219 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
23220 * modules/bumpalloc: Remove.
23222 2003-08-04 Paul Eggert <eggert@twinsun.com>
23224 * lib/getloadavg.c: Change copyright notice and spacing to conform to
23227 Merge from coreutils.
23228 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
23230 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
23231 from Karl Berry, implemented by Jim Meyering.
23232 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
23233 from Dmitry V. Levin.
23234 Remove anachronistic cast of xrealloc.
23235 * lib/fnmatch_.h (__const): Remove. Use 'const'.
23236 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
23237 type. Otherwise, it wouldn't compile with at least /bin/cc on
23238 ymp-cray-unicos9.0.2.X.
23239 Combine two mostly-identical uses of alloca into one.
23240 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
23242 2003-08-04 Dave Love <d.love@dl.ac.uk>
23246 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
23247 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
23248 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
23249 obsolete NLIST_NAME_UNION.
23250 [__GNU__]: Undef BSD and FSCALE.
23251 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
23253 2003-08-03 Paul Eggert <eggert@twinsun.com>
23255 * lib/stdbool_.h (_Bool): Make it signed char, instead of
23256 an enum type, so that it's guaranteed to promote to int. See:
23257 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
23259 2003-08-03 Karl Berry <karl@gnu.org>
23261 * config/depcomp: update from automake.
23263 2003-07-31 Paul Eggert <eggert@twinsun.com>
23265 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
23266 (strerror): Don't assume that a printable int fits in 14 bytes.
23268 2003-07-31 Bruno Haible <bruno@clisp.org>
23270 * modules/getpass-gnu: New file.
23271 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
23273 2003-07-31 Bruno Haible <bruno@clisp.org>
23275 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
23277 2003-07-24 Karl Berry <karl@gnu.org>
23279 * config/missing: update from automake.
23281 2003-07-24 Derek Robert Price <derek@ximbiot.com>
23282 Bruno Haible <bruno@clisp.org>
23284 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
23285 * lib/getline.c (getline, getdelim): Likewise.
23286 Remove _GNU_SOURCE define; now it's defined in config.h through
23289 2003-07-23 Karl Berry <karl@gnu.org>
23291 * config/config.sub: update from prep.
23293 2003-07-22 Paul Eggert <eggert@twinsun.com>
23295 * modules/xalloc (Depends-on): Add exitfail.
23296 * modules/xmemcoll: Likewise.
23298 2003-07-22 Paul Eggert <eggert@twinsun.com>
23300 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
23301 over-parenthesization in macros.
23303 Sync with coreutils.
23305 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
23308 Use `exit_failure' for xalloc and xmemcoll instead of their own
23309 private exit-failure variables.
23310 * lib/xalloc.h (xalloc_exit_failure): Remove.
23311 * lib/xmalloc.c: Likewise. Include exitfail.h.
23312 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
23313 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
23314 * lib/xmemcoll.c: Likewise. Include exitfail.h.
23315 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
23317 2003-07-20 Jim Meyering <jim@meyering.net>
23319 * modules/closeout (Depends-on): Add exitfail.
23320 Suggestion from Bruno Haible.
23322 2003-07-19 Karl Berry <karl@gnu.org>
23324 * config/config.sub: update from prep.
23326 2003-07-18 Paul Eggert <eggert@twinsun.com>
23328 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
23330 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
23331 to test that it can stand by itself. Include "exitfail.h".
23332 Clients should set exit_failure instead.
23333 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
23335 2003-07-18 Bruno Haible <bruno@clisp.org>
23337 * modules/getndelim2: New file.
23338 * modules/getline: Share files with module getndelim2.
23339 * modules/getnline: Depend on getndelim2 instead of sharing files with
23340 it. Add getnline.c to lib_SOURCES.
23341 * MODULES.html.sh (func_all_modules): Add getndelim2.
23343 2003-07-18 Bruno Haible <bruno@clisp.org>
23345 * m4/getndelim2.m4: New file.
23346 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
23347 invoke gl_PREREQ_GETNDELIM2.
23348 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
23349 gl_PREREQ_GETNDELIM2.
23350 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
23353 2003-07-18 Bruno Haible <bruno@clisp.org>
23355 * lib/getndelim2.h: New file.
23356 * lib/getndelim2.c: Make into a module of its own. Include config.h,
23358 (getndelim2): Make non-static. Change return type to ssize_t.
23359 * lib/getline.h: Change argument names.
23360 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
23361 * lib/getnline.c: Include getndelim2.h.
23363 2003-07-18 Andreas Schwab <schwab@suse.de>
23365 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
23367 2003-07-17 Karl Berry <karl@gnu.org>
23369 * config/config.sub: update from prep.
23371 2003-07-17 Bruno Haible <bruno@clisp.org>
23373 * modules/getnline: New file.
23374 * modules/getline: Add lib/getndelim2.c to source file list.
23375 * MODULES.html.sh (func_all_modules): Add getnline.
23377 2003-07-17 Bruno Haible <bruno@clisp.org>
23379 * m4/getnline.m4: New file.
23381 2003-07-17 Bruno Haible <bruno@clisp.org>
23383 * m4/Makefile.am.in: Remove file.
23384 * m4/Makefile.am: Remove file.
23385 * m4/Makefile.in: Remove file.
23387 2003-07-17 Bruno Haible <bruno@clisp.org>
23389 * lib/getnline.h: New file.
23390 * lib/getnline.c: New file.
23391 * lib/getndelim2.c: New file, extracted from getline.c.
23392 (getndelim2): Renamed from getdelim2, with added nmax argument.
23393 * lib/getline.c: Include getndelim2.c.
23394 (getdelim2): Moved out to getndelim2.c.
23395 (getline, getdelim): Update.
23397 2003-07-17 Bruno Haible <bruno@clisp.org>
23399 * lib/Makefile.am: Remove file.
23400 * lib/Makefile.in: Remove file.
23402 2003-07-17 Bruno Haible <bruno@clisp.org>
23404 * configure.in: Remove file.
23405 * Makefile.in: Remove file.
23407 2003-07-17 Bruno Haible <bruno@clisp.org>
23409 * MODULES.html.sh: Put the </BODY> right before </HTML>.
23411 2003-07-16 Karl Berry <karl@gnu.org>
23413 * config/srclist-update: was running fixlicense twice, which caused
23414 texinfo.tex to be nullified for some reason. Simplify,
23415 $gplsrc is no longer needed as far as I can see?
23417 2003-07-16 Jim Meyering <jim@meyering.net>
23419 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
23421 2003-07-15 Paul Eggert <eggert@twinsun.com>
23423 * config/srclist.txt: Get the following files from gettext-runtime/intl
23424 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
23425 ref-del.sin. From Bruno Haible.
23426 * config/srclist-update (fixfile): Change grep pattern again, since the
23427 previous fix didn't work (there was another trailing $). Use
23428 '[$]' to escape the $s.
23430 2003-07-15 Karl Berry <karl@gnu.org>
23432 * lib/vasnprintf.c: update from gettext.
23434 2003-07-15 Karl Berry <karl@gnu.org>
23436 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
23437 gets expanded when surrounded by '$'.
23439 2003-07-15 Jim Meyering <jim@meyering.net>
23441 * modules/save-cwd: Don't depend on error. From Derek Price.
23443 2003-07-15 Jim Meyering <jim@meyering.net>
23445 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
23447 2003-07-14 Simon Josefsson <jas@extundo.com>
23449 * modules/mempcpy: New file.
23450 * MODULES.html.sh (func_all_modules): Add mempcpy.
23452 2003-07-14 Simon Josefsson <jas@extundo.com>
23454 * m4/mempcpy.m4: New file.
23456 2003-07-14 Simon Josefsson <jas@extundo.com>
23458 * lib/mempcpy.h: New file.
23459 * lib/mempcpy.c: New file.
23461 2003-07-14 Paul Eggert <eggert@twinsun.com>
23463 * modules/getdate, modules/posixtm: Depend on mktime.
23465 2003-07-14 Paul Eggert <eggert@twinsun.com>
23467 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
23468 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
23469 unicodeio.c, unicodeio.h, unlocked-io.h:
23470 Switch from LGPL to GPL.
23472 2003-07-14 Paul Eggert <eggert@twinsun.com>
23474 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
23475 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
23476 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
23477 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
23478 vasprintf.c, vasprintf.h: Regenerate. These files are now being
23479 updated automatically by ../config/srclist-update. This changes
23480 their license from LPGL to GPL.
23482 2003-07-14 Paul Eggert <eggert@twinsun.com>
23484 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
23485 assumed to refer to the root of the most recent stable gettext version.
23486 * config/srclistvars.sh: Add defaults for eggert.
23487 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
23488 Match "This program" as well as "The program". This is needed
23491 2003-07-14 Jim Meyering <jim@meyering.net>
23493 Don't emit diagnostics. Let callers do that.
23494 * lib/save-cwd.c: Don't include "error.h".
23495 (save_cwd): Don't call error. Ensure that errno is valid
23496 when returning nonzero.
23498 * lib/save-cwd.h (restore_cwd): Update prototype.
23499 * lib/save-cwd.c (restore_cwd): Remove two parameters.
23500 Simplify. Don't call error upon failure. Let callers do that.
23501 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
23502 when auditing is enabled. But don't bother updating the #if.
23504 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
23506 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
23507 it breaks C++ compilation.
23508 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
23510 2003-07-10 Simon Josefsson <jas@extundo.com>
23512 * modules/strchrnul (Makefile.am): Add strchrnul.h.
23514 2003-07-10 Jim Meyering <jim@meyering.net>
23516 * m4/clock_time.m4: Remove trailing blank.
23517 * m4/intmax_t.m4: Likewise.
23519 2003-07-10 Jim Meyering <jim@meyering.net>
23521 * lib/vasnprintf.c: Remove trailing blanks.
23522 Make cpp indentation consistent.
23524 2003-07-09 Paul Eggert <eggert@twinsun.com>
23526 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
23527 posixver.c, strftime.c, strnlen.c, strverscmp.c:
23528 Switch from LGPL to GPL.
23530 2003-07-09 Paul Eggert <eggert@twinsun.com>
23532 * config/srclist.txt: Sort sublists. Add
23533 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
23534 that differ from gnulib for one reason or another; we'd like this list
23535 to be smaller but for now let's document what we have.
23537 2003-07-08 Paul Eggert <eggert@twinsun.com>
23539 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
23540 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
23541 and sweeter "eval x=$x".
23542 * config/srclist.txt: Get lib/argp* from glibc.
23544 2003-07-07 Paul Eggert <eggert@twinsun.com>
23546 * lib/mktime.c: Fix some boundary cases and remove need for floating
23549 Issue a compile-time diagnostic if time_t is floating point, or if
23550 two's complement arithmetic is not in effect, or if arithmetic
23551 right shift does not propagate the sign. These assumptions were
23552 all in the original code but they weren't checked.
23554 (TIME_T_MIDPOINT, verify): New macros.
23555 (__isleap): Remove; it has integer overflow problems.
23556 (leapyear): New function, without those problems.
23557 (ydhms_tm_diff): Remove; splitting into two parts.
23558 (ydhms_diff): New function, containing the arithmetic part of
23559 the old ydhms_tm_diff function. Issue a compile-time
23560 diagnostic if we are not using C99 integer division.
23561 Avoid casts when possible.
23562 (guess_time_tm): New function, containing the checking part of
23563 the old ydhms_tm_diff function. Return the new value, rather than
23564 the difference between it and the old. Accept a new argument T
23565 so that *T specifies the old value. Check for overflow in the result.
23567 (__mktime_internal): Use a time_t offset, not a long int offset.
23568 This undoes the 2003-06-04 change, which is no longer needed now
23569 that we have better overflow checking.
23570 (localtime_offset): Likewise.
23572 (__mktime_internal): Avoid harmful overflow on hosts where time_t
23573 and long are 64-bit but int is only 32-bit.
23574 (ydhms_diff): Use long int to store year1 and yday1.
23575 Issue a compile-time diagnostic if long int is not wide enough.
23577 (__mktime_internal): Use long int to store adjusted year and yday.
23578 Use plain C rather than preprocessor commands, if that doesn't
23580 Check for overflow (and try to repair) after each probe
23581 rather than checking only at the very end. This avoids some bugs
23582 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
23583 does not equal GMT offset at maximum time).
23584 Use integer to check for overflow rather than floating point; this
23585 is more portable to non-IEEE hosts, and is a tad faster.
23586 When we detect that we are oscillating between two values,
23587 don't check whether tm_isdst has the requested value, since
23588 we already know the answer. When tm_isdst has the wrong value,
23589 use a different heuristic to find the right one, based on the
23590 extreme values actually observed in practice in tz2003a,
23591 rather than the (overly optimistic) "previous 3 calendar quarters".
23593 (not_equal_tm, print_tm, check_result): Use "const T" rather than
23594 "T const" to accommodate glibc style.
23595 (check_result): Use less-confusing report format. "long" -> "long int.
23597 Don't loop if the iteration overflows time_t.
23598 Allow a negative step in the iteration.
23600 2003-07-06 Karl Berry <karl@gnu.org>
23602 * config/depcomp: update from automake.
23603 * config/config.sub: update from prep.
23605 2003-07-03 Karl Berry <karl@gnu.org>
23607 * config/config.guess: update from prep.
23609 2003-07-01 Paul Eggert <eggert@twinsun.com>
23611 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
23612 xreadlink.c now includes it unconditionally.
23614 2003-07-01 Paul Eggert <eggert@twinsun.com>
23616 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
23617 having it depend on HAVE_SYS_TYPES_H.
23619 2003-07-01 Bruno Haible <bruno@clisp.org>
23621 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
23622 <sys/types.h> should be sufficient.
23623 Reported by Paul Eggert.
23625 2003-06-26 Karl Berry <karl@gnu.org>
23627 * config/depcomp: update from automake.
23629 2003-06-26 Bruno Haible <bruno@clisp.org>
23631 * modules/human: Depend on module stdbool.
23633 2003-06-25 Bruno Haible <bruno@clisp.org>
23635 * modules/readlink: New file.
23636 * modules/xreadlink: Depend on it.
23637 * MODULES.html.sh (func_all_modules): Add readlink.
23639 2003-06-25 Bruno Haible <bruno@clisp.org>
23641 * m4/readlink.m4: New file.
23643 2003-06-25 Bruno Haible <bruno@clisp.org>
23645 * lib/readlink.c: New file.
23647 2003-06-22 Karl Berry <karl@gnu.org>
23649 * config/srclist.txt: update mkinstalldirs from automake.
23650 * config/mkinstalldirs: update.
23652 2003-06-22 Bruno Haible <bruno@clisp.org>
23654 Portability to mingw32.
23655 * m4/ssize_t.m4: New file, from GNU gettext.
23656 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
23657 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
23659 2003-06-22 Bruno Haible <bruno@clisp.org>
23661 * modules/safe-read: Add m4/ssize_t.m4.
23662 * modules/xreadlink: Add m4/ssize_t.m4.
23664 2003-06-20 Bruno Haible <bruno@clisp.org>
23666 Assume C89, so PARAMS isn't needed.
23667 * lib/unicodeio.h (PARAMS): Remove.
23668 * lib/unicodeio.c: Don't use PARAMS.
23670 2003-06-18 Karl Berry <karl@gnu.org>
23672 * config/config.{guess,sub}: update from prep.
23674 2003-06-18 Jim Meyering <jim@meyering.net>
23676 Merge changes from coreutils.
23677 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
23678 Remove explicit declarations of xmalloc and realloc.
23680 (read_utmp): Remove anachronistic cast of xmalloc.
23682 2003-06-17 Paul Eggert <eggert@twinsun.com>
23684 Assume C89, so PARAMS isn't needed.
23685 * lib/backupfile.h (PARAMS): Remove. All uses removed.
23686 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
23687 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
23688 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
23689 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
23690 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
23691 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
23692 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
23693 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
23694 lib/xstrtod.h, lib/xstrtol.h: Likewise.
23695 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
23696 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
23697 no longer needed. Anyway, config.h should always be included before any
23700 2003-06-11 Simon Josefsson <jas@extundo.com>
23702 * modules/sysexits: New file.
23703 * MODULES.html.sh (func_all_modules): Add sysexits.
23705 2003-06-11 Simon Josefsson <jas@extundo.com>
23707 * lib/sysexit_.h: New file.
23709 2003-06-11 Derek Price <derek@ximbiot.com>
23711 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
23714 2003-06-11 Bruno Haible <bruno@clisp.org>
23716 * m4/sysexits.m4: New file.
23718 2003-06-10 Simon Josefsson <jas@extundo.com>
23720 * lib/argp.h: New file, from glibc.
23721 * lib/argp-ba.c: New file, from glibc.
23722 * lib/argp-eexst.c: New file, from glibc.
23723 * lib/argp-fmtstream.c: New file, from glibc.
23724 * lib/argp-fmtstream.h: New file, from glibc.
23725 * lib/argp-fs-xinl.c: New file, from glibc.
23726 * lib/argp-help.c: New file, from glibc.
23727 * lib/argp-namefrob.h: New file, from glibc.
23728 * lib/argp-parse.c: New file, from glibc.
23729 * lib/argp-pv.c: New file, from glibc.
23730 * lib/argp-pvh.c: New file, from glibc.
23731 * lib/argp-xinl.c: New file, from glibc.
23733 2003-06-10 Simon Josefsson <jas@extundo.com>
23735 * modules/strchrnul: New file.
23737 2003-06-10 Simon Josefsson <jas@extundo.com>
23739 * modules/argp: New file.
23741 2003-06-10 Simon Josefsson <jas@extundo.com>
23743 * m4/strchrnul.m4: New file.
23745 2003-06-10 Simon Josefsson <jas@extundo.com>
23747 * lib/strchrnul.h: New file.
23748 * lib/strchrnul.c: New file.
23750 2003-06-10 Bruno Haible <bruno@clisp.org>
23752 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
23754 2003-06-07 Karl Berry <karl@gnu.org>
23756 * config/config.{guess,sub}: update from prep.
23758 2003-06-07 Jim Meyering <jim@meyering.net>
23760 * modules/strtod: Use $(...) notation, not @...@ for
23761 AC_REPLACE'd variables.
23762 * modules/localcharset: Likewise.
23764 2003-06-07 Jim Meyering <jim@meyering.net>
23766 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
23767 in place of my name in the copyright comment.
23768 Remove definition and uses of __P.
23771 * lib/stat.c: Don't declare xmalloc explicitly.
23772 Instead, include "xalloc.h".
23773 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
23774 xrealloc, and xcalloc return values.
23775 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
23777 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
23779 2003-06-07 Bruno Haible <bruno@clisp.org>
23781 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
23782 avoid AC_CONFIG_LINKS.
23783 * modules/fnmatch (Makefile.am): Use explicit creation rule for
23784 fnmatch.h, to avoid AC_CONFIG_LINKS.
23785 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
23787 2003-06-07 Bruno Haible <bruno@clisp.org>
23789 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
23790 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
23791 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
23793 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
23794 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
23797 2003-06-06 Jim Meyering <jim@meyering.net>
23799 Merge from coreutils.
23800 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
23801 Consolidate declarations and initializations of *_base* locals.
23803 Merge from coreutils.
23804 This avoids a core dump on systems without GNU putenv,
23805 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
23806 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
23807 (unsetenv): New static function, from GNU libc.
23808 (rpl_putenv): Use it.
23810 * lib/modechange.c: Remove trailing blanks.
23812 Merge from coreutils.
23813 * lib/fsusage.c: Remove declaration of statfs.
23814 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
23816 * lib/posixtm.c: Include <stdbool.h> unconditionally.
23818 2003-06-06 Jim Meyering <jim@meyering.net>
23820 * lib/stdbool_.h: Renamed from stdbool.h.in.
23822 2003-06-06 Jim Meyering <jim@meyering.net>
23823 Bruno Haible <bruno@clisp.org>
23825 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
23826 Adjust Makefile.am snippet not to redirect directly to target.
23827 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
23829 2003-06-05 Paul Eggert <eggert@twinsun.com>
23831 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
23832 mismatch, look in future quarters as well as past. This fixes a
23833 bug when processing fall-backwards gaps immediately after a long
23834 period of daylight-saving time.
23836 * lib/mktime.c: Assume freestanding C89 or better.
23837 (HAVE_LIMITS_H): Remove. Assume it's 1.
23838 (__P): Remove; not used.
23839 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
23840 (mktime, not_equal_tm, print_tm, check_result,
23841 main): Use prototypes. Use const * where appropriate.
23842 (main): Fix typo in testing code that uncovered by above changes.
23843 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
23845 2003-06-04 Paul Eggert <eggert@twinsun.com>
23847 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
23848 locale.h, localeconv. This merges changes from coreutils.
23850 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
23851 It can be removed after the next Autoconf is released.
23852 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
23855 2003-06-04 Paul Eggert <eggert@twinsun.com>
23857 * lib/mktime.c: Fix Debian bug 177940
23858 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
23859 (localtime_offset): Now long int, not time_t, because we want it
23860 to be guaranteed to be signed. All uses changed.
23861 (__mktime_internal): If overflow would occur when adding offset,
23864 Merge 'human' changes from coreutils. Rewrite to support
23865 locale-specific notations like thousands separators.
23866 * lib/human.c: Simplify authorship notice.
23867 Include human.h immediately after config.h.
23868 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
23869 <limits.h>: Do not include, since human.h does.
23870 (SIZE_MAX, UINTMAX_MAX): New macros.
23871 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
23872 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
23873 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
23874 (power_letter): Renamed from suffixes.
23875 (generate_suffix_backwards): Remove.
23876 (adjust_value): Now takes int style (because of human.h changes)
23877 and long double value (for greater precision on some platforms).
23878 (group_number): New function.
23879 (human_readable): Use it. Use integer options, not enum.
23880 Put the options before the sizes in the arg list.
23881 Support all the new options.
23882 The old human_readable function has been removed;
23883 use inttostr.h instead.
23884 (human_readable, default_block_size, humblock):
23885 Use uintmax_t, not int, for block sizes.
23886 (human_readable_inexact, block_size_types): Remove.
23887 (block_size_opts): New constant.
23888 (human_options): Renamed from human_block_size, with new signature
23889 that allows block sizes up to UINTMAX_MAX. All callers changed.
23890 * lib/human.h: Add copyright and authorship notice.
23891 Include <limits.h> and <stdbool.h> unconditionally.
23892 (PARAMS): Remove. All uses removed.
23893 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
23894 (enum human_inexact_style): Remove tag; now a nameless enum.
23895 (human_floor, human_ceiling, human_round_to_even): Now have
23896 values 2, 0, 1 rather than -1, 1, 0.
23897 (human_group_digits, human_suppress_point_zero, human_autoscale,
23898 human_base_1024, human_SI, human_B): New constants.
23899 (human_readable_inexact, human_block_size): Remove.
23900 (human_readable): Size args are now uintmax_t, not int.
23901 (human_options): New decl.
23903 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
23904 unnecessary now that we assume C89 or better. This change
23905 imported from coreutils.
23907 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
23908 arbitrarily. This is the same patch as 2003-05-28, but it got lost
23909 in the 2003-05-30 sync from glibc.
23911 .h files should stand alone, but we shouldn't include <sys/types.h>
23912 if we can get away with just <stddef.h>.
23914 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
23915 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
23916 rather than <sys/types.h>, as we merely need size_t.
23917 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
23919 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
23920 Include <stdio.h>, to get FILE.
23921 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
23922 memcasecmp.h has included <stddef.h> and all we need is size_t.
23923 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
23924 our interface, instead of including <sys/types.h>
23926 2003-06-04 Paul Eggert <eggert@twinsun.com>
23928 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
23929 now, as glibc mktime is buggy on non-glibc systems.
23931 2003-06-03 Karl Berry <karl@gnu.org>
23933 * config/config.sub: update from prep.
23935 2003-06-02 Paul Eggert <eggert@twinsun.com>
23938 Fix some minor time-related bugs with POSIX time arguments.
23939 Some valid time stamps were being rejected (notably -1, and
23940 time stamps before 1900 on 64-bit hosts). And some invalid
23941 time stamps were being accepted, e.g. September 31.
23943 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
23944 that we can return (time_t) -1 successfully.
23945 * lib/posixtm.c: Likewise.
23946 [HAVE_STDBOOL_H]: Include <stdbool.h>.
23947 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
23948 (t): Remove static var.
23949 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
23950 of static var. All uses changed.
23951 (year): Do not reject years before 1900; they can occur with
23953 (posix_time_parse): Do not check for out-of-range components;
23954 that is now the caller's responsibility, since our checks were
23955 only approximations.
23956 (posixtime): Use mktime to check for out-of-range components,
23957 since it knows them exactly.
23958 If mktime returns (time_t) -1, check whether an error actually occurred
23959 by invoking localtime on -1.
23960 (main) [TEST_POSIXTIME]: Check for input data errors, and report
23961 posixtime failures better.
23962 Improve the test data (in comments only).
23964 2003-06-02 Karl Berry <karl@gnu.org>
23966 * config/mkinstalldirs (version): new variable.
23967 (--version): new option.
23968 (usage): improve message.
23970 2003-05-30 Karl Berry <karl@gnu.org>
23972 * lib/mktime.c: update from libc.
23974 2003-05-30 Bruno Haible <bruno@clisp.org>
23976 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
23977 * config/config.rpath: Upgrade to gettext-0.12.1.
23979 2003-05-30 Bruno Haible <bruno@clisp.org>
23981 * m4/gettext.m4: Upgrade to gettext-0.12.1.
23982 * m4/nls.m4: New file, from gettext-0.12.1.
23983 * m4/po.m4: New file, from gettext-0.12.1.
23984 * m4/progtest.m4: Upgrade to gettext-0.12.1.
23986 2003-05-30 Bruno Haible <bruno@clisp.org>
23988 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
23989 * lib/localcharset.h: Likewise.
23990 * lib/localcharset.c: Likewise.
23992 2003-05-29 Karl Berry <karl@gnu.org>
23994 * config/config.rpath: update from gettext.
23996 2003-05-28 Paul Eggert <eggert@twinsun.com>
23998 Assume the headers required for C89 freestanding compilers.
23999 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
24000 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
24001 * m4/human.m4 (gl_HUMAN): Likewise.
24002 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
24003 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
24004 * m4/userspec.m4 (gl_USERSPEC): Likewise.
24005 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
24006 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24007 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
24009 2003-05-28 Paul Eggert <eggert@twinsun.com>
24011 Assume the headers required for C89 freestanding compilers.
24012 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
24013 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
24014 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
24015 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
24016 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
24017 define, since <limits.h> is guaranteed to do that.
24018 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
24019 * lib/exclude.c: Include <stdbool.h> unconditionally.
24020 * lib/tempname.c: Include <stddef.h> unconditionally.
24021 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
24022 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
24023 <stddef.h> does that.
24024 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
24025 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
24026 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
24028 * lib/xstrtol.c: Likewise.
24029 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
24030 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
24032 * lib/addext.c (addext): Use assignment rather than cast, to avoid
24033 warnings on some platforms.
24035 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
24038 2003-05-26 Jim Meyering <jim@meyering.net>
24040 Merge in a change from coreutils:
24041 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
24042 that is guaranteed to be `no'. Use `no_such_member' to indicate
24043 that condition, rather than `-1' which is slightly misleading.
24044 Change the name of the cache variable to have the gl_ prefix.
24045 Prompted by a patch from Richard Dawe for DJGPP.
24047 2003-05-24 Karl Berry <karl@gnu.org>
24049 * config/config.guess: update from prep.
24051 2003-05-22 Karl Berry <karl@gnu.org>
24053 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
24055 2003-05-20 Karl Berry <karl@gnu.org>
24057 * config/config.guess: update from prep.
24059 2003-05-18 Karl Berry <karl@gnu.org>
24061 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
24062 might actually be set by the user.
24064 * config/depcomp, install-sh, mdate-sh: update from automake.
24066 2003-05-17 Bruno Haible <bruno@clisp.org>
24068 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
24069 invalid expansion for AC_EGREP_CPP.
24070 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24071 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24072 Suggested by Akim Demaille <akim@epita.fr> in
24073 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
24075 2003-05-12 Jim Meyering <jim@meyering.net>
24077 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
24078 the space-padded-by-default conversion specifiers, %e, %k, %l.
24080 2003-05-12 Bruno Haible <bruno@clisp.org>
24082 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
24083 the string is longer than 4 KB.
24085 2003-05-11 Karl Berry <karl@gnu.org>
24087 * config/config.{guess,sub}: update from prep.
24089 2003-05-09 Bruno Haible <bruno@clisp.org>
24091 * modules/error: Add m4/strerror_r.m4 to file list.
24093 2003-05-03 Bruno Haible <bruno@clisp.org>
24095 Upgrade to Unicode-4.0.
24096 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
24097 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
24098 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
24099 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
24100 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
24101 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
24102 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
24103 Change width of U+E0100..U+E01EF from 1 to 0.
24105 2003-04-25 Jim Meyering <jim@meyering.net>
24107 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
24108 of type size_t, not int.
24110 2003-04-25 Bruno Haible <bruno@clisp.org>
24112 * lib/copy-file.c: Include <stddef.h>, for size_t.
24114 2003-04-21 Paul Eggert <eggert@twinsun.com>
24116 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
24117 code which expansion is under static control. Patch imported from
24118 Akim Demaille's patch to Bison; see
24119 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
24121 2003-04-14 Bruno Haible <bruno@clisp.org>
24123 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
24125 2003-04-11 Jim Meyering <jim@meyering.net>
24127 Merge changes from Coreutils.
24129 2003-03-22 Jim Meyering <jim@meyering.net>
24131 * lib/strftime.c (widen): Cast alloca return value to proper type.
24133 2003-01-19 Ulrich Drepper <drepper@redhat.com>
24136 * lib/strftime.c (my_strftime): Handle very large width
24137 specifications for numeric values correctly. Improve checks for
24140 2003-01-19 Jim Meyering <jim@meyering.net>
24142 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
24144 (nl_get_alt_digit) [! defined my_strftime]: Define.
24145 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
24146 _nl_get_alt_digit and _nl_get_walt_digit.
24148 * lib/strftime.c (my_strftime): Merge in locale-related changes from
24149 libc. These changes have no effect outside of _LIBC.
24151 2003-04-10 Bruno Haible <bruno@clisp.org>
24153 * modules/findprog: New file.
24154 * MODULES.html.sh (func_all_modules): Add it.
24156 2003-04-10 Bruno Haible <bruno@clisp.org>
24158 * m4/findprog.m4: New file.
24159 * m4/eaccess.m4: New file.
24161 2003-04-10 Bruno Haible <bruno@clisp.org>
24163 * lib/findprog.h: New file, from GNU gettext.
24164 * lib/findprog.c: New file, from GNU gettext.
24166 2003-04-05 Jim Meyering <jim@meyering.net>
24168 Merge changes from Coreutils.
24170 * lib/exclude.h (PARAMS): Remove definition and uses.
24171 * lib/exclude.c: Remove uses of `PARAMS'.
24173 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
24174 Add test-cases for DOS filenames. Declare program_name.
24175 (main): Set up program_name. Patch by Rich Dawe.
24177 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
24179 Use mntctl's return value to drive the entry-processing loop, since
24180 we can't rely on the value of the vmt_length member in the last
24181 entry. On some systems doing so could result in exhausting
24182 virtual memory. Based in part on a patch from Mike Jetzer.
24184 2003-04-04 Bruno Haible <bruno@clisp.org>
24186 * modules/linebreak: New file.
24187 * MODULES.html.sh (func_all_modules): Add it.
24189 2003-04-04 Bruno Haible <bruno@clisp.org>
24191 * m4/linebreak.m4: New file.
24193 2003-04-04 Bruno Haible <bruno@clisp.org>
24195 * lib/linebreak.h: New file, from GNU gettext.
24196 * lib/linebreak.c: New file, from GNU gettext with slight
24198 * lib/lbrkprop.h: New file, from GNU gettext.
24200 2003-04-03 Bruno Haible <bruno@clisp.org>
24202 * modules/utf8-ucs4: New file.
24203 * modules/utf16-ucs4: New file.
24204 * modules/ucs4-utf8: New file.
24205 * modules/ucs4-utf16: New file.
24206 * MODULES.html.sh (func_all_modules): Add them.
24208 2003-04-03 Bruno Haible <bruno@clisp.org>
24210 * m4/utf-ucs4.m4: New file.
24211 * m4/ucs4-utf.m4: New file.
24213 2003-04-03 Bruno Haible <bruno@clisp.org>
24215 * lib/utf8-ucs4.h: New file, from GNU gettext.
24216 * lib/utf16-ucs4.h: New file, from GNU gettext.
24217 * lib/ucs4-utf8.h: New file, from GNU gettext.
24218 * lib/ucs4-utf16.h: New file, from GNU gettext.
24220 2003-04-02 Bruno Haible <bruno@clisp.org>
24222 * modules/binary-io: New file.
24223 * MODULES.html.sh (func_all_modules): Add it.
24225 2003-04-02 Bruno Haible <bruno@clisp.org>
24227 * lib/binary-io.h: New file, from GNU gettext.
24229 2003-04-01 Bruno Haible <bruno@clisp.org>
24231 * modules/pathname: New file.
24232 * MODULES.html.sh (func_all_modules): Add it.
24234 2003-04-01 Bruno Haible <bruno@clisp.org>
24236 * lib/pathname.h: New file, from GNU gettext.
24237 * lib/concatpath.c: New file, from GNU gettext.
24239 2003-03-30 Bruno Haible <bruno@clisp.org>
24241 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
24243 2003-03-30 Bruno Haible <bruno@clisp.org>
24245 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
24246 function chown() doesn't exist.
24248 2003-03-28 Bruno Haible <bruno@clisp.org>
24250 * modules/copy-file: New file.
24251 * MODULES.html.sh (func_all_modules): Add it.
24253 2003-03-28 Bruno Haible <bruno@clisp.org>
24255 * m4/copy-file.m4: New file.
24257 2003-03-28 Bruno Haible <bruno@clisp.org>
24259 * lib/copy-file.h: New file, from GNU gettext.
24260 * lib/copy-file.c: New file, from GNU gettext.
24262 2003-03-18 Jim Meyering <jim@meyering.net>
24264 * lib/quote.c (quote_n): Fix typo in comment.
24266 2003-03-18 Bruno Haible <bruno@clisp.org>
24268 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
24270 * m4/onceonly_2_57.m4: Likewise.
24272 2003-03-17 Bruno Haible <bruno@clisp.org>
24274 * m4/onceonly.m4: Require autoconf 2.54 or newer.
24275 (m4_quote): Remove macro.
24276 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
24278 2003-03-14 Jim Meyering <jim@meyering.net>
24280 Merge changes from Coreutils.
24281 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
24282 to be const, in order to avoid warnings.
24283 (obstack_room): Likewise.
24284 (obstack_empty_p): Likewise.
24286 2003-03-14 Bruno Haible <bruno@clisp.org>
24288 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
24289 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
24291 2003-03-13 Paul Eggert <eggert@twinsun.com>
24293 Merge changes from Bison.
24294 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
24295 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
24296 when compiling Bison 1.875's `bitset bset = obstack_alloc
24297 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
24298 * lib/hash.c: Include <stdbool.h> unconditionally.
24300 2003-03-13 Paul Eggert <eggert@twinsun.com>
24302 * m4/onceonly.m4 (m4_quote): New macro.
24303 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
24304 Quote AC_FOREACH variable-expansions properly.
24306 2003-03-13 Paul Eggert <eggert@twinsun.com>
24308 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
24310 2003-03-09 Paul Eggert <eggert@twinsun.com>
24312 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
24313 Reported by Bruce Becker; see:
24314 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
24316 2003-03-03 Paul Eggert <eggert@twinsun.com>
24317 Bruno Haible <bruno@clisp.org>
24319 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
24320 Reported by John Hughes, see
24321 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
24323 2003-02-20 Bruno Haible <bruno@clisp.org>
24325 * MODULES.html.sh (func_all_modules): Add poll.
24327 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
24329 * modules/poll: New file.
24331 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
24333 * lib/poll_.h: New file.
24334 * lib/poll.c: New file.
24336 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
24338 * m4/poll.m4: New file.
24340 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
24342 * modules/mathl: New file.
24344 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
24346 * lib/mathl.h: New file.
24347 * lib/acosl.c: New file.
24348 * lib/asinl.c: New file.
24349 * lib/atanl.c: New file.
24350 * lib/ceill.c: New file.
24351 * lib/cosl.c: New file.
24352 * lib/expl.c: New file.
24353 * lib/floorl.c: New file.
24354 * lib/frexpl.c: New file.
24355 * lib/ldexpl.c: New file.
24356 * lib/logl.c: New file.
24357 * lib/sincosl.c: New file.
24358 * lib/sinl.c: New file.
24359 * lib/sqrtl.c: New file.
24360 * lib/tanl.c: New file.
24361 * lib/trigl.c: New file.
24362 * lib/trigl.h: New file.
24364 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
24366 * m4/mathl.m4: New file.
24368 2003-02-18 Bruno Haible <bruno@clisp.org>
24370 * MODULES.html.sh (func_all_modules): Add mathl.
24372 2003-02-17 Bruno Haible <bruno@clisp.org>
24374 * modules/mkdtemp: New module.
24375 * MODULES.html.sh (func_all_modules): Add it.
24377 2003-02-17 Bruno Haible <bruno@clisp.org>
24379 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
24381 2003-02-17 Bruno Haible <bruno@clisp.org>
24383 * lib/mkdtemp.h: New file, from GNU gettext.
24384 * lib/mkdtemp.c: New file, from GNU gettext.
24386 2003-02-02 Jim Meyering <jim@meyering.net>
24388 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
24391 2003-01-31 Bruno Haible <bruno@clisp.org>
24393 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
24395 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
24397 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
24399 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
24402 2003-01-31 Bruno Haible <bruno@clisp.org>
24404 * lib/rename.c: #undef rename before defining rpl_rename.
24405 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
24407 2003-01-30 Bruno Haible <bruno@clisp.org>
24409 * modules/vasnprintf, modules/vasprintf: New modules.
24410 * MODULES.html.sh (func_all_modules): Add them.
24412 2003-01-30 Bruno Haible <bruno@clisp.org>
24414 * m4/signed.m4: New file, from GNU gettext.
24415 * m4/longdouble.m4: New file, from GNU gettext.
24416 * m4/wchar_t.m4: New file, from GNU gettext.
24417 * m4/wint_t.m4: New file, from GNU gettext.
24418 * m4/vasnprintf.m4: New file.
24419 * m4/vasprintf.m4: New file.
24421 2003-01-30 Bruno Haible <bruno@clisp.org>
24423 * lib/printf-args.h: New file, from GNU gettext.
24424 * lib/printf-args.c: New file, from GNU gettext.
24425 * lib/printf-parse.h: New file, from GNU gettext.
24426 * lib/printf-parse.c: New file, from GNU gettext.
24427 * lib/vasnprintf.h: New file, from GNU gettext.
24428 * lib/vasnprintf.c: New file, from GNU gettext.
24429 * lib/asnprintf.c: New file, from GNU gettext.
24430 * lib/vasprintf.h: New file, from GNU gettext with modifications.
24431 * lib/vasprintf.c: New file, from GNU gettext.
24432 * lib/asprintf.c: New file, from GNU gettext.
24434 2003-01-29 Bruno Haible <bruno@clisp.org>
24436 * modules/stpncpy: New module.
24437 * MODULES.html.sh (func_all_modules): Add it.
24439 2003-01-29 Bruno Haible <bruno@clisp.org>
24441 * m4/stpncpy.m4: New file.
24443 2003-01-29 Bruno Haible <bruno@clisp.org>
24445 * lib/stpncpy.h: New file, from GNU gettext with modifications.
24446 * lib/stpncpy.c: New file, from GNU gettext with modifications.
24448 2003-01-28 Bruno Haible <bruno@clisp.org>
24450 * modules/c-ctype: New module.
24451 * MODULES.html.sh (func_all_modules): Add it.
24453 2003-01-28 Bruno Haible <bruno@clisp.org>
24455 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
24457 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
24460 2003-01-27 Bruno Haible <bruno@clisp.org>
24462 * modules/xsetenv: New module.
24463 * MODULES.html.sh (func_all_modules): Add it.
24465 2003-01-27 Bruno Haible <bruno@clisp.org>
24467 * lib/xsetenv.h: New file, from GNU gettext.
24468 * lib/xsetenv.c: New file, from GNU gettext.
24470 2003-01-23 Jim Meyering <jim@meyering.net>
24472 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
24473 from working on systems without dirfd (at least Irix and OSF1/Tru64).
24475 2003-01-23 Bruno Haible <bruno@clisp.org>
24477 * modules/minmax: New module.
24478 * MODULES.html.sh (func_all_modules): Add it.
24480 2003-01-23 Bruno Haible <bruno@clisp.org>
24482 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
24485 2003-01-22 Bruno Haible <bruno@clisp.org>
24487 * modules/exit: New module.
24488 * MODULES.html.sh (func_all_modules): Add it.
24490 2003-01-22 Bruno Haible <bruno@clisp.org>
24492 * lib/exit.h: New file, from GNU gettext.
24494 2003-01-19 Bruno Haible <bruno@clisp.org>
24496 * gnulib-tool: Recognize option --extract-maintainer.
24497 (func_get_maintainer): New function.
24498 * modules/*: Add Maintainer entry.
24500 2003-01-16 Jim Meyering <jim@meyering.net>
24502 * m4/regex.m4: The `regex' struct is both input and output.
24503 Initialize it before each use. Patch by Tim Waugh.
24505 2003-01-16 Bruno Haible <bruno@clisp.org>
24507 * MODULES.html.sh: Add a table of contents. Add the module name as
24508 leftmost column. Add hyperlinks.
24510 2003-01-15 Bruno Haible <bruno@clisp.org>
24512 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
24514 2003-01-15 Bruno Haible <bruno@clisp.org>
24516 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
24517 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
24520 2003-01-15 Bruno Haible <bruno@clisp.org>
24522 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
24524 2003-01-15 Bruno Haible <bruno@clisp.org>
24526 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
24527 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
24529 2003-01-14 Jim Meyering <jim@meyering.net>
24531 * lib/same.c (same_name): Tweak a comment.
24533 2003-01-14 Bruno Haible <bruno@clisp.org>
24535 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
24536 when a string comparison is sufficient.
24538 2003-01-14 Bruno Haible <bruno@clisp.org>
24540 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
24543 2003-01-14 Bruno Haible <bruno@clisp.org>
24545 * lib/hash-pjw.c: Add comment about low quality of this function.
24547 2003-01-13 Bruno Haible <bruno@clisp.org>
24549 * modules/stpcpy: Distribute lib/stpcpy.h.
24550 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
24552 2003-01-13 Bruno Haible <bruno@clisp.org>
24554 * modules/*: Add a description.
24555 * modules/strpbrk: Fix Makefile.am snippet.
24556 * modules/strtoimax: Fix dependencies.
24557 * modules/strtoumax: Likewise.
24559 2003-01-13 Bruno Haible <bruno@clisp.org>
24561 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
24562 * modules/alloca (Makefile.am): All object files depend on alloca.h.
24563 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
24565 2003-01-13 Bruno Haible <bruno@clisp.org>
24567 * gnulib-tool (func_create_testdir): Store config/* files in the main
24569 * config.rpath: Move to ...
24570 * config/config.rpath: ... here.
24571 * modules/gettext: Contains config/config.rpath, not config.rpath.
24572 * modules/iconv: Likewise.
24574 2003-01-12 Paul Eggert <eggert@twinsun.com>
24576 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24577 to avoid collisions with libcurses and libreadline.
24579 * m4/getstr.m4: Remove.
24580 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
24582 2003-01-12 Paul Eggert <eggert@twinsun.com>
24584 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24585 to avoid collisions with libcurses and libreadline.
24587 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
24588 * lib/getstr.h, getstr.c: Remove.
24589 * lib/getline.c: Include "getline.h", to check interface.
24590 Move body of old getstr.c here: this defines MIN_CHUNK and
24591 declares getdelim2, which is renamed from getstr.
24592 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
24594 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
24596 * lib/linebuffer.h: Likewise.
24597 (readline): Remove backward-compatibility macro.
24599 2003-01-12 Paul Eggert <eggert@twinsun.com>
24601 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24602 to avoid collisions with libcurses and libreadline.
24604 * MODULES.html.sh: Remove getstr.
24605 * modules/getline: Depend on unlocked-io, not getstr.
24607 2003-01-12 Jim Meyering <jim@meyering.net>
24609 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
24611 2003-01-10 Bruno Haible <bruno@clisp.org>
24613 * modules/alloca: Change Makefile.am requirements. Simplify Include
24614 requirements. Add lib/alloca_.h to file list.
24616 2003-01-10 Bruno Haible <bruno@clisp.org>
24618 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
24620 2003-01-10 Bruno Haible <bruno@clisp.org>
24622 * lib/alloca_.h: New file.
24623 * lib/getdate.y: Unconditionally include alloca.h.
24624 * lib/makepath.c: Likewise.
24625 * lib/setenv.c: Likewise.
24626 * lib/userspec.c: Likewise.
24628 2003-01-09 Karl Berry <karl@gnu.org>
24630 * MODULES.html.sh: include `dirname $0` in PATH, to find
24633 2003-01-09 Bruno Haible <bruno@clisp.org>
24635 * modules/stdbool: Change configure.ac, Makefile.am requirements.
24636 Simplify Include requirements. Add lib/stdbool.h.in to file list.
24638 2003-01-09 Bruno Haible <bruno@clisp.org>
24640 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
24642 2003-01-09 Bruno Haible <bruno@clisp.org>
24644 * lib/stdbool.h.in: New file.
24646 2003-01-09 Bruno Haible <bruno@clisp.org>
24648 * gnulib-tool (func_all_modules): Ignore files ending in ~.
24649 * MODULES.html.sh: Likewise.
24651 2003-01-08 Jim Meyering <jim@meyering.net>
24653 * lib/full-write.c: Undefine and define-away `const' after inclusion
24654 of errno.h, not before. Suggestion from Bruno Haible.
24656 2003-01-08 Bruno Haible <bruno@clisp.org>
24658 * modules/full-read: Depend on full-write.
24660 2003-01-08 Bruno Haible <bruno@clisp.org>
24662 * lib/safe-read.c: Include specification header first, to ensure its
24664 * lib/full-write.c: Likewise.
24666 2003-01-07 Jim Meyering <jim@meyering.net>
24668 * lib/full-write.c: Rework so that it may serve to define full_read,
24670 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
24672 2003-01-07 Bruno Haible <bruno@clisp.org>
24674 * lib/strtoimax.c: Include <stdint.h> as an alternative to
24676 * lib/xstrtol.h: Likewise.
24677 * lib/xstrtoimax.c: Likewise.
24678 * lib/xstrtoumax.c: Likewise.
24679 * lib/human.h: Likewise.
24681 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
24682 on systems that have <inttypes.h> but not <stdint.h>.
24684 2003-01-07 Bruno Haible <bruno@clisp.org>
24686 * MODULES.html.sh: Add copyright notice.
24687 (missed_files): Omit CVS directory entries.
24688 (func_module): Make it work with sed-3.02.
24689 * MODULES.txt: Remove file.
24691 2003-01-06 Jim Meyering <jim@meyering.net>
24693 * lib/version-etc.c: Update year in translatable copyright string.
24695 2003-01-03 Karl Berry <karl@gnu.org>
24697 * config/config.{guess,sub}: update from prep.
24699 2003-01-02 Karl Berry <karl@gnu.org>
24701 * doc/COPYING.DOC: belatedly updated to 1.2.
24703 2003-01-01 Karl Berry <karl@gnu.org>
24705 * gnulib-tool (func_verify_module): report module name $module in
24706 error message, not $1.
24707 * gnulib-tool (create-testdir): don't complain if destdir couldn't
24708 be created, only if it doesn't exist.
24709 * gnulib-tool (last_checkin_date): don't expand the $Date here.
24711 2002-12-31 Paul Eggert <eggert@twinsun.com>
24713 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
24715 2002-12-31 Paul Eggert <eggert@twinsun.com>
24717 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
24718 memcmp if strcoll doesn't work.
24720 2002-12-31 Bruno Haible <bruno@clisp.org>
24722 * lib/utime.c (utime_null): No need to call ftruncate if the file was
24725 2002-12-31 Bruno Haible <bruno@clisp.org>
24727 * lib/memcoll.c (STRCOLL): New macro.
24730 2002-12-31 Bruno Haible <bruno@clisp.org>
24732 * lib/localcharset.h: New file.
24733 * lib/localcharset.c: Include it.
24734 * lib/unicodeio.c: Likewise.
24736 2002-12-31 Bruno Haible <bruno@clisp.org>
24738 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
24739 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
24741 2002-12-31 Bruno Haible <bruno@clisp.org>
24743 * lib/getline.h: Include <stddef.h>, for size_t.
24745 * lib/unicodeio.h: Include <stddef.h>, for size_t.
24746 * lib/unicodeio.c: Don't include <stddef.h>.
24748 2002-12-31 Bruno Haible <bruno@clisp.org>
24750 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
24753 2002-12-24 Karl Berry <karl@gnu.org>
24755 * config/config.guess: update from prep.
24757 2002-12-24 Bruno Haible <bruno@clisp.org>
24759 General infrasructure.
24760 * m4/README: Rewritten.
24761 * m4/onceonly.m4: New file.
24762 * m4/onceonly_2_57.m4: New file.
24765 * m4/atexit.m4: New file.
24768 * m4/strtod.m4: New file.
24771 * m4/strtol.m4: New file.
24774 * m4/strtoul.m4: New file.
24777 * m4/memchr.m4: New file.
24780 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
24781 (jm_FUNC_MEMCMP): Invoke it.
24784 * m4/memcpy.m4: New file.
24787 * m4/memmove.m4: New file.
24790 * m4/memset.m4: New file.
24793 * m4/strcspn.m4: New file.
24796 * m4/strpbrk.m4: New file.
24799 * m4/strstr.m4: New file.
24802 * m4/strerror.m4: New file.
24805 * m4/mktime.m4: Renamed from jm-mktime.m4.
24806 (gl_PREREQ_MKTIME): New macro.
24807 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
24810 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
24811 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
24812 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
24815 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
24816 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
24817 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
24820 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
24821 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
24822 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
24824 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
24827 * m4/xalloc.m4: New file.
24830 * m4/alloca.m4: New file.
24833 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
24834 (jm_FUNC_PUTENV): Invoke it.
24837 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
24838 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
24839 when invoked twice.
24840 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
24844 * m4/memrchr.m4: New file.
24847 * m4/stpcpy.m4: New file.
24850 * m4/strcase.m4: New file.
24853 * m4/strdup.m4: New file.
24856 * m4/strnlen.m4: New file.
24859 * m4/strndup.m4: New file.
24862 * m4/xstrtod.m4: New file.
24865 * m4/xstrtol.m4: New file.
24868 * m4/getdate.m4: New file.
24870 Module unlocked-io.
24871 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
24872 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
24873 * m4/jm-glibc-io.m4n: Remove file.
24875 Module long-options.
24876 * m4/long-options.m4: New file.
24879 * m4/md5.m4: New file.
24882 * m4/sha.m4: New file.
24885 * m4/getstr.m4: New file.
24888 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
24889 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
24890 <sys/types.h>, for size_t. Use the function name gnu_getline, not
24891 simply getline. Infoke gl_PREREQ_GETLINE.
24894 * m4/obstack.m4: New file.
24897 * m4/hash.m4: New file.
24900 * m4/readtokens.m4: New file.
24903 * m4/strverscmp.m4: New file.
24906 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
24910 * m4/strtoll.m4: New file.
24913 * m4/strtoull.m4: New file.
24916 * m4/strtoimax.m4: New file.
24919 * m4/strtoumax.m4: New file.
24922 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
24923 jm_AC_PREREQ_XSTRTOIMAX.
24924 Moved the strtol prerequisites to strtol.m4.
24925 Moved the strtoll prerequisites to strtoll.m4.
24926 Moved the strtoimax prerequisites to strtoimax.m4.
24929 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
24930 jm_AC_PREREQ_XSTRTOUMAX.
24931 Moved the strtoul prerequisites to strtoul.m4.
24932 Moved the strtoull prerequisites to strtoull.m4.
24933 Moved the strtoumax prerequisites to strtoumax.m4.
24936 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
24937 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
24940 * m4/dup2.m4: New file.
24943 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
24944 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
24947 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
24948 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
24950 Module gettimeofday.
24951 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
24952 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
24953 gl_PREREQ_GETTIMEOFDAY.
24956 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
24957 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
24960 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
24961 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
24962 jm_AC_TYPE_UINTMAX_T.
24963 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
24966 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
24967 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
24970 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
24971 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
24974 * m4/timespec.m4 (gl_TIMESPEC): New macro.
24975 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
24976 * m4/st_mtim.m4: Indentation.
24979 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
24980 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
24981 gl_PREREQ_NANOSLEEP.
24984 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
24985 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
24986 (gl_REGEX): New macro.
24989 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
24990 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
24993 * m4/rmdir.m4: New file.
24996 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
24997 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
24998 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
25001 * m4/dirname.m4: New file.
25004 * m4/getopt.m4: New file.
25006 Module unistd-safer.
25007 * m4/unistd-safer.m4: New file.
25010 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
25012 (gl_PREREQ_FNMATCH_EXTRA): New macro.
25013 (gl_FUNC_FNMATCH_POSIX): New macro.
25014 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
25015 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
25019 * m4/exclude.m4: New file.
25022 * m4/human.m4: New file.
25028 * m4/backupfile.m4: New file.
25029 * m4/d-ino.m4: Indentation.
25032 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
25033 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
25034 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
25037 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
25041 * m4/euidaccess.m4: New file.
25044 * m4/file-type.m4: New file.
25047 * m4/fileblocks.m4: New file.
25050 * m4/filemode.m4: New file.
25053 * m4/isdir.m4: New file.
25056 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
25057 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
25060 * m4/makepath.m4: New file.
25063 * m4/modechange.m4: New file.
25066 * m4/mountlist.m4: New file.
25067 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
25070 Module path-concat.
25071 * m4/path-concat.m4: New file.
25074 * m4/pathmax.m4: New file.
25077 * m4/same.m4: New file.
25080 * m4/save-cwd.m4: New file.
25083 * m4/savedir.m4: New file.
25086 * m4/xgetcwd.m4: New file.
25087 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
25090 * m4/xreadlink.m4: New file.
25093 * m4/safe-read.m4: New file.
25096 * m4/safe-write.m4: New file.
25099 * m4/closeout.m4: New file.
25101 Module stdio-safer.
25102 * m4/stdio-safer.m4: New file.
25105 * m4/getpass.m4: New file.
25108 * m4/getugroups.m4: New file.
25110 Module group-member.
25111 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
25112 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
25115 * m4/idcache.m4: New file.
25118 * m4/userspec.m4: New file.
25121 * m4/clock_time.m4: New file.
25122 * m4/gettime.m4: New file.
25125 * m4/settime.m4: New file.
25128 * m4/posixtm.m4: New file.
25130 Module gethostname.
25131 * m4/gethostname.m4: New file.
25134 * m4/canon-host.m4: New file.
25137 * m4/codeset.m4: New file, from gettext-0.11.5.
25138 * m4/gettext.m4: New file, from gettext-0.11.5.
25139 * m4/glibc21.m4: New file, from gettext-0.11.5.
25140 * m4/iconv.m4: New file, from gettext-0.11.5.
25141 * m4/intdiv0.m4: New file, from gettext-0.11.5.
25142 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
25143 * m4/inttypes.m4: New file, from gettext-0.11.5.
25144 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
25145 * m4/isc-posix.m4: New file, from gettext-0.11.5.
25146 * m4/lcmessage.m4: New file, from gettext-0.11.5.
25147 * m4/lib-ld.m4: New file, from gettext-0.11.5.
25148 * m4/lib-link.m4: New file, from gettext-0.11.5.
25149 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
25150 * m4/progtest.m4: New file, from gettext-0.11.5.
25151 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
25152 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
25153 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
25155 Module localcharset.
25156 * m4/localcharset.m4: New file.
25158 Module hard-locale.
25159 * m4/hard-locale.m4: New file.
25162 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
25164 * m4/mbrtowc.m4: Add comment.
25167 * m4/memcasecmp.m4: New file.
25170 * m4/memcoll.m4: New file.
25173 * m4/unicodeio.m4: New file.
25176 * m4/rpmatch.m4: New file.
25179 * m4/yesno.m4: New file.
25182 * m4/exitfail.m4: New file.
25185 * m4/c-stack.m4 (gl_C_STACK): New macro.
25186 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
25189 * m4/error.m4 (gl_ERROR): New macro.
25190 (jm_PREREQ_ERROR): Use onceonly macros.
25193 * m4/fatal.m4: New file.
25196 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
25197 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
25199 Module getpagesize.
25200 * m4/getpagesize.m4: New file.
25202 Module getusershell.
25203 * m4/getusershell.m4: New file.
25206 * m4/physmem.m4: New file.
25209 * m4/posixver.m4: New file.
25212 * m4/quotearg.m4: New file.
25215 * m4/quote.m4: New file.
25218 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
25221 * m4/sig2str.m4: New file.
25224 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
25226 * m4/intmax_t.m4: New file.
25227 * m4/d-type.m4: Indentation.
25228 * m4/jm-macros.m4: Update.
25229 * m4/prereq.m4 (jm_PREREQ): Update.
25230 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
25231 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
25232 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
25233 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
25234 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
25235 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
25236 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
25237 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
25238 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
25239 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
25240 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
25241 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
25242 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
25243 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
25244 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
25245 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
25246 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
25247 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
25248 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
25250 2002-12-24 Bruno Haible <bruno@clisp.org>
25252 * MODULES.txt: Update according to m4/ changes.
25255 * config.rpath: New file, from gettext-0.11.5.
25257 * modules/*: New module descriptions.
25258 * gnulib-tool: New file.
25259 * MODULES.html.sh: New file.
25261 2002-12-21 Karl Berry <karl@gnu.org>
25263 * doc/fdl.texi: update to version 1.2.
25265 2002-12-19 Karl Berry <karl@gnu.org>
25267 * config/config.guess: update from prep.
25269 2002-12-18 Bruno Haible <bruno@clisp.org>
25271 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
25272 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
25274 2002-12-17 Bruno Haible <bruno@clisp.org>
25276 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
25277 stdlib.h, string.h.
25279 2002-12-17 Bruno Haible <bruno@clisp.org>
25281 * lib/canon-host.c (strdup): Remove unused declaration.
25283 * lib/fsusage.c: Include full_read.h.
25284 (get_fs_usage): Use full_read instead of safe_read.
25286 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
25288 2002-12-12 Karl Berry <karl@gnu.org>
25290 * config/config.guess: update from prep.
25292 2002-12-11 Bruno Haible <bruno@clisp.org>
25294 * m4/setenv.m4: New file, from gettext-0.11.5.
25296 2002-12-11 Bruno Haible <bruno@clisp.org>
25298 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
25300 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
25303 2002-12-11 Bruno Haible <bruno@clisp.org>
25305 * setenv.c (alloca): Fall back to malloc.
25306 (freea): New macro.
25307 (setenv): Use freea() to free memory allocated with alloca().
25309 2002-11-13 Bruno Haible <bruno@clisp.org>
25311 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
25312 function declarations.
25313 * unsetenv.c (unsetenv): Likewise.
25315 2002-03-04 Bruno Haible <bruno@clisp.org>
25317 Portability to AIX 4.3.3.
25318 * unsetenv.c: New file, extracted from setenv.c.
25319 * setenv.c: Move the unsetenv() function to unsetenv.c.
25321 2001-12-20 Bruno Haible <bruno@clisp.org>
25323 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
25324 use malloc instead. For SunOS 4.
25326 2001-12-11 Bruno Haible <bruno@clisp.org>
25328 * setenv.c: Declare alloca.
25329 (compar_fn_t): New typedef.
25330 (KNOWN_VALUE, STORE_VALUE): Use it.
25332 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
25335 2002-12-10 Paul Eggert <eggert@twinsun.com>
25337 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
25338 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
25339 Choose values that are less likely to collide with system fnmatch
25341 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
25342 defined (e.g., a pure POSIX system).
25343 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
25344 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
25346 2002-12-06 Paul Eggert <eggert@twinsun.com>
25348 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
25349 a pain in practice to deal with generated m4 files. This change
25350 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
25352 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
25353 and jm-glibc-io.m4, as they are no longer a special case.
25354 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
25355 kludge and the auto-generation stuff. Check only whether the
25356 functions are declared, not whether they exist, since older hosts
25357 that don't declare the functions can't use the optimization anyway.
25359 2002-12-06 Jim Meyering <jim@meyering.net>
25361 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
25363 Merge in changes from libc's misc/error.c, in preparation
25364 for the merge of gnulib's changes back into libc.
25366 * lib/error.c (_): Define only if not already defined.
25367 Move definition to follow all #include directives.
25368 Include unlocked-io.h only if !_LIBC.
25369 [_LIBC]: Include <libio/libioP.h>.
25370 [USE_IN_LIBIO]: Include <libio/iolibio.h>
25371 (fflush): Tweak definition to use INTUSE.
25374 2002-12-05 Paul Eggert <eggert@twinsun.com>
25376 * lib/alloca.c [defined emacs]: Include "lisp.h".
25377 (xalloc_die) [defined emacs]: New macro.
25378 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
25379 [! defined emacs]: Include <xalloc.h>.
25380 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
25381 (pointer): Typedef to POINTER_TYPE *.
25382 (malloc): Remove decl; we now always use xmalloc.
25383 (alloca): Use old-style definition, since Emacs needs this.
25384 Check for arithmetic overflow when computing combined size.
25386 2002-12-04 Paul Eggert <eggert@twinsun.com>
25388 Do not generate unlocked-io.h automatically, since it's easier to
25389 maintain it by hand.
25391 * lib/unlocked-io.h: New file, from GNU diffutils,
25392 but with proper copyright notice and attribution.
25393 * lib/gen-uio: Remove.
25394 * lib/Makefile.am: Add copyright notice.
25395 (libfetish_a_SOURCES): Add unlocked-io.h.
25396 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
25397 (DISTCLEANFILES, io_functions): Remove macros.
25398 (EXTRA_DIST): Remove gen_uio.
25399 (unlocked-io.h): Remove rule.
25401 2002-12-04 Jim Meyering <jim@meyering.net>
25403 Reflect the fact that stat.c and lstat.c are no longer generated.
25404 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
25405 (DISTCLEANFILES): Likewise.
25406 (EXTRA_DIST): Likewise.
25407 (all_local): Don't depend on stat.c or lstat.c.
25408 (stat.c, lstat.c): Remove rules.
25409 (EXTRA_DIST): Remove xstat.in.
25411 * lib/xstat.in: Remove file. Contents moved into stat.c.
25412 * lib/stat.c: New file. Contents mostly from xstat.in.
25413 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
25414 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
25416 * lib/safe-read.c: Rework so that it may serve to define safe_write,
25418 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
25420 2002-12-03 Jim Meyering <jim@meyering.net>
25422 * lib/safe-read.c, safe-write.c: Change variable names and comments,
25423 but not semantics, to minimize the differences between these two files.
25424 (safe_read): Change comment to mention SAFE_READ_ERROR.
25426 * lib/safe-read.c (IS_EINTR): Define.
25427 (safe_read): Use IS_EINTR in place of in-function cpp directives.
25429 2002-12-02 Jim Meyering <jim@meyering.net>
25431 * lib/safe-read.c (EINTR): Define.
25432 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
25433 (INT_MAX): Provide fallback.
25434 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
25436 * lib/safe-read.h (SAFE_READ_ERROR): Define.
25438 2002-12-02 Bruno Haible <bruno@clisp.org>
25440 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
25441 Define, taken from safe-read.c.
25442 (INT_MAX): Provide fallback.
25443 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
25444 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
25446 * lib/safe-read.c (EINTR): Remove definition.
25447 (safe_read): Don't use EINTR if it is absent.
25449 2002-12-01 Jim Meyering <jim@meyering.net>
25451 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
25453 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
25455 2002-11-27 Paul Eggert <eggert@twinsun.com>
25457 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
25458 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
25459 with `if (! (value < limit)) abort ();', for readability.
25461 2002-11-26 Karl Berry <karl@gnu.org>
25463 * lib/strdup.c: copy from libc again, with jim's ok.
25464 * lib/.cppi-disable: re-add strdup.c
25466 2002-11-25 Karl Berry <karl@gnu.org>
25468 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
25469 instead of "strtol.c".
25471 2002-11-25 Karl Berry <karl@gnu.org>
25473 * config/install-sh: update from automake for variable quoting, $0 in
25476 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
25477 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
25480 2002-11-25 Jim Meyering <jim@meyering.net>
25482 * lib/mktime.c: Sync from libc, now that it has the latest fix.
25484 2002-11-24 Karl Berry <karl@gnu.org>
25486 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
25487 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
25489 2002-11-24 Jim Meyering <jim@meyering.net>
25491 Update from coreutils:
25493 * lib/mktime.c: Merge in changes from libc.
25495 Avoid a link-time failure on some Linux systems.
25496 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
25498 (__mon_yday): Declare with the STATIC attribute.
25499 (__mktime_internal): Likewise.
25500 Based on a report from Greg Schafer.
25502 2002-11-23 Jim Meyering <jim@meyering.net>
25504 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
25505 Use `unsigned', not `int', as type of index.
25507 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
25509 * lib/fsusage.c: Remove unneeded parentheses around operands of
25512 2002-11-22 Paul Eggert <eggert@twinsun.com>
25514 * lib/quotearg.h: Allow multiple inclusion by surrounding with
25515 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
25516 so that we can be included first.
25517 (PARAMS): Remove; we now assume C89 or later. All uses removed.
25518 * lib/quotearg.c: Include quotearg.h immediately after config.h.
25519 No need to include stddef.h or sys/types.h any more.
25520 Surround local include files with "", not "<>".
25521 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
25522 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
25523 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
25524 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
25525 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
25526 (ISPRINT): Remove; no longer needed now that we assume C89.
25528 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
25531 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
25532 quotearg_char): Use SIZE_MAX rather than
25533 (size_t) -1 when we are talking about "infinity".
25535 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
25537 2002-11-22 Paul Eggert <eggert@twinsun.com>
25539 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
25540 hint that one should use `if (! x) abort ();' rather than `assert
25541 (x);', and anyway it's one less thing to worry about configuring.
25542 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
25543 hash_rehash, hash_insert): Use abort rather than assert.
25545 2002-11-22 Bruno Haible <bruno@clisp.org>
25547 * lib/safe-read.h: Assume C89. Add comments.
25548 (safe_read): Change return type to size_t.
25549 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
25550 byte counts > SSIZE_MAX correctly.
25551 * lib/safe-write.h: New file.
25552 * lib/safe-write.c: New file.
25553 * lib/full-read.h: New file.
25554 * lib/full-read.c: New file.
25555 * lib/full-write.h: Assume C89. Add comments.
25556 * lib/full-write.c: Include safe-write.h.
25557 (full_write): Rewritten to use safe_write.
25558 Suggested by Jim Meyering and Paul Eggert.
25560 2002-11-21 Jim Meyering <jim@meyering.net>
25562 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
25564 Merge in changes from the coreutils.
25566 2002-09-25 Paul Eggert <eggert@twinsun.com>
25567 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
25569 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
25570 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
25571 int. Work more efficiently if X is the same width as uintmax_t.
25572 Do not compare X to -1, to avoid bogus compiler warning.
25573 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
25574 Don't assume that f_frsize and f_bsize are the same type.
25576 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
25577 warning on FreeBSD.
25579 * lib/makepath.c (make_path): Restore umask *before* creating the final
25581 (make_path): Minor reformatting.
25583 * lib/xmalloc.c: Adjust to work with new autoconf macros,
25584 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
25585 HAVE_MALLOC/HAVE_REALLOC.
25587 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
25588 dummy ones. At least on GNU/Linux systems, `auto' means something
25590 From Michael Stone.
25592 2002-11-21 Bruno Haible <bruno@clisp.org>
25594 Remove case insensitive option matching.
25595 * lib/argmatch.h (argcasematch): Remove declaration.
25596 (ARGCASEMATCH): Remove macro.
25597 (__xargmatch_internal): Remove case_sensitive argument.
25598 (XARGMATCH): Update.
25599 (XARGCASEMATCH): Remove macro.
25600 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
25601 case_sensitive argument.
25602 (argcasematch): Remove function.
25603 (__xargmatch_internal): Remove case_sensitive argument.
25604 (main): Use XARGMATCH instead of XARGCASEMATCH.
25606 * lib/xmalloc.c: Change compile-time error message. Add comment about
25607 required autoconf version.
25609 2002-11-20 Paul Eggert <eggert@twinsun.com>
25611 Merge argmatch cleanups from Bison. Assume C89.
25613 * lib/argmatch.c: Include config.h here, not in argmatch.h.
25614 Include stdlib.h, for EXIT_FAILURE.
25615 Always include <string.h>, since we assume C89.
25616 (EXIT_FAILURE): Remove pre-C89 bug workaround.
25617 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
25618 Include <stddef.h> instead, since it's all we need for size_t.
25619 (PARAMS): Remove. All uses removed.
25620 (ARRAY_CARDINALITY): Do not bother to #undef.
25621 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
25622 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
25623 Remove unnecessary parentheses.
25624 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
25625 Insert necessary parentheses.
25626 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
25627 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
25629 2002-11-19 Bruno Haible <bruno@clisp.org>
25631 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
25632 * lib/mbswidth.h: Include <stddef.h>, for size_t.
25634 * lib/mbswidth.h (PARAMS): Remove macro.
25635 (mbswidth, mbsnwidth): Use ANSI C function declarations.
25636 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
25638 * lib/gcd.h (PARAMS): Remove macro.
25639 (gcd): Use ANSI C function declarations.
25640 * lib/gcd.c (gcd): Likewise.
25642 2002-11-15 Bruno Haible <bruno@clisp.org>
25644 * lib/strcspn.c: Include <stddef.h>.
25645 (strcspn): Use ANSI C function declaration. Change return type to
25647 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
25648 (strpbrk): Use NULL.
25649 * lib/strpbrk.h (PARAMS): Remove macro.
25650 (strpbrk): Use ANSI C function declaration.
25651 * lib/strstr.c: Don't include <sys/types.h>.
25652 * lib/strstr.h (PARAMS): Remove macro.
25653 (strstr): Use ANSI C function declarations.
25655 2002-11-14 Karl Berry <karl@gnu.org>
25657 * config/mkinstalldirs: `do' on separate line, instead of
25660 2002-11-06 Bruno Haible <bruno@clisp.org>
25662 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
25663 * lib/gcd.c (gcd): Likewise.
25665 2002-11-05 Bruno Haible <bruno@clisp.org>
25667 * lib/gcd.h: New file, from gettext-0.11.5.
25668 * lib/gcd.c: New file, from gettext-0.11.5.
25670 2002-11-05 Bruno Haible <bruno@clisp.org>
25672 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25673 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25674 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25675 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25677 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
25679 * lib/makepath.c: Include gettext.h instead of <locale.h> and
25682 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
25683 * lib/human.c: Include gettext.h instead of <libintl.h>.
25684 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
25685 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
25686 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
25687 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
25688 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
25689 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
25690 (textdomain): Remove definition.
25691 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
25693 * lib/long-options.c: Remove include of <libintl.h> and definition of
25695 * lib/same.c: Remove include of <libintl.h> and definition of _.
25697 2002-11-04 Owen Taylor <otaylor@redhat.com>
25699 * lib/config.charset: A few additions for Solaris.
25701 2002-11-04 Bruno Haible <haible@clisp.cons.org>
25703 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
25704 * lib/localcharset.c (locale_charset): Declare as extern "C".
25706 2002-11-04 Bruno Haible <haible@clisp.cons.org>
25708 * lib/config.charset: msdos in uk_UA uses CP1125.
25710 2002-11-04 Bruno Haible <bruno@clisp.org>
25712 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
25713 * lib/strcase.h: New file, from GNU gettext-0.11.5.
25714 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
25715 * lib/strstr.h: New file, from GNU gettext-0.11.5.
25716 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
25718 2002-11-04 Bruno Haible <bruno@clisp.org>
25720 * lib/localcharset.c (locale_charset): Don't return an empty string.
25722 2002-11-04 Bruno Haible <bruno@clisp.org>
25724 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
25727 2002-11-04 Bruno Haible <bruno@clisp.org>
25729 * lib/config.charset: Update for newest glibc. Add canonical names
25730 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
25732 2002-11-04 Bruno Haible <bruno@clisp.org>
25734 * lib/config.charset: Add support for NetBSD.
25736 2002-11-04 Bruno Haible <bruno@clisp.org>
25738 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
25740 2002-11-01 Bruno Haible <bruno@clisp.org>
25742 * configure.in: Add AC_CONFIG_AUX_DIR call.
25743 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
25745 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
25747 2002-09-28 Karl Berry <karl@gnu.org>
25749 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
25750 installed automake until the next release, since changes have been
25753 2002-09-25 Karl Berry <karl@gnu.org>
25755 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
25756 * lib/getopt*: copy from libc/posix.
25757 * lib/gettext.h: copy from gettext.
25758 * lib/.cppi-disable: add strdup.c, gettext.h.
25760 2002-09-25 Karl Berry <karl@gnu.org>
25762 * config/srclist.txt: enable gettext.h check.
25763 * config/config.{guess,sub}: update from prep.
25764 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
25765 from automake 1.6.3.
25768 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
25770 * regex.c (PATFETCH): Remove the translating fetch.
25771 (PATFETCH_RAW): Rename to PATFETCH.
25772 (set_image_of_range): New fun.
25773 (SET_RANGE_TABLE_WORK_AREA): Use it.
25774 (regex_compile): Don't translate the pattern chars so eagerly.
25775 Only do it when inserting an `exactn' bytecode or when handling
25777 (mutually_exclusive_p): Avoid empty statement.
25779 2002-07-06 Jim Meyering <meyering@lucent.com>
25781 * m4/README: Don't mention Makefile.am.in.
25782 Outline how I've tested changes to .m4 files. Yep, it's a pain.
25784 2002-07-01 Jim Meyering <meyering@lucent.com>
25786 * lib/c-stack.c: Include sys/time.h.
25787 From Volker Borchert.
25789 2002-06-26 Paul Eggert <eggert@twinsun.com>
25791 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
25793 2002-06-26 Paul Eggert <eggert@twinsun.com>
25795 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
25796 New macro. Use it uniformly instead of
25797 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
25798 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
25799 reported by Vin Shelton.
25801 2002-06-22 Paul Eggert <eggert@twinsun.com>
25803 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
25804 Do not assume SA_SIGINFO behavior.
25805 Bug reported by Jim Meyering on NetBSD 1.5.2.
25807 2002-06-22 Jim Meyering <meyering@lucent.com>
25809 * m4/c-stack.m4: New file, from diffutils-2.8.2.
25810 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
25812 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
25813 now that configure.ac uses AC_GNU_SOURCE.
25814 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
25815 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
25817 Update to latest tools. Suggestions from Paul Eggert.
25818 * m4/stdbool.m4: New file, from diffutils-2.8.2.
25819 * m4/gnu-source.m4: Update from diffutils-2.8.2.
25820 * m4/fnmatch.m4: Likewise.
25821 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
25822 to AC_HEADER_STDBOOL
25824 2002-06-22 Jim Meyering <meyering@lucent.com>
25826 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
25827 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
25829 2002-06-22 Jim Meyering <meyering@lucent.com>
25831 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
25833 * lib/exitfail.c, exitfail.h: Likewise.
25834 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
25836 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
25838 (EXTRA_DIST): Add fnmatch_loop.c.
25839 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
25841 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
25842 * lib/fnmatch.c: Update from diffutils-2.8.2.
25843 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
25844 * lib/fnmatch.h: Remove file.
25846 2002-06-21 Jim Meyering <meyering@lucent.com>
25848 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
25849 * m4/mbrtowc.m4: Likewise.
25851 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
25852 * m4/mbswidth.m4: Reflect name change:
25853 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
25854 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
25856 * m4/lib-link.m4: Update from gettext-0.11.2.
25857 * m4/gettext.m4: Likewise.
25859 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
25860 From Alfred M. Szmidt.
25862 2002-06-18 Paul Eggert <eggert@twinsun.com>
25864 * lib/file-type.h: Report an error if neither S_ISREG nor
25865 S_IFREG is defined, instead of using a test specific to glibc
25866 2.2. This should be safe, since POSIX requires S_ISREG and
25867 Unix Version 7 had S_IFREG. We don't need to check for
25868 <sys/types.h> since we don't use any symbols that it defines.
25870 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
25872 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
25873 $@-t, so that each temporary file name is unique and valid in the first
25874 8 characters, for operation under DOS.
25876 2002-06-15 Paul Eggert <eggert@twinsun.com>
25878 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
25880 2002-06-15 Jim Meyering <meyering@lucent.com>
25882 Work even with DJGPP 2.03, which lacks support for symlinks.
25884 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
25886 * lib/lchown.c (S_ISLNK): Likewise.
25888 2002-06-15 Jim Meyering <meyering@lucent.com>
25890 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
25891 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
25892 have been included before this file.
25894 2002-06-14 Jim Meyering <meyering@lucent.com>
25896 * lib/file-type.h: Use the version from diffutils-2.8.2.
25897 * lib/file-type.c: Likewise.
25899 2002-06-07 Jim Meyering <meyering@lucent.com>
25901 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
25902 They're needed at least for NetBSD 1.5.2.
25903 ($statxfs_includes): Include those same headers.
25904 ($statxfs_includes): Include sys/vfs.h if available.
25905 ($statxfs_includes): Likewise for sys/statvfs.h.
25906 Check for the following members in both structs statfs and statvfs:
25907 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
25909 2002-06-01 Jim Meyering <meyering@lucent.com>
25911 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
25912 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
25914 2002-05-28 Jim Meyering <meyering@lucent.com>
25916 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
25917 Reported by Volker Borchert.
25919 2002-05-27 Jim Meyering <meyering@lucent.com>
25921 Fix a problem seen only on nonconforming systems whereby ls.c's
25922 use of localtime, and then of gettimeofday would cause trouble:
25923 the localtime call used to initialize rpl_gettimeofday's save
25924 mechanism would clobber ls's current local time information so
25925 that in any long listing the first file would always be listed
25926 with date 1970-01-01. Analysis by Volker Borchert.
25928 * lib/gettimeofday.c (localtime): Undefine.
25929 (rpl_localtime): New function.
25931 2002-05-27 Jim Meyering <meyering@lucent.com>
25933 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
25936 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
25937 use the replacement function; it wouldn't resolve at link time.
25938 Reported by Volker Borchert.
25940 2002-05-22 Jim Meyering <meyering@lucent.com>
25942 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
25944 * lib/file-type.h: New file.
25945 * lib/file-type.c (file_type): New file/function. Extracted from
25948 2002-04-30 Jim Meyering <meyering@lucent.com>
25950 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
25952 2002-04-29 Paul Eggert <eggert@twinsun.com>
25954 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
25956 2002-04-29 Paul Eggert <eggert@twinsun.com>
25958 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
25959 Do not check for alloca.h (no longer used) or stdbool.h (was never
25960 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
25962 2002-04-29 Paul Eggert <eggert@twinsun.com>
25964 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
25966 2002-04-29 Jim Meyering <meyering@lucent.com>
25968 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
25969 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
25970 Use AC_FUNC_STRNLEN here instead.
25972 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
25973 With autoconf-2.53a, it's part of AC_PROG_CC.
25975 2002-04-28 Paul Eggert <eggert@twinsun.com>
25977 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
25978 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
25980 2002-04-28 Paul Eggert <eggert@twinsun.com>
25982 * lib/sig2str.h, lib/sig2str.c: New files.
25983 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
25985 2002-04-28 Paul Eggert <eggert@twinsun.com>
25987 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
25988 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
25989 of 127, since 64 is the largest conceivable number for ancient
25991 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
25993 2002-04-28 Jim Meyering <meyering@lucent.com>
25995 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
25997 2002-04-24 Jim Meyering <meyering@lucent.com>
25999 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
26000 (jm_PREREQ): Use it.
26002 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
26003 mach/mach.h fcntl.h.
26004 Check for this function: setlocale.
26006 2002-04-24 Jim Meyering <meyering@lucent.com>
26008 * lib/gettext.h: New file, from Gettext.
26009 * lib/Makefile.am (INCLUDES): Remove -I../intl.
26010 (libfetish_a_SOURCES): Add gettext.h.
26012 2002-04-16 Jim Meyering <meyering@lucent.com>
26014 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
26015 ut_pid, ut_id, ut_exit.
26017 2002-04-16 Jim Meyering <meyering@lucent.com>
26019 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
26020 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
26021 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
26023 2002-04-12 Jim Meyering <meyering@lucent.com>
26025 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
26026 now-bogus check for f_type in sys/mount.h. Instead, just test for the
26027 existence of the getmntinfo function. Needed for Darwin 5.3.
26029 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
26030 This is necessary at least on Darwin 5.3.
26032 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
26033 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
26034 strnlen.o in the library, and that makes some versions of ranlib
26037 2002-04-12 Jim Meyering <meyering@lucent.com>
26039 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
26041 2002-04-09 Jim Meyering <meyering@lucent.com>
26043 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
26044 to be more precise. Rather than saying we're checking whether the
26045 function `works', say what we're testing.
26046 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
26047 Reported by Bruno Haible.
26049 2002-03-10 Jim Meyering <meyering@lucent.com>
26051 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
26052 Suggestion from Santiago Vila.
26054 2002-03-08 Jim Meyering <meyering@lucent.com>
26056 * lib/rename.c: Mention that this wrapper is needed also on
26057 mips-dec-ultrix4.4 systems.
26059 2002-03-02 Jim Meyering <meyering@lucent.com>
26061 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
26062 not HAVE_CLOCK_SETTIME.
26064 2002-02-27 Paul Eggert <eggert@twinsun.com>
26066 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
26067 Check for clock_settime.
26069 2002-02-27 Paul Eggert <eggert@twinsun.com>
26071 * lib/nanosleep.h: Rename to....
26072 * lib/timespec.h: New name for nanosleep.h. All uses changed.
26074 * lib/gettime.c: New file.
26075 * lib/settime.c: New file.
26076 * lib/stime.c: Remove.
26078 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
26079 timespec.h. Remove nanosleep.h.
26081 2002-02-25 Paul Eggert <eggert@twinsun.com>
26083 * m4/acl.m4: New file.
26084 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
26085 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
26087 2002-02-25 Paul Eggert <eggert@twinsun.com>
26089 * lib/acl.c, lib/acl.h: New files.
26090 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
26092 2002-02-24 Jim Meyering <meyering@lucent.com>
26094 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
26095 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
26096 cause trouble. Reported by Nelson Beebe.
26098 2002-02-23 Paul Eggert <eggert@twinsun.com>
26100 * lib/path-concat.c (xpath_concat): Reorder code to pacify
26101 compilers that don't know that xalloc_die never returns.
26103 2002-02-20 Jim Meyering <meyering@lucent.com>
26105 * lib/getdate.c: Regenerate using bison-1.33.
26107 2002-02-17 Jim Meyering <meyering@lucent.com>
26109 * config/config.guess (main): Don't use `head -1'; it's no longer
26110 portable. Use `sed 1q' instead.
26112 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
26114 * m4/codeset.m4: Upgrade to gettext-0.11.
26115 * m4/gettext.m4: Upgrade to gettext-0.11.
26116 * m4/glibc21.m4: Upgrade to gettext-0.11.
26117 * m4/iconv.m4: Upgrade to gettext-0.11.
26118 * m4/isc-posix.m4: Upgrade to gettext-0.11.
26119 * m4/lcmessage.m4: Upgrade to gettext-0.11.
26120 * m4/lib-ld.m4: New file, from gettext-0.11.
26121 * m4/lib-link.m4: New file, from gettext-0.11.
26122 * m4/lib-prefix.m4: New file, from gettext-0.11.
26123 * m4/progtest.m4: Upgrade to gettext-0.11.
26125 2002-02-15 Paul Eggert <eggert@twinsun.com>
26127 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
26128 (jm_PREREQ): Use it.
26130 2002-02-15 Paul Eggert <eggert@twinsun.com>
26132 * lib/posixver.c, lib/posixver.h: New files.
26133 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
26135 2002-02-02 Paul Eggert <eggert@twinsun.com>
26136 Bruno Haible <bruno@clisp.org>
26138 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
26139 (fwrite_success_callback): New declaration.
26140 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
26141 print_unicode_char. Call failure callback instead of error.
26142 (fwrite_success_callback): New function.
26143 (exit_failure_callback): New function.
26144 (fallback_failure_callback): New function.
26145 (print_unicode_char): Call unicode_to_mb.
26147 2002-01-26 Jim Meyering <meyering@lucent.com>
26149 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
26150 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
26152 2002-01-26 Jim Meyering <meyering@lucent.com>
26154 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
26156 2002-01-22 Paul Eggert <eggert@twinsun.com>
26158 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
26160 2002-01-22 Jim Meyering <meyering@lucent.com>
26162 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
26163 Otherwise, some versions of automake would omit the rule that makes
26164 Makefile from Makefile.in.
26166 2002-01-21 Paul Eggert <eggert@twinsun.com>
26168 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
26169 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
26170 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
26171 (memcoll): Set errno to zero if there is no error.
26173 * lib/quotearg.c (quotearg_buffer_restyled):
26174 Fix bug with quoting buffers containing NUL when backslashing escapes.
26175 This bug was exposed by the other changes in this patch.
26176 (quotearg_n_options): New arg ARGSIZE.
26177 All callers changed.
26178 (quoting_options_from_style): New function.
26179 (quotearg_n_style): Use it.
26180 (quotearg_n_style_mem): New function.
26182 * lib/quotearg.h (quotearg_n_style_mem): New function.
26184 2002-01-19 Jim Meyering <meyering@lucent.com>
26186 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
26187 Remove useless quotes: DF_PROG="df".
26188 * m4/strnlen.m4: New file.
26190 2002-01-16 Paul Eggert <eggert@twinsun.com>
26192 * lib/backupfile.c (ISDIGIT): Comment fix.
26193 * lib/getdate.y (ISDIGIT): Likewise.
26194 * lib/posixtm.c (ISDIGIT, year): Likewise.
26195 * lib/strverscmp.c (ISDIGIT): Likewise.
26196 * lib/userspec.c (ISDIGIT): Likewise.
26198 2002-01-16 Jim Meyering <meyering@lucent.com>
26200 * lib/getdate.y: Add three semicolons, each just before a closing
26201 brace. Bison (as of version 1.31) no longer papers over that mistake.
26203 2002-01-05 Jim Meyering <meyering@lucent.com>
26205 * lib/version-etc.c (version_etc_copyright): Update copyright year.
26207 2001-12-19 Paul Eggert <eggert@twinsun.com>
26209 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
26210 not silently exit merely because the output buffer happens to
26211 have nothing pending.
26213 2001-12-18 Paul Eggert <eggert@twinsun.com>
26215 See the big note in ../ChangeLog.
26216 * lib/human.c (suffixes): Prefer K to k for 1024.
26217 (generate_suffix_backwards): New function.
26218 (human_readable_inexact): Use it.
26219 * lib/xstrtol.c (__xstrtol): If there is no number but there
26220 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
26221 Accept 'K' as well as 'k'.
26223 2001-12-15 Jim Meyering <meyering@lucent.com>
26225 * lib/regex.h (__restrict_arr): Update from libc.
26227 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
26228 as `remote' if the name starts with `//'. Suggested by Michael Stone.
26231 2001-12-14 Jim Meyering <meyering@lucent.com>
26233 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
26234 Suggestion from Bruno Haible.
26236 2001-12-10 Jim Meyering <meyering@lucent.com>
26238 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
26239 xrealloc, Instead, include "xalloc.h".
26240 (initbuffer): Don't cast xmalloc return value to char*.
26241 (readline): Reword comment.
26242 Don't cast xrealloc return value to char*
26243 Return NULL, not 0.
26245 2001-12-09 Jim Meyering <meyering@lucent.com>
26247 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
26248 about `signed and unsigned type in conditional expression'.
26249 * lib/posixtm.c (posix_time_parse): Likewise.
26251 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
26253 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
26254 to avoid a pedantic warning.
26256 * lib/getstr.c: Don't include assert.h.
26257 (getstr): Remove warning-evoking assertions.
26258 Return -1 if offset parameter is out of bounds.
26259 Change the type of a local from int to size_t.
26261 * lib/strftime.c (my_strftime_localtime_r): Include this function
26262 definition in the `#if ! HAVE_TM_GMTOFF' block.
26264 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
26265 Include xalloc.h instead.
26267 2001-12-02 Jim Meyering <meyering@lucent.com>
26269 * lib/tempname.c: Don't declare getenv, thus reverting the change of
26270 2001-11-18. It's no longer necessary, now that stdlib.h is always
26273 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
26274 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
26276 2001-11-30 Akim Demaille <akim@epita.fr>
26278 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
26279 before being defined.
26281 2001-11-27 Paul Eggert <eggert@twinsun.com>
26283 * lib/quotearg.h (quotearg_n, quotearg_n_style):
26284 First arg is int, not unsigned.
26285 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
26286 (SIZE_MAX, UINT_MAX): New macros.
26287 (quotearg_n_options): Abort if N is negative.
26288 Avoid overflow check on hosts where size_t is 64 bits and int
26289 is 32 bits, as overflow is impossible there.
26290 Fix off-by-one typo that caused unnecessary reallocation.
26292 2001-11-27 Jim Meyering <meyering@lucent.com>
26294 * lib/tempname.c: Merge with version from libc.
26295 * lib/regex.c: Likewise.
26297 * lib/tempname.c: Include stdlib.h unconditionally. On some old
26298 systems for which STDC_HEADERS is 0, it was not included, resulting in
26299 a warning about an integer-to-pointer conversion problem with getenv.
26300 Reported by Volker Borchert.
26302 2001-11-26 Jim Meyering <meyering@lucent.com>
26304 * lib/gtod.h: Remove file.
26305 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
26306 * lib/gettimeofday.c: Don't include gtod.h.
26307 (GTOD_init): Remove function.
26308 (rpl_gettimeofday): Do its job here instead, rather than aborting.
26309 Suggestion from Volker Borchert.
26311 2001-11-23 Jim Meyering <meyering@lucent.com>
26313 * lib/hash.h (struct hash_table): Don't define here. Merely declare
26315 * lib/hash.c (struct hash_table): Define it here instead.
26317 2001-11-22 Jim Meyering <meyering@lucent.com>
26319 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
26321 2001-11-20 Jim Meyering <meyering@lucent.com>
26323 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
26324 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
26326 2001-11-19 Jim Meyering <meyering@lucent.com>
26328 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
26329 directory. Use "conftestXXXXXX" as the template.
26330 Suggestion from Paul Eggert.
26332 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
26333 immediately, so the test doesn't mistakenly hit the max-open-files
26336 2001-11-18 Paul Eggert <eggert@twinsun.com>
26338 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
26339 (TEMPORARIES): New macro.
26340 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
26341 removes an artificial limitation (e.g. HP-UX 10.20, where
26344 2001-11-18 Jim Meyering <meyering@lucent.com>
26346 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
26348 2001-11-18 Jim Meyering <meyering@lucent.com>
26350 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
26353 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
26354 files will be created before anything else.
26356 2001-11-17 Paul Eggert <eggert@twinsun.com>
26358 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
26359 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
26361 2001-11-17 Jim Meyering <meyering@lucent.com>
26363 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
26364 Prompted by a report from Bob Proulx.
26366 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
26367 Instead, require UTILS_FUNC_MKSTEMP.
26369 2001-11-17 Jim Meyering <meyering@lucent.com>
26371 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
26372 Now, that's done as part of AC_FUNC_STRTOD.
26374 2001-11-17 Jim Meyering <meyering@lucent.com>
26376 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
26377 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
26378 rather than group writable. Patch by Juan F. Codagnone.
26380 * lib/readtokens.c: Remove explicit declarations of xmalloc and
26381 xrealloc, Instead, include "xalloc.h".
26383 * lib/mountlist.c: Include unlocked-io.h after all system headers.
26384 Remove explicit declarations of xmalloc, xrealloc,
26385 and xstrdup. Instead, include "xalloc.h".
26387 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
26389 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
26391 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
26393 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
26394 Reported by Padraig Brady.
26396 * lib/mkstemp.c: #undef mkstemp.
26398 (rpl_mkstemp): Rename from mkstemp.
26401 2001-11-16 Jim Meyering <meyering@lucent.com>
26403 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
26404 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
26405 determine the amount of total physical memory, use pstat_getstatic.
26406 HPUX-11 doesn't define _SC_PHYS_PAGES.
26407 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
26408 If sysconf couldn't be used to determine the amount of available
26409 physical memory, use both pstat_getstatic and pstat_getdynamic.
26410 Based on a patch from Bob Proulx.
26412 2001-11-10 Jim Meyering <meyering@lucent.com>
26414 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
26415 (jm_PREREQ): Use it.
26417 2001-11-09 Jim Meyering <meyering@lucent.com>
26419 * m4/jm-macros.m4: Require autoconf-2.52f.
26420 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
26421 Use these AC_-prefixed names, not the AM_-prefixed ones.
26423 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
26425 2001-11-05 Jim Meyering <meyering@lucent.com>
26427 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
26429 2001-11-04 Jim Meyering <meyering@lucent.com>
26431 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
26434 2001-11-03 Jim Meyering <meyering@lucent.com>
26436 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
26439 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
26440 know the name of the variable in the macro definition.
26442 2001-11-03 Jim Meyering <meyering@lucent.com>
26444 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
26445 in argmatch_to_argument call.
26447 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
26450 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
26451 e.g., a fault due to an attempt to free a NULL pointer.
26453 2001-11-01 Jim Meyering <meyering@lucent.com>
26455 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
26456 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
26458 2001-11-01 Jim Meyering <meyering@lucent.com>
26460 * lib/dirfd.c, lib/dirfd.h: New files.
26461 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
26463 * lib/hash.c (hash_print) [TESTING]: Clean up.
26465 2001-10-22 Paul Eggert <eggert@twinsun.com>
26467 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
26468 to avoid a warning if -Wall.
26470 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
26473 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
26474 (per RMS's instructions, this is now the canonical source)
26475 * lgpl/, gpl/: New directories.
26477 2001-10-21 Paul Eggert <eggert@twinsun.com>
26479 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
26481 2001-10-21 Jim Meyering <meyering@lucent.com>
26483 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
26484 this code would end up calling gettext even in packages built
26485 with --disable-nls.
26486 * lib/getopt.c (_): Likewise.
26487 * lib/regex.c (_): Likewise.
26489 2001-10-20 Paul Eggert <eggert@twinsun.com>
26491 * m4/error.m4 (jm_PREREQ_ERROR):
26492 Do not invoke AC_CHECK_FUNCS with strerror_r, as
26493 AC_FUNC_STRERROR_R does that.
26494 Check for strerror declaration.
26496 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
26497 are supposed to have them these days.
26498 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
26499 Merge changes from latest Autoconf CVS.
26500 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
26501 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
26502 POSIX decided to standardize on the int flavor of strerror_r.
26504 2001-10-20 Paul Eggert <eggert@twinsun.com>
26506 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
26507 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
26508 Use strerror_r that is only a macro, even if it is not a function.
26509 (strerror): Check for HAVE_DECL_STRERROR before declaring.
26510 (private_strerror): Use prototypes, not old-style function definition.
26511 (print_errno_message): New function.
26512 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
26513 char*-flavored one.
26514 (error_tail, error, error_at_line): Use it.
26516 2001-10-11 Jim Meyering <meyering@lucent.com>
26518 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
26519 and quote_n (1, ... to avoid clobbering a buffer.
26521 2001-10-05 Jim Meyering <meyering@lucent.com>
26523 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
26525 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
26526 * lib/hash-pjw.h: New file.
26528 2001-09-30 Jim Meyering <meyering@lucent.com>
26530 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
26531 `struct fsstat' has the `f_fstypename' member.
26532 Use that to define FS_TYPE, which is now used to make
26533 the getfsstat link test tighter.
26535 2001-09-30 Jim Meyering <meyering@lucent.com>
26537 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
26538 Include <sys/ucred.h>, for Apple Darwin.
26539 Include sys/mount.h and sys/fs_types.h only if available.
26541 (read_filesystem_list): Use FS_TYPE.
26543 2001-09-29 Paul Eggert <eggert@twinsun.com>
26545 * lib/exclude.c (excluded_filename): 0 -> false, since it's
26548 2001-09-29 Jim Meyering <meyering@lucent.com>
26550 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
26551 [one-argument getmntent function]): Include stdio.h before mntent.h.
26552 SunOS 4.1.x needs it for the declaration of `FILE'.
26553 Patch by Volker Borchert.
26555 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
26556 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
26557 sys/fs_types.h, and make the link-test for getfsstat guard #include
26558 directives with appropriate #if HAVE_*_H tests so that we can
26559 detect getfsstat on Apple Darwin1.3.7 systems.
26560 Reported by Nelson Beebe.
26561 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
26563 2001-09-28 Paul Eggert <eggert@twinsun.com>
26565 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
26566 #defines strtoimax. Also treat the other strto* functions
26569 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
26570 Check for strtoul and strtoumax,
26571 as those declarations are made even in the signed case.
26572 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
26573 Likewise, for strtol and strtoimax.
26575 2001-09-28 Paul Eggert <eggert@twinsun.com>
26577 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
26578 #defines strtoimax. Also treat the other strto* functions
26581 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
26582 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
26583 (strtoimax, strtoumax): Do not declare if already defined as a macro.
26585 2001-09-26 Jim Meyering <meyering@lucent.com>
26587 Most macros in unlocked-io.h had the wrong number of arguments.
26588 * lib/gen-uio: New script.
26589 (USE_UNLOCKED_IO): Define to 1 if not already defined.
26590 * lib/unlocked-io.hin: Remove file.
26591 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
26592 rather than trying to embed it here.
26593 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
26594 Reported by Padraig Brady.
26596 2001-09-25 Volker Borchert <bt@teknon.de>
26598 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
26601 2001-09-24 Jim Meyering <meyering@lucent.com>
26603 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
26605 2001-09-23 Jim Meyering <meyering@lucent.com>
26607 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
26608 instead of the mere test for existence of mntent.h. The latter
26609 would get a false-positive on AIX 3.4 systems.
26610 In the outer getmntent if-block, don't die if neither of the getmntent
26611 tests succeeds. Instead, just fall through and continue with the
26614 2001-09-23 Jim Meyering <meyering@lucent.com>
26616 * lib/mountlist.c: Remove useless parentheses in #if directives.
26617 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
26618 the deprecated MOUNTED symbol is no longer defined in mntent.h.
26620 2001-09-22 Jim Meyering <meyering@lucent.com>
26622 * m4/gettext.m4: New file. From gettext.
26623 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
26624 * m4/progtest.m4: Likewise
26625 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
26626 * m4/glibc21.m4: Likewise.
26628 * m4/libintl.m4: Remove. No longer used.
26630 2001-09-22 Jim Meyering <meyering@lucent.com>
26632 * lib/localcharset.c: Update from latest gettext.
26633 * lib/config.charset: Likewise.
26635 2001-09-20 Jim Meyering <meyering@lucent.com>
26637 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
26639 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
26642 2001-09-20 Jim Meyering <meyering@lucent.com>
26644 * lib/xstrtol.c (strtoimax): Guard declaration with
26645 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
26646 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
26647 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
26648 (strtoumax): Likewise, for completeness (it wasn't necessary).
26650 2001-09-17 Paul Eggert <eggert@twinsun.com>
26652 * lib/strtoimax.c (HAVE_LONG_LONG):
26653 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
26654 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
26655 to work around bug in IBM C compiler.
26657 2001-09-17 Jim Meyering <meyering@lucent.com>
26659 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
26660 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
26661 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
26662 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
26663 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
26664 whenever the right hand side need not be expanded by the shell.
26666 2001-09-16 Paul Eggert <eggert@twinsun.com>
26668 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
26669 library. It's not correct, as some older glibcs are buggy.
26670 fnmatch wasn't fixed until glibc 2.2.
26672 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
26673 special shell magic here.
26675 2001-09-16 Jim Meyering <meyering@lucent.com>
26677 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
26678 * m4/jm-macros.m4: Require it.
26680 2001-09-16 Jim Meyering <meyering@lucent.com>
26682 * lib/mkdir.c: New file.
26684 2001-09-15 Jim Meyering <meyering@lucent.com>
26686 * m4/jm-macros.m4: Check for help2man.
26688 2001-09-11 Jim Meyering <meyering@lucent.com>
26690 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
26691 The body, by Paul Eggert, was moved here from configure.in.
26692 * m4/jm-macros.m4: Require UTILS_HOST_OS.
26694 2001-09-04 Paul Eggert <eggert@twinsun.com>
26696 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
26697 (jm_PREREQ): Use it.
26699 2001-09-04 Paul Eggert <eggert@twinsun.com>
26701 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
26702 Use ssize_t, not int, to store result of readlink.
26703 Check for ssize_t overflow as well as size_t overflow,
26704 as POSIX says the result of readlink is implementation-defined
26705 when ssize_t overflows.
26706 Remove unnecessary cast to char*.
26707 Use free+malloc instead of realloc, as the storage doesn't need
26708 to be preserved and it's clearer and can be more efficient that way.
26709 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
26710 * lib/xreadlink.h (xreadlink): Update prototype.
26712 2001-09-04 Paul Eggert <eggert@twinsun.com>
26714 * lib/xgetcwd.c: Revert some of the previous change; intead,
26715 fix the HAVE_GETCWD_NULL code to behave more like the
26716 !HAVE_GETCWD_NULL code used to.
26718 Include "xalloc.h".
26719 (xgetcwd): Do not return NULL when memory is exhausted; instead,
26722 2001-09-03 Paul Eggert <eggert@twinsun.com>
26724 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
26725 sys/param.h, as pathmax.h includes them.
26727 2001-09-03 Paul Eggert <eggert@twinsun.com>
26729 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
26730 (jm_PREREQ_XGETCWD): New macro.
26732 * m4/getcwd.m4: New file.
26734 2001-09-03 Paul Eggert <eggert@twinsun.com>
26736 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
26737 like the HAVE_GETCWD_NULL code.
26738 Include pathmax.h if not HAVE_GETCWD.
26739 Do not include xalloc.h.
26740 (INITIAL_BUFFER_SIZE): New symbol.
26741 Do not use xmalloc / xrealloc, since the caller is responsible for
26742 handling errors. Preserve errno around `free' during failure.
26743 Do not overrun buffer when using getwd.
26745 2001-09-03 Paul Eggert <eggert@twinsun.com>
26747 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
26748 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
26751 2001-09-03 Paul Eggert <eggert@twinsun.com>
26753 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
26754 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
26755 spotted by Jim Meyering.
26757 2001-09-03 Jim Meyering <meyering@lucent.com>
26759 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
26762 2001-09-02 Jim Meyering <meyering@lucent.com>
26764 * lib/error.c: Update from GNU libc.
26766 2001-09-01 Jim Meyering <meyering@lucent.com>
26768 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
26771 2001-09-01 Jim Meyering <meyering@lucent.com>
26773 * lib/xreadlink.c: New file.
26774 * lib/xreadlink.h: New file.
26775 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
26778 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
26779 doesn't conflict with sparc Solaris 7's definition in
26780 /usr/include/sys/int_types.h.
26782 * lib/exclude.c: Use `""', not `<>' to #include non-system header
26784 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
26785 and strncasecmp as r-values. Unixware didn't have declarations.
26787 2001-08-31 Paul Eggert <eggert@twinsun.com>
26789 * lib/xstrtol.h: Add copyright notice.
26790 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
26791 LONGINT_INVALID_SUFFIX_CHAR.
26793 2001-08-31 Paul Eggert <eggert@twinsun.com>
26795 * lib/xstrtol.c (strtoimax): New decl.
26797 2001-08-31 Paul Eggert <eggert@twinsun.com>
26799 * lib/xgetcwd.c: Don't include pathmax.h.
26800 Include stdlib.h and unistd.h if available.
26802 (xmalloc, xstrdup, free): Remove decls.
26803 (xgetcwd): Don't assume sizes fit in unsigned.
26804 Check for overflow when computing sizes.
26805 Simplify reallocation code.
26807 2001-08-31 Paul Eggert <eggert@twinsun.com>
26809 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
26810 a directory's st_size can have an arbitrary value, so the old
26811 usage could waste an arbitrary amount of memory. All uses
26813 * lib/savedir.h: Update prototype.
26815 2001-08-31 Paul Eggert <eggert@twinsun.com>
26817 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
26819 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
26822 Also, make the following further changes to make this file's
26823 configuration more similar to that of strtol.c:
26824 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
26825 (strtoumax, uintmax_t, strtoull, strtol): Remove.
26826 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
26827 (strtoimax): Renamed from strtoumax. All uses of unsigned values
26828 changed to signed values.
26830 And make the following changes as well:
26831 Fix copyright notice, as 1999 was missing.
26832 (verify): New macro.
26833 (strtoimax): Check sizes at compile-time, not run-time.
26834 Prefer strtol to strtoll if both work.
26835 (main): Remove; it was not that useful and was a pain to maintain.
26837 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
26839 2001-08-31 Jim Meyering <meyering@lucent.com>
26841 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
26842 Use an initial, malloc'd, buffer of length 128 rather than
26843 a statically allocated one of length 1024.
26845 2001-08-30 Paul Eggert <eggert@twinsun.com>
26847 Simplify code, partly by assuming autoconf 2.52 semantics.
26849 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
26851 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
26852 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
26854 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
26855 Move AC_REQUIRE to next-to-top level, to avoid confusion.
26856 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
26857 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
26858 jm_AC_HEADER_INTTYPES_H.
26859 * m4/jm-macros.m4 (jm_MACROS): Likewise.
26861 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
26863 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
26864 Quote first arg of AC_DEFUN.
26865 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
26866 since they are needed to parse the include file even if we need
26867 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
26868 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
26869 but with opposite signedness.
26871 2001-08-30 Paul Eggert <eggert@twinsun.com>
26873 Merge 'exclude' changes from tar 1.13.22.
26874 This fixes one or two unlikely storage allocation overflow bugs,
26875 but doesn't change user-visible behavior otherwise.
26877 2001-08-30 Paul Eggert <eggert@twinsun.com>
26879 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
26880 (jm_PREREQ_EXCLUDE): New macro.
26882 2001-08-30 Paul Eggert <eggert@twinsun.com>
26884 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
26887 2001-08-30 Paul Eggert <eggert@twinsun.com>
26889 * lib/hash.c: Remove '2001' from copyright notice.
26891 2001-08-30 Paul Eggert <eggert@twinsun.com>
26893 * lib/full-write.h: New file.
26894 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
26895 * lib/full-write.c: Correct credits, as cccp.c no longer
26896 exists and anyway it was so heavily changed from the old cccp
26897 code as to be unrecognizable. Include full-write.h.
26898 (full_write) Return size_t, with short writes meaning failure.
26899 All callers changed. This fixes a bug with large buffers
26901 * lib/utime.c: Include full-write.h.
26903 2001-08-30 Paul Eggert <eggert@twinsun.com>
26905 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
26906 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
26907 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
26908 Include if available.
26909 (<xalloc.h>): Include
26910 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
26911 (verify): New macro. Use it to verify that EXCLUDE macros do not
26912 collide with FNM macros.
26913 (struct patopts): New struct.
26914 (struct exclude): Use it, as exclude patterns now come with options.
26915 (new_exclude): Support above changes.
26916 (new_exclude, add_exclude_file):
26917 Initial size must now be a power of two to simplify overflow checking.
26918 (free_exclude, fnmatch_no_wildcards): New function.
26919 (excluded_filename): No longer requires options arg, as the options
26920 are determined by add_exclude. Now returns bool, not int.
26921 (excluded_filename, add_exclude):
26922 Add support for the fancy new exclusion options.
26923 (add_exclude, add_exclude_file): Now takes int options arg.
26924 Check for arithmetic overflow when computing sizes.
26925 (add_exclude_file): xrealloc might modify errno, so don't
26926 realloc until after errno might be used.
26928 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
26930 (free_exclude): New decl.
26931 (add_exclude, add_exclude_file): Now takes int options arg.
26932 (excluded_filename): No longer requires options arg, as the options
26933 are determined by add_exclude. Now returns bool, not int.
26935 2001-08-30 Paul Eggert <eggert@twinsun.com>
26937 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
26939 2001-08-27 Jim Meyering <meyering@lucent.com>
26941 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
26943 * lib/version-etc.c (N_): Remove definition.
26944 Revert most of last change.
26945 Instead, simply don't mark the `Copyright...' string for translation.
26946 Based on advice from Paul Eggert.
26948 * lib/strtoxmax.c: Tweak comment.
26950 2001-08-26 Jim Meyering <meyering@lucent.com>
26952 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
26954 * m4/xstrtoimax.m4: New file.
26955 * m4/xstrtoumax.m4: Add comments explaining why we
26956 AC_REPLACE_FUNCS(strtol).
26958 2001-08-26 Jim Meyering <meyering@lucent.com>
26960 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
26961 of copyright with `%s' so translators don't get an untranslated
26963 (COPYRIGHT_YEAR): Define.
26964 (version_etc): Use fprintf rather than fputs.
26965 Suggestion from Ulrich Drepper.
26967 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
26969 * lib/strtoll.c: New file, from GNU libc.
26970 * lib/xstrtoimax.c: New file.
26972 * lib/xstrtol.h: Add xstrtoimax.
26973 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
26974 * lib/strtoimax.c: New file. Likewise, but first define
26977 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
26979 * lib/strtoxmax.c: ... then renamed to this.
26981 2001-08-18 Paul Eggert <eggert@twinsun.com>
26983 * m4/inttypes.m4: Add AC_PREREQ(2.13).
26984 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
26985 (jm_AC_TYPE_INTMAX_T): New macro.
26986 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
26988 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
26990 * m4/longlong.m4: Renamed from ulonglong.m4.
26991 * m4/inttypes.m4: Renamed from inttypes_h.m4.
26992 * m4/uintmax_t.m4: Removed.
26994 2001-08-13 Paul Eggert <eggert@twinsun.com>
26996 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
26997 Port to Solaris 8, where 'sed' requires a space after the 'r'
26998 command, and where sh dislikes "$/". Clean up the spacing a bit.
26999 Redirect output to $tmp just once.
27001 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
27003 * lib/addext.c (<errno.h>): Include.
27004 (errno): Declare if not defined.
27005 (addext): Work correctly when pathconf returns -1 and leaves
27006 errno alone because there is no limit. Also, work even if
27007 pathconf returns a value greater than SIZE_MAX.
27009 2001-08-12 Jim Meyering <meyering@lucent.com>
27011 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
27012 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
27013 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
27014 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
27015 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
27016 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
27017 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
27018 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
27019 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
27020 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
27021 utime.m4, utimes.m4, xstrtoumax.m4:
27022 Quote the first argument in each use of AC_DEFUN.
27024 2001-08-12 Jim Meyering <meyering@lucent.com>
27026 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
27027 Simply `return getcwd (NULL, 0);'.
27028 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
27029 Use 1300 as initial value for length, not PATH_MAX.
27031 * lib/pathmax.h: Clean up cpp syntax.
27033 2001-08-12 Jim Meyering <meyering@lucent.com>
27035 * lib/gettimeofday.c: New file.
27036 * lib/gtod.h: New file.
27037 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
27039 2001-08-05 Jim Meyering <meyering@lucent.com>
27041 * m4/jm-macros.m4: Require autoconf-2.52.
27043 2001-08-04 Jim Meyering <meyering@lucent.com>
27045 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
27046 stmt, to get in sync with glibc.
27048 2001-08-03 Paul Eggert <eggert@twinsun.com>
27050 The following changes are from gettext 0.10.39 as maintained by
27053 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
27054 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
27055 with inverted sense. All uses changed.
27057 * lib/mbswidth.c: Don't include <limits.h>.
27058 Include <stdlib.h> and <string.h> unconditionally.
27059 (iswcntrl, mbsinit, ISCNTRL): New macros.
27060 (mbsnwidth): Use K&R style function declarations.
27061 Don't bother checking for MB_LEN_MAX == 1, since the compiler
27062 can optimize it when MB_CUR_MAX == 1.
27063 The width of control characters is zero, not 1.
27065 2001-08-03 Paul Eggert <eggert@twinsun.com>
27067 The following changes are from gettext 0.10.39 as maintained by
27068 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
27070 * m4/codeset.m4: Upgrade to serial AM1.
27071 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
27072 all uses changed. Quote first arg of AC_DEFUN.
27073 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
27075 * m4/iconv.m4: Upgrade to serial AM2.
27076 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
27077 Add --with-libconv-prefix.
27078 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
27079 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
27080 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
27081 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
27082 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
27084 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
27085 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
27086 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
27087 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
27088 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
27089 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
27090 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27091 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
27092 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
27094 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
27097 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
27098 not the default value.
27100 2001-06-25 Bruno Haible <haible@clisp.cons.org>
27101 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
27102 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
27103 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
27104 Also check for iswcntrl, used for wcwidth fallback.
27105 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
27108 2001-08-03 Jim Meyering <meyering@lucent.com>
27110 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
27111 as it was in the original. Reported by Paul Eggert.
27113 2001-07-16 Jim Meyering <meyering@lucent.com>
27115 * m4/gettimeofday.m4: New file.
27116 Prompted by a report from Bernhard Baehr.
27118 2001-07-15 Jim Meyering <meyering@lucent.com>
27120 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
27121 stuff. Now it's in ../Makefile.cfg.
27123 2001-07-15 Jim Meyering <meyering@lucent.com>
27125 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
27126 (BUILT_SOURCES): Add unlocked-io.h.
27127 (io_functions): Define.
27128 (unlocked-io.h): New rule.
27129 (DISTCLEANFILES): Add unlocked-io.h.
27130 (all-local): Depend on unlocked-io.h, to ensure it is created.
27132 * lib/unlocked-io.hin: New file
27134 * lib/regex.c: Update from glibc.
27136 2001-07-05 Jim Meyering <meyering@lucent.com>
27138 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
27140 (libfetish_a_SOURCES): Put all .h files here instead.
27141 Remove a thus-exposed (better checks in automake) duplicate and
27142 two unnecessary .h files.
27144 2001-07-04 Jim Meyering <meyering@lucent.com>
27146 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
27147 that generates jm-glibc-io.m4 so that it doesn't trigger any make
27150 2001-07-02 Jim Meyering <meyering@lucent.com>
27152 The following changes were prompted by suggestions from Bruno Haible.
27154 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
27156 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
27157 definition of EXTRA_DIST.
27158 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
27159 ensure that the generated file is created/updated whenever the list
27160 of $(unlocked_functions) is changed.
27161 (jm-glibc-io.m4): New rule.
27162 (unlocked-io.h): New rule -- currently unused.
27164 2001-06-24 Jim Meyering <meyering@lucent.com>
27166 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
27167 unmatched right bracket, rather than kludging it with an extra,
27168 falsely-matching quote in a comment. Patch by Akim Demaille.
27170 2001-06-11 Jim Meyering <meyering@lucent.com>
27172 * lib/regex.c: Update from GNU libc.
27174 2001-05-27 Jim Meyering <meyering@lucent.com>
27176 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
27177 Check for ut_type in struct utmp.
27179 2001-05-27 Jim Meyering <meyering@lucent.com>
27181 * lib/readutmp.h (UT_TYPE): Define.
27183 2001-05-24 Jim Meyering <meyering@lucent.com>
27185 * lib/argmatch.c: Include "quote.h".
27186 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
27187 quote function. Reported by Göran Uddeborg.
27189 2001-05-22 Jim Meyering <meyering@lucent.com>
27191 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
27192 now that we use the package-supplied version unconditionally.
27193 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
27195 2001-05-21 Jim Meyering <meyering@lucent.com>
27197 * m4/regex.m4: Change a couple backticks to single quotes to avoid
27198 shell syntax errors.
27200 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
27202 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
27204 2001-05-20 Paul Eggert <eggert@twinsun.com>
27206 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
27207 Don't bother to check library strftime, since
27208 we'll be using our own my_strftime function anyway.
27209 Define my_strftime instead of strftime.
27211 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
27213 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
27214 which is not yet declared.
27216 2001-05-15 Jim Meyering <meyering@lucent.com>
27218 * m4/regex.m4: Use proper quoting so brackets appear in the test
27220 Reported by, and with help from, Bruno Haible.
27222 2001-05-13 Jim Meyering <meyering@lucent.com>
27224 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
27227 2001-05-11 Paul Eggert <eggert@twinsun.com>
27229 dirname code cleanup. base_name now behaves more compatibly
27230 with POSIX basename when given file names that have trailing
27231 slashes, and similarly for dir_name. Add new primitives
27232 base_len and dir_len. Put the directory-name-related decls
27235 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
27236 * lib/backupfile.c (base_name): Likewise.
27237 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
27238 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
27239 * lib/makepath.c (strip_trailing_slashes): Likewise.
27240 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
27241 ISSLASH): Likewise.
27242 * lib/rename.c (strip_trailing_slashes): Likewise.
27243 * lib/same.c (base_name): Likewise.
27244 * lib/stripslash.c (ISSLASH): Likewise.
27246 * lib/addext.c: Include <dirname.h> after size_t is defined.
27247 * lib/backupfile.c: Likewise.
27249 * lib/addext.c (addext): Use base_len to trim redundant
27250 trailing slashes instead of doing it ourselves.
27251 But do not trim the last slash if it is not redundant.
27253 * lib/backupfile.c (find_backup_file_name,
27254 max_backup_version): Use base_len instead of rolling it ourselves.
27255 Handle the case of "" and (on DOS) "C:" correctly.
27257 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
27258 needed. Include <string.h>, <dirname.h>.
27259 (base_name): Allow file names ending in slashes, other than names
27260 that are all slashes. In this case, return the basename followed
27261 by the slashes. This is more general, and can be used in places
27262 where the original base_name purposely had an assertion failure.
27263 (base_len): New function.
27265 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
27266 Do not include <assert.h>; no longer needed.
27268 (memrchr): Remove decl.
27269 (dir_name_r): Remove.
27270 (dir_len): Renamed from dirlen. All callers changed.
27271 Rewrite in terms of base_name, for simplicity and consistency.
27272 (dir_name): Never return NULL. All callers changed.
27273 Do not include <stdlib.h> in test program; no longer needed.
27274 return 0; is fine for test program.
27276 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
27278 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
27280 * lib/path-concat.c (path_concat): Use base_len to compute
27281 base length, not strlen; this means we cannot rely on memcpy
27284 * lib/same.c (STREQ): Remove.
27285 (same_name): Handle the case where the basename ends in trailing '/'.
27287 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
27288 a slash was stripped. Do not strip the last slash after a
27289 file system prefix.
27291 2001-05-11 Paul Eggert <eggert@twinsun.com>
27293 * lib/Makefile.am (libfetish_a_SOURCES):
27294 Add strftime.c, since we now compile it on all hosts.
27296 * lib/strftime.c (my_strftime):
27297 Define to nstrftime if emacs, but only if my_strftime is not defined.
27298 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
27299 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
27300 Add one more extra argument: a nanoseconds value.
27303 (my_strftime function): Add %N format.
27304 (emacs_strftimeu): Renamed from emacs_strftime,
27305 with extra ut argument.
27307 2001-05-09 Paul Eggert <eggert@twinsun.com>
27309 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
27311 2001-04-21 Jim Meyering <meyering@lucent.com>
27313 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
27316 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
27318 * m4/ftruncate.m4: Check for chsize.
27319 Link with ftruncate.o unconditionally if ftruncate is missing.
27320 This was required when cross-compiling to i586-mingw32msvc.
27322 2001-04-08 Jim Meyering <meyering@lucent.com>
27324 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
27325 recomputed; that's necessary when the offset spans a DST transition.
27326 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
27328 2001-04-02 Jim Meyering <meyering@lucent.com>
27330 * lib/regex.h, regex.c: Update from GNU libc.
27332 2001-03-24 Jim Meyering <meyering@lucent.com>
27334 * m4/jm-macros.m4: Require autoconf-2.49d.
27336 2001-03-20 Bruno Haible <haible@clisp.cons.org>
27338 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
27340 2001-03-19 Paul Eggert <eggert@twinsun.com>
27342 * lib/version-etc.c (version_etc_copyright): Update to 2001.
27344 2001-03-17 Jim Meyering <meyering@lucent.com>
27346 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
27347 now that the version in autoconf is equivalent.
27348 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
27350 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
27351 Suggestion from Akim Demaille.
27353 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
27354 (jm_PREREQ_TEMPNAME): New function.
27356 2001-03-16 Paul Eggert <eggert@twinsun.com>
27358 * lib/tempname.c (uint64_t): Define to uintmax_t if
27359 not defined, and if UINT64_MAX is not defined.
27360 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
27361 Reported by John David Anglin.
27363 2001-03-15 Bruno Haible <haible@clisp.cons.org>
27365 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
27366 resolve alias if codeset is empty.
27367 * lib/config.charset (BeOS): Use wildcard syntax.
27369 2001-03-13 Jim Meyering <meyering@lucent.com>
27371 * lib/path-concat.c (path_concat)
27372 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
27373 concatenating e.g., `C:' and `foo'.
27376 2001-03-06 Bruno Haible <haible@clisp.cons.org>
27378 * lib/localcharset.c (locale_charset): Don't use
27379 setlocale(LC_CTYPE,NULL). Don't return NULL.
27380 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
27382 2001-03-06 Bruno Haible <haible@clisp.cons.org>
27384 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
27385 support for DOS/DJGPP.
27387 2001-03-01 Paul Eggert <eggert@twinsun.com>
27389 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
27390 lacks mkstemp. Compile our own tempname.c if we compile our own
27391 mkstemp.c, as mkstemp relies on tempname.
27393 2001-03-01 Jim Meyering <meyering@lucent.com>
27395 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
27396 AH_VERBATIM really does output its argument verbatim.
27398 2001-02-28 Paul Eggert <eggert@twinsun.com>
27400 * lib/Makefile.am (libfetish_a_SOURCES):
27401 Add dup-safer.c, fopen-safer.c.
27402 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
27404 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
27405 * lib/unistd-safer.h: New files.
27407 2001-02-25 Paul Eggert <eggert@twinsun.com>
27409 The mkstemp replacement is taken from glibc 2.2.2, with some
27410 portability fixes for use outside glibc, as follows:
27412 * lib/tempname.c (struct_stat64): New macro.
27413 (direxists, __gen_tempname): Use it.
27414 This avoids a portability problem with Solaris 8.
27416 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
27417 (<stddef.h>, <stdint.h>, <string.h>):
27418 Include only if STDC_HEADERS || _LIBC.
27419 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
27420 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
27421 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
27422 (__set_errno): Define this macro if <errno.h> doesn't.
27423 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
27424 Define these macros if <stdio.h> doesn't.
27425 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
27426 Define these macros if <sys/stat.h>
27427 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
27428 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
27429 __xstat64): Define if not _LIBC.
27430 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
27431 (__gen_tempname): Invoke gettimeofday only if
27432 HAVE_GETTIMEOFDAY || _LIBC;
27433 otherwise, fall back on plain "time".
27434 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
27436 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
27438 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
27440 2001-02-18 Paul Eggert <eggert@twinsun.com>
27442 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
27444 2001-02-17 Paul Eggert <eggert@twinsun.com>
27446 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
27447 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
27448 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
27449 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27451 2001-02-17 Paul Eggert <eggert@twinsun.com>
27453 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
27454 Remove workaround macros for hosts that have mbrtowc but not
27455 mbstate_t, as we now insist on proper declarations for both
27456 before using mbrtowc.
27458 2001-02-17 Jim Meyering <meyering@lucent.com>
27460 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
27461 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
27462 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
27465 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
27466 rather than AC_CACHE_VAL.
27468 2001-02-17 Jim Meyering <meyering@lucent.com>
27470 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
27471 around included file name.
27473 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
27475 * lib/strftime.c: Update from GNU libc (the only changes were to
27478 2001-02-17 Jim Meyering <meyering@lucent.com>
27480 * lib/regex.c: Update from libc.
27482 2001-02-17 Bruno Haible <haible@clisp.cons.org>
27484 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
27487 2001-02-16 Paul Eggert <eggert@twinsun.com>
27489 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
27490 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
27491 Reported by Mark Hounschell via Paul Eggert.
27493 2001-02-07 Jim Meyering <meyering@lucent.com>
27495 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
27497 2001-02-05 Jim Meyering <meyering@lucent.com>
27499 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
27500 it includes the patch required for `large file' support with at least
27501 HP-UX's 10.20 /bin/cc.
27503 2001-02-03 Jim Meyering <meyering@lucent.com>
27505 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
27506 AS_IF, now that it works once again (mysteriously).
27507 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
27509 2001-01-30 Jim Meyering <meyering@lucent.com>
27511 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
27512 * m4/chown.m4: Rename conftestchown to conftest.chown.
27513 * m4/rename.m4: s/conftestdir/conftest.d1/ and
27514 s/conftestdir2/conftest.d2/.
27515 * m4/utimes.m4: s/conftestdata/conftest.data/
27516 Inspired by Pavel Roskin's change in autoconf.
27518 2001-01-30 Bruno Haible <haible@clisp.cons.org>
27520 * lib/config.charset: Update for FreeBSD 4.2.
27522 2001-01-27 Jim Meyering <meyering@lucent.com>
27524 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
27526 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
27528 2001-01-26 Jim Meyering <meyering@lucent.com>
27530 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
27531 quotearg.c includes it.
27533 2001-01-26 Jim Meyering <meyering@lucent.com>
27535 * lib/quotearg.c: Include stddef.h.
27536 * lib/quote.c: Include stddef.h.
27537 Reported by Axel Kittenberger.
27539 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
27540 line in double quotes so that it evokes a better diagnostic.
27541 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
27542 Reported by Axel Kittenberger.
27544 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
27546 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
27547 as if it was a `charset'.
27549 2001-01-21 Bruno Haible <haible@clisp.cons.org>
27551 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
27554 2001-01-21 Bruno Haible <haible@clisp.cons.org>
27556 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
27557 to avoid a warning. Add back 'const' to inptr.
27559 2001-01-20 Jim Meyering <meyering@lucent.com>
27561 Be sure that headers are checked before used in code compiled
27562 for the type checks.
27563 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
27564 In place of that, invoke jm_CHECK_ALL_TYPES.
27565 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
27566 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
27567 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
27568 The check for ssize_t was mistakenly run before the test for unistd.h.
27570 The configure-time check for stdbool.h was missing.
27571 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
27572 (jm_PREREQ_HASH): New function.
27574 2001-01-17 Jim Meyering <meyering@lucent.com>
27576 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
27577 for autoconf-2.49c.
27578 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
27580 2001-01-16 Jim Meyering <meyering@lucent.com>
27582 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
27585 2001-01-14 Jim Meyering <meyering@lucent.com>
27587 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
27588 foo and bar. Create conftestdir/ in the script, not in the C code.
27589 Remove directories in the script, not in the C code.
27590 Remove conftestdir{,2} before trying to create the directory.
27591 Make the entire configure script fail if the mkdir fails.
27593 2001-01-14 Jim Meyering <meyering@lucent.com>
27595 * lib/rename.c: New file. From Volker Borchert.
27596 Include stdlib.h, string.h or strings.h, and xalloc.h.
27597 Use strip_trailing_slashes rather than open-coding it.
27599 2001-01-03 Paul Eggert <eggert@twinsun.com>
27601 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
27603 2001-01-03 Jim Meyering <meyering@lucent.com>
27605 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
27606 of local `inptr' to avoid warning with some system declarations of
27609 2001-01-02 Volker Borchert <bt@teknon.de>
27611 * m4/rename.m4: New file.
27612 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
27614 2001-01-01 Jim Meyering <meyering@lucent.com>
27616 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
27617 even on systems with utmpx.h. It's necessary for the declaration of
27618 utmp's ut_user member. Reported by Andreas Jaeger.
27620 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
27621 available. They are required for the declarations of getgrgid and
27623 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
27624 Reported by Andreas Jaeger.
27626 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
27628 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
27629 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
27630 so `make install' also works in VPATH builds.
27632 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
27634 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
27635 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
27636 can be used in subdirectories.
27638 2000-12-29 Paul Eggert <eggert@twinsun.com>
27640 * lib/modechange.c: Do not assume that mode_t uses the
27641 traditional octal encoding. E.g. "chmod 1 FOO" should set
27642 the other-execute bit of FOO even if S_IXOTH != 1.
27644 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
27645 WOTH, XOTH, ALLM): New macros.
27646 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
27647 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
27649 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
27650 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
27652 No need to use uintmax_t; unsigned long is long enough.
27653 Don't bother to get suffix since we don't use it.
27655 2000-12-26 Jim Meyering <meyering@lucent.com>
27657 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
27658 better with autoheader.
27660 2000-12-24 Jim Meyering <meyering@lucent.com>
27662 * lib/hash.c (is_prime): Return explicit boolean values.
27663 (hash_get_first): Return NULL to appease Irix5.6's 89.
27664 Reported by Nelson Beebe.
27666 2000-12-19 Bruno Haible <haible@clisp.cons.org>
27668 * lib/localcharset.c (locale_charset): Add support for Win32.
27670 2000-12-18 Paul Eggert <eggert@twinsun.com>
27672 * lib/physmem.h, lib/physmem.c: New files.
27674 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
27675 (noinst_HEADERS): Add physmem.h.
27677 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
27678 't' for compatibility with Solaris 8 sort.
27680 2000-12-18 Bruno Haible <haible@clisp.cons.org>
27682 * lib/config.charset: Add support for BeOS.
27684 2000-12-17 Jim Meyering <meyering@lucent.com>
27686 * m4/dos.m4 (jm_AC_DOS): New file and macro.
27687 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
27689 2000-12-16 Jim Meyering <meyering@lucent.com>
27691 This bug had a serious impact on chown: `chown N:M FILE' (for integer
27692 N and M) would have treated it like `chown N:N FILE'.
27694 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
27696 2000-12-16 Jim Meyering <meyering@lucent.com>
27698 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
27699 SHELLS_FILE to a file name that's useful on djgpp systems.
27701 (ADDITIONAL_DEFAULT_SHELLS): Define.
27702 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
27703 Based mostly on a patch from Prashant TR.
27705 2000-12-16 Bruno Haible <haible@clisp.cons.org>
27707 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
27708 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
27709 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
27711 2000-12-08 Andreas Schwab <schwab@suse.de>
27713 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
27714 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
27716 2000-12-07 Jim Meyering <meyering@lucent.com>
27718 * lib/stripslash.c (ISSLASH): Define.
27719 (strip_trailing_slashes): Use ISSLASH rather than comparing against
27723 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
27724 (dir_name_r): Declare this function as static.
27725 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
27726 manifest itself on a name containing a mix of slashes and
27728 Make this function work with names starting with a DOS-style
27729 drive letter and colon prefix.
27730 (dir_name): Append `.' if necessary.
27731 Based mostly on patches from Prashant TR and Eli Zaretskii.
27733 * lib/dirname.h (dir_name_r): Remove prototype.
27735 2000-12-06 Paul Eggert <eggert@twinsun.com>
27737 * m4/off_t-format.m4: Remove this file.
27738 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
27740 2000-12-06 Jim Meyering <meyering@lucent.com>
27742 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
27743 replacement strtoull, we may well need the replacement strtoul, too.
27744 Check for declarations of strtoul and strtoull.
27745 Check for strtol. Mainly as a cue to cause automake to include
27746 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
27747 Check for limits.h -- strtol.c needs it.
27749 2000-12-05 Jim Meyering <meyering@lucent.com>
27751 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
27753 2000-12-04 Jim Meyering <meyering@lucent.com>
27755 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
27756 Also include memory.h, stdlib.h, unistd.h if appropriate.
27757 Reported by Andreas Jaeger (conflicting declaration of malloc).
27759 2000-12-02 Jim Meyering <meyering@lucent.com>
27761 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
27762 * m4/jm-macros.m4 (jm_MACROS): require it.
27764 2000-12-02 Jim Meyering <meyering@lucent.com>
27766 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
27768 2000-12-01 Paul Eggert <eggert@twinsun.com>
27770 * lib/memrchr.c: Include <config.h> before any system include file.
27772 2000-11-30 Jim Meyering <meyering@lucent.com>
27774 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
27776 2000-11-30 Jim Meyering <meyering@lucent.com>
27778 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
27780 2000-11-29 Paul Eggert <eggert@twinsun.com>
27782 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
27784 2000-11-26 Jim Meyering <meyering@lucent.com>
27786 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
27788 2000-11-22 Paul Eggert <eggert@twinsun.com>
27790 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
27791 size of (size_t) -1; it's not portable.
27793 2000-11-17 Jim Meyering <meyering@lucent.com>
27795 * lib/strstr.c: Update from GNU libc.
27797 2000-11-17 Akim Demaille <akim@epita.fr>
27799 * lib/obstack.h: Formatting changes.
27800 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
27801 prevent type checking.
27802 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
27803 cast the value to (void *): assigning a `foo *' to a `void *'
27805 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
27807 2000-11-16 Jim Meyering <meyering@lucent.com>
27809 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
27811 2000-11-11 Jim Meyering <meyering@lucent.com>
27813 * lib/error.c: Add a couple #includes, merging from GNU libc version.
27815 2000-11-10 Jim Meyering <meyering@lucent.com>
27817 * lib/obstack.h: Update from GNU libc.
27818 * lib/obstack.c: Likewise.
27820 2000-11-08 Bruno Haible <haible@clisp.cons.org>
27822 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
27824 2000-11-06 Paul Eggert <eggert@twinsun.com>
27826 * lib/getusershell.c (setusershell): Use rewind rather than
27827 fseek/fseeko, to avoid configuration hassles with fseeko.
27828 Don't bother opening SHELLS_FILE if shellstream is NULL;
27829 it's not necessary.
27831 2000-11-05 Jim Meyering <meyering@lucent.com>
27833 * lib/makepath.h (make_dir): Declare.
27834 * lib/makepath.c (make_dir): Remove `static' attribute.
27837 2000-11-04 Jim Meyering <meyering@lucent.com>
27839 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
27841 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
27843 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
27844 last one in a bucket, advance to the next bucket.
27846 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
27848 * lib/fnmatch.c: Do not comment out all the code if we are using
27849 the GNU C library, because in some cases we are replacing buggy
27850 code in the GNU C library itself.
27852 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
27854 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
27855 (regex_compile): Catch bogus \(\1\).
27857 2000-10-30 Paul Eggert <eggert@twinsun.com>
27859 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
27860 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
27861 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
27863 2000-10-30 Paul Eggert <eggert@twinsun.com>
27865 * lib/error.h, getline.h, modechange.h:
27866 Remove "2000" from Copyright line, as the file hasn't been
27867 changed this year other than in the copyright notice.
27869 * lib/xalloc.h: Add "2000" to Copyright line, as this file
27870 was changed this year.
27872 2000-10-29 Jim Meyering <meyering@lucent.com>
27874 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
27876 * m4/ls-mntd-fs.m4: Likewise
27878 2000-10-29 Jim Meyering <meyering@lucent.com>
27880 * lib/xstat.in: Fix grammar in comment.
27882 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
27884 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
27885 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
27886 doesn't define __restrict_arr.
27888 2000-10-28 Jim Meyering <meyering@lucent.com>
27890 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
27891 (jm_PREREQ_MEMCHR): New function.
27893 2000-10-28 Jim Meyering <meyering@lucent.com>
27895 * lib/memchr.c: Update from libc.
27896 Adjust for portability:
27897 [HAVE_STDLIB_H]: Include stdlib.h.
27898 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
27899 Undef __memchr, too.
27900 [!weak_alias]: Define __memchr to memchr.
27902 * lib/regex.c: Update from libc.
27903 * lib/regex.h: Likewise.
27904 * lib/getopt1.c: Likewise.
27905 * lib/memcmp.c: Likewise.
27907 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
27908 Avoid using fseek, when possible -- it's broken by design.
27909 Patch by Ulrich Drepper.
27911 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
27913 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
27914 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
27915 Giving in to popular pressure to shut up the compiler with casts.
27917 2000-10-26 Jim Meyering <meyering@lucent.com>
27919 * lib/strftime.c: Update from libc.
27921 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
27923 * regex.c: More `unsigned char' -> `re_char' changes.
27924 Also change several `int' into `re_wchar_t'.
27925 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
27926 (PUSH_FAILURE_POINTER): Don't cast any more.
27927 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
27928 We want GCC to complain, since this piece of code makes
27929 re_match non-reentrant, which *should* be fixed.
27930 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
27931 (EXTEND_BUFFER): Use RETALLOC.
27932 (SET_LIST_BIT): Don't cast.
27933 (re_wchar_t): New type.
27934 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
27935 that those two functions will always properly return.
27936 (IMMEDIATE_QUIT_CHECK): Cast to void.
27937 (analyse_first): Use recursion rather than an explicit stack.
27938 (re_compile_fastmap): Can't fail anymore.
27939 (re_search_2): Don't check re_compile_fastmap for failure.
27940 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
27941 Now also sets the new value (passed in a new argument).
27942 (re_match_2_internal): Use it.
27943 Also, use a new var `reg' of type size_t when looping through regs
27944 rather than reuse the inappropriate `mcnt'.
27946 2000-10-25 Jim Meyering <meyering@lucent.com>
27948 * lib/obstack.c: Update from libc.
27950 2000-10-24 Kenichi Handa <handa@etl.go.jp>
27952 * regex.c (regex_compile): Change the way of handling a range from
27953 a char less than 256 to a char not less than 256.
27955 2000-10-24 Andrew Innes <andrewi@gnu.org>
27957 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
27959 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
27960 so that re_search functions only quit when callers expect them to.
27962 2000-10-23 Jim Meyering <meyering@lucent.com>
27964 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
27965 wrong. That set_locale call must not have any side effects.
27968 2000-10-22 Jim Meyering <meyering@lucent.com>
27970 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
27971 [CYCLIC]: Remove now-unused definition.
27973 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
27974 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
27975 Suggestion from Ulrich Drepper.
27977 2000-10-21 Jim Meyering <meyering@lucent.com>
27979 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
27980 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
27981 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
27983 2000-10-21 Jim Meyering <meyering@lucent.com>
27985 * lib/dirname.c (memrchr): Declare if necessary.
27986 (dir_name): Remove the restriction that there be no
27987 trailing slashes. Now, this code skips past them, effectively
27989 [TEST_DIRNAME] (main): New unit tests.
27991 * lib/memrchr.c: New file from GNU libc.
27992 Undef __memrchr, too.
27993 [!weak_alias]: Define __memrchr to memrchr.
27994 Guard weak_alias use with `#ifdef weak_alias'.
27996 2000-10-21 Jim Meyering <meyering@lucent.com>
27998 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
27999 (dir_name): Use dir_name_r.
28000 * lib/dirname.h (dir_name_r): Declare it.
28002 2000-10-17 Jim Meyering <meyering@lucent.com>
28004 * lib/quote.h (PARAMS): Define and use.
28005 Reported by Akim Demaille.
28007 * lib/getopt.c: Update from libc.
28009 2000-10-16 Jim Meyering <meyering@lucent.com>
28011 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
28015 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
28017 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
28019 2000-09-25 Jim Meyering <meyering@lucent.com>
28021 * lib/md5.h (rol): Define (from GnuPG).
28023 * lib/sha.c: Give credit (GnuPG) where due.
28024 (M): Use rol rather than open-coding it.
28025 Add a FIXME comment.
28027 2000-09-21 Jim Meyering <meyering@lucent.com>
28029 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
28030 Reported by Michael Stone.
28032 2000-09-20 Jim Meyering <meyering@lucent.com>
28034 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
28035 (noinst_HEADERS): Add sha.h.
28036 Based on code from Scott G. Miller and from GnuPG.
28038 2000-09-18 Jim Meyering <meyering@lucent.com>
28040 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
28041 LIBS. Otherwise, everyone ends up linking with -lelf for some
28043 Reported by Mike Stone.
28045 2000-09-15 Jim Meyering <meyering@lucent.com>
28047 * lib/regex.c: Update from libc.
28049 2000-09-10 Jim Meyering <meyering@lucent.com>
28051 * lib/getopt.c (_getopt_internal): Update from glibc.
28053 2000-09-09 Jim Meyering <meyering@lucent.com>
28055 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
28056 think it should be used as a general replacement for isascii.
28057 * lib/fnmatch.c: Likewise.
28058 * lib/mbswidth.c: Likewise
28059 * lib/regex.c: Likewise.
28062 * lib/userspec.c: Include sys/param.h and limits.h.
28064 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
28065 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
28066 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
28067 UID, GID. Check range.
28069 2000-09-06 Jim Meyering <meyering@lucent.com>
28071 * lib/getopt.c (_getopt_internal): Update from glibc.
28073 2000-08-30 Jim Meyering <meyering@lucent.com>
28075 * lib/strftime.c: Merge in changes from GNU libc.
28077 2000-08-26 Jim Meyering <meyering@lucent.com>
28079 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
28080 * m4/fpending.m4: New file.
28082 2000-08-26 Jim Meyering <meyering@lucent.com>
28084 * lib/closeout.c: Include "__fpending.h".
28085 (close_stdout_status): Return right away if there's nothing to flush.
28087 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
28088 * lib/__fpending.c: New file.
28089 * lib/__fpending.h: New file.
28091 2000-08-20 Jim Meyering <meyering@lucent.com>
28093 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
28094 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
28095 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
28097 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
28099 Improve fileutils installation on systems where running
28100 programs (like install) can't be unlinked.
28101 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
28102 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
28104 2000-08-07 Paul Eggert <eggert@twinsun.com>
28106 Standardize on "memory exhausted" instead of "Memory exhausted"
28107 or "virtual memory exhausted".
28108 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
28109 "virtual memory exhausted".
28110 * lib/same.c (same_name): Invoke xalloc_die instead of printing
28112 * lib/userspec.c (parse_user_spec): Likewise.
28113 * lib/bumpalloc.h: comment fix
28114 * lib/same.c, userspec.c: Include xalloc.h.
28116 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
28117 not char *const and pointing to a constant array.
28118 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
28119 (xrealloc): Comment fix.
28121 * lib/userspec.c (parse_user_spec):
28122 Don't translate a message until just before returning,
28123 to avoid unnecessary translation.
28125 2000-08-07 Jim Meyering <meyering@lucent.com>
28127 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
28128 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
28129 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
28130 getgroups.c, gethostname.c, getopt.h, group-member.c,
28131 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
28132 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
28133 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
28134 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
28135 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
28136 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
28137 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
28138 yesno.c: Back out Copyright date changes for each file with no change
28139 this year. This eases coordination with other programs using the same
28140 source code modules. From Paul Eggert.
28142 2000-08-06 Paul Eggert <eggert@twinsun.com>
28144 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
28145 not char, for compatibility with glibc 2.1.3 strftime.c.
28147 2000-08-03 Greg McGary <greg@mcgary.org>
28149 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
28150 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
28151 (EXTEND_BUFFER): Use them.
28153 2000-08-01 Jim Meyering <meyering@lucent.com>
28155 * lib/dirname.c (ISSLASH): Define.
28156 (BACKSLASH_IS_PATH_SEPARATOR): Define.
28157 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
28158 both `\' and `/' may be use as path separators.
28159 Based on a patch from Prashant TR.
28161 2000-07-31 Paul Eggert <eggert@twinsun.com>
28163 * lib/quotearg.c (quotearg_n_options): Don't make the initial
28164 slot vector a constant, since it might get modified.
28166 2000-07-31 Jim Meyering <meyering@lucent.com>
28168 * lib/xmalloc.c: Use `virtual memory exhausted', not
28169 `Memory exhausted'.
28170 * lib/obstack.c (print_and_abort): Likewise.
28172 2000-07-30 Paul Eggert <eggert@twinsun.com>
28174 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
28175 buffer, so that the caller can always quote one small
28176 component of a "memory exhausted" message in slot 0.
28177 From a suggestion by Jim Meyering.
28179 2000-07-30 Jim Meyering <meyering@lucent.com>
28181 * lib/makepath.c (make_path): Quote the other instance, too.
28183 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
28184 (STATIC_BUF_SIZE): Define.
28185 (quotearg_n_options): Use only statically allocated storage when
28186 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
28187 than STATIC_BUF_SIZE.
28189 2000-07-29 Jim Meyering <meyering@lucent.com>
28191 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
28192 * lib/dirname.c (dir_name): Likewise.
28194 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
28197 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
28198 (dir_name): Assert that there are no trailing slashes.
28200 2000-07-29 Bruno Haible <haible@clisp.cons.org>
28202 * lib/mbswidth.h (mbswidth): Add a flags argument.
28203 (mbswidth): New declaration.
28204 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
28205 * lib/mbswidth.c (mbswidth): Add a flags argument.
28206 (mbsnwidth): New function.
28208 2000-07-24 Jim Meyering <meyering@lucent.com>
28210 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
28212 2000-07-23 Paul Eggert <eggert@twinsun.com>
28214 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
28216 2000-07-23 Paul Eggert <eggert@twinsun.com>
28218 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
28219 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
28220 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
28221 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
28222 invoke multibyte primitives.
28224 2000-07-23 Paul Eggert <eggert@twinsun.com>
28227 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
28228 so that mbstate_t is always defined.
28230 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
28231 be 1 in at least one GCC installation, and this configuration
28232 error is likely to be common. Ignoring MB_LEN_MAX hurts
28233 performance on hosts that have mbrtowc but have only unibyte
28234 locales, but I assume these hosts are rare.
28236 2000-07-23 Paul Eggert <eggert@twinsun.com>
28238 * lib/mbswidth.c (_XOPEN_SOURCE):
28239 Don't define; this causes problems on Solaris 7.
28240 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
28242 2000-07-23 Jim Meyering <meyering@lucent.com>
28244 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
28245 too: getgrgid, getpwuid, getuid.
28247 2000-07-23 Jim Meyering <meyering@lucent.com>
28249 * lib/basename.c (base_name): Add an assertion.
28251 2000-07-23 Bruno Haible <haible@clisp.cons.org>
28253 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
28254 shadow its mbsinit function.
28256 2000-07-17 Bruno Haible <haible@clisp.cons.org>
28258 * lib/mbswidth.h: New file.
28259 * lib/mbswidth.c: New file.
28260 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
28261 (noinst_HEADERS): Add mbswidth.h.
28263 2000-07-17 Bruno Haible <haible@clisp.cons.org>
28265 * lib/config.charset: Add support for FreeBSD. Improve support for
28268 2000-07-16 Bruno Haible <haible@clisp.cons.org>
28270 * m4/mbswidth.m4: New file.
28271 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
28273 2000-07-15 Jim Meyering <meyering@lucent.com>
28275 * lib/makepath.c: Include quote.h.
28276 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
28277 corresponding argument in a `quote (...)' call.
28278 Give better diagnostics.
28280 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
28281 (noinst_HEADERS): Add quote.h.
28283 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
28284 from tar's src/misc.c.
28285 * lib/quote.h: New file. Prototypes for same.
28287 2000-07-14 Paul Eggert <eggert@twinsun.com>
28289 From a suggestion by Bruno Haible.
28290 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
28291 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
28292 to decide whether to define the BeOS workaround macro;
28293 this adjusts to the change to AC_MBSTATE_T.
28295 2000-07-14 Jim Meyering <meyering@lucent.com>
28297 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
28298 jm_AC_TYPE_UINTMAX_T.
28300 2000-07-13 Paul Eggert <eggert@twinsun.com>
28302 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
28304 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
28305 quotearg_buffer_restyled): Add support for
28306 clocale_quoting_style. Undo previous change to
28307 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
28308 and "{RIGHT QUOTATION MARK}" msgids.
28310 2000-07-10 Paul Eggert <eggert@twinsun.com>
28312 From a suggestion by Bruno Haible.
28313 * m4/mbstate_t.m4 (AC_MBSTATE_T):
28314 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
28315 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
28316 and mbstate_t, to a single-part test that simply defines mbstate_t.
28317 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
28318 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
28320 2000-07-10 Jim Meyering <meyering@lucent.com>
28322 * m4/strerror_r.m4: Mirror the correction made in autoconf.
28324 * m4/gnu-source.m4: Output to confdefs.h directly.
28325 Suggestion from Akim Demaille.
28327 2000-07-09 Paul Eggert <eggert@twinsun.com>
28329 The old behavior of quoting `like this' doesn't look good with
28330 newer, ISO-style fonts. See:
28331 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
28333 Instead, quote "like this" by default. Let the translator
28334 tailor the locale-specific quoting behavior by providing
28335 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
28337 * lib/quotearg.c (N_): New macro.
28338 (gettext_default): New function.
28339 (quotearg_buffer_restyled): Use
28340 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
28341 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
28343 2000-07-09 Jim Meyering <meyering@lucent.com>
28345 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
28346 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
28348 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
28349 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
28351 2000-07-09 Jim Meyering <meyering@lucent.com>
28353 * lib/Most files: Update copyright dates to include 2000.
28355 2000-07-08 Jim Meyering <meyering@lucent.com>
28357 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
28359 (xgethostname): Remove now-unnecessary #ifdef.
28360 Move declaration of `err' into loop where it's used.
28362 2000-07-05 Paul Eggert <eggert@twinsun.com>
28363 and Bruno Haible <haible@clisp.cons.org>
28365 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
28366 only if the test for an object-type mbstate_t fails. This
28367 prevents us from mistakenly reporting that mbstate_t is a
28368 system object type after we "#define mbstate_t int" to work
28371 2000-07-05 Paul Eggert <eggert@twinsun.com>
28372 and Bruno Haible <haible@clisp.cons.org>
28374 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
28376 2000-07-05 Bruno Haible <haible@clisp.cons.org>
28378 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
28380 Include <ctype.h> for use of isalpha.
28382 2000-07-05 Bruno Haible <haible@clisp.cons.org>
28384 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
28385 by allocating a larger buffer. Test the gethostname return value for
28386 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
28387 returns an error and ENAMETOOLONG isn't defined.
28389 2000-07-05 Bruno Haible <haible@clisp.cons.org>
28391 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
28394 2000-07-04 Jim Meyering <meyering@lucent.com>
28396 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
28397 of the deprecated AC_CHECKING.
28399 2000-07-04 Jim Meyering <meyering@lucent.com>
28401 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
28402 Reported by Bruno Haible.
28404 2000-07-04 Jim Meyering <meyering@lucent.com>
28406 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
28407 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
28410 2000-07-03 Paul Eggert <eggert@twinsun.com>
28412 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
28413 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
28415 2000-07-03 Paul Eggert <eggert@twinsun.com>
28416 and Bruno Haible <haible@clisp.cons.org>
28418 * lib/quotearg.c (mbrtowc):
28419 Assign to *pwc, and return 1 only if result is nonzero.
28420 (iswprint): Use ISPRINT when substituting our own mbrtowc.
28422 2000-07-03 Jim Meyering <meyering@lucent.com>
28424 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
28426 2000-07-03 Jim Meyering <meyering@lucent.com>
28428 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
28429 This is necessary to get a definition of e.g., UTMP_FILE on
28433 2000-07-02 Jim Meyering <meyering@lucent.com>
28435 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
28437 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
28438 AC_LIBOBJ(function_name).
28439 * m4/chown.m4: Likewise.
28440 * m4/fnmatch.m4: Likewise.
28441 * m4/ftruncate.m4: Likewise.
28442 * m4/getgroups.m4: Likewise.
28443 * m4/getline.m4: Likewise.
28444 * m4/group-member.m4: Likewise.
28445 * m4/jm-macros.m4: Likewise.
28446 * m4/lstat.m4: Likewise.
28447 * m4/malloc.m4: Likewise.
28448 * m4/memcmp.m4: Likewise.
28449 * m4/nanosleep.m4: Likewise.
28450 * m4/putenv.m4: Likewise.
28451 * m4/realloc.m4: Likewise.
28452 * m4/regex.m4: Likewise.
28453 * m4/stat.m4: Likewise.
28454 * m4/strftime.m4: Likewise.
28456 2000-07-02 Jim Meyering <meyering@lucent.com>
28458 * lib/quotearg.c (mbstate_t): Don't define here.
28460 2000-07-02 Jim Meyering <meyering@lucent.com>
28462 * lib/nanosleep.c (SIGCONT): Define if not already defined.
28464 2000-07-01 Jim Meyering <meyering@lucent.com>
28466 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
28468 2000-07-01 Jim Meyering <meyering@lucent.com>
28470 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
28473 2000-07-01 Bruno Haible <haible@clisp.cons.org>
28475 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
28476 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
28478 2000-07-01 Bruno Haible <haible@clisp.cons.org>
28480 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
28481 per change in ../m4/ls-mntd-fs.m4.
28482 (read_filesystem_list): Ignore symbolic links.
28484 2000-06-29 Jim Meyering <meyering@lucent.com>
28486 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
28487 for declaration of strcmp.
28489 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
28491 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
28492 Avoid warning by casting result to `char *' to remove `const'.
28494 2000-06-28 Jim Meyering <meyering@lucent.com>
28496 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
28497 included by quotearg.c, for which we perform this test. From
28500 2000-06-27 Bruno Haible <haible@clisp.cons.org>
28502 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
28503 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
28504 <utmpx.h> exists, put readutmp.o into LIBOBJS.
28506 2000-06-27 Bruno Haible <haible@clisp.cons.org>
28508 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
28510 2000-06-26 Paul Eggert <eggert@twinsun.com>
28512 savedir now sets errno on failure and invokes xmalloc to get memory.
28513 Fix a couple of other minor bugs while we're at it.
28515 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
28516 (NAMLEN): Remove macro.
28517 (malloc, realloc): Remove decls.
28518 (stpcpy): Likewise.
28519 ("xalloc.h"): Include.
28520 (NAME_SIZE_DEFAULT): New macro.
28521 (savedir): Use xmalloc / xrealloc to allocate memory.
28522 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
28523 Skip "" directory entries.
28524 Use strlen to calculate directory entry length, since the old method
28525 is rarely used these days and isn't worth supporting.
28526 Don't use a pointer after freeing it.
28527 Check for integer overflow when calculating allocation size.
28528 Use memcpy to copy entries, instead of stpcpy.
28529 Set errno properly when returning NULL.
28530 Check for readdir error.
28532 2000-06-26 Jim Meyering <meyering@lucent.com>
28534 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
28536 2000-06-25 Jim Meyering <meyering@lucent.com>
28538 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
28539 Linux header bug when _XOPEN_SOURCE is defined to 500.
28541 2000-06-25 Bruno Haible <haible@clisp.cons.org>
28543 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
28546 2000-06-25 Bruno Haible <haible@clisp.cons.org>
28548 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
28550 Don't include <stdlib.h>. Don't declare malloc, realloc.
28552 2000-06-24 Jim Meyering <meyering@lucent.com>
28554 * m4/strerror_r.m4: Revive this file -- to try out an experimental
28555 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
28556 for which strerror does return char*, but which lacks a conveniently
28557 accessible declaration of the function. If the compile-test says
28558 strerror_r doesn't work, then resort to a `run'-test that works on
28559 BeOS and segfaults on DEC Unix.
28561 2000-06-24 Jim Meyering <meyering@lucent.com>
28563 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
28565 2000-06-23 Paul Eggert <eggert@twinsun.com>
28567 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
28568 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
28570 2000-06-23 Paul Eggert <eggert@twinsun.com>
28572 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
28573 (mbrtowc, mbstate_t): Define substitutes if
28574 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
28575 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
28576 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
28578 2000-06-23 Jim Meyering <meyering@lucent.com>
28580 * m4/afs.m4: Add missing AC_MSG_RESULT.
28581 Reported by Bruno Haible.
28583 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
28584 Suggestion from Bruno Haible.
28586 2000-06-23 Jim Meyering <meyering@lucent.com>
28588 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
28590 2000-06-21 Jim Meyering <meyering@lucent.com>
28592 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
28594 2000-06-21 Jim Meyering <meyering@lucent.com>
28596 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
28597 (noinst_HEADERS): Add getstr.h.
28599 * lib/getline.c (getstr): Move into a separate file.
28600 * lib/getstr.c (getstr): New file, extracted from getline.c, with
28601 the following changes: new parameter, delim2; both delim[12]
28602 parameters have type `int', not `char'. The latter would lose
28603 with 8-bit delimiters.
28604 * lib/getstr.h: New file.
28606 2000-06-21 Bruno Haible <haible@clisp.cons.org>
28608 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
28609 than 1024, return a memory chunk of least possible size, instead
28610 of size PATH_MAX + 2. In the loop, increment the size proportionally.
28611 Use free/xmalloc instead of xrealloc to avoid copying for very long
28614 2000-06-21 Bruno Haible <haible@clisp.cons.org>
28616 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
28619 2000-06-21 Bruno Haible <haible@clisp.cons.org>
28621 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
28622 address, not strdup. Include <stdlib.h> and don't declare free().
28624 2000-06-19 Jim Meyering <meyering@lucent.com>
28626 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
28628 2000-06-18 Jim Meyering <meyering@lucent.com>
28630 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
28632 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
28633 `checking whether...' message to be consistent with that of the
28636 2000-06-18 Jim Meyering <meyering@lucent.com>
28638 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
28639 Besides, these days every porting target provides a mkdir function.
28641 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
28642 needed. (this snippet comes from src/system.h).
28644 2000-06-16 Bruno Haible <haible@clisp.cons.org>
28646 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
28648 2000-06-15 Paul Eggert <eggert@twinsun.com>
28650 * lib/human.c (adjust_value): New function.
28651 (human_readable_inexact): Apply rounding style even when
28652 printing approximate values.
28654 2000-06-14 Paul Eggert <eggert@twinsun.com>
28656 * lib/human.c (human_readable_inexact): Allow an input block
28657 size that is not a multiple of the output block size, and vice versa.
28658 Reported by Piergiorgio Sartor.
28660 2000-06-14 Paul Eggert <eggert@twinsun.com>
28662 * lib/getdate.y (get_date): Apply relative times after time
28663 zone indicator, not before. Reported by Todd A. Jacobs.
28665 2000-06-13 Jim Meyering <meyering@lucent.com>
28667 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
28669 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
28671 2000-06-12 Paul Eggert <eggert@twinsun.com>
28673 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
28675 2000-06-12 Jim Meyering <meyering@lucent.com>
28677 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
28678 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
28680 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
28681 the optional argument, `lib'.
28683 2000-06-08 Jim Meyering <meyering@lucent.com>
28685 * m4/largefile.m4: Remove file (now that it's part of autoconf).
28687 2000-06-04 Paul Eggert <eggert@twinsun.com>
28689 Rewrite largefile configuration so that we don't need to run
28690 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
28691 AC_CANONICAL_HOST in configure.in -- jmm]
28693 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
28694 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
28695 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
28696 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
28697 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
28699 Instead of inspecting the output of getconf, try to compile the
28700 test program without and with the macro definition.
28701 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
28702 for getconf. Instead, check for the needed flags by compiling
28705 2000-06-04 Paul Eggert <eggert@twinsun.com>
28707 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
28709 2000-06-04 Jim Meyering <meyering@lucent.com>
28711 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
28712 SunOS 4.1.4 for which gid_t is an unsigned type.
28714 2000-06-03 Jim Meyering <meyering@lucent.com>
28716 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
28717 now that autoconf requires that.
28719 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
28720 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
28721 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
28723 2000-06-03 Jim Meyering <meyering@lucent.com>
28725 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
28727 2000-06-03 Bruno Haible <haible@clisp.cons.org>
28729 * m4/glibc21.m4: New file.
28730 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
28732 2000-06-03 Bruno Haible <haible@clisp.cons.org>
28734 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
28735 newer, don't install charset.alias.
28736 * lib/config.charset: Change the Linux/glibc rules so they become empty
28737 on glibc-2.1 or newer.
28739 2000-06-02 Jim Meyering <meyering@lucent.com>
28741 * lib/mountlist.c: Back out last change. Instead, do this...
28742 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
28743 me_dummy member using the same `ignore'-testing code.
28744 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
28748 2000-05-29 Jim Meyering <meyering@lucent.com>
28750 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
28751 mounts with the `ignore' attribute. Based on a patch from
28754 2000-05-28 Jim Meyering <meyering@lucent.com>
28756 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
28757 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28758 * m4/stat.m4: Likewise.
28759 * m4/lstat.m4: Likewise.
28760 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
28762 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
28763 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
28765 2000-05-26 Jim Meyering <meyering@lucent.com>
28767 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
28769 2000-05-24 Jim Meyering <meyering@lucent.com>
28771 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
28772 autoconf requires that.
28773 * m4/lib-check.m4: Likewise.
28774 * m4/jm-macros.m4: Likewise.
28775 * m4/strftime.m4: Likewise.
28777 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
28778 AC_CHECK_DECLS, now that autoconf requires that.
28780 2000-05-22 Jim Meyering <meyering@lucent.com>
28782 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28783 * m4/lstat.m4: Likewise.
28785 2000-05-22 Jim Meyering <meyering@lucent.com>
28787 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
28789 2000-05-20 Jim Meyering <meyering@lucent.com>
28791 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
28792 (jm_PREREQ): Use it.
28794 2000-05-18 Jim Meyering <meyering@lucent.com>
28796 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
28797 back, too, since it may have been modified by allocate_entry.
28798 (hash_delete): Rewrite to use neither the assignment operator
28799 nor the comma operator in an if-expression.
28801 2000-05-15 Paul Eggert <eggert@twinsun.com>
28804 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
28805 Remove; no longer needed.
28806 "quotearg.h": Add include.
28807 (file_name): Do not bother to explicitly initialize to NULL; it's less
28808 efficient on some hosts.
28809 (close_stdout_status): Remove test as to whether stdout was already
28810 closed; it breaks for the case "echo x | sort >&-".
28811 Quote file name colons.
28812 Do not assume that _("write error") lacks format strings.
28814 2000-05-15 Jim Meyering <meyering@lucent.com>
28816 * lib/version-etc.c (version_etc_copyright): Update the copyright
28817 string used in all --version output.
28819 2000-05-14 Jim Meyering <meyering@lucent.com>
28821 * lib/closeout.c (close_stdout_set_file_name): New function.
28822 (close_stdout_status): Use new file-scoped global.
28823 Return right away if fstat says the stdout file descriptor is invalid.
28824 * lib/closeout.h (close_stdout_set_file_name): Declare.
28826 2000-05-10 Jim Meyering <meyering@lucent.com>
28828 * lib/closeout.c [default_exit_status]: New file-scoped variable.
28829 (close_stdout_set_status): New function.
28830 * lib/closeout.h (close_stdout_set_status): Declare.
28832 2000-05-09 Jim Meyering <meyering@lucent.com>
28834 * m4/gettext.m4: Rename this...
28835 * m4/libintl.m4: ...to this.
28837 2000-05-08 Jim Meyering <meyering@lucent.com>
28839 * lib/long-options.c: Don't include closeout.h.
28840 (parse_long_options): Don't call close_stdout for --version.
28842 2000-05-06 Paul Eggert <eggert@twinsun.com>
28844 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
28845 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
28846 2.1.3 bug. This avoids a clash when files like regex.c define
28849 2000-05-06 Jim Meyering <meyering@lucent.com>
28851 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
28852 (AC_REPLACE_FUNCS): Add strnlen.
28854 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
28855 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
28857 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
28858 AC_SEARCH_LIBS call for nanosleep.
28859 (LIB_NANOSLEEP): Set and AC_SUBST.
28861 2000-05-06 Jim Meyering <meyering@lucent.com>
28863 * lib/strnlen.c: Undefine __strnlen and strnlen.
28864 [!weak_alias]: Define __strnlen to strnlen.
28866 * lib/atexit.c: New file, from libiberty.
28868 2000-05-06 Jim Meyering <meyering@lucent.com>
28870 * lib/closeout.c (close_stdout_status): Also check for errors on the
28873 2000-05-05 Jim Meyering <meyering@lucent.com>
28875 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
28876 AC_SEARCH_LIBS call for clock_gettime.
28877 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
28879 * m4/search-libs.m4: Update from autoconf.
28881 su doesn't work on Solaris 2.6.
28882 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
28883 <shadow.h>. Reported by Dragos Harabor.
28885 2000-05-05 Bruno Haible <haible@clisp.cons.org>
28887 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
28888 memcpy instead of xmalloc, xrealloc, path_concat.
28889 (locale_charset): Treat empty environment variables as absent.
28890 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
28892 2000-05-04 Jim Meyering <meyering@lucent.com>
28894 * lib/getopt.c: Update from glibc.
28895 * lib/obstack.c: Likewise.
28896 * lib/obstack.h: Likewise.
28897 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
28900 * lib/regex.h: Likewise.
28901 * lib/strndup.c: Likewise.
28902 * lib/strnlen.c: New file, from glibc.
28904 2000-05-03 Jim Meyering <meyering@lucent.com>
28906 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
28908 2000-05-02 Paul Eggert <eggert@twinsun.com>
28910 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
28911 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
28912 compile-time test, rather than inspecting host and OS, to
28913 decide whether to define _LARGEFILE_SOURCE.
28915 2000-05-01 Jim Meyering <meyering@lucent.com>
28917 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
28919 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
28920 Based on a patch from Bruno Haible.
28922 2000-05-01 Jim Meyering <meyering@lucent.com>
28924 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
28926 2000-04-29 Jim Meyering <meyering@lucent.com>
28928 * lib/path-concat.c: Declare strdup only if it's not defined.
28929 * lib/canon-host.c: Likewise.
28931 2000-04-28 Jim Meyering <meyering@lucent.com>
28933 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
28934 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
28935 is included first, then limits.h is included by locale.h by libintl.h.
28936 From John David Anglin.
28938 2000-04-25 Jim Meyering <meyering@lucent.com>
28940 * lib/makepath.c (S_IRWXUGO): Define.
28941 (make_path): Always perform explicit chmod if MODE specifies any
28942 of the `special' permission bits. Prompted by a bug report against
28943 install from Mate Wierdl and Joost van Baal.
28945 2000-04-18 Jim Meyering <meyering@lucent.com>
28947 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
28948 (jm_PREREQ): Use it.
28950 2000-04-18 Jim Meyering <meyering@lucent.com>
28952 * lib/README: New file.
28954 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
28955 getpagesize. For BeOS. Based on a patch from Bruno Haible.
28957 2000-04-17 Jim Meyering <meyering@lucent.com>
28960 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
28961 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
28962 Suggestion from Akim Demaille.
28964 2000-04-17 Jim Meyering <meyering@lucent.com>
28966 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
28967 the definition of it to rpl_strftime also defined-away the system's
28970 2000-04-15 Jim Meyering <meyering@lucent.com>
28972 Use `C' to denote so-called `contiguous' files, the same way
28974 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
28975 (ftypelet): Use S_ISCTG.
28976 From Michael Deutschmann.
28978 2000-04-14 Jim Meyering <meyering@lucent.com>
28980 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
28981 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
28984 2000-04-14 Jim Meyering <meyering@lucent.com>
28986 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
28988 2000-04-13 Jim Meyering <meyering@lucent.com>
28990 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
28991 AH_VERBATIM to insert required #ifndef into config.h.in.
28992 Suggestion from Akim Demaille.
28994 2000-04-12 Jim Meyering <meyering@lucent.com>
28996 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
28997 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
28998 Christian Krackowizer.
29000 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
29001 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
29002 (AC_SYS_LARGEFILE): Require.
29003 (AM_C_PROTOTYPES): Require.
29005 2000-04-08 Jim Meyering <meyering@lucent.com>
29007 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
29008 names don't conflict. Reported by Eli Zaretskii.
29010 2000-04-07 Jim Meyering <meyering@lucent.com>
29012 * lib/putenv.c: Move inclusion of errno.h so it follows that of
29013 sys/types.h, to work around system header problems on AIX 3.2.5.
29016 2000-04-07 Bruno Haible <haible@clisp.cons.org>
29018 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
29019 bug. Deal with the different error behavior of Irix iconv.
29021 2000-04-05 Paul Eggert <eggert@twinsun.com>
29023 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
29024 IRIX if the installer said otherwise.
29026 2000-04-05 Jim Meyering <meyering@lucent.com>
29028 Portability tweaks required for ultrix4.3.
29029 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
29030 (jm_CHECK_DECLS): Add getutent to the list of functions.
29031 (_jm_DECL_HEADERS): Add utmpx.h.
29032 From John David Anglin.
29034 * m4/strftime.m4: Back out the 2000-04-02 change.
29035 Instead of that change, simply undefine putenv in the test program.
29037 2000-04-05 Jim Meyering <meyering@lucent.com>
29039 Portability tweaks required for ultrix4.3.
29040 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
29042 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
29043 * lib/canon-host.c: Declare strdup.
29044 * lib/path-concat.c: Likewise.
29045 From John David Anglin.
29047 2000-04-04 Jim Meyering <meyering@lucent.com>
29049 Be more DOS 8.3-friendly.
29050 * lib/ref-add.sin: Renamed from ref-add.sed.in.
29051 * lib/ref-del.sin: Renamed from ref-del.sed.in.
29052 * lib/Makefile.am: Reflect renaming.
29053 Reported by Eli Zaretskii.
29055 Use a temporary file name that won't clash with `charset.alias'
29056 in the DOS 8.3 name space.
29057 * lib/Makefile.am (charset_tmp): Define.
29058 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
29059 (uninstall-local): Likewise.
29060 Reported by Eli Zaretskii.
29062 2000-04-03 Jim Meyering <meyering@lucent.com>
29064 * m4/gettext.m4: Fix typo in comment.
29066 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
29067 textutils/configure.in). Suggestion from Paul Eggert.
29068 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
29070 2000-04-02 Paul Eggert <eggert@twinsun.com>
29072 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
29073 variable in the shell rather than using putenv, which isn't
29074 portable. This avoids the configure-time inter-test dependency
29075 on the potentially-renamed putenv function.
29077 2000-03-30 Paul Eggert <eggert@twinsun.com>
29079 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
29080 before checking struct stat.st_blksize, so that
29081 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
29083 2000-03-29 Paul Eggert <eggert@twinsun.com>
29085 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
29086 since strftime.c uses HAVE_STRFTIME to decide whether to use
29087 the underlying strftime.
29089 2000-03-29 Paul Eggert <eggert@twinsun.com>
29091 * lib/time/strftime.c (my_strftime): Make sure we call the system
29092 strftime, not ourselves, when invoking the underlying strftime.
29094 2000-03-24 Jim Meyering <meyering@lucent.com>
29096 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
29097 (charset_alias): Define.
29098 (install-exec-local): Factor out common code.
29099 (uninstall-local): Split lines longer than 80.
29100 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
29101 (SUFFIXES): Define.
29102 (.sed.in.sed): New rule. Don't redirect directly to $@.
29103 (CLEANFILES): Add ref-add.sed and ref-del.sed.
29105 2000-03-19 Bruno Haible <haible@clisp.cons.org>
29107 * lib/config.charset: Output a line containing "Packages using this
29109 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
29110 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
29111 ref-del.sed): New rules.
29113 2000-03-17 Jim Meyering <meyering@lucent.com>
29115 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
29116 Otherwise, include <strings.h>
29118 2000-03-17 Bruno Haible <haible@clisp.cons.org>
29120 * lib/unicodeio.c (utf8_wctomb): New function.
29121 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
29122 format instead of in UCS-4 with platform dependent endianness.
29124 2000-03-10 Jim Meyering <meyering@lucent.com>
29126 * m4/lib-check.m4: Look for getspnam in -lgen, too.
29127 From Marco Franzen.
29129 2000-03-07 Paul Eggert <eggert@twinsun.com>
29131 * lib/savedir.c (savedir): Work even if directory size is
29132 negative; this can happen with some screwy NFS configurations.
29134 2000-03-06 Jim Meyering <meyering@lucent.com>
29136 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
29137 if it's NULL (because we ran out of memory). From Bruno Haible.
29139 2000-03-05 Jim Meyering <meyering@lucent.com>
29141 * lib/localcharset.c ("path-concat.h"): Include.
29142 (get_charset_aliases): Use path_concat instead of ANSI string
29145 * lib/unicodeio.h (PARAMS): Define.
29146 Use it to guard prototype.
29148 2000-03-04 Jim Meyering <meyering@lucent.com>
29150 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
29151 for lib/localcharset.c.
29153 2000-03-04 Jim Meyering <meyering@lucent.com>
29155 * lib/Makefile.am (install-exec-local): Create $(libdir) before
29156 installing into it.
29157 (uninstall-local): Uncomment this rule so `make distcheck' works
29160 * lib/unicodeio.c (<errno.h>): Include it.
29161 (errno): Declare if not defined.
29163 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
29165 * lib/config.charset: New version, incorporating remarks from a linux
29166 i18n mailing list. From Bruno Haible.
29168 2000-03-04 Bruno Haible <haible@clisp.cons.org>
29170 * m4/codeset.m4: New file.
29171 * m4/iconv.m4: New file.
29172 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
29174 2000-03-03 Jim Meyering <meyering@lucent.com>
29176 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
29178 2000-03-02 Jim Meyering <meyering@lucent.com>
29180 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
29181 the messages come out on separate lines.
29183 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
29184 rather than jm_CHECK_DECLARATIONS.
29185 * m4/decl.m4: Remove now-unused file.
29187 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
29190 2000-03-02 Jim Meyering <meyering@lucent.com>
29192 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
29194 2000-03-01 Jim Meyering <meyering@lucent.com>
29196 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
29197 * lib/unicodeio.c: Likewise.
29199 2000-03-01 Bruno Haible <haible@clisp.cons.org>
29201 * lib/config.charset: New file.
29202 * lib/localcharset.c: New file.
29203 * lib/unicodeio.h, lib/unicodeio.c: New files.
29204 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
29205 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
29206 (noinst_HEADERS): Add unicodeio.h.
29207 (all-local, install-exec-local, charset.alias): New targets.
29209 2000-02-28 Paul Eggert <eggert@twinsun.com>
29211 * lib/quotearg.c (ALERT_CHAR): New macro.
29212 (quotearg_buffer_restyled): Use it.
29214 2000-02-27 Jim Meyering <meyering@lucent.com>
29216 * m4/check-decl.m4: Add getenv to the list.
29218 2000-02-27 Jim Meyering <meyering@lucent.com>
29220 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
29221 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
29223 * lib/backupfile.c: Guard inclusion of stdlib.h with
29224 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
29225 Declare malloc if needed.
29227 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
29228 `#ifndef HAVE_DECL..'
29229 now that autoconf always defines the HAVE_DECL_ symbols.
29230 * lib/human.c: Likewise.
29231 * lib/same.c: Likewise.
29232 * lib/strtoumax.c: Likewise.
29234 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
29235 declaration check was not run.
29236 * lib/hash.c: Likewise.
29237 * lib/human.c: Likewise.
29238 * lib/same.c: Likewise.
29239 * lib/strtoumax.c: Likewise.
29241 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
29242 `.', then first look up the entire `.'-containing string as a login
29245 2000-02-23 Jim Meyering <meyering@lucent.com>
29247 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
29248 in place of my hack.
29250 2000-02-18 Paul Eggert <eggert@twinsun.com>
29252 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
29253 (textint): New typedef.
29254 (parser_control): Member year changed from int to textint.
29256 (YYSTYPE): Removed; replaced by %union with int and textint members.
29257 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
29258 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
29259 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
29260 (tSNUMBER, tUNUMBER): Now of type <textintval>.
29261 (date, number, to_year): Use width of number in digits, not its value,
29262 to determine whether it's a 2-digit year, or a 2-digit time.
29263 (yylex): Store number of digits of numeric tokens.
29264 Reported by John Kendall.
29266 (parser_control): Changed from struct parser_control to typedef (for
29267 consistency). All uses changed.
29269 (tID): Removed; not used.
29270 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
29272 2000-02-14 Paul Eggert <eggert@twinsun.com>
29274 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
29275 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
29277 2000-02-12 Jim Meyering <meyering@lucent.com>
29279 * lib/userspec.c (ISDIGIT): Define it.
29280 (isdigit): Remove definition.
29281 (is_number): Use ISDIGIT, not isdigit.
29282 <libintl.h>: Include.
29283 (_ and N_): Define.
29284 (parse_user_spec): Mark translatable strings.
29286 2000-02-10 Jim Meyering <meyering@lucent.com>
29288 With these changes, nanosleep.[ch] are finally enough like the other
29289 lib/* replacement files to compile on a few more losing systems.
29291 * lib/nanosleep.h: Don't include config.h.
29292 Remove prototype from declaration of nanosleep.
29293 (PARAMS): Remove now-unneeded definition.
29294 * lib/nanosleep.c: #undef nanosleep.
29295 (rpl_nanosleep): Rename from nanosleep.
29297 2000-02-10 Jim Meyering <meyering@lucent.com>
29299 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
29300 gnu_nanosleep to rpl_nanosleep.
29302 2000-02-09 Jim Meyering <meyering@lucent.com>
29304 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
29305 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
29307 2000-02-08 Akim Demaille <akim@epita.fr>
29309 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
29310 `[' and `]' and remove uses of `changequote'.
29311 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
29312 (AC_SYS_LARGEFILE): Likewise.
29313 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29314 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
29316 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
29317 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
29318 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
29319 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
29321 2000-02-05 Jim Meyering <meyering@lucent.com>
29323 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
29324 Remove explicit use of AC_HEADER_TIME. It is required by
29325 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
29326 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
29327 in autoconf whereby the expansion of the latter ended up preceding
29328 the expansion of its prerequisite, AC_HEADER_TIME.
29329 Reported by Volker Borchert.
29331 2000-02-03 Jim Meyering <meyering@lucent.com>
29333 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
29335 2000-02-03 Jim Meyering <meyering@lucent.com>
29337 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
29338 rather than with `#if HAVE_UTMPNAME'.
29340 2000-02-02 Jim Meyering <meyering@lucent.com>
29342 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
29343 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
29344 Reported by Eli Zaretskii.
29346 2000-02-01 Jim Meyering <meyering@lucent.com>
29348 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
29350 2000-01-31 Jim Meyering <meyering@lucent.com>
29352 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
29353 functions. Add the time.h and sys/time.h headers along with the
29354 AC_REQUIRE'ment of AC_HEADER_TIME.
29356 2000-01-31 Jim Meyering <meyering@lucent.com>
29358 * lib/nanosleep.h (nanosleep): Guard declaration with
29359 `#if ! HAVE_DECL_NANOSLEEP'.
29360 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
29361 the declaration in that vendor's sys/timers.h.
29362 Reported by Christian Krackowizer.
29364 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
29365 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
29366 (ISPRINT): Likewise.
29367 Reported by Tom Tromey.
29369 2000-01-30 Jim Meyering <meyering@lucent.com>
29371 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
29373 * m4/prereq.m4 (utmp_includes): Define.
29374 Check for ut_user and ut_name members in both struct utmpx
29377 2000-01-30 Jim Meyering <meyering@lucent.com>
29379 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
29380 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
29381 header files where only utmpx.ut_user is declared.
29383 * lib/readutmp.h (UT_USER): Define.
29385 2000-01-29 Jim Meyering <meyering@lucent.com>
29387 * m4/lib-check.m4: New file containing library-related checks from
29388 fileutils and sh-utils (textutils had none).
29390 2000-01-28 Jim Meyering <meyering@lucent.com>
29392 * m4/perl.m4: Change format of warning message to look more like that
29393 from the missing script. Suggestion from François Pinard.
29395 2000-01-25 Jim Meyering <meyering@lucent.com>
29397 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
29398 well as time.h in the compile check.
29399 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
29400 Fix typo in cross-compiling case: s/yes/no/.
29402 2000-01-23 Jim Meyering <meyering@lucent.com>
29404 * m4/jm-macros.m4: Move df-related tests here from
29405 fileutils/configure.in
29407 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
29408 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
29410 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
29411 s/space/ac_fsusage_space/.
29412 (jm_FILE_SYSTEM_USAGE): Take two parameters.
29414 * m4/ftruncate.m4: New file (derived from part of
29415 fileutils/configure.in).
29416 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
29417 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
29419 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
29420 AC_SUBST these here, rather than just in sh-util/configure.in, so
29421 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
29423 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
29424 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
29425 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
29426 (AC_SUBST(POW_LIBM)): Likewise.
29427 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
29429 2000-01-23 Jim Meyering <meyering@lucent.com>
29431 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
29434 2000-01-22 Jim Meyering <meyering@lucent.com>
29436 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
29438 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
29440 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
29442 (AC_CHECK_HEADERS): Likewise for sh-utils.
29443 (AC_CHECK_HEADERS): Likewise for textutils.
29444 Merge the three lists of headers.
29446 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
29447 from fileutils' configure.in.
29449 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
29450 code. Moved tests into their own function (_jm_DECL_HEADERS) in
29453 * m4/check-decl.m4: Use #if rather than #ifdef.
29454 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
29455 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
29456 (_jm_DECL_HEADERS): Define new function.
29457 (jm_CHECK_DECLARATIONS): Require it.
29459 2000-01-22 Jim Meyering <meyering@lucent.com>
29461 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
29462 [! HAVE_DECL_STRTOULL]: Declare strtoull.
29463 Required for some AIX systems. Reported by Christian Krackowizer.
29464 [TESTING] (main): New function.
29466 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
29467 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
29470 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
29473 * lib/strverscmp.c (ISDIGIT): Define.
29474 (strverscmp): Use ISDIGIT, not isdigit.
29476 2000-01-19 Jim Meyering <meyering@lucent.com>
29478 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
29479 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
29480 defines `struct timespec' in <sys/time.h>
29482 * m4/c-bs-a.m4: Remove uses of changequote altogether.
29483 Thanks to Akim for explaining.
29485 2000-01-17 Paul Eggert <eggert@twinsun.com>
29487 * lib/nanosleep.c (nanosleep):
29488 Don't use SA_INTERRUPT to decide whether to call sigaction, as
29489 POSIX.1 doesn't require SA_INTERRUPT and some systems
29490 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
29491 it's been part of POSIX.1 since day 1 (in 1988).
29493 2000-01-17 Jim Meyering <meyering@lucent.com>
29495 * lib/interlock: Remove unused file. Reported by François Pinard.
29497 2000-01-16 Paul Eggert <eggert@twinsun.com>
29499 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
29500 alert, backslash, formfeed, and vertical tab unnecessarily in
29501 shell quoting style.
29503 2000-01-16 Jim Meyering <meyering@lucent.com>
29505 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
29506 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
29507 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
29508 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
29510 2000-01-16 Jim Meyering <meyering@lucent.com>
29512 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
29513 because the latter didn't work.
29515 2000-01-15 Jim Meyering <meyering@lucent.com>
29517 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
29518 (AC_REPLACE_FUNCS): Add memcpy and memset.
29519 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
29521 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
29523 2000-01-12 Jim Meyering <meyering@lucent.com>
29525 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
29526 (jm_PREREQ): Use it.
29527 (jm_PREREQ_READUTMP): New macro.
29528 (jm_PREREQ): Use it.
29530 2000-01-11 Paul Eggert <eggert@twinsun.com>
29532 Quote multibyte characters correctly.
29533 * m4/c-bs-a.m4: New file.
29534 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
29535 (jm_PREREQ): Use it.
29537 2000-01-11 Paul Eggert <eggert@twinsun.com>
29539 * m4/uintmax_t.m4: Port to autoconf 2.13.
29541 2000-01-08 Jim Meyering <meyering@ascend.com>
29543 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
29544 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
29546 2000-01-04 Jim Meyering <meyering@ascend.com>
29548 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
29549 jm_STRUCT_DIRENT_D_TYPE.
29550 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
29551 jm_STRUCT_DIRENT_D_INO.
29552 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
29554 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
29556 * m4/utime.m4: Likewise.
29558 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
29559 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
29561 2000-01-03 Paul Eggert <eggert@twinsun.com>
29563 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
29564 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
29566 2000-01-02 Jim Meyering <meyering@ascend.com>
29568 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
29569 remember if this is necessary.
29571 1999-12-26 Jim Meyering <meyering@ascend.com>
29573 * m4/jm-macros.m4: Use it here.
29574 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
29576 1999-12-23 Jim Meyering <meyering@ascend.com>
29578 * m4/jm-macros.m4: Check for clock_gettime (moved from
29579 fileutils/configure.in)
29580 Check for gettimeofday.
29582 1999-12-20 Jim Meyering <meyering@ascend.com>
29584 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
29585 autoconf-2.14a-1999-12-20.
29587 1999-12-19 Jim Meyering <meyering@ascend.com>
29589 * m4/lstat-slash.m4: New file.
29590 * m4/jm-macros.m4: Use the new macro:
29591 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29593 1999-12-07 Jim Meyering <meyering@ascend.com>
29595 * m4/perl.m4: Require that File::Compare be available, too.
29596 Too many systems seem to lack it.
29598 * m4/strftime.m4: Add checks for most of the cpp macros tested in
29599 GNU's strftime.c. Prompted by a patch from Paul Eggert.
29601 1999-11-18 Paul Eggert <eggert@twinsun.com>
29603 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
29604 problem with the QNX 4.25 shell, which doesn't propagate exit
29605 status of failed commands inside shell assignments.
29607 1999-11-17 Jim Meyering <meyering@ascend.com>
29609 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
29611 1999-11-07 Jim Meyering <meyering@ascend.com>
29613 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
29615 1999-11-06 Jim Meyering <meyering@ascend.com>
29617 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
29618 * m4/jm-macros.m4 (jm_MACROS): Use it here.
29620 1999-11-05 Jim Meyering <meyering@ascend.com>
29622 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
29623 configure.in of textutils, fileutils, and sh-utils into this one
29624 (shared between those packages) file.
29625 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
29626 AC_STRUCT_ST_BLKSIZE.
29628 1999-11-03 Jim Meyering <meyering@ascend.com>
29630 * m4/ssize_t.m4: Remove file. No longer needed since the new version
29631 of AC_CHECK_TYPE checks includes unistd.h.
29632 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
29633 Suggestion from Akim Demaille.
29635 1999-10-30 Jim Meyering <meyering@ascend.com>
29637 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
29639 * m4/ls-mntd-fs.m4: Likewise.
29640 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
29641 * m4/jm-winsz1.m4: Likewise.
29643 * m4/const.m4: Remove file, since the fix made it into the experimental
29644 version of autoconf.
29645 * m4/mktime.m4: Likewise.
29647 * m4/check-type.m4: Remove file, now that the latest version of
29648 AC_CHECK_TYPE takes a third arg to specify additional #includes.
29650 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
29651 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
29654 1999-10-04 Jim Meyering <meyering@ascend.com>
29656 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
29658 1999-09-22 Paul Eggert <eggert@twinsun.com>
29660 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
29661 2.95.1 bug with HP-UX 10.20.
29663 1999-09-17 Jim Meyering <meyering@ascend.com>
29665 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
29666 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
29667 due to missing strdup (against sh-utils-2.0).
29669 1999-08-29 Jim Meyering <meyering@ascend.com>
29671 * m4/jm-macros.m4: Require jm_BISON.
29672 * m4/bison.m4: New file.
29674 1999-08-17 Paul Eggert <eggert@twinsun.com>
29676 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
29677 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
29679 1999-08-05 Jim Meyering <meyering@ascend.com>
29681 * m4/getline.m4: Rename test file from conftestdata to conftest.data
29682 to avoid conflicts with `conftest' on 8+3 filesystems.
29683 Suggestion from Eli Zaretskii.
29685 1999-08-04 Jim Meyering <meyering@ascend.com>
29687 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
29688 fileutils and sh-utils (textutils's getline test was inadequate).
29689 (AM_FUNC_GETLINE): Run this test.
29690 (AC_CHECK_FUNCS): Check for getdelim.
29691 Reported by Bob Proulx.
29693 1999-08-02 Jim Meyering <meyering@ascend.com>
29695 * m4/jm-macros.m4: Add a comment.
29697 1999-08-01 Paul Eggert <eggert@twinsun.com>
29699 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
29700 <inttypes.h> defines strtoumax as a macro (and not as a
29703 1999-08-01 Paul Eggert <eggert@twinsun.com>
29705 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
29706 that we can shift, multiply and divide unsigned long long
29707 values; Ultrix cc can't do it.
29709 1999-08-01 Paul Eggert <eggert@twinsun.com>
29711 * m4/mktime.m4: New file, which is a preview of what should appear
29712 in the next public autoconf release.
29714 1999-08-01 Paul Eggert <eggert@twinsun.com>
29716 * m4/lfs.m4: Remove this file.
29717 * m4/largefile.m4: New file. It contains the old contents of
29718 lfs.m4, except that all names with prefix AC_LFS have been
29719 changed to use the prefix AC_SYS_LARGEFILE instead, to be
29720 compatible with future autoconf versions. Also, some minor m4
29721 quoting problems have been fixed.
29723 1999-08-01 Paul Eggert <eggert@twinsun.com>
29725 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
29726 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
29727 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
29728 and simplify the shell code.
29730 1999-08-01 Jim Meyering <meyering@ascend.com>
29732 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
29735 1999-07-20 Jim Meyering <meyering@ascend.com>
29737 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
29739 1999-07-15 Jim Meyering <meyering@ascend.com>
29741 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
29743 1999-05-22 Jim Meyering <meyering@ascend.com>
29745 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
29747 1999-05-20 Jim Meyering <meyering@ascend.com>
29749 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
29750 Add a colon after each `then' in case $4 is empty.
29752 1999-05-16 Jim Meyering <meyering@ascend.com>
29754 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
29756 1999-05-10 Jim Meyering <meyering@ascend.com>
29758 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
29760 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
29763 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
29765 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
29767 1999-05-04 Paul Eggert <eggert@twinsun.com>
29769 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
29770 not CPPFLAGS, so that linking works correctly in IRIX.
29772 1999-04-30 Paul Eggert <eggert@twinsun.com>
29774 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
29776 1999-04-20 Paul Eggert <eggert@twinsun.com>
29778 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
29779 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
29780 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
29781 jm_AC_TYPE_UNSIGNED_LONG_LONG.
29782 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
29784 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
29786 1999-04-20 Jim Meyering <meyering@ascend.com>
29788 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
29789 AC_REPLACE xstroull if necessary. From Paul Eggert.
29790 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
29792 1999-04-18 Jim Meyering <meyering@ascend.com>
29794 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
29795 * m4/jm-macros.m4: Use it.
29797 1999-04-06 Jim Meyering <meyering@ascend.com>
29799 * m4/strftime.m4: Remove test for %f.
29801 1999-03-29 Jim Meyering <meyering@ascend.com>
29803 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
29804 superset of the AC_TYPE_* checks in the textutils, fileutils,
29805 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
29808 1999-03-28 Jim Meyering <meyering@ascend.com>
29810 * m4/jm-macros.m4: Define GNU_PACKAGE here.
29811 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
29812 replaced e.g., in the *.sh files of the sh-utils.
29814 1999-03-20 Jim Meyering <meyering@ascend.com>
29816 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
29817 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
29818 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
29820 1999-03-19 Jim Meyering <meyering@ascend.com>
29822 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
29824 1999-03-12 Jim Meyering <meyering@ascend.com>
29826 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
29828 1999-03-07 Jim Meyering <meyering@ascend.com>
29830 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
29833 1999-02-17 Jim Meyering <meyering@ascend.com>
29835 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
29836 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
29838 1999-02-07 Jim Meyering <meyering@ascend.com>
29840 * m4/group-member.m4: New file -- extracted from sh-utils'
29843 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
29844 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
29846 1999-02-06 Jim Meyering <meyering@ascend.com>
29848 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
29849 * m4/fnmatch.m4: Likewise.
29850 * m4/getgroups.m4: Likewise.
29851 * m4/lstat.m4: Likewise.
29852 * m4/malloc.m4: Likewise.
29853 * m4/putenv.m4: Likewise.
29854 * m4/realloc.m4: Likewise.
29855 * m4/regex.m4: Likewise.
29856 * m4/stat.m4: Likewise.
29857 * m4/strftime.m4: Likewise.
29858 Suggestion from Alain Magloire.
29860 * m4/chown.m4: Use `.$ac_objext', not `.o'.
29861 * m4/fnmatch.m4: Likewise.
29862 * m4/getgroups.m4: Likewise.
29863 * m4/getline.m4: Likewise.
29864 * m4/lstat.m4: Likewise.
29865 * m4/malloc.m4: Likewise.
29866 * m4/memcmp.m4: Likewise.
29867 * m4/putenv.m4: Likewise.
29868 * m4/realloc.m4: Likewise.
29869 * m4/regex.m4: Likewise.
29870 * m4/stat.m4: Likewise.
29871 * m4/strftime.m4: Likewise.
29872 Suggestion from Alain Magloire.
29874 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
29877 * m4/regex.m4: Add a run-time Test for proper operation of
29878 re_compile_pattern.
29880 1999-01-31 Jim Meyering <meyering@ascend.com>
29882 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
29884 1999-01-30 Jim Meyering <meyering@ascend.com>
29886 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
29888 * m4/jm-mktime.m4: Make this a wrapper around the official
29889 AM_FUNC_MKTIME rather than my private copy, now that the official one
29891 * m4/mktime.m4: Remove file.
29893 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
29894 * m4/uptime.m4: Likewise.
29895 * m4/uintmax_t.m4: Likewise.
29897 1999-01-28 Jim Meyering <meyering@ascend.com>
29899 * m4/jm-macros.m4: Use jm_AFS.
29900 * m4/afs.m4: New file (from fileutils' configure.in).
29902 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
29903 * m4/chown.m4: Likewise.
29904 * m4/d-ino.m4: Likewise.
29905 * m4/d-type.m4: Likewise.
29906 * m4/fnmatch.m4: Likewise.
29907 * m4/getgroups.m4: Likewise.
29908 * m4/gettext.m4: Likewise.
29909 * m4/jm-mktime.m4: Likewise.
29910 * m4/jm-winsz2.m4: Likewise.
29911 * m4/lcmessage.m4: Likewise.
29912 * m4/ls-mntd-fs.m4: Likewise.
29913 * m4/malloc.m4: Likewise.
29914 * m4/memcmp.m4: Likewise.
29915 * m4/putenv.m4: Likewise.
29916 * m4/realloc.m4: Likewise.
29917 * m4/st_mtim.m4: Likewise.
29918 * m4/strftime.m4: Likewise.
29920 1999-01-16 Jim Meyering <meyering@ascend.com>
29922 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
29923 (ARGMATCH_DIE_DECL): Define.
29925 1999-01-12 Jim Meyering <meyering@ascend.com>
29927 * m4/Makefile.am.in: Rewrite to avoid using fmt.
29928 Reported by Lars Hecking.
29930 1999-01-10 Jim Meyering <meyering@ascend.com>
29932 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
29934 * m4/inttypes_h.m4: Likewise.
29935 * m4/lstat.m4: Likewise.
29936 * m4/malloc.m4: Likewise.
29937 * m4/readdir.m4: Likewise.
29938 * m4/realloc.m4: Likewise.
29939 * m4/st_dm_mode.m4: Likewise.
29940 * m4/stat.m4: Likewise.
29941 * m4/utimbuf.m4: Likewise.
29942 * m4/utimes.m4: Likewise.
29944 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
29945 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
29946 comments in config.h.in are meaningful.
29948 * m4/jm-macros.m4: Require autoconf-2.13 here.
29950 * m4/regex.m4: By default, don't use the included regex.c on systems
29951 with glibc 2. Suggestion from Uli Drepper.
29953 1999-01-02 Jim Meyering <meyering@ascend.com>
29955 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
29957 1998-12-18 Jim Meyering <meyering@ascend.com>
29959 * m4/Makefile.am.in (Makefile.am): Simplify rule.
29960 Based on a suggestion from Lars Hecking.
29962 1998-11-16 Paul Eggert <eggert@twinsun.com>
29964 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
29966 1998-11-16 Jim Meyering <meyering@ascend.com>
29968 * m4/lfs.m4: Double-quote the `uname...` expression.
29970 1998-11-14 Jim Meyering <meyering@ascend.com>
29972 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
29973 * m4/stat.m4: Likewise.
29975 1998-11-03 Jim Meyering <meyering@ascend.com>
29977 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
29978 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
29980 1998-10-18 Jim Meyering <meyering@ascend.com>
29982 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
29984 1998-10-17 Jim Meyering <meyering@ascend.com>
29986 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
29987 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
29988 calls for those previously hard-coded headers. Instead, take a new
29990 (jm_CHECK_DECLARATIONS): Reflect interface change.
29991 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
29992 (jm_CHECK_DECL_LOCALTIME_R): New macro.
29994 * m4/mktime.m4: Test for spring-forward gap before long-running test.
29996 1998-10-14 Jim Meyering <meyering@ascend.com>
29998 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
29999 instead of "TZ=America/Vancouver". From Paul Eggert.
30001 1998-10-11 Jim Meyering <meyering@ascend.com>
30003 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
30004 This adds a test for a recently added compatibility fix for mktime.c.
30005 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
30007 1998-09-27 Jim Meyering <meyering@ascend.com>
30009 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
30011 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
30012 ../configure.in, including a change from Gordon Matzigkeit to allow
30013 cross-compiling for the Hurd.
30015 * m4/glibc.m4: New file/macro to test for the GNU C Library
30016 versions 1 and 2. From Gordon Matzigkeit.
30019 1998-09-21 Jim Meyering <meyering@ascend.com>
30021 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
30023 1998-08-18 Paul Eggert <eggert@twinsun.com>
30025 Port nanosecond-resolution times to UnixWare 2.1.2 and
30026 pedantic Solaris 2.6.
30028 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
30030 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
30031 Generate name of ns member, instead of just 1 or undef.
30032 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
30034 1998-08-15 Jim Meyering <meyering@ascend.com>
30036 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
30037 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
30038 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
30039 instead of jm_TYPE_SSIZE_T.
30041 1998-08-12 Jim Meyering <meyering@ascend.com>
30043 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
30045 1998-08-02 Jim Meyering <meyering@ascend.com>
30047 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
30048 in acconfig.h manually.
30050 1998-07-31 Paul Eggert <eggert@twinsun.com>
30052 * m4/st_mtim.m4: New file.
30054 1998-07-28 Jim Meyering <meyering@ascend.com>
30056 * m4/utimes.m4: Undef stat.
30058 1998-07-25 Jim Meyering <meyering@ascend.com>
30060 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
30061 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
30063 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
30065 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
30066 uid and gid actually remain unchanged.
30068 1998-07-07 Jim Meyering <meyering@ascend.com>
30070 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
30072 1998-07-04 Jim Meyering <meyering@ascend.com>
30074 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
30075 to prove that this macro can be used in packages without regex.c.
30077 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
30079 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
30082 1998-07-03 Jim Meyering <meyering@ascend.com>
30084 * m4/gettext.m4: Add -lintl if it's found to be necessary.
30086 * m4/gettext.m4: New file -- from gettext-0.10.35.
30087 * m4/lcmessage.m4: Likewise.
30088 * m4/progtest.m4: Likewise.
30090 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
30091 * m4/jm-macros.m4: Require the new macro.
30093 1998-06-29 Jim Meyering <meyering@ascend.com>
30095 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
30096 for the definition of NGROUPS (used in a system header included
30099 1998-06-28 Jim Meyering <meyering@ascend.com>
30101 * m4/ls-mntd-fs.m4: New file.
30102 * m4/fstypename.m4: New file.
30104 * m4/jm-macros.m4: Require the new macro.
30105 * m4/jm-glibc-io.m4: New file.
30107 1998-05-19 Jim Meyering <meyering@ascend.com>
30109 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
30110 * m4/lchown.m4: New file.
30112 * m4/Makefile.am.in: New file.
30113 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
30115 1998-05-14 Jim Meyering <meyering@ascend.com>
30117 * m4/Makefile.am (EXTRA_DIST): Add them.
30118 * m4/jm-macros.m4: New file.
30119 * m4/utimbuf.m4: New file.
30121 1998-05-12 Jim Meyering <meyering@ascend.com>
30123 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
30125 1998-05-11 Jim Meyering <meyering@ascend.com>
30127 * m4/isc-posix.m4: New file.
30129 1998-05-10 Jim Meyering <meyering@ascend.com>