wait.c 189 B

12345678910
  1. #include "lib.h"
  2. PUBLIC int wait(status)
  3. int *status;
  4. {
  5. int k;
  6. k = callm1(MM, WAIT, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
  7. if (k >= 0 && status != 0) *status = M.m2_i1;
  8. return(k);
  9. }