From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzrTt-00078t-VC for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:32:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzrTr-00077A-3l for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:32:24 -0500 Received: from [199.232.76.173] (port=52494 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzrTq-000772-Sq for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:32:22 -0500 Received: from hall.aurel32.net ([88.191.82.174]:59099) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KzrTo-000369-3e for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:32:20 -0500 Received: from volta-wlan.aurel32.net ([2002:52e8:2fb:ffff:21d:e0ff:fe49:1047] helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KzrRh-0008Hb-Uc for qemu-devel@nongnu.org; Tue, 11 Nov 2008 12:30:10 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1KzrRg-0005tH-Sp for qemu-devel@nongnu.org; Tue, 11 Nov 2008 12:30:08 +0100 Date: Tue, 11 Nov 2008 12:30:08 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [patch] alpha - add proper fcntl definitions Message-ID: <20081111113008.GA9526@volta.aurel32.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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