6d3b4a0f2e
netbsd: handle repeated ENOMEM from HW_IOSTATS safely
2021-08-09 14:17:06 +02:00
324f9d048d
netbsd: add more robust error handling for sysctl HW_IOSTATS
2021-08-09 09:08:37 +02:00
5b8654d341
netbsd: Add support for DiskIOMeter
2021-08-09 09:08:37 +02:00
97a859c5bd
netbsd: Use newer proplib API. Create aliases so it works on 9.x.
...
This way we avoid deprecation warnings on the development branch
of NetBSD while keeping the code functioning on the stable branch.
2021-08-05 10:47:14 +02:00
c85aafa608
netbsd: If at least one AC adapter is connected, keep its state.
2021-08-05 10:47:14 +02:00
93ca5af953
netbsd: style: declare variables on first use rather than C89-style
2021-08-05 10:47:14 +02:00
fdcdc54ec4
netbsd: Add battery support
...
This uses proplib and sysmon_envsys to determine the total charge
percentage of any number of connected batteries as well as the
AC adapter state. Should work with ACPI and non-ACPI systems.
2021-08-05 10:47:14 +02:00
2e3f34f5c1
NetBSD: Rework CPU counting.
2021-08-05 10:25:59 +02:00
4f3ba680fb
Fix indentation style
2021-07-21 21:06:58 +02:00
3fced48eea
netbsd: convert snprintf use to xSnprintf
2021-07-21 21:06:58 +02:00
a4b650fdec
netbsd: re-initialize freqSize before sysctlbyname()
2021-07-21 21:06:58 +02:00
72cea2881c
netbsd: Remove conditional compilation of CPU frequency variables
2021-07-21 21:06:58 +02:00
b4884373e5
netbsd: Support display of CPU frequency
2021-07-21 21:06:58 +02:00
0d85af2872
Whitespace around operators
2021-07-15 06:57:24 +02:00
458749df45
Code indentation
2021-07-15 06:57:24 +02:00
e7f8d7bcc9
Split statements that should go onto multiple lines
2021-07-15 06:57:24 +02:00
3bc73aa088
netbsd: update README.md ( #694 )
...
netbsd: update README.md
2021-07-15 06:41:42 +02:00
4865e643ad
netbsd: Fix display of in-use and cached memory
2021-07-13 19:06:30 +02:00
67ca214cbe
netbsd: Add dyanmicMeters stubs to fix the build
...
Signed-off-by: Nia Alarie <nia@NetBSD.org >
2021-07-13 19:05:24 +02:00
3bed682b1e
Always update proc->st_uid
+ proc->user
...
Avoids issue #661 .
2021-06-26 12:18:37 +02:00
686309e34c
Redo the memory values based on the other BSD implementations.
2021-06-26 12:18:37 +02:00
5fe9bcb21c
Adds support for counting user and kernel threads.
2021-06-26 12:18:37 +02:00
336acb0309
Adds support for PROC_EXE and CWD.
2021-06-26 12:18:37 +02:00
612462e33d
Adds the ELAPSED column for NetBSD.
...
Additional details regarding ELAPSED column can be found in #627 .
2021-06-26 12:18:37 +02:00
58a895e54c
Fixes minor whitespace issues and re-arrange headers to conform to style guide.
2021-06-26 12:18:37 +02:00
9de463e756
Implements the NetBSD specific changes for makeCommandStr refactor.
...
Refer to #388 PR for more details.
2021-06-26 12:18:37 +02:00
fa65c30976
Sets a non-NULL process state in case of kvm_getlwps(3) returns NULL. Thanks @cgzone.
2021-06-26 12:18:37 +02:00
2f5b3ef733
Refactor saturatingSub() to be part of Macros.h
2021-06-26 12:18:37 +02:00
e42ae55d69
Renames variable from opl to npl for consistency.
2021-06-26 12:18:37 +02:00
497f468ed0
Fix include paths and minor whitespace issues
2021-06-26 12:18:37 +02:00
9b6cecfede
Replace strlcpy() by safer String_safeStrncpy()
2021-06-26 12:18:37 +02:00
3414d3b2d4
Replace maximum_PID value with INT32_MAX
...
Thank you @niacat.
2021-06-26 12:18:37 +02:00
9e3b7c439c
Update README for NetBSD
2021-06-26 12:18:37 +02:00
ddcfb179b4
Remove unwanted code, updates the comments
2021-06-26 12:18:37 +02:00
b900e70e80
Update copyright notices
2021-06-26 12:18:37 +02:00
440bb87058
Minor code clean up and corrections.
2021-06-26 12:18:37 +02:00
db98623684
Sync changes from master and fix minor warnings
2021-06-26 12:18:37 +02:00
4b49de44a8
Add NetBSD platform support without procfs dependency
...
- TODO, clean up the code base and update comments in code.
2021-06-26 12:18:37 +02:00