summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Small <csmall@enc.com.au>2011-12-26 09:11:27 +1100
committerCraig Small <csmall@enc.com.au>2011-12-26 09:11:27 +1100
commita99002e3feaefcec3a5cf975e4b13b74f2db2f03 (patch)
tree8dbe25e1d51f22f08c749dc0f739edd429037177
parent46e51c92e615afd18aa70bf35c64c2e659396b7a (diff)
parent2983b305235bb6ed5a22e0a397fce5078b2cb63c (diff)
downloadprocps-ng-a99002e3feaefcec3a5cf975e4b13b74f2db2f03.tar.gz
Merge branch 'master' into nls
Conflicts: configure.ac pmap.c ps/Makefile.am
-rw-r--r--.gitignore4
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
-rw-r--r--pmap.c4
-rw-r--r--proc/Makefile.am26
-rw-r--r--proc/libprocps.pc.in (renamed from proc/libprocfs.pc.in)4
-rw-r--r--proc/libprocps.sym (renamed from proc/libprocfs.sym)2
-rw-r--r--ps/Makefile.am2
-rw-r--r--top/Makefile.am2
9 files changed, 25 insertions, 23 deletions
diff --git a/.gitignore b/.gitignore
index d753b96..09d2345 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,8 +32,8 @@ pkill
pmap
procps-ng-*.tar.gz
proc/.depend
-proc/libprocfs.la
-proc/libprocfs.pc
+proc/libprocps.la
+proc/libprocps.pc
proc/Makefile
proc/Makefile.in
ps/Makefile
diff --git a/Makefile.am b/Makefile.am
index 185e0e5..8fb59cf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,7 @@ SUBDIRS = \
top
AM_CFLAGS = -Iproc
-AM_LDFLAGS = ./proc/libprocfs.la
+AM_LDFLAGS = ./proc/libprocps.la
sbin_PROGRAMS = \
sysctl
diff --git a/configure.ac b/configure.ac
index 51285dd..7c99fb3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -193,7 +193,7 @@ AC_CONFIG_FILES([
lib/Makefile
po/Makefile.in
proc/Makefile
- proc/libprocfs.pc
+ proc/libprocps.pc
ps/Makefile
testsuite/Makefile
top/Makefile
diff --git a/pmap.c b/pmap.c
index 116dc9c..998080e 100644
--- a/pmap.c
+++ b/pmap.c
@@ -160,6 +160,7 @@ static int one_proc(proc_t * p)
unsigned long total_shared = 0ul;
unsigned long total_private_readonly = 0ul;
unsigned long total_private_writeable = 0ul;
+ KLONG diff = 0;
char *cp2 = NULL;
unsigned long long rss = 0ull;
@@ -213,7 +214,7 @@ static int one_proc(proc_t * p)
char flags[32];
/* to clean up unprintables */
char *tmp;
- unsigned KLONG start, end, diff = 0;
+ unsigned KLONG start, end;
unsigned long long file_offset, inode;
unsigned dev_major, dev_minor;
unsigned long long smap_value;
@@ -253,6 +254,7 @@ static int one_proc(proc_t * p)
/* reset some counters */
rss = shared_dirty = private_dirty =
0ull;
+ diff = 0;
continue;
}
/* Other keys */
diff --git a/proc/Makefile.am b/proc/Makefile.am
index 633f8b9..f76d96c 100644
--- a/proc/Makefile.am
+++ b/proc/Makefile.am
@@ -1,27 +1,27 @@
PACKAGE_VERSION = @PACKAGE_VERSION@
AM_CPPFLAGS = -include $(top_builddir)/config.h
-LIBPROCFS_CURRENT=0
-LIBPROCFS_REVISION=0
-LIBPROCFS_AGE=0
+LIBprocps_CURRENT=0
+LIBprocps_REVISION=0
+LIBprocps_AGE=0
-lib_LTLIBRARIES = libprocfs.la
+lib_LTLIBRARIES = libprocps.la
-libprocfs_ladir = $(ladir)
-libprocfs_la_LIBADD = $(LIB_KPARTS)
-libprocfs_la_LDFLAGS = \
+libprocps_ladir = $(ladir)
+libprocps_la_LIBADD = $(LIB_KPARTS)
+libprocps_la_LDFLAGS = \
$(AM_LDFLAGS) \
$(all_libraries) \
- -version-info $(LIBPROCFS_CURRENT):$(LIBPROCFS_REVISION):$(LIBPROCFS_AGE) \
+ -version-info $(LIBprocps_CURRENT):$(LIBprocps_REVISION):$(LIBprocps_AGE) \
-no-undefined \
- -Wl,--version-script=$(top_srcdir)/proc/libprocfs.sym
+ -Wl,--version-script=$(top_srcdir)/proc/libprocps.sym
EXTRA_DIST = library.map
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libprocfs.pc
+pkgconfig_DATA = libprocps.pc
-libprocfs_la_SOURCES = \
+libprocps_la_SOURCES = \
alloc.c \
alloc.h \
devname.c \
@@ -46,8 +46,8 @@ libprocfs_la_SOURCES = \
whattime.c \
whattime.h
-libprocfs_la_includedir = $(includedir)/proc/
-libprocfs_la_include_HEADERS = \
+libprocps_la_includedir = $(includedir)/proc/
+libprocps_la_include_HEADERS = \
alloc.h \
devname.h \
escape.h \
diff --git a/proc/libprocfs.pc.in b/proc/libprocps.pc.in
index 0167c66..1f9c133 100644
--- a/proc/libprocfs.pc.in
+++ b/proc/libprocps.pc.in
@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-Name: libprocfs
+Name: libprocps
Description: Library to control and query process state
Version: @VERSION@
-Libs: -L${libdir} -lprocfs
+Libs: -L${libdir} -lprocps
Libs.private:
Cflags: -I${includedir}
diff --git a/proc/libprocfs.sym b/proc/libprocps.sym
index eed28b1..ec66312 100644
--- a/proc/libprocfs.sym
+++ b/proc/libprocps.sym
@@ -1,4 +1,4 @@
-LIBPROCFS_0 {
+LIBPROCPS_0 {
global:
Hertz;
__cyg_profile_func_enter;
diff --git a/ps/Makefile.am b/ps/Makefile.am
index 92815a3..8634fe2 100644
--- a/ps/Makefile.am
+++ b/ps/Makefile.am
@@ -1,7 +1,7 @@
AM_CPPFLAGS = -include $(top_builddir)/config.h
AM_CFLAGS = -I../proc -I../include
-AM_LDFLAGS = ../proc/libprocfs.la
+AM_LDFLAGS = ../proc/libprocps.la
dist_man_MANS = ps.1
diff --git a/top/Makefile.am b/top/Makefile.am
index 61ae5e9..714a04e 100644
--- a/top/Makefile.am
+++ b/top/Makefile.am
@@ -1,7 +1,7 @@
AM_CPPFLAGS = -include $(top_builddir)/config.h
AM_CFLAGS = -I../proc -I../include
-AM_LDFLAGS = ../proc/libprocfs.la
+AM_LDFLAGS = ../proc/libprocps.la
if WITH_NCURSES
usrbin_exec_PROGRAMS = \