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

Function freebsd11_lstat

freebsd/kern/vfs_syscalls.c:2305–2320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2303}
2304
2305int
2306freebsd11_lstat(struct thread *td, struct freebsd11_lstat_args* uap)
2307{
2308 struct stat sb;
2309 struct freebsd11_stat osb;
2310 int error;
2311
2312 error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path,
2313 UIO_USERSPACE, &sb, NULL);
2314 if (error != 0)
2315 return (error);
2316 error = freebsd11_cvtstat(&sb, &osb);
2317 if (error == 0)
2318 error = copyout(&osb, uap->ub, sizeof(osb));
2319 return (error);
2320}
2321
2322int
2323freebsd11_fhstat(struct thread *td, struct freebsd11_fhstat_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