errno is global, but also _Thread_local, to help mitigate issues in a multithreaded environment. A kludge over a kludge...