home *** CD-ROM | disk | FTP | other *** search
- /*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
-
- #include <stdio.h>
- #include <rpc/rpc.h>
- #include <syslog.h>
- #include "inetray.start.h"
- #ifndef ITIMER_REAL
- #include <sys/time.h> /* for A/UX */
- #endif
-
- void
- starter_1(rqstp, transp)
- struct svc_req *rqstp;
- register SVCXPRT *transp;
- {
- union {
- sPrm start_1_arg;
- } argument;
- char *result;
- bool_t (*xdr_argument)(), (*xdr_result)();
- char *(*local)();
-
- switch (rqstp->rq_proc) {
- case NULLPROC:
- (void) svc_sendreply(transp, xdr_void, (char *)NULL);
- return;
-
- case START:
- xdr_argument = xdr_sPrm;
- xdr_result = xdr_void;
- local = (char *(*)()) start_1;
- break;
-
- default:
- svcerr_noproc(transp);
- return;
- }
- bzero((char *)&argument, sizeof(argument));
- if (!svc_getargs(transp, xdr_argument, &argument)) {
- svcerr_decode(transp);
- return;
- }
- result = (*local)(&argument, rqstp);
- if (result != NULL && !svc_sendreply(transp, xdr_result, result)) {
- svcerr_systemerr(transp);
- }
- if (!svc_freeargs(transp, xdr_argument, &argument)) {
- syslog(LOG_ERR, "unable to free arguments");
- exit(1);
- }
- return;
- }
-