3322a7067b
rename linux functions to avoid confusion; fix error reporting on linux
rename linux functions to avoid confusion; fix error reporting on linux