Re: [PATCH] Use __kernel_long_t/__kernel_ulong_t in<linux/resource.h>
From: H.J. Lu
Date: Thu Dec 26 2013 - 10:36:26 EST
On Wed, Dec 25, 2013 at 06:54:47AM -0800, H.J. Lu wrote:
> Both x32 and x86-64 use the same struct rusage and struct rlimit for
> system calls. But x32 log is 32-bit. This patch change uapi
> <linux/resource.h> to use __kernel_long_t in struct rusage and
> __kernel_ulong_t in and struct rlimit.
Here is the updated patch which uses __kernel_long_t/__kernel_ulong_t
only if __BITS_PER_LONG == 64.
H.J.