Hey, look! uname!

This commit is contained in:
Kat R. 2022-10-29 10:05:05 -05:00
parent 15db278319
commit 863a63472f

View file

@ -1,7 +1,12 @@
#include <kernel/tty.h> #include <kernel/tty.h>
#include <kernel/init.h> #include <kernel/init.h>
#include <sys/utsname.h>
#include <stdio.h>
void kern_main(void) { void kern_main(void) {
term_init(); term_init();
init(); init();
struct utsname u;
uname(&u);
printf("%s %s %s\n", u.sysname, u.release, u.machine);
} }