X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fproc.h;h=0e813349809ac063fb2326b24520b47d96fb176e;hb=da4f602694c3083a131b2f58a502c25a7febb76e;hp=b944a4fa21162a91f3c002d2247c62b57ee825dc;hpb=6c4f069f00a280967bb2983472220005adc87170;p=monky diff --git a/src/proc.h b/src/proc.h index b944a4f..0e81334 100644 --- a/src/proc.h +++ b/src/proc.h @@ -10,7 +10,7 @@ * Please see COPYING for details * * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen - * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al. + * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. * (see AUTHORS) * All rights reserved. * @@ -30,34 +30,48 @@ #define PROCDIR "/proc" #define READERR "Can't read '%s'" +#define READSIZE 128 -struct environ_data { - char *file; - char *var; -}; - -void scan_pid_cmdline_arg(struct text_object *obj, const char *arg, void* free_at_crash); +void print_pid_chroot(struct text_object *obj, char *p, int p_max_size); void print_pid_cmdline(struct text_object *obj, char *p, int p_max_size); - -void scan_pid_cwd_arg(struct text_object *obj, const char *arg, void* free_at_crash); void print_pid_cwd(struct text_object *obj, char *p, int p_max_size); - -void scan_pid_environ_arg(struct text_object *obj, const char *arg, void* free_at_crash); void print_pid_environ(struct text_object *obj, char *p, int p_max_size); - -void free_pid_environ(struct text_object *obj); - -void scan_pid_environ_list_arg(struct text_object *obj, const char *arg, void* free_at_crash); void print_pid_environ_list(struct text_object *obj, char *p, int p_max_size); - -void scan_pid_exe_arg(struct text_object *obj, const char *arg, void* free_at_crash); void print_pid_exe(struct text_object *obj, char *p, int p_max_size); - -void scan_pid_stderr_arg(struct text_object *obj, const char *arg, void* free_at_crash); +void print_pid_nice(struct text_object *obj, char *p, int p_max_size); +void print_pid_openfiles(struct text_object *obj, char *p, int p_max_size); +void print_pid_parent(struct text_object *obj, char *p, int p_max_size); +void print_pid_priority(struct text_object *obj, char *p, int p_max_size); +void print_pid_state(struct text_object *obj, char *p, int p_max_size); +void print_pid_state_short(struct text_object *obj, char *p, int p_max_size); void print_pid_stderr(struct text_object *obj, char *p, int p_max_size); - -void scan_pid_stdin_arg(struct text_object *obj, const char *arg, void* free_at_crash); void print_pid_stdin(struct text_object *obj, char *p, int p_max_size); - -void scan_pid_stdout_arg(struct text_object *obj, const char *arg, void* free_at_crash); void print_pid_stdout(struct text_object *obj, char *p, int p_max_size); +void print_pid_threads(struct text_object *obj, char *p, int p_max_size); +void print_pid_thread_list(struct text_object *obj, char *p, int p_max_size); +void print_pid_time_kernelmode(struct text_object *obj, char *p, int p_max_size); +void print_pid_time_usermode(struct text_object *obj, char *p, int p_max_size); +void print_pid_time(struct text_object *obj, char *p, int p_max_size); +void print_pid_uid(struct text_object *obj, char *p, int p_max_size); +void print_pid_euid(struct text_object *obj, char *p, int p_max_size); +void print_pid_suid(struct text_object *obj, char *p, int p_max_size); +void print_pid_fsuid(struct text_object *obj, char *p, int p_max_size); +void print_pid_gid(struct text_object *obj, char *p, int p_max_size); +void print_pid_egid(struct text_object *obj, char *p, int p_max_size); +void print_pid_sgid(struct text_object *obj, char *p, int p_max_size); +void print_pid_fsgid(struct text_object *obj, char *p, int p_max_size); +void print_pid_read(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmpeak(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmsize(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmlck(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmhwm(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmrss(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmdata(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmstk(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmexe(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmlib(struct text_object *obj, char *p, int p_max_size); +void print_pid_vmpte(struct text_object *obj, char *p, int p_max_size); +void print_pid_write(struct text_object *obj, char *p, int p_max_size); + +void scan_cmdline_to_pid_arg(struct text_object *obj, const char *arg, void* free_at_crash); +void print_cmdline_to_pid(struct text_object *obj, char *p, int p_max_size);