Cygwin: lockf: Fix adding a new lock over multiple locks
[newlib-cygwin.git] / libgloss / riscv / sys_stat.c
blob1e03700df8f4b24128d3d58d2971c8b9f482349f
1 #include <machine/syscall.h>
2 #include "kernel_stat.h"
3 #include "internal_syscall.h"
5 /* Status of a file (by name). */
7 int
8 _stat(const char *file, struct stat *st)
10 struct kernel_stat kst;
11 int rv = syscall_errno (SYS_stat, 2, file, &kst, 0, 0, 0, 0);
12 _conv_stat (st, &kst);
13 return rv;