newlib: Regenerate autotools files
[newlib-cygwin.git] / libgloss / riscv / sys_fstatat.c
blobbf033551364b96be6ae5efb5df5b508318fbc02c
1 #include <machine/syscall.h>
2 #include "kernel_stat.h"
3 #include "internal_syscall.h"
5 /* Status of an open file. The sys/stat.h header file required is
6 distributed in the include subdirectory for this C library. */
7 int
8 _fstatat(int dirfd, const char *file, struct stat *st, int flags)
10 struct kernel_stat kst;
11 int rv = syscall_errno (SYS_fstatat, 4, dirfd, file, &kst, flags, 0, 0);
12 _conv_stat (st, &kst);
13 return rv;