History log of /freebsd-9.3-release/usr.bin/rpcgen/rpc_hout.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 222080 18-May-2011 benl

Fix clang warnings.

Note: these were actually bugs (printf with no format string).

Approved by: philip (mentor)


# 201382 02-Jan-2010 ed

ANSIfy various tools in usr.bin/.

Most of these tools properly build at WARNS=6, except for their K&R
function declarations. Fix this, so we can bump WARNS as well.


# 200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


# 200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


# 152398 13-Nov-2005 dwmalone

Use ANSI definitions.
Avoid using extern by declaring shared functions in header files.
Const poision.


# 149710 02-Sep-2005 stefanf

Stop generating the `register' keyword.


# 149709 02-Sep-2005 stefanf

Don't generate K&R C code. The -C flag is kept for backwards compatibility.
Also remove the SIG_PF macro, there is no need to cast closedown.


# 149695 01-Sep-2005 stefanf

Only write the dispatch table function prototypes to the header if the -h
flag was specified. If all files are generated at once, those functions are
static and shouldn't appear in the header.

PR: 84450
Reviewed by: alfred


# 149682 31-Aug-2005 stefanf

- Use prototypes in headers.
- Include rpc_scan.h before rpc_util.h for the tok_kind enum.
- Nuke unused declarations.


# 146833 31-May-2005 stefanf

Move #ident into #if 0.


# 100441 21-Jul-2002 charnier

Removal of spaces at EOL. Add __FBSDID. New function xmalloc, xrealloc,
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


# 99980 14-Jul-2002 alfred

WARNS=2


# 99979 14-Jul-2002 alfred

- TI-RPC is now the default again for code generation.

- 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


# 92921 21-Mar-2002 imp

remove __P


# 86318 13-Nov-2001 alfred

Have rpcgen output the prototypes for the dispatch tables


# 17142 12-Jul-1996 jkh

General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>


# 12798 13-Dec-1995 wpaul

Clean up. (I hope I'm doing this right.)

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.


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 1897 07-Aug-1994 wollman

Move RPC stub generator program over from 1.1.5.

Submitted by: Original work in 1.x by J. T. Conklin.