blob: c4290902d8739b3673bb28c7d64cc4cb90ceec8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#if 0
#include "_perthread.h"
/*
This version of __errno() is for single-threaded programs and those compiled
with _Thread_local support from C11 or later.
For programs that require per-thread errno without language support (i.e.
using pthreads), there is an identically signatured version of this function
in pthread/__pt_errno.c which uses pthread keys.
*/
int *__errno(void)
{
THREAD_LOCAL int e = 0;
return &e;
}
#endif
|