unix: add Signalfd on linux

Also add the SFD_* constants and SignalfdSiginfo type.

Change-Id: I3415c212b85c9d5a940ba2bf70f43739a2630d78
Reviewed-on: https://go-review.googlesource.com/c/157897
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Tobias Klauser
2019-01-15 15:29:22 +00:00
committed by Tobias Klauser
parent 2be5172556
commit a457fd0364
42 changed files with 383 additions and 2 deletions
+3
View File
@@ -36,6 +36,7 @@ package unix
#include <sys/resource.h>
#include <sys/select.h>
#include <sys/signal.h>
#include <sys/signalfd.h>
#include <sys/statfs.h>
#include <sys/statvfs.h>
#include <sys/sysinfo.h>
@@ -748,6 +749,8 @@ const (
type Sigset_t C.sigset_t
type SignalfdSiginfo C.struct_signalfd_siginfo
const RNDGETENTCNT = C.RNDGETENTCNT
const PERF_IOC_FLAG_GROUP = C.PERF_IOC_FLAG_GROUP