当前位置: 技术问答>linux和unix
Connect函数在出现错误时返回-1,并且设置errno为相应的错误码
来源: 互联网 发布时间:2017-03-15
本文导语: 现在的问题是我知道了errno了,我到哪去查找它对应的错误说明呢? | [work@bb-ime-test00.vm.baidu.com test]$ find /usr -name errno.h find: /usr/share/ssl/CA: Permission denied find: /usr/share/systemtap/tapset/i686: Permission denie...
现在的问题是我知道了errno了,我到哪去查找它对应的错误说明呢?
|
[work@bb-ime-test00.vm.baidu.com test]$ find /usr -name errno.h
find: /usr/share/ssl/CA: Permission denied
find: /usr/share/systemtap/tapset/i686: Permission denied
find: /usr/share/systemtap/tapset/x86_64: Permission denied
/usr/include/sys/errno.h
/usr/include/asm/errno.h
/usr/include/asm-i386/errno.h
/usr/include/asm-x86_64/errno.h
/usr/include/linux/errno.h
/usr/include/bits/errno.h
/usr/include/errno.h
/usr/src/kernels/2.6.9-34.EL-x86_64/include/asm-generic/errno.h
/usr/src/kernels/2.6.9-34.EL-x86_64/include/asm-x86_64/errno.h
/usr/src/kernels/2.6.9-34.EL-x86_64/include/linux/errno.h
/usr/src/kernels/2.6.9-34.EL-largesmp-x86_64/include/asm-generic/errno.h
/usr/src/kernels/2.6.9-34.EL-largesmp-x86_64/include/asm-x86_64/errno.h
/usr/src/kernels/2.6.9-34.EL-largesmp-x86_64/include/linux/errno.h
/usr/src/kernels/2.6.9-34.EL-smp-x86_64/include/asm-generic/errno.h
/usr/src/kernels/2.6.9-34.EL-smp-x86_64/include/asm-x86_64/errno.h
/usr/src/kernels/2.6.9-34.EL-smp-x86_64/include/linux/errno.h