Commit Graph

283 Commits

Author SHA1 Message Date
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
yamt
675f9cd51a add a missing release_fd_lock. 2003-06-06 00:48:45 +00:00
christos
25cb0b1e94 de-lint pointer casts. 2003-05-29 18:15:25 +00:00
fvdl
b2a54b691e Back out previous for now. I already suspected part of it was wrong,
and there has been one report of problems in the mean time.
2003-05-19 09:26:15 +00:00
christos
56a0a03629 From Martin Blapp mb at imp dot ch, should fix PR/20768
Remove the special treatment off non-blocking mode in
xdrrec_eof(). This change broke seriously reading serialized
xdr-records. A end of a request could sometimes not
be recognized and the socket got closed too early.

Initialize in_reclen and in_received in a second case
if we get more outstanding records.
2003-05-18 23:59:28 +00:00
yamt
8f781c36ef fix a simple bug that prevents svc_tli_create to bind to the address
specified by caller.
2003-05-13 11:57:21 +00:00
scw
c7dadf502a The second parameter of strchr() is an integer, not a pointer.
So use '\0' instead of NULL.
2003-04-29 14:56:05 +00:00
wiz
4472b40375 Convert to mdoc. Fix an error (two many arguments to a function). 2003-04-17 17:57:12 +00:00
wiz
df25ca4551 Convert to mdoc. Fix one or two bugs while here, hope I didn't introduce
more :)
2003-04-17 17:02:48 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
christos
036ef4f391 cast int to size_t to appease lint (Geoff Wing) 2003-04-05 17:02:14 +00:00
christos
cf3a405a52 PR/21014: Tom Lyon: Failure to clear string by passing the wrong size to memset 2003-04-05 03:47:18 +00:00