Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:37

0001 /*
0002  * Please do not edit this file.
0003  * It was generated using rpcgen.
0004  */
0005 
0006 #ifndef _RSTAT_H_RPCGEN
0007 #define _RSTAT_H_RPCGEN
0008 
0009 #include <rpc/rpc.h>
0010 
0011 
0012 #ifdef __cplusplus
0013 extern "C" {
0014 #endif
0015 
0016 #ifndef FSCALE
0017 /*
0018  * Scale factor for scaled integers used to count load averages.
0019  */
0020 #define FSHIFT 8 /* bits to right of fixed binary point */
0021 #define FSCALE (1<<FSHIFT)
0022 
0023 #endif /* ndef FSCALE */
0024 #define CPUSTATES 4
0025 #define DK_NDRIVE 4
0026 
0027 struct rstat_timeval {
0028     u_int tv_sec;
0029     u_int tv_usec;
0030 };
0031 typedef struct rstat_timeval rstat_timeval;
0032 
0033 struct statstime {
0034     int cp_time[CPUSTATES];
0035     int dk_xfer[DK_NDRIVE];
0036     u_int v_pgpgin;
0037     u_int v_pgpgout;
0038     u_int v_pswpin;
0039     u_int v_pswpout;
0040     u_int v_intr;
0041     int if_ipackets;
0042     int if_ierrors;
0043     int if_oerrors;
0044     int if_collisions;
0045     u_int v_swtch;
0046     int avenrun[3];
0047     rstat_timeval boottime;
0048     rstat_timeval curtime;
0049     int if_opackets;
0050 };
0051 typedef struct statstime statstime;
0052 
0053 struct statsswtch {
0054     int cp_time[CPUSTATES];
0055     int dk_xfer[DK_NDRIVE];
0056     u_int v_pgpgin;
0057     u_int v_pgpgout;
0058     u_int v_pswpin;
0059     u_int v_pswpout;
0060     u_int v_intr;
0061     int if_ipackets;
0062     int if_ierrors;
0063     int if_oerrors;
0064     int if_collisions;
0065     u_int v_swtch;
0066     u_int avenrun[3];
0067     rstat_timeval boottime;
0068     int if_opackets;
0069 };
0070 typedef struct statsswtch statsswtch;
0071 
0072 struct stats {
0073     int cp_time[CPUSTATES];
0074     int dk_xfer[DK_NDRIVE];
0075     u_int v_pgpgin;
0076     u_int v_pgpgout;
0077     u_int v_pswpin;
0078     u_int v_pswpout;
0079     u_int v_intr;
0080     int if_ipackets;
0081     int if_ierrors;
0082     int if_oerrors;
0083     int if_collisions;
0084     int if_opackets;
0085 };
0086 typedef struct stats stats;
0087 
0088 #define RSTATPROG 100001
0089 #define RSTATVERS_TIME 3
0090 
0091 #if defined(__STDC__) || defined(__cplusplus)
0092 #define RSTATPROC_STATS 1
0093 extern  statstime * rstatproc_stats_3(void *, CLIENT *);
0094 extern  statstime * rstatproc_stats_3_svc(void *, struct svc_req *);
0095 #define RSTATPROC_HAVEDISK 2
0096 extern  u_int * rstatproc_havedisk_3(void *, CLIENT *);
0097 extern  u_int * rstatproc_havedisk_3_svc(void *, struct svc_req *);
0098 extern int rstatprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
0099 
0100 #else /* K&R C */
0101 #define RSTATPROC_STATS 1
0102 extern  statstime * rstatproc_stats_3();
0103 extern  statstime * rstatproc_stats_3_svc();
0104 #define RSTATPROC_HAVEDISK 2
0105 extern  u_int * rstatproc_havedisk_3();
0106 extern  u_int * rstatproc_havedisk_3_svc();
0107 extern int rstatprog_3_freeresult ();
0108 #endif /* K&R C */
0109 #define RSTATVERS_SWTCH 2
0110 
0111 #if defined(__STDC__) || defined(__cplusplus)
0112 extern  statsswtch * rstatproc_stats_2(void *, CLIENT *);
0113 extern  statsswtch * rstatproc_stats_2_svc(void *, struct svc_req *);
0114 extern  u_int * rstatproc_havedisk_2(void *, CLIENT *);
0115 extern  u_int * rstatproc_havedisk_2_svc(void *, struct svc_req *);
0116 extern int rstatprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
0117 
0118 #else /* K&R C */
0119 extern  statsswtch * rstatproc_stats_2();
0120 extern  statsswtch * rstatproc_stats_2_svc();
0121 extern  u_int * rstatproc_havedisk_2();
0122 extern  u_int * rstatproc_havedisk_2_svc();
0123 extern int rstatprog_2_freeresult ();
0124 #endif /* K&R C */
0125 #define RSTATVERS_ORIG 1
0126 
0127 #if defined(__STDC__) || defined(__cplusplus)
0128 extern  stats * rstatproc_stats_1(void *, CLIENT *);
0129 extern  stats * rstatproc_stats_1_svc(void *, struct svc_req *);
0130 extern  u_int * rstatproc_havedisk_1(void *, CLIENT *);
0131 extern  u_int * rstatproc_havedisk_1_svc(void *, struct svc_req *);
0132 extern int rstatprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
0133 
0134 #else /* K&R C */
0135 extern  stats * rstatproc_stats_1();
0136 extern  stats * rstatproc_stats_1_svc();
0137 extern  u_int * rstatproc_havedisk_1();
0138 extern  u_int * rstatproc_havedisk_1_svc();
0139 extern int rstatprog_1_freeresult ();
0140 #endif /* K&R C */
0141 
0142 /* the xdr functions */
0143 
0144 #if defined(__STDC__) || defined(__cplusplus)
0145 extern  bool_t xdr_rstat_timeval (XDR *, rstat_timeval*);
0146 extern  bool_t xdr_statstime (XDR *, statstime*);
0147 extern  bool_t xdr_statsswtch (XDR *, statsswtch*);
0148 extern  bool_t xdr_stats (XDR *, stats*);
0149 
0150 #else /* K&R C */
0151 extern bool_t xdr_rstat_timeval ();
0152 extern bool_t xdr_statstime ();
0153 extern bool_t xdr_statsswtch ();
0154 extern bool_t xdr_stats ();
0155 
0156 #endif /* K&R C */
0157 
0158 #ifdef __cplusplus
0159 }
0160 #endif
0161 
0162 #endif /* !_RSTAT_H_RPCGEN */