home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / recover.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.1 KB  |  45 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8.  
  9. #ident    "@(#)head.sys:recover.h    1.3"
  10.  
  11. extern struct rd_user * cr_rduser();
  12. extern void del_rduser();
  13. extern void clean_GEN_rd();
  14. extern void cleanup();
  15.  
  16.  
  17. /* opcodes */
  18. #define REC_DISCONN    1    /* circuit gone */
  19. #define REC_KILL    2    /* exit */
  20. #define REC_FUMOUNT    3    /* forced unmount */
  21. #define REC_MSG        4 
  22.  
  23. /* rfdaemon msgflag flags */
  24. #define  MORE_SERVE    0x001
  25. #define  DISCONN    0x002
  26. #define  RFSKILL    0x004
  27. #define  FUMOUNT    0x008
  28. #define  DEADLOCK    0x010
  29.  
  30. /* active general and specific RDs */
  31. #define ACTIVE_GRD(R)     ((R->rd_stat & RDUSED) && \
  32.                 (R->rd_qtype & GENERAL) && (R->rd_user_list))
  33. #define ACTIVE_SRD(R)   ((R->rd_stat & RDUSED) && \
  34.                  (R->rd_user_list != NULL) && \
  35.                  (R->rd_qtype & SPECIFIC))
  36.  
  37. /* This is the structure that gets passed to the user daemon */
  38. #define ULINESIZ 120    /* want a 128-char buffer */
  39. struct u_d_msg {
  40.     int opcode;
  41.     int count;
  42.     char res_name[ULINESIZ];
  43. };
  44.  
  45.