public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] arc: libgloss: Use fstat call instead of stat for nSIM
@ 2024-05-22 18:27 Jeff Johnston
  0 siblings, 0 replies; only message in thread
From: Jeff Johnston @ 2024-05-22 18:27 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=25d110dcbdb3a1a02b11f8c53504a27efcda9e82

commit 25d110dcbdb3a1a02b11f8c53504a27efcda9e82
Author: Luis Silva <luis.m.silva99@hotmail.com>
Date:   Tue May 21 10:56:48 2024 +0100

    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>

Diff:
---
 libgloss/arc/nsim-syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgloss/arc/nsim-syscalls.c b/libgloss/arc/nsim-syscalls.c
index d299f8cdc..80747e95d 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;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-22 18:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-22 18:27 [newlib-cygwin/main] arc: libgloss: Use fstat call instead of stat for nSIM Jeff Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).