Some functions don't set errno, wut