commit | 528a39cd75f3f6ddc851539b94a54b4da8de49f8 | [log] [tgz] |
---|---|---|
author | Lorenz Bauer <lmb@cloudflare.com> | Wed Sep 08 10:09:57 2021 +0100 |
committer | Ian Lance Taylor <iant@golang.org> | Thu Sep 09 19:32:31 2021 +0000 |
tree | 114956524db7530cd542cd680ef643d80502e3f1 | |
parent | aa78b53d3365f44d41f3623b29dd195e82812487 [diff] |
unix: add PidfdOpen and PidfdGetfd Add wrappers for the pidfd_open and pidfd_getfd sycalls, available since 5.3. PIDFD_NONBLOCK is defined manually since mkerrors.sh doesn't handle including linux/pidfd.h well. See https://man7.org/linux/man-pages/man2/pidfd_open.2.html Change-Id: I68dfb52f6a7a44b7f3324a8379860a1bb765e71b Reviewed-on: https://go-review.googlesource.com/c/sys/+/347332 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@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.