Can anyone give me the right direction for this, as I am not able to find the declaration of EPERM in either pthread.h or errno.h (on openSUSE Linux). I found this in asm-generic/errno-base.h but is this the right one? Why its not in errno.h? Thanks
Share
It’s the right one. And it’s in
errno.h, though through a long chain of includes. For example on my linux development boxerrno.hincludesbits/errno.hwhich includeslinux/errno.hwhich includesasm/errno.hwhich includes a specific version ofasm-*/errno.h, e.g.asm-i386/errno.h, which includesasm-generic/errno.hcontaining the#defineforEPERM.