linux/errno · macos/errno · windows/errno

Accessors for the C runtime error-number storage used by system and runtime wrappers. The returned reference designates the current thread’s error-number state. Import paths: linux/errno, macos/errno, and windows/errno.


errno (-- errnoRef)

Returns one Int32 Ref to the current thread’s error-number storage.


C runtime scope


Read timing and overwrite


Thread-local behavior


Examples

Linux runtime example

"linux/errno" use
"String" use
"control" use

{} Int32 {} [
  123 errno set
  errno new toString print
  LF print
  0
] "main" exportFunction

Expected Output

123

See also