2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #ifndef _RSTAT_H_RPCGEN
7 #define _RSTAT_H_RPCGEN
17 * Scale factor for scaled integers used to count load averages.
19 #define FSHIFT 8 /* bits to right of fixed binary point */
20 #define FSCALE (1<<FSHIFT)
22 #endif /* ndef FSCALE */
23 #define RSTAT_CPUSTATES 4
24 #define RSTAT_DK_NDRIVE 4
26 struct rstat_timeval
{
30 typedef struct rstat_timeval rstat_timeval
;
33 int cp_time
[RSTAT_CPUSTATES
];
34 int dk_xfer
[RSTAT_DK_NDRIVE
];
46 rstat_timeval boottime
;
47 rstat_timeval curtime
;
50 typedef struct statstime statstime
;
53 int cp_time
[RSTAT_CPUSTATES
];
54 int dk_xfer
[RSTAT_DK_NDRIVE
];
66 rstat_timeval boottime
;
69 typedef struct statsswtch statsswtch
;
72 int cp_time
[RSTAT_CPUSTATES
];
73 int dk_xfer
[RSTAT_DK_NDRIVE
];
85 typedef struct stats stats
;
87 enum clnt_stat
rstat(char *, struct statstime
*);
91 #define RSTATPROG ((unsigned long)(100001))
92 #define RSTATVERS_TIME ((unsigned long)(3))
94 extern void rstatprog_3(struct svc_req
*rqstp
, SVCXPRT
*transp
);
95 #define RSTATPROC_STATS ((unsigned long)(1))
96 extern statstime
* rstatproc_stats_3(void *, CLIENT
*);
97 extern statstime
* rstatproc_stats_3_svc(void *, struct svc_req
*);
98 #define RSTATPROC_HAVEDISK ((unsigned long)(2))
99 extern u_int
* rstatproc_havedisk_3(void *, CLIENT
*);
100 extern u_int
* rstatproc_havedisk_3_svc(void *, struct svc_req
*);
101 extern int rstatprog_3_freeresult(SVCXPRT
*, xdrproc_t
, caddr_t
);
102 #define RSTATVERS_SWTCH ((unsigned long)(2))
104 extern void rstatprog_2(struct svc_req
*rqstp
, SVCXPRT
*transp
);
105 extern statsswtch
* rstatproc_stats_2(void *, CLIENT
*);
106 extern statsswtch
* rstatproc_stats_2_svc(void *, struct svc_req
*);
107 extern u_int
* rstatproc_havedisk_2(void *, CLIENT
*);
108 extern u_int
* rstatproc_havedisk_2_svc(void *, struct svc_req
*);
109 extern int rstatprog_2_freeresult(SVCXPRT
*, xdrproc_t
, caddr_t
);
110 #define RSTATVERS_ORIG ((unsigned long)(1))
112 extern void rstatprog_1(struct svc_req
*rqstp
, SVCXPRT
*transp
);
113 extern stats
* rstatproc_stats_1(void *, CLIENT
*);
114 extern stats
* rstatproc_stats_1_svc(void *, struct svc_req
*);
115 extern u_int
* rstatproc_havedisk_1(void *, CLIENT
*);
116 extern u_int
* rstatproc_havedisk_1_svc(void *, struct svc_req
*);
117 extern int rstatprog_1_freeresult(SVCXPRT
*, xdrproc_t
, caddr_t
);
119 /* the xdr functions */
120 extern bool_t
xdr_rstat_timeval(XDR
*, rstat_timeval
*);
121 extern bool_t
xdr_statstime(XDR
*, statstime
*);
122 extern bool_t
xdr_statsswtch(XDR
*, statsswtch
*);
123 extern bool_t
xdr_stats(XDR
*, stats
*);
129 #endif /* !_RSTAT_H_RPCGEN */