Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


rstat.h
001: /*
002:  * Please do not edit this file.
003:  * It was generated using rpcgen.
004:  */
005: 
006: #ifndef _RSTAT_H_RPCGEN
007: #define _RSTAT_H_RPCGEN
008: 
009: #include <rpc/rpc.h>
010: 
011: 
012: #ifdef __cplusplus
013: extern "C" {
014: #endif
015: 
016: #ifndef FSCALE
017: /*
018:  * Scale factor for scaled integers used to count load averages.
019:  */
020: #define FSHIFT 8 /* bits to right of fixed binary point */
021: #define FSCALE (1<<FSHIFT)
022: 
023: #endif /* ndef FSCALE */
024: #define CPUSTATES 4
025: #define DK_NDRIVE 4
026: 
027: struct rstat_timeval {
028:         u_int tv_sec;
029:         u_int tv_usec;
030: };
031: typedef struct rstat_timeval rstat_timeval;
032: 
033: struct statstime {
034:         int cp_time[CPUSTATES];
035:         int dk_xfer[DK_NDRIVE];
036:         u_int v_pgpgin;
037:         u_int v_pgpgout;
038:         u_int v_pswpin;
039:         u_int v_pswpout;
040:         u_int v_intr;
041:         int if_ipackets;
042:         int if_ierrors;
043:         int if_oerrors;
044:         int if_collisions;
045:         u_int v_swtch;
046:         int avenrun[3];
047:         rstat_timeval boottime;
048:         rstat_timeval curtime;
049:         int if_opackets;
050: };
051: typedef struct statstime statstime;
052: 
053: struct statsswtch {
054:         int cp_time[CPUSTATES];
055:         int dk_xfer[DK_NDRIVE];
056:         u_int v_pgpgin;
057:         u_int v_pgpgout;
058:         u_int v_pswpin;
059:         u_int v_pswpout;
060:         u_int v_intr;
061:         int if_ipackets;
062:         int if_ierrors;
063:         int if_oerrors;
064:         int if_collisions;
065:         u_int v_swtch;
066:         u_int avenrun[3];
067:         rstat_timeval boottime;
068:         int if_opackets;
069: };
070: typedef struct statsswtch statsswtch;
071: 
072: struct stats {
073:         int cp_time[CPUSTATES];
074:         int dk_xfer[DK_NDRIVE];
075:         u_int v_pgpgin;
076:         u_int v_pgpgout;
077:         u_int v_pswpin;
078:         u_int v_pswpout;
079:         u_int v_intr;
080:         int if_ipackets;
081:         int if_ierrors;
082:         int if_oerrors;
083:         int if_collisions;
084:         int if_opackets;
085: };
086: typedef struct stats stats;
087: 
088: #define RSTATPROG 100001
089: #define RSTATVERS_TIME 3
090: 
091: #if defined(__STDC__) || defined(__cplusplus)
092: #define RSTATPROC_STATS 1
093: extern  statstime * rstatproc_stats_3(void *, CLIENT *);
094: extern  statstime * rstatproc_stats_3_svc(void *, struct svc_req *);
095: #define RSTATPROC_HAVEDISK 2
096: extern  u_int * rstatproc_havedisk_3(void *, CLIENT *);
097: extern  u_int * rstatproc_havedisk_3_svc(void *, struct svc_req *);
098: extern int rstatprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
099: 
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: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/