]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/misc/internals/__errno_location.c
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / misc / internals / __errno_location.c
1 /*
2  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
3  *
4  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5  */
6
7 #include <features.h>
8 #include <errno.h>
9
10 #ifndef __UCLIBC_HAS_TLS__
11 # undef errno
12 extern int errno;
13 #endif
14
15 int weak_const_function *__errno_location(void)
16 {
17     return &errno;
18 }