home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / h / ll_log.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-28  |  1.9 KB  |  46 lines

  1. /*      Definitions for the llog status-recording package                 */
  2.  
  3. #include "util.h"
  4.  
  5. #define LLOGCLS 01          /* Keep log closed, except when writing */
  6. #define LLOGCYC 02          /* Cycle to beginning when log full     */
  7. #define LLOGWAT 04          /* Wait, if log locked and LLOGCLS      */
  8. #define LLOGSOME 05          /* Occasional logging                   */
  9. #define LLOGTIMED 014          /* used timed logs with locking         */
  10.  
  11. #define LLOGFAT  -1          /* Fatal error                          */
  12. #define LLOGTMP   5          /* Temporary (minor?) error             */
  13. #define LLOGGEN  10          /* General information                  */
  14. #define LLOGBST  20          /* Basic statistics                     */
  15. #define LLOGFST  25          /* Full statistics                      */
  16. #define LLOGPTR  40               /* Trace of overall program phases      */
  17. #define LLOGBTR  50          /* Trace of basic program acitivity     */
  18. #define LLOGFTR  55          /* Full program trace                   */
  19. #define LLOGMAX 126          /* Maximum possible value               */
  20.  
  21. #define LLTIMEOUT (5 * 60)      /* default time out period if LLOGTIMED */
  22.  
  23.  
  24. struct  ll_struct
  25. {
  26.     char   *ll_file;               /* path name to logging file            */
  27.     char   *ll_hdr;                /* text to put in opening line          */
  28.     int     ll_level;              /* don't print entries higher than this */
  29.     int     ll_msize;              /* max size for log, in 100's of blocks */
  30.     int     ll_stat;               /* assorted switches                    */
  31.     int     ll_timmax;           /* how long can fd be in use?           */
  32.     time_t  ll_timer;           /* how long has fd been in use?         */
  33.     int     ll_fd;                 /* holds file descriptor                */
  34.     FILE   *ll_fp;                 /* Standard IO stream pointer           */
  35. };
  36.  
  37. typedef struct ll_struct Llog;
  38.  
  39. typedef struct ll_struct LLog;
  40.  
  41. extern ll_open ();
  42. extern ll_close ();
  43. extern ll_hdinit ();
  44. extern ll_init ();
  45. extern ll_log ();
  46.