Commit Graph

294 Commits

Author SHA1 Message Date
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
ginsbach
9af61ddeaf Fix getrpcbyname() alias lookups. Closes PR lib/23294; reviewed by <christos>. 2004-08-02 18:59:09 +00:00
christos
388c103e83 PR/25003: John Kohl: File is missing a copyright. 2004-05-28 14:38:53 +00:00
lukem
5f5a907836 fix description for svc_getreqset() 2004-05-03 15:57:36 +00:00
lukem
aff9207208 document svcudp_create 2004-02-16 02:39:36 +00:00
martin
f6ee845eac Fix a cast for little endian archs 2004-01-03 23:50:47 +00:00
martin
a2c6783de5 When writing/reading longs use explicit 32bit temporary values (this is
what "long" means in xdr context).
Fixes PR lib/23960.
2004-01-03 23:01:41 +00:00
matt
aa6e9c56c3 Make this compile on non-IEEE GCC3 targets (aka VAX). 2003-12-08 06:18:16 +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
fvdl
b279ed6377 Don't compare NULL against a character. 2003-10-21 00:07:17 +00:00
fvdl
bc018099a2 Don't use NULL to compare against a char. 2003-10-21 00:03:47 +00:00
fvdl
39d7a2e359 Don't use NULL to compare against a character. 2003-10-21 00:00:34 +00:00
christos
44eab0895d PR/20768: Martin Blapp: Remove special handling for non-blocking connections
that breaks amd clients.
2003-10-03 21:29:16 +00:00
itojun
1ecc9b581c use internal names for randomid() 2003-09-13 21:27:43 +00:00
itojun
cfbab92fdb use randomid(3). actually generate random ID for DNS queries (previous
fix was incomplete)
2003-09-09 22:16:58 +00:00
itojun
5c945215d0 __RCSID police 2003-09-09 03:56:39 +00:00
itojun
35beb40305 have __rpc_getxid.c 2003-09-09 03:56:23 +00:00
itojun
8b08fa0d3b use niels provos' random sequence number generator to initialize RPC XID. 2003-09-09 00:22:17 +00:00
wiz
47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
salo
99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
wiz
bbe810ed82 Use Em instead of weird Bf usage. 2003-07-01 10:20:54 +00:00
wiz
cc45dace72 Use Aq Pa instead of Fd \*[Lt]...\*[Gt]. 2003-06-27 15:33:24 +00:00
wiz
6f235494c5 Fix typos in macro names. 2003-06-27 13:02:27 +00:00
yamt
795dfe8877 - change default message size for udp to UDPMSGSIZE(8800) from 8192.
(to be compatible with pre-TIRPC)
- bump message size limit to 256k.

from FreeBSD's rev.1.3.
2003-06-07 07:41:41 +00:00