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

Function olstat

freebsd/kern/vfs_syscalls.c:2169–2182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2167};
2168#endif
2169int
2170olstat(struct thread *td, struct olstat_args *uap)
2171{
2172 struct stat sb;
2173 struct ostat osb;
2174 int error;
2175
2176 error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path,
2177 UIO_USERSPACE, &sb, NULL);
2178 if (error != 0)
2179 return (error);
2180 cvtstat(&sb, &osb);
2181 return (copyout(&osb, uap->ub, sizeof (osb)));
2182}
2183
2184/*
2185 * Convert from an old to a new stat structure.

Callers

nothing calls this directly

Calls 3

kern_statatFunction · 0.85
cvtstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected