Some stuff for utsname and skeleton for syscalls
This commit is contained in:
parent
d7889d3a84
commit
15db278319
2 changed files with 19 additions and 0 deletions
13
arch/i386/syscall_uname.c
Normal file
13
arch/i386/syscall_uname.c
Normal 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
6
include/kernel/syscall.h
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef _KERNEL_SYSCALL
|
||||||
|
#define _KERNEL_SYSCALL
|
||||||
|
|
||||||
|
int __syscall_uname(void *);
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue