Re: [PATCH] LinuxPPS (with new syscalls API) - new version

From: Rodolfo Giometti
Date: Wed Jul 11 2007 - 12:32:13 EST


On Wed, Jul 11, 2007 at 11:22:38AM -0400, Lennart Sorensen wrote:
> On Wed, Jul 11, 2007 at 10:06:34AM +0200, Rodolfo Giometti wrote:
> > My question is: how can I fit a 64 bits number of seconds into
> > timespec structure which, for 32 bits architetures, has a 32 bits bits
> > number of seconds?
>
> I imagine you can't. I have no idea if there are any intensions to
> change the definition of timespec on 32bit architectures, or if the
> thought is that they will all be dead before it becomes a problem. :)
>
> I still think the API you define for PPS should support 64bit seconds,
> even if on some systems you can't take advantage of it.

So on 32 bits systems I simply drop the high part of the second
data... is that right?

Ciao,

Rodolfo

--

GNU/Linux Solutions e-mail: giometti@xxxxxxxxxxxx
Linux Device Driver giometti@xxxxxxxxx
Embedded Systems giometti@xxxxxxxx
UNIX programming phone: +39 349 2432127
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/