home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / rf_sys.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.6 KB  |  94 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_SYS_H
  11. #define _SYS_RF_SYS_H
  12.  
  13. #ident    "@(#)/usr/include/sys/rf_sys.h.sl 1.1 4.0 12/08/90 63058 AT&T-USL"
  14.  
  15. /* 
  16.  * external interfaces to the rfsys system call 
  17.  */
  18. #include <sys/types.h>
  19. #include <sys/nserve.h>
  20. #include <sys/errno.h>
  21.  
  22. #ifdef _KERNEL
  23. extern char rfs_domain[];           /* local domain name */
  24. extern struct queue *sysid_to_queue();
  25. #endif
  26.  
  27. /* opcodes for rfsys system call */
  28. #define RF_FUMOUNT      1       /* forced unmount */
  29. #define RF_SENDUMSG     2       /* send buffer to remote user-level */
  30. #define RF_GETUMSG      3       /* wait for buffer from remote user-level */
  31. #define RF_LASTUMSG     4       /* wakeup from GETUMSG */
  32. #define RF_SETDNAME     5       /* set domain name */
  33. #define RF_GETDNAME     6       /* get domain name */
  34. #define RF_SETIDMAP     7
  35. #define RF_FWFD         8
  36. #define RF_VFLAG        9
  37. #define RF_VERSION      10
  38. #define RF_RUNSTATE     11      /* see if RFS is running */
  39. /*
  40.  * return the value of one of the RFS system variables, needs one of the
  41.  * values defined below
  42.  */
  43. #define RF_TUNEABLE     12
  44. #define RF_CLIENTS      13      /* fill a buffer with info about remote use of a
  45.                                  * local resource
  46.                                  */
  47. #define RF_RESOURCES    14      /* fill a buffer with info about local resources
  48.                                  */
  49. #define RF_ADVFS    15
  50. #define RF_UNADVFS    16
  51. #define RF_START    17
  52. #define RF_STOP        18
  53. #define RF_DEBUG    19
  54.  
  55. #ifdef RFSUNMOUNTHACK
  56. /*
  57.  * Support unmounting of stuff below gone rf_vfs.  This will be supplanted
  58.  * by a general mechanism in a later release.
  59.  */
  60. #define RF_GETCAP    20
  61. #define RF_PUTCAP    21
  62. #define RF_SUBMNTS    22
  63. #define RF_FUSERS    23
  64. #define RF_UNMOUNT    24    /* cap expires after call */
  65. #endif
  66.  
  67. /* RF_VFLAG options */
  68. #define V_CLEAR 0
  69. #define V_SET   1
  70. #define V_GET   2
  71.  
  72. /* RF_VERSION options */
  73. #define VER_CHECK       1
  74. #define VER_GET         2
  75.  
  76. /* RF_TUNEABLE options */
  77. #define T_NSRMOUNT      1
  78. #define T_NADVERTISE    2
  79.  
  80. /* struct client is used by the RF_CLIENTS option */
  81. struct client {
  82.         sysid_t cl_sysid;
  83.         int     cl_bcount;
  84.         char    cl_node[MAXDNAME];
  85. };
  86.  
  87. /* codes passed to the user daemon */
  88. #define    RFUD_DISCONN    1
  89. #define RFUD_FUMOUNT    2
  90. #define RFUD_GETUMSG    3
  91. #define RFUD_LASTUMSG    4
  92.  
  93. #endif    /* _SYS_RF_SYS_H */
  94.