OS Manuals

/usr/bin/rpcgen

Remote Procedure Call (RPC) protocol compiler

From rpcgen 3.1.1-r0 (os), captured 2026-11-05 by running rpcgen --help (exit 0). permalink

Also provided by 1 other package version
usage: /usr/bin/rpcgen infile
	/usr/bin/rpcgen [-abkCLNTM][-Dname[=value]] [-i size] [-I [-K seconds]] [-Y path] infile
	/usr/bin/rpcgen [-c | -h | -l | -m | -t | -Sc | -Ss | -Sm] [-o outfile] [infile]
	/usr/bin/rpcgen [-s nettype]* [-o outfile] [infile]
	/usr/bin/rpcgen [-n netid]* [-o outfile] [infile]
options:
-a		generate all files, including samples
-b		backward compatibility mode (generates code for SunOS 4.1)
-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 generating inline code
-I		generate code for inetd support in server (for SunOS 4.1)
-K seconds	server exits after K seconds of inactivity
-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 supports named netid
-N		supports multiple arguments and call-by-value
-o outfile	name of the output file
-s nettype	generate server code that supports named nettype
-Sc		generate sample client code that uses remote procedures
-Ss		generate sample server code that defines remote procedures
-Sm 		generate makefile template
-t		generate RPC dispatch table
-T		generate code to support RPC dispatch tables
-Y path		directory name to find C preprocessor (cpp)
-5		SysVr4 compatibility mode
--help		give this help list
--version	print program version
Options (27)
OptionDescriptionSource
-aGenerate all the files including sample code for client and server side.help + man
-bbackward compatibility mode (generates code for SunOS 4.1)help + man
-cCompile into XDR routines.help + man
-CGenerate code in ANSI C.help + man
-Dname valuedefine a symbol (same as #define)help
-hCompile into C data-definitions (a header file).help + man
-i sizesize at which to start generating inline codehelp
-Igenerate code for inetd support in server (for SunOS 4.1)help + man
-K secondsBy default, services created using rpcgen wait 120 seconds after servicing a request before exiting.help + man
-lCompile into client-side stubs.help + man
-Lserver errors will be printed to sysloghelp
-mCompile into server-side stubs, but do not generate a “main” routine.help + man
-MGenerate multithread-safe stubs for passing arguments and results between rpcgen-generated code and user written code.help + man
-n netidCompile into server-side stubs for the transport specified by netid.help + man
-Nsupports multiple arguments and call-by-valuehelp + man
-o outfileSpecify the name of the output file.help + man
-s nettypeCompile into server-side stubs for all the transports belonging to the class nettype.help + man
-ScGenerate sample code to show the use of remote procedure and how to bind to the server before calling the client side stubs generated by rpcgen.help + man
-SsGenerate skeleton code for the remote procedures on the server side.help + man
-SmGenerate a sample Makefile which can be used for compiling the application.help + man
-tCompile into RPC dispatch table.help + man
-TGenerate the code to support RPC dispatch tables.help + man
-Y pathdirectory name to find C preprocessor (cpp)help
-5This generates code for the SysVr4 style of rpc.help + man
--helpgive this help listhelp
--versionprint program versionhelp
-kGenerate code in K&R C. (in the manual page but not in --help)man
Examples (4) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.