Skip to content
Commit 8e219964 authored by Ihor Antonov's avatar Ihor Antonov Committed by Simon Ser
Browse files

os: fallback for unsupported posix_fallocate



Some filesystems do not support fallocate and return EOPNOTSUPP.

On musl-based distros libwayland-cursor exits abruptly which causes the
application to crash. Unlike glibc, musl does not provide a fallback
mechanism for handling unsupported fallocate. Instead, musl developers
argue that application should handle the case of unsupported system
call.

This commit allows falback to ftruncate in case when EOPNOTSUPP
was recieved.

Signed-off-by: default avatarIhor Antonov <ihor@antonovs.family>
parent 501cad11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment