Commit Graph

11 Commits

Author SHA1 Message Date
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
jtc
b18369b1bb Use memset instead of bzero to clear xports array.
To be strictly conforming, we should iterate through the array and set
each pointer to NULL.  But memset is faster, and can be inlined by the
compiler.  If we ever encounter a machine where a NULL ptr != all bits
zero, we'll have to handle this differently.
1996-05-17 00:32:22 +00:00
pk
8afc84d945 Clear `xports' array after allocation (PR#2424, Arne Juul). 1996-05-16 22:52:21 +00:00
cgd
9e15c98955 save my sanity; stop using Id. 1995-02-25 03:01:33 +00:00
pk
c6df61219c svc_getreq(): pay attention to registered sockets only. This allows
passing a `fd_set' with unrelated bits set.
1995-01-06 13:05:16 +00:00
mycroft
00f8cda6d6 Remove local definitions of svc_maxfd. 1995-01-04 02:58:45 +00:00
cgd
2e2a3a256a be much more careful with types, and add prototype everything. 1994-12-04 01:12:39 +00:00
deraadt
964007b231 fix my dumb bug 1994-08-23 18:42:10 +00:00
deraadt
da072ba3a5 rpc library no longer uses _rpc_dtablesize() internally -- keeps track
of highest active file descriptor. limit fd usage to FD_SETSIZE, until
a better solution is found. remove non-FD_SETSIZE code.
1994-08-20 00:55:26 +00:00
cgd
63d7b6778b move the rpc code into libc 1993-10-07 07:29:33 +00:00