| 353 | }; |
| 354 | #endif |
| 355 | int |
| 356 | sys_fstatfs(struct thread *td, struct fstatfs_args *uap) |
| 357 | { |
| 358 | struct statfs *sfp; |
| 359 | int error; |
| 360 | |
| 361 | sfp = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); |
| 362 | error = kern_fstatfs(td, uap->fd, sfp); |
| 363 | if (error == 0) |
| 364 | error = copyout(sfp, uap->buf, sizeof(struct statfs)); |
| 365 | free(sfp, M_STATFS); |
| 366 | return (error); |
| 367 | } |
| 368 | |
| 369 | int |
| 370 | kern_fstatfs(struct thread *td, int fd, struct statfs *buf) |
nothing calls this directly
no test coverage detected