summaryrefslogtreecommitdiff
path: root/libc/misc/internals/__errno_location.c
blob: c0146ce68ab58b4e0d8608a5dfde3e0d95a2bf24 (plain)
1
2
3
4
5
6
7
8
9
10
#include <errno.h>
#undef errno
libc_hidden_proto(errno)

/* psm: moved to bits/errno.h: libc_hidden_proto(__errno_location) */
int * weak_const_function __errno_location (void)
{
    return &errno;
}
#ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */