2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #include "nlm_sm_inter.h"
9 #include <rpc/pmap_clnt.h>
12 #include <sys/socket.h>
13 #include <netinet/in.h>
16 #define SIG_PF void(*)(int)
20 nlm_sm_prog_3(struct svc_req *rqstp, register SVCXPRT *transp)
23 struct nlm_sm_notify nlm_sm_notify_3_arg;
26 xdrproc_t _xdr_argument, _xdr_result;
27 char *(*local)(char *, struct svc_req *);
29 switch (rqstp->rq_proc) {
31 (void) svc_sendreply (transp, (xdrproc_t) xdr_void, (char *)NULL);
35 _xdr_argument = (xdrproc_t) xdr_nlm_sm_notify;
36 _xdr_result = (xdrproc_t) xdr_void;
37 local = (char *(*)(char *, struct svc_req *)) nlm_sm_notify_3_svc;
41 svcerr_noproc (transp);
44 memset ((char *)&argument, 0, sizeof (argument));
45 if (!svc_getargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) {
46 svcerr_decode (transp);
49 result = (*local)((char *)&argument, rqstp);
50 if (result != NULL && !svc_sendreply(transp, (xdrproc_t) _xdr_result, result)) {
51 svcerr_systemerr (transp);
53 if (!svc_freeargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) {
54 fprintf (stderr, "%s", "unable to free arguments");
61 nlm_sm_prog_4(struct svc_req *rqstp, register SVCXPRT *transp)
64 struct nlm_sm_notify nlm_sm_notify_4_arg;
67 xdrproc_t _xdr_argument, _xdr_result;
68 char *(*local)(char *, struct svc_req *);
70 switch (rqstp->rq_proc) {
72 (void) svc_sendreply (transp, (xdrproc_t) xdr_void, (char *)NULL);
76 _xdr_argument = (xdrproc_t) xdr_nlm_sm_notify;
77 _xdr_result = (xdrproc_t) xdr_void;
78 local = (char *(*)(char *, struct svc_req *)) nlm_sm_notify_4_svc;
82 svcerr_noproc (transp);
85 memset ((char *)&argument, 0, sizeof (argument));
86 if (!svc_getargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) {
87 svcerr_decode (transp);
90 result = (*local)((char *)&argument, rqstp);
91 if (result != NULL && !svc_sendreply(transp, (xdrproc_t) _xdr_result, result)) {
92 svcerr_systemerr (transp);
94 if (!svc_freeargs (transp, (xdrproc_t) _xdr_argument, (caddr_t) &argument)) {
95 fprintf (stderr, "%s", "unable to free arguments");