summaryrefslogtreecommitdiff
path: root/src/nonstd/__libc.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-12 13:26:50 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-12 13:26:50 -0400
commit1e04052f49c8fa26213de2a0a7e9d43ad873d5a1 (patch)
treefc2649adbad6f3f8dcfff405cc5ad840c4db4abd /src/nonstd/__libc.c
parentc53a55b6db53de6691660483e1a5d695a43ac090 (diff)
migrate __errno() to using _perthread.h macros
Diffstat (limited to 'src/nonstd/__libc.c')
-rw-r--r--src/nonstd/__libc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nonstd/__libc.c b/src/nonstd/__libc.c
index 9000dd46..0d8351ab 100644
--- a/src/nonstd/__libc.c
+++ b/src/nonstd/__libc.c
@@ -1,7 +1,5 @@
-#include "sys/types.h"
#include "../_nonstd.h"
#include "../locale/_locale.h"
-#include "../stdio/_stdio.h"
void *__libc(LIBC_INTERNAL variable)
{
@@ -11,9 +9,6 @@ void *__libc(LIBC_INTERNAL variable)
void *r = (void*)0;
switch (variable) {
- case ERRNO:
- return __libc_per_thread(ERRNO);
-
case THREAD_LOCALE:
r = __libc_per_thread(THREAD_LOCALE);
if (r) {