errno.h in the path
/usr/include/asm/errno.h
or in ubuntu
/usr/include/asm-generic/errno.h
when error occur in the unxi function, the global var errno will be set as positive number to mark the error type.
like the socket funciton.
#define EADDRINUSE 98 /* Address already in use */