]> granicus.if.org Git - procps-ng/commit
library: protect against a future breakage, <pids> ABI
authorJim Warner <james.warner@comcast.net>
Mon, 18 Apr 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Tue, 19 Apr 2016 10:38:18 +0000 (20:38 +1000)
commite7585992d9c0743246247b3d6ee0041942fe07d5
treeb5c0a743c29a0c55b6f2d9913ce6580691b330a1
parent4217eddf474debe55a7651757ccce1e86aeb04a5
library: protect against a future breakage, <pids> ABI

By co-mingling both external/internal identifiers with
actual implementation code, potential future additions
to our API would have been considerably more difficult.

So, this patch will now rely solely on internal/hidden
identifiers serving as fenceposts in validation logic.

And if the following convention is used for new fields
we will maintain that enumerator alphabetic ordering a
a little longer (even though 2 user fields now don't):

. PROCPS_PIDS_XTRA_FOO_A, PROCPS_PIDS_XTRA_FOO_B, etc.

Reference(s):
http://www.freelists.org/post/procps/me-too-newlib,7

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.c
proc/pids.h