waitpid.c 497 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  3. *
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <stdlib.h>
  7. #include <sys/types.h>
  8. #include <sys/types.h>
  9. #include <sys/wait.h>
  10. #include <sys/resource.h>
  11. libc_hidden_proto(wait4)
  12. __pid_t __libc_waitpid(__pid_t pid, int *wait_stat, int options)
  13. {
  14. return wait4(pid, wait_stat, options, NULL);
  15. }
  16. libc_hidden_proto(waitpid)
  17. strong_alias(__libc_waitpid,waitpid)
  18. libc_hidden_def(waitpid)