wait.c 461 B

1234567891011121314
  1. /*
  2. * Copyright (C) 2006 Steven J. Hill <sjhill@realitydiluted.com>
  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 <sys/wait.h>
  8. #include <cancel.h>
  9. static pid_t __NC(wait)(__WAIT_STATUS_DEFN stat_loc)
  10. {
  11. return __wait4_nocancel(WAIT_ANY, stat_loc, 0, (struct rusage *)NULL);
  12. }
  13. CANCELLABLE_SYSCALL(pid_t, wait, (__WAIT_STATUS_DEFN stat_loc), (stat_loc))