词条 | Errno.h |
释义 |
errno (short for "error number").[1]
The The header file also defines macros that expand to integer constants that represent the error codes. The C standard library only requires three to be defined:[2] EDOMResults from a parameter outside a function's domain, e.g. ERANGEResults from a result outside a function's range, e.g.EILSEQ (Required since 1994 Amendment 1 to C89 standard)[4] Results from an illegal byte sequence, e.g. POSIX compliant operating systems like AIX, Linux or Solaris include many other error values, many of which are used much more often than the above ones, such as EACCES for when a file cannot be opened for reading.[5] C++11 additionally defines many of the same values found within the POSIX specification.[6]Traditionally, the first page of Unix system manuals, named intro(2), lists all errno.h macros, but this is not the case with Linux, where these macros are instead listed in the errno(3).{{sfn|Stevens|Rago|2013|p=14}} See also
References1. ^International Standard for Programming Language C (C11), ISO/IEC 9899:2011, p. 205 2. ^1 International Standard for Programming Language C (C99), ISO/IEC 9899:1999, p. 186 3. ^{{cite web |url=https://www.gnu.org/software/libc/manual/html_node/Checking-for-Errors.html |title=Checking for Errors |date=2014-02-08 |website=The GNU C Library (glibc) |publisher=GNU Project |accessdate=2014-06-25}} 4. ^{{cite web|url=http://www.lysator.liu.se/c/na1.html|title=A brief description of Normative Addendum 1|accessdate=2013-09-12}} 5. ^{{man|bd|errno.h|SUS|system error numbers}} 6. ^{{cite web |url=http://en.cppreference.com/w/cpp/error/errno_macros |title=Error numbers - cppreference.com |accessdate=2015-05-08 }} Bibliography
External links
2 : C standard library headers|POSIX error codes |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。