123456789101112131415161718192021 |
- #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);
|