xref: /csrg-svn/lib/libc/gen/errlst.c (revision 5753)
1*5753Sroot /* @(#)errlst.c	4.3 (Berkeley) 82/02/11 */
21964Swnj char	*sys_errlist[] = {
31964Swnj 	"Error 0",
4*5753Sroot 	"Not owner",				/* 1 - EPERM */
5*5753Sroot 	"No such file or directory",		/* 2 - ENOENT */
6*5753Sroot 	"No such process",			/* 3 - ESRCH */
7*5753Sroot 	"Interrupted system call",		/* 4 - EINTR */
8*5753Sroot 	"I/O error",				/* 5 - EIO */
9*5753Sroot 	"No such device or address",		/* 6 - ENXIO */
10*5753Sroot 	"Arg list too long",			/* 7 - E2BIG */
11*5753Sroot 	"Exec format error",			/* 8 - ENOEXEC */
12*5753Sroot 	"Bad file number",			/* 9 - EBADF */
13*5753Sroot 	"No children",				/* 10 - ECHILD */
14*5753Sroot 	"No more processes",			/* 11 - EAGAIN */
15*5753Sroot 	"Not enough core",			/* 12 - ENOMEM */
16*5753Sroot 	"Permission denied",			/* 13 - EACCES */
17*5753Sroot 	"Bad address",				/* 14 - EFAULT */
18*5753Sroot 	"Block device required",		/* 15 - ENOTBLK */
19*5753Sroot 	"Mount device busy",			/* 16 - EBUSY */
20*5753Sroot 	"File exists",				/* 17 - EEXIST */
21*5753Sroot 	"Cross-device link",			/* 18 - EXDEV */
22*5753Sroot 	"No such device",			/* 19 - ENODEV */
23*5753Sroot 	"Not a directory",			/* 20 - ENOTDIR */
24*5753Sroot 	"Is a directory",			/* 21 - EISDIR */
25*5753Sroot 	"Invalid argument",			/* 22 - EINVAL */
26*5753Sroot 	"File table overflow",			/* 23 - ENFILE */
27*5753Sroot 	"Too many open files",			/* 24 - EMFILE */
28*5753Sroot 	"Not a typewriter",			/* 25 - ENOTTY */
29*5753Sroot 	"Text file busy",			/* 26 - ETXTBSY */
30*5753Sroot 	"File too large",			/* 27 - EFBIG */
31*5753Sroot 	"No space left on device",		/* 28 - ENOSPC */
32*5753Sroot 	"Illegal seek",				/* 29 - ESPIPE */
33*5753Sroot 	"Read-only file system",		/* 30 - EROFS */
34*5753Sroot 	"Too many links",			/* 31 - EMLINK */
35*5753Sroot 	"Broken pipe",				/* 32 - EPIPE */
36*5753Sroot 
37*5753Sroot /* math software */
38*5753Sroot 	"Argument too large",			/* 33 - EDOM */
39*5753Sroot 	"Result too large",			/* 34 - ERANGE */
40*5753Sroot 
41*5753Sroot /* non-blocking and interrupt i/o */
42*5753Sroot 	"Operation would block",		/* 35 - EWOULDBLOCK */
43*5753Sroot 	"Operation now in progress",		/* 36 - EINPROGRESS */
44*5753Sroot 	"Operation already in progress",	/* 37 - EALREADY */
45*5753Sroot 
46*5753Sroot /* ipc/network software */
47*5753Sroot 
48*5753Sroot 	/* argument errors */
49*5753Sroot 	"Socket operation on non-socket",	/* 38 - ENOTSOCK */
50*5753Sroot 	"Destination address required",		/* 39 - EDESTADDRREQ */
51*5753Sroot 	"Message too long",			/* 40 - EMSGSIZE */
52*5753Sroot 	"Protocol wrong type for socket",	/* 41 - EPROTOTYPE */
53*5753Sroot 	"Protocol not available",		/* 42 - ENOPROTOOPT */
54*5753Sroot 	"Protocol not supported",		/* 43 - EPROTONOSUPPORT */
55*5753Sroot 	"Socket type not supported",		/* 44 - ESOCKTNOSUPPORT */
56*5753Sroot 	"Operation not supported on socket",	/* 45 - EOPNOTSUPP */
57*5753Sroot 	"Protocol family not supported",	/* 46 - EPFNOSUPPORT */
58*5753Sroot 	"Address family not supported by protocol family",
59*5753Sroot 						/* 47 - EAFNOSUPPORT */
60*5753Sroot 	"Address already in use",		/* 48 - EADDRINUSE */
61*5753Sroot 	"Can't assign requested address",	/* 49 - EADDRNOTAVAIL */
62*5753Sroot 
63*5753Sroot 	/* operational errors */
64*5753Sroot 	"Network is down",			/* 50 - ENETDOWN */
65*5753Sroot 	"Network is unreachable",		/* 51 - ENETUNREACH */
66*5753Sroot 	"Network dropped connection on reset",	/* 52 - ENETRESET */
67*5753Sroot 	"Software caused connection abort",	/* 53 - ECONNABORTED */
68*5753Sroot 	"Connection reset by peer",		/* 54 - ECONNRESET */
69*5753Sroot 	"No buffer space available",		/* 55 - ENOBUFS */
70*5753Sroot 	"Socket is already connected",		/* 56 - EISCONN */
71*5753Sroot 	"Socket is not connected",		/* 57 - ENOTCONN */
72*5753Sroot 	"Can't send after socket shutdown",	/* 58 - ESHUTDOWN */
73*5753Sroot 	"Too many references: can't splice",	/* 59 - ETOOMANYREFS */
74*5753Sroot 	"Connection timed out",			/* 60 - ETIMEDOUT */
75*5753Sroot 	"Connection refused",			/* 61 - EREFUSED */
761964Swnj };
771964Swnj int	sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };
78