projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
simplify errno implementation
[oweals/musl.git]
/
src
/
errno
/
__errno_location.c
1
#include "pthread_impl.h"
2
3
int *__errno_location(void)
4
{
5
static int e;
6
if (libc.has_thread_pointer) return &__pthread_self()->errno_val;
7
return &e;
8
}