| 310 | }; |
| 311 | #endif |
| 312 | int |
| 313 | sys_statfs(struct thread *td, struct statfs_args *uap) |
| 314 | { |
| 315 | struct statfs *sfp; |
| 316 | int error; |
| 317 | |
| 318 | sfp = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); |
| 319 | error = kern_statfs(td, uap->path, UIO_USERSPACE, sfp); |
| 320 | if (error == 0) |
| 321 | error = copyout(sfp, uap->buf, sizeof(struct statfs)); |
| 322 | free(sfp, M_STATFS); |
| 323 | return (error); |
| 324 | } |
| 325 | |
| 326 | int |
| 327 | kern_statfs(struct thread *td, const char *path, enum uio_seg pathseg, |
nothing calls this directly
no test coverage detected