| 1402 | } |
| 1403 | |
| 1404 | int |
| 1405 | sys_poll(struct thread *td, struct poll_args *uap) |
| 1406 | { |
| 1407 | struct timespec ts, *tsp; |
| 1408 | |
| 1409 | if (uap->timeout != INFTIM) { |
| 1410 | if (uap->timeout < 0) |
| 1411 | return (EINVAL); |
| 1412 | ts.tv_sec = uap->timeout / 1000; |
| 1413 | ts.tv_nsec = (uap->timeout % 1000) * 1000000; |
| 1414 | tsp = &ts; |
| 1415 | } else |
| 1416 | tsp = NULL; |
| 1417 | |
| 1418 | return (kern_poll(td, uap->fds, uap->nfds, tsp, NULL)); |
| 1419 | } |
| 1420 | |
| 1421 | int |
| 1422 | kern_poll(struct thread *td, struct pollfd *ufds, u_int nfds, |
nothing calls this directly
no test coverage detected