[9] | 1 | /*
|
---|
| 2 | * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
---|
| 3 | * See the copyright notice in the ACK home directory, in the file "Copyright".
|
---|
| 4 | */
|
---|
| 5 | /* $Header: /cvsup/minix/src/lib/ansi/errlist.c,v 1.4 2006/02/17 13:44:48 philip Exp $ */
|
---|
| 6 |
|
---|
| 7 | #include <errno.h>
|
---|
| 8 |
|
---|
| 9 | static const char unknown[] = "Unknown error";
|
---|
| 10 |
|
---|
| 11 | const char *_sys_errlist[] = {
|
---|
| 12 | "Error 0", /* EGENERIC */
|
---|
| 13 | "Not owner", /* EPERM */
|
---|
| 14 | "No such file or directory", /* ENOENT */
|
---|
| 15 | "No such process", /* ESRCH */
|
---|
| 16 | "Interrupted system call", /* EINTR */
|
---|
| 17 | "I/O error", /* EIO */
|
---|
| 18 | "No such device or address", /* ENXIO */
|
---|
| 19 | "Arg list too long", /* E2BIG */
|
---|
| 20 | "Exec format error", /* ENOEXEC */
|
---|
| 21 | "Bad file number", /* EBADF */
|
---|
| 22 | "No children", /* ECHILD */
|
---|
| 23 | "Resource temporarily unavailable",/* EAGAIN */
|
---|
| 24 | "Not enough core", /* ENOMEM */
|
---|
| 25 | "Permission denied", /* EACCES */
|
---|
| 26 | "Bad address", /* EFAULT */
|
---|
| 27 | "Block device required", /* ENOTBLK */
|
---|
| 28 | "Resource busy", /* EBUSY */
|
---|
| 29 | "File exists", /* EEXIST */
|
---|
| 30 | "Cross-device link", /* EXDEV */
|
---|
| 31 | "No such device", /* ENODEV */
|
---|
| 32 | "Not a directory", /* ENOTDIR */
|
---|
| 33 | "Is a directory", /* EISDIR */
|
---|
| 34 | "Invalid argument", /* EINVAL */
|
---|
| 35 | "File table overflow", /* ENFILE */
|
---|
| 36 | "Too many open files", /* EMFILE */
|
---|
| 37 | "Not a typewriter", /* ENOTTY */
|
---|
| 38 | "Text file busy", /* ETXTBSY */
|
---|
| 39 | "File too large", /* EFBIG */
|
---|
| 40 | "No space left on device", /* ENOSPC */
|
---|
| 41 | "Illegal seek", /* ESPIPE */
|
---|
| 42 | "Read-only file system", /* EROFS */
|
---|
| 43 | "Too many links", /* EMLINK */
|
---|
| 44 | "Broken pipe", /* EPIPE */
|
---|
| 45 | "Math argument", /* EDOM */
|
---|
| 46 | "Result too large", /* ERANGE */
|
---|
| 47 | "Resource deadlock avoided", /* EDEADLK */
|
---|
| 48 | "File name too long", /* ENAMETOOLONG */
|
---|
| 49 | "No locks available", /* ENOLCK */
|
---|
| 50 | "Function not implemented", /* ENOSYS */
|
---|
| 51 | "Directory not empty", /* ENOTEMPTY */
|
---|
| 52 | "Too many levels of symbolic links", /* ELOOP */
|
---|
| 53 | unknown, /* 41 */
|
---|
| 54 | unknown, /* 42 */
|
---|
| 55 | unknown, /* 43 */
|
---|
| 56 | unknown, /* 44 */
|
---|
| 57 | unknown, /* 45 */
|
---|
| 58 | unknown, /* 46 */
|
---|
| 59 | unknown, /* 47 */
|
---|
| 60 | unknown, /* 48 */
|
---|
| 61 | unknown, /* 49 */
|
---|
| 62 | "Invalid packet size", /* EPACKSIZE */
|
---|
| 63 | "Not enough buffers left", /* EOUTOFBUFS */
|
---|
| 64 | "Illegal ioctl for device", /* EBADIOCTL */
|
---|
| 65 | "Bad mode for ioctl", /* EBADMODE */
|
---|
| 66 | "Would block", /* EWOULDBLOCK */
|
---|
| 67 | "Bad destination address", /* EBADDEST */
|
---|
| 68 | "Destination not reachable", /* EDSTNOTRCH */
|
---|
| 69 | "Already connected", /* EISCONN */
|
---|
| 70 | "Address in use", /* EADDRINUSE */
|
---|
| 71 | "Connection refused", /* ECONNREFUSED */
|
---|
| 72 | "Connection reset", /* ECONNRESET */
|
---|
| 73 | "Connection timed out", /* ETIMEDOUT */
|
---|
| 74 | "Urgent data present", /* EURG */
|
---|
| 75 | "No urgent data present", /* ENOURG */
|
---|
| 76 | "No connection", /* ENOTCONN */
|
---|
| 77 | "Already shutdown", /* ESHUTDOWN */
|
---|
| 78 | "No such connection", /* ENOCONN */
|
---|
| 79 | "Address family not supported", /* EAFNOSUPPORT */
|
---|
| 80 | "Protocol not supported by AF", /* EPROTONOSUPPORT */
|
---|
| 81 | "Protocol wrong type for socket", /* EPROTOTYPE */
|
---|
| 82 | "Operation in progress", /* EINPROGRESS */
|
---|
| 83 | "Address not available", /* EADDRNOTAVAIL */
|
---|
| 84 | "Connection already in progress", /* EALREADY */
|
---|
| 85 | "Message too long", /* EMSGSIZE */
|
---|
| 86 | "Socket operation on non-socket", /* ENOTSOCK */
|
---|
| 87 | "Protocol not available", /* ENOPROTOOPT */
|
---|
| 88 | };
|
---|
| 89 |
|
---|
| 90 | const int _sys_nerr = sizeof(_sys_errlist) / sizeof(_sys_errlist[0]);
|
---|