@@@@RPCSVC-NATIVE probe/out.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _OUT_H_RPCGEN #define _OUT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define PROBE_MAXNAME 64 #define PROBE_COOKIE_LEN 8 typedef char *probe_name; typedef char probe_cookie[PROBE_COOKIE_LEN]; typedef struct { u_int probe_blob_len; char *probe_blob_val; } probe_blob; typedef struct { u_int probe_ints_len; int *probe_ints_val; } probe_ints; typedef probe_name probe_tags[3]; enum probe_kind { PROBE_NONE = 0, PROBE_INT = 1, PROBE_TEXT = 2, PROBE_BLOB = 3, }; typedef enum probe_kind probe_kind; struct probe_point { int x; int y; }; typedef struct probe_point probe_point; struct probe_item { probe_kind kind; probe_name label; probe_point where; u_int flags; quad_t big; u_quad_t ubig; float ratio; double precise; bool_t present; probe_blob payload; }; typedef struct probe_item probe_item; struct probe_value { probe_kind kind; union { int ival; probe_name tval; probe_blob bval; } probe_value_u; }; typedef struct probe_value probe_value; struct probe_chain { probe_item head; struct probe_chain *next; }; typedef struct probe_chain probe_chain; struct probe_request { probe_name who; probe_ints values; probe_cookie cookie; }; typedef struct probe_request probe_request; struct probe_reply { int status; probe_value result; probe_tags tags; }; typedef struct probe_reply probe_reply; #define PROBE_PROG 0x20000199 #define PROBE_VERS 1 #if defined(__STDC__) || defined(__cplusplus) #define PROBE_NULL 0 extern void * probe_null_1(void *, CLIENT *); extern void * probe_null_1_svc(void *, struct svc_req *); #define PROBE_ECHO 1 extern probe_reply * probe_echo_1(probe_request *, CLIENT *); extern probe_reply * probe_echo_1_svc(probe_request *, struct svc_req *); #define PROBE_ADD 2 extern probe_point * probe_add_1(probe_point *, CLIENT *); extern probe_point * probe_add_1_svc(probe_point *, struct svc_req *); #define PROBE_TAGS 3 extern probe_name * probe_tags_1(void *, CLIENT *); extern probe_name * probe_tags_1_svc(void *, struct svc_req *); #define PROBE_CHAIN 4 extern probe_chain * probe_chain_1(probe_item *, CLIENT *); extern probe_chain * probe_chain_1_svc(probe_item *, struct svc_req *); extern int probe_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define PROBE_NULL 0 extern void * probe_null_1(); extern void * probe_null_1_svc(); #define PROBE_ECHO 1 extern probe_reply * probe_echo_1(); extern probe_reply * probe_echo_1_svc(); #define PROBE_ADD 2 extern probe_point * probe_add_1(); extern probe_point * probe_add_1_svc(); #define PROBE_TAGS 3 extern probe_name * probe_tags_1(); extern probe_name * probe_tags_1_svc(); #define PROBE_CHAIN 4 extern probe_chain * probe_chain_1(); extern probe_chain * probe_chain_1_svc(); extern int probe_prog_1_freeresult (); #endif /* K&R C */ #define PROBE_VERS2 2 #if defined(__STDC__) || defined(__cplusplus) extern void * probe_null_2(void *, CLIENT *); extern void * probe_null_2_svc(void *, struct svc_req *); extern probe_reply * probe_echo_2(probe_request *, CLIENT *); extern probe_reply * probe_echo_2_svc(probe_request *, struct svc_req *); extern int probe_prog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ extern void * probe_null_2(); extern void * probe_null_2_svc(); extern probe_reply * probe_echo_2(); extern probe_reply * probe_echo_2_svc(); extern int probe_prog_2_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_probe_name (XDR *, probe_name*); extern bool_t xdr_probe_cookie (XDR *, probe_cookie); extern bool_t xdr_probe_blob (XDR *, probe_blob*); extern bool_t xdr_probe_ints (XDR *, probe_ints*); extern bool_t xdr_probe_tags (XDR *, probe_tags); extern bool_t xdr_probe_kind (XDR *, probe_kind*); extern bool_t xdr_probe_point (XDR *, probe_point*); extern bool_t xdr_probe_item (XDR *, probe_item*); extern bool_t xdr_probe_value (XDR *, probe_value*); extern bool_t xdr_probe_chain (XDR *, probe_chain*); extern bool_t xdr_probe_request (XDR *, probe_request*); extern bool_t xdr_probe_reply (XDR *, probe_reply*); #else /* K&R C */ extern bool_t xdr_probe_name (); extern bool_t xdr_probe_cookie (); extern bool_t xdr_probe_blob (); extern bool_t xdr_probe_ints (); extern bool_t xdr_probe_tags (); extern bool_t xdr_probe_kind (); extern bool_t xdr_probe_point (); extern bool_t xdr_probe_item (); extern bool_t xdr_probe_value (); extern bool_t xdr_probe_chain (); extern bool_t xdr_probe_request (); extern bool_t xdr_probe_reply (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_OUT_H_RPCGEN */ @@@@RPCSVC-NATIVE probe/out.c@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #include "rpcsvc-probe.h" bool_t xdr_probe_name (XDR *xdrs, probe_name *objp) { register int32_t *buf; if (!xdr_string (xdrs, objp, PROBE_MAXNAME)) return FALSE; return TRUE; } bool_t xdr_probe_cookie (XDR *xdrs, probe_cookie objp) { register int32_t *buf; if (!xdr_opaque (xdrs, objp, PROBE_COOKIE_LEN)) return FALSE; return TRUE; } bool_t xdr_probe_blob (XDR *xdrs, probe_blob *objp) { register int32_t *buf; if (!xdr_bytes (xdrs, (char **)&objp->probe_blob_val, (u_int *) &objp->probe_blob_len, 256)) return FALSE; return TRUE; } bool_t xdr_probe_ints (XDR *xdrs, probe_ints *objp) { register int32_t *buf; if (!xdr_array (xdrs, (char **)&objp->probe_ints_val, (u_int *) &objp->probe_ints_len, ~0, sizeof (int), (xdrproc_t) xdr_int)) return FALSE; return TRUE; } bool_t xdr_probe_tags (XDR *xdrs, probe_tags objp) { register int32_t *buf; if (!xdr_vector (xdrs, (char *)objp, 3, sizeof (probe_name), (xdrproc_t) xdr_probe_name)) return FALSE; return TRUE; } bool_t xdr_probe_kind (XDR *xdrs, probe_kind *objp) { register int32_t *buf; if (!xdr_enum (xdrs, (enum_t *) objp)) return FALSE; return TRUE; } bool_t xdr_probe_point (XDR *xdrs, probe_point *objp) { register int32_t *buf; if (!xdr_int (xdrs, &objp->x)) return FALSE; if (!xdr_int (xdrs, &objp->y)) return FALSE; return TRUE; } bool_t xdr_probe_item (XDR *xdrs, probe_item *objp) { register int32_t *buf; if (!xdr_probe_kind (xdrs, &objp->kind)) return FALSE; if (!xdr_probe_name (xdrs, &objp->label)) return FALSE; if (!xdr_probe_point (xdrs, &objp->where)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; if (!xdr_quad_t (xdrs, &objp->big)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->ubig)) return FALSE; if (!xdr_float (xdrs, &objp->ratio)) return FALSE; if (!xdr_double (xdrs, &objp->precise)) return FALSE; if (!xdr_bool (xdrs, &objp->present)) return FALSE; if (!xdr_probe_blob (xdrs, &objp->payload)) return FALSE; return TRUE; } bool_t xdr_probe_value (XDR *xdrs, probe_value *objp) { register int32_t *buf; if (!xdr_probe_kind (xdrs, &objp->kind)) return FALSE; switch (objp->kind) { case PROBE_INT: if (!xdr_int (xdrs, &objp->probe_value_u.ival)) return FALSE; break; case PROBE_TEXT: if (!xdr_probe_name (xdrs, &objp->probe_value_u.tval)) return FALSE; break; case PROBE_BLOB: if (!xdr_probe_blob (xdrs, &objp->probe_value_u.bval)) return FALSE; break; default: break; } return TRUE; } bool_t xdr_probe_chain (XDR *xdrs, probe_chain *objp) { register int32_t *buf; if (!xdr_probe_item (xdrs, &objp->head)) return FALSE; if (!xdr_pointer (xdrs, (char **)&objp->next, sizeof (probe_chain), (xdrproc_t) xdr_probe_chain)) return FALSE; return TRUE; } bool_t xdr_probe_request (XDR *xdrs, probe_request *objp) { register int32_t *buf; if (!xdr_probe_name (xdrs, &objp->who)) return FALSE; if (!xdr_probe_ints (xdrs, &objp->values)) return FALSE; if (!xdr_probe_cookie (xdrs, objp->cookie)) return FALSE; return TRUE; } bool_t xdr_probe_reply (XDR *xdrs, probe_reply *objp) { register int32_t *buf; if (!xdr_int (xdrs, &objp->status)) return FALSE; if (!xdr_probe_value (xdrs, &objp->result)) return FALSE; if (!xdr_probe_tags (xdrs, objp->tags)) return FALSE; return TRUE; } @@@@RPCSVC-NATIVE probe/out.l@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #include /* for memset */ #include "rpcsvc-probe.h" /* Default timeout can be changed using clnt_control() */ static struct timeval TIMEOUT = { 25, 0 }; void * probe_null_1(void *argp, CLIENT *clnt) { static char clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, PROBE_NULL, (xdrproc_t) xdr_void, (caddr_t) argp, (xdrproc_t) xdr_void, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return ((void *)&clnt_res); } probe_reply * probe_echo_1(probe_request *argp, CLIENT *clnt) { static probe_reply clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, PROBE_ECHO, (xdrproc_t) xdr_probe_request, (caddr_t) argp, (xdrproc_t) xdr_probe_reply, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&clnt_res); } probe_point * probe_add_1(probe_point *argp, CLIENT *clnt) { static probe_point clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, PROBE_ADD, (xdrproc_t) xdr_probe_point, (caddr_t) argp, (xdrproc_t) xdr_probe_point, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&clnt_res); } probe_name * probe_tags_1(void *argp, CLIENT *clnt) { static probe_tags clnt_res; memset((char *)clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, PROBE_TAGS, (xdrproc_t) xdr_void, (caddr_t) argp, (xdrproc_t) xdr_probe_tags, (caddr_t) clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (clnt_res); } probe_chain * probe_chain_1(probe_item *argp, CLIENT *clnt) { static probe_chain clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, PROBE_CHAIN, (xdrproc_t) xdr_probe_item, (caddr_t) argp, (xdrproc_t) xdr_probe_chain, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&clnt_res); } void * probe_null_2(void *argp, CLIENT *clnt) { static char clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, PROBE_NULL, (xdrproc_t) xdr_void, (caddr_t) argp, (xdrproc_t) xdr_void, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return ((void *)&clnt_res); } probe_reply * probe_echo_2(probe_request *argp, CLIENT *clnt) { static probe_reply clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, PROBE_ECHO, (xdrproc_t) xdr_probe_request, (caddr_t) argp, (xdrproc_t) xdr_probe_reply, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&clnt_res); } @@@@RPCSVC-NATIVE probe/out.m@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #include "rpcsvc-probe.h" #include #include #include #include #include #include #include #ifndef SIG_PF #define SIG_PF void(*)(int) #endif void probe_prog_1(struct svc_req *rqstp, register SVCXPRT *transp) { union { probe_request probe_echo_1_arg; probe_point probe_add_1_arg; probe_item probe_chain_1_arg; } argument; char *result; xdrproc_t _xdr_argument, _xdr_result; char *(*local)(char *, struct svc_req *); switch (rqstp->rq_proc) { case PROBE_NULL: _xdr_argument = (xdrproc_t) xdr_void; _xdr_result = (xdrproc_t) xdr_void; local = (char *(*)(char *, struct svc_req *)) probe_null_1_svc; break; case PROBE_ECHO: _xdr_argument = (xdrproc_t) xdr_probe_request; _xdr_result = (xdrproc_t) xdr_probe_reply; local = (char *(*)(char *, struct svc_req *)) probe_echo_1_svc; break; case PROBE_ADD: _xdr_argument = (xdrproc_t) xdr_probe_point; _xdr_result = (xdrproc_t) xdr_probe_point; local = (char *(*)(char *, struct svc_req *)) probe_add_1_svc; break; case PROBE_TAGS: _xdr_argument = (xdrproc_t) xdr_void; _xdr_result = (xdrproc_t) xdr_probe_tags; local = (char *(*)(char *, struct svc_req *)) probe_tags_1_svc; break; case PROBE_CHAIN: _xdr_argument = (xdrproc_t) xdr_probe_item; _xdr_result = (xdrproc_t) xdr_probe_chain; local = (char *(*)(char *, struct svc_req *)) probe_chain_1_svc; break; default: svcerr_noproc (transp); return; } memset ((char *)&argument, 0, sizeof (argument)); if (!svc_getargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) { svcerr_decode (transp); return; } result = (*local)((char *)&argument, rqstp); if (result != NULL && !svc_sendreply(transp, (xdrproc_t) _xdr_result, result)) { svcerr_systemerr (transp); } if (!svc_freeargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) { fprintf (stderr, "%s", "unable to free arguments"); exit (1); } return; } void probe_prog_2(struct svc_req *rqstp, register SVCXPRT *transp) { union { probe_request probe_echo_2_arg; } argument; char *result; xdrproc_t _xdr_argument, _xdr_result; char *(*local)(char *, struct svc_req *); switch (rqstp->rq_proc) { case PROBE_NULL: _xdr_argument = (xdrproc_t) xdr_void; _xdr_result = (xdrproc_t) xdr_void; local = (char *(*)(char *, struct svc_req *)) probe_null_2_svc; break; case PROBE_ECHO: _xdr_argument = (xdrproc_t) xdr_probe_request; _xdr_result = (xdrproc_t) xdr_probe_reply; local = (char *(*)(char *, struct svc_req *)) probe_echo_2_svc; break; default: svcerr_noproc (transp); return; } memset ((char *)&argument, 0, sizeof (argument)); if (!svc_getargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) { svcerr_decode (transp); return; } result = (*local)((char *)&argument, rqstp); if (result != NULL && !svc_sendreply(transp, (xdrproc_t) _xdr_result, result)) { svcerr_systemerr (transp); } if (!svc_freeargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) { fprintf (stderr, "%s", "unable to free arguments"); exit (1); } return; } @@@@RPCSVC-NATIVE probe/out.t@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ struct rpcgen_table probe_prog_1_table[] = { (char *(*)())RPCGEN_ACTION(probe_null_1_svc), xdr_void, 0, xdr_void, 0, (char *(*)())RPCGEN_ACTION(probe_echo_1_svc), xdr_probe_request, sizeof ( probe_request ), xdr_probe_reply, sizeof ( probe_reply ), (char *(*)())RPCGEN_ACTION(probe_add_1_svc), xdr_probe_point, sizeof ( probe_point ), xdr_probe_point, sizeof ( probe_point ), (char *(*)())RPCGEN_ACTION(probe_tags_1_svc), xdr_void, 0, xdr_probe_tags, sizeof ( probe_tags ), (char *(*)())RPCGEN_ACTION(probe_chain_1_svc), xdr_probe_item, sizeof ( probe_item ), xdr_probe_chain, sizeof ( probe_chain ), }; int probe_prog_1_nproc = sizeof(probe_prog_1_table)/sizeof(probe_prog_1_table[0]); struct rpcgen_table probe_prog_2_table[] = { (char *(*)())RPCGEN_ACTION(probe_null_2_svc), xdr_void, 0, xdr_void, 0, (char *(*)())RPCGEN_ACTION(probe_echo_2_svc), xdr_probe_request, sizeof ( probe_request ), xdr_probe_reply, sizeof ( probe_reply ), }; int probe_prog_2_nproc = sizeof(probe_prog_2_table)/sizeof(probe_prog_2_table[0]); @@@@RPCSVC-NATIVE probe/out.Sc@@@@ /* * This is sample code generated by rpcgen. * These are only templates and you can use them * as a guideline for developing your own functions. */ #include "rpcsvc-probe.h" void probe_prog_1(char *host) { CLIENT *clnt; void *result_1; char *probe_null_1_arg; probe_reply *result_2; probe_request probe_echo_1_arg; probe_point *result_3; probe_point probe_add_1_arg; probe_name *result_4; char *probe_tags_1_arg; probe_chain *result_5; probe_item probe_chain_1_arg; #ifndef DEBUG clnt = clnt_create (host, PROBE_PROG, PROBE_VERS, "udp"); if (clnt == NULL) { clnt_pcreateerror (host); exit (1); } #endif /* DEBUG */ result_1 = probe_null_1((void*)&probe_null_1_arg, clnt); if (result_1 == (void *) NULL) { clnt_perror (clnt, "call failed"); } result_2 = probe_echo_1(&probe_echo_1_arg, clnt); if (result_2 == (probe_reply *) NULL) { clnt_perror (clnt, "call failed"); } result_3 = probe_add_1(&probe_add_1_arg, clnt); if (result_3 == (probe_point *) NULL) { clnt_perror (clnt, "call failed"); } result_4 = probe_tags_1((void*)&probe_tags_1_arg, clnt); if (result_4 == (probe_name *) NULL) { clnt_perror (clnt, "call failed"); } result_5 = probe_chain_1(&probe_chain_1_arg, clnt); if (result_5 == (probe_chain *) NULL) { clnt_perror (clnt, "call failed"); } #ifndef DEBUG clnt_destroy (clnt); #endif /* DEBUG */ } void probe_prog_2(char *host) { CLIENT *clnt; void *result_1; char *probe_null_2_arg; probe_reply *result_2; probe_request probe_echo_2_arg; #ifndef DEBUG clnt = clnt_create (host, PROBE_PROG, PROBE_VERS2, "udp"); if (clnt == NULL) { clnt_pcreateerror (host); exit (1); } #endif /* DEBUG */ result_1 = probe_null_2((void*)&probe_null_2_arg, clnt); if (result_1 == (void *) NULL) { clnt_perror (clnt, "call failed"); } result_2 = probe_echo_2(&probe_echo_2_arg, clnt); if (result_2 == (probe_reply *) NULL) { clnt_perror (clnt, "call failed"); } #ifndef DEBUG clnt_destroy (clnt); #endif /* DEBUG */ } int main (int argc, char *argv[]) { char *host; if (argc < 2) { printf ("usage: %s server_host\n", argv[0]); exit (1); } host = argv[1]; probe_prog_1 (host); probe_prog_2 (host); exit (0); } @@@@RPCSVC-NATIVE probe/out.Ss@@@@ /* * This is sample code generated by rpcgen. * These are only templates and you can use them * as a guideline for developing your own functions. */ #include "rpcsvc-probe.h" void * probe_null_1_svc(void *argp, struct svc_req *rqstp) { static char * result; /* * insert server code here */ return (void *) &result; } probe_reply * probe_echo_1_svc(probe_request *argp, struct svc_req *rqstp) { static probe_reply result; /* * insert server code here */ return &result; } probe_point * probe_add_1_svc(probe_point *argp, struct svc_req *rqstp) { static probe_point result; /* * insert server code here */ return &result; } probe_name * probe_tags_1_svc(void *argp, struct svc_req *rqstp) { static probe_name result; /* * insert server code here */ return &result; } probe_chain * probe_chain_1_svc(probe_item *argp, struct svc_req *rqstp) { static probe_chain result; /* * insert server code here */ return &result; } void * probe_null_2_svc(void *argp, struct svc_req *rqstp) { static char * result; /* * insert server code here */ return (void *) &result; } probe_reply * probe_echo_2_svc(probe_request *argp, struct svc_req *rqstp) { static probe_reply result; /* * insert server code here */ return &result; } @@@@RPCSVC-NATIVE probe/out.Sm@@@@ # This is a template Makefile generated by rpcgen # Parameters CLIENT = rpcsvc-probe_client SERVER = rpcsvc-probe_server SOURCES_CLNT.c = SOURCES_CLNT.h = SOURCES_SVC.c = SOURCES_SVC.h = SOURCES.x = rpcsvc-probe.x TARGETS_SVC.c = TARGETS_CLNT.c = TARGETS = OBJECTS_CLNT = $(SOURCES_CLNT.c:%.c=%.o) $(TARGETS_CLNT.c:%.c=%.o) OBJECTS_SVC = $(SOURCES_SVC.c:%.c=%.o) $(TARGETS_SVC.c:%.c=%.o) # Compiler flags CFLAGS += -g LDLIBS += -lnsl RPCGENFLAGS = # Targets all : $(CLIENT) $(SERVER) $(TARGETS) : $(SOURCES.x) rpcgen $(RPCGENFLAGS) $(SOURCES.x) $(OBJECTS_CLNT) : $(SOURCES_CLNT.c) $(SOURCES_CLNT.h) $(TARGETS_CLNT.c) $(OBJECTS_SVC) : $(SOURCES_SVC.c) $(SOURCES_SVC.h) $(TARGETS_SVC.c) $(CLIENT) : $(OBJECTS_CLNT) $(LINK.c) -o $(CLIENT) $(OBJECTS_CLNT) $(LDLIBS) $(SERVER) : $(OBJECTS_SVC) $(LINK.c) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS) clean: $(RM) core $(TARGETS) $(OBJECTS_CLNT) $(OBJECTS_SVC) $(CLIENT) $(SERVER) @@@@RPCSVC-NATIVE probe/out.Nh@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _OUT_H_RPCGEN #define _OUT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define PROBE_MAXNAME 64 #define PROBE_COOKIE_LEN 8 typedef char *probe_name; typedef char probe_cookie[PROBE_COOKIE_LEN]; typedef struct { u_int probe_blob_len; char *probe_blob_val; } probe_blob; typedef struct { u_int probe_ints_len; int *probe_ints_val; } probe_ints; typedef probe_name probe_tags[3]; enum probe_kind { PROBE_NONE = 0, PROBE_INT = 1, PROBE_TEXT = 2, PROBE_BLOB = 3, }; typedef enum probe_kind probe_kind; struct probe_point { int x; int y; }; typedef struct probe_point probe_point; struct probe_item { probe_kind kind; probe_name label; probe_point where; u_int flags; quad_t big; u_quad_t ubig; float ratio; double precise; bool_t present; probe_blob payload; }; typedef struct probe_item probe_item; struct probe_value { probe_kind kind; union { int ival; probe_name tval; probe_blob bval; } probe_value_u; }; typedef struct probe_value probe_value; struct probe_chain { probe_item head; struct probe_chain *next; }; typedef struct probe_chain probe_chain; struct probe_request { probe_name who; probe_ints values; probe_cookie cookie; }; typedef struct probe_request probe_request; struct probe_reply { int status; probe_value result; probe_tags tags; }; typedef struct probe_reply probe_reply; #define PROBE_PROG 0x20000199 #define PROBE_VERS 1 #if defined(__STDC__) || defined(__cplusplus) #define PROBE_NULL 0 extern void * probe_null_1(CLIENT *); extern void * probe_null_1_svc(struct svc_req *); #define PROBE_ECHO 1 extern probe_reply * probe_echo_1(probe_request , CLIENT *); extern probe_reply * probe_echo_1_svc(probe_request , struct svc_req *); #define PROBE_ADD 2 extern probe_point * probe_add_1(probe_point , CLIENT *); extern probe_point * probe_add_1_svc(probe_point , struct svc_req *); #define PROBE_TAGS 3 extern probe_name * probe_tags_1(CLIENT *); extern probe_name * probe_tags_1_svc(struct svc_req *); #define PROBE_CHAIN 4 extern probe_chain * probe_chain_1(probe_item , CLIENT *); extern probe_chain * probe_chain_1_svc(probe_item , struct svc_req *); extern int probe_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define PROBE_NULL 0 extern void * probe_null_1(); extern void * probe_null_1_svc(); #define PROBE_ECHO 1 extern probe_reply * probe_echo_1(); extern probe_reply * probe_echo_1_svc(); #define PROBE_ADD 2 extern probe_point * probe_add_1(); extern probe_point * probe_add_1_svc(); #define PROBE_TAGS 3 extern probe_name * probe_tags_1(); extern probe_name * probe_tags_1_svc(); #define PROBE_CHAIN 4 extern probe_chain * probe_chain_1(); extern probe_chain * probe_chain_1_svc(); extern int probe_prog_1_freeresult (); #endif /* K&R C */ #define PROBE_VERS2 2 #if defined(__STDC__) || defined(__cplusplus) extern void * probe_null_2(CLIENT *); extern void * probe_null_2_svc(struct svc_req *); extern probe_reply * probe_echo_2(probe_request , CLIENT *); extern probe_reply * probe_echo_2_svc(probe_request , struct svc_req *); extern int probe_prog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ extern void * probe_null_2(); extern void * probe_null_2_svc(); extern probe_reply * probe_echo_2(); extern probe_reply * probe_echo_2_svc(); extern int probe_prog_2_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_probe_name (XDR *, probe_name*); extern bool_t xdr_probe_cookie (XDR *, probe_cookie); extern bool_t xdr_probe_blob (XDR *, probe_blob*); extern bool_t xdr_probe_ints (XDR *, probe_ints*); extern bool_t xdr_probe_tags (XDR *, probe_tags); extern bool_t xdr_probe_kind (XDR *, probe_kind*); extern bool_t xdr_probe_point (XDR *, probe_point*); extern bool_t xdr_probe_item (XDR *, probe_item*); extern bool_t xdr_probe_value (XDR *, probe_value*); extern bool_t xdr_probe_chain (XDR *, probe_chain*); extern bool_t xdr_probe_request (XDR *, probe_request*); extern bool_t xdr_probe_reply (XDR *, probe_reply*); #else /* K&R C */ extern bool_t xdr_probe_name (); extern bool_t xdr_probe_cookie (); extern bool_t xdr_probe_blob (); extern bool_t xdr_probe_ints (); extern bool_t xdr_probe_tags (); extern bool_t xdr_probe_kind (); extern bool_t xdr_probe_point (); extern bool_t xdr_probe_item (); extern bool_t xdr_probe_value (); extern bool_t xdr_probe_chain (); extern bool_t xdr_probe_request (); extern bool_t xdr_probe_reply (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_OUT_H_RPCGEN */ @@@@RPCSVC-NATIVE probe/out.Nc@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #include "rpcsvc-probe.h" bool_t xdr_probe_name (XDR *xdrs, probe_name *objp) { register int32_t *buf; if (!xdr_string (xdrs, objp, PROBE_MAXNAME)) return FALSE; return TRUE; } bool_t xdr_probe_cookie (XDR *xdrs, probe_cookie objp) { register int32_t *buf; if (!xdr_opaque (xdrs, objp, PROBE_COOKIE_LEN)) return FALSE; return TRUE; } bool_t xdr_probe_blob (XDR *xdrs, probe_blob *objp) { register int32_t *buf; if (!xdr_bytes (xdrs, (char **)&objp->probe_blob_val, (u_int *) &objp->probe_blob_len, 256)) return FALSE; return TRUE; } bool_t xdr_probe_ints (XDR *xdrs, probe_ints *objp) { register int32_t *buf; if (!xdr_array (xdrs, (char **)&objp->probe_ints_val, (u_int *) &objp->probe_ints_len, ~0, sizeof (int), (xdrproc_t) xdr_int)) return FALSE; return TRUE; } bool_t xdr_probe_tags (XDR *xdrs, probe_tags objp) { register int32_t *buf; if (!xdr_vector (xdrs, (char *)objp, 3, sizeof (probe_name), (xdrproc_t) xdr_probe_name)) return FALSE; return TRUE; } bool_t xdr_probe_kind (XDR *xdrs, probe_kind *objp) { register int32_t *buf; if (!xdr_enum (xdrs, (enum_t *) objp)) return FALSE; return TRUE; } bool_t xdr_probe_point (XDR *xdrs, probe_point *objp) { register int32_t *buf; if (!xdr_int (xdrs, &objp->x)) return FALSE; if (!xdr_int (xdrs, &objp->y)) return FALSE; return TRUE; } bool_t xdr_probe_item (XDR *xdrs, probe_item *objp) { register int32_t *buf; if (!xdr_probe_kind (xdrs, &objp->kind)) return FALSE; if (!xdr_probe_name (xdrs, &objp->label)) return FALSE; if (!xdr_probe_point (xdrs, &objp->where)) return FALSE; if (!xdr_u_int (xdrs, &objp->flags)) return FALSE; if (!xdr_quad_t (xdrs, &objp->big)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->ubig)) return FALSE; if (!xdr_float (xdrs, &objp->ratio)) return FALSE; if (!xdr_double (xdrs, &objp->precise)) return FALSE; if (!xdr_bool (xdrs, &objp->present)) return FALSE; if (!xdr_probe_blob (xdrs, &objp->payload)) return FALSE; return TRUE; } bool_t xdr_probe_value (XDR *xdrs, probe_value *objp) { register int32_t *buf; if (!xdr_probe_kind (xdrs, &objp->kind)) return FALSE; switch (objp->kind) { case PROBE_INT: if (!xdr_int (xdrs, &objp->probe_value_u.ival)) return FALSE; break; case PROBE_TEXT: if (!xdr_probe_name (xdrs, &objp->probe_value_u.tval)) return FALSE; break; case PROBE_BLOB: if (!xdr_probe_blob (xdrs, &objp->probe_value_u.bval)) return FALSE; break; default: break; } return TRUE; } bool_t xdr_probe_chain (XDR *xdrs, probe_chain *objp) { register int32_t *buf; if (!xdr_probe_item (xdrs, &objp->head)) return FALSE; if (!xdr_pointer (xdrs, (char **)&objp->next, sizeof (probe_chain), (xdrproc_t) xdr_probe_chain)) return FALSE; return TRUE; } bool_t xdr_probe_request (XDR *xdrs, probe_request *objp) { register int32_t *buf; if (!xdr_probe_name (xdrs, &objp->who)) return FALSE; if (!xdr_probe_ints (xdrs, &objp->values)) return FALSE; if (!xdr_probe_cookie (xdrs, objp->cookie)) return FALSE; return TRUE; } bool_t xdr_probe_reply (XDR *xdrs, probe_reply *objp) { register int32_t *buf; if (!xdr_int (xdrs, &objp->status)) return FALSE; if (!xdr_probe_value (xdrs, &objp->result)) return FALSE; if (!xdr_probe_tags (xdrs, objp->tags)) return FALSE; return TRUE; } @@@@RPCSVC-NATIVE probe/out.Mh@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _OUT_H_RPCGEN #define _OUT_H_RPCGEN #include #include #ifdef __cplusplus extern "C" { #endif #define PROBE_MAXNAME 64 #define PROBE_COOKIE_LEN 8 typedef char *probe_name; typedef char probe_cookie[PROBE_COOKIE_LEN]; typedef struct { u_int probe_blob_len; char *probe_blob_val; } probe_blob; typedef struct { u_int probe_ints_len; int *probe_ints_val; } probe_ints; typedef probe_name probe_tags[3]; enum probe_kind { PROBE_NONE = 0, PROBE_INT = 1, PROBE_TEXT = 2, PROBE_BLOB = 3, }; typedef enum probe_kind probe_kind; struct probe_point { int x; int y; }; typedef struct probe_point probe_point; struct probe_item { probe_kind kind; probe_name label; probe_point where; u_int flags; quad_t big; u_quad_t ubig; float ratio; double precise; bool_t present; probe_blob payload; }; typedef struct probe_item probe_item; struct probe_value { probe_kind kind; union { int ival; probe_name tval; probe_blob bval; } probe_value_u; }; typedef struct probe_value probe_value; struct probe_chain { probe_item head; struct probe_chain *next; }; typedef struct probe_chain probe_chain; struct probe_request { probe_name who; probe_ints values; probe_cookie cookie; }; typedef struct probe_request probe_request; struct probe_reply { int status; probe_value result; probe_tags tags; }; typedef struct probe_reply probe_reply; #define PROBE_PROG 0x20000199 #define PROBE_VERS 1 #if defined(__STDC__) || defined(__cplusplus) #define PROBE_NULL 0 extern enum clnt_stat probe_null_1(void *, void *, CLIENT *); extern bool_t probe_null_1_svc(void *, void *, struct svc_req *); #define PROBE_ECHO 1 extern enum clnt_stat probe_echo_1(probe_request *, probe_reply *, CLIENT *); extern bool_t probe_echo_1_svc(probe_request *, probe_reply *, struct svc_req *); #define PROBE_ADD 2 extern enum clnt_stat probe_add_1(probe_point *, probe_point *, CLIENT *); extern bool_t probe_add_1_svc(probe_point *, probe_point *, struct svc_req *); #define PROBE_TAGS 3 extern enum clnt_stat probe_tags_1(void *, probe_name *, CLIENT *); extern bool_t probe_tags_1_svc(void *, probe_name *, struct svc_req *); #define PROBE_CHAIN 4 extern enum clnt_stat probe_chain_1(probe_item *, probe_chain *, CLIENT *); extern bool_t probe_chain_1_svc(probe_item *, probe_chain *, struct svc_req *); extern int probe_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define PROBE_NULL 0 extern enum clnt_stat probe_null_1(); extern bool_t probe_null_1_svc(); #define PROBE_ECHO 1 extern enum clnt_stat probe_echo_1(); extern bool_t probe_echo_1_svc(); #define PROBE_ADD 2 extern enum clnt_stat probe_add_1(); extern bool_t probe_add_1_svc(); #define PROBE_TAGS 3 extern enum clnt_stat probe_tags_1(); extern bool_t probe_tags_1_svc(); #define PROBE_CHAIN 4 extern enum clnt_stat probe_chain_1(); extern bool_t probe_chain_1_svc(); extern int probe_prog_1_freeresult (); #endif /* K&R C */ #define PROBE_VERS2 2 #if defined(__STDC__) || defined(__cplusplus) extern enum clnt_stat probe_null_2(void *, void *, CLIENT *); extern bool_t probe_null_2_svc(void *, void *, struct svc_req *); extern enum clnt_stat probe_echo_2(probe_request *, probe_reply *, CLIENT *); extern bool_t probe_echo_2_svc(probe_request *, probe_reply *, struct svc_req *); extern int probe_prog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ extern enum clnt_stat probe_null_2(); extern bool_t probe_null_2_svc(); extern enum clnt_stat probe_echo_2(); extern bool_t probe_echo_2_svc(); extern int probe_prog_2_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_probe_name (XDR *, probe_name*); extern bool_t xdr_probe_cookie (XDR *, probe_cookie); extern bool_t xdr_probe_blob (XDR *, probe_blob*); extern bool_t xdr_probe_ints (XDR *, probe_ints*); extern bool_t xdr_probe_tags (XDR *, probe_tags); extern bool_t xdr_probe_kind (XDR *, probe_kind*); extern bool_t xdr_probe_point (XDR *, probe_point*); extern bool_t xdr_probe_item (XDR *, probe_item*); extern bool_t xdr_probe_value (XDR *, probe_value*); extern bool_t xdr_probe_chain (XDR *, probe_chain*); extern bool_t xdr_probe_request (XDR *, probe_request*); extern bool_t xdr_probe_reply (XDR *, probe_reply*); #else /* K&R C */ extern bool_t xdr_probe_name (); extern bool_t xdr_probe_cookie (); extern bool_t xdr_probe_blob (); extern bool_t xdr_probe_ints (); extern bool_t xdr_probe_tags (); extern bool_t xdr_probe_kind (); extern bool_t xdr_probe_point (); extern bool_t xdr_probe_item (); extern bool_t xdr_probe_value (); extern bool_t xdr_probe_chain (); extern bool_t xdr_probe_request (); extern bool_t xdr_probe_reply (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_OUT_H_RPCGEN */ @@@@RPCSVC-NATIVE probe/out.Th@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _OUT_H_RPCGEN #define _OUT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define PROBE_MAXNAME 64 #define PROBE_COOKIE_LEN 8 typedef char *probe_name; typedef char probe_cookie[PROBE_COOKIE_LEN]; typedef struct { u_int probe_blob_len; char *probe_blob_val; } probe_blob; typedef struct { u_int probe_ints_len; int *probe_ints_val; } probe_ints; typedef probe_name probe_tags[3]; enum probe_kind { PROBE_NONE = 0, PROBE_INT = 1, PROBE_TEXT = 2, PROBE_BLOB = 3, }; typedef enum probe_kind probe_kind; struct probe_point { int x; int y; }; typedef struct probe_point probe_point; struct probe_item { probe_kind kind; probe_name label; probe_point where; u_int flags; quad_t big; u_quad_t ubig; float ratio; double precise; bool_t present; probe_blob payload; }; typedef struct probe_item probe_item; struct probe_value { probe_kind kind; union { int ival; probe_name tval; probe_blob bval; } probe_value_u; }; typedef struct probe_value probe_value; struct probe_chain { probe_item head; struct probe_chain *next; }; typedef struct probe_chain probe_chain; struct probe_request { probe_name who; probe_ints values; probe_cookie cookie; }; typedef struct probe_request probe_request; struct probe_reply { int status; probe_value result; probe_tags tags; }; typedef struct probe_reply probe_reply; #define PROBE_PROG 0x20000199 extern struct rpcgen_table probe_prog_1_table[]; extern probe_prog_1_nproc; #define PROBE_VERS 1 #if defined(__STDC__) || defined(__cplusplus) #define PROBE_NULL 0 extern void * probe_null_1(void *, CLIENT *); extern void * probe_null_1_svc(void *, struct svc_req *); #define PROBE_ECHO 1 extern probe_reply * probe_echo_1(probe_request *, CLIENT *); extern probe_reply * probe_echo_1_svc(probe_request *, struct svc_req *); #define PROBE_ADD 2 extern probe_point * probe_add_1(probe_point *, CLIENT *); extern probe_point * probe_add_1_svc(probe_point *, struct svc_req *); #define PROBE_TAGS 3 extern probe_name * probe_tags_1(void *, CLIENT *); extern probe_name * probe_tags_1_svc(void *, struct svc_req *); #define PROBE_CHAIN 4 extern probe_chain * probe_chain_1(probe_item *, CLIENT *); extern probe_chain * probe_chain_1_svc(probe_item *, struct svc_req *); extern int probe_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define PROBE_NULL 0 extern void * probe_null_1(); extern void * probe_null_1_svc(); #define PROBE_ECHO 1 extern probe_reply * probe_echo_1(); extern probe_reply * probe_echo_1_svc(); #define PROBE_ADD 2 extern probe_point * probe_add_1(); extern probe_point * probe_add_1_svc(); #define PROBE_TAGS 3 extern probe_name * probe_tags_1(); extern probe_name * probe_tags_1_svc(); #define PROBE_CHAIN 4 extern probe_chain * probe_chain_1(); extern probe_chain * probe_chain_1_svc(); extern int probe_prog_1_freeresult (); #endif /* K&R C */ extern struct rpcgen_table probe_prog_2_table[]; extern probe_prog_2_nproc; #define PROBE_VERS2 2 #if defined(__STDC__) || defined(__cplusplus) extern void * probe_null_2(void *, CLIENT *); extern void * probe_null_2_svc(void *, struct svc_req *); extern probe_reply * probe_echo_2(probe_request *, CLIENT *); extern probe_reply * probe_echo_2_svc(probe_request *, struct svc_req *); extern int probe_prog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ extern void * probe_null_2(); extern void * probe_null_2_svc(); extern probe_reply * probe_echo_2(); extern probe_reply * probe_echo_2_svc(); extern int probe_prog_2_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_probe_name (XDR *, probe_name*); extern bool_t xdr_probe_cookie (XDR *, probe_cookie); extern bool_t xdr_probe_blob (XDR *, probe_blob*); extern bool_t xdr_probe_ints (XDR *, probe_ints*); extern bool_t xdr_probe_tags (XDR *, probe_tags); extern bool_t xdr_probe_kind (XDR *, probe_kind*); extern bool_t xdr_probe_point (XDR *, probe_point*); extern bool_t xdr_probe_item (XDR *, probe_item*); extern bool_t xdr_probe_value (XDR *, probe_value*); extern bool_t xdr_probe_chain (XDR *, probe_chain*); extern bool_t xdr_probe_request (XDR *, probe_request*); extern bool_t xdr_probe_reply (XDR *, probe_reply*); #else /* K&R C */ extern bool_t xdr_probe_name (); extern bool_t xdr_probe_cookie (); extern bool_t xdr_probe_blob (); extern bool_t xdr_probe_ints (); extern bool_t xdr_probe_tags (); extern bool_t xdr_probe_kind (); extern bool_t xdr_probe_point (); extern bool_t xdr_probe_item (); extern bool_t xdr_probe_value (); extern bool_t xdr_probe_chain (); extern bool_t xdr_probe_request (); extern bool_t xdr_probe_reply (); #endif /* K&R C */ struct rpcgen_table { char *(*proc)(); xdrproc_t xdr_arg; unsigned len_arg; xdrproc_t xdr_res; unsigned len_res; }; #ifdef __cplusplus } #endif #endif /* !_OUT_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/bootparam_prot.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _BOOTPARAM_PROT_H_RPCGEN #define _BOOTPARAM_PROT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #include #include #include #include #define MAX_MACHINE_NAME 255 #define MAX_PATH_LEN 1024 #define MAX_FILEID 32 #define IP_ADDR_TYPE 1 typedef char *bp_machine_name_t; typedef char *bp_path_t; typedef char *bp_fileid_t; struct ip_addr_t { char net; char host; char lh; char impno; }; typedef struct ip_addr_t ip_addr_t; struct bp_address { int address_type; union { ip_addr_t ip_addr; } bp_address_u; }; typedef struct bp_address bp_address; struct bp_whoami_arg { bp_address client_address; }; typedef struct bp_whoami_arg bp_whoami_arg; struct bp_whoami_res { bp_machine_name_t client_name; bp_machine_name_t domain_name; bp_address router_address; }; typedef struct bp_whoami_res bp_whoami_res; struct bp_getfile_arg { bp_machine_name_t client_name; bp_fileid_t file_id; }; typedef struct bp_getfile_arg bp_getfile_arg; struct bp_getfile_res { bp_machine_name_t server_name; bp_address server_address; bp_path_t server_path; }; typedef struct bp_getfile_res bp_getfile_res; #define BOOTPARAMPROG 100026 #define BOOTPARAMVERS 1 #if defined(__STDC__) || defined(__cplusplus) #define BOOTPARAMPROC_WHOAMI 1 extern bp_whoami_res * bootparamproc_whoami_1(bp_whoami_arg *, CLIENT *); extern bp_whoami_res * bootparamproc_whoami_1_svc(bp_whoami_arg *, struct svc_req *); #define BOOTPARAMPROC_GETFILE 2 extern bp_getfile_res * bootparamproc_getfile_1(bp_getfile_arg *, CLIENT *); extern bp_getfile_res * bootparamproc_getfile_1_svc(bp_getfile_arg *, struct svc_req *); extern int bootparamprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define BOOTPARAMPROC_WHOAMI 1 extern bp_whoami_res * bootparamproc_whoami_1(); extern bp_whoami_res * bootparamproc_whoami_1_svc(); #define BOOTPARAMPROC_GETFILE 2 extern bp_getfile_res * bootparamproc_getfile_1(); extern bp_getfile_res * bootparamproc_getfile_1_svc(); extern int bootparamprog_1_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_bp_machine_name_t (XDR *, bp_machine_name_t*); extern bool_t xdr_bp_path_t (XDR *, bp_path_t*); extern bool_t xdr_bp_fileid_t (XDR *, bp_fileid_t*); extern bool_t xdr_ip_addr_t (XDR *, ip_addr_t*); extern bool_t xdr_bp_address (XDR *, bp_address*); extern bool_t xdr_bp_whoami_arg (XDR *, bp_whoami_arg*); extern bool_t xdr_bp_whoami_res (XDR *, bp_whoami_res*); extern bool_t xdr_bp_getfile_arg (XDR *, bp_getfile_arg*); extern bool_t xdr_bp_getfile_res (XDR *, bp_getfile_res*); #else /* K&R C */ extern bool_t xdr_bp_machine_name_t (); extern bool_t xdr_bp_path_t (); extern bool_t xdr_bp_fileid_t (); extern bool_t xdr_ip_addr_t (); extern bool_t xdr_bp_address (); extern bool_t xdr_bp_whoami_arg (); extern bool_t xdr_bp_whoami_res (); extern bool_t xdr_bp_getfile_arg (); extern bool_t xdr_bp_getfile_res (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_BOOTPARAM_PROT_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/key_prot.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _KEY_PROT_H_RPCGEN #define _KEY_PROT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #if 0 #pragma ident "@(#)key_prot.x 1.7 94/04/29 SMI" #endif /* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */ /* * Compiled from key_prot.x using rpcgen. * DO NOT EDIT THIS FILE! * This is NOT source code! */ #define PROOT 3 #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b" #define HEXKEYBYTES 48 #define KEYSIZE 192 #define KEYBYTES 24 #define KEYCHECKSUMSIZE 16 enum keystatus { KEY_SUCCESS = 0, KEY_NOSECRET = 1, KEY_UNKNOWN = 2, KEY_SYSTEMERR = 3, }; typedef enum keystatus keystatus; typedef char keybuf[HEXKEYBYTES]; typedef char *netnamestr; struct cryptkeyarg { netnamestr remotename; des_block deskey; }; typedef struct cryptkeyarg cryptkeyarg; struct cryptkeyarg2 { netnamestr remotename; netobj remotekey; des_block deskey; }; typedef struct cryptkeyarg2 cryptkeyarg2; struct cryptkeyres { keystatus status; union { des_block deskey; } cryptkeyres_u; }; typedef struct cryptkeyres cryptkeyres; #define MAXGIDS 16 struct unixcred { u_int uid; u_int gid; struct { u_int gids_len; u_int *gids_val; } gids; }; typedef struct unixcred unixcred; struct getcredres { keystatus status; union { unixcred cred; } getcredres_u; }; typedef struct getcredres getcredres; struct key_netstarg { keybuf st_priv_key; keybuf st_pub_key; netnamestr st_netname; }; typedef struct key_netstarg key_netstarg; struct key_netstres { keystatus status; union { key_netstarg knet; } key_netstres_u; }; typedef struct key_netstres key_netstres; #ifndef opaque #define opaque char #endif #define KEY_PROG 100029 #define KEY_VERS 1 #if defined(__STDC__) || defined(__cplusplus) #define KEY_SET 1 extern keystatus * key_set_1(char *, CLIENT *); extern keystatus * key_set_1_svc(char *, struct svc_req *); #define KEY_ENCRYPT 2 extern cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *); extern cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *); #define KEY_DECRYPT 3 extern cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *); extern cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *); #define KEY_GEN 4 extern des_block * key_gen_1(void *, CLIENT *); extern des_block * key_gen_1_svc(void *, struct svc_req *); #define KEY_GETCRED 5 extern getcredres * key_getcred_1(netnamestr *, CLIENT *); extern getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *); extern int key_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define KEY_SET 1 extern keystatus * key_set_1(); extern keystatus * key_set_1_svc(); #define KEY_ENCRYPT 2 extern cryptkeyres * key_encrypt_1(); extern cryptkeyres * key_encrypt_1_svc(); #define KEY_DECRYPT 3 extern cryptkeyres * key_decrypt_1(); extern cryptkeyres * key_decrypt_1_svc(); #define KEY_GEN 4 extern des_block * key_gen_1(); extern des_block * key_gen_1_svc(); #define KEY_GETCRED 5 extern getcredres * key_getcred_1(); extern getcredres * key_getcred_1_svc(); extern int key_prog_1_freeresult (); #endif /* K&R C */ #define KEY_VERS2 2 #if defined(__STDC__) || defined(__cplusplus) extern keystatus * key_set_2(char *, CLIENT *); extern keystatus * key_set_2_svc(char *, struct svc_req *); extern cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *); extern cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *); extern cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *); extern cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *); extern des_block * key_gen_2(void *, CLIENT *); extern des_block * key_gen_2_svc(void *, struct svc_req *); extern getcredres * key_getcred_2(netnamestr *, CLIENT *); extern getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *); #define KEY_ENCRYPT_PK 6 extern cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *); extern cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *); #define KEY_DECRYPT_PK 7 extern cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *); extern cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *); #define KEY_NET_PUT 8 extern keystatus * key_net_put_2(key_netstarg *, CLIENT *); extern keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *); #define KEY_NET_GET 9 extern key_netstres * key_net_get_2(void *, CLIENT *); extern key_netstres * key_net_get_2_svc(void *, struct svc_req *); #define KEY_GET_CONV 10 extern cryptkeyres * key_get_conv_2(char *, CLIENT *); extern cryptkeyres * key_get_conv_2_svc(char *, struct svc_req *); extern int key_prog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ extern keystatus * key_set_2(); extern keystatus * key_set_2_svc(); extern cryptkeyres * key_encrypt_2(); extern cryptkeyres * key_encrypt_2_svc(); extern cryptkeyres * key_decrypt_2(); extern cryptkeyres * key_decrypt_2_svc(); extern des_block * key_gen_2(); extern des_block * key_gen_2_svc(); extern getcredres * key_getcred_2(); extern getcredres * key_getcred_2_svc(); #define KEY_ENCRYPT_PK 6 extern cryptkeyres * key_encrypt_pk_2(); extern cryptkeyres * key_encrypt_pk_2_svc(); #define KEY_DECRYPT_PK 7 extern cryptkeyres * key_decrypt_pk_2(); extern cryptkeyres * key_decrypt_pk_2_svc(); #define KEY_NET_PUT 8 extern keystatus * key_net_put_2(); extern keystatus * key_net_put_2_svc(); #define KEY_NET_GET 9 extern key_netstres * key_net_get_2(); extern key_netstres * key_net_get_2_svc(); #define KEY_GET_CONV 10 extern cryptkeyres * key_get_conv_2(); extern cryptkeyres * key_get_conv_2_svc(); extern int key_prog_2_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_keystatus (XDR *, keystatus*); extern bool_t xdr_keybuf (XDR *, keybuf); extern bool_t xdr_netnamestr (XDR *, netnamestr*); extern bool_t xdr_cryptkeyarg (XDR *, cryptkeyarg*); extern bool_t xdr_cryptkeyarg2 (XDR *, cryptkeyarg2*); extern bool_t xdr_cryptkeyres (XDR *, cryptkeyres*); extern bool_t xdr_unixcred (XDR *, unixcred*); extern bool_t xdr_getcredres (XDR *, getcredres*); extern bool_t xdr_key_netstarg (XDR *, key_netstarg*); extern bool_t xdr_key_netstres (XDR *, key_netstres*); #else /* K&R C */ extern bool_t xdr_keystatus (); extern bool_t xdr_keybuf (); extern bool_t xdr_netnamestr (); extern bool_t xdr_cryptkeyarg (); extern bool_t xdr_cryptkeyarg2 (); extern bool_t xdr_cryptkeyres (); extern bool_t xdr_unixcred (); extern bool_t xdr_getcredres (); extern bool_t xdr_key_netstarg (); extern bool_t xdr_key_netstres (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_KEY_PROT_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/klm_prot.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _KLM_PROT_H_RPCGEN #define _KLM_PROT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define LM_MAXSTRLEN 1024 enum klm_stats { klm_granted = 0, klm_denied = 1, klm_denied_nolocks = 2, klm_working = 3, }; typedef enum klm_stats klm_stats; struct klm_lock { char *server_name; netobj fh; int pid; u_int l_offset; u_int l_len; }; typedef struct klm_lock klm_lock; struct klm_holder { bool_t exclusive; int svid; u_int l_offset; u_int l_len; }; typedef struct klm_holder klm_holder; struct klm_stat { klm_stats stat; }; typedef struct klm_stat klm_stat; struct klm_testrply { klm_stats stat; union { struct klm_holder holder; } klm_testrply_u; }; typedef struct klm_testrply klm_testrply; struct klm_lockargs { bool_t block; bool_t exclusive; struct klm_lock alock; }; typedef struct klm_lockargs klm_lockargs; struct klm_testargs { bool_t exclusive; struct klm_lock alock; }; typedef struct klm_testargs klm_testargs; struct klm_unlockargs { struct klm_lock alock; }; typedef struct klm_unlockargs klm_unlockargs; #define KLM_PROG 100020 #define KLM_VERS 1 #if defined(__STDC__) || defined(__cplusplus) #define KLM_TEST 1 extern klm_testrply * klm_test_1(struct klm_testargs *, CLIENT *); extern klm_testrply * klm_test_1_svc(struct klm_testargs *, struct svc_req *); #define KLM_LOCK 2 extern klm_stat * klm_lock_1(struct klm_lockargs *, CLIENT *); extern klm_stat * klm_lock_1_svc(struct klm_lockargs *, struct svc_req *); #define KLM_CANCEL 3 extern klm_stat * klm_cancel_1(struct klm_lockargs *, CLIENT *); extern klm_stat * klm_cancel_1_svc(struct klm_lockargs *, struct svc_req *); #define KLM_UNLOCK 4 extern klm_stat * klm_unlock_1(struct klm_unlockargs *, CLIENT *); extern klm_stat * klm_unlock_1_svc(struct klm_unlockargs *, struct svc_req *); extern int klm_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define KLM_TEST 1 extern klm_testrply * klm_test_1(); extern klm_testrply * klm_test_1_svc(); #define KLM_LOCK 2 extern klm_stat * klm_lock_1(); extern klm_stat * klm_lock_1_svc(); #define KLM_CANCEL 3 extern klm_stat * klm_cancel_1(); extern klm_stat * klm_cancel_1_svc(); #define KLM_UNLOCK 4 extern klm_stat * klm_unlock_1(); extern klm_stat * klm_unlock_1_svc(); extern int klm_prog_1_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_klm_stats (XDR *, klm_stats*); extern bool_t xdr_klm_lock (XDR *, klm_lock*); extern bool_t xdr_klm_holder (XDR *, klm_holder*); extern bool_t xdr_klm_stat (XDR *, klm_stat*); extern bool_t xdr_klm_testrply (XDR *, klm_testrply*); extern bool_t xdr_klm_lockargs (XDR *, klm_lockargs*); extern bool_t xdr_klm_testargs (XDR *, klm_testargs*); extern bool_t xdr_klm_unlockargs (XDR *, klm_unlockargs*); #else /* K&R C */ extern bool_t xdr_klm_stats (); extern bool_t xdr_klm_lock (); extern bool_t xdr_klm_holder (); extern bool_t xdr_klm_stat (); extern bool_t xdr_klm_testrply (); extern bool_t xdr_klm_lockargs (); extern bool_t xdr_klm_testargs (); extern bool_t xdr_klm_unlockargs (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_KLM_PROT_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/mount.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _MOUNT_H_RPCGEN #define _MOUNT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define MNTPATHLEN 1024 #define MNTNAMLEN 255 #define FHSIZE 32 typedef char fhandle[FHSIZE]; struct fhstatus { u_int fhs_status; union { fhandle fhs_fhandle; } fhstatus_u; }; typedef struct fhstatus fhstatus; typedef char *dirpath; typedef char *name; typedef struct mountbody *mountlist; struct mountbody { name ml_hostname; dirpath ml_directory; mountlist ml_next; }; typedef struct mountbody mountbody; typedef struct groupnode *groups; struct groupnode { name gr_name; groups gr_next; }; typedef struct groupnode groupnode; typedef struct exportnode *exports; struct exportnode { dirpath ex_dir; groups ex_groups; exports ex_next; }; typedef struct exportnode exportnode; #define MOUNTPROG 100005 #define MOUNTVERS 1 #if defined(__STDC__) || defined(__cplusplus) #define MOUNTPROC_NULL 0 extern void * mountproc_null_1(void *, CLIENT *); extern void * mountproc_null_1_svc(void *, struct svc_req *); #define MOUNTPROC_MNT 1 extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *); extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *); #define MOUNTPROC_DUMP 2 extern mountlist * mountproc_dump_1(void *, CLIENT *); extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *); #define MOUNTPROC_UMNT 3 extern void * mountproc_umnt_1(dirpath *, CLIENT *); extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *); #define MOUNTPROC_UMNTALL 4 extern void * mountproc_umntall_1(void *, CLIENT *); extern void * mountproc_umntall_1_svc(void *, struct svc_req *); #define MOUNTPROC_EXPORT 5 extern exports * mountproc_export_1(void *, CLIENT *); extern exports * mountproc_export_1_svc(void *, struct svc_req *); #define MOUNTPROC_EXPORTALL 6 extern exports * mountproc_exportall_1(void *, CLIENT *); extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define MOUNTPROC_NULL 0 extern void * mountproc_null_1(); extern void * mountproc_null_1_svc(); #define MOUNTPROC_MNT 1 extern fhstatus * mountproc_mnt_1(); extern fhstatus * mountproc_mnt_1_svc(); #define MOUNTPROC_DUMP 2 extern mountlist * mountproc_dump_1(); extern mountlist * mountproc_dump_1_svc(); #define MOUNTPROC_UMNT 3 extern void * mountproc_umnt_1(); extern void * mountproc_umnt_1_svc(); #define MOUNTPROC_UMNTALL 4 extern void * mountproc_umntall_1(); extern void * mountproc_umntall_1_svc(); #define MOUNTPROC_EXPORT 5 extern exports * mountproc_export_1(); extern exports * mountproc_export_1_svc(); #define MOUNTPROC_EXPORTALL 6 extern exports * mountproc_exportall_1(); extern exports * mountproc_exportall_1_svc(); extern int mountprog_1_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_fhandle (XDR *, fhandle); extern bool_t xdr_fhstatus (XDR *, fhstatus*); extern bool_t xdr_dirpath (XDR *, dirpath*); extern bool_t xdr_name (XDR *, name*); extern bool_t xdr_mountlist (XDR *, mountlist*); extern bool_t xdr_mountbody (XDR *, mountbody*); extern bool_t xdr_groups (XDR *, groups*); extern bool_t xdr_groupnode (XDR *, groupnode*); extern bool_t xdr_exports (XDR *, exports*); extern bool_t xdr_exportnode (XDR *, exportnode*); #else /* K&R C */ extern bool_t xdr_fhandle (); extern bool_t xdr_fhstatus (); extern bool_t xdr_dirpath (); extern bool_t xdr_name (); extern bool_t xdr_mountlist (); extern bool_t xdr_mountbody (); extern bool_t xdr_groups (); extern bool_t xdr_groupnode (); extern bool_t xdr_exports (); extern bool_t xdr_exportnode (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_MOUNT_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/nfs_prot.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _NFS_PROT_H_RPCGEN #define _NFS_PROT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define NFS_PORT 2049 #define NFS_MAXDATA 8192 #define NFS_MAXPATHLEN 1024 #define NFS_MAXNAMLEN 255 #define NFS_FHSIZE 32 #define NFS_COOKIESIZE 4 #define NFS_FIFO_DEV -1 #define NFSMODE_FMT 0170000 #define NFSMODE_DIR 0040000 #define NFSMODE_CHR 0020000 #define NFSMODE_BLK 0060000 #define NFSMODE_REG 0100000 #define NFSMODE_LNK 0120000 #define NFSMODE_SOCK 0140000 #define NFSMODE_FIFO 0010000 enum nfsstat { NFS_OK = 0, NFSERR_PERM = 1, NFSERR_NOENT = 2, NFSERR_IO = 5, NFSERR_NXIO = 6, NFSERR_ACCES = 13, NFSERR_EXIST = 17, NFSERR_NODEV = 19, NFSERR_NOTDIR = 20, NFSERR_ISDIR = 21, NFSERR_FBIG = 27, NFSERR_NOSPC = 28, NFSERR_ROFS = 30, NFSERR_NAMETOOLONG = 63, NFSERR_NOTEMPTY = 66, NFSERR_DQUOT = 69, NFSERR_STALE = 70, NFSERR_WFLUSH = 99, }; typedef enum nfsstat nfsstat; enum ftype { NFNON = 0, NFREG = 1, NFDIR = 2, NFBLK = 3, NFCHR = 4, NFLNK = 5, NFSOCK = 6, NFBAD = 7, NFFIFO = 8, }; typedef enum ftype ftype; struct nfs_fh { char data[NFS_FHSIZE]; }; typedef struct nfs_fh nfs_fh; struct nfstime { u_int seconds; u_int useconds; }; typedef struct nfstime nfstime; struct fattr { ftype type; u_int mode; u_int nlink; u_int uid; u_int gid; u_int size; u_int blocksize; u_int rdev; u_int blocks; u_int fsid; u_int fileid; nfstime atime; nfstime mtime; nfstime ctime; }; typedef struct fattr fattr; struct sattr { u_int mode; u_int uid; u_int gid; u_int size; nfstime atime; nfstime mtime; }; typedef struct sattr sattr; typedef char *filename; typedef char *nfspath; struct attrstat { nfsstat status; union { fattr attributes; } attrstat_u; }; typedef struct attrstat attrstat; struct sattrargs { nfs_fh file; sattr attributes; }; typedef struct sattrargs sattrargs; struct diropargs { nfs_fh dir; filename name; }; typedef struct diropargs diropargs; struct diropokres { nfs_fh file; fattr attributes; }; typedef struct diropokres diropokres; struct diropres { nfsstat status; union { diropokres diropres; } diropres_u; }; typedef struct diropres diropres; struct readlinkres { nfsstat status; union { nfspath data; } readlinkres_u; }; typedef struct readlinkres readlinkres; struct readargs { nfs_fh file; u_int offset; u_int count; u_int totalcount; }; typedef struct readargs readargs; struct readokres { fattr attributes; struct { u_int data_len; char *data_val; } data; }; typedef struct readokres readokres; struct readres { nfsstat status; union { readokres reply; } readres_u; }; typedef struct readres readres; struct writeargs { nfs_fh file; u_int beginoffset; u_int offset; u_int totalcount; struct { u_int data_len; char *data_val; } data; }; typedef struct writeargs writeargs; struct createargs { diropargs where; sattr attributes; }; typedef struct createargs createargs; struct renameargs { diropargs from; diropargs to; }; typedef struct renameargs renameargs; struct linkargs { nfs_fh from; diropargs to; }; typedef struct linkargs linkargs; struct symlinkargs { diropargs from; nfspath to; sattr attributes; }; typedef struct symlinkargs symlinkargs; typedef char nfscookie[NFS_COOKIESIZE]; struct readdirargs { nfs_fh dir; nfscookie cookie; u_int count; }; typedef struct readdirargs readdirargs; struct entry { u_int fileid; filename name; nfscookie cookie; struct entry *nextentry; }; typedef struct entry entry; struct dirlist { entry *entries; bool_t eof; }; typedef struct dirlist dirlist; struct readdirres { nfsstat status; union { dirlist reply; } readdirres_u; }; typedef struct readdirres readdirres; struct statfsokres { u_int tsize; u_int bsize; u_int blocks; u_int bfree; u_int bavail; }; typedef struct statfsokres statfsokres; struct statfsres { nfsstat status; union { statfsokres reply; } statfsres_u; }; typedef struct statfsres statfsres; #define NFS_PROGRAM 100003 #define NFS_VERSION 2 #if defined(__STDC__) || defined(__cplusplus) #define NFSPROC_NULL 0 extern void * nfsproc_null_2(void *, CLIENT *); extern void * nfsproc_null_2_svc(void *, struct svc_req *); #define NFSPROC_GETATTR 1 extern attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *); extern attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *); #define NFSPROC_SETATTR 2 extern attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *); extern attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *); #define NFSPROC_ROOT 3 extern void * nfsproc_root_2(void *, CLIENT *); extern void * nfsproc_root_2_svc(void *, struct svc_req *); #define NFSPROC_LOOKUP 4 extern diropres * nfsproc_lookup_2(diropargs *, CLIENT *); extern diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *); #define NFSPROC_READLINK 5 extern readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *); extern readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *); #define NFSPROC_READ 6 extern readres * nfsproc_read_2(readargs *, CLIENT *); extern readres * nfsproc_read_2_svc(readargs *, struct svc_req *); #define NFSPROC_WRITECACHE 7 extern void * nfsproc_writecache_2(void *, CLIENT *); extern void * nfsproc_writecache_2_svc(void *, struct svc_req *); #define NFSPROC_WRITE 8 extern attrstat * nfsproc_write_2(writeargs *, CLIENT *); extern attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *); #define NFSPROC_CREATE 9 extern diropres * nfsproc_create_2(createargs *, CLIENT *); extern diropres * nfsproc_create_2_svc(createargs *, struct svc_req *); #define NFSPROC_REMOVE 10 extern nfsstat * nfsproc_remove_2(diropargs *, CLIENT *); extern nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *); #define NFSPROC_RENAME 11 extern nfsstat * nfsproc_rename_2(renameargs *, CLIENT *); extern nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *); #define NFSPROC_LINK 12 extern nfsstat * nfsproc_link_2(linkargs *, CLIENT *); extern nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *); #define NFSPROC_SYMLINK 13 extern nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *); extern nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *); #define NFSPROC_MKDIR 14 extern diropres * nfsproc_mkdir_2(createargs *, CLIENT *); extern diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *); #define NFSPROC_RMDIR 15 extern nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *); extern nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *); #define NFSPROC_READDIR 16 extern readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *); extern readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *); #define NFSPROC_STATFS 17 extern statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *); extern statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *); extern int nfs_program_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define NFSPROC_NULL 0 extern void * nfsproc_null_2(); extern void * nfsproc_null_2_svc(); #define NFSPROC_GETATTR 1 extern attrstat * nfsproc_getattr_2(); extern attrstat * nfsproc_getattr_2_svc(); #define NFSPROC_SETATTR 2 extern attrstat * nfsproc_setattr_2(); extern attrstat * nfsproc_setattr_2_svc(); #define NFSPROC_ROOT 3 extern void * nfsproc_root_2(); extern void * nfsproc_root_2_svc(); #define NFSPROC_LOOKUP 4 extern diropres * nfsproc_lookup_2(); extern diropres * nfsproc_lookup_2_svc(); #define NFSPROC_READLINK 5 extern readlinkres * nfsproc_readlink_2(); extern readlinkres * nfsproc_readlink_2_svc(); #define NFSPROC_READ 6 extern readres * nfsproc_read_2(); extern readres * nfsproc_read_2_svc(); #define NFSPROC_WRITECACHE 7 extern void * nfsproc_writecache_2(); extern void * nfsproc_writecache_2_svc(); #define NFSPROC_WRITE 8 extern attrstat * nfsproc_write_2(); extern attrstat * nfsproc_write_2_svc(); #define NFSPROC_CREATE 9 extern diropres * nfsproc_create_2(); extern diropres * nfsproc_create_2_svc(); #define NFSPROC_REMOVE 10 extern nfsstat * nfsproc_remove_2(); extern nfsstat * nfsproc_remove_2_svc(); #define NFSPROC_RENAME 11 extern nfsstat * nfsproc_rename_2(); extern nfsstat * nfsproc_rename_2_svc(); #define NFSPROC_LINK 12 extern nfsstat * nfsproc_link_2(); extern nfsstat * nfsproc_link_2_svc(); #define NFSPROC_SYMLINK 13 extern nfsstat * nfsproc_symlink_2(); extern nfsstat * nfsproc_symlink_2_svc(); #define NFSPROC_MKDIR 14 extern diropres * nfsproc_mkdir_2(); extern diropres * nfsproc_mkdir_2_svc(); #define NFSPROC_RMDIR 15 extern nfsstat * nfsproc_rmdir_2(); extern nfsstat * nfsproc_rmdir_2_svc(); #define NFSPROC_READDIR 16 extern readdirres * nfsproc_readdir_2(); extern readdirres * nfsproc_readdir_2_svc(); #define NFSPROC_STATFS 17 extern statfsres * nfsproc_statfs_2(); extern statfsres * nfsproc_statfs_2_svc(); extern int nfs_program_2_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_nfsstat (XDR *, nfsstat*); extern bool_t xdr_ftype (XDR *, ftype*); extern bool_t xdr_nfs_fh (XDR *, nfs_fh*); extern bool_t xdr_nfstime (XDR *, nfstime*); extern bool_t xdr_fattr (XDR *, fattr*); extern bool_t xdr_sattr (XDR *, sattr*); extern bool_t xdr_filename (XDR *, filename*); extern bool_t xdr_nfspath (XDR *, nfspath*); extern bool_t xdr_attrstat (XDR *, attrstat*); extern bool_t xdr_sattrargs (XDR *, sattrargs*); extern bool_t xdr_diropargs (XDR *, diropargs*); extern bool_t xdr_diropokres (XDR *, diropokres*); extern bool_t xdr_diropres (XDR *, diropres*); extern bool_t xdr_readlinkres (XDR *, readlinkres*); extern bool_t xdr_readargs (XDR *, readargs*); extern bool_t xdr_readokres (XDR *, readokres*); extern bool_t xdr_readres (XDR *, readres*); extern bool_t xdr_writeargs (XDR *, writeargs*); extern bool_t xdr_createargs (XDR *, createargs*); extern bool_t xdr_renameargs (XDR *, renameargs*); extern bool_t xdr_linkargs (XDR *, linkargs*); extern bool_t xdr_symlinkargs (XDR *, symlinkargs*); extern bool_t xdr_nfscookie (XDR *, nfscookie); extern bool_t xdr_readdirargs (XDR *, readdirargs*); extern bool_t xdr_entry (XDR *, entry*); extern bool_t xdr_dirlist (XDR *, dirlist*); extern bool_t xdr_readdirres (XDR *, readdirres*); extern bool_t xdr_statfsokres (XDR *, statfsokres*); extern bool_t xdr_statfsres (XDR *, statfsres*); #else /* K&R C */ extern bool_t xdr_nfsstat (); extern bool_t xdr_ftype (); extern bool_t xdr_nfs_fh (); extern bool_t xdr_nfstime (); extern bool_t xdr_fattr (); extern bool_t xdr_sattr (); extern bool_t xdr_filename (); extern bool_t xdr_nfspath (); extern bool_t xdr_attrstat (); extern bool_t xdr_sattrargs (); extern bool_t xdr_diropargs (); extern bool_t xdr_diropokres (); extern bool_t xdr_diropres (); extern bool_t xdr_readlinkres (); extern bool_t xdr_readargs (); extern bool_t xdr_readokres (); extern bool_t xdr_readres (); extern bool_t xdr_writeargs (); extern bool_t xdr_createargs (); extern bool_t xdr_renameargs (); extern bool_t xdr_linkargs (); extern bool_t xdr_symlinkargs (); extern bool_t xdr_nfscookie (); extern bool_t xdr_readdirargs (); extern bool_t xdr_entry (); extern bool_t xdr_dirlist (); extern bool_t xdr_readdirres (); extern bool_t xdr_statfsokres (); extern bool_t xdr_statfsres (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_NFS_PROT_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/nlm_prot.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _NLM_PROT_H_RPCGEN #define _NLM_PROT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define LM_MAXSTRLEN 1024 #define MAXNAMELEN LM_MAXSTRLEN+1 enum nlm_stats { nlm_granted = 0, nlm_denied = 1, nlm_denied_nolocks = 2, nlm_blocked = 3, nlm_denied_grace_period = 4, }; typedef enum nlm_stats nlm_stats; struct nlm_holder { bool_t exclusive; int svid; netobj oh; u_int l_offset; u_int l_len; }; typedef struct nlm_holder nlm_holder; struct nlm_testrply { nlm_stats stat; union { struct nlm_holder holder; } nlm_testrply_u; }; typedef struct nlm_testrply nlm_testrply; struct nlm_stat { nlm_stats stat; }; typedef struct nlm_stat nlm_stat; struct nlm_res { netobj cookie; nlm_stat stat; }; typedef struct nlm_res nlm_res; struct nlm_testres { netobj cookie; nlm_testrply stat; }; typedef struct nlm_testres nlm_testres; struct nlm_lock { char *caller_name; netobj fh; netobj oh; int svid; u_int l_offset; u_int l_len; }; typedef struct nlm_lock nlm_lock; struct nlm_lockargs { netobj cookie; bool_t block; bool_t exclusive; struct nlm_lock alock; bool_t reclaim; int state; }; typedef struct nlm_lockargs nlm_lockargs; struct nlm_cancargs { netobj cookie; bool_t block; bool_t exclusive; struct nlm_lock alock; }; typedef struct nlm_cancargs nlm_cancargs; struct nlm_testargs { netobj cookie; bool_t exclusive; struct nlm_lock alock; }; typedef struct nlm_testargs nlm_testargs; struct nlm_unlockargs { netobj cookie; struct nlm_lock alock; }; typedef struct nlm_unlockargs nlm_unlockargs; /* * The following enums are actually bit encoded for efficient * boolean algebra.... DON'T change them..... */ enum fsh_mode { fsm_DN = 0, fsm_DR = 1, fsm_DW = 2, fsm_DRW = 3, }; typedef enum fsh_mode fsh_mode; enum fsh_access { fsa_NONE = 0, fsa_R = 1, fsa_W = 2, fsa_RW = 3, }; typedef enum fsh_access fsh_access; struct nlm_share { char *caller_name; netobj fh; netobj oh; fsh_mode mode; fsh_access access; }; typedef struct nlm_share nlm_share; struct nlm_shareargs { netobj cookie; nlm_share share; bool_t reclaim; }; typedef struct nlm_shareargs nlm_shareargs; struct nlm_shareres { netobj cookie; nlm_stats stat; int sequence; }; typedef struct nlm_shareres nlm_shareres; struct nlm_notify { char *name; long state; }; typedef struct nlm_notify nlm_notify; #define NLM_PROG 100021 #define NLM_VERS 1 #if defined(__STDC__) || defined(__cplusplus) #define NLM_TEST 1 extern nlm_testres * nlm_test_1(struct nlm_testargs *, CLIENT *); extern nlm_testres * nlm_test_1_svc(struct nlm_testargs *, struct svc_req *); #define NLM_LOCK 2 extern nlm_res * nlm_lock_1(struct nlm_lockargs *, CLIENT *); extern nlm_res * nlm_lock_1_svc(struct nlm_lockargs *, struct svc_req *); #define NLM_CANCEL 3 extern nlm_res * nlm_cancel_1(struct nlm_cancargs *, CLIENT *); extern nlm_res * nlm_cancel_1_svc(struct nlm_cancargs *, struct svc_req *); #define NLM_UNLOCK 4 extern nlm_res * nlm_unlock_1(struct nlm_unlockargs *, CLIENT *); extern nlm_res * nlm_unlock_1_svc(struct nlm_unlockargs *, struct svc_req *); #define NLM_GRANTED 5 extern nlm_res * nlm_granted_1(struct nlm_testargs *, CLIENT *); extern nlm_res * nlm_granted_1_svc(struct nlm_testargs *, struct svc_req *); #define NLM_TEST_MSG 6 extern void * nlm_test_msg_1(struct nlm_testargs *, CLIENT *); extern void * nlm_test_msg_1_svc(struct nlm_testargs *, struct svc_req *); #define NLM_LOCK_MSG 7 extern void * nlm_lock_msg_1(struct nlm_lockargs *, CLIENT *); extern void * nlm_lock_msg_1_svc(struct nlm_lockargs *, struct svc_req *); #define NLM_CANCEL_MSG 8 extern void * nlm_cancel_msg_1(struct nlm_cancargs *, CLIENT *); extern void * nlm_cancel_msg_1_svc(struct nlm_cancargs *, struct svc_req *); #define NLM_UNLOCK_MSG 9 extern void * nlm_unlock_msg_1(struct nlm_unlockargs *, CLIENT *); extern void * nlm_unlock_msg_1_svc(struct nlm_unlockargs *, struct svc_req *); #define NLM_GRANTED_MSG 10 extern void * nlm_granted_msg_1(struct nlm_testargs *, CLIENT *); extern void * nlm_granted_msg_1_svc(struct nlm_testargs *, struct svc_req *); #define NLM_TEST_RES 11 extern void * nlm_test_res_1(nlm_testres *, CLIENT *); extern void * nlm_test_res_1_svc(nlm_testres *, struct svc_req *); #define NLM_LOCK_RES 12 extern void * nlm_lock_res_1(nlm_res *, CLIENT *); extern void * nlm_lock_res_1_svc(nlm_res *, struct svc_req *); #define NLM_CANCEL_RES 13 extern void * nlm_cancel_res_1(nlm_res *, CLIENT *); extern void * nlm_cancel_res_1_svc(nlm_res *, struct svc_req *); #define NLM_UNLOCK_RES 14 extern void * nlm_unlock_res_1(nlm_res *, CLIENT *); extern void * nlm_unlock_res_1_svc(nlm_res *, struct svc_req *); #define NLM_GRANTED_RES 15 extern void * nlm_granted_res_1(nlm_res *, CLIENT *); extern void * nlm_granted_res_1_svc(nlm_res *, struct svc_req *); extern int nlm_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define NLM_TEST 1 extern nlm_testres * nlm_test_1(); extern nlm_testres * nlm_test_1_svc(); #define NLM_LOCK 2 extern nlm_res * nlm_lock_1(); extern nlm_res * nlm_lock_1_svc(); #define NLM_CANCEL 3 extern nlm_res * nlm_cancel_1(); extern nlm_res * nlm_cancel_1_svc(); #define NLM_UNLOCK 4 extern nlm_res * nlm_unlock_1(); extern nlm_res * nlm_unlock_1_svc(); #define NLM_GRANTED 5 extern nlm_res * nlm_granted_1(); extern nlm_res * nlm_granted_1_svc(); #define NLM_TEST_MSG 6 extern void * nlm_test_msg_1(); extern void * nlm_test_msg_1_svc(); #define NLM_LOCK_MSG 7 extern void * nlm_lock_msg_1(); extern void * nlm_lock_msg_1_svc(); #define NLM_CANCEL_MSG 8 extern void * nlm_cancel_msg_1(); extern void * nlm_cancel_msg_1_svc(); #define NLM_UNLOCK_MSG 9 extern void * nlm_unlock_msg_1(); extern void * nlm_unlock_msg_1_svc(); #define NLM_GRANTED_MSG 10 extern void * nlm_granted_msg_1(); extern void * nlm_granted_msg_1_svc(); #define NLM_TEST_RES 11 extern void * nlm_test_res_1(); extern void * nlm_test_res_1_svc(); #define NLM_LOCK_RES 12 extern void * nlm_lock_res_1(); extern void * nlm_lock_res_1_svc(); #define NLM_CANCEL_RES 13 extern void * nlm_cancel_res_1(); extern void * nlm_cancel_res_1_svc(); #define NLM_UNLOCK_RES 14 extern void * nlm_unlock_res_1(); extern void * nlm_unlock_res_1_svc(); #define NLM_GRANTED_RES 15 extern void * nlm_granted_res_1(); extern void * nlm_granted_res_1_svc(); extern int nlm_prog_1_freeresult (); #endif /* K&R C */ #define NLM_VERSX 3 #if defined(__STDC__) || defined(__cplusplus) #define NLM_SHARE 20 extern nlm_shareres * nlm_share_3(nlm_shareargs *, CLIENT *); extern nlm_shareres * nlm_share_3_svc(nlm_shareargs *, struct svc_req *); #define NLM_UNSHARE 21 extern nlm_shareres * nlm_unshare_3(nlm_shareargs *, CLIENT *); extern nlm_shareres * nlm_unshare_3_svc(nlm_shareargs *, struct svc_req *); #define NLM_NM_LOCK 22 extern nlm_res * nlm_nm_lock_3(nlm_lockargs *, CLIENT *); extern nlm_res * nlm_nm_lock_3_svc(nlm_lockargs *, struct svc_req *); #define NLM_FREE_ALL 23 extern void * nlm_free_all_3(nlm_notify *, CLIENT *); extern void * nlm_free_all_3_svc(nlm_notify *, struct svc_req *); extern int nlm_prog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define NLM_SHARE 20 extern nlm_shareres * nlm_share_3(); extern nlm_shareres * nlm_share_3_svc(); #define NLM_UNSHARE 21 extern nlm_shareres * nlm_unshare_3(); extern nlm_shareres * nlm_unshare_3_svc(); #define NLM_NM_LOCK 22 extern nlm_res * nlm_nm_lock_3(); extern nlm_res * nlm_nm_lock_3_svc(); #define NLM_FREE_ALL 23 extern void * nlm_free_all_3(); extern void * nlm_free_all_3_svc(); extern int nlm_prog_3_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_nlm_stats (XDR *, nlm_stats*); extern bool_t xdr_nlm_holder (XDR *, nlm_holder*); extern bool_t xdr_nlm_testrply (XDR *, nlm_testrply*); extern bool_t xdr_nlm_stat (XDR *, nlm_stat*); extern bool_t xdr_nlm_res (XDR *, nlm_res*); extern bool_t xdr_nlm_testres (XDR *, nlm_testres*); extern bool_t xdr_nlm_lock (XDR *, nlm_lock*); extern bool_t xdr_nlm_lockargs (XDR *, nlm_lockargs*); extern bool_t xdr_nlm_cancargs (XDR *, nlm_cancargs*); extern bool_t xdr_nlm_testargs (XDR *, nlm_testargs*); extern bool_t xdr_nlm_unlockargs (XDR *, nlm_unlockargs*); extern bool_t xdr_fsh_mode (XDR *, fsh_mode*); extern bool_t xdr_fsh_access (XDR *, fsh_access*); extern bool_t xdr_nlm_share (XDR *, nlm_share*); extern bool_t xdr_nlm_shareargs (XDR *, nlm_shareargs*); extern bool_t xdr_nlm_shareres (XDR *, nlm_shareres*); extern bool_t xdr_nlm_notify (XDR *, nlm_notify*); #else /* K&R C */ extern bool_t xdr_nlm_stats (); extern bool_t xdr_nlm_holder (); extern bool_t xdr_nlm_testrply (); extern bool_t xdr_nlm_stat (); extern bool_t xdr_nlm_res (); extern bool_t xdr_nlm_testres (); extern bool_t xdr_nlm_lock (); extern bool_t xdr_nlm_lockargs (); extern bool_t xdr_nlm_cancargs (); extern bool_t xdr_nlm_testargs (); extern bool_t xdr_nlm_unlockargs (); extern bool_t xdr_fsh_mode (); extern bool_t xdr_fsh_access (); extern bool_t xdr_nlm_share (); extern bool_t xdr_nlm_shareargs (); extern bool_t xdr_nlm_shareres (); extern bool_t xdr_nlm_notify (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_NLM_PROT_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/rex.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _REX_H_RPCGEN #define _REX_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define STRINGSIZE 1024 typedef char *rexstring; #define SIGINT 2 #define REX_INTERACTIVE 1 struct rex_start { struct { u_int rst_cmd_len; rexstring *rst_cmd_val; } rst_cmd; rexstring rst_host; rexstring rst_fsname; rexstring rst_dirwithin; struct { u_int rst_env_len; rexstring *rst_env_val; } rst_env; u_int rst_port0; u_int rst_port1; u_int rst_port2; u_int rst_flags; }; typedef struct rex_start rex_start; struct rex_result { int rlt_stat; rexstring rlt_message; }; typedef struct rex_result rex_result; struct sgttyb { u_int four; char chars[4]; u_int flags; }; typedef struct sgttyb sgttyb; #define B0 0 #define B50 1 #define B75 2 #define B110 3 #define B134 4 #define B150 5 #define B200 6 #define B300 7 #define B600 8 #define B1200 9 #define B1800 10 #define B2400 11 #define B4800 12 #define B9600 13 #define B19200 14 #define B38400 15 #define TANDEM 0x00000001 #define CBREAK 0x00000002 #define LCASE 0x00000004 #define ECHO 0x00000008 #define CRMOD 0x00000010 #define RAW 0x00000020 #define ODDP 0x00000040 #define EVENP 0x00000080 #define ANYP 0x000000c0 #define NLDELAY 0x00000300 #define NL0 0x00000000 #define NL1 0x00000100 #define NL2 0x00000200 #define NL3 0x00000300 #define TBDELAY 0x00000c00 #define TAB0 0x00000000 #define TAB1 0x00000400 #define TAB2 0x00000800 #define XTABS 0x00000c00 #define CRDELAY 0x00003000 #define CR0 0x00000000 #define CR1 0x00001000 #define CR2 0x00002000 #define CR3 0x00003000 #define VTDELAY 0x00004000 #define FF0 0x00000000 #define FF1 0x00004000 #define BSDELAY 0x00008000 #define BS0 0x00000000 #define BS1 0x00008000 #define CRTBS 0x00010000 #define PRTERA 0x00020000 #define CRTERA 0x00040000 #define TILDE 0x00080000 #define MDMBUF 0x00100000 #define LITOUT 0x00200000 #define TOSTOP 0x00400000 #define FLUSHO 0x00800000 #define NOHANG 0x01000000 #define L001000 0x02000000 #define CRTKIL 0x04000000 #define PASS8 0x08000000 #define CTLECH 0x10000000 #define PENDIN 0x20000000 #define DECCTQ 0x40000000 #define NOFLSH 0x80000000 struct tchars { u_int six; char chars[6]; }; typedef struct tchars tchars; struct ltchars { u_int six; char chars[6]; u_int mode; }; typedef struct ltchars ltchars; struct rex_ttysize { int ts_lines; int ts_cols; }; typedef struct rex_ttysize rex_ttysize; struct rex_ttymode { sgttyb basic; tchars more; ltchars yetmore; u_int andmore; }; typedef struct rex_ttymode rex_ttymode; #define LCRTBS 0x0001 #define LPRTERA 0x0002 #define LCRTERA 0x0004 #define LTILDE 0x0008 #define LMDMBUF 0x0010 #define LLITOUT 0x0020 #define LTOSTOP 0x0040 #define LFLUSHO 0x0080 #define LNOHANG 0x0100 #define LL001000 0x0200 #define LCRTKIL 0x0400 #define LPASS8 0x0800 #define LCTLECH 0x1000 #define LPENDIN 0x2000 #define LDECCTQ 0x4000 #define LNOFLSH 0x8000 #define REXPROG 100017 #define REXVERS 1 #if defined(__STDC__) || defined(__cplusplus) #define REXPROC_START 1 extern rex_result * rexproc_start_1(rex_start *, CLIENT *); extern rex_result * rexproc_start_1_svc(rex_start *, struct svc_req *); #define REXPROC_WAIT 2 extern rex_result * rexproc_wait_1(void *, CLIENT *); extern rex_result * rexproc_wait_1_svc(void *, struct svc_req *); #define REXPROC_MODES 3 extern void * rexproc_modes_1(rex_ttymode *, CLIENT *); extern void * rexproc_modes_1_svc(rex_ttymode *, struct svc_req *); #define REXPROC_WINCH 4 extern void * rexproc_winch_1(rex_ttysize *, CLIENT *); extern void * rexproc_winch_1_svc(rex_ttysize *, struct svc_req *); #define REXPROC_SIGNAL 5 extern void * rexproc_signal_1(int *, CLIENT *); extern void * rexproc_signal_1_svc(int *, struct svc_req *); extern int rexprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define REXPROC_START 1 extern rex_result * rexproc_start_1(); extern rex_result * rexproc_start_1_svc(); #define REXPROC_WAIT 2 extern rex_result * rexproc_wait_1(); extern rex_result * rexproc_wait_1_svc(); #define REXPROC_MODES 3 extern void * rexproc_modes_1(); extern void * rexproc_modes_1_svc(); #define REXPROC_WINCH 4 extern void * rexproc_winch_1(); extern void * rexproc_winch_1_svc(); #define REXPROC_SIGNAL 5 extern void * rexproc_signal_1(); extern void * rexproc_signal_1_svc(); extern int rexprog_1_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_rexstring (XDR *, rexstring*); extern bool_t xdr_rex_start (XDR *, rex_start*); extern bool_t xdr_rex_result (XDR *, rex_result*); extern bool_t xdr_sgttyb (XDR *, sgttyb*); extern bool_t xdr_tchars (XDR *, tchars*); extern bool_t xdr_ltchars (XDR *, ltchars*); extern bool_t xdr_rex_ttysize (XDR *, rex_ttysize*); extern bool_t xdr_rex_ttymode (XDR *, rex_ttymode*); #else /* K&R C */ extern bool_t xdr_rexstring (); extern bool_t xdr_rex_start (); extern bool_t xdr_rex_result (); extern bool_t xdr_sgttyb (); extern bool_t xdr_tchars (); extern bool_t xdr_ltchars (); extern bool_t xdr_rex_ttysize (); extern bool_t xdr_rex_ttymode (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_REX_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/rstat.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _RSTAT_H_RPCGEN #define _RSTAT_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #ifndef FSCALE /* * Scale factor for scaled integers used to count load averages. */ #define FSHIFT 8 /* bits to right of fixed binary point */ #define FSCALE (1< #ifdef __cplusplus extern "C" { #endif /* * Find out about remote users */ #define RUSERS_MAXUSERLEN 32 #define RUSERS_MAXLINELEN 32 #define RUSERS_MAXHOSTLEN 257 struct rusers_utmp { char *ut_user; char *ut_line; char *ut_host; int ut_type; int ut_time; u_int ut_idle; }; typedef struct rusers_utmp rusers_utmp; typedef struct { u_int utmp_array_len; rusers_utmp *utmp_array_val; } utmp_array; /* * Values for ut_type field above. */ #define RUSERS_EMPTY 0 #define RUSERS_RUN_LVL 1 #define RUSERS_BOOT_TIME 2 #define RUSERS_OLD_TIME 3 #define RUSERS_NEW_TIME 4 #define RUSERS_INIT_PROCESS 5 #define RUSERS_LOGIN_PROCESS 6 #define RUSERS_USER_PROCESS 7 #define RUSERS_DEAD_PROCESS 8 #define RUSERS_ACCOUNTING 9 #ifdef __cplusplus extern "C" { #endif #include /* * The following structures are used by version 2 of the rusersd protocol. * They were not developed with rpcgen, so they do not appear as RPCL. */ #define RUSERSVERS_IDLE 2 #define RUSERSVERS 3 /* current version */ #define MAXUSERS 100 /* * This is the structure used in version 2 of the rusersd RPC service. * It corresponds to the utmp structure for BSD systems. */ struct ru_utmp { char ut_line[8]; /* tty name */ char ut_name[8]; /* user id */ char ut_host[16]; /* host name, if remote */ long int ut_time; /* time on */ }; struct utmparr { struct ru_utmp **uta_arr; int uta_cnt; }; typedef struct utmparr utmparr; extern bool_t xdr_utmparr (XDR *xdrs, struct utmparr *objp) __THROW; struct utmpidle { struct ru_utmp ui_utmp; unsigned int ui_idle; }; struct utmpidlearr { struct utmpidle **uia_arr; int uia_cnt; }; extern bool_t xdr_utmpidlearr (XDR *xdrs, struct utmpidlearr *objp) __THROW; #ifdef __cplusplus } #endif #define RUSERSPROG 100002 #define RUSERSVERS_3 3 #if defined(__STDC__) || defined(__cplusplus) #define RUSERSPROC_NUM 1 extern int * rusersproc_num_3(void *, CLIENT *); extern int * rusersproc_num_3_svc(void *, struct svc_req *); #define RUSERSPROC_NAMES 2 extern utmp_array * rusersproc_names_3(void *, CLIENT *); extern utmp_array * rusersproc_names_3_svc(void *, struct svc_req *); #define RUSERSPROC_ALLNAMES 3 extern utmp_array * rusersproc_allnames_3(void *, CLIENT *); extern utmp_array * rusersproc_allnames_3_svc(void *, struct svc_req *); extern int rusersprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define RUSERSPROC_NUM 1 extern int * rusersproc_num_3(); extern int * rusersproc_num_3_svc(); #define RUSERSPROC_NAMES 2 extern utmp_array * rusersproc_names_3(); extern utmp_array * rusersproc_names_3_svc(); #define RUSERSPROC_ALLNAMES 3 extern utmp_array * rusersproc_allnames_3(); extern utmp_array * rusersproc_allnames_3_svc(); extern int rusersprog_3_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_rusers_utmp (XDR *, rusers_utmp*); extern bool_t xdr_utmp_array (XDR *, utmp_array*); #else /* K&R C */ extern bool_t xdr_rusers_utmp (); extern bool_t xdr_utmp_array (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_RUSERS_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/sm_inter.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _SM_INTER_H_RPCGEN #define _SM_INTER_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define SM_MAXSTRLEN 1024 struct sm_name { char *mon_name; }; typedef struct sm_name sm_name; struct my_id { char *my_name; int my_prog; int my_vers; int my_proc; }; typedef struct my_id my_id; struct mon_id { char *mon_name; struct my_id my_id; }; typedef struct mon_id mon_id; struct mon { struct mon_id mon_id; char priv[16]; }; typedef struct mon mon; struct sm_stat { int state; }; typedef struct sm_stat sm_stat; enum res { stat_succ = 0, stat_fail = 1, }; typedef enum res res; struct sm_stat_res { res res_stat; int state; }; typedef struct sm_stat_res sm_stat_res; struct status { char *mon_name; int state; char priv[16]; }; typedef struct status status; #define SM_PROG 100024 #define SM_VERS 1 #if defined(__STDC__) || defined(__cplusplus) #define SM_STAT 1 extern struct sm_stat_res * sm_stat_1(struct sm_name *, CLIENT *); extern struct sm_stat_res * sm_stat_1_svc(struct sm_name *, struct svc_req *); #define SM_MON 2 extern struct sm_stat_res * sm_mon_1(struct mon *, CLIENT *); extern struct sm_stat_res * sm_mon_1_svc(struct mon *, struct svc_req *); #define SM_UNMON 3 extern struct sm_stat * sm_unmon_1(struct mon_id *, CLIENT *); extern struct sm_stat * sm_unmon_1_svc(struct mon_id *, struct svc_req *); #define SM_UNMON_ALL 4 extern struct sm_stat * sm_unmon_all_1(struct my_id *, CLIENT *); extern struct sm_stat * sm_unmon_all_1_svc(struct my_id *, struct svc_req *); #define SM_SIMU_CRASH 5 extern void * sm_simu_crash_1(void *, CLIENT *); extern void * sm_simu_crash_1_svc(void *, struct svc_req *); extern int sm_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define SM_STAT 1 extern struct sm_stat_res * sm_stat_1(); extern struct sm_stat_res * sm_stat_1_svc(); #define SM_MON 2 extern struct sm_stat_res * sm_mon_1(); extern struct sm_stat_res * sm_mon_1_svc(); #define SM_UNMON 3 extern struct sm_stat * sm_unmon_1(); extern struct sm_stat * sm_unmon_1_svc(); #define SM_UNMON_ALL 4 extern struct sm_stat * sm_unmon_all_1(); extern struct sm_stat * sm_unmon_all_1_svc(); #define SM_SIMU_CRASH 5 extern void * sm_simu_crash_1(); extern void * sm_simu_crash_1_svc(); extern int sm_prog_1_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_sm_name (XDR *, sm_name*); extern bool_t xdr_my_id (XDR *, my_id*); extern bool_t xdr_mon_id (XDR *, mon_id*); extern bool_t xdr_mon (XDR *, mon*); extern bool_t xdr_sm_stat (XDR *, sm_stat*); extern bool_t xdr_res (XDR *, res*); extern bool_t xdr_sm_stat_res (XDR *, sm_stat_res*); extern bool_t xdr_status (XDR *, status*); #else /* K&R C */ extern bool_t xdr_sm_name (); extern bool_t xdr_my_id (); extern bool_t xdr_mon_id (); extern bool_t xdr_mon (); extern bool_t xdr_sm_stat (); extern bool_t xdr_res (); extern bool_t xdr_sm_stat_res (); extern bool_t xdr_status (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_SM_INTER_H_RPCGEN */ @@@@RPCSVC-NATIVE rpcsvc/spray.h@@@@ /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _SPRAY_H_RPCGEN #define _SPRAY_H_RPCGEN #include #ifdef __cplusplus extern "C" { #endif #define SPRAYMAX 8845 struct spraytimeval { u_int sec; u_int usec; }; typedef struct spraytimeval spraytimeval; struct spraycumul { u_int counter; spraytimeval clock; }; typedef struct spraycumul spraycumul; typedef struct { u_int sprayarr_len; char *sprayarr_val; } sprayarr; #define SPRAYPROG 100012 #define SPRAYVERS 1 #if defined(__STDC__) || defined(__cplusplus) #define SPRAYPROC_SPRAY 1 extern void * sprayproc_spray_1(sprayarr *, CLIENT *); extern void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *); #define SPRAYPROC_GET 2 extern spraycumul * sprayproc_get_1(void *, CLIENT *); extern spraycumul * sprayproc_get_1_svc(void *, struct svc_req *); #define SPRAYPROC_CLEAR 3 extern void * sprayproc_clear_1(void *, CLIENT *); extern void * sprayproc_clear_1_svc(void *, struct svc_req *); extern int sprayprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* K&R C */ #define SPRAYPROC_SPRAY 1 extern void * sprayproc_spray_1(); extern void * sprayproc_spray_1_svc(); #define SPRAYPROC_GET 2 extern spraycumul * sprayproc_get_1(); extern spraycumul * sprayproc_get_1_svc(); #define SPRAYPROC_CLEAR 3 extern void * sprayproc_clear_1(); extern void * sprayproc_clear_1_svc(); extern int sprayprog_1_freeresult (); #endif /* K&R C */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_spraytimeval (XDR *, spraytimeval*); extern bool_t xdr_spraycumul (XDR *, spraycumul*); extern bool_t xdr_sprayarr (XDR *, sprayarr*); #else /* K&R C */ extern bool_t xdr_spraytimeval (); extern bool_t xdr_spraycumul (); extern bool_t xdr_sprayarr (); #endif /* K&R C */ #ifdef __cplusplus } #endif #endif /* !_SPRAY_H_RPCGEN */ @@@@RPCSVC-NATIVE md5/installed@@@@ d6ebfa72dc1377da008d5e743ce11788 bootparam_prot.x a820d08971abcbd0bec96265cf7ca5c9 bootparam_prot.h 28a549551552193602c1291d1bdd21b0 key_prot.x fe0960d2a5f4c39c32f84c41a4bd0171 key_prot.h 03655e27ab8924eb4d754be8cbd0ccbb klm_prot.x 7db20d057f1217deafee0c74ca6a2f76 klm_prot.h 3aeeedaaf14d8c6896d3bc383ce6d9cc mount.x cb572ee1eee96d99f4458c58cf018ce5 mount.h fe807e49e252c866dbf680229493ceb9 nfs_prot.x f8b27369c8ec54c2543de52d50d02b3d nfs_prot.h e4a88ea786ce7f1ad5b8c625225fefd9 nlm_prot.x 07a2578027f054f39542e45c7746ed98 nlm_prot.h 14cd012a39970aaa9d74cfb58445593e rex.x dc4d0ccffb739fa84b8b7df58a8b3bea rex.h 7c5bab2b004e58c67fd6df85eff5cd4b rstat.x 2409c903824c349e8f556101b3168fde rstat.h fcac6909d855105d4aaed0e12070ae5e rusers.x a38d043996d2fe4c7fa239a39763f4a5 rusers.h 086e8e8431840ec158f08a6c1a392433 sm_inter.x 72f9692a9d103544b74ae9601ceb2ea2 sm_inter.h 9e5b82ca15c9dcd5ef3ea7133e8390d5 spray.x 9ade54d0f83800b3eeca23eae2f9d03b spray.h @@@@RPCSVC-NATIVE end@@@@