]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/misc/internals/__errno_location.c
487a9c2c55e41636bcf2cf88a49275bd20e5410f
[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 "internal_errno.h"
8
9 /* psm: moved to bits/errno.h: */
10 int * weak_const_function __errno_location (void)
11 {
12     return &errno;
13 }
14 #ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
15 libc_hidden_weak(__errno_location)
16 #endif