Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2005 02:55:03 +0800
From:      Xin LI <delphij@gmail.com>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        current@freebsd.org
Subject:   Re: struct timeval tv_sec type mismatch ?
Message-ID:  <a78074950511121055s3e09914dh3f82661489182834@mail.gmail.com>
In-Reply-To: <20051112102343.A4222@xorpc.icir.org>
References:  <20051112102343.A4222@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 11/13/05, Luigi Rizzo <rizzo@icir.org> wrote:
> on freebsd 5.x and above, the tv_sec field of struct timeval
> has type 'long' (defined here:
>
>        http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/_timeval.h
>
> whereas apparently most platform have it as time_t, and i believe
> there are standards that require that:
>
> http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html
>
> Any reason to keep it as a 'long' ?

A quick google search indicates that the only reason is to be
compatible with Tru64 on Alpha.[1]

[1] http://lists.freebsd.org/pipermail/freebsd-hackers/2005-October/013956.html

Cheers,
--
Xin LI <delphij@delphij.net> http://www.delphij.net


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a78074950511121055s3e09914dh3f82661489182834>