rstat.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. * Please do not edit this file.
  3. * It was generated using rpcgen.
  4. */
  5. #ifndef _RSTAT_H_RPCGEN
  6. #define _RSTAT_H_RPCGEN
  7. #include <rpc/rpc.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #ifndef FSCALE
  12. /*
  13. * Scale factor for scaled integers used to count load averages.
  14. */
  15. #define FSHIFT 8 /* bits to right of fixed binary point */
  16. #define FSCALE (1<<FSHIFT)
  17. #endif /* ndef FSCALE */
  18. #define CPUSTATES 4
  19. #define DK_NDRIVE 4
  20. struct rstat_timeval {
  21. u_int tv_sec;
  22. u_int tv_usec;
  23. };
  24. typedef struct rstat_timeval rstat_timeval;
  25. struct statstime {
  26. int cp_time[CPUSTATES];
  27. int dk_xfer[DK_NDRIVE];
  28. u_int v_pgpgin;
  29. u_int v_pgpgout;
  30. u_int v_pswpin;
  31. u_int v_pswpout;
  32. u_int v_intr;
  33. int if_ipackets;
  34. int if_ierrors;
  35. int if_oerrors;
  36. int if_collisions;
  37. u_int v_swtch;
  38. int avenrun[3];
  39. rstat_timeval boottime;
  40. rstat_timeval curtime;
  41. int if_opackets;
  42. };
  43. typedef struct statstime statstime;
  44. struct statsswtch {
  45. int cp_time[CPUSTATES];
  46. int dk_xfer[DK_NDRIVE];
  47. u_int v_pgpgin;
  48. u_int v_pgpgout;
  49. u_int v_pswpin;
  50. u_int v_pswpout;
  51. u_int v_intr;
  52. int if_ipackets;
  53. int if_ierrors;
  54. int if_oerrors;
  55. int if_collisions;
  56. u_int v_swtch;
  57. u_int avenrun[3];
  58. rstat_timeval boottime;
  59. int if_opackets;
  60. };
  61. typedef struct statsswtch statsswtch;
  62. struct stats {
  63. int cp_time[CPUSTATES];
  64. int dk_xfer[DK_NDRIVE];
  65. u_int v_pgpgin;
  66. u_int v_pgpgout;
  67. u_int v_pswpin;
  68. u_int v_pswpout;
  69. u_int v_intr;
  70. int if_ipackets;
  71. int if_ierrors;
  72. int if_oerrors;
  73. int if_collisions;
  74. int if_opackets;
  75. };
  76. typedef struct stats stats;
  77. #define RSTATPROG 100001
  78. #define RSTATVERS_TIME 3
  79. #if defined(__STDC__) || defined(__cplusplus)
  80. #define RSTATPROC_STATS 1
  81. extern statstime * rstatproc_stats_3(void *, CLIENT *);
  82. extern statstime * rstatproc_stats_3_svc(void *, struct svc_req *);
  83. #define RSTATPROC_HAVEDISK 2
  84. extern u_int * rstatproc_havedisk_3(void *, CLIENT *);
  85. extern u_int * rstatproc_havedisk_3_svc(void *, struct svc_req *);
  86. extern int rstatprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  87. #else /* K&R C */
  88. #define RSTATPROC_STATS 1
  89. extern statstime * rstatproc_stats_3();
  90. extern statstime * rstatproc_stats_3_svc();
  91. #define RSTATPROC_HAVEDISK 2
  92. extern u_int * rstatproc_havedisk_3();
  93. extern u_int * rstatproc_havedisk_3_svc();
  94. extern int rstatprog_3_freeresult ();
  95. #endif /* K&R C */
  96. #define RSTATVERS_SWTCH 2
  97. #if defined(__STDC__) || defined(__cplusplus)
  98. extern statsswtch * rstatproc_stats_2(void *, CLIENT *);
  99. extern statsswtch * rstatproc_stats_2_svc(void *, struct svc_req *);
  100. extern u_int * rstatproc_havedisk_2(void *, CLIENT *);
  101. extern u_int * rstatproc_havedisk_2_svc(void *, struct svc_req *);
  102. extern int rstatprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  103. #else /* K&R C */
  104. extern statsswtch * rstatproc_stats_2();
  105. extern statsswtch * rstatproc_stats_2_svc();
  106. extern u_int * rstatproc_havedisk_2();
  107. extern u_int * rstatproc_havedisk_2_svc();
  108. extern int rstatprog_2_freeresult ();
  109. #endif /* K&R C */
  110. #define RSTATVERS_ORIG 1
  111. #if defined(__STDC__) || defined(__cplusplus)
  112. extern stats * rstatproc_stats_1(void *, CLIENT *);
  113. extern stats * rstatproc_stats_1_svc(void *, struct svc_req *);
  114. extern u_int * rstatproc_havedisk_1(void *, CLIENT *);
  115. extern u_int * rstatproc_havedisk_1_svc(void *, struct svc_req *);
  116. extern int rstatprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  117. #else /* K&R C */
  118. extern stats * rstatproc_stats_1();
  119. extern stats * rstatproc_stats_1_svc();
  120. extern u_int * rstatproc_havedisk_1();
  121. extern u_int * rstatproc_havedisk_1_svc();
  122. extern int rstatprog_1_freeresult ();
  123. #endif /* K&R C */
  124. /* the xdr functions */
  125. #if defined(__STDC__) || defined(__cplusplus)
  126. extern bool_t xdr_rstat_timeval (XDR *, rstat_timeval*);
  127. extern bool_t xdr_statstime (XDR *, statstime*);
  128. extern bool_t xdr_statsswtch (XDR *, statsswtch*);
  129. extern bool_t xdr_stats (XDR *, stats*);
  130. #else /* K&R C */
  131. extern bool_t xdr_rstat_timeval ();
  132. extern bool_t xdr_statstime ();
  133. extern bool_t xdr_statsswtch ();
  134. extern bool_t xdr_stats ();
  135. #endif /* K&R C */
  136. #ifdef __cplusplus
  137. }
  138. #endif
  139. #endif /* !_RSTAT_H_RPCGEN */