blob: 53152ff77b736488f79e56e4928a294e7f084368 [file] [log] [blame] [raw]
/* libprocstat
Copyright 2015-2022 Rivoreo
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.
*/
#include <sys/param.h>
#include <sys/types.h>
#include <stddef.h>
#if defined __FreeBSD__ && !defined __FreeBSD_kernel__
#define __FreeBSD_kernel__
#endif
#if (defined __APPLE__ && defined __MACH__) && !defined BSD
#define BSD 199506
#endif
#if defined BSD || __FreeBSD_kernel__
#include "procstat.sysctl.c"
#elif defined __SVR4
#include "procstat.sysv.c"
#elif defined __linux__ || defined __CYGWIN__
#include "procstat.linux-procfs.c"
#elif defined __INTERIX
#include "procstat.interix.c"
#elif _WINDOWSNT_NATIVE
#include "procstat.nt.c"
#elif _WIN32
#include "procstat.windows.c"
#else
#error "Unsupported platform"
#endif