Return error code in NSPOSIXErrorDomain