summaryrefslogtreecommitdiff
path: root/src/init/stdlib.c
diff options
context:
space:
mode:
authordzwdz2021-10-10 16:02:10 +0000
committerdzwdz2021-10-10 16:02:10 +0000
commit26911b7c45d362c7760d002e4395e33524c4744a (patch)
treec0495f6470ee9956442da3fe7ab2e138f6907cc4 /src/init/stdlib.c
parentf731536d64ce57ef6297f861bbc785020b132e9b (diff)
init: move __tty_fd to the stdlib, add the underscores to its name
Diffstat (limited to 'src/init/stdlib.c')
-rw-r--r--src/init/stdlib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init/stdlib.c b/src/init/stdlib.c
index 3714324..5c6f45f 100644
--- a/src/init/stdlib.c
+++ b/src/init/stdlib.c
@@ -2,6 +2,9 @@
#include <shared/syscalls.h>
#include <stdarg.h>
+int __tty_fd;
+
+
int memcmp(const void *s1, const void *s2, size_t n) {
const unsigned char *c1 = s1, *c2 = s2;
for (size_t i = 0; i < n; i++) {