Back to index

glibc  2.9
mach_error.h
Go to the documentation of this file.
00001 /*
00002  * Mach Operating System
00003  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
00004  * All Rights Reserved.
00005  *
00006  * Permission to use, copy, modify and distribute this software and its
00007  * documentation is hereby granted, provided that both the copyright
00008  * notice and this permission notice appear in all copies of the
00009  * software, derivative works or modified versions, and any portions
00010  * thereof, and that both notices appear in supporting documentation.
00011  *
00012  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
00013  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
00014  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
00015  *
00016  * Carnegie Mellon requests users of this software to return to
00017  *
00018  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
00019  *  School of Computer Science
00020  *  Carnegie Mellon University
00021  *  Pittsburgh PA 15213-3890
00022  *
00023  * any improvements or extensions that they make and grant Carnegie the
00024  * rights to redistribute these changes.
00025  */
00026 /*
00027  * (pre-GNU) HISTORY
00028  *
00029  * Revision 2.2  92/01/16  00:08:10  rpd
00030  *     Moved from user collection to mk collection.
00031  *
00032  * Revision 2.2  91/03/27  15:39:13  mrt
00033  *     First checkin
00034  *
00035  */
00036 /*
00037  *     File:  mach_error.h
00038  *     Author:       Douglas Orr, Carnegie Mellon University
00039  *     Date:  Mar. 1988
00040  *
00041  *     Definitions of routines in mach_error.c
00042  */
00043 
00044 #ifndef       _MACH_ERROR_
00045 #define       _MACH_ERROR_  1
00046 
00047 #include <mach/error.h>
00048 
00049 const char    *mach_error_string(
00050 /*
00051  *     Returns a string appropriate to the error argument given
00052  */
00053        mach_error_t error_value
00054                             );
00055 
00056 void          mach_error(
00057 /*
00058  *     Prints an appropriate message on the standard error stream
00059  */
00060        char          *str,
00061        mach_error_t  error_value
00062                             );
00063 
00064 const char    *mach_error_type(
00065 /*
00066  *     Returns a string with the error system, subsystem and code
00067 */
00068        mach_error_t  error_value
00069                             );
00070 
00071 #endif /* _MACH_ERROR_ */