library: strictly cosmetic, absolutely no code changes

This commit just contains some tweaks to comments plus
a few adjustments to whitespace for alignment purposes
and a normalization of the header inclusion #define's.

[ plus a spelling error in one header file was fixed ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2016-09-28 10:10:10 -05:00 committed by Craig Small
parent 9d1f6cb4ea
commit 82a0dcda0f
10 changed files with 25 additions and 28 deletions

View File

@ -20,8 +20,8 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef PROC_DISKSTATS_H #ifndef PROCPS_DISKSTATS_H
#define PROC_DISKSTATS_H #define PROCPS_DISKSTATS_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef PROC_MEMINFO_H #ifndef PROCPS_MEMINFO_H
#define PROC_MEMINFO_H #define PROCPS_MEMINFO_H
#include <sys/cdefs.h> #include <sys/cdefs.h>
@ -27,7 +27,7 @@ enum meminfo_item {
MEMINFO_noop, // ( never altered ) MEMINFO_noop, // ( never altered )
MEMINFO_extra, // ( reset to zero ) MEMINFO_extra, // ( reset to zero )
/* /*
note: all of the following values are exressed as KiB note: all of the following values are expressed as KiB
*/ */
MEMINFO_MEM_ACTIVE, // ul_int MEMINFO_MEM_ACTIVE, // ul_int
MEMINFO_MEM_ACTIVE_ANON, // ul_int MEMINFO_MEM_ACTIVE_ANON, // ul_int
@ -165,5 +165,4 @@ struct meminfo_stack *procps_meminfo_select (
int numitems); int numitems);
__END_DECLS __END_DECLS
#endif #endif

View File

@ -339,7 +339,6 @@ srtDECL(noop) {
// ___ Controlling Table |||||||||||||||||||||||||||||||||||||||||||||||||||||| // ___ Controlling Table ||||||||||||||||||||||||||||||||||||||||||||||||||||||
// from either 'stat' or 'status' (preferred)
#define f_either PROC_SPARE_1 // either status or stat (favor stat) #define f_either PROC_SPARE_1 // either status or stat (favor stat)
#define f_grp PROC_FILLGRP #define f_grp PROC_FILLGRP
#define f_lxc PROC_FILL_LXC #define f_lxc PROC_FILL_LXC
@ -395,7 +394,7 @@ static struct {
{ RS(ADDR_KSTK_ESP), f_stat, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(ADDR_KSTK_ESP), f_stat, NULL, QS(ul_int), 0, TS(ul_int) },
{ RS(ADDR_START_CODE), f_stat, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(ADDR_START_CODE), f_stat, NULL, QS(ul_int), 0, TS(ul_int) },
{ RS(ADDR_START_STACK), f_stat, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(ADDR_START_STACK), f_stat, NULL, QS(ul_int), 0, TS(ul_int) },
{ RS(ALARM), f_stat, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(ALARM), f_stat, NULL, QS(ul_int), 0, TS(ul_int) }, // ( obsolete, always zero )
{ RS(CGNAME), x_cgroup, FF(str), QS(str), 0, TS(str) }, { RS(CGNAME), x_cgroup, FF(str), QS(str), 0, TS(str) },
{ RS(CGROUP), x_cgroup, FF(str), QS(str), 0, TS(str) }, { RS(CGROUP), x_cgroup, FF(str), QS(str), 0, TS(str) },
{ RS(CGROUP_V), v_cgroup, FF(strv), QS(strv), 0, TS(strv) }, { RS(CGROUP_V), v_cgroup, FF(strv), QS(strv), 0, TS(strv) },
@ -439,8 +438,8 @@ static struct {
{ RS(MEM_CODE_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(MEM_CODE_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) },
{ RS(MEM_DATA), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(MEM_DATA), f_statm, NULL, QS(ul_int), 0, TS(ul_int) },
{ RS(MEM_DATA_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(MEM_DATA_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) },
{ RS(MEM_DT_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, // ( always 0 w/ since 2.6 ) { RS(MEM_DT_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, // ( always 0 since linux 2.6 )
{ RS(MEM_LRS_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(MEM_LRS_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, // ( always 0 since linux 2.6 )
{ RS(MEM_RES), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(MEM_RES), f_statm, NULL, QS(ul_int), 0, TS(ul_int) },
{ RS(MEM_RES_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(MEM_RES_PGS), f_statm, NULL, QS(ul_int), 0, TS(ul_int) },
{ RS(MEM_SHR), f_statm, NULL, QS(ul_int), 0, TS(ul_int) }, { RS(MEM_SHR), f_statm, NULL, QS(ul_int), 0, TS(ul_int) },

View File

@ -20,8 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef PROC_PIDS_H #ifndef PROCPS_PIDS_H
#define PROC_PIDS_H #define PROCPS_PIDS_H
#include <sys/cdefs.h> #include <sys/cdefs.h>
@ -236,4 +236,4 @@ struct pids_stack **procps_pids_sort (
enum pids_sort_order order); enum pids_sort_order order);
__END_DECLS __END_DECLS
#endif /* _PROC_PIDS_H */ #endif

View File

@ -20,8 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef PROC_SLAB_H #ifndef PROCPS_SLABINFO_H
#define PROC_SLAB_H #define PROCPS_SLABINFO_H
#include <sys/cdefs.h> #include <sys/cdefs.h>
@ -131,4 +131,4 @@ struct slabinfo_stack **procps_slabinfo_sort (
enum slabinfo_sort_order order); enum slabinfo_sort_order order);
__END_DECLS __END_DECLS
#endif /* _PROC_SLAB_H */ #endif

View File

@ -1045,7 +1045,7 @@ PROCPS_EXPORT struct stat_reaped *procps_stat_reap (
break; break;
case STAT_REAP_CPUS_AND_NODES: case STAT_REAP_CPUS_AND_NODES:
#ifndef NUMA_DISABLE #ifndef NUMA_DISABLE
/* note: if we are doing numa at all, we must call stat_make_numa_hist | /* note: if we're doing numa at all, we must do this numa history |
before we build (fetch) the cpu stacks since the read_stat guy | before we build (fetch) the cpu stacks since the read_stat guy |
will have marked (temporarily) all the cpu node ids as invalid | */ will have marked (temporarily) all the cpu node ids as invalid | */
if (0 > stat_make_numa_hist(info)) if (0 > stat_make_numa_hist(info))

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef PROC_STAT_H #ifndef PROCPS_STAT_H
#define PROC_STAT_H #define PROCPS_STAT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>
@ -142,5 +142,4 @@ struct stat_stack **procps_stat_sort (
enum stat_sort_order order); enum stat_sort_order order);
__END_DECLS __END_DECLS
#endif #endif

View File

@ -21,8 +21,8 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef PROC_VMSTAT_H #ifndef PROCPS_VMSTAT_H
#define PROC_VMSTAT_H #define PROCPS_VMSTAT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>