From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJeev-0002yD-0s for qemu-devel@nongnu.org; Tue, 28 Nov 2017 07:06:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJeeq-0000f8-Ah for qemu-devel@nongnu.org; Tue, 28 Nov 2017 07:06:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48808) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJeeq-0000be-51 for qemu-devel@nongnu.org; Tue, 28 Nov 2017 07:06:36 -0500 References: <20171128113204.22912-1-pbonzini@redhat.com> From: Florian Weimer Message-ID: Date: Tue, 28 Nov 2017 13:06:31 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] memfd: fix configure test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Paolo Bonzini Cc: QEMU , Cole Robinson On 11/28/2017 12:42 PM, Marc-Andr=C3=A9 Lureau wrote: > Couldn't the declarations be put in sys/memfd.h like the man claimed > it would be for > 1y? We discussed it. It was a typo in the manual page. There never was a=20 header file: https://marc.info/?l=3Dlinux-man&m=3D150988359906012&w=3D2 The UAPI header is called . The downside of using a separate header is that you cannot determine,=20 using the preprocessor alone, whether the toolchain provides the=20 memfd_create function. If we put everything in , you can=20 use =E2=80=9C#ifdef MFD_CLOEXEC=E2=80=9D to see if the definitions and de= clarations are=20 there. Thanks, Florian