2 ms·
errno is multithreaded. It's just a macro for a function like: #define errno (*__get_errno_location()) This is equivalent to having getter-setter functions
by kazinator 8y ago
errno is multithreaded.
It's just a macro for a function like:
#define errno (*__get_errno_location())
This is equivalent to having getter-setter functions, like in Microsoft's Win32 API, which has GetLastError and SetLastError.
- naasking 8y agoAnd it's terrible for performance, so much so that it can't be used everywhere errors may need to be returned.