Error Codes Posix
Contents |
DESCRIPTION top The
Posix Error Codes List
-1 from most system calls; -1 or NULL from most library functions); a function that succeeds is allowed to change errno. Valid error numbers are all nonzero; errno is never set to
Posix Error Cydia
zero by any system call or library function. For some system calls and library functions (e.g., getpriority(2)), -1 is a valid return on success. In such cases, a successful return can be distinguished from an error return by setting errno to zero before the call, and then, if the call returns a status that indicates that an error may have occurred, checking to see posix error numbers if errno has a nonzero value. errno is defined by the ISO C standard to be a modifiable lvalue of type int, and must not be explicitly declared; errno may be a macro. errno is thread-local; setting it in one thread does not affect its value in any other thread. All the error names specified by POSIX.1 must have distinct values, with the exception of EAGAIN and EWOULDBLOCK, which may be the same. Below is a list of the symbolic error names that are defined on Linux. Some of these are marked POSIX.1, indicating that the name is defined by POSIX.1-2001, or C99, indicating that the name is defined by C99. E2BIG Argument list too long (POSIX.1) EACCES Permission denied (POSIX.1) EADDRINUSE Address already in use (POSIX.1) EADDRNOTAVAIL Address not available (POSIX.1) EAFNOSUPPORT Address family not supported (POSIX.1) EAGAIN Resource temporarily unavailable (may be the same value as EWOULDBLOCK) (POSIX.1) EALREADY Connection already in progress (POSIX.1) EBADE Invalid exchange EBADF Bad file descriptor (POSIX.1) EBADFD File descriptor in bad state EBADMSG Bad message (POSIX.1) EBADR Invalid request descriptor EBADRQC Invalid request code EBADSLT Invalid slot EBUSY Device or resource
found (1 meaning all). See also the Popular Errno Codes by Platform page which displays only errno identifiers
Linux Errno Codes
that are found on all systems (excluding MS Windows). SUSv3 AIX errno example 4.3,5.1 HP-UX 11.22 Solaris 9,10 Linux 2.4.28,2.6.9 IRIX 6.5[4] OSF1 FreeBSD 5.2.1 OSX 10.3.8 MSVC6 EPERM10Operation not permitted.1Operation how to use errno not permitted1Not super-user1Not super-user1Operation not permitted1Operation not permitted1Not owner1Operation not permitted1Operation not permitted1Operation not permitted ENOENT10No such file or directory.2No such file or directory2No such file or directory2No such http://man7.org/linux/man-pages/man3/errno.3.html file or directory2No such file or directory2No such file or directory2No such file or directory2No such file or directory2No such file or directory2No such file or directory ESRCH10No such process.3No such process3No such process3No such process3No such process3No such process3No such process3No such process3No such process3No such process EINTR10Interrupted function.4interrupted system call4interrupted system call4interrupted system call4Interrupted system call4Interrupted function http://www.ioplex.com/~miallen/errcmp.html call4Interrupted system call4Interrupted system call4Interrupted system call4Interrupted function call EIO10I/O error.5I/O error5I/O error5I/O error5I/O error5I/O error5I/O error5Input/output error5Input/output error5Input/output error ENXIO10No such device or address.6No such device or address6No such device or address6No such device or address6No such device or address6No such device or address6No such device or address6Device not configured6Device not configured6No such device or address E2BIG10Argument list too long.7Arg list too long7Arg list too long7Arg list too long7Arg list too long7Arg list too long7Arg list too long7Argument list too long7Argument list too long7Arg list too long ENOEXEC10Executable file format error.8Exec format error8Exec format error8Exec format error8Exec format error8Exec format error8Exec format error8Exec format error8Exec format error8Exec format error EBADF10Bad file descriptor.9Bad file descriptor9Bad file number9Bad file number9Bad file number9Bad file number9Bad file number9Bad file descriptor9Bad file descriptor9Bad file descriptor ECHILD10No child processes.10No child processes10No children10No children10No child processes10No child processes10No children10No child processes10No child processes10No child processes EAGAIN10Resource unavailable, try again [3]11Resource temporarily unavailable11No more processes11Resource temporarily unavailable11Try again11Resource temporarily unavailable11ditto35Resource temporarily unavailable35Resource temporarily unavailable11Resource temporarily unavailable ENOMEM10Not enough space.12Not enough spa
Signals Alternative tokens Miscellaneous headers
more). Errno.hN Not a typewriter Retrieved from "https://en.wikipedia.org/w/index.php?title=Category:POSIX_error_codes&oldid=651689247" Categories: C POSIX libraryC standard libraryComputer errors Navigation menu Personal tools Not logged inTalkContributionsCreate accountLog in Namespaces Category Talk Variants Views Read Edit View history More Search Navigation Main pageContentsFeatured contentCurrent eventsRandom articleDonate to WikipediaWikipedia store Interaction HelpAbout WikipediaCommunity portalRecent changesContact page Tools What links hereRelated changesUpload fileSpecial pagesPermanent linkPage informationWikidata item Print/export Create a bookDownload as PDFPrintable version Languages Add links This page was last modified on 16 March 2015, at 21:20. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Developers Cookie statement Mobile view