It’s said that the error numbers like EINVAL, ENOMEM, etc. are defined in errno.h, but I can’t find them in errno.h, I also searched some directories under /usr/include, still can’t find them. I can use these macros without any issue in my C code. Anyone can tell me where are them?
In which header file are EINVAL, ENOMEM, etc. defined in Linux?
27.5k views Asked by oldnavy At
3
You can run
locate errno.h | xargs grep EINVAL
to find the locationOn my Ubuntu 12.04 machine, its in
/usr/lib/syslinux/com32/include/errno.h