【问题标题】:In which include file EPERM (returned by pthread_mutex_unlock) error code is declared?在哪个包含文件 EPERM(由 pthread_mutex_unlock 返回)中声明了错误代码?
【发布时间】:2009-11-19 09:42:49
【问题描述】:

谁能给我正确的方向,因为我无法在 pthread.h 或 errno.h(在 openSUSE Linux 上)中找到 EPERM 的声明。我在 asm-generic/errno-base.h 中找到了这个,但这是正确的吗?为什么它不在 errno.h 中?谢谢

【问题讨论】:

    标签: include pthreads errno


    【解决方案1】:

    这是正确的。它在errno.h 中,尽管通过一长串的包含。例如,在我的 linux 开发框中,errno.h 包括 bits/errno.h,其中包括 linux/errno.h,其中包括 asm/errno.h,其中包括特定版本的 asm-*/errno.h,例如asm-i386/errno.h,其中包括 asm-generic/errno.h,其中 #define 对应于 EPERM

    【讨论】:

      猜你喜欢
      • 2020-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-15
      • 2013-10-07
      • 1970-01-01
      • 2017-05-14
      • 1970-01-01
      相关资源
      最近更新 更多