tests: port test-fdutimensat.c to Solaris 8
[gnulib.git] / ChangeLog
index 22c7752..97909fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,216 @@
+2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       tests: port test-fdutimensat.c to Solaris 8
+       * tests/test-fdutimensat.c (do_fdutimens): Don't assume
+       fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
+       On Solaris 8, it fails with errno == ENOSYS, because there is no
+       futimens (so it can't use the fd), and there is no lutimens (so it
+       can't implement AT_SYMLINK_NOFOLLOW on symlinks).
+
+       vsnprintf: make more consistent with snprintf; doc fixes
+
+       * doc/posix-functions/snprintf.texi (snprintf): The workaround for
+       the byte count return problem was promoted from the snprintf-posix
+       to the snprintf module.
+       * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
+       * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
+       gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
+       * tests/test-snprintf.c (main): Check the byte count returned.
+       * tests/test-vsnprintf.c (main): Likewise.
+
+2010-12-23  Eric Blake  <eblake@redhat.com>
+
+       sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
+       * modules/sigpipe (License): Relax license.
+
+2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       doc: document Solaris printf bug with large float precisions
+       * doc/posix-functions/dprintf.texi (dprintf):
+       * doc/posix-functions/fprintf.texi (fprintf):
+       * doc/posix-functions/printf.texi (printf):
+       * doc/posix-functions/snprintf.texi (snprintf):
+       * doc/posix-functions/sprintf.texi (sprintf):
+       * doc/posix-functions/vdprintf.texi (vdprintf):
+       * doc/posix-functions/vfprintf.texi (vfprintf):
+       * doc/posix-functions/vprintf.texi (vprintf):
+       * doc/posix-functions/vsnprintf.texi (vsnprintf):
+       * doc/posix-functions/vsprintf.texi (vsprintf):
+       Mention that these functions mishandle large floating point
+       precisions on Solaris 10.  The same bug is also present in Solaris
+       8, and I assume earlier.  This causes "cd gnulib-tests; make
+       check" to fail on Solaris 8 (and I assume, later) when building
+       the latest coreutils, in test-vasprintf-posix's call to
+       my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
+       the wide flavors (e.g., wprintf) so this patch just updates the
+       documentation for the narrow ones.
+
+       test-posixtm.c: add two tests
+       * tests/test-posixtm.c: Add two tests, to highlight the
+       bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
+       around this bug; this is merely to document it.
+
+2010-12-22  Bruno Haible  <bruno@clisp.org>
+
+       getlogin_r: Work around portability problem on OSF/1.
+       * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
+       * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
+       * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
+       test for a truncated result.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
+       * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
+       * modules/getlogin_r (Depends-on): Add memchr.
+       * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
+
+2010-12-22  Bruno Haible  <bruno@clisp.org>
+
+       ptsname: Avoid test failure on OSF/1 5.1.
+       * modules/ptsname-tests (Depends-on): Add 'same-inode'.
+       * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
+       (same_slave): New function.
+       (main): Use it to compare ptsname's result with the expected file name.
+
+2010-12-22  Bruno Haible  <bruno@clisp.org>
+
+       Port extended stdio modules to HP NonStop Kernel.
+       * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
+       macros.
+       * lib/fbufmode.c: Update comments.
+       * lib/fflush.c: Likewise.
+       * lib/fpurge.c: Likewise.
+       * lib/freadable.c: Likewise.
+       * lib/freadahead.c: Likewise.
+       * lib/freading.c: Likewise.
+       * lib/freadptr.c: Likewise.
+       * lib/freadseek.c: Likewise.
+       * lib/fseeko.c: Likewise.
+       * lib/fseterr.c: Likewise.
+       * lib/fwritable.c: Likewise.
+       * lib/fwriting.c: Likewise.
+       Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
+
+2010-12-22  Bruno Haible  <bruno@clisp.org>
+
+       ttyname_r: Work around bug on OSF/1 5.1.
+       * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
+       * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
+       instead of "guessing no" when the OSF/1 bug or the Solaris bug is
+       present.
+       * lib/ttyname_r.c (ttyname_r): Update comments.
+
+2010-12-22  Bruno Haible  <bruno@clisp.org>
+
+       round: Implement result sign according to IEEE 754.
+       * lib/round.c (MIN, MINUS_ZERO): New macros.
+       (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
+       * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
+       * tests/test-round-ieee.c (main): Likewise.
+       * tests/test-roundl-ieee.c (main): Likewise.
+
+       trunc: Implement result sign according to IEEE 754.
+       * lib/trunc.c (MIN, MINUS_ZERO): New macros.
+       (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
+       * tests/test-trunc2.c: Include minus-zero.h.
+       (MINUS_ZERO): New macro.
+       (trunc_reference): Keep in sync with lib/trunc.c.
+       * tests/test-truncf2.c: Include minus-zero.h.
+       (MINUS_ZERO): New macro.
+       (truncf_reference): Keep in sync with lib/trunc.c.
+       * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
+       * tests/test-trunc-ieee.c (main): Likewise.
+       * tests/test-truncl-ieee.c (main): Likewise.
+
+       ceil: Implement result sign according to IEEE 754.
+       * lib/ceil.c (MIN, MINUS_ZERO): New macros.
+       (FUNC): Return -0.0 for -1 < x < 0.
+       * tests/test-ceil2.c: Include minus-zero.h.
+       (MINUS_ZERO): New macro.
+       (ceil_reference): Keep in sync with lib/ceil.c.
+       * tests/test-ceilf2.c: Include minus-zero.h.
+       (MINUS_ZERO): New macro.
+       (ceilf_reference): Keep in sync with lib/ceil.c.
+       * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
+       * tests/test-ceil-ieee.c (main): Likewise.
+       * tests/test-ceill-ieee.c (main): Likewise.
+
+       floor: Implement result sign according to IEEE 754.
+       * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
+       * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
+       * tests/test-floorf2.c (floorf_reference): Likewise.
+       * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
+       * tests/test-floor-ieee.c (main): Likewise.
+       * tests/test-floorl-ieee.c (main): Likewise.
+
+2010-12-22  Bruno Haible  <bruno@clisp.org>
+
+       getaddrinfo: Update doc.
+       * doc/posix-functions/gai_strerror.texi: Return type is also different
+       on AIX and HP-UX.
+
+2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       getaddrinfo, inet_ntop: Update doc for Solaris.
+       * doc/posix-functions/gai_strerror.texi: Return type is also an
+       issue on Solaris 9 and earlier.
+       * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
+       on Solaris 10 and earlier.
+
+2010-12-21  Bruno Haible  <bruno@clisp.org>
+
+       New module 'roundl-ieee'.
+       * modules/roundl-ieee: New file.
+       * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
+       test whether roundl works according to ISO C 99 with IEC 60559.
+       * m4/roundl-ieee.m4: New file.
+       * modules/roundl-ieee-tests: New file.
+       * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
+       * tests/test-roundl.c (main): Remove signbit tests.
+       * modules/roundl-tests (Depends-on): Remove signbit.
+       * doc/posix-functions/roundl.texi: Mention the new module.
+
+2010-12-21  Bruno Haible  <bruno@clisp.org>
+
+       New module 'truncl-ieee'.
+       * modules/truncl-ieee: New file.
+       * modules/truncl-ieee-tests: New file.
+       * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
+       * tests/test-truncl.c (main): Remove signbit tests.
+       * modules/truncl-tests (Depends-on): Remove signbit.
+       * doc/posix-functions/truncl.texi: Mention the new module.
+
+2010-12-21  Bruno Haible  <bruno@clisp.org>
+
+       New module 'ceill-ieee'.
+       * modules/ceill-ieee: New file.
+       * modules/ceill-ieee-tests: New file.
+       * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
+       * tests/test-ceill.c (main): Remove signbit tests.
+       * modules/ceill-tests (Depends-on): Remove signbit.
+       * doc/posix-functions/ceill.texi: Mention the new module.
+
+2010-12-21  Bruno Haible  <bruno@clisp.org>
+
+       New module 'floorl-ieee'.
+       * modules/floorl-ieee: New file.
+       * modules/floorl-ieee-tests: New file.
+       * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
+       * tests/test-floorl.c (main): Remove signbit tests.
+       * modules/floorl-tests (Depends-on): Remove signbit.
+       * doc/posix-functions/floorl.texi: Mention the new module.
+
+2010-12-21  Bruno Haible  <bruno@clisp.org>
+
+       New module 'round-ieee'.
+       * modules/round-ieee: New file.
+       * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
+       whether round works according to ISO C 99 with IEC 60559.
+       * m4/round-ieee.m4: New file.
+       * modules/round-ieee-tests: New file.
+       * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
+       * tests/test-round1.c (main): Remove signbit tests.
+       * modules/round-tests (Depends-on): Remove 'signbit'.
+       * doc/posix-functions/round.texi: Mention the new module.
+
 2010-12-21  Bruno Haible  <bruno@clisp.org>
 
        New module 'trunc-ieee'.