]> granicus.if.org Git - procps-ng/commitdiff
library: rename those readstat.c & h sources to 'stat'
authorJim Warner <james.warner@comcast.net>
Mon, 25 Apr 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Tue, 26 Apr 2016 12:27:16 +0000 (22:27 +1000)
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 <james.warner@comcast.net>
Makefile.am
proc/procps.h
proc/stat.c [moved from proc/readstat.c with 99% similarity]
proc/stat.h [moved from proc/readstat.h with 98% similarity]

index 07091a6aa13229fec91e762f79e52e282ce66ce9..7a02cc1e0f8992782c4e0262f2454176c83401b1 100644 (file)
@@ -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 \
index a94489efde2ab6d66334eacad61d570bc1eda288..4319cdeb62f9041d5248842a27c192061b7f3157 100644 (file)
@@ -23,8 +23,8 @@
 #include <proc/meminfo.h>
 #include <proc/namespace.h>
 #include <proc/pids.h>
-#include <proc/readstat.h>
 #include <proc/slab.h>
+#include <proc/stat.h>
 #include <proc/sysinfo.h>
 #include <proc/version.h>
 #include <proc/vmstat.h>
similarity index 99%
rename from proc/readstat.c
rename to proc/stat.c
index 46c1196f398d8d1eba3af1bb656165da408cb942..07cf142b81d11e9bbd4314ba59d94de5c0ac6488 100644 (file)
@@ -26,7 +26,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 
-#include <proc/readstat.h>
+#include <proc/stat.h>
 #include "procps-private.h"
 
 #define STAT_FILE "/proc/stat"
similarity index 98%
rename from proc/readstat.h
rename to proc/stat.h
index 95f2412dd15083d65bffee0461e37f0cd0a46a33..58fed3ab22c49be3fa776662cc25bcdd2c5438f2 100644 (file)
@@ -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 <proc/procps.h>