Some stuff for utsname and skeleton for syscalls

This commit is contained in:
Kat R. 2022-10-29 10:04:39 -05:00
parent d7889d3a84
commit 15db278319
2 changed files with 19 additions and 0 deletions

13
arch/i386/syscall_uname.c Normal file
View file

@ -0,0 +1,13 @@
#include <sys/utsname.h>
#include <string.h>
#define PTR ((struct utsname *) v)
int __syscall_uname(void * v) {
strcpy(PTR->sysname, "FENIX");
strcpy(PTR->release, "PRE-ALPHA");
strcpy(PTR->version, "20220726_1700");
strcpy(PTR->machine, "i386");
return 0;
}

6
include/kernel/syscall.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef _KERNEL_SYSCALL
#define _KERNEL_SYSCALL
int __syscall_uname(void *);
#endif