[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070701171325.29d8b184.sfr@canb.auug.org.au>
Date: Sun, 1 Jul 2007 17:13:25 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Rodolfo Giometti <giometti@...eenne.com>
Cc: David Woodhouse <dwmw2@...radead.org>,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] LinuxPPS (with new syscalls API) - new version
On Sat, 30 Jun 2007 19:13:40 +0200 Rodolfo Giometti <giometti@...eenne.com> wrote:
>
> Maybe I can define a special struct for exchanging time data as:
>
> struct pps_timedata_s {
> long sec;
> long nsec;
> }
>
> and managing time data conversions at userland...
>
> What do you think about that? :)
"long" is one of the datatypes that changes size between 32 bit and 64
bit, so not such a good choice. You could use __u32 or __64 (or
whatever), that makes it very clear that these are fixed size data types.
--
Cheers,
Stephen Rothwell sfr@...b.auug.org.au
http://www.canb.auug.org.au/~sfr/
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists