00001 /* 00002 * Copyright 1997, Brown University, Providence, RI. 00003 * 00004 * All Rights Reserved 00005 * 00006 * Permission to use, copy, modify, and distribute this software and its 00007 * documentation for any purpose other than its incorporation into a 00008 * commercial product is hereby granted without fee, provided that the 00009 * above copyright notice appear in all copies and that both that 00010 * copyright notice and this permission notice appear in supporting 00011 * documentation, and that the name of Brown University not be used in 00012 * advertising or publicity pertaining to distribution of the software 00013 * without specific, written prior permission. 00014 * 00015 * BROWN UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 00016 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY 00017 * PARTICULAR PURPOSE. IN NO EVENT SHALL BROWN UNIVERSITY BE LIABLE FOR 00018 * ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00019 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00020 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 00021 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00022 */ 00023 00024 /********************************************************************** 00025 * error.H 00026 * 00027 * from Stevens, "Advanced Programming in the Unix Environment" 00028 * 00029 **********************************************************************/ 00030 #ifndef ERROR_H_IS_INCLUDED 00031 #define ERROR_H_IS_INCLUDED 00032 #include "std/dllimpexp.H" 00033 00034 //---------------------------------------------- 00035 // 00036 // err_sys 00037 // Print a message relating to a 00038 // system error, and quit. 00039 // 00040 //---------------------------------------------- 00041 extern DllImpExp void 00042 err_sys(const char *fmt, ...); 00043 00044 //---------------------------------------------- 00045 // 00046 // err_quit 00047 // Print a message relating to an error 00048 // other than a system error, quit. 00049 // 00050 //---------------------------------------------- 00051 extern DllImpExp void 00052 err_quit(const char *fmt, ...); 00053 00054 //---------------------------------------------- 00055 // 00056 // err_ret 00057 // Print a message relating to a system 00058 // error and return. 00059 // 00060 //---------------------------------------------- 00061 extern DllImpExp void 00062 err_ret(const char *fmt, ...); 00063 00064 //---------------------------------------------- 00065 // 00066 // err_msg 00067 // Print a message unrelated to a system 00068 // error and return. 00069 // 00070 //---------------------------------------------- 00071 extern DllImpExp void 00072 err_msg(const char *fmt, ...); 00073 00074 #endif // ERROR_H_IS_INCLUDED 00075 00076 /* end of file error.H */