]> granicus.if.org Git - procps-ng/commitdiff
sysctl: Bring procio functions out of library
authorCraig Small <csmall@enc.com.au>
Thu, 1 Mar 2018 10:25:04 +0000 (21:25 +1100)
committerCraig Small <csmall@enc.com.au>
Thu, 1 Mar 2018 10:47:57 +0000 (21:47 +1100)
The procio functions that were in the library have been
moved into sysctl. sysctl is not linked to libprocps in
newlib and none of the other procps binaries would need
to read/write large data to the procfs.

References:
 be6b048a41b0a47ebed602d9e0993fe18c9de237

Makefile.am
procio.c [moved from proc/procio.c with 100% similarity]

index ebda1893865477436b0546dcae600297026371fd..1f79d82cc4fda1f5c6214099b0b09b150c979be0 100644 (file)
@@ -210,7 +210,11 @@ pmap_SOURCES = pmap.c lib/fileutils.c
 if !CYGWIN
 pwdx_SOURCES = pwdx.c lib/fileutils.c
 pwdx_LDADD= $(CYGWINFLAGS)
-sysctl_SOURCES = sysctl.c lib/fileutils.c
+sysctl_SOURCES = \
+       sysctl.c \
+       lib/fileutils.c \
+       procio.c \
+       procio.h
 sysctl_LDADD=
 endif
 tload_SOURCES = tload.c lib/strutils.c lib/fileutils.c
@@ -252,8 +256,6 @@ proc_libprocps_la_SOURCES = \
        proc/numa.h \
        proc/pids.c \
        proc/pids.h \
-       proc/procio.c \
-       proc/procio.h \
        proc/procps.h \
        proc/pwcache.c \
        proc/pwcache.h \
@@ -284,7 +286,6 @@ proc_libprocps_la_include_HEADERS = \
        proc/namespace.h \
        proc/numa.h \
        proc/pids.h \
-       proc/procio.h \
        proc/procps.h \
        proc/pwcache.h \
        proc/readproc.h \
similarity index 100%
rename from proc/procio.c
rename to procio.c