Commit Graph

25 Commits

Author SHA1 Message Date
bjh21 282980297f xdr_enum() now gets passed a real enum_t *, rather than an enum foo *
in disguise.  This means it can just be yet another copy of
xdr_int32_t(), rather than messing around trying to work out the size
of an enum.

This change should make no difference on existing ports, where enum_t
is the same size as all enums, but will make a difference on ARM ELF.
2002-02-10 13:47:10 +00:00
lukem 1b4c6a992b don't _DIAGASSERT(cp != NULL) until after cnt is checked for != 0.
other stuff in the rpc systems (e.g, authnone_create() with _null_auth)
trigger this assertion otherwise
2001-01-17 01:07:10 +00:00
lukem 29e8291322 sprinkle _DIAGASSERT() around 2001-01-04 01:45:30 +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
mycroft c6a0f46b4f Delint. 2000-01-22 22:53:59 +00:00
mycroft 605490369c Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
thorpej 0bbf216692 Implement XDR routines for 64-bit integer data types:
- xdr_int64_t(), xdr_u_int64_t(), per NetBSD convention.
- xdr_hyper(), xdr_u_hyper(), xdr_longlong_t(), xdr_u_longlong_t(), a'la
  Solaris, implemented in terms of the above.
1999-12-01 18:34:21 +00:00
christos 1325a26d7b delint 1998-11-15 17:32:41 +00:00
mycroft 79788fe0d2 const poisoning. 1998-07-26 12:47:38 +00:00
mycroft dae9fd960e const poisoning. 1998-07-26 12:35:24 +00:00
mrg 512c5be5af add "int" to bare static 1998-03-30 01:15:21 +00:00
lukem 46e6c5e813 * in get_myaddress(); always return sockaddr_in containing localhost:PMAP_PORT.
(as recommended in Weiste Venema's portmap5_beta distribution)
* deprecate register
* use memmove instead of bcopy
* KNF includes
* use err/warn() instead of perror/fprintf(stderr,)
* fix some typos
1998-02-13 05:52:11 +00:00
lukem ce147c1c1c revert; we can't break the existing ABI and API 1998-02-12 01:57:27 +00:00
lukem a40a10e320 use u_int32_t instead of size_t... 1998-02-11 11:52:52 +00:00
lukem a31739bc01 major cleanup (to sync with changes made in include/rpc/*.h):
* use int32_t, size_t, in_port_t instead of long, u_int, u_short as appropriate
* use uid_t and gid_t instead of int
* KNF, fix typos and spellos
* use const as appropriate
* deprecate register
* use memmove instead of bcopy
* use err/warn()
1998-02-10 04:54:22 +00:00
jtc 43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
christos c63c52b238 Fix RCSID's
Fix gcc warnings.
Add missing prototypes
1997-07-13 20:13:02 +00:00
cgd 2583d406f9 change some of the rpc "on-the-wire" structures' fields to be explicitly-sized
types.  add xdr_{,u_}int{16,32}_t() functions to convert them.
This is necessary, because things like BPF use the RPC headers to look
at the on-the-wire data, so the headers must accurately represent
what's on the wire, too.
1995-04-29 05:26:31 +00:00
christos c6284ba067 The typo police "dase" != "case" 1995-04-25 21:41:48 +00:00
jtc 6d97ed4663 Use a switch instead of three if statements in xdr_long() and xdr_u_long(),
gcc generates slightly better code on all of the architectures I checked.
Also changed xdr_wrapstring to return the return value of xdr_string
directly.
1995-04-24 23:33:39 +00:00
jtc 9f3b5edc71 Don't pass a third argument (LASTUNSIGNED) to xdrproc_t functions ---
they only take two arguments.  Presumably this was done to prevent
problems when users passed xdr_string instead of xdr_wrapstring.
Function prototypes are a better way to fix this "problem".
1995-04-21 21:49:29 +00:00
cgd 9e15c98955 save my sanity; stop using Id. 1995-02-25 03:01:33 +00:00
cgd 2e2a3a256a be much more careful with types, and add prototype everything. 1994-12-04 01:12:39 +00:00
jtc b3a04d8a54 Fix definition of xdr_u_char() (PR #364) 1994-08-09 00:50:30 +00:00
cgd 63d7b6778b move the rpc code into libc 1993-10-07 07:29:33 +00:00