[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [patch] arm semihosting open bug
From: |
Paul Brook |
Subject: |
[Qemu-devel] [patch] arm semihosting open bug |
Date: |
Sat, 30 Apr 2005 16:21:27 +0100 |
User-agent: |
KMail/1.7.2 |
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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [patch] arm semihosting open bug,
Paul Brook <=