procps/proc
Jim Warner 9ebadc1438 library: standardize portions of interface, <PIDS> api
This represents a rather major interface redesign. The
following highlights most of the changes/enhancements.

. The 'read' interface (employed by pgrep & pidof) saw
the biggest change. The 'open', 'next' and 'shut' guys
all went bye-bye, replaced by a single 'get' function.

. The items specified at 'new' time no longer serve as
the maximum. In fact, items & numitems are now treated
as optional, should callers prefer to wait until later
when the 'reset' function would then become mandatory.

. Even at 'reset' time, the stacks are not tied to any
sort of maximum. They will grow dynamically as needed.

. The order of some parameters was changed to parallel
that found in our other APIs. Specifically, when items
& numitems are needed they're specified in that order.

. A user will no longer be prevented from concurrently
employing any accessor functions. In other words, that
'get' (old 'read') won't preclude 'reap' and 'select'.

. A duplicate enumerator was found dealing with locked
resident pages. So, the name VM_LOCK was eliminated in
favor of VM_RSS_LOCKED, which is way more descriptive.

. The struct address returned to callers following any
reap() or select() is now more sharable as pids_fetch.

. Some input parameter names were changed to make them
more descriptive of the intended purpose/requirements.

------------------------------------------------------
Internally, there were numerous implementation changes
made that did not directly impact any potential users.

. That #define FPRINT_STACKS was eliminated along with
the associated supporting function and its invocation.

. Addresses returned following 'reap' or 'select' will
now be NULL delimited, so one has the option of stacks
access via the total count or this new NULL fencepost.

. Input params were simplified and generalized in both
oldproc_open() & close() to enable more than 1 PROCTAB
to be open simultaneously, which was required for get.

. The PROCPS_PIDS_logical_end enum was relocated after
the Item_table making the need to keep it synchronized
more apparent (if the table expands it's right there).

. The 'Public function' section of the source file was
subdivided into 1) the three basic required functions;
and 2) functions that can sometimes vary between APIs.

Signed-off-by: Jim Warner <james.warner@comcast.net>
2016-05-16 19:58:20 +10:00
..
.gitignore tests: update template and add pids 2016-04-19 21:33:02 +10:00
alloc.c
alloc.h
COPYING
devname.c
devname.h
diskstat.c misc: Few more resource leak fixes 2016-05-03 21:58:13 +10:00
diskstat.h
escape.c
escape.h
libprocps.pc.in
libprocps.sym library: standardize portions of interface, <PIDS> api 2016-05-16 19:58:20 +10:00
meminfo.c library: remove the ull_int result type, <MEMINFO> api 2016-05-12 21:15:01 +10:00
meminfo.h library: remove the ull_int result type, <MEMINFO> api 2016-05-12 21:15:01 +10:00
namespace.c
namespace.h
openproc.3
pids.c library: standardize portions of interface, <PIDS> api 2016-05-16 19:58:20 +10:00
pids.h library: standardize portions of interface, <PIDS> api 2016-05-16 19:58:20 +10:00
procps-private.h
procps.h library: rename those readstat.c & h sources to 'stat' 2016-04-26 22:27:16 +10:00
pwcache.c
pwcache.h
readproc.3
readproc.c library: Remove dead branch in file2strvec 2016-05-14 22:43:19 +10:00
readproc.h
readproctab.3
slab.c library: slab sort derefence after check 2016-05-14 22:32:35 +10:00
slab.h
stat.c library: allow negative delta values for 2, <STAT> api 2016-05-12 21:13:47 +10:00
stat.h library; add more of my gratuitous changes, <STAT> api 2016-05-12 07:51:10 +10:00
sysinfo.c
sysinfo.h library: remove an obsolete 'jiffs' typedef in sysinfo 2016-05-08 21:12:22 +10:00
test_namespace.c tests: update template and add pids 2016-04-19 21:33:02 +10:00
test_pids.c tests: update template and add pids 2016-04-19 21:33:02 +10:00
test_sysinfo.c tests: update template and add pids 2016-04-19 21:33:02 +10:00
test_uptime.c library: procps_uptime() return value is a status 2016-05-01 16:50:25 +10:00
test_version.c library: Fix LINUX_VERSION macro 2016-05-01 17:46:25 +10:00
uptime.c library: procps_uptime() return value is a status 2016-05-01 16:50:25 +10:00
uptime.h
version.c
version.h library: Fix LINUX_VERSION macro 2016-05-01 17:46:25 +10:00
vmstat.c
vmstat.h
wchan.c
wchan.h