From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9TyJ-0003rk-G1 for qemu-devel@nongnu.org; Thu, 06 Sep 2012 00:45:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9TyI-0007Mg-2D for qemu-devel@nongnu.org; Thu, 06 Sep 2012 00:45:43 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:35451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9TyH-0007MS-Rw for qemu-devel@nongnu.org; Thu, 06 Sep 2012 00:45:41 -0400 Message-ID: <50482A72.5020907@weilnetz.de> Date: Thu, 06 Sep 2012 06:45:38 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1346891806-13792-1-git-send-email-jcmvbkbc@gmail.com> In-Reply-To: <1346891806-13792-1-git-send-email-jcmvbkbc@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-xtensa: fix missing errno codes for mingw32 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Filippov Cc: Blue Swirl , qemu-devel@nongnu.org Am 06.09.2012 02:36, schrieb Max Filippov: > Put the following errno value mappings under #ifdef: > > xtensa-semi.c: In function 'errno_h2g': > xtensa-semi.c:113: error: 'ENOTBLK' undeclared (first use in this function) > xtensa-semi.c:113: error: (Each undeclared identifier is reported only once > xtensa-semi.c:113: error: for each function it appears in.) > xtensa-semi.c:113: error: array index in initializer not of integer type > xtensa-semi.c:113: error: (near initialization for 'guest_errno') > xtensa-semi.c:124: error: 'ETXTBSY' undeclared (first use in this function) > xtensa-semi.c:124: error: array index in initializer not of integer type > xtensa-semi.c:124: error: (near initialization for 'guest_errno') > xtensa-semi.c:134: error: 'ELOOP' undeclared (first use in this function) > xtensa-semi.c:134: error: array index in initializer not of integer type > xtensa-semi.c:134: error: (near initialization for 'guest_errno') > > Signed-off-by: Max Filippov > --- > Is semi hosting a useful feature when QEMU runs on a Windows host? If not, you could conditionally compile the whole semi hosting code for non Windows only. If yes, what about the differences in system calls between UNIX like operating systems and Windows? Should the code for 'open' add O_BINARY? Regards, Stefan