Lines Matching refs:fout

252 		fout = stdout;  in open_output()
262 fout = fopen(outfile, "w"); in open_output()
263 if (fout == NULL) { in open_output()
275 f_print(fout, "/*\n"); in add_warning()
276 f_print(fout, " * Please do not edit this file.\n"); in add_warning()
277 f_print(fout, " * It was generated using rpcgen.\n"); in add_warning()
278 f_print(fout, " */\n\n"); in add_warning()
414 f_print(fout, "#include \"%s\"\n", include); in c_output()
418 f_print(fout, "#include <rpc/rpc.h>\n"); in c_output()
422 f_print(fout, "\n#ifndef _KERNEL\n"); in c_output()
423 f_print(fout, "#include <stdlib.h>\n"); in c_output()
424 f_print(fout, "#endif /* !_KERNEL */\n\n"); in c_output()
425 tell = ftell(fout); in c_output()
429 if (extend && tell == ftell(fout)) { in c_output()
529 f_print(fout, "#ifndef _%s\n#define _%s\n\n", guard, guard); in h_output()
531 f_print(fout, "#include <rpc/rpc.h>\n"); in h_output()
534 f_print(fout, "#ifndef _KERNEL\n"); in h_output()
535 f_print(fout, "#include <synch.h>\n"); in h_output()
536 f_print(fout, "#include <thread.h>\n"); in h_output()
537 f_print(fout, "#endif /* !_KERNEL */\n"); in h_output()
542 f_print(fout, "\n#ifdef __cplusplus\n"); in h_output()
543 f_print(fout, "extern \"C\" {\n"); in h_output()
544 f_print(fout, "#endif\n\n"); in h_output()
554 f_print(fout, rpcgen_table_dcl1); in h_output()
556 f_print(fout, rpcgen_table_proc); in h_output()
558 f_print(fout, rpcgen_table_proc_b); in h_output()
559 f_print(fout, rpcgen_table_dcl2); in h_output()
562 tell = ftell(fout); in h_output()
577 f_print(fout, "\n/* the xdr functions */\n"); in h_output()
580 f_print(fout, "\n#ifdef __cplusplus\n"); in h_output()
581 f_print(fout, "extern \"C\" {\n"); in h_output()
582 f_print(fout, "#endif\n"); in h_output()
595 f_print(fout, in h_output()
598 f_print(fout, "\n#else /* K&R C */\n"); in h_output()
607 f_print(fout, "\n#endif /* K&R C */\n"); in h_output()
611 if (extend && tell == ftell(fout)) { in h_output()
616 f_print(fout, "\n#ifdef __cplusplus\n"); in h_output()
617 f_print(fout, "}\n"); in h_output()
618 f_print(fout, "#endif\n"); in h_output()
621 f_print(fout, "\n#endif /* !_%s */\n", guard); in h_output()
641 f_print(fout, "#include \"%s\"\n", include); in s_output()
644 f_print(fout, "#include <rpc/rpc.h>\n"); in s_output()
646 f_print(fout, "#include <stdio.h>\n"); in s_output()
647 f_print(fout, "#include <stdlib.h> /* getenv, exit */\n"); in s_output()
648 f_print(fout, "#include <signal.h>\n"); in s_output()
651 f_print(fout, in s_output()
653 f_print(fout, "#include <string.h> /* strcmp */\n"); in s_output()
663 f_print(fout, "#include <sys/termios.h> /* TIOCNOTTY */\n"); in s_output()
666 f_print(fout, "#include <unistd.h> /* setsid */\n"); in s_output()
668 f_print(fout, "#include <sys/types.h>\n"); in s_output()
670 f_print(fout, "#include <memory.h>\n"); in s_output()
671 f_print(fout, "#include <stropts.h>\n"); in s_output()
673 f_print(fout, "#include <sys/socket.h>\n"); in s_output()
674 f_print(fout, "#include <netinet/in.h>\n"); in s_output()
675 f_print(fout, "#include <rpc/svc_soc.h>\n"); in s_output()
679 f_print(fout, "#include <netconfig.h>\n"); in s_output()
681 f_print(fout, "#include <sys/resource.h> /* rlimit */\n"); in s_output()
683 f_print(fout, "#include <syslog.h>\n"); in s_output()
687 f_print(fout, in s_output()
691 f_print(fout, "\n#ifdef DEBUG\n#define RPC_SVC_FG\n#endif\n"); in s_output()
693 f_print(fout, "\n#define _RPCSVC_CLOSEDOWN %s\n", in s_output()
728 f_print(fout, "#include <memory.h> /* for memset */\n"); in l_output()
730 f_print(fout, "#include \"%s\"\n", include); in l_output()
733 f_print(fout, "#include <rpc/rpc.h>\n"); in l_output()
735 f_print(fout, "#ifndef _KERNEL\n"); in l_output()
736 f_print(fout, "#include <stdio.h>\n"); in l_output()
737 f_print(fout, "#include <stdlib.h> /* getenv, exit */\n"); in l_output()
738 f_print(fout, "#endif /* !_KERNEL */\n"); in l_output()
792 f_print(fout, "#include \"%s\"\n", include); in svc_output()
795 f_print(fout, "#include <rpc/rpc.h>\n"); in svc_output()
798 f_print(fout, "#include <stdio.h>\n"); in svc_output()
799 f_print(fout, "#include <stdlib.h> /* getenv, exit */\n"); in svc_output()
800 f_print(fout, "#include <signal.h>\n"); in svc_output()
802 tell = ftell(fout); in svc_output()
805 if (extend && tell == ftell(fout)) in svc_output()
830 f_print(fout, "#include \"%s\"\n", include); in clnt_output()
833 f_print(fout, "#include <rpc/rpc.h>\n"); in clnt_output()
835 f_print(fout, "#include <stdio.h>\n"); in clnt_output()
836 f_print(fout, "#include <stdlib.h> /* getenv, exit */\n"); in clnt_output()
838 tell = ftell(fout); in clnt_output()
845 if (extend && tell == ftell(fout)) in clnt_output()
891 f_print(fout, "\n# This is a template makefile generated\ in mkfile_output()
894 f_print(fout, "\n# Parameters \n\n"); in mkfile_output()
896 f_print(fout, "CLIENT = %s\nSERVER = %s\n\n", in mkfile_output()
898 f_print(fout, "SOURCES_CLNT.c = \nSOURCES_CLNT.h = \n"); in mkfile_output()
899 f_print(fout, "SOURCES_SVC.c = \nSOURCES_SVC.h = \n"); in mkfile_output()
900 f_print(fout, "SOURCES.x = %s\n\n", cmd->infile); in mkfile_output()
901 f_print(fout, "TARGETS_SVC.c = %s %s %s \n", in mkfile_output()
903 f_print(fout, "TARGETS_CLNT.c = %s %s %s \n", in mkfile_output()
905 f_print(fout, "TARGETS = %s %s %s %s %s %s\n\n", in mkfile_output()
909 f_print(fout, "OBJECTS_CLNT = $(SOURCES_CLNT.c:%%.c=%%.o) " in mkfile_output()
912 f_print(fout, "\nOBJECTS_SVC = $(SOURCES_SVC.c:%%.c=%%.o) " in mkfile_output()
916 f_print(fout, "\n# Compiler flags \n"); in mkfile_output()
918 f_print(fout, "\nCPPFLAGS += -D_REENTRANT\n" in mkfile_output()
921 f_print(fout, "\nCFLAGS += -g \nLDLIBS += -lnsl\n"); in mkfile_output()
922 f_print(fout, "RPCGENFLAGS = \n"); in mkfile_output()
924 f_print(fout, "\n# Targets \n\n"); in mkfile_output()
926 f_print(fout, "all : $(CLIENT) $(SERVER)\n\n"); in mkfile_output()
927 f_print(fout, "$(TARGETS) : $(SOURCES.x) \n"); in mkfile_output()
928 f_print(fout, "\trpcgen $(RPCGENFLAGS) $(SOURCES.x)\n\n"); in mkfile_output()
929 f_print(fout, "$(OBJECTS_CLNT) : $(SOURCES_CLNT.c) $(SOURCES_CLNT.h) \ in mkfile_output()
932 f_print(fout, "$(OBJECTS_SVC) : $(SOURCES_SVC.c) $(SOURCES_SVC.h) \ in mkfile_output()
934 f_print(fout, "$(CLIENT) : $(OBJECTS_CLNT) \n"); in mkfile_output()
935 f_print(fout, "\t$(LINK.c) -o $(CLIENT) $(OBJECTS_CLNT) \ in mkfile_output()
937 f_print(fout, "$(SERVER) : $(OBJECTS_SVC) \n"); in mkfile_output()
938 f_print(fout, "\t$(LINK.c) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS)\n\n "); in mkfile_output()
939 f_print(fout, "clean:\n\t $(RM) core $(TARGETS) $(OBJECTS_CLNT) \ in mkfile_output()