Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
errno(3)
Edit
PageHistory
Diff
Info
LikePages
ERRNO !!!ERRNO NAME SYNOPSIS DESCRIPTION SEE ALSO ---- !!NAME errno - number of last error !!SYNOPSIS #include extern int errno; !!DESCRIPTION The integer __errno__ is set by system calls (and some library functions) to indicate what went wrong. Its value is significant only when the call returned an error (usually -1), and a library function that does succeed is allowed to change __errno__. Sometimes, when -1 is also a legal return value one has to zero __errno__ before the call in order to detect possible errors. __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. Valid error numbers are all non-zero; __errno__ is never set to zero by any library function. All the error names specified by POSIX.1 must have distinct values. POSIX.1 (1996 edition) lists the following symbolic error names. Of these, __EDOM__ and __ERANGE__ are in the ISO C standard. ISO C Amendment 1 defines the additional error number __EILSEQ__ for coding errors in multibyte or wide characters. __E2BIG__ Arg list too long __EACCES__ Permission denied __EAGAIN__ Resource temporarily unavailable __EBADF__ Bad file descriptor __EBADMSG__ Bad message __EBUSY__ Resource busy __ECANCELED__ Operation canceled __ECHILD__ No child processes __EDEADLK__ Resource deadlock avoided __EDOM__ Domain error __EEXIST__ File exists __EFAULT__ Bad address __EFBIG__ File too large __EINPROGRESS__ Operation in progress __EINTR__ Interrupted function call __EINVAL__ Invalid argument __EIO__ Input/output error __EISDIR__ Is a directory __EMFILE__ Too many open files __EMLINK__ Too many links __EMSGSIZE__ Inappropriate message buffer length __ENAMETOOLONG__ Filename too long __ENFILE__ Too many open files in system __ENODEV__ No such device __ENOENT__ No such file or directory __ENOEXEC__ Exec format error __ENOLCK__ No locks available __ENOMEM__ Not enough space __ENOSPC__ No space left on device __ENOSYS__ Function not implemented __ENOTDIR__ Not a directory __ENOTEMPTY__ Directory not empty __ENOTSUP__ Not supported __ENOTTY__ Inappropriate I/O control operation __ENXIO__ No such device or address __EPERM__ Operation not permitted __EPIPE__ Broken pipe __ERANGE__ Result too large __EROFS__ Read-only file system __ESPIPE__ Invalid seek __ESRCH__ No such process __ETIMEDOUT__ Operation timed out __EXDEV__ Improper link Many other error numbers are returned by various Unix implementations. System V returns ETXTBSY (Text file busy) if one tries to exec() a file that is currently open for writing. Linux also returns this error if one tries to have a file both memory mapped with VM_DENYWRITE and open for writing. !!SEE ALSO perror(3), strerror(3) ----
5 pages link to
errno(3)
:
Man3e
intro(2)
strerror(3)
ptrace(2)
nice(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.