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

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


On Thu, Mar 15, 2012 at 12:54 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
>>
>>
>
> I will resubmit them separately.
>

Here is the patch for offtime.

Thanks.

-- 
H.J.
---

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

	* time/offtime.c (__offtime): Add more overflow check.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-offtime.patch
Type: text/x-patch
Size: 1026 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120315/b49ec3d3/attachment.bin>


More information about the Libc-alpha mailing list