diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-22 23:27:56 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-22 23:30:32 +0100 |
| commit | 0f30d227497418c6d3bef7d52244407e30454504 (patch) | |
| tree | 0e1ac19623d3268380cf74328cdf643648a2f43c /include/errno.h | |
| parent | 90dad97fc07f049383903a166631e2c257f9b8c1 (diff) | |
Added c11 threads, fixed some locks and add *_unlocked functions
Diffstat (limited to 'include/errno.h')
| -rw-r--r-- | include/errno.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/errno.h b/include/errno.h index 800f9a9b..3dd2fa30 100644 --- a/include/errno.h +++ b/include/errno.h @@ -1,7 +1,8 @@ #ifndef __ERRNO_H #define __ERRNO_H -extern _Thread_local int errno; +#include <sys/cdefs.h> +#define errno (*__errno()) #define EPERM 1 #define ENOENT 2 @@ -138,4 +139,6 @@ extern _Thread_local int errno; #define ERFKILL 132 #define EHWPOISON 133 +__const int *__errno(void); + #endif |
