Xext: Use SHMDIR and O_TMPFILE when creating mapping files
authorKeith Packard <keithp@keithp.com>
Wed, 13 Nov 2013 05:16:33 +0000 (14:16 +0900)
committerKeith Packard <keithp@keithp.com>
Mon, 2 Dec 2013 20:57:05 +0000 (12:57 -0800)
commitcc63204926c6da83d9221c5f8c0dc8f5e2f2481d
treea7b9ce6e21fc1d84afa226b38d21427d3ff07c8e
parent5a969f0928b84da5cfe0777dfb542caaacc915ad
Xext: Use SHMDIR and O_TMPFILE when creating mapping files

ShmCreateSegment asks for a file descriptor for a memory mapped file
created by the X server. This patch uses O_TMPFILE where available,
and also uses the SHMDIR directory to store the files, both for the
O_TMPFILE and mkstemp cases.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Xext/shm.c