Blame mach/mach_error.h

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.2  92/01/16  00:08:10  rpd
Packit 6c4009
 * 	Moved from user collection to mk collection.
Packit 6c4009
 *
Packit 6c4009
 * Revision 2.2  91/03/27  15:39:13  mrt
Packit 6c4009
 * 	First checkin
Packit 6c4009
 *
Packit 6c4009
 */
Packit 6c4009
/*
Packit 6c4009
 *	File:	mach_error.h
Packit 6c4009
 *	Author:	Douglas Orr, Carnegie Mellon University
Packit 6c4009
 *	Date:	Mar. 1988
Packit 6c4009
 *
Packit 6c4009
 *	Definitions of routines in mach_error.c
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#ifndef	_MACH_ERROR_
Packit 6c4009
#define	_MACH_ERROR_	1
Packit 6c4009
Packit 6c4009
#include <mach/error.h>
Packit 6c4009
Packit 6c4009
const char	*mach_error_string(
Packit 6c4009
/*
Packit 6c4009
 *	Returns a string appropriate to the error argument given
Packit 6c4009
 */
Packit 6c4009
	mach_error_t error_value
Packit 6c4009
				);
Packit 6c4009
Packit 6c4009
void		mach_error(
Packit 6c4009
/*
Packit 6c4009
 *	Prints an appropriate message on the standard error stream
Packit 6c4009
 */
Packit 6c4009
	char 		*str,
Packit 6c4009
	mach_error_t	error_value
Packit 6c4009
				);
Packit 6c4009
Packit 6c4009
const char	*mach_error_type(
Packit 6c4009
/*
Packit 6c4009
 *	Returns a string with the error system, subsystem and code
Packit 6c4009
*/
Packit 6c4009
	mach_error_t	error_value
Packit 6c4009
				);
Packit 6c4009
Packit 6c4009
#endif	/* _MACH_ERROR_ */