/* * Copyright (c) 2018 Alastair Roy Poole * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #define _DEFAULT_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if !defined(__linux__) # include #endif #include #include #include #include #if defined(__APPLE__) && defined(__MACH__) #define __MacOS__ # include # include # include # include # include # include #endif #if defined(__OpenBSD__) # include # include # include # include # include # include #endif #if defined(__FreeBSD__) || defined(__DragonFly__) # include # include # include #endif #include "macros.h" #include "machine.h" #include "machine/machine.bogox" #include "machine/cpu.bogox" #include "machine/memory.bogox" #include "machine/sensors.bogox" #include "machine/network.bogox"