Commit Graph

317 Commits

Author SHA1 Message Date
yamt
b848cb996c rpc_errlist:
- add some missing error numbers.
	- while i'm here, use c99 initializer.
clnt_sperrno:
	- handle NULL in rpc_errlist as it's now sparse.
2006-07-08 05:54:45 +00:00
christos
eadd73deca Centralize the TCP_NODELAY handling as discussed in tech-net. 2006-06-22 19:35:34 +00:00
christos
f5bdde5936 Coverity CID 3651: Don't leak ifaddrs on getaddrinfo failure. 2006-05-18 20:42:52 +00:00
christos
06f18c1c0d XXX: GCC uninitialized variable. 2006-05-14 02:15:31 +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
drochner
a781fb5f1e fix some unpaired sigblocks which possibly leave the process with all
signals blocked,
this might some problems with the Gnome GUI which uses RPC to communicate
with "fam" (file access monitor), in particular it might fix PR pkg/22483
by jmmv
2006-04-25 18:54:51 +00:00
drochner
8c54151993 -fix uninitialized variable introduced in previous
(found by gcc:-)
-minor prototype cleanup
2006-03-22 12:51:32 +00:00
christos
999efc5191 Coverity CID 2291: Move function call before allocating storage to prevent
memory leak on error.
2006-03-22 00:02:00 +00:00
christos
3a135d2872 Coverity CID 2292: Plug memory leak. 2006-03-22 00:00:16 +00:00
christos
a742aacd73 Coverity CID 2293: Fix memory leak. 2006-03-21 23:58:24 +00:00
christos
2260be176f Coverity CID 710: Remove unreachable code. 2006-03-19 03:00:49 +00:00
christos
7f6a77ef9b Coverity CID 711: Remove dead code. 2006-03-19 02:56:48 +00:00
christos
4435b15478 Coverity CID 779: Avoid NULL pointer deref. 2006-03-19 02:41:16 +00:00
christos
d06c1d3e9d Coverity CID 780: Avoid NULL pointer deref. 2006-03-19 02:37:59 +00:00
christos
039456c06d Coverity CID 2275: Avoid memory leak on error. 2006-03-19 01:46:38 +00:00
christos
66ad4bce4f Coverity CID 2276: Don't leak memory on error. 2006-03-19 01:44:48 +00:00
christos
cd29290e3d Coverity CID 2277: Don't leak memory on error. 2006-03-19 01:43:11 +00:00
christos
642f32cf85 Coverity CID 2283: Don't leak sys_auth on error. 2006-03-19 01:40:09 +00:00
christos
50e6bed2e2 Coverity CID 2284: Fix multiple memory leaks. 2006-03-19 01:37:59 +00:00
kleink
4e50f4b644 Need to give the various rpc locks private names (prefixing them with
__rpc_).  Rather than scattering changes around the 3rd-party RPC
code, place them in namespace.h.
2006-01-26 12:37:11 +00:00
christos
349408700d PR/32572: John Kohl: xdr_rec.c missing a bugfix for an improper security check
The correct way to check for a zero record length is to check for it
without the LAST_FRAG marker in it, since it's legal to send a LAST_FRAG
marker with 0 bytes of data.
[This should be pulled up to 3.0]
2006-01-19 16:40:44 +00:00
perry
fd18408b9a u_intN_t -> uintN_t 2005-12-26 19:40:14 +00:00
jmc
4c00a49dad XXXGCC: Make a local extern for abort and the vax compiler is happy again. 2005-12-13 05:54:50 +00:00
christos
4700123ef3 fix a typo , instead of ; From Johnny Billquist 2005-12-10 04:01:58 +00:00
yamt
347f995cea - constify and remove __UNCONST from caller of clnt_call().
- use __UNCONST where approproate.
2005-12-03 15:16:19 +00:00
yamt
c9d01e68e9 use __UNCONST rather than having a writable string. 2005-12-02 12:19:16 +00:00
christos
03256c6e55 WARNS=4 2005-11-29 03:11:58 +00:00
christos
256f6fe18d remove _REENTRANT bogus signal mask code; pointed out by chuq. 2005-11-07 18:12:33 +00:00
rpaulo
b5e9a2e4c2 Use the kqueue(2) framework instead of the poll(2) system call to wait
for replies and timeouts in the conectionless (UDP) RPC client
code. Based on similar changes from FreeBSD in rev 1.15.

Reviewed by Christos Zoulas.
2005-10-13 23:40:08 +00:00
jmmv
c01fa667f5 Fix build: maskp should be a pointer to a sigset_t. Hi, christos@! 2005-09-10 09:04:11 +00:00
christos
68f654dc66 Convert the rest of the code to use pollts for consistency. XXX: We should
really use kqueue.
2005-09-09 15:41:27 +00:00
christos
fa92811fc7 PR/31264: Mark Davies: rup not interruptable
The cause of this is that in the re-entrant case we block all signals until
we timeout. Convert this to use pollts and then grab the pending signals
and sigsuspend them.
XXX: We should really convert this to use kqueue, like FreeBSD did.
2005-09-09 15:40:49 +00:00
wiz
a419bb673a espie@openbsd:
impelmentation -> implementation

yes, new typo for an old friend.
2005-08-05 10:39:05 +00:00
wiz
ed1153a3aa Fix typo reported in PR 30872. 2005-07-30 11:11:46 +00:00
yamt
2d02304deb use malloc rather than mem_alloc (which is implemented using calloc)
for receive/send buffers to avoid unnecessarily anonymous memory bloat.
2005-06-09 22:13:17 +00:00
he
87292a6062 Initialize a variable to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed by lukem.
2005-06-07 09:13:43 +00:00
lukem
46af29904e appease gcc -Wuninitialized 2005-06-01 05:54:07 +00:00
lukem
3af3e6a479 appease gcc -Wuninitialized 2005-06-01 05:41:48 +00:00
lukem
178e201b11 appease gcc -Wuninitialized 2005-06-01 04:38:40 +00:00
dsl
54cc3da266 Make the arg to getnetconfigent const char * to match the man page (and
likely calling code).
2005-05-15 20:54:41 +00:00
simonb
3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
kleink
fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
lukem
b91c938d5f delint -UINET6 2005-01-08 22:48:42 +00:00
christos
1466914ff3 add size_t casts. 2004-12-30 05:11:50 +00:00
christos
bd66ab4a14 cast to size_t
remove unneeded casts.
2004-12-30 05:08:37 +00:00
christos
1c5c5f5ad5 cast to size_t/socklen_t 2004-12-30 05:07:43 +00:00
christos
1b235e3efc cast to socklen_t/size_t 2004-12-30 05:06:33 +00:00
wiz
8a066267fb Bump date for const change. 2004-08-16 10:18:27 +00:00
ginsbach
ebcc92c100 * add const qualifier making getrpcbyname() and getrpcbyname_r()
prototypes match those used in latest Sun RPC code (TI-RPC 2.3)
* modify function getrpcbyname() definition as appropriate
2004-08-16 02:47:54 +00:00
ginsbach
ca4f974ad7 Use ANSI function decls. 2004-08-05 03:06:37 +00:00