home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / pfmt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  1.9 KB  |  78 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ifndef _PFMT_H
  12. #define _PFMT_H
  13. #ident    "@(#)sgs-head:common/head/pfmt.h    1.10"
  14.  
  15. #define MM_STD        0
  16. #define MM_NOSTD    0x100
  17. #define MM_GET        0
  18. #define MM_NOGET    0x200
  19.  
  20. #define MM_ACTION    0x400
  21.  
  22. #define MM_NOCONSOLE    0
  23. #define MM_CONSOLE    0x800
  24.  
  25. #define MM_NULLMC    0
  26. #define MM_HARD        0x1000
  27. #define MM_SOFT        0x2000
  28. #define MM_FIRM        0x4000
  29. #define MM_APPL        0x8000
  30. #define MM_UTIL        0x10000
  31. #define MM_OPSYS    0x20000
  32.  
  33. #define MM_SVCMD    (MM_UTIL|MM_SOFT)    /* common combination */
  34.  
  35. #define MM_ERROR    0
  36. #define MM_HALT        1
  37. #define MM_WARNING    2
  38. #define MM_INFO        3
  39.  
  40. #define DB_NAME_LEN    15    /* includes terminating \0 */
  41. #define MAXLABEL    25    /* obsolete */
  42.  
  43. #ifndef _VA_LIST
  44. #   if #machine(i860)
  45.     struct _va_list
  46.     {
  47.         unsigned    _ireg_used;
  48.         unsigned    _freg_used;
  49.         long        *_reg_base;
  50.         long        *_mem_ptr;
  51.     };
  52. #    define _VA_LIST struct _va_list
  53. #   else
  54. #    define _VA_LIST void *
  55. #   endif
  56. #endif
  57.  
  58. #ifdef __cplusplus
  59. extern "C" {
  60. #endif
  61.  
  62. struct _FILE_;
  63.         /*PRINTFLIKE3*/
  64. extern int    pfmt(struct _FILE_ *, long, const char *, ...);
  65.         /*PRINTFLIKE3*/
  66. extern int    lfmt(struct _FILE_ *, long, const char *, ...);
  67. extern int    vpfmt(struct _FILE_ *, long, const char *, _VA_LIST);
  68. extern int    vlfmt(struct _FILE_ *, long, const char *, _VA_LIST);
  69. extern char    *setcat(const char *);
  70. extern int    setlabel(const char *);
  71. extern int    addsev(int, const char *);
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76.  
  77. #endif /*_PFMT_H*/
  78.