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

Function sys_fstatat

freebsd/kern/vfs_syscalls.c:2371–2382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2369}
2370#endif
2371int
2372sys_fstatat(struct thread *td, struct fstatat_args *uap)
2373{
2374 struct stat sb;
2375 int error;
2376
2377 error = kern_statat(td, uap->flag, uap->fd, uap->path,
2378 UIO_USERSPACE, &sb, NULL);
2379 if (error == 0)
2380 error = copyout(&sb, uap->buf, sizeof (sb));
2381 return (error);
2382}
2383
2384int
2385kern_statat(struct thread *td, int flag, int fd, const char *path,

Callers

nothing calls this directly

Calls 2

kern_statatFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected