mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 16:47:27 -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:
+1
-1
@@ -228,7 +228,7 @@ func main() {
|
||||
} else {
|
||||
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||
}
|
||||
} else if p.Type == "int64" && endianness != "" {
|
||||
} else if (p.Type == "int64" || p.Type == "uint64") && endianness != "" {
|
||||
if len(args)%2 == 1 && *arm {
|
||||
// arm abi specifies 64-bit argument uses
|
||||
// (even, odd) pair
|
||||
|
||||
Reference in New Issue
Block a user