Replies: 1 comment
-
|
Yeah the documentation is incorrect when it says, "It returns the result and the libc error code if there is one." It should be fixed by either returning the libc error or just updating the docs. See #244 for possible solutions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While experimenting with the purgo package I ran into some issue when calling a function from my dylib that is expected to always return an error code.
When I investigate the issue with the debugger I see that
SyscallNinternally callssyscall_syscall15X, witch then callsruntime_cgocallbut always return a 0 error code in the end.All of this happening in the
syscall_sysv.gofilefurthermore it seems that
runtime_cgocallreturn a int32 value, it is the error code ?Is this an intended but non documented behavior ?
Thank you for any answer I can get about this issue !
Beta Was this translation helpful? Give feedback.
All reactions