011b695403
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> |
||
---|---|---|
.. | ||
convert_font.c | ||
cursor-data.h | ||
cursor.pcf | ||
Makefile.am | ||
os-compatibility.c | ||
os-compatibility.h | ||
wayland-cursor-uninstalled.pc.in | ||
wayland-cursor.c | ||
wayland-cursor.h | ||
wayland-cursor.pc.in | ||
xcursor.c | ||
xcursor.h |