From 9958bdacfa51b5d8eee386b863cdcc2d76f44f4a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 24 Aug 2021 16:39:35 +0200 Subject: implement FD_SPECIAL_TTY, an stdout equalivent --- src/init/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/init/main.c') diff --git a/src/init/main.c b/src/init/main.c index 0c5f034..7c1c882 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -1,4 +1,5 @@ #include +#include #include // takes a cstring and copies it right before a page boundary @@ -24,6 +25,10 @@ int main() { multipageify("/some/where/file"), sizeof("/some/where/file") - 1); + _syscall_fd_write(FD_STDOUT, "fd test ", 8); + _syscall_fd_close(FD_STDOUT); + _syscall_fd_write(FD_STDOUT, "fd test ", 8); // should fail + _syscall_exit("bye from init! ", sizeof("bye from init! ") - 1); } -- cgit v1.2.3