FENIX_libc/misc/uname.c

9 lines
173 B
C
Raw Normal View History

2022-10-09 16:48:04 +00:00
#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;
}