You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Benny Baumann 1a12d58526 Work around GCC14 memleak diagnostic 2 years ago
..
NetBSDMachine.c Fix build in NetBSD. 2 years ago
NetBSDMachine.h Rename ProcessList to ProcessTable throughout 3 years ago
NetBSDProcess.c Work around GCC14 memleak diagnostic 2 years ago
NetBSDProcess.h Introduce Machine class for host-specific info (split from ProcessList) 3 years ago
NetBSDProcessTable.c Refactor the goThroughEntries. 2 years ago
NetBSDProcessTable.h Rename ProcessList to ProcessTable throughout 3 years ago
Platform.c Add includes for config.h as per the discussion in PR #1337 2 years ago
Platform.h Correct pid_t type return from Platform_getMaxPid function 3 years ago
ProcessField.h Update license headers to explicitly say GPLv2+ 5 years ago
README.md netbsd: Add battery support 5 years ago

README.md

NetBSD support in htop(1)

This implementation utilizes kvm_getprocs(3), sysctl(3), etc, eliminating the need for mount_procfs(8) with Linux compatibility enabled.

The implementation was initially based on the OpenBSD support in htop(1).

Notes on NetBSD curses

NetBSD is one of the last operating systems to use and maintain its own implementation of Curses.

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

  • Kernel and userspace threads are not displayed or counted - maybe look at NetBSD top(1).
  • Support for compiling using libcurses's Unicode support.
  • Support for fstat(1) (view open files, like lsof(8) on Linux).
  • Support for ktrace(1) (like strace(1) on Linux).