FENIX_libc/misc/uname.c
2022-10-09 11:48:04 -05:00

9 lines
No EOL
173 B
C

#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;
}