waitpid.c 226 B

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