xref: /csrg-svn/lib/libc/gen/errlst.c (revision 26548)
121340Sdist /*
221340Sdist  * Copyright (c) 1980 Regents of the University of California.
321340Sdist  * All rights reserved.  The Berkeley software License Agreement
421340Sdist  * specifies the terms and conditions for redistribution.
521340Sdist  */
621340Sdist 
7*26548Sdonn #if defined(LIBC_SCCS) && !defined(lint)
8*26548Sdonn static char sccsid[] = "@(#)errlst.c	5.2 (Berkeley) 03/09/86";
9*26548Sdonn #endif LIBC_SCCS and not lint
1021340Sdist 
111964Swnj char	*sys_errlist[] = {
121964Swnj 	"Error 0",
135753Sroot 	"Not owner",				/* 1 - EPERM */
145753Sroot 	"No such file or directory",		/* 2 - ENOENT */
155753Sroot 	"No such process",			/* 3 - ESRCH */
165753Sroot 	"Interrupted system call",		/* 4 - EINTR */
175753Sroot 	"I/O error",				/* 5 - EIO */
185753Sroot 	"No such device or address",		/* 6 - ENXIO */
195753Sroot 	"Arg list too long",			/* 7 - E2BIG */
205753Sroot 	"Exec format error",			/* 8 - ENOEXEC */
215753Sroot 	"Bad file number",			/* 9 - EBADF */
225753Sroot 	"No children",				/* 10 - ECHILD */
235753Sroot 	"No more processes",			/* 11 - EAGAIN */
2417460Skarels 	"Not enough memory",			/* 12 - ENOMEM */
255753Sroot 	"Permission denied",			/* 13 - EACCES */
265753Sroot 	"Bad address",				/* 14 - EFAULT */
275753Sroot 	"Block device required",		/* 15 - ENOTBLK */
2817460Skarels 	"Device busy",				/* 16 - EBUSY */
295753Sroot 	"File exists",				/* 17 - EEXIST */
305753Sroot 	"Cross-device link",			/* 18 - EXDEV */
315753Sroot 	"No such device",			/* 19 - ENODEV */
325753Sroot 	"Not a directory",			/* 20 - ENOTDIR */
335753Sroot 	"Is a directory",			/* 21 - EISDIR */
345753Sroot 	"Invalid argument",			/* 22 - EINVAL */
355753Sroot 	"File table overflow",			/* 23 - ENFILE */
365753Sroot 	"Too many open files",			/* 24 - EMFILE */
3717460Skarels 	"Inappropriate ioctl for device",	/* 25 - ENOTTY */
385753Sroot 	"Text file busy",			/* 26 - ETXTBSY */
395753Sroot 	"File too large",			/* 27 - EFBIG */
405753Sroot 	"No space left on device",		/* 28 - ENOSPC */
415753Sroot 	"Illegal seek",				/* 29 - ESPIPE */
425753Sroot 	"Read-only file system",		/* 30 - EROFS */
435753Sroot 	"Too many links",			/* 31 - EMLINK */
445753Sroot 	"Broken pipe",				/* 32 - EPIPE */
455753Sroot 
465753Sroot /* math software */
475753Sroot 	"Argument too large",			/* 33 - EDOM */
485753Sroot 	"Result too large",			/* 34 - ERANGE */
495753Sroot 
505753Sroot /* non-blocking and interrupt i/o */
515753Sroot 	"Operation would block",		/* 35 - EWOULDBLOCK */
525753Sroot 	"Operation now in progress",		/* 36 - EINPROGRESS */
535753Sroot 	"Operation already in progress",	/* 37 - EALREADY */
545753Sroot 
555753Sroot /* ipc/network software */
565753Sroot 
575753Sroot 	/* argument errors */
585753Sroot 	"Socket operation on non-socket",	/* 38 - ENOTSOCK */
595753Sroot 	"Destination address required",		/* 39 - EDESTADDRREQ */
605753Sroot 	"Message too long",			/* 40 - EMSGSIZE */
615753Sroot 	"Protocol wrong type for socket",	/* 41 - EPROTOTYPE */
6217460Skarels 	"Option not supported by protocol",	/* 42 - ENOPROTOOPT */
635753Sroot 	"Protocol not supported",		/* 43 - EPROTONOSUPPORT */
645753Sroot 	"Socket type not supported",		/* 44 - ESOCKTNOSUPPORT */
655753Sroot 	"Operation not supported on socket",	/* 45 - EOPNOTSUPP */
665753Sroot 	"Protocol family not supported",	/* 46 - EPFNOSUPPORT */
675753Sroot 	"Address family not supported by protocol family",
685753Sroot 						/* 47 - EAFNOSUPPORT */
695753Sroot 	"Address already in use",		/* 48 - EADDRINUSE */
705753Sroot 	"Can't assign requested address",	/* 49 - EADDRNOTAVAIL */
715753Sroot 
725753Sroot 	/* operational errors */
735753Sroot 	"Network is down",			/* 50 - ENETDOWN */
745753Sroot 	"Network is unreachable",		/* 51 - ENETUNREACH */
755753Sroot 	"Network dropped connection on reset",	/* 52 - ENETRESET */
765753Sroot 	"Software caused connection abort",	/* 53 - ECONNABORTED */
775753Sroot 	"Connection reset by peer",		/* 54 - ECONNRESET */
785753Sroot 	"No buffer space available",		/* 55 - ENOBUFS */
795753Sroot 	"Socket is already connected",		/* 56 - EISCONN */
805753Sroot 	"Socket is not connected",		/* 57 - ENOTCONN */
815753Sroot 	"Can't send after socket shutdown",	/* 58 - ESHUTDOWN */
825753Sroot 	"Too many references: can't splice",	/* 59 - ETOOMANYREFS */
835753Sroot 	"Connection timed out",			/* 60 - ETIMEDOUT */
845753Sroot 	"Connection refused",			/* 61 - EREFUSED */
856420Sroot 	"Too many levels of symbolic links",	/* 62 - ELOOP */
866420Sroot 	"File name too long",			/* 63 - ENAMETOOLONG */
876606Ssam 	"Host is down",				/* 64 - EHOSTDOWN */
886606Ssam 	"Host is unreachable",			/* 65 - EHOSTUNREACH */
899846Ssam 	"Directory not empty",			/* 66 - ENOTEMPTY */
909846Ssam 	"Too many processes",			/* 67 - EPROCLIM */
919846Ssam 	"Too many users",			/* 68 - EUSERS */
929846Ssam 	"Disc quota exceeded",			/* 69 - EDQUOT */
931964Swnj };
941964Swnj int	sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] };
95