waitpid.c 431 B

12345678910111213141516171819
  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. __pid_t waitpid(__pid_t pid, int *wait_stat, int options)
  13. {
  14. return wait4(pid, wait_stat, options, NULL);
  15. }
  16. libc_hidden_def(waitpid)