This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/812] mktime does not return -1
- From: "futhark at users dot sourceforge dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Apr 2005 09:33:18 -0000
- Subject: [Bug libc/812] mktime does not return -1
- References: <20050401034550.812.uttamp@us.ibm.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From futhark at users dot sourceforge dot net 2005-04-10 09:33 -------
It looks like mktime() will return INT_MIN if the value would be less than
time_t's minimum, but not by more than 20 years, and it will return INT_MAX if
the value would be greater than time_t's maximum, but not by more than 20 years.
If the value exceeds time_t's range by more than 20 years, then mktime() will
return -1. It should, however, return -1 in all three cases.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
http://sources.redhat.com/bugzilla/show_bug.cgi?id=812
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.