openalbridge/errlib.h
author nemo
Fri, 16 Oct 2009 22:46:58 +0000
changeset 2514 df9d0728c5bb
parent 2444 ace11b7d8eab
child 2529 51e5df1c8462
permissions -rw-r--r--
Make hedgies just hop a bit on flames so they are more likely to get properly scorched

/*
 
 module: errlib.h
 
 purpose: definitions of function sin errlib.c
 
 reference: Stevens, Unix network programming (2ed), p.922
 
 */

#ifndef _ERRLIB_H
#define _ERRLIB_H

#include "common.h"
        
extern int daemon_proc;
        
void err_msg (const char *fmt, ...);
void err_quit (const char *fmt, ...);
void err_ret (const char *fmt, ...);
void err_sys (const char *fmt, ...);
void err_dump (const char *fmt, ...);

#endif /*_ERRLIB_H*/

/*
 suggested error string ( PROG ) LEVEL - TEXT : ERRNO
 
            errno?  closeprog? log level 
 err_msg      no       no       LOG_INFO 
 err_quit     no     exit(1)    LOG_ERR 
 err_ret      si       no       LOG_INFO 
 err_sys      si     exit(1)    LOG_ERR 
 err_dump     si    abort( )    LOG_ERR
 */