mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
The kernel raw syscall takes an additional parameter specifying the size of the Sigset_t parameter, returns a file descriptor and sets errno. Add a uintptr maxSize parameter, adjust the return to be (newfd int, err error). Add the _NSIG #define and a wrapper to call with maxSize set to _C__NSIG/8 as done in glibc/musl. Change-Id: I277db0aab5c12364533c26ea800b7f394ec83ae4 Reviewed-on: https://go-review.googlesource.com/c/sys/+/178858 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>