home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / surrogate-syslog / syslog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-28  |  2.0 KB  |  67 lines

  1. /*++
  2. /* NAME
  3. /*    syslog 5
  4. /* SUMMARY
  5. /*    surrogate BSD4.3 syslog facility
  6. /* PROJECT
  7. /*    pc-mail
  8. /* PACKAGE
  9. /*    nfs
  10. /* SYNOPSIS
  11. /*    include "syslog.h"
  12. /* DESCRIPTION
  13. /* .nf
  14.  
  15.  /* Do nothing if we already have <syslog.h> */
  16.  
  17. #ifndef SYSLOG
  18.  
  19.  /* various constants */
  20.  
  21. #define LOG_KERN        (0<<3)  /* kernel messages */
  22. #define LOG_USER        (1<<3)  /* random user-level messages */
  23. #define LOG_MAIL        (2<<3)  /* mail system */
  24. #define LOG_DAEMON      (3<<3)  /* system daemons */
  25. #define LOG_AUTH        (4<<3)  /* security/authorization messages */
  26. #define LOG_SYSLOG      (5<<3)  /* messages generated internally by syslogd */
  27. #define LOG_LPR         (6<<3)  /* line printer subsystem */
  28. #define LOG_NEWS        (7<<3)  /* netnews subsystem */
  29. #define LOG_UUCP        (8<<3)  /* uucp subsystem */
  30. #define LOG_CRON        (15<<3) /* cron/at subsystem */
  31.  
  32. #define LOG_EMERG       0       /* system is unusable */
  33. #define LOG_ALERT       1       /* action must be taken immediately */
  34. #define LOG_CRIT        2       /* critical conditions */
  35. #define LOG_ERR         3       /* error conditions */
  36. #define LOG_WARNING     4       /* warning conditions */
  37. #define LOG_NOTICE      5       /* normal but signification condition */
  38. #define LOG_INFO        6       /* informational */
  39. #define LOG_DEBUG       7       /* debug-level messages */
  40.  
  41. #define LOG_PID         0x01    /* log the pid with each message */
  42. #define LOG_CONS        0x02    /* log on the console if errors in sending */
  43. #define LOG_ODELAY      0x04    /* delay open until syslog() is called */
  44. #define LOG_NDELAY      0x08    /* don't delay open */
  45. #define LOG_NOWAIT      0x10    /* if forking to log on console, don't wait() */
  46.  
  47.  /* functions */
  48.  
  49. extern  openlog();
  50. extern  syslog();
  51. extern  closelog();
  52.  
  53. #endif
  54. /* AUTHOR(S)
  55. /*    Wietse Z. Venema
  56. /*    Eindhoven University of Technology
  57. /*    Department of Mathematics and Computer Science
  58. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  59. /* CREATION DATE
  60. /*    Sun Oct 29 15:12:57 MET 1989
  61. /* LAST MODIFICATION
  62. /*    10/29/89 22:29:50
  63. /* VERSION/RELEASE
  64. /*    1.1
  65. /*--*/
  66.  
  67.