00001 /* 00002 * Copyright (C), 2000-2002 by Contributors to the monit codebase. 00003 * All Rights Reserved. 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License as 00007 * published by the Free Software Foundation; either version 2 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software Foundation, 00017 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00020 #ifndef PROCESS_H 00021 #define PROCESS_H 00022 00023 #include <config.h> 00024 00025 #include "monitor.h" 00026 #include "monit_process.h" 00027 00028 int get_process_info(ProcInfo_T p); 00029 int get_process_info_sysdep(ProcInfo_T p); 00030 int init_process_info_sysdep(void); 00031 int read_proc_file(char *buf, int buf_size, char * name, int pid); 00032 double get_float_time(void); 00033 00034 #endif 00035