| 1569 | } |
| 1570 | |
| 1571 | int |
| 1572 | ff_poll(struct pollfd fds[], nfds_t nfds, int timeout) |
| 1573 | { |
| 1574 | int rc; |
| 1575 | struct timespec ts; |
| 1576 | ts.tv_sec = 0; |
| 1577 | ts.tv_nsec = 0; |
| 1578 | if ((rc = kern_poll(curthread, fds, nfds, &ts, NULL))) |
| 1579 | goto kern_fail; |
| 1580 | rc = curthread->td_retval[0]; |
| 1581 | return (rc); |
| 1582 | |
| 1583 | kern_fail: |
| 1584 | ff_os_errno(rc); |
| 1585 | return (-1); |
| 1586 | } |
| 1587 | |
| 1588 | int |
| 1589 | ff_kqueue(void) |
nothing calls this directly
no test coverage detected