home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / err.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.1 KB  |  39 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_ERR_H
  11. #define _SYS_ERR_H
  12.  
  13. #ident    "@(#)/usr/include/sys/err.h.sl 1.1 4.0 12/08/90 30118 AT&T-USL"
  14. /*
  15.  * structure of the err buffer area
  16.  */
  17. #define    NESLOT    20
  18. #define    E_LOG    01
  19. #define    E_SLP    02
  20.  
  21. struct err {
  22.     int        e_nslot;        /* number of errslots */
  23.     int        e_flag;            /* state flags */
  24.     struct errhdr    **e_org;        /* origin of buffer pool */
  25.     struct errhdr    **e_nxt;        /* next slot to allocate */
  26.     struct errslot {
  27.         int    slot[8];
  28.     } e_slot[NESLOT];            /* storage area */
  29.     struct map    e_map[(NESLOT+3)/2];    /* free space in map */
  30.     struct errhdr    *e_ptrs[NESLOT];    /* pointer to logged errors */
  31. };
  32.  
  33. extern struct err err;
  34.  
  35. struct errhdr    *geteslot();
  36. struct errhdr    *geterec();
  37.  
  38. #endif    /* _SYS_ERR_H */
  39.