summaryrefslogblamecommitdiff
path: root/src/errno/__errno_location.c
blob: 0a220b6383a6d1ff547164c34c075b4614cd65c7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                              
#include <errno.h>
#include "libc.h"

#undef errno
int errno;

int *__errno_location(void)
{
	if (libc.errno_location) return libc.errno_location();
	return &errno;
}