Fix dev-file.c for android

Android don't have S_IREAD and S_IWRITE