xref: /csrg-svn/lib/libc/gen/errlst.c (revision 6420)
1*6420Sroot /* @(#)errlst.c	4.4 (Berkeley) 82/04/01 */
21964Swnj char	*sys_errlist[] = {
31964Swnj 	"Error 0",
45753Sroot 	"Not owner",				/* 1 - EPERM */
55753Sroot 	"No such file or directory",		/* 2 - ENOENT */
65753Sroot 	"No such process",			/* 3 - ESRCH */
75753Sroot 	"Interrupted system call",		/* 4 - EINTR */
85753Sroot 	"I/O error",				/* 5 - EIO */
95753Sroot 	"No such device or address",		/* 6 - ENXIO */
105753Sroot 	"Arg list too long",			/* 7 - E2BIG */
115753Sroot 	"Exec format error",			/* 8 - ENOEXEC */
125753Sroot 	"Bad file number",			/* 9 - EBADF */
135753Sroot 	"No children",				/* 10 - ECHILD */
145753Sroot 	"No more processes",			/* 11 - EAGAIN */
155753Sroot 	"Not enough core",			/* 12 - ENOMEM */
165753Sroot 	"Permission denied",			/* 13 - EACCES */
175753Sroot 	"Bad address",				/* 14 - EFAULT */
185753Sroot 	"Block device required",		/* 15 - ENOTBLK */
195753Sroot 	"Mount device busy",			/* 16 - EBUSY */
205753Sroot 	"File exists",				/* 17 - EEXIST */
215753Sroot 	"Cross-device link",			/* 18 - EXDEV */
225753Sroot 	"No such device",			/* 19 - ENODEV */
235753Sroot 	"Not a directory",			/* 20 - ENOTDIR */
245753Sroot 	"Is a directory",			/* 21 - EISDIR */
255753Sroot 	"Invalid argument",			/* 22 - EINVAL */
265753Sroot 	"File table overflow",			/* 23 - ENFILE */
275753Sroot 	"Too many open files",			/* 24 - EMFILE */
285753Sroot 	"Not a typewriter",			/* 25 - ENOTTY */
295753Sroot 	"Text file busy",			/* 26 - ETXTBSY */
305753Sroot 	"File too large",			/* 27 - EFBIG */
315753Sroot 	"No space left on device",		/* 28 - ENOSPC */
325753Sroot 	"Illegal seek",				/* 29 - ESPIPE */
335753Sroot 	"Read-only file system",		/* 30 - EROFS */
345753Sroot 	"Too many links",			/* 31 - EMLINK */
355753Sroot 	"Broken pipe",				/* 32 - EPIPE */
365753Sroot 
375753Sroot /* math software */
385753Sroot 	"Argument too large",			/* 33 - EDOM */
395753Sroot 	"Result too large",			/* 34 - ERANGE */
405753Sroot 
415753Sroot /* non-blocking and interrupt i/o */
425753Sroot 	"Operation would block",		/* 35 - EWOULDBLOCK */
435753Sroot 	"Operation now in progress",		/* 36 - EINPROGRESS */
445753Sroot 	"Operation already in progress",	/* 37 - EALREADY */
455753Sroot 
465753Sroot /* ipc/network software */
475753Sroot 
485753Sroot 	/* argument errors */
495753Sroot 	"Socket operation on non-socket",	/* 38 - ENOTSOCK */
505753Sroot 	"Destination address required",		/* 39 - EDESTADDRREQ */
515753Sroot 	"Message too long",			/* 40 - EMSGSIZE */
525753Sroot 	"Protocol wrong type for socket",	/* 41 - EPROTOTYPE */
535753Sroot 	"Protocol not available",		/* 42 - ENOPROTOOPT */
545753Sroot 	"Protocol not supported",		/* 43 - EPROTONOSUPPORT */
555753Sroot 	"Socket type not supported",		/* 44 - ESOCKTNOSUPPORT */
565753Sroot 	"Operation not supported on socket",	/* 45 - EOPNOTSUPP */
575753Sroot 	"Protocol family not supported",	/* 46 - EPFNOSUPPORT */
585753Sroot 	"Address family not supported by protocol family",
595753Sroot 						/* 47 - EAFNOSUPPORT */
605753Sroot 	"Address already in use",		/* 48 - EADDRINUSE */
615753Sroot 	"Can't assign requested address",	/* 49 - EADDRNOTAVAIL */
625753Sroot 
635753Sroot 	/* operational errors */
645753Sroot 	"Network is down",			/* 50 - ENETDOWN */
655753Sroot 	"Network is unreachable",		/* 51 - ENETUNREACH */
665753Sroot 	"Network dropped connection on reset",	/* 52 - ENETRESET */
675753Sroot 	"Software caused connection abort",	/* 53 - ECONNABORTED */
685753Sroot 	"Connection reset by peer",		/* 54 - ECONNRESET */
695753Sroot 	"No buffer space available",		/* 55 - ENOBUFS */
705753Sroot 	"Socket is already connected",		/* 56 - EISCONN */
715753Sroot 	"Socket is not connected",		/* 57 - ENOTCONN */
725753Sroot 	"Can't send after socket shutdown",	/* 58 - ESHUTDOWN */
735753Sroot 	"Too many references: can't splice",	/* 59 - ETOOMANYREFS */
745753Sroot 	"Connection timed out",			/* 60 - ETIMEDOUT */
755753Sroot 	"Connection refused",			/* 61 - EREFUSED */
76*6420Sroot 	"Too many levels of symbolic links",	/* 62 - ELOOP */
77*6420Sroot 	"File name too long",			/* 63 - ENAMETOOLONG */
781964Swnj };
791964Swnj int	sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };
80