nia
93ca5af953
netbsd: style: declare variables on first use rather than C89-style
2021-08-05 10:47:14 +02:00
nia
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
fraggerfox
2e3f34f5c1
NetBSD: Rework CPU counting.
2021-08-05 10:25:59 +02:00
nia
4f3ba680fb
Fix indentation style
2021-07-21 21:06:58 +02:00
nia
3fced48eea
netbsd: convert snprintf use to xSnprintf
2021-07-21 21:06:58 +02:00
nia
a4b650fdec
netbsd: re-initialize freqSize before sysctlbyname()
2021-07-21 21:06:58 +02:00
nia
72cea2881c
netbsd: Remove conditional compilation of CPU frequency variables
2021-07-21 21:06:58 +02:00
nia
b4884373e5
netbsd: Support display of CPU frequency
2021-07-21 21:06:58 +02:00
Benny Baumann
0d85af2872
Whitespace around operators
2021-07-15 06:57:24 +02:00
Benny Baumann
458749df45
Code indentation
2021-07-15 06:57:24 +02:00
Benny Baumann
e7f8d7bcc9
Split statements that should go onto multiple lines
2021-07-15 06:57:24 +02:00
nia
3bc73aa088
netbsd: update README.md ( #694 )
...
netbsd: update README.md
2021-07-15 06:41:42 +02:00
nia
4865e643ad
netbsd: Fix display of in-use and cached memory
2021-07-13 19:06:30 +02:00
nia
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
BenBE
3bed682b1e
Always update `proc->st_uid` + `proc->user`
...
Avoids issue #661 .
2021-06-26 12:18:37 +02:00
fraggerfox
686309e34c
Redo the memory values based on the other BSD implementations.
2021-06-26 12:18:37 +02:00
fraggerfox
5fe9bcb21c
Adds support for counting user and kernel threads.
2021-06-26 12:18:37 +02:00
fraggerfox
336acb0309
Adds support for PROC_EXE and CWD.
2021-06-26 12:18:37 +02:00
fraggerfox
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
fraggerfox
58a895e54c
Fixes minor whitespace issues and re-arrange headers to conform to style guide.
2021-06-26 12:18:37 +02:00
fraggerfox
9de463e756
Implements the NetBSD specific changes for makeCommandStr refactor.
...
Refer to #388 PR for more details.
2021-06-26 12:18:37 +02:00
fraggerfox
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
fraggerfox
2f5b3ef733
Refactor saturatingSub() to be part of Macros.h
2021-06-26 12:18:37 +02:00
fraggerfox
e42ae55d69
Renames variable from opl to npl for consistency.
2021-06-26 12:18:37 +02:00
fraggerfox
497f468ed0
Fix include paths and minor whitespace issues
2021-06-26 12:18:37 +02:00
fraggerfox
9b6cecfede
Replace strlcpy() by safer String_safeStrncpy()
2021-06-26 12:18:37 +02:00
fraggerfox
3414d3b2d4
Replace maximum_PID value with INT32_MAX
...
Thank you @niacat.
2021-06-26 12:18:37 +02:00
fraggerfox
9e3b7c439c
Update README for NetBSD
2021-06-26 12:18:37 +02:00
fraggerfox
ddcfb179b4
Remove unwanted code, updates the comments
2021-06-26 12:18:37 +02:00
Benny Baumann
b900e70e80
Update copyright notices
2021-06-26 12:18:37 +02:00
fraggerfox
440bb87058
Minor code clean up and corrections.
2021-06-26 12:18:37 +02:00
fraggerfox
db98623684
Sync changes from master and fix minor warnings
2021-06-26 12:18:37 +02:00
fraggerfox
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