ARGSUSED */
| 1472 | #endif |
| 1473 | /* ARGSUSED */ |
| 1474 | int |
| 1475 | ofstat(struct thread *td, struct ofstat_args *uap) |
| 1476 | { |
| 1477 | struct ostat oub; |
| 1478 | struct stat ub; |
| 1479 | int error; |
| 1480 | |
| 1481 | error = kern_fstat(td, uap->fd, &ub); |
| 1482 | if (error == 0) { |
| 1483 | cvtstat(&ub, &oub); |
| 1484 | error = copyout(&oub, uap->sb, sizeof(oub)); |
| 1485 | } |
| 1486 | return (error); |
| 1487 | } |
| 1488 | #endif /* COMPAT_43 */ |
| 1489 | |
| 1490 | #if defined(COMPAT_FREEBSD11) |
nothing calls this directly
no test coverage detected