new: 内核态fork

This commit is contained in:
fslongjin
2022-08-01 11:34:06 +08:00
parent 311a6181b5
commit 2fd21e0395
6 changed files with 135 additions and 27 deletions

View File

@ -12,3 +12,17 @@
#include <syscall/syscall.h>
#include <syscall/syscall_num.h>
/**
* @brief fork当前进程
*
* @return pid_t
*/
pid_t fork(void);
/**
* @brief vfork当前进程
*
* @return pid_t
*/
pid_t vfork(void);