Kotlin-native and errno

How can i get the value of errno?, its a value that posix linux c functions set to indicate the last error, im calling a posix function that is returning -1 indicating there is an error, SOP is tpo look at errno to get the last error.

posix_errno()
https://github.com/JetBrains/kotlin-native/blob/master/platformLibs/src/platform/linux/posix.def#L42

1 Like