mirror of https://github.com/xzeldon/htop.git
parent
f21f81b2de
commit
3bc73aa088
|
@ -1,29 +1,33 @@
|
||||||
NetBSD support in htop(1)
|
NetBSD support in htop(1)
|
||||||
===
|
===
|
||||||
|
|
||||||
This implementation makes NetBSD use htop(1) without the need of mount_procfs(8).
|
This implementation utilizes kvm_getprocs(3), sysctl(3), etc, eliminating the
|
||||||
|
need for mount_procfs(8) with Linux compatibility enabled.
|
||||||
|
|
||||||
The implementation has been copied over and modified from the OpenBSD
|
The implementation was initially based on the OpenBSD support in htop(1).
|
||||||
implementation in htop(1).
|
|
||||||
|
|
||||||
Current implementation mimics the procfs based implementation in stats
|
Notes on NetBSD curses
|
||||||
collection.
|
|
||||||
|
|
||||||
Make NetBSD no longer masquerade as Linux.
|
|
||||||
|
|
||||||
What works
|
|
||||||
---
|
---
|
||||||
|
|
||||||
* Builds in NetBSD without any additional patch
|
NetBSD is one of the last operating systems to use and maintain its own
|
||||||
* Uses sysctl(3) and kvm(3) to get basic information
|
implementation of Curses.
|
||||||
* Shows basic meters CPU / Memory / Swap
|
|
||||||
* Shows basic process listing
|
|
||||||
|
|
||||||
What needs to be tested
|
htop(1) can be compiled against either ncurses or NetBSD's curses(3).
|
||||||
|
In order for NetBSD's libcurses to be used, htop(1) must be configured with
|
||||||
|
`--disable-unicode`. This is necessary because htop(1) with Unicode enabled
|
||||||
|
directly accesses ncurses's cchar_t struct, which has different contents
|
||||||
|
in NetBSD's curses.
|
||||||
|
|
||||||
|
Versions of libcurses in NetBSD 9 and prior have no mouse support
|
||||||
|
(this is an ncurses extension). Newer versions contain no-op mouse functions
|
||||||
|
for compatibility with ncurses.
|
||||||
|
|
||||||
|
What needs improvement
|
||||||
---
|
---
|
||||||
|
|
||||||
* Memory being split into used/buffers/cache
|
* Kernel and userspace threads are not displayed or counted -
|
||||||
* Basic features of htop(1) like kill / nice / sort / search works as expected
|
maybe look at NetBSD top(1).
|
||||||
* If the meter displays are working as expected
|
* Battery display - use envsys(4).
|
||||||
* If the process states are displayed correctly
|
* Support for compiling using libcurses's Unicode support.
|
||||||
* If thread information and count are displayed correctly
|
* Support for fstat(1) (view open files, like lsof(8) on Linux).
|
||||||
|
* Support for ktrace(1) (like strace(1) on Linux).
|
||||||
|
|
Loading…
Reference in New Issue