This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issue in time() function on 64bit machines.


Hi,

Thanks for responding Petr, i did what you said, it still comes up 1
second short.

On Fri, Mar 6, 2009 at 2:51 AM, Petr Baudis <pasky@suse.cz> wrote:
> ?Hi,
>
> On Thu, Mar 05, 2009 at 09:46:08AM +0530, Vicky wrote:
>> I confused as to why the same code works differently on 32 and 64bit
>> machines? Could this be an issue with the time_t time (time_t *result)
>> function? Is there a way to fix this problem while still using time_t
>> time (time_t *result) function.
>
> ?both functions are just thin syscall wrappers, so this is probably a
> kernel issue - try fiddling with
>
> ? ? ? ?sysctl vm.vdso_enabled 0
>
> to check if that helps (but I'm not sure if that old a kernel even has
> the vdso support) and/or a newer kernel version.
>
> --
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Petr "Pasky" Baudis
> The average, healthy, well-adjusted adult gets up at seven-thirty
> in the morning feeling just terrible. -- Jean Kerr
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]