weston/shared
Emmanuel Gil Peyrot deae98ef45 shared: Use memfd_create() when available
This (so-far) Linux-only API lets users create file descriptors purely
in memory, without any backing file on the filesystem and the race
condition which could ensue when unlink()ing it.

It also allows seals to be placed on the file, ensuring to every other
process that we won’t be allowed to shrink the contents, potentially
causing a SIGBUS when they try reading it.

This patch is best viewed with the -w option of git log -p.

It is an almost exact copy of Wayland commit
6908c8c85a2e33e5654f64a55cd4f847bf385cae, see
https://gitlab.freedesktop.org/wayland/wayland/merge_requests/4

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2019-10-24 07:32:17 +00:00
..
cairo-util.c Rename config-parser.h to libweston/config-parser.h 2019-04-18 12:31:46 +03:00
cairo-util.h xwm: Fix icon surface ownership 2018-02-09 17:01:09 +00:00
config-parser.c Rename config-parser.h to libweston/config-parser.h 2019-04-18 12:31:46 +03:00
fd-util.h libweston: Support zwp_surface_synchronization_v1.set_acquire_fence 2019-02-06 12:21:56 +00:00
file-util.c clients: Fix/resolved doxygen warnings 2019-06-25 14:05:54 +00:00
file-util.h file-util: allow specifying path separately in file_create_dated() 2018-02-09 15:16:07 +00:00
frame.c xwm: Fix icon surface ownership 2018-02-09 17:01:09 +00:00
helpers.h clients: Fix/resolved doxygen warnings 2019-06-25 14:05:54 +00:00
image-loader.c image-loader: Fix undefined left shift in premultiply_data 2019-10-16 16:06:06 -04:00
image-loader.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
matrix.c Rename matrix.h to libweston/matrix.h 2019-04-18 12:31:46 +03:00
meson.build build: simplify include_directories 2019-10-04 17:14:22 +03:00
option-parser.c shared/: Please compiler when passed certain compile flags 2019-08-06 20:36:06 +03:00
os-compatibility.c shared: Use memfd_create() when available 2019-10-24 07:32:17 +00:00
os-compatibility.h shared: remove fallback definition of backtrace() 2018-12-09 12:13:36 +02:00
platform.h shared/platform: avoid build warning when building without gl-renderer 2019-07-26 13:47:15 +02:00
string-helpers.h string-helpers.h: Fix usage on musl libc 2016-09-24 11:55:58 +02:00
timespec-util.h timespec: Don't return value from void function 2019-06-11 11:31:04 +01:00
weston-egl-ext.h gl-renderer: add EGL surfaceless platform support 2019-10-11 12:16:35 +00:00
xalloc.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
xalloc.h Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00