| 481 | } |
| 482 | |
| 483 | int |
| 484 | kern_writev(struct thread *td, int fd, struct uio *auio) |
| 485 | { |
| 486 | struct file *fp; |
| 487 | int error; |
| 488 | |
| 489 | error = fget_write(td, fd, &cap_write_rights, &fp); |
| 490 | if (error) |
| 491 | return (error); |
| 492 | error = dofilewrite(td, fd, fp, auio, (off_t)-1, 0); |
| 493 | fdrop(fp, td); |
| 494 | return (error); |
| 495 | } |
| 496 | |
| 497 | /* |
| 498 | * Gather positioned write system call. |
no test coverage detected