_wait.c 232 B

123456789101112
  1. #include <lib.h>
  2. #define wait _wait
  3. #include <sys/wait.h>
  4. PUBLIC int wait(status)
  5. int *status;
  6. {
  7. int k;
  8. k = _callm1(MM, WAIT, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
  9. if (k >= 0 && status != 0) *status = _M.m2_i1;
  10. return(k);
  11. }