-
-/*
- * interruptable sleep with longjmp processing.
- * TEMPORARY UNTIL ALL CALLERS ARE TAUGHT TO UNWIND
- */
-tsleep(chan, pri, wmesg, timeout)
- caddr_t chan;
- int pri;
- char *wmesg;
- int timeout;
-{
- if (pri <= PZERO)
- panic("tsleep: pri <= PZERO");
- if (isleep(chan, pri, wmesg, timeout) == EINTR)
- longjmp(&u.u_qsave);
-}
-
-/*
- * Interruptable sleep.
- * Sleeps on chan for time of at most timo/hz seconds (0 means no timeout).
- * Returns 0 if awakened, EINTR if a signal needs to be delivered,
- * or EWOULDBLOCK if the timeout expires.
- */
-isleep(chan, pri, wmesg, timo)
+tsleep(chan, pri, wmesg, timo)