lukem
2d59e2af1e
sign-compare fix
2009-02-12 04:38:52 +00:00
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
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
eadd73deca
Centralize the TCP_NODELAY handling as discussed in tech-net.
2006-06-22 19:35:34 +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
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
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
thorpej
3fdac2b8c5
Merge the nathanw_sa branch.
2003-01-18 10:52:16 +00:00
skrll
3f05b3f7ab
Add extern svc_fd_lock if __REENT and include rpc_internal.h only once.
2002-11-12 14:50:23 +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
cjep
c33f9d110f
Fix spelling mistake (from Onno van der Linden; PR#15793).
2002-03-03 18:19:41 +00:00
lukem
0d2d9acca6
whitespace consistency fixups
2001-01-04 14:57:17 +00:00
fvdl
3b9024546d
For an accepted connection (tcp), set xp_netid, as it might be examined
...
by some applications, most notably rpcbind.
2000-08-03 00:01:53 +00:00
kleink
1e67e23b6f
De-delint previous: svc_vc_rendezvous_ops() isn't unused unless the single
...
reference to it is accidently deleted; from Shuuichirou Murata in PR lib/10537.
2000-07-08 11:41:50 +00:00
christos
deb154d2bc
add __RPC_GETXID macro
...
don't const castway __rpc_getconf and __rpc_getconfig. It might try to
write const strings
fix non-portable casts
remove duplicated prototypes
cast things to proper types
remove extraneous casts to NULL
fix variable cast mismatches
remove register var declarations
2000-07-06 03:10:34 +00:00
fvdl
3f80608ea9
Correct misleading error messages.
2000-06-06 14:44:45 +00:00
thorpej
934426175d
- An initialized variable kept LOCAL_CREDS from being set on
...
the listen socket properly. This caused spurious rpcbind(8)
failures.
- Don't define a "credmsg" structure. Instead, dynamically
allocate a buffer of the correct size of the message with
CMSG_SPACE() and free it when we're done. This gets the
size of the buffer right on LP64 platforms, which has padding
for alignment thrown in.
- Check for non-present or truncated cred messages when recvmsg(2)
returns.
2000-06-05 05:58:46 +00:00
fvdl
327cb95a94
Zero out the xprt in makefd_xprt to avoid bad free() calls in some cases.
2000-06-03 20:26:05 +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