build-sys: Relocate library to library/
All the dependent programs needed to have their includes moved too Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
1 parent
406b6d311c
commit
3d0871728b
55 files changed
+137
-137
No files matched your search
+78
-78
@@ -24,11 +24,11 @@ SUBDIRS = \
|
|||||||
po \
|
po \
|
||||||
testsuite
|
testsuite
|
||||||
|
|
||||||
AM_CFLAGS = -Iproc
|
AM_CFLAGS = -Ilibrary/include
|
||||||
LDADD = ./proc/libproc-2.la $(CYGWINFLAGS)
|
LDADD = ./library/libproc-2.la $(CYGWINFLAGS)
|
||||||
|
|
||||||
if CYGWIN
|
if CYGWIN
|
||||||
AM_LDFLAGS += ./proc/libproc-2.la $(CYGWINFLAGS)
|
AM_LDFLAGS += ./library/libproc-2.la $(CYGWINFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
transform =
|
transform =
|
||||||
@@ -67,7 +67,7 @@ usrbin_exec_PROGRAMS += \
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
lib_LTLIBRARIES = \
|
lib_LTLIBRARIES = \
|
||||||
proc/libproc-2.la
|
library/libproc-2.la
|
||||||
|
|
||||||
dist_man_MANS = \
|
dist_man_MANS = \
|
||||||
man/free.1 \
|
man/free.1 \
|
||||||
@@ -239,70 +239,70 @@ LIBproc_2_CURRENT=0
|
|||||||
LIBproc_2_REVISION=0
|
LIBproc_2_REVISION=0
|
||||||
LIBproc_2_AGE=0
|
LIBproc_2_AGE=0
|
||||||
|
|
||||||
proc_libproc_2_la_LIBADD = $(LIB_KPARTS)
|
library_libproc_2_la_LIBADD = $(LIB_KPARTS)
|
||||||
|
|
||||||
if WITH_SYSTEMD
|
if WITH_SYSTEMD
|
||||||
proc_libproc_2_la_LIBADD += @SYSTEMD_LIBS@
|
library_libproc_2_la_LIBADD += @SYSTEMD_LIBS@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if WITH_ELOGIND
|
if WITH_ELOGIND
|
||||||
proc_libproc_2_la_LIBADD += @ELOGIND_LIBS@
|
library_libproc_2_la_LIBADD += @ELOGIND_LIBS@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
proc_libproc_2_la_LDFLAGS = \
|
library_libproc_2_la_LDFLAGS = \
|
||||||
-version-info $(LIBproc_2_CURRENT):$(LIBproc_2_REVISION):$(LIBproc_2_AGE) \
|
-version-info $(LIBproc_2_CURRENT):$(LIBproc_2_REVISION):$(LIBproc_2_AGE) \
|
||||||
-no-undefined \
|
-no-undefined \
|
||||||
-Wl,--version-script=$(top_srcdir)/proc/libproc-2.sym
|
-Wl,--version-script=$(top_srcdir)/library/libproc-2.sym
|
||||||
|
|
||||||
proc_libproc_2_la_SOURCES = \
|
library_libproc_2_la_SOURCES = \
|
||||||
proc/devname.c \
|
library/devname.c \
|
||||||
proc/devname.h \
|
library/include/devname.h \
|
||||||
proc/diskstats.c \
|
library/diskstats.c \
|
||||||
proc/diskstats.h \
|
library/include/diskstats.h \
|
||||||
proc/escape.c \
|
library/escape.c \
|
||||||
proc/escape.h \
|
library/include/escape.h \
|
||||||
proc/procps-private.h \
|
library/include/procps-private.h \
|
||||||
proc/meminfo.c \
|
library/meminfo.c \
|
||||||
proc/meminfo.h \
|
library/include/meminfo.h \
|
||||||
proc/misc.h \
|
library/include/misc.h \
|
||||||
proc/namespace.c \
|
library/namespace.c \
|
||||||
proc/numa.c \
|
library/numa.c \
|
||||||
proc/numa.h \
|
library/include/numa.h \
|
||||||
proc/pids.c \
|
library/pids.c \
|
||||||
proc/pids.h \
|
library/include/pids.h \
|
||||||
proc/pwcache.c \
|
library/pwcache.c \
|
||||||
proc/pwcache.h \
|
library/include/pwcache.h \
|
||||||
proc/readproc.c \
|
library/readproc.c \
|
||||||
proc/readproc.h \
|
library/include/readproc.h \
|
||||||
proc/slabinfo.c \
|
library/slabinfo.c \
|
||||||
proc/slabinfo.h \
|
library/include/slabinfo.h \
|
||||||
proc/stat.c \
|
library/stat.c \
|
||||||
proc/stat.h \
|
library/include/stat.h \
|
||||||
proc/sysinfo.c \
|
library/sysinfo.c \
|
||||||
proc/version.c \
|
library/version.c \
|
||||||
proc/vmstat.c \
|
library/vmstat.c \
|
||||||
proc/vmstat.h \
|
library/include/vmstat.h \
|
||||||
proc/wchan.c \
|
library/wchan.c \
|
||||||
proc/wchan.h \
|
library/include/wchan.h \
|
||||||
proc/uptime.c \
|
library/uptime.c \
|
||||||
proc/xtra-procps-debug.h
|
library/include/xtra-procps-debug.h
|
||||||
|
|
||||||
proc_libproc_2_la_includedir = $(includedir)/procps/
|
library_libproc_2_la_includedir = $(includedir)/procps/
|
||||||
proc_libproc_2_la_include_HEADERS = \
|
library_libproc_2_la_include_HEADERS = \
|
||||||
proc/diskstats.h \
|
library/include/diskstats.h \
|
||||||
proc/meminfo.h \
|
library/include/meminfo.h \
|
||||||
proc/misc.h \
|
library/include/misc.h \
|
||||||
proc/pids.h \
|
library/include/pids.h \
|
||||||
proc/slabinfo.h \
|
library/include/slabinfo.h \
|
||||||
proc/stat.h \
|
library/include/stat.h \
|
||||||
proc/vmstat.h \
|
library/include/vmstat.h \
|
||||||
proc/xtra-procps-debug.h
|
library/include/xtra-procps-debug.h
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = \
|
pkgconfig_DATA = \
|
||||||
proc/libproc-2.pc
|
library/libproc-2.pc
|
||||||
|
|
||||||
EXTRA_DIST += proc/libproc-2.sym
|
EXTRA_DIST += library/libproc-2.sym
|
||||||
|
|
||||||
# ps/pscommand
|
# ps/pscommand
|
||||||
|
|
||||||
@@ -340,25 +340,25 @@ lib_test_shm_SOURCES = lib/test_shm.c lib/strutils.c
|
|||||||
lib_test_shm_LDADD = $(CYGWINFLAGS)
|
lib_test_shm_LDADD = $(CYGWINFLAGS)
|
||||||
|
|
||||||
check_PROGRAMS += \
|
check_PROGRAMS += \
|
||||||
proc/test_Itemtables \
|
library/tests/test_Itemtables \
|
||||||
proc/test_pids \
|
library/tests/test_pids \
|
||||||
proc/test_uptime \
|
library/tests/test_uptime \
|
||||||
proc/test_sysinfo \
|
library/tests/test_sysinfo \
|
||||||
proc/test_version \
|
library/tests/test_version \
|
||||||
proc/test_namespace
|
library/tests/test_namespace
|
||||||
|
|
||||||
proc_test_Itemtables_SOURCES = proc/test_Itemtables.c
|
library_tests_test_Itemtables_SOURCES = library/tests/test_Itemtables.c
|
||||||
proc_test_Itemtables_LDADD = proc/libproc-2.la
|
library_tests_test_Itemtables_LDADD = library/libproc-2.la
|
||||||
proc_test_pids_SOURCES = proc/test_pids.c
|
library_tests_test_pids_SOURCES = library/tests/test_pids.c
|
||||||
proc_test_pids_LDADD = proc/libproc-2.la
|
library_tests_test_pids_LDADD = library/libproc-2.la
|
||||||
proc_test_uptime_SOURCES = proc/test_uptime.c
|
library_tests_test_uptime_SOURCES = library/tests/test_uptime.c
|
||||||
proc_test_uptime_LDADD = proc/libproc-2.la
|
library_tests_test_uptime_LDADD = library/libproc-2.la
|
||||||
proc_test_sysinfo_SOURCES = proc/test_sysinfo.c
|
library_tests_test_sysinfo_SOURCES = library/tests/test_sysinfo.c
|
||||||
proc_test_sysinfo_LDADD = proc/libproc-2.la
|
library_tests_test_sysinfo_LDADD = library/libproc-2.la
|
||||||
proc_test_version_SOURCES = proc/test_version.c
|
library_tests_test_version_SOURCES = library/tests/test_version.c
|
||||||
proc_test_version_LDADD = proc/libproc-2.la
|
library_tests_test_version_LDADD = library/libproc-2.la
|
||||||
proc_test_namespace_SOURCES = proc/test_namespace.c
|
library_tests_test_namespace_SOURCES = library/tests/test_namespace.c
|
||||||
proc_test_namespace_LDADD = proc/libproc-2.la
|
library_tests_test_namespace_LDADD = library/libproc-2.la
|
||||||
|
|
||||||
if CYGWIN
|
if CYGWIN
|
||||||
src_skill_LDADD = $(CYGWINFLAGS)
|
src_skill_LDADD = $(CYGWINFLAGS)
|
||||||
@@ -384,17 +384,17 @@ endif
|
|||||||
BUILT_SOURCES = $(top_srcdir)/.version
|
BUILT_SOURCES = $(top_srcdir)/.version
|
||||||
|
|
||||||
check-lib: clean
|
check-lib: clean
|
||||||
$(MAKE) CFLAGS=-DITEMTABLE_DEBUG proc/test_Itemtables
|
$(MAKE) CFLAGS=-DITEMTABLE_DEBUG library/test_Itemtables
|
||||||
$(top_builddir)/proc/test_Itemtables
|
$(top_builddir)/library/test_Itemtables
|
||||||
$(MAKE) clean &>/dev/null
|
$(MAKE) clean &>/dev/null
|
||||||
|
|
||||||
# Test programs not used by dejagnu but run directly
|
# Test programs not used by dejagnu but run directly
|
||||||
TESTS = \
|
TESTS = \
|
||||||
proc/test_pids \
|
library/tests/test_pids \
|
||||||
proc/test_uptime \
|
library/tests/test_uptime \
|
||||||
proc/test_sysinfo \
|
library/tests/test_sysinfo \
|
||||||
proc/test_version \
|
library/tests/test_version \
|
||||||
proc/test_namespace \
|
library/tests/test_namespace \
|
||||||
lib/test_fileutils \
|
lib/test_fileutils \
|
||||||
lib/test_strtod_nol
|
lib/test_strtod_nol
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -395,6 +395,6 @@ AC_CONFIG_FILES([Makefile
|
|||||||
include/Makefile
|
include/Makefile
|
||||||
po-man/Makefile
|
po-man/Makefile
|
||||||
po/Makefile.in
|
po/Makefile.in
|
||||||
proc/libproc-2.pc
|
library/libproc-2.pc
|
||||||
testsuite/Makefile])
|
testsuite/Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -33,8 +33,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <proc/procps-private.h>
|
#include "procps-private.h"
|
||||||
#include <proc/diskstats.h>
|
#include "diskstats.h"
|
||||||
|
|
||||||
/* The following define will cause the 'node_add' function to maintain our |
|
/* The following define will cause the 'node_add' function to maintain our |
|
||||||
nodes list in ascending alphabetical order which could be used to avoid |
|
nodes list in ascending alphabetical order which could be used to avoid |
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -13,7 +13,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
|
|
||||||
// the following is development only, forcing display of "[ duplicate ENUM ]" strings
|
// the following is development only, forcing display of "[ duplicate ENUM ]" strings
|
||||||
// #define FALSE_THREADS /* set most child string fields to NULL */
|
// #define FALSE_THREADS /* set most child string fields to NULL */
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -31,8 +31,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <proc/procps-private.h>
|
#include "procps-private.h"
|
||||||
#include <proc/meminfo.h>
|
#include "meminfo.h"
|
||||||
|
|
||||||
|
|
||||||
#define MEMINFO_FILE "/proc/meminfo"
|
#define MEMINFO_FILE "/proc/meminfo"
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include "proc/procps-private.h"
|
#include "procps-private.h"
|
||||||
|
|
||||||
#define NSPATHLEN 64
|
#define NSPATHLEN 64
|
||||||
|
|
||||||
File renamed without changes.
@@ -35,14 +35,14 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <proc/devname.h>
|
#include "devname.h"
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include <proc/numa.h>
|
#include "numa.h"
|
||||||
#include <proc/readproc.h>
|
#include "readproc.h"
|
||||||
#include <proc/wchan.h>
|
#include "wchan.h"
|
||||||
|
|
||||||
#include <proc/procps-private.h>
|
#include "procps-private.h"
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
|
|
||||||
|
|
||||||
//#define UNREF_RPTHASH // report hash details at uref() time
|
//#define UNREF_RPTHASH // report hash details at uref() time
|
||||||
File renamed without changes.
File renamed without changes.
@@ -34,8 +34,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <proc/procps-private.h>
|
#include "procps-private.h"
|
||||||
#include <proc/slabinfo.h>
|
#include "slabinfo.h"
|
||||||
|
|
||||||
|
|
||||||
#define SLABINFO_FILE "/proc/slabinfo"
|
#define SLABINFO_FILE "/proc/slabinfo"
|
||||||
@@ -30,10 +30,10 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <proc/numa.h>
|
#include "numa.h"
|
||||||
|
|
||||||
#include <proc/procps-private.h>
|
#include "procps-private.h"
|
||||||
#include <proc/stat.h>
|
#include "stat.h"
|
||||||
|
|
||||||
|
|
||||||
#define STAT_FILE "/proc/stat"
|
#define STAT_FILE "/proc/stat"
|
||||||
File renamed without changes.
@@ -19,12 +19,12 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <proc/diskstats.h>
|
#include "diskstats.h"
|
||||||
#include <proc/meminfo.h>
|
#include "meminfo.h"
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
#include <proc/slabinfo.h>
|
#include "slabinfo.h"
|
||||||
#include <proc/stat.h>
|
#include "stat.h"
|
||||||
#include <proc/vmstat.h>
|
#include "vmstat.h"
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
int check_name_minus(void *data)
|
int check_name_minus(void *data)
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
enum pids_item items[] = { PIDS_ID_PID, PIDS_ID_PID };
|
enum pids_item items[] = { PIDS_ID_PID, PIDS_ID_PID };
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
int check_hertz(void *data)
|
int check_hertz(void *data)
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
int check_uptime(void *data)
|
int check_uptime(void *data)
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
int check_linux_version(void *data)
|
int check_linux_version(void *data)
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utmp.h>
|
#include <utmp.h>
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include "procps-private.h"
|
#include "procps-private.h"
|
||||||
|
|
||||||
#define UPTIME_FILE "/proc/uptime"
|
#define UPTIME_FILE "/proc/uptime"
|
||||||
File renamed without changes.
@@ -34,8 +34,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <proc/procps-private.h>
|
#include "procps-private.h"
|
||||||
#include <proc/vmstat.h>
|
#include "vmstat.h"
|
||||||
|
|
||||||
|
|
||||||
#define VMSTAT_FILE "/proc/vmstat"
|
#define VMSTAT_FILE "/proc/vmstat"
|
||||||
File renamed without changes.
+1
-1
@@ -42,7 +42,7 @@
|
|||||||
#include "strutils.h"
|
#include "strutils.h"
|
||||||
#include "fileutils.h"
|
#include "fileutils.h"
|
||||||
|
|
||||||
#include <proc/meminfo.h>
|
#include "meminfo.h"
|
||||||
|
|
||||||
#ifndef SIZE_MAX
|
#ifndef SIZE_MAX
|
||||||
#define SIZE_MAX 32
|
#define SIZE_MAX 32
|
||||||
|
|||||||
+2
-2
@@ -55,8 +55,8 @@
|
|||||||
#include "signals.h"
|
#include "signals.h"
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
|
|
||||||
enum pids_item Items[] = {
|
enum pids_item Items[] = {
|
||||||
PIDS_ID_PID,
|
PIDS_ID_PID,
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
|
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
|
|
||||||
|
|
||||||
#define grow_size(x) do { \
|
#define grow_size(x) do { \
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@
|
|||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
|
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
|
|
||||||
static struct pids_info *Pids_info;
|
static struct pids_info *Pids_info;
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -13,10 +13,10 @@
|
|||||||
#define PROCPS_PS_H
|
#define PROCPS_PS_H
|
||||||
|
|
||||||
#include "../include/nls.h"
|
#include "../include/nls.h"
|
||||||
#include <proc/meminfo.h>
|
#include "meminfo.h"
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
#include <proc/stat.h>
|
#include "stat.h"
|
||||||
|
|
||||||
// --- <pids> interface begin ||||||||||||||||||||||||||||||||||||||||||||
|
// --- <pids> interface begin ||||||||||||||||||||||||||||||||||||||||||||
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "../proc/misc.h"
|
#include "misc.h"
|
||||||
#include "../include/xalloc.h"
|
#include "../include/xalloc.h"
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|||||||
+1
-1
@@ -43,7 +43,7 @@
|
|||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
#include "strutils.h"
|
#include "strutils.h"
|
||||||
|
|
||||||
#include <proc/slabinfo.h>
|
#include "slabinfo.h"
|
||||||
|
|
||||||
#define DEFAULT_SORT SLAB_NUM_OBJS
|
#define DEFAULT_SORT SLAB_NUM_OBJS
|
||||||
#define CHAINS_ALLOC 150
|
#define CHAINS_ALLOC 150
|
||||||
|
|||||||
+1
-1
@@ -43,7 +43,7 @@
|
|||||||
#include "strutils.h"
|
#include "strutils.h"
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
|
|
||||||
static char *screen;
|
static char *screen;
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -51,10 +51,10 @@
|
|||||||
#include "../include/signals.h"
|
#include "../include/signals.h"
|
||||||
#include "../include/nls.h"
|
#include "../include/nls.h"
|
||||||
|
|
||||||
#include <proc/meminfo.h>
|
#include "meminfo.h"
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
#include <proc/stat.h>
|
#include "stat.h"
|
||||||
|
|
||||||
#include "top.h"
|
#include "top.h"
|
||||||
#include "top_nls.h"
|
#include "top_nls.h"
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@
|
|||||||
#include "fileutils.h"
|
#include "fileutils.h"
|
||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
|
|
||||||
static void print_uptime_since()
|
static void print_uptime_since()
|
||||||
{
|
{
|
||||||
|
|||||||
+6
-6
@@ -49,12 +49,12 @@
|
|||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
#include "strutils.h"
|
#include "strutils.h"
|
||||||
|
|
||||||
#include <proc/diskstats.h>
|
#include "diskstats.h"
|
||||||
#include <proc/meminfo.h>
|
#include "meminfo.h"
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include <proc/slabinfo.h>
|
#include "slabinfo.h"
|
||||||
#include <proc/stat.h>
|
#include "stat.h"
|
||||||
#include <proc/vmstat.h>
|
#include "vmstat.h"
|
||||||
|
|
||||||
#define UNIT_B 1
|
#define UNIT_B 1
|
||||||
#define UNIT_k 1000
|
#define UNIT_k 1000
|
||||||
|
|||||||
@@ -54,8 +54,8 @@
|
|||||||
#include "fileutils.h"
|
#include "fileutils.h"
|
||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
|
|
||||||
#include <proc/misc.h>
|
#include "misc.h"
|
||||||
#include <proc/pids.h>
|
#include "pids.h"
|
||||||
|
|
||||||
static int ignoreuser = 0; /* for '-u' */
|
static int ignoreuser = 0; /* for '-u' */
|
||||||
static int oldstyle = 0; /* for '-o' */
|
static int oldstyle = 0; /* for '-o' */
|
||||||
|
|||||||
Reference in new issue
Block a user