waitpid.c 217 B

12345678910
  1. #include <syscall.h>
  2. #include <sys/types.h>
  3. #include <sys/wait.h>
  4. #include <sys/resource.h>
  5. __pid_t
  6. waitpid(__pid_t pid, int *wait_stat, int options)
  7. {
  8. return wait4(pid, (__WAIT_STATUS) wait_stat, options, NULL);
  9. }