summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen/rpc_svcout.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement nonblocking tpc-connections. rpcgen -m does stillmbr2003-01-161-5/+31
| | | | | | | | produce backcompatible code. Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
* Removal of spaces at EOL. Add __FBSDID. New function xmalloc, xrealloc,charnier2002-07-211-12/+13
| | | | | | | | 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-21/+53
| | | | | | | | | | | | | | | | | | | | | | - 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
* Back out part of previous commit - K&R doesn't have const.des2002-05-091-1/+1
|
* Make _msgout take a const char * rather than a char *.des2002-05-081-2/+2
| | | | Sponsored by: DARPA, NAI Labs
* remove __Pimp2002-03-221-15/+15
|
* Embed $FreeBSD$ as an rcsid[]kris2001-07-191-2/+4
|
* Don't generate syslog() statements which have format string vulnerabilities.kris2001-07-051-2/+2
| | | | MFC after: 1 week
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* Fixed printf format errors.bde1998-08-021-1/+1
|
* General -Wall warning cleanup, part I.jkh1996-07-121-29/+33
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Clean up. (I hope I'm doing this right.)wpaul1995-12-131-85/+891
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-13/+13
|
* Fix rpcgen so that generated files are written to the current workingnate1995-03-041-3/+3
| | | | | | | directory (instead of the same directory as the source files) and that #includes in those files do not contain the path to the source file. Obtained from: J.T. Conklin via NetBSD
* Move RPC stub generator program over from 1.1.5.wollman1994-08-071-0/+276
Submitted by: Original work in 1.x by J. T. Conklin.
OpenPOWER on IntegriCloud