DragonOS/user/libs/libc/sys/wait.h

22 lines
428 B
C
Raw Normal View History

2022-05-31 13:55:06 +00:00
#pragma once
#include "types.h"
/**
* @brief 退
*
* @param stat_loc
* @return pid_t
*/
pid_t wait(int *stat_loc);
/**
* @brief pid的子进程退出
*
* @param pid pid
* @param stat_loc
* @param options
* @return pid_t
*/
pid_t waitpid(pid_t pid, int *stat_loc, int options);