mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
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>