Lines Matching refs:f_print
254 f_print(fout, "/*\n"); in add_warning()
255 f_print(fout, " * Please do not edit this file.\n"); in add_warning()
256 f_print(fout, " * It was generated using rpcgen.\n"); in add_warning()
257 f_print(fout, " */\n\n"); in add_warning()
476 f_print(fout, "#include \"%s\"\n", include); in c_output()
480 f_print(fout, "#include <rpc/rpc.h>\n"); in c_output()
586 f_print(fout, "#ifndef _%s\n#define _%s\n\n", guard, in h_output()
589 f_print(fout, "#include <rpc/rpc.h>\n"); in h_output()
592 f_print(fout, "#include <pthread.h>\n"); in h_output()
596 f_print(fout, "\n#ifdef __cplusplus\n"); in h_output()
597 f_print(fout, "extern \"C\" {\n"); in h_output()
598 f_print(fout, "#endif\n\n"); in h_output()
621 f_print(fout, in h_output()
625 f_print(fout, "\n#ifdef __cplusplus\n"); in h_output()
626 f_print(fout, "extern \"C\" {\n"); in h_output()
627 f_print(fout, "#endif\n"); in h_output()
640 f_print(fout, rpcgen_table_dcl); in h_output()
643 f_print(fout, "\n#ifdef __cplusplus\n"); in h_output()
644 f_print(fout, "}\n"); in h_output()
645 f_print(fout, "#endif\n"); in h_output()
647 f_print(fout, "\n#endif /* !_%s */\n", guard); in h_output()
668 f_print(fout, "#include \"%s\"\n", include); in s_output()
671 f_print(fout, "#include <rpc/rpc.h>\n"); in s_output()
673 f_print(fout, "#include <stdio.h>\n"); in s_output()
674 f_print(fout, "#include <stdlib.h> /* getenv, exit */\n"); in s_output()
675 f_print (fout, "#include <rpc/pmap_clnt.h> /* for pmap_unset */\n"); in s_output()
676 f_print (fout, "#include <string.h> /* strcmp */\n"); in s_output()
678 f_print(fout, "#include <rpc/rpc_com.h>\n"); in s_output()
684 f_print(fout, "#include <signal.h>\n"); in s_output()
689 f_print(fout, "#include <sys/ttycom.h> /* TIOCNOTTY */\n"); in s_output()
691 f_print(fout, "#ifdef __cplusplus\n"); in s_output()
692 f_print(fout, in s_output()
694 f_print(fout, "#endif /* __cplusplus */\n"); in s_output()
697 f_print(fout, "#include <fcntl.h> /* open */\n"); in s_output()
698 f_print(fout, "#include <unistd.h> /* fork / setsid */\n"); in s_output()
699 f_print(fout, "#include <sys/types.h>\n"); in s_output()
702 f_print(fout, "#include <string.h>\n"); in s_output()
704 f_print(fout, "#include <sys/socket.h>\n"); in s_output()
705 f_print(fout, "#include <netinet/in.h>\n"); in s_output()
709 f_print(fout, "#include <netconfig.h>\n"); in s_output()
712 f_print(fout, "#include <sys/resource.h> /* rlimit */\n"); in s_output()
714 f_print(fout, "#include <syslog.h>\n"); in s_output()
716 f_print(fout, "\n#ifdef DEBUG\n#define RPC_SVC_FG\n#endif\n"); in s_output()
718 f_print(fout, "\n#define _RPCSVC_CLOSEDOWN %s\n", in s_output()
753 f_print (fout, "#include <string.h> /* for memset */\n"); in l_output()
755 f_print(fout, "#include \"%s\"\n", include); in l_output()
758 f_print(fout, "#include <rpc/rpc.h>\n"); in l_output()
812 f_print(fout, "#include \"%s\"\n", include); in svc_output()
815 f_print(fout, "#include <rpc/rpc.h>\n"); in svc_output()
847 f_print(fout, "#include \"%s\"\n", include); in clnt_output()
850 f_print(fout, "#include <rpc/rpc.h>\n"); in clnt_output()
851 f_print(fout, "#include <stdio.h>\n"); in clnt_output()
852 f_print(fout, "#include <stdlib.h>\n"); in clnt_output()
904 f_print(fout, "\n# This is a template makefile generated\ in mkfile_output()
907 f_print(fout, "\n# Parameters \n\n"); in mkfile_output()
909 f_print(fout, "CLIENT = %s\nSERVER = %s\n\n", in mkfile_output()
911 f_print(fout, "SOURCES_CLNT.c = \nSOURCES_CLNT.h = \n"); in mkfile_output()
912 f_print(fout, "SOURCES_SVC.c = \nSOURCES_SVC.h = \n"); in mkfile_output()
913 f_print(fout, "SOURCES.x = %s\n\n", cmd->infile); in mkfile_output()
914 f_print(fout, "TARGETS_SVC.c = %s %s %s \n", in mkfile_output()
916 f_print(fout, "TARGETS_CLNT.c = %s %s %s \n", in mkfile_output()
918 f_print(fout, "TARGETS = %s %s %s %s %s %s\n\n", in mkfile_output()
922 f_print(fout, "OBJECTS_CLNT = $(SOURCES_CLNT.c:%%.c=%%.o) \ in mkfile_output()
925 f_print(fout, "\nOBJECTS_SVC = $(SOURCES_SVC.c:%%.c=%%.o) \ in mkfile_output()
929 f_print(fout, "\n# Compiler flags \n"); in mkfile_output()
931 f_print(fout, "\nCFLAGS += -D_REENTRANT -D_THEAD_SAFE \nLDLIBS += -pthread\n"); in mkfile_output()
933 f_print(fout, "RPCGENFLAGS = \n"); in mkfile_output()
935 f_print(fout, "\n# Targets \n\n"); in mkfile_output()
937 f_print(fout, "all : $(CLIENT) $(SERVER)\n\n"); in mkfile_output()
938 f_print(fout, "$(TARGETS) : $(SOURCES.x) \n"); in mkfile_output()
939 f_print(fout, "\trpcgen $(RPCGENFLAGS) $(SOURCES.x)\n\n"); in mkfile_output()
941 f_print(fout, "\trpcgen -Sc $(RPCGENFLAGS) $(SOURCES.x) -o %s\n\n", clientname); in mkfile_output()
942 f_print(fout, "\trpcgen -Ss $(RPCGENFLAGS) $(SOURCES.x) -o %s\n\n", servername); in mkfile_output()
944 f_print(fout, "$(OBJECTS_CLNT) : $(SOURCES_CLNT.c) $(SOURCES_CLNT.h) \ in mkfile_output()
947 f_print(fout, "$(OBJECTS_SVC) : $(SOURCES_SVC.c) $(SOURCES_SVC.h) \ in mkfile_output()
949 f_print(fout, "$(CLIENT) : $(OBJECTS_CLNT) \n"); in mkfile_output()
950 f_print(fout, "\t$(CC) -o $(CLIENT) $(OBJECTS_CLNT) \ in mkfile_output()
952 f_print(fout, "$(SERVER) : $(OBJECTS_SVC) \n"); in mkfile_output()
953 f_print(fout, "\t$(CC) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS)\n\n"); in mkfile_output()
954 f_print(fout, "clean:\n\t rm -f core $(TARGETS) $(OBJECTS_CLNT) \ in mkfile_output()
1304 f_print(stderr, "%s\n%s\n%s\n%s\n%s\n", in usage()
1319 f_print(stderr, "options:\n"); in options_usage()
1320 f_print(stderr, "-a\t\tgenerate all files, including samples\n"); in options_usage()
1321 f_print(stderr, "-b\t\tbackward compatibility mode (generates code \ in options_usage()
1323 f_print(stderr, "-c\t\tgenerate XDR routines\n"); in options_usage()
1324 f_print(stderr, "-C\t\tANSI C mode\n"); in options_usage()
1325 f_print(stderr, "-Dname[=value]\tdefine a symbol (same as #define)\n"); in options_usage()
1326 f_print(stderr, "-h\t\tgenerate header file\n"); in options_usage()
1327 f_print(stderr, "-i size\t\tsize at which to start generating\ in options_usage()
1329 f_print(stderr, "-I\t\tgenerate code for inetd support in server\n"); in options_usage()
1330 f_print(stderr, "-K seconds\tserver exits after K seconds of\ in options_usage()
1332 f_print(stderr, "-l\t\tgenerate client side stubs\n"); in options_usage()
1333 f_print(stderr, "-L\t\tserver errors will be printed to syslog\n"); in options_usage()
1334 f_print(stderr, "-m\t\tgenerate server side stubs\n"); in options_usage()
1335 f_print(stderr, "-M\t\tgenerate MT-safe code\n"); in options_usage()
1336 f_print(stderr, "-n netid\tgenerate server code that supports\ in options_usage()
1338 f_print(stderr, "-N\t\tsupports multiple arguments and\ in options_usage()
1340 f_print(stderr, "-o outfile\tname of the output file\n"); in options_usage()
1341 f_print(stderr, "-P\t\tgenerate code for port monitoring support in server\n"); in options_usage()
1342 f_print(stderr, "-s nettype\tgenerate server code that supports named\ in options_usage()
1344 f_print(stderr, "-Sc\t\tgenerate sample client code that uses remote\ in options_usage()
1346 f_print(stderr, "-Ss\t\tgenerate sample server code that defines\ in options_usage()
1348 f_print(stderr, "-Sm \t\tgenerate makefile template \n"); in options_usage()
1350 f_print(stderr, "-t\t\tgenerate RPC dispatch table\n"); in options_usage()
1351 f_print(stderr, "-T\t\tgenerate code to support RPC dispatch tables\n"); in options_usage()
1352 f_print(stderr, "-Y path\t\tpath where cpp is found\n"); in options_usage()