| 2167 | }; |
| 2168 | #endif |
| 2169 | int |
| 2170 | olstat(struct thread *td, struct olstat_args *uap) |
| 2171 | { |
| 2172 | struct stat sb; |
| 2173 | struct ostat osb; |
| 2174 | int error; |
| 2175 | |
| 2176 | error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path, |
| 2177 | UIO_USERSPACE, &sb, NULL); |
| 2178 | if (error != 0) |
| 2179 | return (error); |
| 2180 | cvtstat(&sb, &osb); |
| 2181 | return (copyout(&osb, uap->ub, sizeof (osb))); |
| 2182 | } |
| 2183 | |
| 2184 | /* |
| 2185 | * Convert from an old to a new stat structure. |
nothing calls this directly
no test coverage detected