new: mutex

This commit is contained in:
fslongjin
2022-07-31 17:09:12 +08:00
parent b98a3679c9
commit 946bbef392
10 changed files with 332 additions and 6 deletions

12
kernel/common/sys/wait.h Normal file
View File

@ -0,0 +1,12 @@
#pragma once
#include "types.h"
/**
* @brief 等待指定pid的子进程退出
*
* @param pid 子进程的pid
* @param stat_loc 返回的子进程结束状态
* @param options 额外的控制选项
* @return pid_t
*/
pid_t waitpid(pid_t pid, int *stat_loc, int options);