/* * Copyright (C), 2000-2002 by Contributors to the monit codebase. * 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 2 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, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #ifdef HAVE_SYS_TYPES_H #include #endif #include #ifdef HAVE_SYS_STAT_H #include #endif #ifdef HAVE_FCNTL_H #include #endif #ifdef HAVE_STDLIB_H #include #endif #ifdef TIME_WITH_SYS_TIME #include #ifdef HAVE_SYS_TIME_H #include #endif #else #include #endif #ifdef HAVE_STRING_H #include #endif #include #ifdef SOLARIS #include #endif #ifdef FREEBSD #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif #ifdef DARWIN #include #include #include #include #include #include #include #include #include #include #endif #ifdef LINUX #include #include #endif #ifdef HPUX #include #include #include #define _RUSAGE_EXTENDED #include #include #include #include #endif #include "process.h" /** * System dependent /proc & kvm methods. * * @author Jan-Henrik Haukeland, * @author Christian Hopp * * @version \$Id: sysdep.c,v 1.10 2002/12/22 04:43:32 rory Exp $ * * @file */ /* ------------------------------------------------------------------ Public */ #ifdef SOLARIS #include "sysdep_solaris.h" #endif #ifdef LINUX #include "sysdep_linux.h" #endif #ifdef FREEBSD #include "sysdep_freebsd.h" #endif #ifdef DARWIN #include "sysdep_darwin.h" #endif #ifdef HPUX #include "sysdep_hp.h" #endif