You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/process
Ivan Andreev d6e0932b96 Remove CGO bits from process_openbsd.go (also v3)
Prior to this commit CGO was used in OpenBSD implementation of
Process.CmdlineSliceWithContext() for parsing the "kern.proc.args"
sysctl output. It requires some pointer arithmetics and raw pointer
dereferencing.

Having CGO in the "process" module prevents it from being go vet'ted
on any platform other than OpenBSD. In order to overcome this
limitation, the sysctl output parsing was reimplemented without raw
pointer deferencing. The resulting code might be slightly slower
than the original one, but it is cleaner and safer.

Since this fix allows go vet with GOOS=openbsd to run without any
issues on all platforms, openbsd entries were also added to the "vet"
Makefile target.

Co-authored-by: Sergey Vinogradov <cbrpnk@gmail.com>
4 years ago
..
testdata [process][linux] fix 1056 test and copy to v2 4 years ago
process.go Clarify the godoc of the Children function. 4 years ago
process_bsd.go Refactor "process" package 5 years ago
process_darwin.go Make cmdNameWithContext lower-case to avoid exporting it 4 years ago
process_darwin_386.go add platform compatibility 9 years ago
process_darwin_amd64.go [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 9 years ago
process_darwin_arm64.go process: change all pointers to uint64 in ExternProc for darwin arm64 4 years ago
process_darwin_cgo.go [darwin][process] Add cgo implementation of Exe() from PR #243 6 years ago
process_darwin_nocgo.go [process][darwin][nocgo] Fix #867 iterate on every lines returned by lsof to handle potential warnings 5 years ago
process_fallback.go [process][solaris] process basics 4 years ago
process_freebsd.go Refactor "process" package 5 years ago
process_freebsd_386.go run go fmt ./... 9 years ago
process_freebsd_amd64.go run go fmt ./... 9 years ago
process_freebsd_arm.go Add native struct support for FreeBSD/arm. 9 years ago
process_freebsd_arm64.go Add support for freebsd/arm64 6 years ago
process_linux.go [process][linux] fix 1056 test and copy to v2 4 years ago
process_linux_test.go [process][linux] fix 1056 test and copy to v2 4 years ago
process_openbsd.go Remove CGO bits from process_openbsd.go (also v3) 4 years ago
process_openbsd_386.go [host][mem][process][openbsd] Add 386 const and types definitions 5 years ago
process_openbsd_amd64.go run go fmt ./... 9 years ago
process_openbsd_arm64.go add support for OpenBSD arm64 4 years ago
process_posix.go [process][solaris] process basics 4 years ago
process_posix_test.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
process_race_test.go fix ppid cache race condition #964 5 years ago
process_solaris.go [process][solaris] improve Exe portability 4 years ago
process_test.go Fix spaces on long process names for MacOS 4 years ago
process_windows.go [process][windows] Fix #714 call OpenProcess with PROCESS_QUERY_INFORMATION on WinXP 4 years ago
process_windows_386.go Added retrieval of OS platform to determine better a process platform. 5 years ago
process_windows_amd64.go Added retrieval of OS platform to determine better a process platform. 5 years ago
types_darwin.go Add support for Darwin/ARM64 5 years ago
types_freebsd.go [process]freebsd: process_freebsd_amd64.go is now generated by cgo godefs. 9 years ago
types_openbsd.go run go fmt ./... 9 years ago