changes related to temperature and layout
[monky] / src / proc.h
index b944a4f..0e81334 100644 (file)
@@ -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.
  *
 
 #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);