summaryrefslogtreecommitdiff
path: root/lib/libc/errno/errno.c
blob: 09b22f4de9af6c05a05521188ad86473c679ecf7 (plain)
1
2
3
4
5
6
7
#include <__thread.h>
#include <threads.h>

int *__errno(void)
{
	return &thrd_current()->terrno;
}