mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-30 05:46:45 -04:00
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 commit is contained in:
committed by
Ian Lance Taylor
parent
aa78b53d33
commit
528a39cd75
@@ -3829,3 +3829,9 @@ type LandlockPathBeneathAttr C.struct_landlock_path_beneath_attr
|
||||
const (
|
||||
LANDLOCK_RULE_PATH_BENEATH = C.LANDLOCK_RULE_PATH_BENEATH
|
||||
)
|
||||
|
||||
// pidfd flags.
|
||||
|
||||
const (
|
||||
PIDFD_NONBLOCK = C.O_NONBLOCK
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user