Hey, look! uname!
This commit is contained in:
parent
15db278319
commit
863a63472f
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,12 @@
|
|||
#include <kernel/tty.h>
|
||||
#include <kernel/init.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void kern_main(void) {
|
||||
term_init();
|
||||
init();
|
||||
struct utsname u;
|
||||
uname(&u);
|
||||
printf("%s %s %s\n", u.sysname, u.release, u.machine);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue