| 2303 | } |
| 2304 | |
| 2305 | int |
| 2306 | freebsd11_lstat(struct thread *td, struct freebsd11_lstat_args* uap) |
| 2307 | { |
| 2308 | struct stat sb; |
| 2309 | struct freebsd11_stat osb; |
| 2310 | int error; |
| 2311 | |
| 2312 | error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path, |
| 2313 | UIO_USERSPACE, &sb, NULL); |
| 2314 | if (error != 0) |
| 2315 | return (error); |
| 2316 | error = freebsd11_cvtstat(&sb, &osb); |
| 2317 | if (error == 0) |
| 2318 | error = copyout(&osb, uap->ub, sizeof(osb)); |
| 2319 | return (error); |
| 2320 | } |
| 2321 | |
| 2322 | int |
| 2323 | freebsd11_fhstat(struct thread *td, struct freebsd11_fhstat_args* uap) |
nothing calls this directly
no test coverage detected