int GetErrorCode();
GetErrorCode return errno-based error code. Useful if any other function failed.
An int value containing the error code.