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