waitpid.c 536 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. libc_hidden_proto(wait4)
  12. extern __typeof(waitpid) __libc_waitpid;
  13. __pid_t __libc_waitpid(__pid_t pid, int *wait_stat, int options)
  14. {
  15. return wait4(pid, wait_stat, options, NULL);
  16. }
  17. libc_hidden_proto(waitpid)
  18. weak_alias(__libc_waitpid,waitpid)
  19. libc_hidden_weak(waitpid)