home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / cmn_err.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.4 KB  |  52 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_CMN_ERR_H
  11. #define _SYS_CMN_ERR_H
  12.  
  13. #ident    "@(#)/usr/include/sys/cmn_err.h.sl 1.1 4.0 12/08/90 65406 AT&T-USL"
  14.  
  15. /* Common error handling severity levels */
  16.  
  17. #define CE_CONT  0    /* continuation                */
  18. #define CE_NOTE  1    /* notice                */
  19. #define CE_WARN     2    /* warning                */
  20. #define CE_PANIC 3    /* panic                */
  21.  
  22. /*    Codes for where output should go.
  23. */
  24.  
  25. #define    PRW_BUF        0x01    /* Output to putbuf.        */
  26. #define    PRW_CONS    0x02    /* Output to console.        */
  27.  
  28. extern short    prt_where;
  29.  
  30. #define VA_LIST _VOID *
  31. #define VA_START(list, name) list = \
  32.   (_VOID*)((char*)&name+((sizeof(name)+(sizeof(int)-1))&~(sizeof(int)-1)))
  33. #define VA_ARG(list, mode) ((mode *) \
  34.   (list=(_VOID*)((char*)list+sizeof(mode))))[-1]
  35.  
  36. #if defined(__STDC__)
  37. /*PRINTFLIKE2*/
  38. extern void cmn_err(int, char *, ...);
  39. /*PRINTFLIKE1*/
  40. extern void printf(char *, ...);
  41. /*PRINTFLIKE1*/
  42. extern void panic(char *, ...);
  43. extern void nomemmsg(char *, int, int, int);
  44. #else
  45. extern void cmn_err();
  46. extern void printf();
  47. extern void nomemmsg();
  48. extern void panic();
  49. #endif    /* __STDC__ */
  50.  
  51. #endif    /* _SYS_CMN_ERR_H */
  52.