The symbolic constants for error numbers are defined in errno.h in /usr/include/sys.