mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 07:07:33 -04:00
unix: add fanotify API on Linux
This teaches unix/mksyscall.go about mapping uint64 to syscall arguments, similar to existing handling of int64. Change-Id: I536b4b09bbf6a8e3016565a4a04d2b9d32cbc624 Reviewed-on: https://go-review.googlesource.com/c/164664 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
@@ -48,6 +48,7 @@ package unix
|
||||
#include <sys/utsname.h>
|
||||
#include <sys/wait.h>
|
||||
#include <linux/errqueue.h>
|
||||
#include <linux/fanotify.h>
|
||||
#include <linux/filter.h>
|
||||
#include <linux/icmpv6.h>
|
||||
#include <linux/if_pppox.h>
|
||||
@@ -1680,3 +1681,9 @@ const (
|
||||
// Socket error queue
|
||||
|
||||
type SockExtendedErr C.struct_sock_extended_err
|
||||
|
||||
// Fanotify
|
||||
|
||||
type FanotifyEventMetadata C.struct_fanotify_event_metadata
|
||||
|
||||
type FanotifyResponse C.struct_fanotify_response
|
||||
|
||||
Reference in New Issue
Block a user