Blame mach/err_kern.sub

Packit 6c4009
/*
Packit 6c4009
 * Mach Operating System
Packit 6c4009
 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
Packit 6c4009
 * All Rights Reserved.
Packit 6c4009
 *
Packit 6c4009
 * Permission to use, copy, modify and distribute this software and its
Packit 6c4009
 * documentation is hereby granted, provided that both the copyright
Packit 6c4009
 * notice and this permission notice appear in all copies of the
Packit 6c4009
 * software, derivative works or modified versions, and any portions
Packit 6c4009
 * thereof, and that both notices appear in supporting documentation.
Packit 6c4009
 *
Packit 6c4009
 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
Packit 6c4009
 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
Packit 6c4009
 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
Packit 6c4009
 *
Packit 6c4009
 * Carnegie Mellon requests users of this software to return to
Packit 6c4009
 *
Packit 6c4009
 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
Packit 6c4009
 *  School of Computer Science
Packit 6c4009
 *  Carnegie Mellon University
Packit 6c4009
 *  Pittsburgh PA 15213-3890
Packit 6c4009
 *
Packit 6c4009
 * any improvements or extensions that they make and grant Carnegie the
Packit 6c4009
 * rights to redistribute these changes.
Packit 6c4009
 */
Packit 6c4009
/*
Packit 6c4009
 * (pre-GNU) HISTORY
Packit 6c4009
 *
Packit 6c4009
 * Revision 2.3  92/04/01  19:38:02  rpd
Packit 6c4009
 * 	Added err_codes_device.
Packit 6c4009
 * 	[92/03/09            rpd]
Packit 6c4009
 *
Packit 6c4009
 * Revision 2.2  92/01/16  00:08:50  rpd
Packit 6c4009
 * 	Moved from user collection to mk collection.
Packit 6c4009
 *
Packit 6c4009
 * Revision 2.3  91/08/29  15:51:22  rpd
Packit 6c4009
 * 	Updated err_codes_kern.
Packit 6c4009
 * 	[91/08/15            rpd]
Packit 6c4009
 *
Packit 6c4009
 * Revision 2.2  91/03/27  16:05:27  mrt
Packit 6c4009
 * 	First checkin
Packit 6c4009
 *
Packit 6c4009
 */
