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-26 13:12:03 +00:00
Code Issues Projects Releases Wiki Activity
Files
9743a399bf4d6da9a1dbdf7e8df07284c97df16f
musl/src/network/h_errno.c

10 lines
101 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>
fix misplaced semicolon in preprocessor directive (#undef h_errno)
2012-05-16 20:14:30 -04:00
#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: 107ms Template: 3ms
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