All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [patch] arm semihosting open bug
@ 2005-04-30 15:21 Paul Brook
  0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2005-04-30 15:21 UTC (permalink / raw)
  To: qemu-devel

The arm semihosting open syscall does not pass the "mode" argument when 
creating a file. The patch below fixes this.

Paul

Index: arm-semi.c
===================================================================
RCS file: /cvsroot/qemu/qemu/linux-user/arm-semi.c,v
retrieving revision 1.2
diff -u -p -r1.2 arm-semi.c
--- arm-semi.c	26 Apr 2005 20:44:10 -0000	1.2
+++ arm-semi.c	30 Apr 2005 15:13:43 -0000
@@ -99,7 +99,7 @@ uint32_t do_arm_semihosting(CPUState *en
             else
                 return STDOUT_FILENO;
         }
-        return set_swi_errno(ts, open(s, open_modeflags[ARG(1)]));
+        return set_swi_errno(ts, open(s, open_modeflags[ARG(1)], 0644));
     case SYS_CLOSE:
         return set_swi_errno(ts, close(ARG(0)));
     case SYS_WRITEC:

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

only message in thread, other threads:[~2005-05-01 16:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-30 15:21 [Qemu-devel] [patch] arm semihosting open bug Paul Brook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.