home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / rf_debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.6 KB  |  63 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_RF_DEBUG_H
  11. #define _SYS_RF_DEBUG_H
  12.  
  13. #ident    "@(#)/usr/include/sys/rf_debug.h.sl 1.1 4.0 12/08/90 46204 AT&T-USL"
  14. /* RFS debugging */
  15.  
  16. #define DB_SYSCALL    0x001    /* remote system calls */
  17. #define DB_SD_RD    0x002    /* send and receive descriptors */
  18. #define DB_SERVE    0x004    /* servers and server-control */
  19. #define DB_MNT_ADV    0x008    /* advertising and remote mounts */
  20. #define DB_RFSTART    0x010    /* rfstart, rfstop */
  21. #define DB_RECOVER    0x020    /* rf_recovery */
  22. #define DB_RDUSER    0x040    /* rd_user structures */
  23. #define DB_RDWRI    0x080    /* remote readi/writei */
  24. #define DB_PROT        0x100    /* protocol */
  25. #define DB_COMM        0x200    /* communication interface */
  26. #define DB_GDP        0x400    /* GDP */
  27. #define DB_PACK        0x800    /* PACK stream interface */
  28. #define DB_RMOVE    0x1000    /* rmove */
  29. #define DB_RSC        0x2000    /* RSC ACK and NACK */
  30. #define DB_RFSYS    0x4000    /* miscellaneous sys call */
  31. #define DB_SIGNAL       0x8000  /* signal */
  32. #define DB_GDPERR       0x10000  /* GDP temporary error */
  33. #define NO_RETRANS      0x20000  /* turn off retransmission */
  34. #define NO_RECOVER      0x40000  /* turn off rf_recovery */
  35. #define NO_MONITOR      0x80000  /* turn off monitor */
  36. #define DB_CANON         0x100000  /* canonical form conversion */
  37. #define    DB_FSS        0x200000  /* file sys type debugging */
  38. #define DB_CACHE    0x400000  /* client cache debugging */
  39. #define DB_LOOPBCK    0x800000  /* allow machine to mount own resources */
  40.  
  41. #if defined(_KERNEL) && ((DUDEBUG == YES) || defined(DEBUG))
  42.  
  43. extern    long    dudebug;
  44. extern char    *rf_sysname();
  45.  
  46. /* mdash: printf() |--> cmn_err(CE_CONT) */
  47. #define    DUPRINT1(x,y1) if (dudebug & x) cmn_err(CE_CONT,y1);
  48. #define    DUPRINT2(x,y1,y2) if (dudebug & x) cmn_err(CE_CONT,y1,y2);
  49. #define    DUPRINT3(x,y1,y2,y3) if (dudebug & x) cmn_err(CE_CONT,y1,y2,y3);
  50. #define    DUPRINT4(x,y1,y2,y3,y4) if (dudebug & x) cmn_err(CE_CONT,y1,y2,y3,y4);
  51. #define    DUPRINT5(x,y1,y2,y3,y4,y5) if (dudebug & x) cmn_err(CE_CONT,y1,y2,y3,y4,y5);
  52. #define DUPRINT6(x,y1,y2,y3,y4,y5,y6) if (dudebug & x) cmn_err(CE_CONT,y1,y2,y3,y4,y5,y6);
  53. #else
  54. #define    DUPRINT1(x,y1)
  55. #define    DUPRINT2(x,y1,y2)
  56. #define    DUPRINT3(x,y1,y2,y3)
  57. #define    DUPRINT4(x,y1,y2,y3,y4)
  58. #define    DUPRINT5(x,y1,y2,y3,y4,y5)
  59. #define    DUPRINT6(x,y1,y2,y3,y4,y5,y6)
  60.  
  61. #endif
  62. #endif /* _SYS_RF_DEBUG_H */
  63.