From 5be4167782d9d8565d4205086d3e070b6515aa7e Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sun, 5 Jun 2016 00:00:00 -0500 Subject: [PATCH] library: rename the 'slab' sources as 'slabinfo' files 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 --- Makefile.am | 6 +++--- proc/procps.h | 2 +- proc/{slab.c => slabinfo.c} | 4 ++-- proc/{slab.h => slabinfo.h} | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename proc/{slab.c => slabinfo.c} (99%) rename proc/{slab.h => slabinfo.h} (98%) diff --git a/Makefile.am b/Makefile.am index 7a02cc1e..52d4fbaa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/proc/procps.h b/proc/procps.h index 4319cdeb..e46e0445 100644 --- a/proc/procps.h +++ b/proc/procps.h @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/proc/slab.c b/proc/slabinfo.c similarity index 99% rename from proc/slab.c rename to proc/slabinfo.c index b72fcb5d..805b9145 100644 --- a/proc/slab.c +++ b/proc/slabinfo.c @@ -1,5 +1,5 @@ /* - * slab.c - slab related functions for libproc + * slabinfo.c - slab related functions for libproc * * Chris Rivera * Robert Love @@ -35,7 +35,7 @@ #include #include -#include +#include #include "procps-private.h" #define SLABINFO_FILE "/proc/slabinfo" diff --git a/proc/slab.h b/proc/slabinfo.h similarity index 98% rename from proc/slab.h rename to proc/slabinfo.h index 0aed7f44..c6b726a6 100644 --- a/proc/slab.h +++ b/proc/slabinfo.h @@ -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