wayland/cursor
Pekka Paalanen 3b3e81f42e cursor: handle running out of buffer space
If posix_fallocate is available, use it to detect when we are running
out of buffer space.

Propagate the failure properly through the various functions, stopping
loading cursors but keeping the cursors that were already successfully
loaded.

This may result in an animated cursor not having all of its images, or a
cursor theme not having all of its cursors. When that happens, the
failure is NOT communicated to the application. Instead, the application
will get NULL from wl_cursor_theme_get_cursor() for a cursor that was
not loaded successfully. If an animated cursor is missing only some
images, the animation is truncated but the cursor is still available.

This patch relies on the commit "os: use posix_fallocate in creating
sharable buffers" for defining HAVE_POSIX_FALLOCATE.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2013-12-02 16:19:45 -08:00
..
convert_font.c Ensure cursor_data.c is included in distribution tarballs 2012-10-09 23:42:52 -04:00
cursor-data.h Ensure cursor_data.c is included in distribution tarballs 2012-10-09 23:42:52 -04:00
cursor.pcf cursor: add cursor.pcf and extraction program 2012-09-10 21:05:14 -04:00
Makefile.am Ensure cursor_data.c is included in distribution tarballs 2012-10-09 23:42:52 -04:00
os-compatibility.c os: use posix_fallocate in creating sharable buffers 2013-12-02 16:18:59 -08:00
os-compatibility.h cursor: use os_create_anonymous_file() 2012-07-10 14:08:59 -04:00
wayland-cursor-uninstalled.pc.in build: add uninstalled pkg-config files 2012-05-29 10:09:59 -04:00
wayland-cursor.c cursor: handle running out of buffer space 2013-12-02 16:19:45 -08:00
wayland-cursor.h cursor: Add function for calculating current frame in cursor animation 2012-06-15 10:53:58 -04:00
wayland-cursor.pc.in pkgconfig: Use configure provided directories 2012-11-27 20:35:50 -05:00
xcursor.c xcursor: Fix allocation based on string length 2012-10-09 23:01:23 -04:00
xcursor.h wayland: Be consistent about #include-guard names 2013-10-21 14:39:06 -07:00