aboutsummaryrefslogtreecommitdiffhomepage
path: root/cgo/testdata/symbols.out.go
diff options
context:
space:
mode:
Diffstat (limited to 'cgo/testdata/symbols.out.go')
-rw-r--r--cgo/testdata/symbols.out.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cgo/testdata/symbols.out.go b/cgo/testdata/symbols.out.go
index 569cb65f6..b49150e60 100644
--- a/cgo/testdata/symbols.out.go
+++ b/cgo/testdata/symbols.out.go
@@ -1,5 +1,6 @@
package main
+import "syscall"
import "unsafe"
var _ unsafe.Pointer
@@ -31,6 +32,13 @@ func C.CBytes(b []byte) unsafe.Pointer {
return C.__CBytes(b)
}
+//go:linkname C.__get_errno_num runtime.cgo_errno
+func C.__get_errno_num() uintptr
+
+func C.__get_errno() error {
+ return syscall.Errno(C.__get_errno_num())
+}
+
type (
C.char uint8
C.schar int8