1 /* 2 * Copyright 1991-1998 by Open Software Foundation, Inc. 3 * All Rights Reserved 4 * 5 * Permission to use, copy, modify, and distribute this software and 6 * its documentation for any purpose and without fee is hereby granted, 7 * provided that the above copyright notice appears in all copies and 8 * that both the copyright notice and this permission notice appear in 9 * supporting documentation. 10 * 11 * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE 12 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 * FOR A PARTICULAR PURPOSE. 14 * 15 * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR 16 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 17 * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, 18 * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 19 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 20 */ 21 /* 22 * cmk1.1 23 */ 24 /* 25 * Mach Operating System 26 * Copyright (c) 1991,1990 Carnegie Mellon University 27 * All Rights Reserved. 28 * 29 * Permission to use, copy, modify and distribute this software and its 30 * documentation is hereby granted, provided that both the copyright 31 * notice and this permission notice appear in all copies of the 32 * software, derivative works or modified versions, and any portions 33 * thereof, and that both notices appear in supporting documentation. 34 * 35 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 36 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 37 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 38 * 39 * Carnegie Mellon requests users of this software to return to 40 * 41 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 42 * School of Computer Science 43 * Carnegie Mellon University 44 * Pittsburgh PA 15213-3890 45 * 46 * any improvements or extensions that they make and grant Carnegie the 47 * rights to redistribute these changes. 48 */ 49 /* 50 * 92/03/03 16:24:58 jeffreyh 51 * Changes from TRUNK 52 * [92/02/26 12:31:12 jeffreyh] 53 * 54 * 92/01/14 16:46:17 rpd 55 * Removed <mach_error.h>. 56 * [92/01/06 rpd] 57 * 58 * 91/02/05 17:54:14 mrt 59 * Changed to new Mach copyright 60 * [91/02/01 17:54:00 mrt] 61 * 62 * 90/06/02 15:04:33 rpd 63 * Created for new IPC. 64 * [90/03/26 21:10:30 rpd] 65 * 66 * 07-Apr-89 Richard Draves (rpd) at Carnegie-Mellon University 67 * Extensive revamping. Added polymorphic arguments. 68 * Allow multiple variable-sized inline arguments in messages. 69 * 70 * 27-May-87 Richard Draves (rpd) at Carnegie-Mellon University 71 * Created. 72 */ 73 74 #ifndef _ERROR_H 75 #define _ERROR_H 76 77 #include <sys/errno.h> 78 extern int lineno; 79 extern void fatal(const char *format, ...); 80 extern void warn(const char *format, ...); 81 extern void error(const char *format, ...); 82 83 extern int errors; 84 extern void set_program_name(const char *name); 85 86 #endif /* _ERROR_H */ 87