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

Rodolfo Giometti
2007-07-01T19:26:45Z

On Sun, Jul 01, 2007 at 01:03:11PM +0100, David Woodhouse wrote:
>
> Seems reasonable enough in principle -- but whatever you do, don't use
> "long" for it. That would definitely need different behaviour for 32-bit
> vs. 64-bit. Use explicitly sized types such as uint32_t or uint64_t.

Which is the difference in using __u32 or uint32_t? Maybe is better
defining the new struct as follow?

struct pps_timedata_s {
uint32_t sec;
uint32_t nsec;
}

or as:

struct pps_timedata_s {
__u32 sec;
__u32 nsec;
}

?

Thanks,

Rodolfo