ELF L4 4 (444   /usr/libexec/ld-elf.so.1FreeBSD%512 "!3,(0 &$/+4) -   '*#%.  '( ,[+4<L:L%?\DlK|QW\ T ow~@*̉ Ȯ  ܉f9 Et,x<L3 \:lV|"L(/- 5Y=pD̊J܊OVȮl[q 'v.{ ,<libc.so.4strcpywarnxwaitpid___toupper_DYNAMICfgetserrxdup2mallocabort_initpipe_DefaultRuneLocalestrrchrrindexenvironfprintfstrcat__deregister_frame_info__progname___runetypestrncmpstrncpyunlinkrealloc_CurrentRuneLocalefdopen__sFforkexecvstrncatstrdupfopenftellstrcmp_finisprintfatexitfputcstataccess_GLOBAL_OFFSET_TABLE_exitatoiwarn__register_frame_infoclosefree_edata__bss_start_endend  tx    $(,048<@DHLP T!X"\$`%d'h(l)p*t+x/|0134G螤5%%h%h%h%h%h % h(%h0%h8p%h@`%hHP% hP@%$hX0%(h` %,hh%0hp%4hx%8h%<h%@h%Dh%Hh%Lh%Ph%Thp%Xh`%\hP%`h@%dh0%hh %lh%ph%th%xh%|h%h%h%h U WVSҍu^|=@~)}t#E 8t8/u H @8u츌t Rh-%WVSP-U=(u@v$$@С$8ut hؔs(ÍvUUthhؔsÐUUv}%h.jh^.u>)h.jhh.uA h.jhr.ue=|u =u#uuh.jh}.uhP5d!uuh.jh}.uhh5t =Pt膗h.jh.u=t>ah.jh.u1Hh.jh.u =u}uEP5LU WVSuj/VÃuC߰ҋ} ЍDPƃuj.S1ǃu߰Ѝ|SVjE P)PWe[^_ÐUVS]u uТft'SVVtSh.h/VsuVh /萙Ve[^ÐUh/5gh /5T h`/5>h/5+ÐUv@~xÍvUhEP5H}Y=@t5Hh/踘6H/EPh/}h/耘ÉUS]u 0EP&H75Hj'hLj u t SjjO juou4 h5>h 0 jh0juh0u u5h09]U WVS}u 1ۃ>t%4Wu C<u݃WhS0?1e[^_ÐUSu uÃjSu i0؋]ÐU WVSu] }SV }tWVǃWV]t9h.VÃt"Shk052S hz055 P!Cu}t59u We[^_ÍvUh0j˘h0j輘 h0j誘h0j蛘 h0j艘h0jz h0jhÉUVS]j/SڅtPRƉ>t^vRvt4%t)vR2t4C;uh0Vƍe[^UWVS]uu S}tVSvWS@utuPE vE0EPPh05hz05 =th05=tH=u?h05h15 h155@E vP27AuĮt3b3[u=h&15=t?h05h15 h@15=u,js3I3[umvu h`1 h15itVs32[uF~h15+}t"59Eu WS=Pth5=t?h05h15 h@15EPh15e[^_ÉUWVS]EuEP}tSEPE]EPEP}t?h.EPJÃt%Shk05S` vhz05h15h25 =t)h@25}h25j 5D2u DV5D2u X3=|u =`t h25T=u=|th25=tp=|u =`t^h25h35 h/35o=t5h`35P=th351h35=th35=|u =u)h35h35 }$u =`t%=t;} uh35=th 45n=\u=|u =`thH45==th`45h45=Tt*5Dh45 xuM;u}t}uEPTvE PE$PEPh_} u4u uEu}tEP4 ee[^_ÍvU WVS]u1u S}tVSdƃVS=th55t:h.SÃt#Shk05S2 "hz05 xuf:u}tu Vce[^_ÍvU WVS}]1u W}tSWpÃSW vxu9u}tu S;e[^_ÍvU WVS]}uu S:tVSƃVSVS XQth+>h( j)Uh;>h(h`>h( h>h(h>h( h>h(h ?h(p hR?h([h?h(I h?h(4h@h(" h@@h( h`@h( h@h(h@h( h@h(h Ah( h`Ah(hAh( hAh(qh Bh(_ h`Bh(JhBh(8 hBh(#h Ch( jDUSh`C5jhC5Į txu P[u]UVSEp ^hC5q=uMjss={hC5B v3|hChChS ;hC5v3| hChChSXhC5S hC5[v e[^ÍvU WVSu}=dH=hC5LjF p0"z =tJhC5jvvy WEPE PhD5 WEPh D=u WhD WE Ph&D5h6D5jF p0ky h8D5m=^h6D5Jjvv"y E Ph@DhFDF pw=tehC5=t6jvvxWEPE PhD50WhKD=tWEPhQDsWhKDe=hC5P^ t"shYD5.[u=tE PhYD5Wh^D5^ tvhcDjSv %[u=h6D5jvv~w E Ph@DxhC5q^ tvhfDjSv$[u=t*jvvwE PhiD5 WEPhoD5=uWEPhvD5e[^_ÐUjuwu D~DÐUVSu~؃=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5me[^ÉU WVS]E11PhAP5;[3hLP5{t"shPP5{%u VFhVPVFWh\P5ɶ{t hgP hM5衶[ghUN5耶EPPhjP5ke[^_ÍvUWVSE0X xSVR~hPSRtP8hPS~RtPhpNSbRtPVSTt%ExtphPEP蠶vEhP5葵ttnhP5]VhP5I VSEPhP5- VhP5EVSEPhP&EpVSEPhPVSEPhP5ϴ hRN5蹴e[^_ÐUWVS] hNs QEP5UusP t;uhP5JhPsPt shP5wNhpNssPtPBhPsTPt P#;t3hPEP褴}sC tor-tHsVWhP5{ssVWhP5YsVWhP5<vhP5!EP5gT shP5EP5u4WduWhRV^V1I C <uƃ} tN1۸@=@t>u4WuWhRV VH C@<uƍe[^_ÉU$S]CjEP-EjPECEC ECEC]US]u CPSC hQsD ^jsEPjj  } uC EPjUBCRjt;{ uhRGC EPUBCRjlEPj :t^{ uhRGC EPj t CR#EPUBCRj  hQsCt{ v:hR G+h^RsCt{ t h SF]ÐU VS]u u5EP5}u C CQCVCPSC EPj  tuEP˥uhKShOSEPbEPChQsB <hQsBth`SEEPj |tTh^RsqBthSEC EPj9tukCEPj toh^RsBuhSHEC EPj t CR#EP` UBCRj h^RsAt{ tC CRe[^ÉUWVS}u ]EP }$w{E$T]CSj% CcVcVT TTEPj /tt h T-DEhjTDe[^_ÍvUS]EPr E wt$@UEP U^EP U&EP 'UEPt .UEPj$ EPP 8U]ÐUExu PpÉU WVS}1t1 _ tS7F[ ue[^_UWVShU5$E pURB =t hUhU5hU5ӢEE @E,hU5襢=tMEURhU5jEppT@ URhU5R1jEpp!@EURhU5 Ex=dhU5hUUB pQ> ujUB pB 0?hU5襡hV5菡E pU2A hV5fhUUB p=EX hU5js3>s V1t  uhV5נU rE0a@shV5諠 [qURUhV5y2V=t*VPE 0URh@V5F hV50hV5 hV5hV5EE @E n=tEURhVEEPhV5袟U rE0,?Uz=dhV5\hUUB p; thV5,hW5E pU2> =tEPh Wh$WvhUUB p6;t+=tEPh2WhGWvhV5yUZ t3E pU2=shPW5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=thhi hhi5}=dthi5e}=u =t=duv3 v3hi5}hj5} [h j5|hhj hb[hb5| hhh j5|=thhNj vhhbjhhZjhhdjhb hb5#|=uG=thhhhhjmhhhhhjO=t#hhhhhhj!hhhhhhk5x{ =t hhhhh@khhhhhk5%{ hhk\hb5z =t hhNj hhbjhhk7hkh{hbE hBd5zhb5z =hk5]zvE0 hhhhl5(z h)lh{hb h#b5yh%b|he5y v e[^_ÍvUu uh@l5yÉUEPuPu uh`l5myÍvUS]t)hlst  [u1]ÉUS]hh[a5yhl5x hl5xhl5x hl5xh#b5x hl5xh m5xx h@m5bxhdm5Ox hm59xhm5&x hdm5xhm5w hm5wh n5w hbS hn5w hbS h#n5w hbhb5iw]US]=XtSh:n5=wwv=TtW=tSh`n5wShn5v=tShn5vShn5v]ÍvU WVS=Įt=7~u-^ t&36EPhn5}v [ uۋuče[^_UE=\thPhn=|u =`thPho5vhPho5vU=\u}uaÍvUh#b5uh1o5u =u,h9o5uhLo5~u hYo5euhXa5Ouhro5who hZwWhdm5n hr5nh^w5n hlw5in=Į7~^ 36hhw5$n s6 hw5n 36hwhnhZwz hdm5mhr5m [ gD=Ttihw5md=tdPhw5Vmh x5Cm hr5-mhGx5mhBd5m hUx5lhix5le[^_ÍvUVSu] hlx5lShx5l =tShx5{l=|tShx5[lShx5DlShx50l Shx5lShx5l Shx5kShy5k Shy5k=t[Shy5kSh@y5k Shy5xkShx5dk vShy5HkShy51kShy5k Shz5kSh z5j Sh6z5j=t ShLz_ShYz5jShuz5j Shz5jShy5qj Shx5Zj=\u SV4h?p5.j=\t SVe[^ÐUVSuj.ViÃtVu hz5it.e[^Uexecvforkr%srawdatagram_ncircuit_ndatagram_vcircuit_vvisibleillegal nettype :'%s' #include "%s" #include intlongshortboolu_intu_longu_short_H_RPCGENSTDIN_#ifndef _%s #define _%s #include #ifdef __cplusplus extern "C" { #endif /* the xdr functions */ #endif #if defined(__STDC__) || defined(__cplusplus) #else /* K&R C */ #endif /* K&R C */ } #endif /* !_%s */ #include #include /* getenv, exit */ #include /* for pmap_unset */ #include /* strcmp */ -10#include #include /* TIOCNOTTY */ #ifdef __cplusplus #include /* getdtablesize, open */ #endif /* __cplusplus */ #include /* setsid */ #include #include #include #include #include #include #include /* rlimit */ #include #ifndef SIG_PF #define SIG_PF void(*)(int) #endif #ifdef DEBUG #define RPC_SVC_FG #endif #define _RPCSVC_CLOSEDOWN %s #include /* for memset */ _server_clientmakefile. # This is a template makefile generated by rpcgen # Parameters CLIENT = %s SERVER = %s SOURCES_CLNT.c = SOURCES_CLNT.h = SOURCES_SVC.c = SOURCES_SVC.h = SOURCES.x = %s TARGETS_SVC.c = %s %s %s TARGETS_CLNT.c = %s %s %s TARGETS = %s %s %s %s %s %s 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 CPPFLAGS += -D_REENTRANT CFLAGS += -g LDLIBS += -lnsl -lthread CFLAGS += -g LDLIBS += 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) $(CC) -o $(CLIENT) $(OBJECTS_CLNT) $(LDLIBS) $(SERVER) : $(OBJECTS_SVC) $(CC) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS) clean: $(RM) -f core $(TARGETS) $(OBJECTS_CLNT) $(OBJECTS_SVC) $(CLIENT) $(SERVER) -ntoo many definesarglist coding errorfile '%s' already exists and may be overwrittencannot specify more than one input file/cppcannot use netid flag with inetd flagcannot use netid flag without TIRPCcannot use table flags with newstyle"infile" is required for template generation flagscannot have more than one file generation flagЦ(lȧ<LL8LL\\\L rpcgen [-n netid]* [-o outfile] [infile] rpcgen [-s nettype]* [-o outfile] [infile] rpcgen [-c | -h | -l | -m | -t | -Sc | -Ss | -Sm][-o outfile] [infile] rpcgen [-abCLNTM] [-Dname[=value]] [-i size][-I [-K seconds]] [-Y path] infileusage: rpcgen infile%s %s %s %s %s options: -a generate all files, including samples -b backward compatibility mode (generates codefor SunOS 4.X) -c generate XDR routines -C ANSI C mode -Dname[=value] define a symbol (same as #define) -h generate header file -i size size at which to start generatinginline code -I generate code for inetd support in server(for SunOS 4.X) -K seconds server exits after K seconds ofinactivity -l generate client side stubs -L server errors will be printed to syslog -m generate server side stubs -M generate MT-safe code -n netid generate server code that supportsnamed netid -N supports multiple arguments andcall-by-value -o outfile name of the output file -s nettype generate server code that supports namednettype -Sc generate sample client code that uses remoteprocedures -Ss generate sample server code that definesremote procedures -Sm generate makefile template -t generate RPC dispatch table -T generate code to support RPC dispatch tables -Y path path where cpp is found /* Default timeout can be changed using clnt_control() */ static struct timeval TIMEOUT = { %d, 0 }; * CLIENT *clntenum clnt_stat { } (*argp, *%s, %s%s) *argp, %s%s) (argp, %s) (argp, %s, %s) *argp; *%s; void(%s) (%s%s) %s, %s) ; , *%s, %s%s) %s%s; & %s arg; static char %s; memset((char *)%s%s, 0, sizeof (%s)); return if (clnt_call(clnt, %s, (xdrproc_t) xdr_void, (caddr_t) NULL, (xdrproc_t) xdr_%s, (caddr_t) %s%s, TIMEOUT)); TIMEOUT) != RPC_SUCCESS) { arg.%s = %s; return if (clnt_call(clnt, %s, (xdrproc_t) xdr_%s, (caddr_t) &arg, (xdrproc_t) xdr_%s, (caddr_t) %s%s,argp if (clnt_call(clnt, %s, (xdrproc_t) xdr_%s, (caddr_t) %s%s, (xdrproc_t) xdr_%s, (caddr_t) %s%s, TIMEOUT) != RPC_SUCCESS) { return (clnt_call(clnt, %s, (xdrproc_t) xdr_%s, (caddr_t) %s%s, (xdrproc_t) xdr_%s, (caddr_t) %s%s, TIMEOUT)); return (NULL); } return ((void *)%s%s); return (%s%s); $FreeBSD: src/usr.bin/rpcgen/rpc_cout.c,v 1.7 1999/08/28 01:05:16 peter Exp $ bool_t xdr_%s(register XDR *xdrs, %s *objp) { xdr_%s(xdrs, objp) register XDR *xdrs; %s objp; { register long *buf; return (TRUE); } if (!xdr_%s(xdrs, %s, , boolsizeof (bool_t), (xdrproc_t) xdr_boolsizeof (%s), (xdrproc_t) xdr_%s)) return (FALSE); pointer(char **)%sstringopaquevector(char *)bytesarray%s.%s_val, (u_int *) %s.%s_len&%s->%s_val, (u_int *) &%s->%s_lenenum(enum_t *)objpobjp->%s_u.%s&objp->%s_u.%s switch (objp->%s) { case %s: void break; default: return (FALSE); } if (xdrs->x_op == XDR_ENCODE) { return (TRUE); } else if (xdrs->x_op == XDR_DECODE) { + %s%s * %d%s%sfatal error: no memorybuf = XDR_INLINE(xdrs, %d * BYTES_PER_XDR_UNIT);buf = XDR_INLINE(xdrs, (%s) * BYTES_PER_XDR_UNIT);buf = XDR_INLINE(xdrs, (%d + (%s)) * BYTES_PER_XDR_UNIT);if (buf == NULL) { } else { buf = XDR_INLINE(xdrs, %d * BYTES_PER_XDR_UNIT); buf = XDR_INLINE(xdrs, (%s) * BYTES_PER_XDR_UNIT); buf = XDR_INLINE(xdrs, (%d + (%s)) * BYTES_PER_XDR_UNIT); if (buf == NULL) { } else { } int i; return (TRUE); } objpobjp->%s&objp->%s{ register %s *genp; for (i = 0, genp = objp->%s; i < %s; i++) { IXDR_PUT_objp->%s = IXDR_GET_*genp++ = IXDR_GET_INTLONGU_INTU_LONG%s(buf, objp->%s); %s(buf, *genp++); %s(buf); malloc failed Xdp|extern bool_t xdr_%s(); *extern bool_t xdr_%s(XDR *, %s%s); struct %s { ; }; typedef struct %s %s; bool bool_t %s; %s %s; union { void } %s_u; #define %s %s #define %s ((unsigned long)(%s)) extern int _freeresult(SVCXPRT *, xdrproc_t, caddr_t); _freeresult(); extern struct rpcgen_table %s_%s_table[]; extern %s_%s_nproc; extern %s #if defined(__STDC__) || defined(__cplusplus) #else /* K&R C */ CLIENT *struct svc_req *#endif /* K&R C */ bool_t enum clnt_stat * (); (, *, %s); enum %s { %s = %s = %d = %s + %d, typedef enum %s %s; stringcharopaquebool_t%s typedef struct { u_int %s_len; %s%s *%s_val; } %s%s%s *%s%s%s %s[%s]%s%s %sstruct char *%sdefinition keyword expected opaqueillegal result typevoidonly one argument is allowedillegal use of void in program definitionvectorunionsizeofsetposreferencepointerinlinegetposfreedestroybytesarraystringillegal (reserved) name :'%s' in type definitionno array-of-pointer declarations -- use typedef~0array declaration expectedvariable-length array declaration expectedarg%s%dopaque -- illegal argument typepointer to string not allowed in program arguments arrays cannot be declared as arguments to procedures -- use typedefshortlongint64_tvoids allowed only inside union and program definitions with one argumentexpected type specifier[dddddddddddddddddddd[$,[[[[[[[Du_charu_shortu_longu_int64_tu_int void (char *host) { (host) char *host; { CLIENT *clnt; enum clnt_stat retval_%d; result_%d; *result_%d; voidchar * _arg; string_%s; #ifndef DEBUG netpathudp clnt = clnt_create(host, %s, %s, "%s"); if (clnt == (CLIENT *) NULL) { clnt_pcreateerror(host); exit(1); } #endif /* DEBUG */ retval_%d = result_%d = ((void *)&_arg, &result_%d, clnt); _arg, clnt); (&result_%d, clnt); (clnt); _%s, &result_%d, clnt); if (retval_%d != RPC_SUCCESS) { if (result_%d == (*) NULL) { clnt_perror(clnt, "call failed"); } #ifndef DEBUG clnt_destroy(clnt); #endif /* DEBUG */ } * bool_t struct svc_req *result{ static char * result; bool_t retval; /* * insert server code here */ return (&result); } return((void *) &result); } return (retval); } int _freeresult(SVCXPRT *transp, xdrproc_t xdr_result, caddr_t result) _freeresult(transp, xdr_result, result) SVCXPRT *transp; xdrproc_t xdr_result; caddr_t result; (void) xdr_free(xdr_result, result); /* * Insert additional freeing code here, if needed */ } /* * This is sample code generated by rpcgen. * These are only templates and you can use them * as a guideline for developing your own functions. */ main(int argc, char *argv[]) { main(argc, argv) int argc; char *argv[]; { char *host; if (argc < 2) { printf("usage: %%s server_host\n", argv[0]); exit(1); } host = argv[1]; (host); constant or identifier expectedillegal character in file: %c%dd(`t<Punterminated string constantempty char string??????versionprogramstringquadrupledoublefloathyperlongshortunsignedintcharvoidboolopaqueenumtypedefstructdefaultcaseswitchunionconst%spreprocessor error$FreeBSD: src/usr.bin/rpcgen/rpc_svcout.c,v 1.6.6.1 2001/07/19 01:38:22 kris Exp $ xdr_%s = (xdrproc_t) xdr_%s; xdr_%s = xdr_%s; static *externstatic%s int _rpcpmstart; /* Started by a port monitor ? */ %s int _rpcfdtype; /* Whether Stream or Datagram ? */ /* States a server can be in wrt request */ #define _IDLE 0 #define _SERVED 1 #define _SERVING 2 static int _rpcsvcstate = _IDLE; /* Set when a request is serviced */ mutex_t _svcstate_lock; /* Mutex lock for variable _rpcsvcstate */ main() { register SVCXPRT *%s; struct netconfig *nconf = NULL; pid_t pid; int i; char mname[FMNAMESZ + 1]; mutex_init(&_svcstate_lock, USYNC_THREAD, NULL); else { } %s nconf = getnetconfigent("%s"); %s if (nconf == NULL) { cannot find %s netid.%s %s exit(1); %s } %s %s = svc_tli_create(RPC_ANYFD, nconf, 0, 0, 0); %s if (%s == NULL) { cannot create %s service.%s (void) rpcb_unset(%s, %s, nconf); %s if (!svc_reg(%s, %s, %s, , nconf)) { unable to register (%s, %s, %s).%s freenetconfigent(nconf); if (!svc_create(, %s, %s, "%s")) { unable to create (%s, %s) for %s. exit(1); if (%s == (SVCXPRT *)NULL) { could not create a handle if (_rpcpmstart) { (SIG_PF)(void(*)()) (void) signal(SIGALRM, %s closedown); (void) alarm(_RPCSVC_CLOSEDOWN/2); svc_run(); svc_run returned exit(1); /* NOTREACHED */ } int _( *argp, void *%s, struct svc_req *%s) *argp, struct svc_req *%s) (argp, %s, %s) (argp, %s) %s *argp; *argp; void *%s; struct svc_req *%s; return (void*argp, argp->%s, %s, %s)); } %s void (struct svc_req *%s, register SVCXPRT *%s) (%s, %s) union { _arg; %s int fill; } %s; _res; bool_t %s; char *%s; xdrproc_t xdr_%s, xdr_%s; bool_t (*%s)(char *, void *, struct svc_req *); char *(*%s)(char *, struct svc_req *); bool_t (*xdr_%s)(), (*xdr_%s)(); bool_t (*%s)(); char *(*%s)(); mutex_lock(&_svcstate_lock); _rpcsvcstate = _SERVING; mutex_unlock(&_svcstate_lock); switch (%s->rq_proc) { case NULLPROC: (void) svc_sendreply(%s, (xdrproc_t) xdr_void, (char *)NULL); (void) svc_sendreply(%s, xdr_void, (char *)NULL); case %s: %s = (bool_t (*) (char *, void *, struct svc_req *)) %s = (char *(*)(char *, struct svc_req *)) %s = (bool_t (*)()) %s = (char *(*)()) _; break; default: noproc (void) memset((char *)&%s, 0, sizeof (%s)); (caddr_t) &getargs&decode %s = (*%s)((char *)&%s, %s); %s = (*%s)(&%s, %s); %s = (bool_t) (*%s)((char *)&%s, (void *)&%s, %s); %s = (bool_t) (*%s)(&%s, &%s, %s); if (%s > 0 && !svc_sendreply(%s, xdr_%s, (char *)&%s)) { if (%s != NULL && !svc_sendreply(%s, xdr_%s, %s)) { systemerrfreeargsunable to free arguments if (!_freeresult(%s, xdr_%s, (caddr_t) &%s)) unable to free results svcerr_%s(%s); if (!svc_%s(%s, xdr_%s, %s%s)) { 0 int sock; int proto; struct sockaddr_in saddr; int asize = sizeof (saddr); if (getsockname(0, (struct sockaddr *)&saddr, &asize) == 0) { int ssize = sizeof (int); if (saddr.sin_family != AF_INET) exit(1); if (getsockopt(0, SOL_SOCKET, SO_TYPE, (char *)&_rpcfdtype, &ssize) == -1) sock = 0; _rpcpmstart = 1; proto = 0; } else { sock = RPC_ANYSOCK; %sexit(0); %smutex_lock(&_svcstate_lock); %s_rpcsvcstate = _SERVED; %smutex_unlock(&_svcstate_lock); %sreturn; %s(void) pmap_unset(%s, %s); %ssyslog(LOG_ERR, "%s"); %s_msgout("%s"); %sfprintf(stderr, "%s"); static void _msgout(msg) char *msg; void _msgout(char* msg) #ifdef RPC_SVC_FG if (_rpcpmstart) syslog(LOG_ERR, "%%s", msg); else (void) fprintf(stderr, "%%s\n", msg); #else syslog(LOG_ERR, "%%s", msg); #endif static void closedown(sig) int sig; closedown(int sig) if (_rpcsvcstate == _IDLE) { extern fd_set svc_fdset; static int size; int i, openfd; struct t_info tinfo; if (!t_getinfo(0, &tinfo) && (tinfo.servtype == T_CLTS)) if (_rpcfdtype == SOCK_DGRAM) exit(0); if (size == 0) { struct rlimit rl; rl.rlim_max = 0; getrlimit(RLIMIT_NOFILE, &rl); if ((size = rl.rlim_max) == 0) { mutex_unlock(&_svcstate_lock); return; } size = getdtablesize(); } for (i = 0, openfd = 0; i < size && openfd < 2; i++) if (FD_ISSET(i, &svc_fdset)) openfd++; if (openfd <= 1) if (_rpcsvcstate == _SERVED) _rpcsvcstate = _IDLE; (void) signal(SIGALRM, %s closedown); (void) alarm(_RPCSVC_CLOSEDOWN/2); if (!ioctl(0, I_LOOK, mname) && (!strcmp(mname, "sockmod") || !strcmp(mname, "timod"))) { char *netid; struct netconfig *nconf = NULL; SVCXPRT *%s; int pmclose; if ((netid = getenv("NLSPROVIDER")) == NULL) { /* started from inetd */ pmclose = 1; } else { if ((nconf = getnetconfigent(netid)) == NULL) cannot get transport info pmclose = (t_getstate(0) != T_DATAXFER); if (strcmp(mname, "sockmod") == 0) { if (ioctl(0, I_POP, 0) || ioctl(0, I_PUSH, "timod")) { could not get the right module exit(1); } if ((%s = svc_tli_create(0, nconf, NULL, 0, 0)) == NULL) { cannot create server handle if (nconf) freenetconfigent(nconf); if (!svc_reg(%s, %s, %s, , 0)) { unable to register (%s, %s). if (pmclose) { (void) signal(SIGALRM, %s closedown); (void) alarm(_RPCSVC_CLOSEDOWN/2); svc_run(); /* NOTREACHED */ }#ifndef RPC_SVC_FG %sint size; %sstruct rlimit rl; %sint pid, i; %spid = fork(); %sif (pid < 0) { %s perror("cannot fork"); %s exit(1); %s} %sif (pid) %s exit(0); %srl.rlim_max = 0; %sgetrlimit(RLIMIT_NOFILE, &rl); %sif ((size = rl.rlim_max) == 0) %ssize = getdtablesize(); %sfor (i = 0; i < size; i++) %s (void) close(i); %si = open("/dev/console", 2); %s(void) dup2(i, 1); %s(void) dup2(i, 2); %ssetsid(); %si = open("/dev/tty", 2); %sif (i >= 0) { %s (void) ioctl(i, TIOCNOTTY, (char *)NULL); %sopenlog("%s", LOG_PID, LOG_DAEMON); udpSOCK_DGRAMSOCK_STREAM if ((_rpcfdtype == 0) || (_rpcfdtype == %s)) { sockRPC_ANYSOCK%s %s = svc%s_create(%s, 0, 0); %s if (!_rpcpmstart) UDPTCP%s proto = IPPROTO_%s; %s if (!svc_register(%s, %s, %s, , proto)) { , IPPROTO_%s)) { $FreeBSD: src/usr.bin/rpcgen/rpc_tblout.c,v 1.4 1999/08/28 01:05:17 peter Exp $ %s_%s /* * WARNING: table out of order */ WARNING %s table is out of order (char *(*)())RPCGEN_ACTION(_), xdr_%s,%svoid0sizeof ( ), $FreeBSD: src/usr.bin/rpcgen/rpc_util.c,v 1.6 1999/08/28 01:05:17 peter Exp $opaquecharstringwrapstringenumenum struct boolbool_t char *%s %s_%s_svc%s_%s%s, line %d: %stoo many filesexpected '%s'expected '%s' or '%s'expected '%s', '%s' or '%s'??????versionprogramvoidfloatdoubleunsignedlongshortinttypedefdefaultcaseswitchstructunion;:=,*][{}()constidentifierfailed in mallocargument%s_%s_%s-/.3.-CO.L.H.L.D.O.L.V.V.K0A060,0!0H.D.0H.D.struct rpcgen_table { char *(*proc)(); xdrproc_t xdr_arg; unsigned len_arg; xdrproc_t xdr_res; unsigned len_res; }; @(#)rpc_clntout.c 1.11 89/02/22 (C) 1987 SMIclnt_res@(#)rpc_hout.c 1.12 89/02/22 (C) 1987 SMIclnt_res@(#)rpc_parse.c 1.8 89/02/22 (C) 1987 SMIXRRRJRER>R7R/R%RRRR RQ^Rrqstp@(#)rpc_scan.c 1.11 89/02/22 (C) 1987 SMI^^^^^^^^ ^#^${^!v^r^i^c^^^X^R^K^A^":^%2^&*^'#^rqstptranspargumentresultlocalretval struct rpcgen_table %s_table[] = { }; (char *(*)())0, (xdrproc_t) xdr_void, 0, (xdrproc_t) xdr_void, 0, int %s_nproc = sizeof(%s_table)/sizeof(%s_table[0]); ~~~~~~~~ ~ ~ ~~~~~~~~}~~~~~~~!}"} }#}$}~%u~&m~'f~"2BRbr‰҉"2BRbrŠҊ"2B  -(  (GCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]GCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_main.c 1.21 94/04/25 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_clntout.c 1.15 94/04/25 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_cout.c 1.14 93/07/05 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_hout.c 1.16 94/04/25 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_parse.c 1.12 93/07/05 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]GCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_scan.c 1.13 93/07/05 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_svcout.c 1.4 90/04/13 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_tblout.c 1.11 93/07/05 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]@(#)rpc_util.c 1.14 93/07/05 SMIGCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]GCC: (GNU) c 2.95.3 20010315 (release) [FreeBSD]01.0101.0101.0101.0101.0101.0101.0101.0101.0101.0101.0101.0101.01.symtab.strtab.shstrtab.interp.note.ABI-tag.hash.dynsym.dynstr.rel.bss.rel.plt.init.plt.text.fini.rodata.data.eh_frame.ctors.dtors.got.dynamic.sbss.bss.comment.note#1((p7 P?G P ( Y _`dLL lj-p-`Q x   ~ؔܔ