library: cleanup of readproc functions
readproc still had some of the old API hanging around that was good while we were trying it out, but its time to say goodbye: readproc.h removed from public procps.h header file enum ns_type - not used - removed get_ns_name() - not defined - removed get_ns_id() - not defined - removed PROCTAB proc_t only used internal to library readproctab() and 2,3 friends not used - removed proc_data_t was used by readproctab23() - removed readtask() - not used - removed read_cmdline() - copy,renamed and made generic - remove original freeproc() - not used - removed get_proc_status - not used - removed, however there should be a new function created that does this. Given a PID return data about it instead of scanning the entire procfs. Maybe it already does. Left as internal-to-library only functions: readproc(), readeither(), look_up_our_self(), openproc(), closeproc() Updated libprocps.sym to export only what we use.
This commit is contained in:
@ -1,20 +1,10 @@
|
||||
LIBPROCPS_0 {
|
||||
global:
|
||||
closeproc;
|
||||
dev_to_tty;
|
||||
escape_command;
|
||||
escape_str;
|
||||
escape_strlist;
|
||||
escaped_copy;
|
||||
fatal_proc_unmounted;
|
||||
look_up_our_self;
|
||||
lookup_wchan;
|
||||
openproc;
|
||||
readproc;
|
||||
readproctab2;
|
||||
readproctab3;
|
||||
readproctab;
|
||||
readtask;
|
||||
procps_cpu_count;
|
||||
procps_diskstat_dev_count;
|
||||
procps_diskstat_dev_get;
|
||||
|
Reference in New Issue
Block a user