From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzrTz-0007Cs-7Q for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:32:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzrTx-0007At-AA for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:32:29 -0500 Received: from [199.232.76.173] (port=52509 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzrTv-00079Y-S5 for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:32:27 -0500 Received: from savannah.gnu.org ([199.232.41.3]:42249 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KzrTo-0003GX-7d for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:32:20 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KzrSL-000356-Js for qemu-devel@nongnu.org; Tue, 11 Nov 2008 11:30:49 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KzrSL-000352-BH for qemu-devel@nongnu.org; Tue, 11 Nov 2008 11:30:49 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Tue, 11 Nov 2008 11:30:49 +0000 Subject: [Qemu-devel] [5672] target-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 Revision: 5672 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5672 Author: aurel32 Date: 2008-11-11 11:30:48 +0000 (Tue, 11 Nov 2008) Log Message: ----------- target-alpha: add proper fcntl definitions 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 Weaver) Modified Paths: -------------- trunk/linux-user/syscall_defs.h Modified: trunk/linux-user/syscall_defs.h =================================================================== --- trunk/linux-user/syscall_defs.h 2008-11-11 11:30:04 UTC (rev 5671) +++ trunk/linux-user/syscall_defs.h 2008-11-11 11:30:48 UTC (rev 5672) @@ -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