Wrote uname function

This commit is contained in:
Kat R. 2022-10-09 11:48:04 -05:00
parent 9c8ba82546
commit a06d3c56a8

9
misc/uname.c Normal file
View file

@ -0,0 +1,9 @@
#include <sys/utsname.h>
#include <kernel/syscall.h>
#include <unistd.h>
int uname(struct utsname * u) {
__syscall_uname(u);
gethostname(u->nodename, 70);
return 1;
}