source: trunk/libs/newlib/src/libgloss/riscv/sys_fstat.c @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 387 bytes
Line 
1#include <machine/syscall.h>
2#include "kernel_stat.h"
3#include "internal_syscall.h"
4
5/* Status of an open file. The sys/stat.h header file required is
6   distributed in the include subdirectory for this C library.  */
7
8int
9_fstat(int file, struct stat *st)
10{
11  struct kernel_stat kst;
12  int rv = syscall_errno (SYS_fstat, file, &kst, 0, 0, 0, 0);
13  _conv_stat (st, &kst);
14  return rv;
15}
Note: See TracBrowser for help on using the repository browser.