Commit Graph

22 Commits

Author SHA1 Message Date
jmc
b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
wiz
db579612f4 Definition, not defintion. From miod@openbsd. 2003-09-26 22:25:21 +00:00
itojun
347022e133 use bounded string op - some remains 2003-07-14 11:52:24 +00:00
christos
88fd58993a In no-main mode [rpcgen -C -m], don't declare _rpcfoo variables static.
Let the main program declare them extern if it wants, otherwise we get
link failures for variables not defined.
2003-06-25 19:31:08 +00:00
simonb
276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
christos
277101f13c PR/18866: David A. Holland: missing const keyword in rpcgen output 2002-10-31 02:05:35 +00:00
christos
22a842763e Deal with other sizeof() return issues. We usually cast it to u_int, because
this is what the rpc function argument passing expects, or use socklen_t
as appropriate...
2002-02-05 22:41:47 +00:00
tv
76834aef57 Protect __RCSID and __COPYRIGHT from being invoked if not defined. 2002-01-31 19:36:47 +00:00
mycroft
0c00d4b5f2 Make -N' and -M' work together.
Fix more KNF and ANSI glitches.
2001-03-21 20:11:01 +00:00
mycroft
9c23f31eff Fix a couple of things that disagree with Solaris. 2001-03-21 19:20:18 +00:00
mycroft
b1bad8f693 Add a -M flag, for generating thread-safe stubs, per RedHat.
Also clean up some KNF and ANSI C glitches in -Sc and -Ss output.
2001-03-21 00:30:39 +00:00
is
135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
lukem
99071d1bef KNFify, generate prototypes, etc (to shut up WARNS on generated code) 1997-10-18 10:53:37 +00:00
lukem
03e194f678 - don't generate register variables
- always include syslog.h if -L; remove test for #ifdef SYSLOG
- create ANSI C function prototype in server write_program()
- clean up .Nm usage in man page
- document -L in man page
1997-10-17 15:51:48 +00:00
christos
935794817d - Rename "inline" variable to "doinline" so that we don't need -ansi
- Fix gcc warnings and add netbsd rcsid's
- add WARNS to the Makefile
- Add errx() to unhandled cases where appropriate.
1997-10-11 21:01:26 +00:00
pk
ee0767da08 Always distinguish client and server worker routines (used to be the
case only when compiling in ANSI (`-C') mode).
1995-06-24 14:59:41 +00:00
pk
71a0fb455d Clean up import & propagate NetBSD changes.
Add RCS Ids.
Fix a number of bugs.
Note: this version supports ANSI C code generation.
1995-06-11 21:49:50 +00:00
cgd
2cb53ac7dc convert to use memset, rather than bzero. From Luke Mewburn. 1995-03-06 04:59:08 +00:00
cgd
4ec4c082a9 casts, so that output is a bit happier with prototyped rpc headers. 1994-12-24 17:36:16 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
f19d90d7fe Cleanup for GCC 2. 1993-04-19 07:28:01 +00:00
glass
8f0abce1cd Added rpcgen(1) 1993-04-03 00:51:49 +00:00