christos
c9cdc30221
- always check malloc results
...
- don't leak fds on error
- don't cast malloc
- don't cast NULL
2008-04-25 17:44:44 +00:00
chs
ed97cebad7
switch from kqueue() back to pollts() so that signals will be unblocked
...
while we're sleeping. keep the new timeout logic, though.
as discussed on source-changes some 15 months ago.
2007-02-19 18:37:14 +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
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
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
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
christos
1b235e3efc
cast to socklen_t/size_t
2004-12-30 05:06:33 +00:00
drochner
71baa97c0b
-don't update the RPC server address with the reply's sender address;
...
this breaks server failover under some circumstances, and Solaris doesn't
seem to do it either
-minor cleanup
approved by fvdl
2003-10-22 15:38:31 +00:00
itojun
5c945215d0
__RCSID police
2003-09-09 03:56:39 +00:00
itojun
8b08fa0d3b
use niels provos' random sequence number generator to initialize RPC XID.
2003-09-09 00:22:17 +00:00
yamt
675f9cd51a
add a missing release_fd_lock.
2003-06-06 00:48:45 +00:00
thorpej
3fdac2b8c5
Merge the nathanw_sa branch.
2003-01-18 10:52:16 +00:00
fvdl
79d5b270d9
* Adapt include files for rpc_com.h/rpc_internal.h split.
...
* Add rpc_control to svc.c
* Implement non-blocking connections.
2002-11-08 00:13:07 +00:00
lukem
0e8cfd8ffb
sprinkle _DIAGASSERT() appropriately. minor other cleanups
2001-01-04 14:42:18 +00:00
christos
128bd71ffc
oops fix previous typos.
2000-12-20 23:08:51 +00:00
christos
f9b8c27ae8
appease lint casts
2000-12-20 20:52:50 +00:00
fvdl
7c5c8962ad
Use explicit int32 get/put macros. Needed for 64bit big-endian systems.
2000-07-14 08:40:41 +00:00
christos
b056680b9b
remove register
...
adjust types to match functions
elide non-portable casts
cast to proper types
2000-07-06 03:06:45 +00:00
thorpej
11e5c6cccf
Get <string.h> so this builds on LP64.
2000-06-04 03:55:20 +00:00
fvdl
7df0ccbadc
Add new RPC code, based on Sun's TI-RPC code. Adapted to not use XTI,
...
but sockets instead, internally. Old, backward compatible interfaces
maintained.
2000-06-02 23:11:05 +00:00