]> sourceware.org Git - newlib-cygwin.git/commitdiff
arc: libgloss: Use fstat call instead of stat for nSIM
authorLuis Silva <luis.m.silva99@hotmail.com>
Tue, 21 May 2024 09:56:48 +0000 (10:56 +0100)
committerJeff Johnston <jjohnstn@redhat.com>
Wed, 22 May 2024 18:25:37 +0000 (14:25 -0400)
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>
libgloss/arc/nsim-syscalls.c

index d299f8cdc07af3151b3c2f96077f6c191fb2421b..80747e95db2c9cf22f812fbd1672582d3a90b9ce 100644 (file)
@@ -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;
 }
This page took 0.028849 seconds and 5 git commands to generate.