BIND - Update BIND to 9.5.2
[dragonfly.git] / include / rpcsvc / rstat.h
blobb4cf7b4a4375c29dc22f7a0e2498ed9c11e234bc
1 /*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
6 #ifndef _RSTAT_H_RPCGEN
7 #define _RSTAT_H_RPCGEN
9 #include <rpc/rpc.h>
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 #ifndef FSCALE
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 {
27 u_int tv_sec;
28 u_int tv_usec;
30 typedef struct rstat_timeval rstat_timeval;
32 struct statstime {
33 int cp_time[RSTAT_CPUSTATES];
34 int dk_xfer[RSTAT_DK_NDRIVE];
35 u_int v_pgpgin;
36 u_int v_pgpgout;
37 u_int v_pswpin;
38 u_int v_pswpout;
39 u_int v_intr;
40 int if_ipackets;
41 int if_ierrors;
42 int if_oerrors;
43 int if_collisions;
44 u_int v_swtch;
45 int avenrun[3];
46 rstat_timeval boottime;
47 rstat_timeval curtime;
48 int if_opackets;
50 typedef struct statstime statstime;
52 struct statsswtch {
53 int cp_time[RSTAT_CPUSTATES];
54 int dk_xfer[RSTAT_DK_NDRIVE];
55 u_int v_pgpgin;
56 u_int v_pgpgout;
57 u_int v_pswpin;
58 u_int v_pswpout;
59 u_int v_intr;
60 int if_ipackets;
61 int if_ierrors;
62 int if_oerrors;
63 int if_collisions;
64 u_int v_swtch;
65 u_int avenrun[3];
66 rstat_timeval boottime;
67 int if_opackets;
69 typedef struct statsswtch statsswtch;
71 struct stats {
72 int cp_time[RSTAT_CPUSTATES];
73 int dk_xfer[RSTAT_DK_NDRIVE];
74 u_int v_pgpgin;
75 u_int v_pgpgout;
76 u_int v_pswpin;
77 u_int v_pswpout;
78 u_int v_intr;
79 int if_ipackets;
80 int if_ierrors;
81 int if_oerrors;
82 int if_collisions;
83 int if_opackets;
85 typedef struct stats stats;
87 enum clnt_stat rstat(char *, struct statstime *);
88 int havedisk(char *);
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*);
125 #ifdef __cplusplus
127 #endif
129 #endif /* !_RSTAT_H_RPCGEN */