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