aboutsummaryrefslogtreecommitdiff
path: root/psx/psx.go
diff options
context:
space:
mode:
Diffstat (limited to 'psx/psx.go')
-rw-r--r--psx/psx.go24
1 files changed, 14 insertions, 10 deletions
diff --git a/psx/psx.go b/psx/psx.go
index 529f19d..77648e2 100644
--- a/psx/psx.go
+++ b/psx/psx.go
@@ -3,13 +3,17 @@
package psx // import "kernel.org/pub/linux/libs/security/libcap/psx"
-import (
- "syscall"
-)
-
-// Syscall3 and Syscall6 are aliases for syscall.AllThreadsSyscall*
-// when compiled CGO_ENABLED=0.
-var (
- Syscall3 = syscall.AllThreadsSyscall
- Syscall6 = syscall.AllThreadsSyscall6
-)
+import "syscall"
+
+// Documentation for these functions are provided in the psx_cgo.go
+// file.
+
+//go:uintptrescapes
+func Syscall3(syscallnr, arg1, arg2, arg3 uintptr) (uintptr, uintptr, syscall.Errno) {
+ return syscall.AllThreadsSyscall(syscallnr, arg1, arg2, arg3)
+}
+
+//go:uintptrescapes
+func Syscall6(syscallnr, arg1, arg2, arg3, arg4, arg5, arg6 uintptr) (uintptr, uintptr, syscall.Errno) {
+ return syscall.AllThreadsSyscall6(syscallnr, arg1, arg2, arg3, arg4, arg5, arg6)
+}