library: final tweaks to code and/or comments, 3rd gen
With the dust now settling on all those 3rd generation upgrades, this patch tries to provide some consistency among the separate modules involved. Someday we should consider a 4th generation where all redundant code has been removed and isolated in a new shared source file. Following is a summary of significant changes (if any) to each of these now upgraded 3rd gen library modules. <meminfo> ............................................ . strictly formatting/comment changes, code unaffected <pids> ............................................... . replaced a local mkSTR macro with existing STRINGIFY . added fetch narrative explaining duplicate addresses <slabinfo> ........................................... . rearranged some free logic for procps_slabinfo_unref . added fetch narrative explaining duplicate addresses <stat> ............................................... . added #define ENFORCE_LOGICAL, just as in <slabinfo> . replaced a local mkSTR macro with existing STRINGIFY . alphabetized the function declarations in the header <vmstat> ............................................. . made one coverity concession with read_vmstat_failed [ several of these changes may reflect this author's ] [ continuing pursuit of an unreasonable goal -- that ] [ of a 'perfect' (plus 'pretty') C language program! ] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
14
proc/stat.h
14
proc/stat.h
@@ -22,8 +22,8 @@
|
||||
__BEGIN_DECLS
|
||||
|
||||
enum stat_item {
|
||||
PROCPS_STAT_noop, // ( never altered )
|
||||
PROCPS_STAT_extra, // ( reset to zero )
|
||||
PROCPS_STAT_noop, // ( never altered )
|
||||
PROCPS_STAT_extra, // ( reset to zero )
|
||||
|
||||
PROCPS_STAT_TIC_ID, // s_int
|
||||
PROCPS_STAT_TIC_NUMA_NODE, // s_int
|
||||
@@ -111,17 +111,17 @@ signed long long procps_stat_get (
|
||||
struct procps_statinfo *info,
|
||||
enum stat_item item);
|
||||
|
||||
struct stat_stack *procps_stat_select (
|
||||
struct procps_statinfo *info,
|
||||
enum stat_item *items,
|
||||
int numitems);
|
||||
|
||||
struct stat_reaped *procps_stat_reap (
|
||||
struct procps_statinfo *info,
|
||||
enum stat_reap_type what,
|
||||
enum stat_item *items,
|
||||
int numitems);
|
||||
|
||||
struct stat_stack *procps_stat_select (
|
||||
struct procps_statinfo *info,
|
||||
enum stat_item *items,
|
||||
int numitems);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user