shirou / gopsutil

psutil for golang
Other
10.47k stars 1.58k forks source link

Add some support for NetBSD #1530

Closed darkgeek closed 11 months ago

darkgeek commented 11 months ago

Hi,

I want to add support for NetBSD in this PR, where I implement some functions in disk/mem/cpu/host. Though not all functions are implemented, it's a decent start. The cpu part is largely inspired by the #1364 .

I use a Nano Pi R5S aarch64 board, where NetBSD 10 is running, to test my code, and all the functions I implement can work well there.

So can you check this PR to see if it's ok to merge? Thanks.

darkgeek commented 11 months ago

I see some github action checks failed, all of which are macos related. After digging into the check details, I couldn't find any relation between the errors and my commits😂️.