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
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 ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



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 
>   #include 
>   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 figured I'd start here.

Jim,

A little experimentation makes me think this is a bug in glibc,
but I have not spotted what could be the cause.
I suspect the -14 relates to EFAULT (error number 14), but
this should not be getting returned as the function result.
I suggest reassigning this bug, or perhaps raising a report
in http://sourceware.org/bugzilla/.

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 ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



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 
  #include 
  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 figured I'd start here.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.2
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages manpages-dev depends on:
ii  manpages  2.02-2 Manual pages about using a GNU/Lin

manpages-dev recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]