Commit Graph

13 Commits

Author SHA1 Message Date
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 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 30701b75d0 sysconf() definitions are in unistd.h; use it rather than sys/param.h and
sys/sysctl.h.  (without this, the previous checkin doesn't work.)
1996-12-18 20:57:15 +00:00
mrg 52ae8f7095 oops; use _SC_OPEN_MAX instead of sysctl. 1996-12-18 01:06:37 +00:00
cgd ac05a6d647 repeat after me: size_t != int, especially when you're taking pointers. 1996-12-17 22:00:39 +00:00
mrg 074bac7fd2 use sysctl() instead of getdtablesize() 1996-12-17 03:27:08 +00:00
jtc 18ec2ba033 Add explict function return types 1996-03-29 23:00:47 +00:00
cgd 9e15c98955 save my sanity; stop using Id. 1995-02-25 03:01:33 +00:00
andrew 8eabc08051 Limit the upper bound of the value returned by _rpc_dtablesize() to not
break select(2) calls.
1994-08-15 07:56:50 +00:00
cgd 63d7b6778b move the rpc code into libc 1993-10-07 07:29:33 +00:00