X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=dad169cb9976e63cc42afaa76119ab0f8de570bd;hb=2ca2dd689c1585b8db4746d40292992986977f28;hp=ab182fa4f3a2e3d29716b2a0386b06c2362c2778;hpb=a9fc1cd7a76bd6289a011c4f0b3206a1e34fa773;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index ab182fa4f..dad169cb9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,502 @@ +2007-04-29 Bruno Haible + + * tests/test-fflush.c (main): Use a file of size 17, not 10. + Print more information in case of failure. Disable a test on BeOS. + +2007-04-29 Bruno Haible + + * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number. + This helps debugging on systems on which no gdb is available. + +2007-04-29 Bruno Haible + + * lib/freading.h: Improve comments. + * lib/fwriting.h: Likewise. + * tests/test-freading.c (main): Don't check freading immediately after + repositioning. Needed for glibc. + +2007-04-29 Bruno Haible + + * lib/freading.c (freading): Trivial simplification. + +2007-04-28 Bruno Haible + + * tests/test-fwriting.c (main): Also test the interaction between + fflush and fwriting. + * modules/fwriting-tests (Depends-on): Add fflush. + + * tests/test-freading.c (main): Also test the interaction between + fflush and freading. + * modules/freading-tests (Depends-on): Add fflush. + +2007-04-28 Bruno Haible + + * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use + fseeko and ftello. + Suggested by Eric Blake. + +2007-04-28 Jim Meyering + + Avoid false-negative in gl_STDINT_H's C99 conformance test. + * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms + to C99, include all of gl_STDINT_INCLUDES, not just . + +2007-04-27 Eric Blake + + * doc/headers/assert.texi (assert.h): Document assert module use. + +2007-04-27 Bruno Haible + + * doc/headers/*.texi: New files. + * doc/gnulib.texi (Header File Substitutes): New chapter. + * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify + dependencies. + (standards.info ,standards.html, standards.dvi): Update dependencies. + (mostlyclean, clean): New targets. + +2007-04-27 Bruno Haible + + * lib/sysexits_.h: Renamed from lib/sysexit_.h. + * modules/sysexits (Files, Makefile.am): Update. + + * lib/sys_socket_.h: Renamed from lib/socket_.h. + * modules/sys_socket (Files, Makefile.am): Update. + + * lib/sys_stat_.h: Renamed from lib/stat_.h. + * modules/sys_stat (Files, Makefile.am): Update. + +2007-04-27 Eric Blake + + * lib/freading.h: Improve comments. + * lib/fwriting.h: Likewise. + * lib/fflush.c: Likewise. + + Fix closein for mingw. + * modules/closein-tests: Add tests for closein. + * tests/test-closein.c: New file. + * tests/test-closein.sh: Likewise. + * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit. + * lib/closein.c (close_stdin): Don't fflush non-seekable streams. + +2007-04-27 Bruno Haible + + * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler + version is < 6. + * lib/math_.h [__DECC]: Likewise. + * lib/stdio_.h [__DECC]: Likewise. + * lib/stdlib_.h [__DECC]: Likewise. + * lib/string_.h [__DECC]: Likewise. + * lib/time_.h [__DECC]: Likewise. + * lib/wchar_.h [__DECC]: Likewise. + * lib/wctype_.h [__DECC]: Likewise. + +2007-04-27 Bruno Haible + + * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw. + +2007-04-27 Bruno Haible + + * lib/fflush.c: Add comments. + * modules/fpurge-tests (Depends-on): Add fflush. + * modules/freadable-tests (Depends-on): Likewise. + * modules/fwritable-tests (Depends-on): Likewise. + +2007-04-27 Charles Wilson + + * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of + SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements. + Report by Bruno Haible . + +2007-04-26 Eric Blake + + Fix fflush on mingw. + * modules/fflush (Depends-on): Add freading. + * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered + but unread data. + +2007-04-26 Eric Blake + and Bruno Haible + + Implement freading and fwriting. + * lib/freading.c: New file. + * lib/freading.h: Likewise. + * m4/freading.m4: Likewise. + * modules/freading: Likewise. + * modules/freading-tests: Likewise. + * tests/test-freading.c: Likewise. + * lib/fwriting.c: New file. + * lib/fwriting.h: Likewise. + * m4/fwriting.m4: Likewise. + * modules/fwriting: Likewise. + * modules/fwriting-tests: Likewise. + * tests/test-fwriting.c: Likewise. + * MODULES.html.sh (File stream based Input/Output): Mention them. + +2007-04-26 Bruno Haible + + * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as + 'long' when we assume it. + Suggested by Eric Blake. + +2007-04-26 Bruno Haible + + Ensure fseeko, ftello are declared on glibc systems. + * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO. + * modules/fseeko (configure.ac-early): Likewise. + * modules/ftello (configure.ac-early): Likewise. + * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on + AC_FUNC_FSEEKO for this. + * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO. + (gl_CHECK_FSEEKO): Remove macro. + +2007-04-26 Bruno Haible + + * tests/test-fflush.c (main): Also check the ftell result after + fflush and fseek/fseeko. + * lib/fflush.c (rpl_fflush): For BSD implementations, update the + file descriptor position cache in the stream. + * lib/fseeko.c (rpl_fseeko): Likewise. + +2007-04-26 Bruno Haible + + * modules/fflush-tests (Depends-on): Add fseeko. + +2007-04-25 Charles Wilson + Ralf Wildenhues + + * lib/argz_.h: ensure error_t definition is obtained in same + mechanism system argz.h would have. + * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's + argz facilities are known bad. Err on the side of caution if + cross-compiling. + +2007-04-25 Eric Blake + + * lib/fpurge.c (includes): Use stdlib.h for free. + * tests/test-fflush.c (main): Also test fflush-fseeko. + +2007-04-25 Bruno Haible + + Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X. + * lib/fseeko.c: New file. + * lib/stdio_.h: Include when off_t is needed. + (fseeko, fseek): Define to replacements if REPLACE_FFLUSH. + * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from + gl_FUNC_FSEEKO. + (gl_FUNC_FSEEKO): Invoke it. + * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke + gl_CHECK_FSEEKO. Define HAVE_FSEEKO. + * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4. + +2007-04-25 Bruno Haible + + * modules/fflush (Depends-on): Add ftello. + +2007-04-25 Bruno Haible + + * modules/ftello-tests: New file. + * tests/test-ftello.c: New file. + + * modules/ftello: New file. + * m4/ftello.m4: New file. + * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO, + HAVE_FTELLO. + * lib/stdio_.h (ftello): New declaration. + * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO, + HAVE_FTELLO. + +2007-04-25 Bruno Haible + + * modules/fseeko-tests: New file. + * tests/test-fseeko.c: New file. + + * modules/fseeko: New file. + * m4/fseeko.m4: New file. + * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO, + HAVE_FSEEKO. + * lib/stdio_.h (fseeko): New declaration. + * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO, + HAVE_FSEEKO. + +2007-04-25 Bruno Haible + + * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK. + +2007-04-25 Bruno Haible + + * lib/unistd_.h: Include if needed to get the SEEK_* macros. + * tests/test-stdio.c: Check that the various SEEK_* macros are defined. + * tests/test-unistd.c: Likewise. + * tests/test-fcntl.c: Likewise. + +2007-04-23 Eric Blake + + * lib/fflush.c: Fix missing include. + Reported by Bruno Haible. + +2007-04-23 Bruno Haible + + * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer. + Reported by Eric Blake. + +2007-04-23 Bruno Haible + + * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64. + +2007-04-23 Bruno Haible + + * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR. + +2007-04-23 Bruno Haible + + * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf. + Needed on HP-UX 11. + +2007-04-16 Eric Blake + + Make fflush rely on fpurge. + * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than + open coding all variants. + * modules/fflush (Depends-on): Add fpurge and unistd. + * modules/fflush-tests (Depends-on): Unistd is no longer extra. + * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify. + + Fix --with-tests compilation on cygwin. + * modules/argmatch-tests (Makefile.am): List gnulib library first + in LDADD. + * modules/argp-tests (Makefile.am): Likewise. + * modules/array-list-tests (Makefile.am): Likewise. + * modules/array-oset-tests (Makefile.am): Likewise. + * modules/avltree-list-tests (Makefile.am): Likewise. + * modules/avltree-oset-tests (Makefile.am): Likewise. + * modules/avltreehash-list-tests (Makefile.am): Likewise. + * modules/carray-list-tests (Makefile.am): Likewise. + * modules/dirname-tests (Makefile.am): Likewise. + * modules/frexp-tests (Makefile.am): Likewise. + * modules/isnanl-tests (Makefile.am): Likewise. + * modules/linked-list-tests (Makefile.am): Likewise. + * modules/linkedhash-list-tests (Makefile.am): Likewise. + * modules/lock-tests (Makefile.am): Likewise. + * modules/rbtree-list-tests (Makefile.am): Likewise. + * modules/rbtree-oset-tests (Makefile.am): Likewise. + * modules/rbtreehash-list-tests (Makefile.am): Likewise. + * modules/tls-tests (Makefile.am): Likewise. + * modules/tsearch-tests (Makefile.am): Likewise. + * modules/xvasprintf-tests (Makefile.am): Likewise. + + Fix fpurge for cygwin. + * lib/fpurge.c (fpurge): Fix order of operation flub, and return a + value. + * modules/fpurge-tests (Depends-on): Clean up trash. + +2007-04-16 Simon Josefsson + + * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings. + + * m4/autobuild.m4: Re-indent. + +2007-04-13 Bruno Haible + + * modules/fpurge-tests: New file. + * tests/test-fpurge.c: New file. + + * modules/fpurge: New file. + * lib/fpurge.h: New file. + * lib/fpurge.c: New file. + * m4/fpurge.m4: New file. + +2007-04-13 Bruno Haible + + * modules/fbufmode-tests: New file. + * tests/test-fbufmode.c: New file. + + * modules/fbufmode: New file. + * lib/fbufmode.h: New file. + * lib/fbufmode.c: New file. + * m4/fbufmode.m4: New file. + +2007-04-13 Bruno Haible + + * modules/fwritable-tests: New file. + * tests/test-fwritable.c: New file. + + * modules/fwritable: New file. + * lib/fwritable.h: New file. + * lib/fwritable.c: New file. + * m4/fwritable.m4: New file. + +2007-04-13 Bruno Haible + + * modules/freadable-tests: New file. + * tests/test-freadable.c: New file. + + * modules/freadable: New file. + * lib/freadable.h: New file. + * lib/freadable.c: New file. + * m4/freadable.m4: New file. + +2007-04-13 Bruno Haible + + * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment + MOSTLYCLEANFILES. + +2007-04-13 Paul Eggert + + * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by + gzip bootstrap.conf to avoid dragging in i18n machinery. + (gnulib_tool_option): Use it. + +2007-04-13 Bruno Haible + + * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and + %F directives. + * tests/test-vasprintf-posix.c (test_function): Likewise. + * tests/test-snprintf-posix.h (test_function): Likewise. + * tests/test-sprintf-posix.h (test_function): Likewise. + * tests/test-fprintf-posix.h (test_function): Likewise. + * tests/test-printf-posix.h (test_function): Likewise. + * tests/test-fprintf-posix.out: Likewise. + +2007-04-13 Bruno Haible + + * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4. + * modules/tls-tests (configure.ac): Likewise. + Reported by Arto C. Nirkko . + +2007-04-13 Bruno Haible + + * lib/tls.c (glthread_tls_get): Fix return type. + Patch by Arto C. Nirkko . + +2007-04-12 Eric Blake + + * modules/gettime (Depends-on): Remove gettime. + Reported by Dmitry V. Levin. + +2007-04-12 Bruno Haible + + * modules/fflush (Include): Mention . + * modules/strtoimax (Include): Mention . + * modules/strtoumax (Include): Likewise. + +2007-04-12 Eric Blake + + * .cvsignore: New file. + * .gitignore: Likewise. + +2007-04-12 Bruno Haible + + * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD, + not before, since $(LDADD) often contains libgnu.a. + * modules/striconv-tests (test_striconv_LDADD): Likewise. + * modules/striconveh-tests (test_striconveh_LDADD): Likewise. + * modules/striconveha-tests (test_striconveha_LDADD): Likewise. + Needed on Cygwin. + +2007-04-12 Eric Blake + + Work around glibc's failure to flush stdin on fclose. + * lib/closein.c (close_stdin): Flush stdin before closing. + + Work around glibc's failure to reset seekable stdin on exit. + * modules/closein: New module. + * lib/closein.c: New file. + * lib/closein.h: Likewise. + * m4/closein.m4: Likewise. + * MODULES.html.sh (File stream based Input/Output): Document it. + +2007-04-12 Simon Josefsson + + * gnulib-tool: Rename generated 'autobuild' script to + 'do-autobuild' in --create-megatestdir output. + + * doc/gnulib.texi (Build robot for gnulib): Fix. + +2007-04-12 Simon Josefsson + + * modules/sysexits (Depends-on): Add absolute-header. + +2007-04-12 Eric Blake + + No need to preserve errno on success. + * lib/fflush.c (rpl_fflush): Simplify errno tracking. + Reported by Bruno Haible. + +2007-04-12 Simon Josefsson + + * MODULES.html.sh (Support for maintaining and releasing + projects): Add autobuild. Suggested by Eric Blake . + +2007-04-12 Simon Josefsson + + * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy. + +2007-04-12 Simon Josefsson + + * modules/autobuild: New module. + + * m4/autobuild.m4: New file. + +2007-04-11 Bruno Haible + + * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the + %f directive, if NEED_PRINTF_DIRECTIVE_F is defined. + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro. + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro. + * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke + gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement. + * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke + gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement. + * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke + gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement. + * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke + gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement. + * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke + gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement. + * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke + gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement. + * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke + gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement. + * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke + gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement. + Reported by Eric Blake. + +2007-04-11 Bruno Haible + + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed. + +2007-04-10 Bruno Haible + + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result + for NaN and Infinity. Needed on FreeBSD 6.1. + * tests/test-vasnprintf-posix.c (test_function): Undo last change + regarding results for "%010a" of Infinity and NaN. + * tests/test-vasprintf-posix.c (test_function): Likewise. + * tests/test-snprintf-posix.h (test_function): Likewise. + * tests/test-sprintf-posix.h (test_function): Likewise. + * tests/test-fprintf-posix.h (test_function): Likewise. + * tests/test-printf-posix.h (test_function): Likewise. + * tests/test-fprintf-posix.out: Likewise. + +2007-04-10 Bruno Haible + + * modules/locale-tests: New file. + * tests/test-locale.c: New file. + + * modules/locale: New file. + * lib/locale_.h: New file. + * m4/locale_h.m4: New file. + 2007-04-10 Paul Eggert - Bruno Haible + Bruno Haible * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not be determined, test for availability of the copysignf, copysign,