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

Function sys_fstat

freebsd/kern/kern_descrip.c:1518–1528  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

1516#endif
1517/* ARGSUSED */
1518int
1519sys_fstat(struct thread *td, struct fstat_args *uap)
1520{
1521 struct stat ub;
1522 int error;
1523
1524 error = kern_fstat(td, uap->fd, &ub);
1525 if (error == 0)
1526 error = copyout(&ub, uap->sb, sizeof(ub));
1527 return (error);
1528}
1529
1530int
1531kern_fstat(struct thread *td, int fd, struct stat *sbp)

Callers

nothing calls this directly

Calls 2

kern_fstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected