Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sys_stat.c « riscv « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1e03700df8f4b24128d3d58d2971c8b9f482349f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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, 2, file, &kst, 0, 0, 0, 0);
  _conv_stat (st, &kst);
  return rv;
}