📄 errno.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title><errno.h></title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="<errno.h>"></a> <a name="tag_13_10"></a><!-- <errno.h> --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright © 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_13_10_01"></a>NAME</h4><blockquote>errno.h - system error numbers</blockquote><h4><a name="tag_13_10_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><p><tt>#include <errno.h></tt></p></blockquote><h4><a name="tag_13_10_03"></a>DESCRIPTION</h4><blockquote><div class="box"><sup>[<a href="javascript:open_code('CX')">CX</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]"border="0"> Some of the functionality described on this reference page extends the ISO C standard. Any conflict between therequirements described here and the ISO C standard is unintentional. This volume of IEEE Std 1003.1-2001 defers tothe ISO C standard. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></div><p><sup>[<a href="javascript:open_code('CX')">CX</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> TheISO C standard only requires the symbols [EDOM], [EILSEQ], and [ERANGE] to be defined. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></p><p>The <i><errno.h></i> header shall provide a declaration for <i>errno</i> and give positive values for the followingsymbolic constants. Their values shall be unique except as noted below.</p><dl compact><dt>[E2BIG]</dt><dd>Argument list too long.</dd><dt>[EACCES]</dt><dd>Permission denied.</dd><dt>[EADDRINUSE]</dt><dd>Address in use.</dd><dt>[EADDRNOTAVAIL]</dt><dd>Address not available.</dd><dt>[EAFNOSUPPORT]</dt><dd>Address family not supported.</dd><dt>[EAGAIN]</dt><dd>Resource unavailable, try again (may be the same value as [EWOULDBLOCK]).</dd><dt>[EALREADY]</dt><dd>Connection already in progress.</dd><dt>[EBADF]</dt><dd>Bad file descriptor.</dd><dt>[EBADMSG]</dt><dd>Bad message.</dd><dt>[EBUSY]</dt><dd>Device or resource busy.</dd><dt>[ECANCELED]</dt><dd>Operation canceled.</dd><dt>[ECHILD]</dt><dd>No child processes.</dd><dt>[ECONNABORTED]</dt><dd>Connection aborted.</dd><dt>[ECONNREFUSED]</dt><dd>Connection refused.</dd><dt>[ECONNRESET]</dt><dd>Connection reset.</dd><dt>[EDEADLK]</dt><dd>Resource deadlock would occur.</dd><dt>[EDESTADDRREQ]</dt><dd>Destination address required.</dd><dt>[EDOM]</dt><dd>Mathematics argument out of domain of function.</dd><dt>[EDQUOT]</dt><dd>Reserved.</dd><dt>[EEXIST]</dt><dd>File exists.</dd><dt>[EFAULT]</dt><dd>Bad address.</dd><dt>[EFBIG]</dt><dd>File too large.</dd><dt>[EHOSTUNREACH]</dt><dd>Host is unreachable.</dd><dt>[EIDRM]</dt><dd>Identifier removed.</dd><dt>[EILSEQ]</dt><dd>Illegal byte sequence.</dd><dt>[EINPROGRESS]</dt><dd>Operation in progress.</dd><dt>[EINTR]</dt><dd>Interrupted function.</dd><dt>[EINVAL]</dt><dd>Invalid argument.</dd><dt>[EIO]</dt><dd>I/O error.</dd><dt>[EISCONN]</dt><dd>Socket is connected.</dd><dt>[EISDIR]</dt><dd>Is a directory.</dd><dt>[ELOOP]</dt><dd>Too many levels of symbolic links.</dd><dt>[EMFILE]</dt><dd>Too many open files.</dd><dt>[EMLINK]</dt><dd>Too many links.</dd><dt>[EMSGSIZE]</dt><dd>Message too large.</dd><dt>[EMULTIHOP]</dt><dd>Reserved.</dd><dt>[ENAMETOOLONG]</dt><dd>Filename too long.</dd><dt>[ENETDOWN]</dt><dd>Network is down.</dd><dt>[ENETRESET]</dt><dd>Connection aborted by network.</dd><dt>[ENETUNREACH]</dt><dd>Network unreachable.</dd><dt>[ENFILE]</dt><dd>Too many files open in system.</dd><dt>[ENOBUFS]</dt><dd>No buffer space available.</dd><dt>[ENODATA]</dt><dd><sup>[<a href="javascript:open_code('XSR')">XSR</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">No message is available on the STREAM head read queue. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></dd><dt>[ENODEV]</dt><dd>No such device.</dd><dt>[ENOENT]</dt><dd>No such file or directory.</dd><dt>[ENOEXEC]</dt><dd>Executable file format error.</dd><dt>[ENOLCK]</dt><dd>No locks available.</dd><dt>[ENOLINK]</dt><dd>Reserved.</dd><dt>[ENOMEM]</dt><dd>Not enough space.</dd><dt>[ENOMSG]</dt><dd>No message of the desired type.</dd><dt>[ENOPROTOOPT]</dt><dd>Protocol not available.</dd><dt>[ENOSPC]</dt><dd>No space left on device.</dd><dt>[ENOSR]</dt><dd><sup>[<a href="javascript:open_code('XSR')">XSR</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">No STREAM resources. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></dd><dt>[ENOSTR]</dt><dd><sup>[<a href="javascript:open_code('XSR')">XSR</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">Not a STREAM. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></dd><dt>[ENOSYS]</dt><dd>Function not supported.</dd><dt>[ENOTCONN]</dt><dd>The socket is not connected.</dd><dt>[ENOTDIR]</dt><dd>Not a directory.</dd><dt>[ENOTEMPTY]</dt><dd>Directory not empty.</dd><dt>[ENOTSOCK]</dt><dd>Not a socket.</dd><dt>[ENOTSUP]</dt><dd>Not supported.</dd><dt>[ENOTTY]</dt><dd>Inappropriate I/O control operation.</dd><dt>[ENXIO]</dt><dd>No such device or address.</dd><dt>[EOPNOTSUPP]</dt><dd>Operation not supported on socket.</dd><dt>[EOVERFLOW]</dt><dd>Value too large to be stored in data type.</dd><dt>[EPERM]</dt><dd>Operation not permitted.</dd><dt>[EPIPE]</dt><dd>Broken pipe.</dd><dt>[EPROTO]</dt><dd>Protocol error.</dd><dt>[EPROTONOSUPPORT]</dt><dd><br>Protocol not supported.</dd><dt>[EPROTOTYPE]</dt><dd>Protocol wrong type for socket.</dd><dt>[ERANGE]</dt><dd>Result too large.</dd><dt>[EROFS]</dt><dd>Read-only file system.</dd><dt>[ESPIPE]</dt><dd>Invalid seek.</dd><dt>[ESRCH]</dt><dd>No such process.</dd><dt>[ESTALE]</dt><dd>Reserved.</dd><dt>[ETIME]</dt><dd><sup>[<a href="javascript:open_code('XSR')">XSR</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">Stream <a href="../functions/ioctl.html"><i>ioctl</i>()</a> timeout. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></dd><dt>[ETIMEDOUT]</dt><dd>Connection timed out.</dd><dt>[ETXTBSY]</dt><dd>Text file busy.</dd><dt>[EWOULDBLOCK]</dt><dd>Operation would block (may be the same value as [EAGAIN]).</dd><dt>[EXDEV]</dt><dd>Cross-device link.</dd></dl></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_10_04"></a>APPLICATION USAGE</h4><blockquote><p>Additional error numbers may be defined on conforming systems; see the System Interfaces volume ofIEEE Std 1003.1-2001.</p></blockquote><h4><a name="tag_13_10_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_10_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_10_07"></a>SEE ALSO</h4><blockquote><p>The System Interfaces volume of IEEE Std 1003.1-2001, <a href="../functions/xsh_chap02_03.html">Section 2.3, ErrorNumbers</a></p></blockquote><h4><a name="tag_13_10_08"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 1. Derived from Issue 1 of the SVID.</p></blockquote><h4><a name="tag_13_10_09"></a>Issue 5</h4><blockquote><p>Updated for alignment with the POSIX Realtime Extension.</p></blockquote><h4><a name="tag_13_10_10"></a>Issue 6</h4><blockquote><p>The following new requirements on POSIX implementations derive from alignment with the Single UNIX Specification:</p><ul><li><p>The majority of the error conditions previously marked as extensions are now mandatory, except for the STREAMS-related errorconditions.</p></li></ul><p>Values for <i>errno</i> are now required to be distinct positive values rather than non-zero values. This change is foralignment with the ISO/IEC 9899:1999 standard.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -