| 999 | }; |
| 1000 | #endif |
| 1001 | int |
| 1002 | sys_select(struct thread *td, struct select_args *uap) |
| 1003 | { |
| 1004 | struct timeval tv, *tvp; |
| 1005 | int error; |
| 1006 | |
| 1007 | if (uap->tv != NULL) { |
| 1008 | error = copyin(uap->tv, &tv, sizeof(tv)); |
| 1009 | if (error) |
| 1010 | return (error); |
| 1011 | tvp = &tv; |
| 1012 | } else |
| 1013 | tvp = NULL; |
| 1014 | |
| 1015 | return (kern_select(td, uap->nd, uap->in, uap->ou, uap->ex, tvp, |
| 1016 | NFDBITS)); |
| 1017 | } |
| 1018 | |
| 1019 | /* |
| 1020 | * In the unlikely case when user specified n greater then the last |
nothing calls this directly
no test coverage detected