errno
errno is global variable declared in errno.h.
Most of the functions of the 3L Diamond TCP/IP stack set this value to an error when an error occurs.
The error codes are listed in the file errno.h.