]> granicus.if.org Git - procps-ng/commitdiff
library: rename the 'slab' sources as 'slabinfo' files
authorJim Warner <james.warner@comcast.net>
Sun, 5 Jun 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Thu, 9 Jun 2016 10:51:06 +0000 (20:51 +1000)
Where possible, libprocps files convey the name of the
actual source pseudo file under the '/proc' directory.

This patch brings slab into line with such a standard.

Signed-off-by: Jim Warner <james.warner@comcast.net>
Makefile.am
proc/procps.h
proc/slabinfo.c [moved from proc/slab.c with 99% similarity]
proc/slabinfo.h [moved from proc/slab.h with 98% similarity]

index 7a02cc1e0f8992782c4e0262f2454176c83401b1..52d4fbaadbf9bf060475e43dbbdecd24ca9f9dae 100644 (file)
@@ -193,8 +193,8 @@ proc_libprocps_la_SOURCES = \
        proc/pwcache.h \
        proc/readproc.c \
        proc/readproc.h \
-       proc/slab.c \
-       proc/slab.h \
+       proc/slabinfo.c \
+       proc/slabinfo.h \
        proc/stat.c \
        proc/stat.h \
        proc/sysinfo.c \
@@ -218,7 +218,7 @@ proc_libprocps_la_include_HEADERS = \
        proc/procps.h \
        proc/pwcache.h \
        proc/readproc.h \
-       proc/slab.h \
+       proc/slabinfo.h \
        proc/sysinfo.h \
        proc/uptime.h \
        proc/version.h \
index 4319cdeb62f9041d5248842a27c192061b7f3157..e46e044544145c3aa330e69e3a1bb1f1cec42c15 100644 (file)
@@ -23,7 +23,7 @@
 #include <proc/meminfo.h>
 #include <proc/namespace.h>
 #include <proc/pids.h>
-#include <proc/slab.h>
+#include <proc/slabinfo.h>
 #include <proc/stat.h>
 #include <proc/sysinfo.h>
 #include <proc/version.h>
similarity index 99%
rename from proc/slab.c
rename to proc/slabinfo.c
index b72fcb5d595302542e39b230b2d441a0c76327f1..805b9145b096fc219c035186df5611a4622e5f72 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * slab.c - slab related functions for libproc
+ * slabinfo.c - slab related functions for libproc
  *
  * Chris Rivera <cmrivera@ufl.edu>
  * Robert Love <rml@tech9.net>
@@ -35,7 +35,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 
-#include <proc/slab.h>
+#include <proc/slabinfo.h>
 #include "procps-private.h"
 
 #define SLABINFO_FILE        "/proc/slabinfo"
similarity index 98%
rename from proc/slab.h
rename to proc/slabinfo.h
index 0aed7f44fdd92c10094789346a34e76c726380ba..c6b726a61ac2e26ce45f495bd9e66d95c601cfee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * slab.h - slab related functions for libproc
+ * slabinfo.h - slab related functions for libproc
  *
  * Copyright (C) 1998-2005 Albert Cahalan
  * Copyright (C) 2015 Craig Small <csmall@enc.com.au>