mount.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*
  2. * Please do not edit this file.
  3. * It was generated using rpcgen.
  4. */
  5. #ifndef _MOUNT_H_RPCGEN
  6. #define _MOUNT_H_RPCGEN
  7. #include <rpc/rpc.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #define MNTPATHLEN 1024
  12. #define MNTNAMLEN 255
  13. #define FHSIZE 32
  14. typedef char fhandle[FHSIZE];
  15. struct fhstatus {
  16. u_int fhs_status;
  17. union {
  18. fhandle fhs_fhandle;
  19. } fhstatus_u;
  20. };
  21. typedef struct fhstatus fhstatus;
  22. typedef char *dirpath;
  23. typedef char *name;
  24. typedef struct mountbody *mountlist;
  25. struct mountbody {
  26. name ml_hostname;
  27. dirpath ml_directory;
  28. mountlist ml_next;
  29. };
  30. typedef struct mountbody mountbody;
  31. typedef struct groupnode *groups;
  32. struct groupnode {
  33. name gr_name;
  34. groups gr_next;
  35. };
  36. typedef struct groupnode groupnode;
  37. typedef struct exportnode *exports;
  38. struct exportnode {
  39. dirpath ex_dir;
  40. groups ex_groups;
  41. exports ex_next;
  42. };
  43. typedef struct exportnode exportnode;
  44. #define MOUNTPROG 100005
  45. #define MOUNTVERS 1
  46. #if defined(__STDC__) || defined(__cplusplus)
  47. #define MOUNTPROC_NULL 0
  48. extern void * mountproc_null_1(void *, CLIENT *);
  49. extern void * mountproc_null_1_svc(void *, struct svc_req *);
  50. #define MOUNTPROC_MNT 1
  51. extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
  52. extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
  53. #define MOUNTPROC_DUMP 2
  54. extern mountlist * mountproc_dump_1(void *, CLIENT *);
  55. extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
  56. #define MOUNTPROC_UMNT 3
  57. extern void * mountproc_umnt_1(dirpath *, CLIENT *);
  58. extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
  59. #define MOUNTPROC_UMNTALL 4
  60. extern void * mountproc_umntall_1(void *, CLIENT *);
  61. extern void * mountproc_umntall_1_svc(void *, struct svc_req *);
  62. #define MOUNTPROC_EXPORT 5
  63. extern exports * mountproc_export_1(void *, CLIENT *);
  64. extern exports * mountproc_export_1_svc(void *, struct svc_req *);
  65. #define MOUNTPROC_EXPORTALL 6
  66. extern exports * mountproc_exportall_1(void *, CLIENT *);
  67. extern exports * mountproc_exportall_1_svc(void *, struct svc_req *);
  68. extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  69. #else /* K&R C */
  70. #define MOUNTPROC_NULL 0
  71. extern void * mountproc_null_1();
  72. extern void * mountproc_null_1_svc();
  73. #define MOUNTPROC_MNT 1
  74. extern fhstatus * mountproc_mnt_1();
  75. extern fhstatus * mountproc_mnt_1_svc();
  76. #define MOUNTPROC_DUMP 2
  77. extern mountlist * mountproc_dump_1();
  78. extern mountlist * mountproc_dump_1_svc();
  79. #define MOUNTPROC_UMNT 3
  80. extern void * mountproc_umnt_1();
  81. extern void * mountproc_umnt_1_svc();
  82. #define MOUNTPROC_UMNTALL 4
  83. extern void * mountproc_umntall_1();
  84. extern void * mountproc_umntall_1_svc();
  85. #define MOUNTPROC_EXPORT 5
  86. extern exports * mountproc_export_1();
  87. extern exports * mountproc_export_1_svc();
  88. #define MOUNTPROC_EXPORTALL 6
  89. extern exports * mountproc_exportall_1();
  90. extern exports * mountproc_exportall_1_svc();
  91. extern int mountprog_1_freeresult ();
  92. #endif /* K&R C */
  93. /* the xdr functions */
  94. #if defined(__STDC__) || defined(__cplusplus)
  95. extern bool_t xdr_fhandle (XDR *, fhandle);
  96. extern bool_t xdr_fhstatus (XDR *, fhstatus*);
  97. extern bool_t xdr_dirpath (XDR *, dirpath*);
  98. extern bool_t xdr_name (XDR *, name*);
  99. extern bool_t xdr_mountlist (XDR *, mountlist*);
  100. extern bool_t xdr_mountbody (XDR *, mountbody*);
  101. extern bool_t xdr_groups (XDR *, groups*);
  102. extern bool_t xdr_groupnode (XDR *, groupnode*);
  103. extern bool_t xdr_exports (XDR *, exports*);
  104. extern bool_t xdr_exportnode (XDR *, exportnode*);
  105. #else /* K&R C */
  106. extern bool_t xdr_fhandle ();
  107. extern bool_t xdr_fhstatus ();
  108. extern bool_t xdr_dirpath ();
  109. extern bool_t xdr_name ();
  110. extern bool_t xdr_mountlist ();
  111. extern bool_t xdr_mountbody ();
  112. extern bool_t xdr_groups ();
  113. extern bool_t xdr_groupnode ();
  114. extern bool_t xdr_exports ();
  115. extern bool_t xdr_exportnode ();
  116. #endif /* K&R C */
  117. #ifdef __cplusplus
  118. }
  119. #endif
  120. #endif /* !_MOUNT_H_RPCGEN */