library: sysstat and vmstat api changes
Use the standard libc declarations. For protecting the headers for C++ procps used to have its own defines, this change makes them use the standard libc ones. getstat() -> procps_stat_* vminfo() -> procps_vmstat_* These two components of the library now use the newer version of the API with less exposed global variables. The old methods are there for now. Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
		@@ -1,13 +1,7 @@
 | 
			
		||||
#ifndef PROCPS_PROC_PROCPS_H
 | 
			
		||||
#define PROCPS_PROC_PROCPS_H
 | 
			
		||||
 | 
			
		||||
#ifdef  __cplusplus
 | 
			
		||||
#define EXTERN_C_BEGIN extern "C" {
 | 
			
		||||
#define EXTERN_C_END }
 | 
			
		||||
#else
 | 
			
		||||
#define EXTERN_C_BEGIN
 | 
			
		||||
#define EXTERN_C_END
 | 
			
		||||
#endif
 | 
			
		||||
#include <features.h>
 | 
			
		||||
 | 
			
		||||
// Some ports make the mistake of running a 32-bit userspace
 | 
			
		||||
// on a 64-bit kernel. Shame on them. It's not at all OK to
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user