errno.h, this variable is declared as
extern int errno; so my question is, is it safe to check
errno value after some calls or use perror() in multi-threaded code. Is this a thread safe variable? If not, then whats the alternative ?
I am using linux with gcc on x86 architecture.