From 3a48427d5dfd71d48d05cdf5efdf114afb84ca5d Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 25 Apr 2016 00:00:00 -0500 Subject: [PATCH] library: rename those readstat.c & h sources to 'stat' In an attempt to normalize the 'stat' interface, we'll first shed any reminders of the old readproc interface by changing file names to be more descriptive & brief. Signed-off-by: Jim Warner --- Makefile.am | 4 ++-- proc/procps.h | 2 +- proc/{readstat.c => stat.c} | 2 +- proc/{readstat.h => stat.h} | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename proc/{readstat.c => stat.c} (99%) rename proc/{readstat.h => stat.h} (98%) diff --git a/Makefile.am b/Makefile.am index 07091a6a..7a02cc1e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -193,10 +193,10 @@ proc_libprocps_la_SOURCES = \ proc/pwcache.h \ proc/readproc.c \ proc/readproc.h \ - proc/readstat.c \ - proc/readstat.h \ proc/slab.c \ proc/slab.h \ + proc/stat.c \ + proc/stat.h \ proc/sysinfo.c \ proc/sysinfo.h \ proc/version.c \ diff --git a/proc/procps.h b/proc/procps.h index a94489ef..4319cdeb 100644 --- a/proc/procps.h +++ b/proc/procps.h @@ -23,8 +23,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/proc/readstat.c b/proc/stat.c similarity index 99% rename from proc/readstat.c rename to proc/stat.c index 46c1196f..07cf142b 100644 --- a/proc/readstat.c +++ b/proc/stat.c @@ -26,7 +26,7 @@ #include #include -#include +#include #include "procps-private.h" #define STAT_FILE "/proc/stat" diff --git a/proc/readstat.h b/proc/stat.h similarity index 98% rename from proc/readstat.h rename to proc/stat.h index 95f2412d..58fed3ab 100644 --- a/proc/readstat.h +++ b/proc/stat.h @@ -15,8 +15,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_READ_STAT_H -#define PROC_READ_STAT_H +#ifndef PROC_STAT_H +#define PROC_STAT_H #include