| 279 | } |
| 280 | |
| 281 | int |
| 282 | kern_readv(struct thread *td, int fd, struct uio *auio) |
| 283 | { |
| 284 | struct file *fp; |
| 285 | int error; |
| 286 | |
| 287 | error = fget_read(td, fd, &cap_read_rights, &fp); |
| 288 | if (error) |
| 289 | return (error); |
| 290 | error = dofileread(td, fd, fp, auio, (off_t)-1, 0); |
| 291 | fdrop(fp, td); |
| 292 | return (error); |
| 293 | } |
| 294 | |
| 295 | /* |
| 296 | * Scatter positioned read system call. |
no test coverage detected