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

sys_lstat.c « riscv « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd5dc52685e404f91fbc342d0cfd5b30f252af74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <machine/syscall.h>
#include <sys/stat.h>
#include "internal_syscall.h"
#include "kernel_stat.h"

/* Status of a link (by name).  */
int _lstat(const char *file, struct stat *st)
{
  struct kernel_stat kst;
  int rv = syscall_errno (SYS_lstat, 2, file, &kst, 0, 0, 0, 0);
  _conv_stat (st, &kst);
  return rv;
}