[USER] Fork syscall

This commit is contained in:
2017-02-21 15:10:47 +01:00
parent a2cba95346
commit 5e4946e8e4
6 changed files with 63 additions and 10 deletions

View File

@@ -1,4 +1,8 @@
#include "syscalls.h"
#include "syscall_num.h"
#include <pthread.h>
#include <signal.h>
long kernel_syscall(int num, ...);
struct pthread *__pt;
@@ -19,3 +23,22 @@ SYSCALL_DEF(set_tid_address)
SYSCALL_INIT();
return 0;
}
SYSCALL_DEF(rt_sigprocmask)
{
SYSCALL_INIT(int, how, const sigset_t *, set, sigset_t *, oldset);
return 0;
}
SYSCALL_DEF(fork)
{
SYSCALL_INIT();
return kernel_syscall(SYS_FORK);
}
SYSCALL_DEF(gettid)
{
SYSCALL_INIT();
return 0;
}