Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-06-27 05:32:06 +00:00
Code Issues Projects Releases Wiki Activity
Files
c5f3add3254de442f90f8102503c6df7b39e941e
musl/src/network/h_errno.c

10 lines
102 B
C
Raw Normal View History

use __h_errno_location for h_errno we do not bother making h_errno thread-local since the only interfaces that use it are inherently non-thread-safe. but still use the potentially-thread-local ABI to access it just to avoid lock-in.
2012-05-12 23:45:07 -04:00
#include <netdb.h>
#undef h_errno;
initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
int h_errno;
use __h_errno_location for h_errno we do not bother making h_errno thread-local since the only interfaces that use it are inherently non-thread-safe. but still use the potentially-thread-local ABI to access it just to avoid lock-in.
2012-05-12 23:45:07 -04:00
int *__h_errno_location(void)
{
return &h_errno;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 523ms Template: 16ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API