Skip to content(if available)orjump to list(if available)

What is going on in Unix with errno's limited nature

amelius

Why didn't they mention threads?

bartvk

Oh gosh, that's interesting. I bet that complicates using using errno. Or is errno somehow copied into a local variable?

Vogtinator

errno is in thread-local storage (TLS)

amelius

Yes. It is too bad that they didn't use a similar solution for the current working directory. Chdir() is process-wide, not thread local :(