Using __rlim_t looks like it will be right for everywhere else too.
Instead of the ugly padding fields, you can just make each one:
__extension__ union
{
long int ru_maxrss;
__syscall_slong_t __ru_maxrss_word;
};
and then having all this in linux/bits/resource.h will be right everywhere
without duplication.
Thanks,
Roland