Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIQIv-00008l-Cq for qemu-devel@nongnu.org; Fri, 25 Jan 2008 10:17:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIQIs-00005Z-R6 for qemu-devel@nongnu.org; Fri, 25 Jan 2008 10:17:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIQIs-00005I-LA for qemu-devel@nongnu.org; Fri, 25 Jan 2008 10:17:14 -0500 Received: from smtp02.citrix.com ([66.165.176.63]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIQIs-0006RZ-MD for qemu-devel@nongnu.org; Fri, 25 Jan 2008 10:17:14 -0500 Received: from mariner.uk.xensource.com (mariner.uk.xensource.com [172.31.17.38]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m0PFGO22009104 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 25 Jan 2008 07:16:25 -0800 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1JIQGt-0001Qz-BA for qemu-devel@nongnu.org; Fri, 25 Jan 2008 15:15:11 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18329.64767.131557.532119@mariner.uk.xensource.com> Date: Fri, 25 Jan 2008 15:15:11 +0000 Subject: Re: [Qemu-devel] [PATCH] Allow AF_UNIX sockets to be disabled on non-Windows In-Reply-To: <4799FB94.5070406@codemonkey.ws> References: <18329.63445.210933.809690@mariner.uk.xensource.com> <4799FB94.5070406@codemonkey.ws> From: Ian Jackson 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 Anthony Liguori writes ("Re: [Qemu-devel] [PATCH] Allow AF_UNIX sockets to be disabled on non-Windows"): > Presumably, this is because you're compiling for MiniOS? Why not just > add a _MINIOS define and then add an appropriate #ifndef. Yes. We'll probably add a MINIOS define, yes (at the moment our tree is too divergent; these patches are an attempt at restoring some semblance of sanity to the Xen situation). But when the existing code says } #ifndef _WIN32 if (strstart(display, "unix:", &p)) { addr = (struct sockaddr *)&uaddr; addrlen = sizeof(uaddr); etc. then changing it to something like #if !(defined(_WIN32) || defined(MINIOS) seems very ugly. The information about whether a host platform supports AF_UNIX should be in one place, and there should be one place to turn the functionality on and off in qemu. slirp already uses NO_UNIX_SOCKETS so I just reused that name, although unfortunately it's still set in two different places. Ian.