time_t on sparc64

Harti Brandt brandt at fokus.fraunhofer.de
Mon Oct 13 06:42:02 PDT 2003


Hi all,

I just discovered that time_t is 32-bit on sparc64. One of the problems
is that struct timeval is defined by Posix as

struct timeval {
	time_t	tv_secs;
	suseconds_t tv_usecs;
};

but _timeval.h has

struct timeval {
	long	tv_secs;
	suseconds_t tv_usecs;
}

This means, that our timeval is not Posix compatible. What is the reason
for time_t not beeing a long on sparc64?

harti
-- 
harti brandt,
http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private
brandt at fokus.fraunhofer.de, harti at freebsd.org


More information about the freebsd-sparc64 mailing list