#
312386 |
|
18-Jan-2017 |
pfg |
MFC r311947, r311981:
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)
|
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
241737 |
|
19-Oct-2012 |
ed |
More -Wmissing-variable-declarations fixes.
In addition to adding `static' where possible:
- bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
|
#
228992 |
|
30-Dec-2011 |
uqs |
Spelling fixes for usr.bin/
|
#
222080 |
|
18-May-2011 |
benl |
Fix clang warnings.
Note: these were actually bugs (printf with no format string).
Approved by: philip (mentor)
|
#
181630 |
|
12-Aug-2008 |
dfr |
When generating thread-safe server code, handle procedures with void return types correctly.
|
#
171932 |
|
23-Aug-2007 |
delphij |
Use POSIX mutex instead of Solaris ones. This makes generation of threaded RPC servers to work out of the box.
Spotted by: Changming Sun <changming at staff.sina.com.cn> Sponsored by: SINA Corporation Approved by: re (kensmith)
|
#
170825 |
|
16-Jun-2007 |
se |
Never define the generated rpc server main function with storage type "static". The header file generated by "rpcgen -h" will always declare it as extern, leading to a "static after extern" error being issued by gcc-4.2. This caused only a warning in gcc-3.x, but it has been wrong all the time.
This change does not modify the code generated by "rpcgen -m", it only affects rpcgen used to generate server stubs with a local main function.
This is the minimal patch. It does not remove the now obsolete "storage" parameter from write_program() and write_programs() in an attempt to keep differences to other systems' versions of rpcgen as small as possible.
|
#
158713 |
|
17-May-2006 |
rwatson |
In change 1.15, an arbitrary setting of the max RPC record size to RPC_MAXDATASIZE was introduced. This is believed to have been debugging code committed accidentally, although I've been unable to reach the committer to confirm this. The effect was to limit the size of RPCs on TCP and UDP to 9k, well below the default protocol limits in the libc rpc code. This change simply removes these introduced limits, falling back on the libc definitions.
PR: 88856 Reported by: Keith Bostic <bostic at sleepycat dot com> Testing by: Susan LoVerso <sue at loverso dot southborough dot ma dot us> Reveiwed by: cel, rees Review timeout: alfred, mbr MFC after: 2 weeks
|
#
152398 |
|
13-Nov-2005 |
dwmalone |
Use ANSI definitions. Avoid using extern by declaring shared functions in header files. Const poision.
|
#
149733 |
|
02-Sep-2005 |
stefanf |
Use socklen_t variables when passing sizes to getsockname() and getsockopt().
|
#
149729 |
|
02-Sep-2005 |
stefanf |
Fix a syntax error in the generated code when invoked with -P. Note that the generated code still doesn't compile as we lack tinfo, t_getinfo and friends.
|
#
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.
|
#
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.
|
#
109363 |
|
16-Jan-2003 |
mbr |
Implement nonblocking tpc-connections. rpcgen -m does still produce backcompatible code.
Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
|
#
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
|
#
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
|
#
96246 |
|
09-May-2002 |
des |
Back out part of previous commit - K&R doesn't have const.
|
#
96219 |
|
08-May-2002 |
des |
Make _msgout take a const char * rather than a char *.
Sponsored by: DARPA, NAI Labs
|
#
92921 |
|
21-Mar-2002 |
imp |
remove __P
|
#
79880 |
|
18-Jul-2001 |
kris |
Embed $FreeBSD$ as an rcsid[]
|
#
79295 |
|
05-Jul-2001 |
kris |
Don't generate syslog() statements which have format string vulnerabilities.
MFC after: 1 week
|
#
74462 |
|
19-Mar-2001 |
alfred |
Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 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
|
#
38022 |
|
02-Aug-1998 |
bde |
Fixed printf format errors.
|
#
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.
|
#
6886 |
|
04-Mar-1995 |
nate |
Fix rpcgen so that generated files are written to the current working 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
|
#
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.
|