consitency of return values between windows and linux
no hard coded maximum integer values
instead of checking if on Linux, check if not on Windows (assumes not Windows means POSIX compatible)