MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ofstat

Function ofstat

freebsd/kern/kern_descrip.c:1474–1487  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

1472#endif
1473/* ARGSUSED */
1474int
1475ofstat(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)

Callers

nothing calls this directly

Calls 3

kern_fstatFunction · 0.85
cvtstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected