]> granicus.if.org Git - procps-ng/commit
library: sysstat and vmstat api changes
authorCraig Small <csmall@enc.com.au>
Fri, 19 Jun 2015 21:43:02 +0000 (07:43 +1000)
committerCraig Small <csmall@enc.com.au>
Fri, 26 Jun 2015 12:37:28 +0000 (22:37 +1000)
commita410e236abb47c7c43194e61d0566686f81513af
tree8a0fbb2e82b1db360814b6db946fcb9f682ba234
parent6a0850be7b1a21b2b5529ef05bb9705998640802
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>
18 files changed:
Makefile.am
proc/alloc.h
proc/devname.h
proc/escape.h
proc/libprocps.sym
proc/procps.h
proc/pwcache.h
proc/readproc.h
proc/readstat.c [new file with mode: 0644]
proc/readstat.h [new file with mode: 0644]
proc/sig.h
proc/sysinfo.h
proc/version.h
proc/vmstat.c [new file with mode: 0644]
proc/vmstat.h [new file with mode: 0644]
proc/wchan.h
proc/whattime.h
vmstat.c