The C and C++ Include Header Files
/usr/include/rpcsvc/sm_inter.h
$ cat -n /usr/include/rpcsvc/sm_inter.h 1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef _SM_INTER_H_RPCGEN 7 #define _SM_INTER_H_RPCGEN 8 9 #include
10 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #define SM_MAXSTRLEN 1024 17 18 struct sm_name { 19 char *mon_name; 20 }; 21 typedef struct sm_name sm_name; 22 23 struct my_id { 24 char *my_name; 25 int my_prog; 26 int my_vers; 27 int my_proc; 28 }; 29 typedef struct my_id my_id; 30 31 struct mon_id { 32 char *mon_name; 33 struct my_id my_id; 34 }; 35 typedef struct mon_id mon_id; 36 37 struct mon { 38 struct mon_id mon_id; 39 char priv[16]; 40 }; 41 typedef struct mon mon; 42 43 struct sm_stat { 44 int state; 45 }; 46 typedef struct sm_stat sm_stat; 47 48 enum res { 49 stat_succ = 0, 50 stat_fail = 1, 51 }; 52 typedef enum res res; 53 54 struct sm_stat_res { 55 res res_stat; 56 int state; 57 }; 58 typedef struct sm_stat_res sm_stat_res; 59 60 struct status { 61 char *mon_name; 62 int state; 63 char priv[16]; 64 }; 65 typedef struct status status; 66 67 #define SM_PROG 100024 68 #define SM_VERS 1 69 70 #if defined(__STDC__) || defined(__cplusplus) 71 #define SM_STAT 1 72 extern struct sm_stat_res * sm_stat_1(struct sm_name *, CLIENT *); 73 extern struct sm_stat_res * sm_stat_1_svc(struct sm_name *, struct svc_req *); 74 #define SM_MON 2 75 extern struct sm_stat_res * sm_mon_1(struct mon *, CLIENT *); 76 extern struct sm_stat_res * sm_mon_1_svc(struct mon *, struct svc_req *); 77 #define SM_UNMON 3 78 extern struct sm_stat * sm_unmon_1(struct mon_id *, CLIENT *); 79 extern struct sm_stat * sm_unmon_1_svc(struct mon_id *, struct svc_req *); 80 #define SM_UNMON_ALL 4 81 extern struct sm_stat * sm_unmon_all_1(struct my_id *, CLIENT *); 82 extern struct sm_stat * sm_unmon_all_1_svc(struct my_id *, struct svc_req *); 83 #define SM_SIMU_CRASH 5 84 extern void * sm_simu_crash_1(void *, CLIENT *); 85 extern void * sm_simu_crash_1_svc(void *, struct svc_req *); 86 extern int sm_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); 87 88 #else /* K&R C */ 89 #define SM_STAT 1 90 extern struct sm_stat_res * sm_stat_1(); 91 extern struct sm_stat_res * sm_stat_1_svc(); 92 #define SM_MON 2 93 extern struct sm_stat_res * sm_mon_1(); 94 extern struct sm_stat_res * sm_mon_1_svc(); 95 #define SM_UNMON 3 96 extern struct sm_stat * sm_unmon_1(); 97 extern struct sm_stat * sm_unmon_1_svc(); 98 #define SM_UNMON_ALL 4 99 extern struct sm_stat * sm_unmon_all_1(); 100 extern struct sm_stat * sm_unmon_all_1_svc(); 101 #define SM_SIMU_CRASH 5 102 extern void * sm_simu_crash_1(); 103 extern void * sm_simu_crash_1_svc(); 104 extern int sm_prog_1_freeresult (); 105 #endif /* K&R C */ 106 107 /* the xdr functions */ 108 109 #if defined(__STDC__) || defined(__cplusplus) 110 extern bool_t xdr_sm_name (XDR *, sm_name*); 111 extern bool_t xdr_my_id (XDR *, my_id*); 112 extern bool_t xdr_mon_id (XDR *, mon_id*); 113 extern bool_t xdr_mon (XDR *, mon*); 114 extern bool_t xdr_sm_stat (XDR *, sm_stat*); 115 extern bool_t xdr_res (XDR *, res*); 116 extern bool_t xdr_sm_stat_res (XDR *, sm_stat_res*); 117 extern bool_t xdr_status (XDR *, status*); 118 119 #else /* K&R C */ 120 extern bool_t xdr_sm_name (); 121 extern bool_t xdr_my_id (); 122 extern bool_t xdr_mon_id (); 123 extern bool_t xdr_mon (); 124 extern bool_t xdr_sm_stat (); 125 extern bool_t xdr_res (); 126 extern bool_t xdr_sm_stat_res (); 127 extern bool_t xdr_status (); 128 129 #endif /* K&R C */ 130 131 #ifdef __cplusplus 132 } 133 #endif 134 135 #endif /* !_SM_INTER_H_RPCGEN */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2024 MyWebUniversity.com ™