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