From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36068 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7qUU-0005ZE-Q0 for qemu-devel@nongnu.org; Thu, 07 Apr 2011 10:47:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7qUS-0004tZ-0w for qemu-devel@nongnu.org; Thu, 07 Apr 2011 10:47:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7qUR-0004tG-NZ for qemu-devel@nongnu.org; Thu, 07 Apr 2011 10:47:19 -0400 From: Kevin Wolf Date: Thu, 7 Apr 2011 16:49:19 +0200 Message-Id: <1302187764-16421-11-git-send-email-kwolf@redhat.com> In-Reply-To: <1302187764-16421-1-git-send-email-kwolf@redhat.com> References: <1302187764-16421-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 10/15] Set errno=ENOTSUP for attempts to use UNIX sockets on Windows platforms List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Nick Thomas Signed-off-by: Nick Thomas Signed-off-by: Kevin Wolf --- qemu-sockets.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu-sockets.c b/qemu-sockets.c index c526324..eda1850 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -627,24 +627,28 @@ int unix_connect(const char *path) int unix_listen_opts(QemuOpts *opts) { fprintf(stderr, "unix sockets are not available on windows\n"); + errno = ENOTSUP; return -1; } int unix_connect_opts(QemuOpts *opts) { fprintf(stderr, "unix sockets are not available on windows\n"); + errno = ENOTSUP; return -1; } int unix_listen(const char *path, char *ostr, int olen) { fprintf(stderr, "unix sockets are not available on windows\n"); + errno = ENOTSUP; return -1; } int unix_connect(const char *path) { fprintf(stderr, "unix sockets are not available on windows\n"); + errno = ENOTSUP; return -1; } -- 1.7.2.3