| 304 | }; |
| 305 | #endif |
| 306 | int |
| 307 | sys_preadv(struct thread *td, struct preadv_args *uap) |
| 308 | { |
| 309 | struct uio *auio; |
| 310 | int error; |
| 311 | |
| 312 | error = copyinuio(uap->iovp, uap->iovcnt, &auio); |
| 313 | if (error) |
| 314 | return (error); |
| 315 | error = kern_preadv(td, uap->fd, auio, uap->offset); |
| 316 | free(auio, M_IOV); |
| 317 | return (error); |
| 318 | } |
| 319 | |
| 320 | int |
| 321 | kern_preadv(struct thread *td, int fd, struct uio *auio, off_t offset) |
nothing calls this directly
no test coverage detected