diff options
Diffstat (limited to 'cgo/testdata/errors.out.go')
-rw-r--r-- | cgo/testdata/errors.out.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cgo/testdata/errors.out.go b/cgo/testdata/errors.out.go index baadba68d..cbac4fceb 100644 --- a/cgo/testdata/errors.out.go +++ b/cgo/testdata/errors.out.go @@ -24,6 +24,7 @@ package main +import "syscall" import "unsafe" var _ unsafe.Pointer @@ -55,6 +56,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 |