wayland/cursor
Pekka Paalanen 011b695403 os: use posix_fallocate in creating sharable buffers
If posix_fallocate is available, use it instead of ftruncate. Unlike
ftruncate, when posix_fallocate succeeds, it guarantees that you cannot
run out of disk space, when later writing to the mmap()'ed file.

With posix_fallocate, if os_create_anonymous_file() succeeds, the
program cannot get a SIGBUS later from accessing this file via mmap. If
there is insufficient disk space, the function fails and errno is set to
ENOSPC.

This is useful on systems, that limit the available buffer space by
having XDG_RUNTIME_DIR on a small tmpfs.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2013-12-02 16:18:59 -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 Move ARRAY_LENGTH out of public headers 2012-10-19 17:08:38 -04: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