]> granicus.if.org Git - procps-ng/commitdiff
library: strictly cosmetic, absolutely no code changes
authorJim Warner <james.warner@comcast.net>
Wed, 28 Sep 2016 15:10:10 +0000 (10:10 -0500)
committerCraig Small <csmall@enc.com.au>
Sun, 9 Oct 2016 10:31:29 +0000 (21:31 +1100)
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>
proc/diskstats.c
proc/diskstats.h
proc/meminfo.h
proc/pids.c
proc/pids.h
proc/slabinfo.h
proc/stat.c
proc/stat.h
proc/vmstat.c
proc/vmstat.h

index 9eb5b03eff25fdeacc26d1d12d597187c54f5ec1..2aafa3d4d5d75cd49f45fc2cd95033af49ebfa0a 100644 (file)
@@ -253,7 +253,7 @@ static struct {
   { RS(DISKSTATS_DELTA_IO_WTIME),       QS(s_int),   TS(s_int)  },
 
  // dummy entry corresponding to DISKSTATS_logical_end ...
-  { NULL,                               NULL,        NULL      }
+  { NULL,                               NULL,        NULL       }
 };
 
     /* please note,
index 4d8683f9deff85449570b44991e45f7e34a0e323..83b8c479dc4e48c78871b1736b2786385d935fd4 100644 (file)
@@ -20,8 +20,8 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
-#ifndef PROC_DISKSTATS_H
-#define PROC_DISKSTATS_H
+#ifndef PROCPS_DISKSTATS_H
+#define PROCPS_DISKSTATS_H
 
 #include <sys/cdefs.h>
 
index e19b2e353aee19215cdf80e8909f53cfa1d736a0..f1cffd1fc1ea667b2315899b214b87a68e72e9f8 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef PROC_MEMINFO_H
-#define PROC_MEMINFO_H
+#ifndef PROCPS_MEMINFO_H
+#define PROCPS_MEMINFO_H
 
 #include <sys/cdefs.h>
 
@@ -27,7 +27,7 @@ enum meminfo_item {
     MEMINFO_noop,                  //        ( never altered )
     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_ANON,       //  ul_int
@@ -165,5 +165,4 @@ struct meminfo_stack *procps_meminfo_select (
     int numitems);
 
 __END_DECLS
-
 #endif
index 4ba9d81f49a47fb129eca9b201cd9f4b6896cb22..2ba5539007e2ebc3451a366eca55c0adbc4567ae 100644 (file)
 #include <proc/pids.h>
 
 
-//#define UNREF_RPTHASH                  // report hash details at uref() time
+//#define UNREF_RPTHASH                // report hash details at uref() time
 
-#define FILL_ID_MAX  255                 // upper limit with select of pid/uid
-#define STACKS_INCR  128                 // amount reap stack allocations grow
-#define NEWOLD_INCR  128                 // amt by which hist allocations grow
+#define FILL_ID_MAX  255               // upper limit with select of pid/uid
+#define STACKS_INCR  128               // amount reap stack allocations grow
+#define NEWOLD_INCR  128               // amt by which hist allocations grow
 
 
 struct stacks_extent {
@@ -339,7 +339,6 @@ srtDECL(noop) {
 
 // ___ Controlling Table ||||||||||||||||||||||||||||||||||||||||||||||||||||||
 
-   // from either 'stat' or 'status' (preferred)
 #define f_either   PROC_SPARE_1        // either status or stat (favor stat)
 #define f_grp      PROC_FILLGRP
 #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_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(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(CGROUP),            x_cgroup,   FF(str),   QS(str),       0,        TS(str)     },
     { 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_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_DT_PGS),        f_statm,    NULL,      QS(ul_int),    0,        TS(ul_int)  },  // ( always 0 w/ since 2.6 )
-    { RS(MEM_LRS_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 since linux 2.6 )
+    { 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_PGS),       f_statm,    NULL,      QS(ul_int),    0,        TS(ul_int)  },
     { RS(MEM_SHR),           f_statm,    NULL,      QS(ul_int),    0,        TS(ul_int)  },
index 20af3e00a944808af0c02a9a4d20c240dab619c3..92669f9412d211c70b953e868306d148cccfe207 100644 (file)
@@ -20,8 +20,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef PROC_PIDS_H
-#define PROC_PIDS_H
+#ifndef PROCPS_PIDS_H
+#define PROCPS_PIDS_H
 
 #include <sys/cdefs.h>
 
@@ -236,4 +236,4 @@ struct pids_stack **procps_pids_sort (
     enum pids_sort_order order);
 
 __END_DECLS
-#endif /* _PROC_PIDS_H */
+#endif
index c19fd5d1624720529fdc28296d04a0f1ca53c779..e0c549e990979d68913dbf353c383a7655820dd9 100644 (file)
@@ -20,8 +20,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef PROC_SLAB_H
-#define PROC_SLAB_H
+#ifndef PROCPS_SLABINFO_H
+#define PROCPS_SLABINFO_H
 
 #include <sys/cdefs.h>
 
@@ -131,4 +131,4 @@ struct slabinfo_stack **procps_slabinfo_sort (
     enum slabinfo_sort_order order);
 
 __END_DECLS
-#endif /* _PROC_SLAB_H */
+#endif
index 18d44db58c2e63ebcc98823e6479eed8d2b0ff46..4d0989a529d3a4f05a273d5b5bacb0a4339cdf0b 100644 (file)
@@ -1045,7 +1045,7 @@ PROCPS_EXPORT struct stat_reaped *procps_stat_reap (
             break;
         case STAT_REAP_CPUS_AND_NODES:
 #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 |
                will have marked (temporarily) all the cpu node ids as invalid | */
             if (0 > stat_make_numa_hist(info))
index 9dfad108604c7e83b315b3d9d0e3bae1560b0fa6..e89c64ddf94fc8692ac69e1d5aae8031e3e87caf 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef PROC_STAT_H
-#define PROC_STAT_H
+#ifndef PROCPS_STAT_H
+#define PROCPS_STAT_H
 
 #include <sys/cdefs.h>
 
@@ -142,5 +142,4 @@ struct stat_stack **procps_stat_sort (
     enum stat_sort_order order);
 
 __END_DECLS
-
 #endif
index 71b374b58f1fed728bbb975fa485bf4ff27018dd..5cd49c3d4e045ec717f945ae8e0d267f1072cbec 100644 (file)
@@ -710,7 +710,7 @@ static struct {
   { RS(DELTA_ZONE_RECLAIM_FAILED),            TS(sl_int) },
 
  // dummy entry corresponding to VMSTAT_logical_end ...
-  { NULL,                                     NULL        }
+  { NULL,                                     NULL       }
 };
 
     /* please note,
index 1f67bfefea5931ca1d58bcd32388bdb7623d8286..98e0cc6966fd64067eee0096ce26bbfad894a65a 100644 (file)
@@ -21,8 +21,8 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
-#ifndef PROC_VMSTAT_H
-#define PROC_VMSTAT_H
+#ifndef PROCPS_VMSTAT_H
+#define PROCPS_VMSTAT_H
 
 #include <sys/cdefs.h>