| 1576 | } |
| 1577 | |
| 1578 | int |
| 1579 | itimer_accept(struct proc *p, int timerid, ksiginfo_t *ksi) |
| 1580 | { |
| 1581 | struct itimer *it; |
| 1582 | |
| 1583 | PROC_LOCK_ASSERT(p, MA_OWNED); |
| 1584 | it = itimer_find(p, timerid); |
| 1585 | if (it != NULL) { |
| 1586 | ksi->ksi_overrun = it->it_overrun; |
| 1587 | it->it_overrun_last = it->it_overrun; |
| 1588 | it->it_overrun = 0; |
| 1589 | ITIMER_UNLOCK(it); |
| 1590 | return (0); |
| 1591 | } |
| 1592 | return (EINVAL); |
| 1593 | } |
| 1594 | |
| 1595 | int |
| 1596 | itimespecfix(struct timespec *ts) |
no test coverage detected