diff options
author | Luis Silva <luis.m.silva99@hotmail.com> | 2024-05-21 10:56:48 +0100 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2024-05-22 14:25:37 -0400 |
commit | 25d110dcbdb3a1a02b11f8c53504a27efcda9e82 (patch) | |
tree | 6d84efed0917970152675b8f73efc11efdfb495a /libgloss/arc | |
parent | 3f7e8eef09fe8d8db2b6e801c2072df2b2099aae (diff) | |
download | newlib-25d110dcbdb3a1a02b11f8c53504a27efcda9e82.zip newlib-25d110dcbdb3a1a02b11f8c53504a27efcda9e82.tar.gz newlib-25d110dcbdb3a1a02b11f8c53504a27efcda9e82.tar.bz2 |
arc: libgloss: Use fstat call instead of stat for nSIM
This change is needed to meet semi-hosting requirements
for nSIM GNU I/O interface.
Signed-off-by: Luis Silva <luis.m.silva99@hotmail.com>
Diffstat (limited to 'libgloss/arc')
-rw-r--r-- | libgloss/arc/nsim-syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgloss/arc/nsim-syscalls.c b/libgloss/arc/nsim-syscalls.c index d299f8c..80747e9 100644 --- a/libgloss/arc/nsim-syscalls.c +++ b/libgloss/arc/nsim-syscalls.c @@ -206,7 +206,7 @@ _fstat (int fd, struct stat *buf) { struct nsim_stat nsim_stat; long __res; - _naked_syscall2 (__res, stat, fd, &nsim_stat) + _naked_syscall2 (__res, fstat, fd, &nsim_stat) translate_stat (&nsim_stat, buf); return __res; } |