Bug#340898: time(2) has wrong return value

2007-02-06 Thread Pierre HABOUZIT
Version: 2.3.6.ds1-10 This is fixed (long time ago) now, as it now crashes. -- ·O· Pierre Habouzit ··O[EMAIL PROTECTED] OOOhttp://www.madism.org pgpORAlLpZpnB.pgp Description: PGP signature

Bug#340898: time(2) has wrong return value

2005-11-30 Thread Michael Kerrisk
With libc6 2.3.5-6 on i386, this program: #include stdio.h #include time.h main() { printf(%d\n,(int)time((time_t *)123)); } prints -14. The time(2) manpage says it would return -1. I don't know if this is a documentation error or a glibc bug, but the man page appears old so I

Bug#340898: time(2) has wrong return value

2005-11-30 Thread Michael Kerrisk
Jim, I have logged a bug report with glibc folk. http://sourceware.org/bugzilla/show_bug.cgi?id=1952 Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest tarball at

Bug#340898: time(2) has wrong return value

2005-11-26 Thread Jim Paris
Package: manpages-dev Version: 2.02-2 Severity: minor With libc6 2.3.5-6 on i386, this program: #include stdio.h #include time.h main() { printf(%d\n,(int)time((time_t *)123)); } prints -14. The time(2) manpage says it would return -1. I don't know if this is a documentation error or a