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

Function ostat

freebsd/kern/vfs_syscalls.c:2145–2158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2143};
2144#endif
2145int
2146ostat(struct thread *td, struct ostat_args *uap)
2147{
2148 struct stat sb;
2149 struct ostat osb;
2150 int error;
2151
2152 error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE,
2153 &sb, NULL);
2154 if (error != 0)
2155 return (error);
2156 cvtstat(&sb, &osb);
2157 return (copyout(&osb, uap->ub, sizeof (osb)));
2158}
2159
2160/*
2161 * Get file status; this version does not follow links.

Callers

nothing calls this directly

Calls 3

kern_statatFunction · 0.85
cvtstatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected