summaryrefslogtreecommitdiff
path: root/libc/misc/internals/errno.c
blob: 442f43f61396ff48ffcba74f0cef0333f4a9f166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <features.h>
#include <errno.h>
#undef errno

#ifdef __UCLIBC_HAS_TLS__
__thread int errno attribute_tls_model_ie;
#else
extern int errno;
int errno = 0;
# ifdef __UCLIBC_HAS_THREADS__
strong_alias(errno,_errno)
# endif
#endif