Lines Matching refs:f_print

257 		f_print(stderr,  in open_output()
264 f_print(stderr, "%s: unable to open ", cmdname); 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()
347 f_print(stderr, "%s: ", cmdname); in open_input()
383 f_print(stderr, "illegal nettype :\'%s\'\n", name); in check_nettype()
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()
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()
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()
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()
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()
877 f_print(stderr, "Out of memory!\n"); in mkfile_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()
986 f_print(stderr, "rpcgen: too many defines\n"); in addarg()
997 f_print(stderr, "rpcgen: arglist coding error\n"); in putarg()
1023 f_print(stderr, in checkfiles()
1062 f_print(stderr, in parseargs()
1206 f_print(stderr, in parseargs()
1215 f_print(stderr, in parseargs()
1222 f_print(stderr, "Cannot use table flags with newstyle.\n"); in parseargs()
1236 f_print(stderr, "\"infile\" is required for template" in parseargs()
1241 f_print(stderr, in parseargs()
1251 f_print(stderr, "%s (%d.%d)\n", cmdname, RPCGEN_MAJOR, RPCGEN_MINOR); in usage()
1252 f_print(stderr, "usage: %s infile\n", cmdname); in usage()
1253 f_print(stderr, "\t%s [-abCLNTMA] [-Dname[=value]] [-i size]" in usage()
1255 f_print(stderr, "\t%s [-c | -h | -l | -m | -t | -Sc | -Ss | -Sm]" in usage()
1257 f_print(stderr, "\t%s [-s nettype]* [-o outfile] [infile]\n", cmdname); in usage()
1258 f_print(stderr, "\t%s [-n netid]* [-o outfile] [infile]\n", cmdname); in usage()
1266 f_print(stderr, "%s %d.%d\n", cmdname, RPCGEN_MAJOR, RPCGEN_MINOR); in version_info()
1274 f_print(stderr, "options:\n"); in options_usage()
1275 f_print(stderr, "-a\t\tgenerate all files, including samples\n"); in options_usage()
1276 f_print(stderr, "-A\t\tgenerate code to enable automatic MT mode\n"); in options_usage()
1277 f_print(stderr, "-b\t\tbackward compatibility mode (generates code" in options_usage()
1279 f_print(stderr, "-c\t\tgenerate XDR routines\n"); in options_usage()
1280 f_print(stderr, "-C\t\tANSI C mode\n"); in options_usage()
1281 f_print(stderr, "-Dname[=value]\tdefine a symbol (same as #define)\n"); in options_usage()
1282 f_print(stderr, "-h\t\tgenerate header file\n"); in options_usage()
1283 f_print(stderr, "-i size\t\tsize at which to start generating" in options_usage()
1285 f_print(stderr, "-I\t\tgenerate code for inetd support in server" in options_usage()
1287 f_print(stderr, "-K seconds\tserver exits after K seconds of" in options_usage()
1289 f_print(stderr, "-l\t\tgenerate client side stubs\n"); in options_usage()
1290 f_print(stderr, "-L\t\tserver errors will be printed to syslog\n"); in options_usage()
1291 f_print(stderr, "-m\t\tgenerate server side stubs\n"); in options_usage()
1292 f_print(stderr, "-M\t\tgenerate MT-safe code\n"); in options_usage()
1293 f_print(stderr, "-n netid\tgenerate server code that supports" in options_usage()
1295 f_print(stderr, "-N\t\tsupports multiple arguments and" in options_usage()
1297 f_print(stderr, "-o outfile\tname of the output file\n"); in options_usage()
1298 f_print(stderr, "-s nettype\tgenerate server code that supports named" in options_usage()
1300 f_print(stderr, "-Sc\t\tgenerate sample client code that uses remote" in options_usage()
1302 f_print(stderr, "-Ss\t\tgenerate sample server code that defines" in options_usage()
1304 f_print(stderr, "-Sm \t\tgenerate makefile template \n"); in options_usage()
1306 f_print(stderr, "-t\t\tgenerate RPC dispatch table\n"); in options_usage()
1307 f_print(stderr, "-T\t\tgenerate code to support RPC dispatch tables\n"); in options_usage()
1308 f_print(stderr, "-v\t\tprint version information and exit\n"); in options_usage()
1309 f_print(stderr, "-Y path\t\tpath where cpp is found\n"); in options_usage()