]> granicus.if.org Git - procps-ng/commit
library: standardize all the 'context' structure names
authorJim Warner <james.warner@comcast.net>
Thu, 21 Jul 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Tue, 26 Jul 2016 10:47:34 +0000 (20:47 +1000)
commit82d5661603968aece2a7a8ee6a2e3ba8cd59676d
tree29e4ba5317147ace54dfa0461f6157a8f17e1acb
parent69557ac9dcfb2f728414e4f94c83a8eda3cec67d
library: standardize all the 'context' structure names

This patch attempts to standardize the naming of those
most important (declared not defined) context structs.

The present practice represents a hodge podge of names
only some of which reflect the source /proc file name.
And 2 of those file names embed a literal 'info' which
is likely the origin of that required parm identifier.

Now we'll append a universal '_info' to such structure
names, while including the names of those /proc pseudo
files where possible. In any case, that context struct
will *always* begin with the actual module/header file
name. And only the following two sound a little weird!

---------> 'meminfo_info' + 'slabinfo_info' <---------

Signed-off-by: Jim Warner <james.warner@comcast.net>
12 files changed:
proc/diskstats.c
proc/diskstats.h
proc/meminfo.c
proc/meminfo.h
proc/pids.c
proc/pids.h
proc/slabinfo.c
proc/slabinfo.h
proc/stat.c
proc/stat.h
proc/vmstat.c
proc/vmstat.h