avoid platform-dependent function from system-fileio