☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
network
/
h_errno.c
☽
☼
libc-top-half/musl/src/network/h_errno.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#include <netdb.h>
2
#include "pthread_impl.h"
3
4
#undef h_errno
5
int h_errno;
6
7
int *__h_errno_location(void)
8
{
9
if (!__pthread_self()->stack) return &h_errno;
10
return &__pthread_self()->h_errno_val;
11
}