1/* 2 * @OSF_COPYRIGHT@ 3 */ 4 5/* 6 * Mach Operating System 7 * Copyright (c) 1991,1990,1989 Carnegie Mellon University 8 * All Rights Reserved. 9 * 10 * Permission to use, copy, modify and distribute this software and its 11 * documentation is hereby granted, provided that both the copyright 12 * notice and this permission notice appear in all copies of the 13 * software, derivative works or modified versions, and any portions 14 * thereof, and that both notices appear in supporting documentation. 15 * 16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 18 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 19 * 20 * Carnegie Mellon requests users of this software to return to 21 * 22 * Software Distribution Coordinator or [email protected] 23 * School of Computer Science 24 * Carnegie Mellon University 25 * Pittsburgh PA 15213-3890 26 * 27 * any improvements or extensions that they make and grant Carnegie the 28 * rights to redistribute these changes. 29 */ 30 31/* 32 * File: err_kern.sub 33 * Author: Douglas Orr, Carnegie Mellon University 34 * Date: Mar, 1988 35 * 36 * error codes for Mach and Unix kernels 37 */ 38 39static const char * const err_codes_kern[] = { 40 "(os/kern) successful", /* 0 */ 41 "(os/kern) invalid address", 42 "(os/kern) protection failure", 43 "(os/kern) no space available", 44 "(os/kern) invalid argument", 45 "(os/kern) failure", /* 5 */ 46 "(os/kern) resource shortage", 47 "(os/kern) not receiver", 48 "(os/kern) no access", 49 "(os/kern) memory failure", 50 "(os/kern) memory error", /* 10 */ 51 "(os/kern) already in set", 52 "(os/kern) not in set", 53 "(os/kern) name exists", 54 "(os/kern) aborted", 55 "(os/kern) invalid name", /* 15 */ 56 "(os/kern) invalid task", 57 "(os/kern) invalid right", 58 "(os/kern) invalid value", 59 "(os/kern) urefs overflow", 60 "(os/kern) invalid capability", /* 20 */ 61 "(os/kern) right exists", 62 "(os/kern) invalid host", 63 "(os/kern) memory present", 64 "(os/kern) memory data moved", 65 "(os/kern) memory restart copy", /* 25 */ 66 "(os/kern) invalid processor set", 67 "(os/kern) policy limit", 68 "(os/kern) invalid policy", 69 "(os/kern) invalid object", 70 "(os/kern) already waiting", /* 30 */ 71 "(os/kern) default set", 72 "(os/kern) exception protected", 73 "(os/kern) invalid ledger", 74 "(os/kern) invalid memory control", 75 "(os/kern) invalid security", /* 35 */ 76 "(os/kern) not depressed", 77 "(os/kern) object terminated", 78 "(os/kern) lock set destroyed", 79 "(os/kern) lock unstable", 80 "(os/kern) lock owned by another", /* 40 */ 81 "(os/kern) lock owned by self", 82 "(os/kern) semaphore destroyed", 83 "(os/kern) RPC terminated", 84 "(os/kern) terminate orphan", 85 "(os/kern) let orphan continue", /* 45 */ 86 "(os/kern) service not supported", 87 "(os/kern) remote node down", 88 "(os/kern) thread not waiting", 89 "(os/kern) operation timed out", 90 "(os/kern) code signing error", /* 50 */ 91 "(os/kern) policy is static", 92 "(os/kern) insufficient input buffer size", 93 "(os/kern) denied by security policy", 94 "(os/kern) missing kernel collection", 95 "(os/kern) invalid kernel collection", /* 55 */ 96 "(os/kern) result not found", 97}; 98 99static const char * const err_codes_unix[] = { 100 NO_SUCH_ERROR, 101 "(os/unix) no rights to object", 102 "(os/unix) file or directory does not exist", 103 "(os/unix) no such process", 104 "(os/unix) interrupted system call", 105 "(os/unix) i/o error", 106 "(os/unix) device does not exist", 107 "(os/unix) argument list is too long", 108 "(os/unix) invalid executable object format", 109 "(os/unix) bad file descriptor number", 110 "(os/unix) no child processes are present", 111 "(os/unix) no more processes are available", 112 "(os/unix) insufficient memory", 113 "(os/unix) access denied", 114 "(os/unix) memory access fault", 115 "(os/unix) block device required for operation", 116 "(os/unix) mount device busy", 117 "(os/unix) file already exists", 118 "(os/unix) cross device link", 119 "(os/unix) device does not exist", 120 "(os/unix) object is not a directory", 121 "(os/unix) object is a directory", 122 "(os/unix) invalid argument", 123 "(os/unix) internal file table overflow", 124 "(os/unix) maximum number of open files reached", 125 "(os/unix) object is not a tty-like device", 126 "(os/unix) executable object is in use", 127 "(os/unix) file is too large", 128 "(os/unix) no space is left on device", 129 "(os/unix) illegal seek attempt", 130 "(os/unix) read-only file system", 131 "(os/unix) too many links", 132 "(os/unix) broken pipe", 133 "(os/unix) argument is too large", 134 "(os/unix) result is out of range", 135 "(os/unix) operation on device would block", 136 "(os/unix) operation is now in progress", 137 "(os/unix) operation is already in progress", 138 "(os/unix) socket operation attempted on non-socket object", 139 "(os/unix) destination address is required", 140 "(os/unix) message is too long", 141 "(os/unix) protocol type is incorrect for socket", 142 "(os/unix) protocol type is not availaible", 143 "(os/unix) protocol type is not supported", 144 "(os/unix) socket type is not supported", 145 "(os/unix) operation is not supported on sockets", 146 "(os/unix) protocol family is not supported", 147 "(os/unix) address family is not supported by protocol family", 148 "(os/unix) address is already in use", 149 "(os/unix) can't assign requested address", 150 "(os/unix) network is down", 151 "(os/unix) network is unreachable", 152 "(os/unix) network dropped connection on reset", 153 "(os/unix) software aborted connection", 154 "(os/unix) connection reset by peer", 155 "(os/unix) no buffer space is available", 156 "(os/unix) socket is already connected", 157 "(os/unix) socket is not connected", 158 "(os/unix) can't send after socket shutdown", 159 "(os/unix) too many references; can't splice", 160 "(os/unix) connection timed out", 161 "(os/unix) connection was refused", 162 "(os/unix) too many levels of symbolic links", 163 "(os/unix) file name exceeds system maximum limit", 164 "(os/unix) host is down", 165 "(os/unix) there is no route to host", 166 "(os/unix) directory is not empty", 167 "(os/unix) quota on number of processes exceeded", 168 "(os/unix) quota on number of users exceeded", 169 "(os/unix) quota on available disk space exceeded", 170}; 171 172static const struct error_subsystem err_os_sub[] = { 173 { 174 "(os/kern)", 175 errlib_count(err_codes_kern), 176 err_codes_kern, 177 }, 178 { 179 "(os/?)", 180 0, 181 }, 182 { 183 "(os/?)", 184 0, 185 }, 186 { 187 "(os/unix)", 188 errlib_count(err_codes_unix), 189 err_codes_unix, 190 }, 191}; 192