waitpid.c 339 B

1234567891011121314
  1. #define wait4 __wait4
  2. #include <stdlib.h>
  3. #include <sys/types.h>
  4. #include <sys/types.h>
  5. #include <sys/wait.h>
  6. #include <sys/resource.h>
  7. __pid_t attribute_hidden __waitpid(__pid_t pid, int *wait_stat, int options)
  8. {
  9. return __wait4(pid, wait_stat, options, NULL);
  10. }
  11. strong_alias(__waitpid,waitpid)
  12. weak_alias(__waitpid,__libc_waitpid)