]> granicus.if.org Git - procps-ng/commit
library: rework namespace calls
authorCraig Small <csmall@enc.com.au>
Thu, 3 Sep 2015 12:32:19 +0000 (22:32 +1000)
committerCraig Small <csmall@enc.com.au>
Thu, 3 Sep 2015 12:32:19 +0000 (22:32 +1000)
commita61f78d6e03551616718332719da9de266a504e7
tree4166a832934326b60cec37debd380a8792c11f90
parentd9caf0980e1212747a3af3944ada80879823e7c9
library: rework namespace calls

Functions related to namespaces were half-in half-out of the
procps library and didn't fit the standard naming scheme.

While struct { long ns[x]} is a bit clunky, its the only way
to "lock in" x. The alternative is to use ns_* variables.

This work was needed before pgrep could be converted.
16 files changed:
Makefile.am
include/Makefile.am
include/nsutils.h [deleted file]
lib/nsutils.c [deleted file]
lib/test_nsutils.c [deleted file]
pgrep.c
proc/.gitignore
proc/libprocps.sym
proc/namespace.c [new file with mode: 0644]
proc/namespace.h [new file with mode: 0644]
proc/pids.c
proc/readproc.c
proc/readproc.h
proc/test_namespace.c [new file with mode: 0644]
ps/output.c
skill.c