# 2.11BSD#431 - /usr/src/libexec/identd/src/error.h

##### Macros

    ERROR             X
    ERROR1            X
    ERROR2            X
    __ERROR_H__       X

       1: /*
       2: ** error.h                                               Error handling macros
       3: **
       4: ** This program is in the public domain and may be used freely by anyone
       5: ** who wants to.
       6: **
       7: ** Last update: 19 Aug 1992
       8: **
       9: ** Please send bug fixes/bug reports to: Peter Eriksson <pen@lysator.liu.se>
      10: */
      11:
      12: #ifndef __ERROR_H__
      13: #define __ERROR_H__
      14:
      15: #include <syslog.h>
      16:
      17: #define ERROR(fmt) \
      18:     ((syslog_flag ? (syslog(LOG_ERR, fmt),0) : 0), \
      19:      (debug_flag ? (fprintf(stderr, "%d , %d : ERROR : X-DBG : ", \
      20:                 lport, fport), \
      21:             fprintf(stderr, fmt), perror(": "), 0) : \
      22:       (printf("%d , %d : ERROR : UNKNOWN-ERROR\r\n", lport, fport), 0)), \
      23:      fflush(stdout), fflush(stderr), exit(1), 0)
      24:
      25:
      26: #define ERROR1(fmt,v1) \
      27:     ((syslog_flag ? (syslog(LOG_ERR, fmt, v1),0) : 0), \
      28:      (debug_flag ? (fprintf(stderr, "%d , %d : ERROR : X-DBG : ", \
      29:                 lport, fport), \
      30:             fprintf(stderr, fmt, v1), perror(": "), 0) : \
      31:       (printf("%d , %d : ERROR : UNKNOWN-ERROR\r\n", lport, fport), 0)), \
      32:      fflush(stdout), fflush(stderr), exit(1), 0)
      33:
      34: #define ERROR2(fmt,v1,v2) \
      35:     ((syslog_flag ? (syslog(LOG_ERR, fmt, v1, v2),0) : 0), \
      36:      (debug_flag ? (fprintf(stderr, "%d , %d : ERROR : X-DBG : ", \
      37:                 lport, fport), \
      38:             fprintf(stderr, fmt, v1, v2), perror(": "), 0) : \
      39:       (printf("%d , %d : ERROR : UNKNOWN-ERROR\r\n", lport, fport), 0)), \
      40:      fflush(stdout), fflush(stderr), exit(1), 0)
      41:
      42: #endif

#### Defined macros

ERROR defined in line 17; used 11 times

- in /usr/src/libexec/identd/src/identd.c line 428, 436, 547, 589, 595, 601, 612, 695, 729-735(3)

ERROR1 defined in line 26; used 8 times

- in /usr/src/libexec/identd/src/config.c line 35
- in /usr/src/libexec/identd/src/identd.c line 351, 369, 462, 495, 567, 580, 717

ERROR2 defined in line 34; used 4 times

- in /usr/src/libexec/identd/src/identd.c line 604-606(2), 615-617(2)

__ERROR_H__ defined in line 13; used 1 times

- in line 12

#### Usage of this include

error.h used 4 times

- in /usr/src/libexec/identd/src/config.c line 15
- in /usr/src/libexec/identd/src/identd.c line 76
- in /usr/src/libexec/identd/src/itest.c line 35
- in /usr/src/libexec/identd/src/parse.c line 50

Last modified: 1992-10-20 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1117 |