| 2476 | }; |
| 2477 | #endif |
| 2478 | int |
| 2479 | freebsd11_nlstat(struct thread *td, struct freebsd11_nlstat_args *uap) |
| 2480 | { |
| 2481 | struct stat sb; |
| 2482 | struct nstat nsb; |
| 2483 | int error; |
| 2484 | |
| 2485 | error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path, |
| 2486 | UIO_USERSPACE, &sb, NULL); |
| 2487 | if (error != 0) |
| 2488 | return (error); |
| 2489 | freebsd11_cvtnstat(&sb, &nsb); |
| 2490 | return (copyout(&nsb, uap->ub, sizeof (nsb))); |
| 2491 | } |
| 2492 | #endif /* COMPAT_FREEBSD11 */ |
| 2493 | |
| 2494 | /* |
nothing calls this directly
no test coverage detected