diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-16 17:02:05 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-16 17:02:05 +0100 |
| commit | 90dad97fc07f049383903a166631e2c257f9b8c1 (patch) | |
| tree | 096cd247ecfda9e46598215a4f32aecedeedda90 /lib/libc/errno/errno.c | |
| parent | 0e832a9329cc4d4647e1ce529846073f21e66991 (diff) | |
Add support for TLS in the libc
Diffstat (limited to 'lib/libc/errno/errno.c')
| -rw-r--r-- | lib/libc/errno/errno.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libc/errno/errno.c b/lib/libc/errno/errno.c index 09b22f4d..fc7c99bb 100644 --- a/lib/libc/errno/errno.c +++ b/lib/libc/errno/errno.c @@ -1,7 +1 @@ -#include <__thread.h> -#include <threads.h> - -int *__errno(void) -{ - return &thrd_current()->terrno; -} +_Thread_local int errno; |
