4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 21:09:22 +08:00

15 lines
295 B
C

#include <machine/syscall.h>
#include "kernel_stat.h"
#include "internal_syscall.h"
/* Status of a file (by name). */
int
_stat(const char *file, struct stat *st)
{
struct kernel_stat kst;
int rv = syscall_errno (SYS_stat, file, &kst, 0, 0, 0, 0);
_conv_stat (st, &kst);
return rv;
}