| 2143 | }; |
| 2144 | #endif |
| 2145 | int |
| 2146 | ostat(struct thread *td, struct ostat_args *uap) |
| 2147 | { |
| 2148 | struct stat sb; |
| 2149 | struct ostat osb; |
| 2150 | int error; |
| 2151 | |
| 2152 | error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE, |
| 2153 | &sb, NULL); |
| 2154 | if (error != 0) |
| 2155 | return (error); |
| 2156 | cvtstat(&sb, &osb); |
| 2157 | return (copyout(&osb, uap->ub, sizeof (osb))); |
| 2158 | } |
| 2159 | |
| 2160 | /* |
| 2161 | * Get file status; this version does not follow links. |
nothing calls this directly
no test coverage detected