Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BkSyq-0008Pi-Ts for qemu-devel@nongnu.org; Tue, 13 Jul 2004 15:30:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BkSyk-0008OB-QK for qemu-devel@nongnu.org; Tue, 13 Jul 2004 15:30:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkSyk-0008O8-MD for qemu-devel@nongnu.org; Tue, 13 Jul 2004 15:30:14 -0400 Received: from [64.4.35.9] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BkSw5-0000Li-EL for qemu-devel@nongnu.org; Tue, 13 Jul 2004 15:27:29 -0400 From: "Blue Swirl" Date: Tue, 13 Jul 2004 21:27:28 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: Subject: [Qemu-devel] Sparc open flags patch 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 Hi, The following enables qemu to execute sparc programs opening files, for example gunzip and gzip. --- linux-user/syscall_defs.h.orig 2004-07-10 21:20:09.000000000 +0200 +++ linux-user/syscall_defs.h 2004-07-13 18:52:12.000000000 +0200 @@ -954,6 +954,24 @@ #define TARGET_O_NOFOLLOW 0100000 /* don't follow links */ #define TARGET_O_LARGEFILE 0200000 #define TARGET_O_DIRECT 0400000 /* direct disk access hint */ +#elif defined (TARGET_SPARC) +#define TARGET_O_RDONLY 0x0000 +#define TARGET_O_WRONLY 0x0001 +#define TARGET_O_RDWR 0x0002 +#define TARGET_O_ACCMODE 0x0003 +#define TARGET_O_APPEND 0x0008 +#define TARGET_FASYNC 0x0040 /* fcntl, for BSD compatibility */ +#define TARGET_O_CREAT 0x0200 /* not fcntl */ +#define TARGET_O_TRUNC 0x0400 /* not fcntl */ +#define TARGET_O_EXCL 0x0800 /* not fcntl */ +#define TARGET_O_SYNC 0x2000 +#define TARGET_O_NONBLOCK 0x4000 +#define TARGET_O_NDELAY (0x0004 | O_NONBLOCK) +#define TARGET_O_NOCTTY 0x8000 /* not fcntl */ +#define TARGET_O_DIRECTORY 0x10000 /* must be a directory */ +#define TARGET_O_NOFOLLOW 0x20000 /* don't follow links */ +#define TARGET_O_LARGEFILE 0x40000 +#define TARGET_O_DIRECT 0x100000 /* direct disk access hint */ #else #define TARGET_O_ACCMODE 0003 #define TARGET_O_RDONLY 00 _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus