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

Function freebsd11_stat

freebsd/kern/vfs_syscalls.c:2288–2303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2286}
2287
2288int
2289freebsd11_stat(struct thread *td, struct freebsd11_stat_args* uap)
2290{
2291 struct stat sb;
2292 struct freebsd11_stat osb;
2293 int error;
2294
2295 error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE,
2296 &sb, NULL);
2297 if (error != 0)
2298 return (error);
2299 error = freebsd11_cvtstat(&sb, &osb);
2300 if (error == 0)
2301 error = copyout(&osb, uap->ub, sizeof(osb));
2302 return (error);
2303}
2304
2305int
2306freebsd11_lstat(struct thread *td, struct freebsd11_lstat_args* uap)

Callers

nothing calls this directly

Calls 3

kern_statatFunction · 0.85
freebsd11_cvtstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected