summaryrefslogtreecommitdiff
path: root/include/errno.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-22 23:27:56 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-22 23:30:32 +0100
commit0f30d227497418c6d3bef7d52244407e30454504 (patch)
tree0e1ac19623d3268380cf74328cdf643648a2f43c /include/errno.h
parent90dad97fc07f049383903a166631e2c257f9b8c1 (diff)
Added c11 threads, fixed some locks and add *_unlocked functions
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h5
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