Commit | Line | Data |
---|---|---|
bb0cfa24 | 1 | /* |
5fc5ffeb KB |
2 | * Copyright (c) 1982, 1985 Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
269a7923 | 5 | * %sccs.include.redist.c% |
bb0cfa24 DF |
6 | */ |
7 | ||
2ce81398 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
30681d11 | 9 | static char sccsid[] = "@(#)errlst.c 5.9 (Berkeley) %G%"; |
5fc5ffeb | 10 | #endif /* LIBC_SCCS and not lint */ |
bb0cfa24 | 11 | |
52707670 | 12 | char *sys_errlist[] = { |
d16ae46d KB |
13 | "Undefined error: 0", /* 0 - ENOERROR */ |
14 | "Operation not permitted", /* 1 - EPERM */ | |
15 | "No such file or directory", /* 2 - ENOENT */ | |
16 | "No such process", /* 3 - ESRCH */ | |
17 | "Interrupted system call", /* 4 - EINTR */ | |
18 | "Input/output error", /* 5 - EIO */ | |
19 | "Device not configured", /* 6 - ENXIO */ | |
20 | "Argument list too long", /* 7 - E2BIG */ | |
21 | "Exec format error", /* 8 - ENOEXEC */ | |
22 | "Bad file descriptor", /* 9 - EBADF */ | |
23 | "No child processes", /* 10 - ECHILD */ | |
24 | "Resource deadlock avoided", /* 11 - EDEADLK */ | |
25 | "Cannot allocate memory", /* 12 - ENOMEM */ | |
07467f1b BJ |
26 | "Permission denied", /* 13 - EACCES */ |
27 | "Bad address", /* 14 - EFAULT */ | |
28 | "Block device required", /* 15 - ENOTBLK */ | |
842a3b7c | 29 | "Device busy", /* 16 - EBUSY */ |
07467f1b BJ |
30 | "File exists", /* 17 - EEXIST */ |
31 | "Cross-device link", /* 18 - EXDEV */ | |
d16ae46d | 32 | "Operation not supported by device", /* 19 - ENODEV */ |
07467f1b BJ |
33 | "Not a directory", /* 20 - ENOTDIR */ |
34 | "Is a directory", /* 21 - EISDIR */ | |
35 | "Invalid argument", /* 22 - EINVAL */ | |
d16ae46d | 36 | "Too many open files in system", /* 23 - ENFILE */ |
07467f1b | 37 | "Too many open files", /* 24 - EMFILE */ |
842a3b7c | 38 | "Inappropriate ioctl for device", /* 25 - ENOTTY */ |
07467f1b BJ |
39 | "Text file busy", /* 26 - ETXTBSY */ |
40 | "File too large", /* 27 - EFBIG */ | |
41 | "No space left on device", /* 28 - ENOSPC */ | |
42 | "Illegal seek", /* 29 - ESPIPE */ | |
43 | "Read-only file system", /* 30 - EROFS */ | |
44 | "Too many links", /* 31 - EMLINK */ | |
45 | "Broken pipe", /* 32 - EPIPE */ | |
46 | ||
47 | /* math software */ | |
d16ae46d KB |
48 | "Numerical argument out of domain", /* 33 - EDOM */ |
49 | "Numerical result out of range", /* 34 - ERANGE */ | |
07467f1b BJ |
50 | |
51 | /* non-blocking and interrupt i/o */ | |
d16ae46d KB |
52 | "Resource temporarily unavailable", /* 35 - EAGAIN */ |
53 | /* 35 - EWOULDBLOCK */ | |
07467f1b BJ |
54 | "Operation now in progress", /* 36 - EINPROGRESS */ |
55 | "Operation already in progress", /* 37 - EALREADY */ | |
56 | ||
d16ae46d | 57 | /* ipc/network software -- argument errors */ |
07467f1b BJ |
58 | "Socket operation on non-socket", /* 38 - ENOTSOCK */ |
59 | "Destination address required", /* 39 - EDESTADDRREQ */ | |
60 | "Message too long", /* 40 - EMSGSIZE */ | |
61 | "Protocol wrong type for socket", /* 41 - EPROTOTYPE */ | |
d16ae46d | 62 | "Protocol not available", /* 42 - ENOPROTOOPT */ |
07467f1b BJ |
63 | "Protocol not supported", /* 43 - EPROTONOSUPPORT */ |
64 | "Socket type not supported", /* 44 - ESOCKTNOSUPPORT */ | |
1a633e8c | 65 | "Operation not supported", /* 45 - EOPNOTSUPP */ |
07467f1b | 66 | "Protocol family not supported", /* 46 - EPFNOSUPPORT */ |
07467f1b | 67 | /* 47 - EAFNOSUPPORT */ |
d16ae46d | 68 | "Address family not supported by protocol family", |
07467f1b BJ |
69 | "Address already in use", /* 48 - EADDRINUSE */ |
70 | "Can't assign requested address", /* 49 - EADDRNOTAVAIL */ | |
71 | ||
d16ae46d | 72 | /* ipc/network software -- operational errors */ |
07467f1b BJ |
73 | "Network is down", /* 50 - ENETDOWN */ |
74 | "Network is unreachable", /* 51 - ENETUNREACH */ | |
75 | "Network dropped connection on reset", /* 52 - ENETRESET */ | |
76 | "Software caused connection abort", /* 53 - ECONNABORTED */ | |
77 | "Connection reset by peer", /* 54 - ECONNRESET */ | |
78 | "No buffer space available", /* 55 - ENOBUFS */ | |
79 | "Socket is already connected", /* 56 - EISCONN */ | |
80 | "Socket is not connected", /* 57 - ENOTCONN */ | |
81 | "Can't send after socket shutdown", /* 58 - ESHUTDOWN */ | |
d16ae46d | 82 | "Too many references: can't splice", /* 59 - ETOOMANYREFS */ |
07467f1b | 83 | "Connection timed out", /* 60 - ETIMEDOUT */ |
5fc5ffeb | 84 | "Connection refused", /* 61 - ECONNREFUSED */ |
d16ae46d | 85 | |
33ab3975 BJ |
86 | "Too many levels of symbolic links", /* 62 - ELOOP */ |
87 | "File name too long", /* 63 - ENAMETOOLONG */ | |
d16ae46d KB |
88 | |
89 | /* should be rearranged */ | |
6922d743 | 90 | "Host is down", /* 64 - EHOSTDOWN */ |
d16ae46d | 91 | "No route to host", /* 65 - EHOSTUNREACH */ |
e6b33875 | 92 | "Directory not empty", /* 66 - ENOTEMPTY */ |
d16ae46d KB |
93 | |
94 | /* quotas & mush */ | |
e6b33875 SL |
95 | "Too many processes", /* 67 - EPROCLIM */ |
96 | "Too many users", /* 68 - EUSERS */ | |
97 | "Disc quota exceeded", /* 69 - EDQUOT */ | |
d16ae46d KB |
98 | |
99 | /* Network File System */ | |
100 | "Stale NFS file handle", /* 70 - ESTALE */ | |
101 | "Too many levels of remote in path", /* 71 - EREMOTE */ | |
102 | "RPC struct is bad", /* 72 - EBADRPC */ | |
103 | "RPC version wrong", /* 73 - ERPCMISMATCH */ | |
104 | "RPC prog. not avail", /* 74 - EPROGUNAVAIL */ | |
105 | "Program version wrong", /* 75 - EPROGMISMATCH */ | |
106 | "Bad procedure for program", /* 76 - EPROCUNAVAIL */ | |
107 | ||
108 | "No locks available", /* 77 - ENOLCK */ | |
109 | "Function not implemented", /* 78 - ENOSYS */ | |
30681d11 | 110 | "Inappropriate file type or format", /* 79 - EFTYPE */ |
0b74a67d | 111 | }; |
52707670 | 112 | int errno; |
d16ae46d | 113 | int sys_nerr = { sizeof sys_errlist/sizeof sys_errlist[0] }; |