xref: /titanic_50/usr/src/lib/libbc/libc/gen/common/errlst.c (revision 275c9da86e89f8abf71135cf63d9fc23671b2e60)
1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
2 	  /* from UCB 5.1 85/05/30 */
3 
4 /*
5  * Copyright (c) 1980 Regents of the University of California.
6  * All rights reserved.  The Berkeley software License Agreement
7  * specifies the terms and conditions for redistribution.
8  */
9 
10 char	*sys_errlist[] = {
11 	"Error 0",
12 	"Not owner",				/* 1 - EPERM */
13 	"No such file or directory",		/* 2 - ENOENT */
14 	"No such process",			/* 3 - ESRCH */
15 	"Interrupted system call",		/* 4 - EINTR */
16 	"I/O error",				/* 5 - EIO */
17 	"No such device or address",		/* 6 - ENXIO */
18 	"Arg list too long",			/* 7 - E2BIG */
19 	"Exec format error",			/* 8 - ENOEXEC */
20 	"Bad file number",			/* 9 - EBADF */
21 	"No children",				/* 10 - ECHILD */
22 	"No more processes",			/* 11 - EAGAIN */
23 	"Not enough memory",			/* 12 - ENOMEM */
24 	"Permission denied",			/* 13 - EACCES */
25 	"Bad address",				/* 14 - EFAULT */
26 	"Block device required",		/* 15 - ENOTBLK */
27 	"Device busy",				/* 16 - EBUSY */
28 	"File exists",				/* 17 - EEXIST */
29 	"Cross-device link",			/* 18 - EXDEV */
30 	"No such device",			/* 19 - ENODEV */
31 	"Not a directory",			/* 20 - ENOTDIR */
32 	"Is a directory",			/* 21 - EISDIR */
33 	"Invalid argument",			/* 22 - EINVAL */
34 	"File table overflow",			/* 23 - ENFILE */
35 	"Too many open files",			/* 24 - EMFILE */
36 	"Inappropriate ioctl for device",	/* 25 - ENOTTY */
37 	"Text file busy",			/* 26 - ETXTBSY */
38 	"File too large",			/* 27 - EFBIG */
39 	"No space left on device",		/* 28 - ENOSPC */
40 	"Illegal seek",				/* 29 - ESPIPE */
41 	"Read-only file system",		/* 30 - EROFS */
42 	"Too many links",			/* 31 - EMLINK */
43 	"Broken pipe",				/* 32 - EPIPE */
44 
45 /* math software */
46 	"Argument too large",			/* 33 - EDOM */
47 	"Result too large",			/* 34 - ERANGE */
48 
49 /* non-blocking and interrupt i/o */
50 	"Operation would block",		/* 35 - EWOULDBLOCK */
51 	"Operation now in progress",		/* 36 - EINPROGRESS */
52 	"Operation already in progress",	/* 37 - EALREADY */
53 
54 /* ipc/network software */
55 
56 	/* argument errors */
57 	"Socket operation on non-socket",	/* 38 - ENOTSOCK */
58 	"Destination address required",		/* 39 - EDESTADDRREQ */
59 	"Message too long",			/* 40 - EMSGSIZE */
60 	"Protocol wrong type for socket",	/* 41 - EPROTOTYPE */
61 	"Option not supported by protocol",	/* 42 - ENOPROTOOPT */
62 	"Protocol not supported",		/* 43 - EPROTONOSUPPORT */
63 	"Socket type not supported",		/* 44 - ESOCKTNOSUPPORT */
64 	"Operation not supported on socket",	/* 45 - EOPNOTSUPP */
65 	"Protocol family not supported",	/* 46 - EPFNOSUPPORT */
66 	"Address family not supported by protocol family",
67 						/* 47 - EAFNOSUPPORT */
68 	"Address already in use",		/* 48 - EADDRINUSE */
69 	"Can't assign requested address",	/* 49 - EADDRNOTAVAIL */
70 
71 	/* operational errors */
72 	"Network is down",			/* 50 - ENETDOWN */
73 	"Network is unreachable",		/* 51 - ENETUNREACH */
74 	"Network dropped connection on reset",	/* 52 - ENETRESET */
75 	"Software caused connection abort",	/* 53 - ECONNABORTED */
76 	"Connection reset by peer",		/* 54 - ECONNRESET */
77 	"No buffer space available",		/* 55 - ENOBUFS */
78 	"Socket is already connected",		/* 56 - EISCONN */
79 	"Socket is not connected",		/* 57 - ENOTCONN */
80 	"Can't send after socket shutdown",	/* 58 - ESHUTDOWN */
81 	"Too many references: can't splice",	/* 59 - ETOOMANYREFS */
82 	"Connection timed out",			/* 60 - ETIMEDOUT */
83 	"Connection refused",			/* 61 - EREFUSED */
84 	"Too many levels of symbolic links",	/* 62 - ELOOP */
85 	"File name too long",			/* 63 - ENAMETOOLONG */
86 	"Host is down",				/* 64 - EHOSTDOWN */
87 	"Host is unreachable",			/* 65 - EHOSTUNREACH */
88 	"Directory not empty",			/* 66 - ENOTEMPTY */
89 	"Too many processes",			/* 67 - EPROCLIM */
90 	"Too many users",			/* 68 - EUSERS */
91 	"Disc quota exceeded",			/* 69 - EDQUOT */
92 	"Stale NFS file handle",		/* 70 - ESTALE */
93 	"Too many levels of remote in path",	/* 71 - EREMOTE */
94 	"Not a stream device",			/* 72 - ENOSTR */
95 	"Timer expired",			/* 73 - ETIME */
96 	"Out of stream resources",		/* 74 - ENOSR */
97 	"No message of desired type",		/* 75 - ENOMSG */
98 	"Not a data message",			/* 76 - EBADMSG */
99 	"Identifier removed",			/* 77 - EIDRM */
100 	"Deadlock situation detected/avoided",	/* 78 - EDEADLK */
101 	"No record locks available",		/* 79 - ENOLCK */
102 	"Machine is not on the network", 	/* 80 - ENONET */
103 	"Object is remote", 			/* 81 - ERREMOTE */
104 	"Link has been severed", 		/* 82 - ENOLINK */
105 	"Advertise error ", 			/* 83 - EADV */
106 	"Srmount error ", 			/* 84 - ESRMNT */
107 	"Communication error on send", 		/* 85 - ECOMM */
108 	"Protocol error", 			/* 86 - EPROTO */
109 	"Multihop attempted", 			/* 87 - EMULTIHOP */
110 	"EDOTDOT!!!!", 				/* 88 - EDOTDOT -can't happen */
111 	"Remote address changed",		/* 89 - EREMCHG */
112 	"Function not implemented",		/* 90 - ENOSYS */
113 };
114 int	sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };
115