This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] getsysstats: use sysinfo() instead of parsing /proc/meminfo


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]