PATCH [4/n]: Support 64bit time_t and 32bit long

H.J. Lu hjl.tools@gmail.com
Thu Mar 15 20:16:00 GMT 2012


On Thu, Mar 15, 2012 at 12:52 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> Linux/x32 uses 64bit time_t and 32bit long.  This patch updates
>> ydhms_diff to support TIME_T_MAX != LONG_MAX.  It also updates __offtime
>> to propeyly check overflow when converting time_t to long.
>
> These are two separate changes.  The mktime change can go in no problem.
> The offtime change needs more consideration.
>
>
> Thanks,
> Roland

Here is the mktime patch.

-- 
H.J.
---
2012-03-15  H.J. Lu  <hongjiu.lu@intel.com>

	* time/mktime.c (ydhms_diff): Check TIME_T_MAX instead of
	LONG_MAX.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-mktime.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120315/7ec44c79/attachment.bin>


More information about the Libc-alpha mailing list