shirou_gopsutil/process
Chris Gianelloni a8418dfd73 feat: use lsof for net_connections on FreeBSD
Use net.ConnectionsPidWithContext on FreeBSD, similarly to how it is done
on Darwin. This uses common.CallLsofWithContext underneath the hood, which
will use lsof under the hood, if available.

Tested on FreeBSD 13.2-RELEASE

Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
2023-11-09 18:19:10 -05:00
..
testdata Drop test for Darwin Pids() 2022-01-13 13:27:05 +01:00
process.go fix some comments 2023-05-09 16:42:07 +08:00
process_bsd.go gofumpt 2021-12-22 21:54:41 +00:00
process_darwin.go [process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes 2023-07-09 00:43:24 +02:00
process_darwin_amd64.go gofumpt 2021-12-22 21:54:41 +00:00
process_darwin_arm64.go gofumpt 2021-12-22 21:54:41 +00:00
process_darwin_cgo.go Fix memory leaks in darwin_cgo 2022-10-04 14:35:52 -04:00
process_darwin_nocgo.go refactor: remove unnecessary exec.LookPath calls 2022-03-04 18:56:33 +02:00
process_fallback.go [process] implement ParentWithContext using PpidWithContext 2022-01-22 18:27:52 +02:00
process_freebsd.go feat: use lsof for net_connections on FreeBSD 2023-11-09 18:19:10 -05:00
process_freebsd_386.go run go fmt ./... 2017-02-01 23:05:29 +00:00
process_freebsd_amd64.go run go fmt ./... 2017-02-01 23:05:29 +00:00
process_freebsd_arm.go Add native struct support for FreeBSD/arm. 2017-02-01 08:25:48 -08:00
process_freebsd_arm64.go gofumpt 2021-12-22 21:54:41 +00:00
process_linux.go chore: replace deprecated ioutil package to os and io 2023-09-08 17:05:14 +00:00
process_linux_test.go ci(lint): ensure io/ioutil replacement (#1525) 2023-09-12 21:14:04 +09:00
process_openbsd.go [process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes 2023-07-09 00:43:24 +02:00
process_openbsd_386.go gofumpt 2021-12-22 21:54:41 +00:00
process_openbsd_amd64.go run go fmt ./... 2017-02-01 23:05:29 +00:00
process_openbsd_arm.go host: add support for OpenBSD/armv7 2022-04-15 21:11:36 +02:00
process_openbsd_arm64.go gofumpt 2021-12-22 21:54:41 +00:00
process_plan9.go [process] implement ParentWithContext using PpidWithContext 2022-01-22 18:27:52 +02:00
process_posix.go allow to pass context values to override environment variables 2023-06-02 01:31:05 -07:00
process_posix_test.go gofumpt 2021-12-22 21:54:41 +00:00
process_race_test.go gofumpt 2021-12-22 21:54:41 +00:00
process_solaris.go chore: replace deprecated ioutil package to os and io 2023-09-08 17:05:14 +00:00
process_test.go [process][darwin]: skip process.Nice test if darwin on GitHub Action 2023-10-07 13:27:39 +00:00
process_windows.go [process][windows] Retrieve process name as basename of executable 2022-10-22 21:43:23 +02:00
process_windows_32bit.go fix lint 2023-02-12 09:24:52 +00:00
process_windows_64bit.go [process][windows] Fix #1216 fix compilation on arm/arm64 2022-01-05 01:09:23 +01:00
types_darwin.go gofumpt 2021-12-22 21:54:41 +00:00
types_freebsd.go gofumpt 2021-12-22 21:54:41 +00:00
types_openbsd.go gofumpt 2021-12-22 21:54:41 +00:00