neuwld

patched neuwld library (tracked)
git clone https://git.daat.foo/neuwld.git
Log | Files | Refs | README | LICENSE

commit 76f5ec3cb9336f353bb68fe9560664667106a65a
parent 060c033110f6274a6e1fcc759dbd29fde8231bf9
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 14 Jan 2014 01:55:13 -0800

wayland-shm: Use posix_fallocate instead of ftruncate

Diffstat:
Mwayland-shm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wayland-shm.c b/wayland-shm.c @@ -171,7 +171,7 @@ struct wld_buffer * context_create_buffer(struct wld_context * base, unlink(name); - if (ftruncate(fd, size) < 0) + if (posix_fallocate(fd, 0, size) != 0) goto error1; object.ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);