| 2369 | } |
| 2370 | #endif |
| 2371 | int |
| 2372 | sys_fstatat(struct thread *td, struct fstatat_args *uap) |
| 2373 | { |
| 2374 | struct stat sb; |
| 2375 | int error; |
| 2376 | |
| 2377 | error = kern_statat(td, uap->flag, uap->fd, uap->path, |
| 2378 | UIO_USERSPACE, &sb, NULL); |
| 2379 | if (error == 0) |
| 2380 | error = copyout(&sb, uap->buf, sizeof (sb)); |
| 2381 | return (error); |
| 2382 | } |
| 2383 | |
| 2384 | int |
| 2385 | kern_statat(struct thread *td, int flag, int fd, const char *path, |
nothing calls this directly
no test coverage detected