summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/stdin.c
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 /lib/libc/stdio/stdin.c
parent90dad97fc07f049383903a166631e2c257f9b8c1 (diff)
Added c11 threads, fixed some locks and add *_unlocked functions
Diffstat (limited to 'lib/libc/stdio/stdin.c')
-rw-r--r--lib/libc/stdio/stdin.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libc/stdio/stdin.c b/lib/libc/stdio/stdin.c
deleted file mode 100644
index 0d127efa..00000000
--- a/lib/libc/stdio/stdin.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "__stdio.h" // for __FILE
-
-#include <fcntl.h> // for O_RDONLY
-#include <stdio.h> // for FILE, stdin
-#include <sys/cdefs.h>
-#include <unistd.h> // for STDOUT_FILENO
-
-#define BUFSIZ 4096
-
-__weak char __stdin_buffer[0];
-struct __FILE __stdin = { .fd = STDOUT_FILENO,
- .flags = O_RDONLY,
- .buf = __stdin_buffer,
- .type = 0x0,
- .buf_size = BUFSIZ,
- .buf_pos = 0,
- .offset = 0 };
-
-FILE *const stdin = (FILE *)&__stdin;