source: trunk/libs/newlib/src/libgloss/riscv/sys_lstat.c @ 500

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

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

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