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".
7 static const char unknown
[] = "Unknown error";
9 const char *_sys_errlist
[] = {
10 "Error 0", /* EGENERIC */
11 "Not owner", /* EPERM */
12 "No such file or directory", /* ENOENT */
13 "No such process", /* ESRCH */
14 "Interrupted system call", /* EINTR */
15 "I/O error", /* EIO */
16 "No such device or address", /* ENXIO */
17 "Arg list too long", /* E2BIG */
18 "Exec format error", /* ENOEXEC */
19 "Bad file number", /* EBADF */
20 "No children", /* ECHILD */
21 "Resource temporarily unavailable",/* EAGAIN */
22 "Not enough core", /* ENOMEM */
23 "Permission denied", /* EACCES */
24 "Bad address", /* EFAULT */
25 "Block device required", /* ENOTBLK */
26 "Resource busy", /* EBUSY */
27 "File exists", /* EEXIST */
28 "Cross-device link", /* EXDEV */
29 "No such device", /* ENODEV */
30 "Not a directory", /* ENOTDIR */
31 "Is a directory", /* EISDIR */
32 "Invalid argument", /* EINVAL */
33 "File table overflow", /* ENFILE */
34 "Too many open files", /* EMFILE */
35 "Not a typewriter", /* ENOTTY */
36 "Text file busy", /* ETXTBSY */
37 "File too large", /* EFBIG */
38 "No space left on device", /* ENOSPC */
39 "Illegal seek", /* ESPIPE */
40 "Read-only file system", /* EROFS */
41 "Too many links", /* EMLINK */
42 "Broken pipe", /* EPIPE */
43 "Math argument", /* EDOM */
44 "Result too large", /* ERANGE */
45 "Resource deadlock avoided", /* EDEADLK */
46 "File name too long", /* ENAMETOOLONG */
47 "No locks available", /* ENOLCK */
48 "Function not implemented", /* ENOSYS */
49 "Directory not empty", /* ENOTEMPTY */
50 "Too many levels of symbolic links", /* ELOOP */
51 "Driver restarted", /* ERESTART */
53 "Identifier removed", /* EIDRM */
54 "Illegal byte sequence", /* EILSEQ */
60 "Invalid packet size", /* EPACKSIZE */
61 "Not enough buffers left", /* ENOBUFS */
62 "Illegal ioctl for device", /* EBADIOCTL */
63 "Bad mode for ioctl", /* EBADMODE */
64 "Would block", /* EWOULDBLOCK */
65 "Network unreachable", /* ENETUNREACH */
66 "Host unreachable", /* EHOSTUNREACH */
67 "Already connected", /* EISCONN */
68 "Address in use", /* EADDRINUSE */
69 "Connection refused", /* ECONNREFUSED */
70 "Connection reset", /* ECONNRESET */
71 "Connection timed out", /* ETIMEDOUT */
72 "Urgent data present", /* EURG */
73 "No urgent data present", /* ENOURG */
74 "No connection", /* ENOTCONN */
75 "Already shutdown", /* ESHUTDOWN */
76 "No such connection", /* ENOCONN */
77 "Address family not supported", /* EAFNOSUPPORT */
78 "Protocol not supported by AF", /* EPROTONOSUPPORT */
79 "Protocol wrong type for socket", /* EPROTOTYPE */
80 "Operation in progress", /* EINPROGRESS */
81 "Address not available", /* EADDRNOTAVAIL */
82 "Connection already in progress", /* EALREADY */
83 "Message too long", /* EMSGSIZE */
84 "Socket operation on non-socket", /* ENOTSOCK */
85 "Protocol not available", /* ENOPROTOOPT */
86 "Operation not supported", /* EOPNOTSUPP */
87 "Network is down", /* ENETDOWN */
90 const int _sys_nerr
= sizeof(_sys_errlist
) / sizeof(_sys_errlist
[0]);