test-posixtm.c: add two tests
[gnulib.git] / ChangeLog
index de2decf..2dc4aeb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,93 @@
+2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.