mirror of https://github.com/WebAssembly/wasi-libc
Browse Source
This function returns the address of `errno`, which makes it easier to access from non-C languages since `errno` is a thread-local variable which requires a special ABI.pull/349/head
Dan Gohman
2 years ago
committed by
GitHub
3 changed files with 7 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||||
|
#include <errno.h> |
||||
|
|
||||
|
int *__errno_location(void) { |
||||
|
return &errno; |
||||
|
} |
Loading…
Reference in new issue