errno is global, but also _Thread_local, to help mitigate issues in a multithreaded environment. A kludge over a kludge...
I was about to say that - it's really a mess
I was about to say that - it's really a mess