htop/freebsd
Tobias Kortkamp ecfd6f685e
Fix memory statistics display on FreeBSD/powerpc
Use the appropriate types when calling sysctl().

Currently, `unsigned long long int` is used for all sizes and on
FreeBSD/powerpc this causes all sysctl() calls in scanMemoryInfo()
to fail as they are actually of different sizes on powerpc, where
(sizeof(unsigned long long int), sizeof(u_long)) == (8, 4)
vs (8, 8) on amd64.  This results in bogus memory sizes being
reported by htop.

Signed-off-by: Tobias Kortkamp <tobik@FreeBSD.org>
2018-12-24 13:51:01 +01:00
..
Battery.c add FreeBSD battery support 2016-02-11 13:42:37 +03:00
Battery.h Prepare for release 2.0.1. 2016-03-07 18:32:06 -03:00
FreeBSDCRT.c Fix spelling of "maintainer" 2016-01-02 12:11:26 -05:00
FreeBSDCRT.h Regenerate platform-dependent headers. 2015-10-19 17:22:54 -02:00
FreeBSDProcess.c Security review: check results of snprintf. 2017-07-27 16:07:50 -03:00
FreeBSDProcess.h Regenerate platform-dependent headers. 2015-10-19 17:22:54 -02:00
FreeBSDProcessList.c Fix memory statistics display on FreeBSD/powerpc 2018-12-24 13:51:01 +01:00
FreeBSDProcessList.h Avoid global, as done by @gaod in #387. 2016-03-07 16:58:02 -03:00
Platform.c Mark signal tables 'const' 2016-08-30 20:41:17 +08:00
Platform.h Mark signal tables 'const' 2016-08-30 20:41:17 +08:00