OSDN Git Service

redo errno handling so that it should work both in thread and non-threaded situations
[uclinux-h8/uclibc-ng.git] / libc / misc / internals / errno.c
1 #include "internal_errno.h"
2
3 #ifdef __UCLIBC_HAS_THREADS__
4 libc_hidden_proto(errno)
5 libc_hidden_proto(h_errno)
6 #endif
7 int errno = 0;
8 int h_errno = 0;
9
10 #ifdef __UCLIBC_HAS_THREADS__
11 //weak_alias(_errno, errno)
12 libc_hidden_def(errno)
13 //weak_alias(_h_errno, h_errno)
14 libc_hidden_def(h_errno)
15 #endif