Add NetBSD platform support without procfs dependency

- TODO, clean up the code base and update comments in code.
This commit is contained in:
fraggerfox
2021-03-15 13:14:39 +05:30
committed by BenBE
parent 30dc4a2812
commit 4b49de44a8
10 changed files with 1278 additions and 0 deletions

View File

@ -236,6 +236,30 @@ myhtopplatheaders = $(dragonflybsd_platform_headers)
myhtopplatsources = $(dragonflybsd_platform_sources)
endif
# NetBSD
# -------
netbsd_platform_headers = \
netbsd/Platform.h \
netbsd/ProcessField.h \
netbsd/NetBSDProcessList.h \
netbsd/NetBSDProcess.h \
generic/hostname.h \
generic/uname.h
netbsd_platform_sources = \
netbsd/Platform.c \
netbsd/NetBSDProcessList.c \
netbsd/NetBSDProcess.c \
generic/hostname.c \
generic/uname.c
if HTOP_NETBSD
AM_LDFLAGS += -lkvm
myhtopplatheaders = $(netbsd_platform_headers)
myhtopplatsources = $(netbsd_platform_sources)
endif
# OpenBSD
# -------