summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen/rpc_cout.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r311947, r311981:pfg2017-01-181-1/+2
| | | | | | | | | | | | | | rpcgen(1): Avoid unused variable warning on generated code. Avoid "unused variable 'i'" warnings in generated .c files by only emitting the "int i;" for non-opaque arrays. Opaque arrays use xdr_opaque() rather than iterating over the array. Obtained from: OpenBSD (CVS rev 1.28) rpcgen(1): Check getrlimit() return for generated code. Obtained from: NetBSD (CVS rev 1.27, 1.28)
* Cleanup unnecessary semicolons from utilities we all love.pfg2016-04-151-1/+1
|
* Plug a memory leak.delphij2010-05-061-0/+1
| | | | MFC after: 2 weeks
* Generate code that doesn't fail gcc 4.2's strict aliasing test.jb2007-11-201-4/+10
|
* Use ANSI definitions.dwmalone2005-11-131-79/+39
| | | | | Avoid using extern by declaring shared functions in header files. Const poision.
* Stop generating the `register' keyword.stefanf2005-09-021-2/+2
|
* Don't generate K&R C code. The -C flag is kept for backwards compatibility.stefanf2005-09-021-15/+6
| | | | Also remove the SIG_PF macro, there is no need to cast closedown.
* - Use prototypes in headers.stefanf2005-08-311-0/+1
| | | | | - Include rpc_scan.h before rpc_util.h for the tok_kind enum. - Nuke unused declarations.
* Rename the variable `inline' to `inline_size'.stefanf2005-08-311-8/+8
|
* Move #ident into #if 0.stefanf2005-05-311-2/+1
|
* Removal of spaces at EOL. Add __FBSDID. New function xmalloc, xrealloc,charnier2002-07-211-25/+20
| | | | | | | | xstrdup. There is a crash() function that do cleaning before exiting the program. The new functions are wrappers that make use of crash() in case of allocation failure. warn, exit -> err. Reviewed by: alfred
* - TI-RPC is now the default again for code generation.alfred2002-07-141-1/+6
| | | | | | | | | | | | | | | | | | | | | | - As before, inetd support support is turned of per default. Code for inetd can be made with -I. - Support for ``transport monitors'' and the NLSPROVIDER env variable is still there , even if their use is not clear in non TLI stream based systems like Free-/NetBSD. It can be activated with -P. - There are a few corrections in rpcgen.1 and usage function to conform to the code. Added and documented -P - I removed the #ifdefs checks for Free-/NetBSD since we are the only ones who use this code. MaxOS X may have the same limitations as we have, so this code will correctly build for them. - Generate correct cflags. Submitted by: mbr, Jean-Luc Richier <Jean-Luc.Richier@imag.fr> PR: bin/29175, misc/27816
* remove __Pimp2002-03-221-10/+10
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Clean up some ambiguous nested if/elses.billf1999-07-041-3/+5
|
* Use err(3), cosmetic in usage(), remove `cmdname'.charnier1997-08-061-7/+8
|
* General -Wall warning cleanup, part I.jkh1996-07-121-31/+37
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Clean up. (I hope I'm doing this right.)wpaul1995-12-131-64/+461
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update rpcgen with the one from the TI-RPC 2.3 distribution. Note that when built for FreeBSD, this version of rpcgen assumes backwards compatibility mode by default. This means that it will produce ONCRPC 4.0 compatible code unless otherwise instructed, instead of the other way around. One incompatibility has also been worked around: this rpcgen normally always emits an '#include <stropts.h>' directive whether you select backwards compatibility mode or not. We don't have STREAMS, so this behavior has been changed: now it will only emit this line if run in TI-RPC mode. The 'generate output files in current directory instead of the directory where the protocol definition file lives' hack from the original rpcgen has been preserved. Notable new features: - Can be used to generate RPC servers that can be launched from port monitors such as inetd(5). - Can generate ANSI C code. - Can generate sample client and server top-level programs and makefiles in addition to the usual client and server stubs. - Can generate inline XDR routines.
* Remove trailing whitespace.rgrimes1995-05-301-9/+9
|
* Move RPC stub generator program over from 1.1.5.wollman1994-08-071-0/+355
Submitted by: Original work in 1.x by J. T. Conklin.
OpenPOWER on IntegriCloud