• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/usr.bin/rpcgen/

Lines Matching refs:f_print

263 	f_print(fout, "/*\n");
264 f_print(fout, " * Please do not edit this file.\n");
265 f_print(fout, " * It was generated using rpcgen.\n");
266 f_print(fout, " */\n\n");
391 f_print(fout, "#include \"%s\"\n", include);
395 f_print(fout, "#include <rpc/rpc.h>\n");
501 f_print(fout, "#ifndef _%s\n#define _%s\n\n", guard,
504 f_print(fout, "#include <rpc/rpc.h>\n");
507 f_print(fout, "#include <pthread.h>\n");
511 f_print(fout, "\n#ifdef __cplusplus\n");
512 f_print(fout, "extern \"C\" {\n");
513 f_print(fout, "#endif\n\n");
536 f_print(fout,
540 f_print(fout, "\n#ifdef __cplusplus\n");
541 f_print(fout, "extern \"C\" {\n");
542 f_print(fout, "#endif\n");
555 f_print(fout, rpcgen_table_dcl);
558 f_print(fout, "\n#ifdef __cplusplus\n");
559 f_print(fout, "}\n");
560 f_print(fout, "#endif\n");
562 f_print(fout, "\n#endif /* !_%s */\n", guard);
583 f_print(fout, "#include \"%s\"\n", include);
586 f_print(fout, "#include <rpc/rpc.h>\n");
588 f_print(fout, "#include <stdio.h>\n");
589 f_print(fout, "#include <stdlib.h> /* getenv, exit */\n");
590 f_print (fout, "#include <rpc/pmap_clnt.h> /* for pmap_unset */\n");
591 f_print (fout, "#include <string.h> /* strcmp */\n");
593 f_print(fout, "#include <rpc/rpc_com.h>\n");
599 f_print(fout, "#include <signal.h>\n");
604 f_print(fout, "#include <sys/ttycom.h> /* TIOCNOTTY */\n");
606 f_print(fout, "#ifdef __cplusplus\n");
607 f_print(fout,
609 f_print(fout, "#endif /* __cplusplus */\n");
612 f_print(fout, "#include <fcntl.h> /* open */\n");
613 f_print(fout, "#include <unistd.h> /* fork / setsid */\n");
614 f_print(fout, "#include <sys/types.h>\n");
617 f_print(fout, "#include <string.h>\n");
619 f_print(fout, "#include <sys/socket.h>\n");
620 f_print(fout, "#include <netinet/in.h>\n");
624 f_print(fout, "#include <netconfig.h>\n");
627 f_print(fout, "#include <sys/resource.h> /* rlimit */\n");
629 f_print(fout, "#include <syslog.h>\n");
631 f_print(fout, "\n#ifdef DEBUG\n#define RPC_SVC_FG\n#endif\n");
633 f_print(fout, "\n#define _RPCSVC_CLOSEDOWN %s\n",
668 f_print (fout, "#include <string.h> /* for memset */\n");
670 f_print(fout, "#include \"%s\"\n", include);
673 f_print(fout, "#include <rpc/rpc.h>\n");
727 f_print(fout, "#include \"%s\"\n", include);
730 f_print(fout, "#include <rpc/rpc.h>\n");
762 f_print(fout, "#include \"%s\"\n", include);
765 f_print(fout, "#include <rpc/rpc.h>\n");
766 f_print(fout, "#include <stdio.h>\n");
767 f_print(fout, "#include <stdlib.h>\n");
819 f_print(fout, "\n# This is a template makefile generated\
822 f_print(fout, "\n# Parameters \n\n");
824 f_print(fout, "CLIENT = %s\nSERVER = %s\n\n",
826 f_print(fout, "SOURCES_CLNT.c = \nSOURCES_CLNT.h = \n");
827 f_print(fout, "SOURCES_SVC.c = \nSOURCES_SVC.h = \n");
828 f_print(fout, "SOURCES.x = %s\n\n", cmd->infile);
829 f_print(fout, "TARGETS_SVC.c = %s %s %s \n",
831 f_print(fout, "TARGETS_CLNT.c = %s %s %s \n",
833 f_print(fout, "TARGETS = %s %s %s %s %s %s\n\n",
837 f_print(fout, "OBJECTS_CLNT = $(SOURCES_CLNT.c:%%.c=%%.o) \
840 f_print(fout, "\nOBJECTS_SVC = $(SOURCES_SVC.c:%%.c=%%.o) \
844 f_print(fout, "\n# Compiler flags \n");
846 f_print(fout, "\nCFLAGS += -D_REENTRANT -D_THEAD_SAFE \nLDLIBS += -pthread\n");
848 f_print(fout, "RPCGENFLAGS = \n");
850 f_print(fout, "\n# Targets \n\n");
852 f_print(fout, "all : $(CLIENT) $(SERVER)\n\n");
853 f_print(fout, "$(TARGETS) : $(SOURCES.x) \n");
854 f_print(fout, "\trpcgen $(RPCGENFLAGS) $(SOURCES.x)\n\n");
856 f_print(fout, "\trpcgen -Sc $(RPCGENFLAGS) $(SOURCES.x) -o %s\n\n", clientname);
857 f_print(fout, "\trpcgen -Ss $(RPCGENFLAGS) $(SOURCES.x) -o %s\n\n", servername);
859 f_print(fout, "$(OBJECTS_CLNT) : $(SOURCES_CLNT.c) $(SOURCES_CLNT.h) \
862 f_print(fout, "$(OBJECTS_SVC) : $(SOURCES_SVC.c) $(SOURCES_SVC.h) \
864 f_print(fout, "$(CLIENT) : $(OBJECTS_CLNT) \n");
865 f_print(fout, "\t$(CC) -o $(CLIENT) $(OBJECTS_CLNT) \
867 f_print(fout, "$(SERVER) : $(OBJECTS_SVC) \n");
868 f_print(fout, "\t$(CC) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS)\n\n");
869 f_print(fout, "clean:\n\t rm -f core $(TARGETS) $(OBJECTS_CLNT) \
1220 f_print(stderr, "%s\n%s\n%s\n%s\n%s\n",
1235 f_print(stderr, "options:\n");
1236 f_print(stderr, "-a\t\tgenerate all files, including samples\n");
1237 f_print(stderr, "-b\t\tbackward compatibility mode (generates code \
1239 f_print(stderr, "-c\t\tgenerate XDR routines\n");
1240 f_print(stderr, "-C\t\tANSI C mode\n");
1241 f_print(stderr, "-Dname[=value]\tdefine a symbol (same as #define)\n");
1242 f_print(stderr, "-h\t\tgenerate header file\n");
1243 f_print(stderr, "-i size\t\tsize at which to start generating\
1245 f_print(stderr, "-I\t\tgenerate code for inetd support in server\n");
1246 f_print(stderr, "-K seconds\tserver exits after K seconds of\
1248 f_print(stderr, "-l\t\tgenerate client side stubs\n");
1249 f_print(stderr, "-L\t\tserver errors will be printed to syslog\n");
1250 f_print(stderr, "-m\t\tgenerate server side stubs\n");
1251 f_print(stderr, "-M\t\tgenerate MT-safe code\n");
1252 f_print(stderr, "-n netid\tgenerate server code that supports\
1254 f_print(stderr, "-N\t\tsupports multiple arguments and\
1256 f_print(stderr, "-o outfile\tname of the output file\n");
1257 f_print(stderr, "-P\t\tgenerate code for port monitoring support in server\n");
1258 f_print(stderr, "-s nettype\tgenerate server code that supports named\
1260 f_print(stderr, "-Sc\t\tgenerate sample client code that uses remote\
1262 f_print(stderr, "-Ss\t\tgenerate sample server code that defines\
1264 f_print(stderr, "-Sm \t\tgenerate makefile template \n");
1266 f_print(stderr, "-t\t\tgenerate RPC dispatch table\n");
1267 f_print(stderr, "-T\t\tgenerate code to support RPC dispatch tables\n");
1268 f_print(stderr, "-Y path\t\tpath where cpp is found\n");