| 4547 | }; |
| 4548 | #endif |
| 4549 | int |
| 4550 | sys_fhstat(struct thread *td, struct fhstat_args *uap) |
| 4551 | { |
| 4552 | struct stat sb; |
| 4553 | struct fhandle fh; |
| 4554 | int error; |
| 4555 | |
| 4556 | error = copyin(uap->u_fhp, &fh, sizeof(fh)); |
| 4557 | if (error != 0) |
| 4558 | return (error); |
| 4559 | error = kern_fhstat(td, fh, &sb); |
| 4560 | if (error == 0) |
| 4561 | error = copyout(&sb, uap->sb, sizeof(sb)); |
| 4562 | return (error); |
| 4563 | } |
| 4564 | |
| 4565 | int |
| 4566 | kern_fhstat(struct thread *td, struct fhandle fh, struct stat *sb) |
nothing calls this directly
no test coverage detected