Some stuff for utsname and skeleton for syscalls
This commit is contained in:
parent
d7889d3a84
commit
15db278319
|
@ -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;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef _KERNEL_SYSCALL
|
||||
#define _KERNEL_SYSCALL
|
||||
|
||||
int __syscall_uname(void *);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue