From a785f6c56e7be1b07ee099ee3982e84d8b538ef4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 20 Aug 2000 17:08:29 +0000 Subject: Update. 2000-08-20 Ulrich Drepper * time/tst-getdate.c (main): Make error messages more human readable. * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generic postinc/postdec instruction. (_FPU_SETCW): Likewise. Patch by Franz Sirl . --- ChangeLog | 9 +++++++++ manual/math.texi | 2 ++ time/tst-getdate.c | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e973a8373d..4a2526866c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2000-08-20 Ulrich Drepper + + * time/tst-getdate.c (main): Make error messages more human readable. + + * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generic + postinc/postdec instruction. + (_FPU_SETCW): Likewise. + Patch by Franz Sirl . + 2000-08-20 Andreas Jaeger * time/tst-getdate.c (main): Increase error in case of wrong diff --git a/manual/math.texi b/manual/math.texi index cc29cd6101..9c0552d2ff 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -1406,6 +1406,8 @@ a previous call to @var{initstate} or @var{setstate}. The return value is the previous value of the state information array. You can use this value later as an argument to @code{setstate} to restore that state. + +If the function fails the return value is @code{NULL}. @end deftypefun @node SVID Random diff --git a/time/tst-getdate.c b/time/tst-getdate.c index d07fb3d06d..d5824f6766 100644 --- a/time/tst-getdate.c +++ b/time/tst-getdate.c @@ -101,10 +101,10 @@ main (void) { printf ("Failure for getdate (\"%s\"):\n", tests[i].str); printf ("struct tm is: %d-%d-%d %d:%d:%d\n", - tm->tm_year+1900, tm->tm_mon, tm->tm_mday, + tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); printf ("but should be: %d-%d-%d %d:%d:%d\n", - tests[i].tm.tm_year+1900, tests[i].tm.tm_mon, + tests[i].tm.tm_year + 1900, tests[i].tm.tm_mon + 1, tests[i].tm.tm_mday, tests[i].tm.tm_hour, tests[i].tm.tm_min, tests[i].tm.tm_sec); ++errors; -- cgit v1.2.3