>...oh. So errno is actually threadsafe, but its "address" is the same in >every thread? Interesting.
MT-Safe errno of Solaris is implemented as a function, so its address is same but the value is different. cf. https://src.illumos.org/source/xref/illumos-gate/usr/src/head/errno.h https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/errno.c Tsuyoshi SASAMOTO nazon...@miobox.jp