From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJL6B-0006Ei-Qn for qemu-devel@nongnu.org; Thu, 17 May 2018 11:45:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJL6B-00044u-77 for qemu-devel@nongnu.org; Thu, 17 May 2018 11:45:47 -0400 Received: from mail-ot0-x243.google.com ([2607:f8b0:4003:c0f::243]:35939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJL6B-00044m-1o for qemu-devel@nongnu.org; Thu, 17 May 2018 11:45:47 -0400 Received: by mail-ot0-x243.google.com with SMTP id m11-v6so5578250otf.3 for ; Thu, 17 May 2018 08:45:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180516205543.29305-7-laurent@vivier.eu> References: <20180516205543.29305-1-laurent@vivier.eu> <20180516205543.29305-7-laurent@vivier.eu> From: Peter Maydell Date: Thu, 17 May 2018 16:45:25 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH v2 6/8] linux-user: update ARCH_HAS_SOCKET_TYPES use List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: QEMU Developers , Riku Voipio , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , Richard Henderson , Yongbok Kim , Mark Cave-Ayland On 16 May 2018 at 21:55, Laurent Vivier wrote: > to be like in the kernel and rename it TARGET_ARCH_HAS_SOCKET_TYPES > > Signed-off-by: Laurent Vivier > +/* Flags for socket, socketpair, accept4 */ > +#define TARGET_SOCK_CLOEXEC TARGET_O_CLOEXEC > +#ifndef TARGET_SOCK_NONBLOCK > +#define TARGET_SOCK_NONBLOCK O_NONBLOCK Shouldn't this be TARGET_O_NONBLOCK ? > #endif > +#endif /* TARGET_ARCH_HAS_SOCKET_TYPES */ thanks -- PMM