Commit Graph

327 Commits

Author SHA1 Message Date
christos 0e61db23eb Compile with DIAGNOSTIC 2007-02-03 16:17:15 +00:00
cbiere f753f71dbe * Don't use the term "anonymous"; this is confusing.
* Mention "reserved", that's what it's stands for after all.
 * Mention getsockname() to determine the assigned port in any case.
2007-01-27 07:58:47 +00:00
hubertf 55ac93d329 Remove more duplicate #includes, and a few spurious whitespaces at EOL
From Slava Semushin <slava.semushin@gmail.com>
2007-01-17 23:24:22 +00:00
christos 67657e2f66 fix typo. 2006-11-03 23:16:12 +00:00
christos c349a0b22c nuke useless perror 2006-11-03 20:24:41 +00:00
christos 95c7627c87 use FD_CLOEXEC instead of 1. 2006-11-03 20:18:49 +00:00
christos 51739e272e Only retry if we were able to clean up some descriptors, otherwise we get
into an infinite loop.
2006-10-17 17:44:34 +00:00
christos ce2c90c7c1 fix incomplete initializers 2006-10-15 16:14:46 +00:00
yamt b1e75a8232 fix a typo pointed by efnbl06 at bn2.maus.net. 2006-09-16 08:29:08 +00:00
cherry 3a0cfd5a72 add ia64 to the ugly IEEEFP hackaround 2006-09-15 00:01:24 +00:00
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