Issue in time() function on 64bit machines.

Petr Baudis pasky@suse.cz
Thu Mar 5 21:21:00 GMT 2009


  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



More information about the Libc-help mailing list