From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzlTn-0005i2-IN for qemu-devel@nongnu.org; Tue, 11 Nov 2008 00:07:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzlTk-0005gt-07 for qemu-devel@nongnu.org; Tue, 11 Nov 2008 00:07:55 -0500 Received: from [199.232.76.173] (port=34046 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzlTj-0005gp-PE for qemu-devel@nongnu.org; Tue, 11 Nov 2008 00:07:51 -0500 Received: from csl.cornell.edu ([128.84.224.10]:1112 helo=vlsi.csl.cornell.edu) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzlTj-0006n2-9v for qemu-devel@nongnu.org; Tue, 11 Nov 2008 00:07:51 -0500 Received: from cacao.csl.cornell.edu (cacao.csl.cornell.edu [128.84.224.47]) by vlsi.csl.cornell.edu (8.13.4/8.13.4) with ESMTP id mAB57jit058037 for ; Tue, 11 Nov 2008 00:07:50 -0500 (EST) Date: Tue, 11 Nov 2008 00:07:45 -0500 (EST) From: Vince Weaver Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [Qemu-devel] [patch] alpha - add proper fcntl definitions 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 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. 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