⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apr__errno_8h-source.html

📁 apr函数库使用手册
💻 HTML
📖 第 1 页 / 共 5 页
字号:
00654 <span class="comment"></span>
00655 <span class="comment">/** </span>
00656 <span class="comment"> * @see APR_STATUS_IS_EAGAIN </span>
00657 <span class="comment"> * @warning use APR_STATUS_IS_EAGAIN instead of just testing this value</span>
00658 <span class="comment"> */</span>
00659 #ifdef EAGAIN
00660 #define APR_EAGAIN EAGAIN
00661 #elif defined(EWOULDBLOCK)
00662 #define APR_EAGAIN EWOULDBLOCK
00663 #else
<a name="l00664"></a><a class="code" href="group___a_p_r___error.html#ga57">00664</a> #define APR_EAGAIN         (APR_OS_START_CANONERR + 13)
00665 #endif
00666 <span class="comment"></span>
00667 <span class="comment">/** @see APR_STATUS_IS_EINTR */</span>
00668 #ifdef EINTR
00669 #define APR_EINTR EINTR
00670 #else
<a name="l00671"></a><a class="code" href="group___a_p_r___error.html#ga58">00671</a> #define APR_EINTR          (APR_OS_START_CANONERR + 14)
00672 #endif
00673 <span class="comment"></span>
00674 <span class="comment">/** @see APR_STATUS_IS_ENOTSOCK */</span>
00675 #ifdef ENOTSOCK
00676 #define APR_ENOTSOCK ENOTSOCK
00677 #else
<a name="l00678"></a><a class="code" href="group___a_p_r___error.html#ga59">00678</a> #define APR_ENOTSOCK       (APR_OS_START_CANONERR + 15)
00679 #endif
00680 <span class="comment"></span>
00681 <span class="comment">/** @see APR_STATUS_IS_ECONNREFUSED */</span>
00682 #ifdef ECONNREFUSED
00683 #define APR_ECONNREFUSED ECONNREFUSED
00684 #else
<a name="l00685"></a><a class="code" href="group___a_p_r___error.html#ga60">00685</a> #define APR_ECONNREFUSED   (APR_OS_START_CANONERR + 16)
00686 #endif
00687 <span class="comment"></span>
00688 <span class="comment">/** @see APR_STATUS_IS_EINPROGRESS */</span>
00689 #ifdef EINPROGRESS
00690 #define APR_EINPROGRESS EINPROGRESS
00691 #else
<a name="l00692"></a><a class="code" href="group___a_p_r___error.html#ga61">00692</a> #define APR_EINPROGRESS    (APR_OS_START_CANONERR + 17)
00693 #endif
00694 <span class="comment"></span>
00695 <span class="comment">/** </span>
00696 <span class="comment"> * @see APR_STATUS_IS_ECONNABORTED</span>
00697 <span class="comment"> * @warning use APR_STATUS_IS_ECONNABORTED instead of just testing this value</span>
00698 <span class="comment"> */</span>
00699 
00700 #ifdef ECONNABORTED
00701 #define APR_ECONNABORTED ECONNABORTED
00702 #else
<a name="l00703"></a><a class="code" href="group___a_p_r___error.html#ga62">00703</a> #define APR_ECONNABORTED   (APR_OS_START_CANONERR + 18)
00704 #endif
00705 <span class="comment"></span>
00706 <span class="comment">/** @see APR_STATUS_IS_ECONNRESET */</span>
00707 #ifdef ECONNRESET
00708 #define APR_ECONNRESET ECONNRESET
00709 #else
<a name="l00710"></a><a class="code" href="group___a_p_r___error.html#ga63">00710</a> #define APR_ECONNRESET     (APR_OS_START_CANONERR + 19)
00711 #endif
00712 <span class="comment"></span>
00713 <span class="comment">/** @see APR_STATUS_IS_ETIMEDOUT </span>
00714 <span class="comment"> *  @deprecated */</span>
00715 #ifdef ETIMEDOUT
00716 #define APR_ETIMEDOUT ETIMEDOUT
00717 #else
<a name="l00718"></a><a class="code" href="group___a_p_r___error.html#ga64">00718</a> #define APR_ETIMEDOUT      (APR_OS_START_CANONERR + 20)
00719 #endif
00720 <span class="comment"></span>
00721 <span class="comment">/** @see APR_STATUS_IS_EHOSTUNREACH */</span>
00722 #ifdef EHOSTUNREACH
00723 #define APR_EHOSTUNREACH EHOSTUNREACH
00724 #else
<a name="l00725"></a><a class="code" href="group___a_p_r___error.html#ga65">00725</a> #define APR_EHOSTUNREACH   (APR_OS_START_CANONERR + 21)
00726 #endif
00727 <span class="comment"></span>
00728 <span class="comment">/** @see APR_STATUS_IS_ENETUNREACH */</span>
00729 #ifdef ENETUNREACH
00730 #define APR_ENETUNREACH ENETUNREACH
00731 #else
<a name="l00732"></a><a class="code" href="group___a_p_r___error.html#ga66">00732</a> #define APR_ENETUNREACH    (APR_OS_START_CANONERR + 22)
00733 #endif
00734 <span class="comment"></span>
00735 <span class="comment">/** @see APR_STATUS_IS_EFTYPE */</span>
00736 #ifdef EFTYPE
00737 #define APR_EFTYPE EFTYPE
00738 #else
<a name="l00739"></a><a class="code" href="group___a_p_r___error.html#ga67">00739</a> #define APR_EFTYPE        (APR_OS_START_CANONERR + 23)
00740 #endif
00741 <span class="comment"></span>
00742 <span class="comment">/** @see APR_STATUS_IS_EPIPE */</span>
00743 #ifdef EPIPE
00744 #define APR_EPIPE EPIPE
00745 #else
<a name="l00746"></a><a class="code" href="group___a_p_r___error.html#ga68">00746</a> #define APR_EPIPE         (APR_OS_START_CANONERR + 24)
00747 #endif
00748 <span class="comment"></span>
00749 <span class="comment">/** @see APR_STATUS_IS_EXDEV */</span>
00750 #ifdef EXDEV
00751 #define APR_EXDEV EXDEV
00752 #else
<a name="l00753"></a><a class="code" href="group___a_p_r___error.html#ga69">00753</a> #define APR_EXDEV         (APR_OS_START_CANONERR + 25)
00754 #endif
00755 <span class="comment"></span>
00756 <span class="comment">/** @see APR_STATUS_IS_ENOTEMPTY */</span>
00757 #ifdef ENOTEMPTY
00758 #define APR_ENOTEMPTY ENOTEMPTY
00759 #else
<a name="l00760"></a><a class="code" href="group___a_p_r___error.html#ga70">00760</a> #define APR_ENOTEMPTY     (APR_OS_START_CANONERR + 26)
00761 #endif
00762 <span class="comment"></span>
00763 <span class="comment">/** @} */</span>
00764 
00765 #if defined(OS2) &amp;&amp; !defined(DOXYGEN)
00766 
00767 #define APR_FROM_OS_ERROR(e) (e == 0 ? APR_SUCCESS : e + APR_OS_START_SYSERR)
00768 #define APR_TO_OS_ERROR(e)   (e == 0 ? APR_SUCCESS : e - APR_OS_START_SYSERR)
00769 
00770 #define INCL_DOSERRORS
00771 #define INCL_DOS
00772 
00773 <span class="comment">/* Leave these undefined.</span>
00774 <span class="comment"> * OS2 doesn't rely on the errno concept.</span>
00775 <span class="comment"> * The API calls always return a result codes which</span>
00776 <span class="comment"> * should be filtered through APR_FROM_OS_ERROR().</span>
00777 <span class="comment"> *</span>
00778 <span class="comment"> * #define apr_get_os_error()   (APR_FROM_OS_ERROR(GetLastError()))</span>
00779 <span class="comment"> * #define apr_set_os_error(e)  (SetLastError(APR_TO_OS_ERROR(e)))</span>
00780 <span class="comment"> */</span>
00781 
00782 <span class="comment">/* A special case, only socket calls require this;</span>
00783 <span class="comment"> */</span>
00784 #define apr_get_netos_error()   (APR_FROM_OS_ERROR(errno))
00785 #define apr_set_netos_error(e)  (errno = APR_TO_OS_ERROR(e))
00786 
00787 <span class="comment">/* And this needs to be greped away for good:</span>
00788 <span class="comment"> */</span>
00789 #define APR_OS2_STATUS(e) (APR_FROM_OS_ERROR(e))
00790 
00791 <span class="comment">/* These can't sit in a private header, so in spite of the extra size, </span>
00792 <span class="comment"> * they need to be made available here.</span>
00793 <span class="comment"> */</span>
00794 #define SOCBASEERR              10000
00795 #define SOCEPERM                (SOCBASEERR+1)             <span class="comment">/* Not owner */</span>
00796 #define SOCESRCH                (SOCBASEERR+3)             <span class="comment">/* No such process */</span>
00797 #define SOCEINTR                (SOCBASEERR+4)             <span class="comment">/* Interrupted system call */</span>
00798 #define SOCENXIO                (SOCBASEERR+6)             <span class="comment">/* No such device or address */</span>
00799 #define SOCEBADF                (SOCBASEERR+9)             <span class="comment">/* Bad file number */</span>
00800 #define SOCEACCES               (SOCBASEERR+13)            <span class="comment">/* Permission denied */</span>
00801 #define SOCEFAULT               (SOCBASEERR+14)            <span class="comment">/* Bad address */</span>
00802 #define SOCEINVAL               (SOCBASEERR+22)            <span class="comment">/* Invalid argument */</span>
00803 #define SOCEMFILE               (SOCBASEERR+24)            <span class="comment">/* Too many open files */</span>
00804 #define SOCEPIPE                (SOCBASEERR+32)            <span class="comment">/* Broken pipe */</span>
00805 #define SOCEOS2ERR              (SOCBASEERR+100)           <span class="comment">/* OS/2 Error */</span>
00806 #define SOCEWOULDBLOCK          (SOCBASEERR+35)            <span class="comment">/* Operation would block */</span>
00807 #define SOCEINPROGRESS          (SOCBASEERR+36)            <span class="comment">/* Operation now in progress */</span>
00808 #define SOCEALREADY             (SOCBASEERR+37)            <span class="comment">/* Operation already in progress */</span>
00809 #define SOCENOTSOCK             (SOCBASEERR+38)            <span class="comment">/* Socket operation on non-socket */</span>
00810 #define SOCEDESTADDRREQ         (SOCBASEERR+39)            <span class="comment">/* Destination address required */</span>
00811 #define SOCEMSGSIZE             (SOCBASEERR+40)            <span class="comment">/* Message too long */</span>
00812 #define SOCEPROTOTYPE           (SOCBASEERR+41)            <span class="comment">/* Protocol wrong type for socket */</span>
00813 #define SOCENOPROTOOPT          (SOCBASEERR+42)            <span class="comment">/* Protocol not available */</span>
00814 #define SOCEPROTONOSUPPORT      (SOCBASEERR+43)            <span class="comment">/* Protocol not supported */</span>
00815 #define SOCESOCKTNOSUPPORT      (SOCBASEERR+44)            <span class="comment">/* Socket type not supported */</span>
00816 #define SOCEOPNOTSUPP           (SOCBASEERR+45)            <span class="comment">/* Operation not supported on socket */</

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -