gopsutil/internal/common
Lomanic 76ccf0d220 [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep
pgrep -P $PID exits with status of 1 (and nothing in stdout nor stderr) both if
a process doesn't exist or it doesn't have child processes, so we don't
use it anymore on these OSes. We sort PIDs as pgrep did.

Also deprecate the ErrorNoChildren error when there are no child processes,
this is erroneous (simply check for the length of the returned slice, plus
this is not an error per se), this was only returned on linux anyway.

Fixes #1698
..
binary.go add SPDX License, remove old build tag, and replace import
common.go fix golangcilint errors, ignore gosec G115
common_darwin.go add SPDX License, remove old build tag, and replace import
common_freebsd.go add SPDX License, remove old build tag, and replace import
common_linux.go fix: remove tab in empty line
common_netbsd.go add SPDX License, remove old build tag, and replace import
common_openbsd.go add SPDX License, remove old build tag, and replace import
common_test.go add SPDX License, remove old build tag, and replace import
common_unix.go [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep
common_windows.go add SPDX License, remove old build tag, and replace import
endian.go add SPDX License, remove old build tag, and replace import
sleep.go add SPDX License, remove old build tag, and replace import
sleep_test.go add SPDX License, remove old build tag, and replace import
warnings.go add SPDX License, remove old build tag, and replace import