From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] alpha - add proper fcntl definitions
Date: Tue, 11 Nov 2008 12:30:08 +0100 [thread overview]
Message-ID: <20081111113008.GA9526@volta.aurel32.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0811110005240.29333-100000@cacao.csl.cornell.edu>
On Tue, Nov 11, 2008 at 12:07:45AM -0500, Vince Weaver wrote:
> Hello
>
> On Alpha the target to native fcntl definitions were missing. Because of
> this, programs trying to open files with the O_CREAT option were getting
> O_APPEND instead, etc.
>
> This was keeping gcc from the spec benchmarks from running, among other
> things.
Thanks, applied.
> Vince
>
> Index: linux-user/syscall_defs.h
> ===================================================================
> --- linux-user/syscall_defs.h (revision 5670)
> +++ linux-user/syscall_defs.h (working copy)
> @@ -1749,6 +1749,25 @@
> #define TARGET_O_NOFOLLOW 0x20000 /* don't follow links */
> #define TARGET_O_NOATIME 0x40000
> #define TARGET_O_NDELAY TARGET_O_NONBLOCK
> +#elif defined(TARGET_ALPHA)
> +#define TARGET_O_ACCMODE 0x0003
> +#define TARGET_O_RDONLY 0x0000
> +#define TARGET_O_WRONLY 0x0001
> +#define TARGET_O_RDWR 0x0002
> +#define TARGET_O_APPEND 0x0008
> +#define TARGET_O_SYNC 0x4000
> +#define TARGET_O_NONBLOCK 0x0004
> +#define TARGET_O_CREAT 0x0200 /* not fcntl */
> +#define TARGET_O_TRUNC 0x0400 /* not fcntl */
> +#define TARGET_O_EXCL 0x0800 /* not fcntl */
> +#define TARGET_O_NOCTTY 0x1000 /* not fcntl */
> +#define TARGET_FASYNC 0x2000 /* fcntl, for BSD compatibility */
> +#define TARGET_O_LARGEFILE 0x0000 /* not necessary, always 64-bit */
> +#define TARGET_O_DIRECT 0x80000 /* direct disk access hint */
> +#define TARGET_O_DIRECTORY 0x8000 /* must be a directory */
> +#define TARGET_O_NOFOLLOW 0x10000 /* don't follow links */
> +#define TARGET_O_NOATIME 0x100000
> +#define TARGET_O_NDELAY TARGET_O_NONBLOCK
> #else
> #define TARGET_O_ACCMODE 0003
> #define TARGET_O_RDONLY 00
>
>
>
>
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
prev parent reply other threads:[~2008-11-11 11:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 5:07 [Qemu-devel] [patch] alpha - add proper fcntl definitions Vince Weaver
2008-11-11 11:30 ` Aurelien Jarno [this message]
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=20081111113008.GA9526@volta.aurel32.net \
--to=aurelien@aurel32.net \
--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 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 NNTP newsgroup(s).