misc/openalbridge/errlib.h
changeset 3364 e5403e2bf02c
parent 3363 bcd6d76db4f7
child 3365 37ac593e9027
equal deleted inserted replaced
3363:bcd6d76db4f7 3364:e5403e2bf02c
     1 /*
       
     2 
       
     3  module: errlib.h
       
     4 
       
     5  purpose: definitions of function sin errlib.c
       
     6 
       
     7  reference: Stevens, Unix network programming (2ed), p.922
       
     8 
       
     9  */
       
    10 
       
    11 #ifndef _ERRLIB_H
       
    12 #define _ERRLIB_H
       
    13 
       
    14 #include "globals.h"
       
    15 
       
    16 extern int daemon_proc;
       
    17 
       
    18 void err_msg (const char *fmt, ...);
       
    19 void err_quit (const char *fmt, ...);
       
    20 void err_ret (const char *fmt, ...);
       
    21 void err_sys (const char *fmt, ...);
       
    22 void err_dump (const char *fmt, ...);
       
    23 
       
    24 #endif /*_ERRLIB_H*/
       
    25 
       
    26 /*
       
    27  suggested error string ( PROG ) LEVEL - TEXT : ERRNO
       
    28 
       
    29  errno?  closeprog? log level
       
    30  err_msg      no       no       LOG_INFO
       
    31  err_quit     no     exit(1)    LOG_ERR
       
    32  err_ret      si       no       LOG_INFO
       
    33  err_sys      si     exit(1)    LOG_ERR
       
    34  err_dump     si    abort( )    LOG_ERR
       
    35  */