ligurio / unreliablefs

A FUSE-based fault injection filesystem.
https://ligurio.github.io/unreliablefs/unreliablefs.1.html
MIT License
174 stars 9 forks source link

Detect POSIX functions support in runtime #55

Closed ligurio closed 3 years ago

ligurio commented 3 years ago

Some operating systems missed fallocate(), utimens() support. Right now source code related to these functions enabled only on specified OSes. It's better to detect functions in runtime using CMake's check_function_exists() and enable appropriate define if function exists in a system.