There is a C function for looking up the human readable name of the errno