waitpid.c 269 B

1234567891011
  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 __libc_waitpid(__pid_t pid, int *wait_stat, int options)
  7. {
  8. return wait4(pid, wait_stat, options, NULL);
  9. }
  10. weak_alias(__libc_waitpid, waitpid)