This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Add x86_64/bits/resource.h
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 16 May 2012 12:55:05 -0700 (PDT)
- Subject: Re: PATCH: Add x86_64/bits/resource.h
- References: <20120516193836.GA1966@intel.com>
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