开发者

In which include file EPERM (returned by pthread_mutex_unlock) error code is declared?

开发者 https://www.devze.com 2022-12-11 17:27 出处:网络
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 t开发者_如何学JAVAhis in asm-generic/errn

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 t开发者_如何学JAVAhis in asm-generic/errno-base.h but is this the right one? Why its not in errno.h? Thanks


It's the right one. And it's in errno.h, though through a long chain of includes. For example on my linux development box errno.h includes bits/errno.h which includes linux/errno.h which includes asm/errno.h which includes a specific version of asm-*/errno.h, e.g. asm-i386/errno.h, which includes asm-generic/errno.h containing the #define for EPERM.

0

精彩评论

暂无评论...
验证码 换一张
取 消