diff options
author | dzwdz | 2021-08-24 16:39:35 +0200 |
---|---|---|
committer | dzwdz | 2021-08-24 16:39:35 +0200 |
commit | 9958bdacfa51b5d8eee386b863cdcc2d76f44f4a (patch) | |
tree | 8685b3dd5a96b225acfc76314e1ed4f2cfeccaf6 /src/init | |
parent | e6b76a8556e00c6f143679af8056c1b62e1c57a8 (diff) |
implement FD_SPECIAL_TTY, an stdout equalivent
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <kernel/syscalls.h> +#include <shared/magic.h> #include <stdint.h> // 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); } |