2009-11-11 10:33:28 +00:00
|
|
|
/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
* vim: ts=4 sw=4 noet ai cindent syntax=c
|
|
|
|
*
|
|
|
|
* Conky, a system monitor, based on torsmo
|
|
|
|
*
|
|
|
|
* Any original torsmo code is licensed under the BSD license
|
|
|
|
*
|
|
|
|
* All code written since the fork of torsmo is licensed under the GPL
|
|
|
|
*
|
|
|
|
* Please see COPYING for details
|
|
|
|
*
|
|
|
|
* Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
|
2010-01-01 23:46:17 +00:00
|
|
|
* Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
|
2009-11-11 10:33:28 +00:00
|
|
|
* (see AUTHORS)
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-02-25 20:49:07 +00:00
|
|
|
#ifndef CONKY_PROC_H
|
|
|
|
#define CONKY_PROC_H
|
|
|
|
|
2009-11-11 12:23:05 +00:00
|
|
|
#define PROCDIR "/proc"
|
|
|
|
#define READERR "Can't read '%s'"
|
2009-11-14 14:08:41 +00:00
|
|
|
#define READSIZE 128
|
2009-11-11 21:56:12 +00:00
|
|
|
|
2009-11-13 15:54:40 +00:00
|
|
|
void print_pid_chroot(struct text_object *obj, char *p, int p_max_size);
|
2009-11-11 15:27:19 +00:00
|
|
|
void print_pid_cmdline(struct text_object *obj, char *p, int p_max_size);
|
|
|
|
void print_pid_cwd(struct text_object *obj, char *p, int p_max_size);
|
2009-11-11 21:56:12 +00:00
|
|
|
void print_pid_environ(struct text_object *obj, char *p, int p_max_size);
|
2009-11-12 14:42:18 +00:00
|
|
|
void print_pid_environ_list(struct text_object *obj, char *p, int p_max_size);
|
2009-11-12 19:34:43 +00:00
|
|
|
void print_pid_exe(struct text_object *obj, char *p, int p_max_size);
|
2009-11-16 14:01:43 +00:00
|
|
|
void print_pid_nice(struct text_object *obj, char *p, int p_max_size);
|
2009-11-14 21:07:54 +00:00
|
|
|
void print_pid_openfiles(struct text_object *obj, char *p, int p_max_size);
|
2009-11-15 12:26:40 +00:00
|
|
|
void print_pid_parent(struct text_object *obj, char *p, int p_max_size);
|
2009-11-16 14:01:43 +00:00
|
|
|
void print_pid_priority(struct text_object *obj, char *p, int p_max_size);
|
2009-11-14 12:58:07 +00:00
|
|
|
void print_pid_state(struct text_object *obj, char *p, int p_max_size);
|
2009-11-14 21:07:54 +00:00
|
|
|
void print_pid_state_short(struct text_object *obj, char *p, int p_max_size);
|
2009-11-12 19:34:43 +00:00
|
|
|
void print_pid_stderr(struct text_object *obj, char *p, int p_max_size);
|
|
|
|
void print_pid_stdin(struct text_object *obj, char *p, int p_max_size);
|
|
|
|
void print_pid_stdout(struct text_object *obj, char *p, int p_max_size);
|
2009-11-16 08:54:17 +00:00
|
|
|
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);
|
2009-11-16 14:30:57 +00:00
|
|
|
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);
|
2009-11-15 13:49:55 +00:00
|
|
|
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);
|
2009-11-19 11:32:14 +00:00
|
|
|
void print_pid_read(struct text_object *obj, char *p, int p_max_size);
|
2009-11-15 18:44:37 +00:00
|
|
|
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);
|
2009-11-19 11:32:14 +00:00
|
|
|
void print_pid_write(struct text_object *obj, char *p, int p_max_size);
|
2009-11-12 23:36:46 +00:00
|
|
|
|
2009-11-14 21:07:54 +00:00
|
|
|
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);
|
2009-12-10 04:05:32 +00:00
|
|
|
|
2010-02-25 20:49:07 +00:00
|
|
|
#endif /* CONKY_PROC_H */
|