commit | 95da234e122c5f925d4f955e47843f027369c273 | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Mon Nov 01 15:20:19 2021 +0100 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Tue Nov 02 06:13:51 2021 +0000 |
tree | ade39e9194470a09c8034a7435b15c423029b4ad | |
parent | 39c9dd37992ca9274985f36a870bea9458d38de0 [diff] |
unix: add SysctlKinfoProc on darwin This allows to get KinfoProc for a given process using SysctlKinfoProcSlice("kern.proc.pid", pid) rather than having to query all processes using SysctlKinfoProcSlice() and the extracting the relevant KinfoProc. Change-Id: I965ea5c77d6f3441592b4540c54ab56f6ac9e27d Reviewed-on: https://go-review.googlesource.com/c/sys/+/359676 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.