waitpid.c 504 B

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