On Wed, Mar 30, 2016 at 09:19:26PM -0400, Jeff Mahoney wrote: [...] > +/* > + * The kernel used to define 64-bit types on 64-bit systems on a per-arch > + * basis. Some architectures would use unsigned long and others would use > + * unsigned long long. These types were exported as part of the > + * kernel-userspace ABI and now must be maintained forever. This matches > + * what the kernel exports for each architecture so we don't need to cast > + * every printing of __u64 or __s64 to stdint types. > + */ > +#if BITS_PER_LONG == 32 > +#define PRI__64 "ll"
How portable is BITS_PER_LONG? > +#elif defined(__mips__) || defined(__powerpc__) || defined(__alpha__) || > defined(__ia64__) > +#define PRI__64 "l" Is there any simple way to verify this? -- ldv
pgpF_FXk2xJuy.pgp
Description: PGP signature
------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
