| 2320 | } |
| 2321 | |
| 2322 | int |
| 2323 | freebsd11_fhstat(struct thread *td, struct freebsd11_fhstat_args* uap) |
| 2324 | { |
| 2325 | struct fhandle fh; |
| 2326 | struct stat sb; |
| 2327 | struct freebsd11_stat osb; |
| 2328 | int error; |
| 2329 | |
| 2330 | error = copyin(uap->u_fhp, &fh, sizeof(fhandle_t)); |
| 2331 | if (error != 0) |
| 2332 | return (error); |
| 2333 | error = kern_fhstat(td, fh, &sb); |
| 2334 | if (error != 0) |
| 2335 | return (error); |
| 2336 | error = freebsd11_cvtstat(&sb, &osb); |
| 2337 | if (error == 0) |
| 2338 | error = copyout(&osb, uap->sb, sizeof(osb)); |
| 2339 | return (error); |
| 2340 | } |
| 2341 | |
| 2342 | int |
| 2343 | freebsd11_fstatat(struct thread *td, struct freebsd11_fstatat_args* uap) |
nothing calls this directly
no test coverage detected