From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [patch] arm semihosting open bug
Date: Sat, 30 Apr 2005 16:21:27 +0100 [thread overview]
Message-ID: <200504301621.29099.paul@codesourcery.com> (raw)
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:
reply other threads:[~2005-05-01 16:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200504301621.29099.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.