]> granicus.if.org Git - procps-ng/commit
library: eliminated the questionable 'procps.h' header
authorJim Warner <james.warner@comcast.net>
Tue, 30 Jun 2020 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Sun, 5 Jul 2020 11:13:01 +0000 (21:13 +1000)
commit1aa8b1644118ee84ff02158e1a9f409527fb5a96
treeb86e7fb1fdc221dc6901d95e702c1753bf48354a
parent70fd03e461ee961597280280f60fef79c37562ad
library: eliminated the questionable 'procps.h' header

There was a time when that procps.h file served a more
traditional role. Prior to the commit referenced below
it held just macros plus manifest constants. But, with
that change, such items were replaced with a series of
includes embracing all the library exported functions.

That approach was known to disguise errors which would
have otherwise yielded a compiler warning. And without
such a warning, there was no way to address the error.

So this patch will trade the all inclusive header file
approach for individual includes only where necessary.

Reference(s):
. April 2016, procps.h header file revamped
commit ccb6ae8de14b0cde25b84369ef995bcd69cbf7b6
. Sept 2018, top abandoned use of procps.h
commit a6dfc2382ed1e023dd345cdb1d2388c9b67bcc7f

Signed-off-by: Jim Warner <james.warner@comcast.net>
18 files changed:
Makefile.am
free.c
pgrep.c
pidof.c
pmap.c
proc/escape.c
proc/escape.h
proc/procps.h [deleted file]
proc/readproc.c
proc/test_namespace.c
proc/test_uptime.c
ps/common.h
skill.c
slabtop.c
tload.c
uptime.c
vmstat.c
w.c