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

Function freebsd11_nstat

freebsd/kern/vfs_syscalls.c:2454–2467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2452};
2453#endif
2454int
2455freebsd11_nstat(struct thread *td, struct freebsd11_nstat_args *uap)
2456{
2457 struct stat sb;
2458 struct nstat nsb;
2459 int error;
2460
2461 error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE,
2462 &sb, NULL);
2463 if (error != 0)
2464 return (error);
2465 freebsd11_cvtnstat(&sb, &nsb);
2466 return (copyout(&nsb, uap->ub, sizeof (nsb)));
2467}
2468
2469/*
2470 * NetBSD lstat. Get file status; this version does not follow links.

Callers

nothing calls this directly

Calls 3

kern_statatFunction · 0.85
freebsd11_cvtnstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected