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

Function freebsd11_nlstat

freebsd/kern/vfs_syscalls.c:2478–2491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2476};
2477#endif
2478int
2479freebsd11_nlstat(struct thread *td, struct freebsd11_nlstat_args *uap)
2480{
2481 struct stat sb;
2482 struct nstat nsb;
2483 int error;
2484
2485 error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path,
2486 UIO_USERSPACE, &sb, NULL);
2487 if (error != 0)
2488 return (error);
2489 freebsd11_cvtnstat(&sb, &nsb);
2490 return (copyout(&nsb, uap->ub, sizeof (nsb)));
2491}
2492#endif /* COMPAT_FREEBSD11 */
2493
2494/*

Callers

nothing calls this directly

Calls 3

kern_statatFunction · 0.85
freebsd11_cvtnstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected