force `val' to be within valid range for intrinsic timeout value */
| 53 | |
| 54 | /* force `val' to be within valid range for intrinsic timeout value */ |
| 55 | staticfn long |
| 56 | itimeout(long val) |
| 57 | { |
| 58 | if (val >= TIMEOUT) |
| 59 | val = TIMEOUT; |
| 60 | else if (val < 1L) |
| 61 | val = 0L; |
| 62 | |
| 63 | return val; |
| 64 | } |
| 65 | |
| 66 | /* increment `old' by `incr' and force result to be valid intrinsic timeout */ |
| 67 | staticfn long |
no outgoing calls
no test coverage detected