On Sat, 30 Jun 2007 19:13:40 +0200 Rodolfo Giometti <[email protected]> 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 [email protected] http://www.canb.auug.org.au/~sfr/
Attachment:
pgpGC2wwnQP7Q.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] LinuxPPS (with new syscalls API) - new version
- From: Rodolfo Giometti <[email protected]>
- Re: [PATCH] LinuxPPS (with new syscalls API) - new version
- Prev by Date: [PATCH] update Documentation/filesystems/vfs.txt (second part)
- Next by Date: Re: [patch 5/5] Optimize page_mkclean_one
- Previous by thread: [PATCH] update Documentation/filesystems/vfs.txt (second part)
- Next by thread: Re: [PATCH] LinuxPPS (with new syscalls API) - new version
- Index(es):