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

sys_fstatat.c « riscv « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bf033551364b96be6ae5efb5df5b508318fbc02c (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 an open file. The sys/stat.h header file required is
   distributed in the include subdirectory for this C library.  */
int
_fstatat(int dirfd, const char *file, struct stat *st, int flags)
{
  struct kernel_stat kst;
  int rv = syscall_errno (SYS_fstatat, 4, dirfd, file, &kst, flags, 0, 0);
  _conv_stat (st, &kst);
  return rv;
}