SDL/include
Frank Praznik d3c89bb479 wayland: Allocate the cursor shared memory buffer entirely in memory, if possible.
Use memfd_create() to allocate the temporary SHM backing file in memory, and set the size with posix_fallocate(), which will return an error on insufficient space vs ftruncate(), which will silently succeed and allow a SIGBUS error to occur if the unbacked memory is accessed.

Additionally, make the legacy path more robust by unlinking the temp file, so it won't persist after close, and unmapping the shared memory buffer.

(cherry picked from commit 9bdb992925)
2024-03-12 20:56:16 -04:00
..
SDL.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_assert.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_atomic.h Fix memory barriers on ARMv5 2024-01-05 09:01:30 -08:00
SDL_audio.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_bits.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_blendmode.h blendmode: Corrected docs for `SDL_BLENDOPERATION_[REV_]SUBTRACT`. 2024-01-25 17:49:39 -05:00
SDL_clipboard.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config.h.cmake wayland: Allocate the cursor shared memory buffer entirely in memory, if possible. 2024-03-12 20:56:16 -04:00
SDL_config.h.in Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_android.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_emscripten.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_iphoneos.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_macosx.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_minimal.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_ngage.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_os2.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_pandora.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_windows.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_wingdk.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_winrt.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_config_xbox.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_copying.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_cpuinfo.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_egl.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_endian.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_error.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_events.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_filesystem.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_gamecontroller.h gamecontroller: Fix function name in cherry-picked documentation 2024-01-08 11:09:55 -08:00
SDL_gesture.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_guid.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_haptic.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_hidapi.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_hints.h Added the environment variable SDL_LOGGING to control default log output 2024-01-27 19:46:25 -08:00
SDL_joystick.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_keyboard.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_keycode.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_loadso.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_locale.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_log.h Document that the default log priority is error, not critical 2024-01-27 19:31:48 -08:00
SDL_main.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_messagebox.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_metal.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_misc.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_mouse.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_mutex.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_name.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_opengl.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_opengl_glext.h replaced line comments in public header. 2023-02-04 10:02:10 +03:00
SDL_opengles.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_opengles2.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_opengles2_gl2.h Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
SDL_opengles2_gl2ext.h Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
SDL_opengles2_gl2platform.h Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
SDL_opengles2_khrplatform.h Updated to the latest version of OpenGL and Vulkan headers from the Khronos registry 2022-09-14 09:14:47 -07:00
SDL_pixels.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_platform.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_power.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_quit.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_rect.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_render.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_revision.h build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
SDL_revision.h.cmake build: Add a mechanism to mark builds with vendor info 2022-10-22 09:27:10 -07:00
SDL_rwops.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_scancode.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_sensor.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_shape.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_stdinc.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_surface.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_system.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_syswm.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_assert.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_common.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_compare.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_crc32.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_font.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_fuzzer.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_harness.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_images.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_log.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_md5.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_memory.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_test_random.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_thread.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_timer.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_touch.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_types.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
SDL_version.h Updated to version 2.31.0 for development 2024-01-22 09:12:34 -08:00
SDL_video.h docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas. 2024-01-16 15:23:56 -05:00
SDL_vulkan.h Sync wiki -> header 2021-10-27 01:36:05 +00:00
begin_code.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00
close_code.h Updated copyright for 2024 2024-01-01 13:19:49 -08:00