You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Lekha Menon <le...@patni.com> on 2006/02/28 13:57:02 UTC

Problem with apr_time_exp_lt (localtime_r) on AIX

Hi,

I am facing a strange problem with apr_time_exp_lt.

On AIX, when i call apr_time_exp_lt with 2nd arg as 2147483647000000LL, it
sets the yr as 1 instead on 138.

The same works on Linux properly.

I investigated the code & found that apr_time_exp_lt internally calls
explode_time().

Here, localtime_r is called with arguments (&tt, &tm) where tt=2147483647.

localtime_r seems to be having some issue!

For checking localtime_r, i wrote a sample program. There also, while
passing tt=2147483647, it returned  1 instead of 138.

Is this AIX specific?

Please help!

Thanks in adv!

Regards,
Lekha

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail. 
_____________________________________________________________________