procps/proc
Jim Warner e41b40e6b0 library: <SLABINFO> api, change that 'get' return type
The following commit message is shared with 4 patches.
------------------------------------------------------

Under the newlib interface most of our 'get' functions
represent a bit of a compromise in that the actual raw
values are coerced into one (probably ok) return type.

That approach creates the possibility of truncation at
best, and wouldn't serve future needs should something
other than numeric data be added to the 'get' results.

This commit trades the current compromise for a return
value guaranteed to satisfy all future needs, namely a
pointer to a particular api's specific results struct.

The impact on existing programs is minimal, especially
when using a new supplied macro. Otherwise, native 'C'
syntax could be used, but may feel somewhat unnatural.

[ as an aside, this new approach allows us to delete ]
[ all 'getsfunc' table entries & the supporting code ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
2016-06-21 20:58:09 +10:00
..
.gitignore
alloc.c
alloc.h
COPYING
devname.c
devname.h
diskstat.c
diskstat.h
escape.c
escape.h
libprocps.pc.in
libprocps.sym library: normalize/standardize the i/f, <SLABINFO> api 2016-06-09 20:51:06 +10:00
meminfo.c library: <MEMINFO> api, changed that 'get' return type 2016-06-21 20:58:09 +10:00
meminfo.h library: <MEMINFO> api, changed that 'get' return type 2016-06-21 20:58:09 +10:00
namespace.c
namespace.h
openproc.3
pids.c library: optional parms protection missing, <PIDS> api 2016-06-17 21:44:29 +10:00
pids.h library: more tweaks for code and/or comments, 3rd gen 2016-06-17 21:44:29 +10:00
procps-private.h library: please keep procps-private.h free of #include 2016-06-11 11:50:37 +10:00
procps.h library: rename the 'slab' sources as 'slabinfo' files 2016-06-09 20:51:06 +10:00
pwcache.c library: rename clashing pwcache functions 2016-06-18 08:17:45 +10:00
pwcache.h library: rename clashing pwcache functions 2016-06-18 08:17:45 +10:00
readproc.3
readproc.c library: rename clashing pwcache functions 2016-06-18 08:17:45 +10:00
readproc.h library: eliminated a final potential NULL, <PIDS> api 2016-05-22 21:59:18 +10:00
readproctab.3
slabinfo.c library: <SLABINFO> api, change that 'get' return type 2016-06-21 20:58:09 +10:00
slabinfo.h library: <SLABINFO> api, change that 'get' return type 2016-06-21 20:58:09 +10:00
stat.c library: <STAT> api, change for that 'get' return type 2016-06-21 20:58:09 +10:00
stat.h library: <STAT> api, change for that 'get' return type 2016-06-21 20:58:09 +10:00
sysinfo.c
sysinfo.h
test_namespace.c
test_pids.c library: fix new and unref pids test 2016-06-07 21:13:57 +10:00
test_sysinfo.c
test_uptime.c
test_version.c
uptime.c
uptime.h
version.c
version.h
vmstat.c library: <VMSTAT> api, change in the 'get' return type 2016-06-21 20:58:09 +10:00
vmstat.h library: <VMSTAT> api, change in the 'get' return type 2016-06-21 20:58:09 +10:00
wchan.c
wchan.h