christos
f3e1b062a3
indentation police.
2008-03-08 19:49:08 +00:00
christos
915f599cbf
From FreeBSD via Jukka Salmi: Don't coredump on stdin.
2008-02-29 22:27:15 +00:00
hubertf
3618b9ac2c
It's RPCGEN_CPP, not RPCGEN_RSH
...
Pointed out on tech-userlevel by Anthony Mallet <anthony.mallet@useless-ficus.net>
2008-01-19 14:22:05 +00:00
christos
e451ddaaa8
- Make the msdos and non-msdos cpp handling use the same variable $RPCGEN_CPP
...
instead of one using $CPP and the other using $RPCGENCPP, following suit with
RDIST_RSH, CVS_RSH, etc. and document it.
- make the msdos environment variable take precedence over path search.
2008-01-15 20:04:48 +00:00
dholland
cbae618808
sizeof(char) is always 1. Conversely, however, CHAR_BIT is not always 8.
...
reviewed: mrg
2008-01-12 05:49:46 +00:00
mrg
6f4493cd5c
xdr sucks. sprinkle some (void *) casts into it's functions taking void **,
...
and shut up GCC4.
2006-05-11 17:11:57 +00:00
christos
cda1870a45
Coverity CID 28: Fix resource leak.
2006-04-04 21:29:42 +00:00
christos
99f1624bd3
Coverity CID 97: Remove dead code.
2006-04-04 21:27:42 +00:00
elad
c080c43ef1
plug leak, coverity cid 98.
2006-03-20 17:03:08 +00:00
elad
3e7dafb547
plug leak, coverity cid 94.
2006-03-20 17:01:26 +00:00
elad
6bceef66d3
- plug leak in generate_guard()
...
- plug leak in h_output(), coverity cid 100
2006-03-20 16:58:13 +00:00
dsl
d0ad315f4f
Add (unsigned char) cast to ctype functions
2004-11-01 21:39:32 +00:00
mycroft
61290f9727
Fix function calls in the sample server to use the right function name.
...
From PR 4411.
2004-07-06 07:07:15 +00:00
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
0b35256a71
Sort options; drop trailing space and a superfluous s.
2004-05-12 18:49:30 +00:00
christos
b1f894b9cc
add a 'v' flag to display a version number so that our usage matches with
...
everyone else's rpcgen.
2004-05-12 15:59:54 +00:00
christos
88011fdf59
One step closer to reality:
...
- missing flags described
- synopsis was wrong
- explain -b better
2004-05-12 15:58:12 +00:00
kleink
b8b70c35bd
No need to document -b twice; from mrg.
2004-05-12 13:02:01 +00:00
kleink
ec0a506605
Sync with reality: -b hasn't been the default for almost 4 years.
2004-05-11 23:19:56 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
itojun
50847da5c5
safer use of realloc
2003-10-16 06:56:17 +00:00
wiz
db579612f4
Definition, not defintion. From miod@openbsd.
2003-09-26 22:25:21 +00:00
martin
e6583feed7
Remove special case handling for $CPP and use execvp() instead.
...
Patch from Hiramatsu Yoshifumi in PR bin/22311, with minor cosmetic
adjustment suggested by Luke Mewburn. OK'd by Frank van der Linden.
2003-08-05 21:26:55 +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
lukem
826a14607a
Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
...
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
simonb
276fd1665c
The Double-Semi-Colon Police.
2003-01-20 05:29:53 +00:00
wiz
1aad114a16
Bump date for -b, -I addition; drop trailing whitespace; separate SEE ALSO
...
entries with a comma.
2003-01-06 19:26:17 +00:00
sommerfeld
35e929d5c4
Document some previously undocumented options.
2003-01-05 19:28:13 +00:00
christos
277101f13c
PR/18866: David A. Holland: missing const keyword in rpcgen output
2002-10-31 02:05:35 +00:00
grant
be8ae688ae
New sentence, new line.
2002-09-30 11:08:56 +00:00
itojun
f51456c273
err/errx/warn/warnx do not need \n at the end
2002-06-11 06:06:18 +00:00
yamt
c847d4ad9d
make auto const variables static.
2002-06-08 15:00:17 +00:00
christos
285fe0ec7a
Make sure that we set *objp back to the decoded argument; pointed by
...
by Ben Harris.
2002-02-06 02:23:45 +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
christos
91caf38a2a
- Cast pointer casts to (void *) first to shut-up lint
...
- Deal with variable size enums, by generating assignment to an enum_t variable.
- Use f_print everywhere instead of fprintf - when in Rome...
- I don't understand the value of the unexplained hack. Use IXDR_{U_,}INT32
instead of IXDR_{U_,}LONG.
With those changes our generated librpcsvc files pass lint.
2002-02-05 22:05:42 +00:00
christos
ed811ba9a7
Don't spit out a trailing comma as the last member of an enum.
2002-02-05 22:03:01 +00:00
christos
0a8ad43664
cast ~0 to (u_int) because it is aimed at the size argument of the xdr function.
2002-02-05 22:02:15 +00:00
tv
9fbd88883c
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
...
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
76834aef57
Protect __RCSID and __COPYRIGHT from being invoked if not defined.
2002-01-31 19:36:47 +00:00
tv
a328e34106
Make almost all tools compile and run properly on non-NetBSD hosts. (In
...
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
wiz
c6fb5ebc2f
Use Sx, use standard headers, drop a .Pp.
2001-12-08 19:12:34 +00:00
kleink
1cb980bd1a
Remove an extraneous opening brace from newstyle output, apparently missed
...
in rev. 1.6; fixes PR misc/14066.
2001-09-26 20:51:39 +00:00
tv
dba5d44670
Add hooks to allow toolchain bits to be reachover-built at the top level.
2001-08-14 10:18:26 +00:00
wiz
b2ff05f424
Update date (-M added some time ago). Markup and punctuation fixes.
...
Move SEE ALSO section in correct place.
2001-04-04 09:41:36 +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
b174b0ec84
Sample client needs stdio.h for printf() prototype.
2001-03-21 05:52:11 +00:00
mycroft
71bd2bfc03
Remove an unneeded variable.
2001-03-21 00:31:52 +00:00