[PATCH] getsysstats: use sysinfo() instead of parsing /proc/meminfo
Joseph Myers
joseph@codesourcery.com
Fri Aug 14 12:09:00 GMT 2015
On Fri, 14 Aug 2015, Rasmus Villemoes wrote:
> to syscalls.list wasn't enough. Where should I put a prototype for
> __sysinfo? I assume sysdeps/unix/sysv/linux/sys/sysinfo.h is the wrong
> place, since that's the installed header.
Add a header sysdeps/unix/sysv/linux/include/sys/sysinfo.h - include/
headers are used for internal wrappers for installed headers. It can be
declared as "extern __typeof (sysinfo) __sysinfo __THROW;" to avoid
duplicating the full prototype.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list