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

Function freebsd11_fstat

freebsd/kern/kern_descrip.c:1491–1505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1489
1490#if defined(COMPAT_FREEBSD11)
1491int
1492freebsd11_fstat(struct thread *td, struct freebsd11_fstat_args *uap)
1493{
1494 struct stat sb;
1495 struct freebsd11_stat osb;
1496 int error;
1497
1498 error = kern_fstat(td, uap->fd, &sb);
1499 if (error != 0)
1500 return (error);
1501 error = freebsd11_cvtstat(&sb, &osb);
1502 if (error == 0)
1503 error = copyout(&osb, uap->sb, sizeof(osb));
1504 return (error);
1505}
1506#endif /* COMPAT_FREEBSD11 */
1507
1508/*

Callers

nothing calls this directly

Calls 3

kern_fstatFunction · 0.85
freebsd11_cvtstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected