source: trunk/libs/newlib/src/libgloss/riscv/sys_stat.c @ 509

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

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

File size: 295 bytes
Line 
1#include <machine/syscall.h>
2#include "kernel_stat.h"
3#include "internal_syscall.h"
4
5/* Status of a file (by name).  */
6
7int
8_stat(const char *file, struct stat *st)
9{
10  struct kernel_stat kst;
11  int rv = syscall_errno (SYS_stat, file, &kst, 0, 0, 0, 0);
12  _conv_stat (st, &kst);
13  return rv;
14}
Note: See TracBrowser for help on using the repository browser.