Packit 6c4009
/*
Packit 6c4009
 *	File: 	err_kern.sub
Packit 6c4009
 *	Author:	Douglas Orr, Carnegie Mellon University
Packit 6c4009
 *	Date:	Mar, 1988
Packit 6c4009
 *
Packit 6c4009
 *	error codes for Mach and Unix kernels
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
static char * err_codes_kern[] = {
Packit 6c4009
	"(os/kern) successful",
Packit 6c4009
	"(os/kern) invalid address",
Packit 6c4009
	"(os/kern) protection failure",
Packit 6c4009
	"(os/kern) no space available",
Packit 6c4009
	"(os/kern) invalid argument",
Packit 6c4009
	"(os/kern) failure",
Packit 6c4009
	"(os/kern) resource shortage",
Packit 6c4009
	"(os/kern) not receiver",
Packit 6c4009
	"(os/kern) no access",
Packit 6c4009
	"(os/kern) memory failure",
Packit 6c4009
	"(os/kern) memory error",
Packit 6c4009
	"(os/kern) already in set",
Packit 6c4009
	"(os/kern) not in set",
Packit 6c4009
	"(os/kern) name exists",
Packit 6c4009
	"(os/kern) aborted",
Packit 6c4009
	"(os/kern) invalid name",
Packit 6c4009
	"(os/kern) invalid task",
Packit 6c4009
	"(os/kern) invalid right",
Packit 6c4009
	"(os/kern) invalid value",
Packit 6c4009
	"(os/kern) urefs overflow",
Packit 6c4009
	"(os/kern) invalid capability",
Packit 6c4009
	"(os/kern) right exists",
Packit 6c4009
	"(os/kern) invalid host",
Packit 6c4009
	"(os/kern) memory present",
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
static char * err_codes_device[] = {
Packit 6c4009
	"(os/device) hardware IO error",
Packit 6c4009
	"(os/device) operation would block",
Packit 6c4009
	"(os/device) no such device",
Packit 6c4009
	"(os/device) device already open",
Packit 6c4009
	"(os/device) device is shut down",
Packit 6c4009
	"(os/device) invalid operation",
Packit 6c4009
	"(os/device) invalid record number",
Packit 6c4009
	"(os/device) invalid IO size",
Packit 6c4009
	"(os/device) memory allocation failure",
Packit 6c4009
	"(os/device) read only",
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
static char * err_codes_unix[] = {
Packit 6c4009
	NO_SUCH_ERROR,
Packit 6c4009
	"(os/unix) no rights to object",
Packit 6c4009
	"(os/unix) file or directory does not exist",
Packit 6c4009
	"(os/unix) no such process",
Packit 6c4009
	"(os/unix) interrupted system call",
Packit 6c4009
	"(os/unix) i/o error",
Packit 6c4009
	"(os/unix) device does not exist",
Packit 6c4009
	"(os/unix) argument list is too long",
Packit 6c4009
	"(os/unix) invalid executable object format",
Packit 6c4009
	"(os/unix) bad file descriptor number",
Packit 6c4009
	"(os/unix) no child processes are present",
Packit 6c4009
	"(os/unix) no more processes are available",
Packit 6c4009
	"(os/unix) insufficient memory",
Packit 6c4009
	"(os/unix) access denied",
Packit 6c4009
	"(os/unix) memory access fault",
Packit 6c4009
	"(os/unix) block device required for operation",
Packit 6c4009
	"(os/unix) mount device busy",
Packit 6c4009
	"(os/unix) file already exists",
Packit 6c4009
	"(os/unix) cross device link",
Packit 6c4009
	"(os/unix) device does not exist",
Packit 6c4009
	"(os/unix) object is not a directory",
Packit 6c4009
	"(os/unix) object is a directory",
Packit 6c4009
	"(os/unix) invalid argument",
Packit 6c4009
	"(os/unix) internal file table overflow",
Packit 6c4009
	"(os/unix) maximum number of open files reached",
Packit 6c4009
	"(os/unix) object is not a tty-like device",
Packit 6c4009
	"(os/unix) executable object is in use",
Packit 6c4009
	"(os/unix) file is too large",
Packit 6c4009
	"(os/unix) no space is left on device",
Packit 6c4009
	"(os/unix) illegal seek attempt",
Packit 6c4009
	"(os/unix) read-only file system",
Packit 6c4009
	"(os/unix) too many links",
Packit 6c4009
	"(os/unix) broken pipe",
Packit 6c4009
	"(os/unix) argument is too large",
Packit 6c4009
	"(os/unix) result is out of range",
Packit 6c4009
	"(os/unix) operation on device would block",
Packit 6c4009
	"(os/unix) operation is now in progress",
Packit 6c4009
	"(os/unix) operation is already in progress",
Packit 6c4009
	"(os/unix) socket operation attempted on non-socket object",
Packit 6c4009
	"(os/unix) destination address is required",
Packit 6c4009
	"(os/unix) message is too long",
Packit 6c4009
	"(os/unix) protocol type is incorrect for socket",
Packit 6c4009
	"(os/unix) protocol type is not available",
Packit 6c4009
	"(os/unix) protocol type is not supported",
Packit 6c4009
	"(os/unix) socket type is not supported",
Packit 6c4009
	"(os/unix) operation is not supported on sockets",
Packit 6c4009
	"(os/unix) protocol family is not supported",
Packit 6c4009
	"(os/unix) address family is not supported by protocol family",
Packit 6c4009
	"(os/unix) address is already in use",
Packit 6c4009
	"(os/unix) can't assign requested address",
Packit 6c4009
	"(os/unix) network is down",
Packit 6c4009
	"(os/unix) network is unreachable",
Packit 6c4009
	"(os/unix) network dropped connection on reset",
Packit 6c4009
	"(os/unix) software aborted connection",
Packit 6c4009
	"(os/unix) connection reset by peer",
Packit 6c4009
	"(os/unix) no buffer space is available",
Packit 6c4009
	"(os/unix) socket is already connected",
Packit 6c4009
	"(os/unix) socket is not connected",
Packit 6c4009
	"(os/unix) can't send after socket shutdown",
Packit 6c4009
	"(os/unix) too many references; can't splice",
Packit 6c4009
	"(os/unix) connection timed out",
Packit 6c4009
	"(os/unix) connection was refused",
Packit 6c4009
	"(os/unix) too many levels of symbolic links",
Packit 6c4009
	"(os/unix) file name exceeds system maximum limit",
Packit 6c4009
	"(os/unix) host is down",
Packit 6c4009
	"(os/unix) there is no route to host",
Packit 6c4009
	"(os/unix) directory is not empty",
Packit 6c4009
	"(os/unix) quota on number of processes exceeded",
Packit 6c4009
	"(os/unix) quota on number of users exceeded",
Packit 6c4009
	"(os/unix) quota on available disk space exceeded",
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
static struct error_subsystem err_kern_sub[] = {
Packit 6c4009
	{
Packit 6c4009
	"(os/kern)",
Packit 6c4009
	errlib_count(err_codes_kern),
Packit 6c4009
	err_codes_kern,
Packit 6c4009
	},
Packit 6c4009
	{
Packit 6c4009
	"(os/device)",
Packit 6c4009
	errlib_count(err_codes_device),
Packit 6c4009
	err_codes_device,
Packit 6c4009
	},
Packit 6c4009
	{
Packit 6c4009
	"(os/?)",
Packit 6c4009
	0,
Packit 6c4009
	},
Packit 6c4009
	{
Packit 6c4009
	"(os/unix)",
Packit 6c4009
	errlib_count(err_codes_unix),
Packit 6c4009
	err_codes_unix,
Packit 6c4009
	},
Packit 6c4009
};