mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-29 21:36:43 -04:00
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:
committed by
Tobias Klauser
parent
2be5172556
commit
a457fd0364
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user