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:
Dominik Honnef
2019-03-03 19:25:50 +00:00
parent d455e41777
commit c2f5717e61
43 changed files with 1038 additions and 1 deletions
+7
View File
@@ -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