summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals/__errno_location.c
blob: c0b1532b972831c773023e6d1c627eea4822dcb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <errno.h>

#ifndef __UCLIBC_HAS_THREADS_NATIVE__
#undef errno
extern int errno;
#endif

int *
#ifndef __UCLIBC_HAS_THREADS_NATIVE__
weak_const_function
#endif
__errno_location (void)
{
    return &errno;
}