aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken -a functionality.Martin Blapp2003-06-191-1/+1
| | | | | | | | | | | Reviewed by: phk Submitted by: Martin Kammerhofer <mkamm@gmx.net> PR: 53451 MFC: 1 week Notes: svn path=/head/; revision=116578
* Implement nonblocking tpc-connections. rpcgen -m does stillMartin Blapp2003-01-162-5/+33
| | | | | | | | | | | produce backcompatible code. Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day Notes: svn path=/head/; revision=109363
* mdoc(7) police: markup polishing.Ruslan Ermilov2002-11-261-6/+6
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107276
* Removal of spaces at EOL. Add __FBSDID. New function xmalloc, xrealloc,Philippe Charnier2002-07-2114-209/+244
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=100441
* WARNS=2Alfred Perlstein2002-07-142-3/+1
| | | | Notes: svn path=/head/; revision=99980
* - TI-RPC is now the default again for code generation.Alfred Perlstein2002-07-1412-145/+132
| | | | | | | | | | | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=99979
* Back out part of previous commit - K&R doesn't have const.Dag-Erling Smørgrav2002-05-091-1/+1
| | | | Notes: svn path=/head/; revision=96246
* Make _msgout take a const char * rather than a char *.Dag-Erling Smørgrav2002-05-081-2/+2
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=96219
* Use `The .Nm utility'Philippe Charnier2002-04-201-7/+11
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-2210-89/+93
| | | | Notes: svn path=/head/; revision=92921
* Have rpcgen output the prototypes for the dispatch tablesAlfred Perlstein2001-11-131-0/+19
| | | | Notes: svn path=/head/; revision=86318
* Don't overflow a buffer from command line arguments.Kris Kennaway2001-08-201-2/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=81956
* Embed $FreeBSD$ as an rcsid[]Kris Kennaway2001-07-191-2/+4
| | | | Notes: svn path=/head/; revision=79880
* Remove whitespace at EOL.Dima Dorfman2001-07-151-27/+27
| | | | Notes: svn path=/head/; revision=79755
* Don't generate syslog() statements which have format string vulnerabilities.Kris Kennaway2001-07-051-2/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=79295
* Turn -b (BSD socket compat mode) back on by default, as we don't have TLI/XTIAlfred Perlstein2001-04-132-0/+19
| | | | Notes: svn path=/head/; revision=75497
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-3/+3
| | | | Notes: svn path=/head/; revision=74848
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-194-23/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=74462
* Have rpcgen actually tell us what cpp it is looking for (as it would if weDavid E. O'Brien2001-01-101-1/+1
| | | | | | | were SVR%). Notes: svn path=/head/; revision=70899
* Use /usr/bin/cpp as on NetBSD, not /usr/libexec/cpp.David E. O'Brien2001-01-091-3/+1
| | | | Notes: svn path=/head/; revision=70849
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-7/+7
| | | | Notes: svn path=/head/; revision=68963
* Include sys/types.hBrian Somers2000-10-161-0/+4
| | | | Notes: svn path=/head/; revision=67191
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-5/+10
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* Reduce the number of args to .%T to an acceptable number byChris Costello2000-02-141-1/+1
| | | | | | | | removing the `Nm' command from the line. This means that %T will actually work. Notes: svn path=/head/; revision=57193
* Fxi various man pages to stop abusing the .Bx macro to generateMike Pritchard2000-01-231-3/+3
| | | | | | | | | | the string "FreeBSD". Use the .Fx macro instead. Also did some minor re-wording/formatting to work around a deficiency with the .Fx macro when it comes to puncuation characters other than periods and commas. Notes: svn path=/head/; revision=56412
* mdoc(7)'fyAlexey Zelkin1999-10-301-7/+4
| | | | Notes: svn path=/head/; revision=52671
* $Id$ -> $FreeBSD$Peter Wemm1999-08-285-5/+5
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Clean up some ambiguous nested if/elses.Bill Fumerola1999-07-041-3/+5
| | | | Notes: svn path=/head/; revision=48566
* Backed out previous commit. The bug was in rev.1.49 of src/Makefile.inc1,Bruce Evans1999-01-041-1/+1
| | | | | | | | | | | | | so it can't be completely fixed here. Putting -I paths to the current headers in CFLAGS is more likely to break things than fix them, since there is no reason why current headers should work with old libraries. Other Makefiles that do this may only work because they are not used early in the bootstrap. However, the usual problem with errno being defined in terms of a nonexistent library doesn't seem to occur here, since we don't reference errno. Notes: svn path=/head/; revision=42286
* Fix a build problem when upgrading from 9 month old sources. There'sChuck Robey1999-01-041-1/+1
| | | | | | | | | | | | | a circular dependency problem, wherein rpcgen depends on the latest includes, but those same includes depend on rpcgen to build include/rpcsvc. This was causing the build or librpcsvc to fail (like I said, only on upgrades of 9 month old sources). If there's stylistic problems, tell me, I'll learn and fix them. I did a buildworld with this, it should be safe. Notes: svn path=/head/; revision=42275
* include <pthread.h>David E. O'Brien1998-09-252-2/+6
| | | | | | | Submitted by: Alexander Leidinger <netchild@wurzelausix.CS.Uni-SB.DE> Notes: svn path=/head/; revision=39642
* Add support for the RPC 64-bit integer type ``hyper''.David E. O'Brien1998-09-081-2/+2
| | | | Notes: svn path=/head/; revision=38952
* Fixed printf format errors.Bruce Evans1998-08-022-2/+2
| | | | Notes: svn path=/head/; revision=38022
* PR: docs/5628Peter Hawkins1998-06-061-1/+1
| | | | | | | | Submitted by: MITSUNAGA Noriaki mitchy@er.ams.eng.osaka-u.ac.jp Correct formatting error in display of the "-i size" option description section. Notes: svn path=/head/; revision=36700
* Fix a #ifndef that became a #ifdef and changed the defaultJohn Birrell1998-03-071-2/+2
| | | | | | | | | behaviour of rpcgen. Noticed by: bde Notes: svn path=/head/; revision=34147
* Add #ifdefs for __NetBSD__ in the rest of the places where __FreeBSD__John Birrell1998-01-151-12/+12
| | | | | | | | | | | | is defined so that this program behaves the same when built with either set of tools. The only difference is where the pre-processor is found. And that is a bug - it should check the CPP environment variable and the path before just assuming that the compiled in path is OK. I guess we should be using -Y ${WORLDPATH}/usr/bin/cpp during a bootstrap build. Notes: svn path=/head/; revision=32523
* Add __NetBSD__ in a couple of places to allow this program toJohn Birrell1998-01-091-3/+5
| | | | | | | | compile under NetBSD, but behave like FreeBSD. For the time being, look for NetBSD's cpp in /usr/bin. Notes: svn path=/head/; revision=32362
* Convert to mdoc.Philippe Charnier1997-11-031-360/+323
| | | | Notes: svn path=/head/; revision=30909
* Use err(3), cosmetic in usage(), remove `cmdname'.Philippe Charnier1997-08-064-68/+58
| | | | Notes: svn path=/head/; revision=27935
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-1211-187/+221
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17142
* Minor cleanup of the rpc man pages to silence manck.Mike Pritchard1996-02-121-3/+3
| | | | Notes: svn path=/head/; revision=14040
* Correct some manual page cross reference errors. E.g. su is a sectionMike Pritchard1996-02-021-6/+4
| | | | | | | | one man page, not section eight. This is the first round of such changes and only fixes man pages in manual section one. Notes: svn path=/head/; revision=13835
* Clean up. (I hope I'm doing this right.)Bill Paul1995-12-1313-679/+4152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=12798
* This commit was generated by cvs2svn to compensate for changes in r12795,Bill Paul1995-12-132-0/+482
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=12796
| * Import a newer and more functional version of rpcgen.vendor/rpcgenBill Paul1995-12-1315-0/+7411
| | | | | | | Obtained from: the Sun TI-RPC 2.3 source distribution Notes: svn path=/cvs2svn/branches/SUNRPC/; revision=12795
* Remove trailing whitespace.Rodney W. Grimes1995-05-3012-127/+127
| | | | Notes: svn path=/head/; revision=8874
* End of listcan be not marked, fix itAndrey A. Chernov1995-05-151-1/+2
| | | | | | | Submitted by: Kai Vorma <vode@snakemail.hut.fi> Notes: svn path=/head/; revision=8526
* Fix rpcgen so that generated files are written to the current workingNate Williams1995-03-042-7/+13
| | | | | | | | | | 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 Notes: svn path=/head/; revision=6886
* Move RPC stub generator program over from 1.1.5.Garrett Wollman1994-08-0713-0/+3449
Submitted by: Original work in 1.x by J. T. Conklin. Notes: svn path=/head/; revision=1897