errno and Error tables in Linux systems

Source: Internet
Author: User
Tags connection reset

1, using a small program output all the errno corresponding error string, the code is as follows

#include <errno.h>

void ShowError (int err)
{
printf ("errno:%5d, Error:%s\n", err, strerror (err));
}

void Showallerr ()
{
int i = 0;
for (; i < n; i++)
{
ShowError (i);
}
}

int main (int argc, char * argv[])
{
Showallerr ();

return 0;
}

2, run the above code, the results are as follows

errno:0, error:success
Errno:1, error:operation not permitted
Errno:2, error:no such file or directory
Errno:3, error:no such process
Errno:4, error:interrupted system call
Errno:5, error:input/output Error
Errno:6, error:no such device or address
Errno:7, error:argument list too long
Errno:8, error:exec format error
Errno:9, Error:bad file descriptor
Errno:10, Error:no child processes
Errno:11, Error:resource temporarily unavailable
Errno:12, Error:cannot Allocate memory
Errno:13, Error:permission denied
ERRNO:14, Error:bad Address
ERRNO:15, Error:block device required
Errno:16, Error:device or resource busy
Errno:17, Error:file exists
errno:18, Error:invalid cross-device link
ERRNO:19, error:no such device
ERRNO:20, error:not a directory
ERRNO:21, Error:is a directory
errno:22, error:invalid argument
Errno:23, Error:too many open files in system
Errno:24, Error:too many open files
ERRNO:25, error:inappropriate IOCTL for device
errno:26, error:text file busy
Errno:27, Error:file too large
ERRNO:28, Error:no space left on device
Errno:29, Error:illegal seek
errno:30, error:read-only file system
Errno:31, Error:too many links
ERRNO:32, Error:broken Pipe
errno:33, error:numerical argument out of domain
errno:34, error:numerical result out of range
ERRNO:35, Error:resource Deadlock avoided
errno:36, error:file name too long
errno:37, Error:no locks available
ERRNO:38, Error:function not implemented
errno:39, error:directory not empty
ERRNO:40, Error:too Many levels of symbolic links
errno:41, error:unknown Error 41
ERRNO:42, Error:no message of desired type
errno:43, Error:identifier removed
ERRNO:44, Error:channel number out of range
ERRNO:45, Error:level 2 not synchronized
ERRNO:46, Error:level 3 halted
ERRNO:47, Error:level 3 Reset
errno:48, Error:link number out of range
errno:49, Error:protocol driver not attached
ERRNO:50, ERROR:NO CSI structure available
ERRNO:51, Error:level 2 halted
ERRNO:52, Error:invalid Exchange
ERRNO:53, Error:invalid request descriptor
errno:54, Error:exchange full
Errno:55, Error:no Anode
errno:56, Error:invalid request code
errno:57, Error:invalid slot
errno:58, Error:unknown error 58
errno:59, Error:bad font file format
Errno:60, Error:device not a stream
ERRNO:61, Error:no data available
errno:62, Error:timer expired
errno:63, error:out of streams resources
Errno:64, Error:machine isn't on the network
ERRNO:65, Error:package not installed
ERRNO:66, Error:object is remote
Errno:67, Error:link has been severed
errno:68, error:advertise Error
errno:69, error:srmount Error
ERRNO:70, error:communication error on send
errno:71, error:protocol Error
ERRNO:72, Error:multihop attempted
errno:73, Error:rfs specific error
errno:74, Error:bad message
errno:75, Error:value too large for defined data type
errno:76, Error:name not unique on network
errno:77, Error:file descriptor in Bad state
errno:78, Error:remote address changed
errno:79, Error:can not access a needed shared library
ERRNO:80, error:accessing a corrupted shared library
errno:81, error:. lib section in a.out corrupted
errno:82, error:attempting to link in too many GKFX libraries
errno:83, Error:cannot exec a shared library directly
errno:84, error:invalid or incomplete multibyte or wide character
errno:85, error:interrupted system call should be restarted
errno:86, Error:streams Pipe error
errno:87, Error:too many users
errno:88, error:socket operation on Non-socket
errno:89, error:destination address required
Errno:90, Error:message too long
errno:91, Error:protocol wrong type for socket
errno:92, Error:protocol not available
ERRNO:93, Error:protocol not supported
errno:94, Error:socket type not supported
ERRNO:95, error:operation not supported
errno:96, Error:protocol family not supported
errno:97, Error:address family not supported by protocol
Errno:98, error:address already in use
errno:99, Error:cannot assign requested address
ERRNO:100, Error:network is down
Errno:101, Error:network is unreachable
errno:102, Error:network dropped connection on reset
errno:103, Error:software caused connection abort
errno:104, error:connection reset by peer
errno:105, Error:no buffer space available
errno:106, Error:transport endpoint is already connected
errno:107, Error:transport endpoint is not connected
errno:108, Error:cannot send after transport endpoint shutdown
errno:109, Error:too many references:cannot splice
errno:110, Error:connection timed out
errno:111, Error:connection refused
errno:112, Error:host is down
errno:113, Error:no route to host
errno:114, error:operation already in progress
errno:115, Error:operation now in progress
errno:116, Error:stale file handle
errno:117, Error:structure needs cleaning
errno:118, Error:not a xenix named type file
errno:119, Error:no Xenix semaphores available
errno:120, Error:is a named type file
errno:121, error:remote I/O error
errno:122, Error:disk quota exceeded
errno:123, Error:no Medium found
errno:124, Error:wrong medium type
errno:125, Error:operation canceled
errno:126, error:required key not available
errno:127, Error:key has expired
errno:128, Error:key has been revoked
errno:129, Error:key was rejected by service
errno:130, Error:owner died
errno:131, error:state not recoverable
errno:132, error:operation not possible due to Rf-kill
errno:133, Error:unknown Error 133
.

.

.

errno:255, error:unknown Error 255

When Errno arrives at 134, there is no error.

errno and Error tables in Linux systems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.