use generic bits/fcntl.h for x86_64 and riscv64