[PATCH] Use linux 3.17 memfd_create syscall when available

Keith Packard keithp at keithp.com
Thu Oct 9 05:10:04 PDT 2014


Keith Packard <keithp at keithp.com> writes:


> +#if HAVE_DECL___NR_MEMFD_CREATE

Oops. I've fixed this locally to use #if HAVE_MEMFD_CREATE

> +	fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING);
>  	if (fd < 0)
>  #endif

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20141009/818766fd/attachment.sig>


More information about the xorg-devel mailing list