Commit Graph

125 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
mrg
38bfb6cd0a merge bind 4.9.6 resolver. still need to fix <resolv.h> 1997-07-20 13:33:17 +00:00
mrg
d507e9e46d bind 4.9.6 resolver files. 1997-07-20 04:07:42 +00:00
thorpej
0970670295 Be careful with types. XXX sys/netns needs to be swept, but this addresses
libc, at least.
1997-07-18 04:55:57 +00:00
thorpej
2f4f59a76f Do the non-__indr_reference verions of thse like the cat*(3) functions,
modulo a slight kludge to get around the namespace trickery played
in <resolv.h>.
1997-07-17 21:27:33 +00:00
thorpej
a3ec8b6d7f Cast the result of pointer arithmetic to "long" for printing, and use
%ld printf format.
1997-07-17 21:25:18 +00:00
thorpej
135f03fe8e The return value from ntohl() is an in_addr_t, and should not be printed
with a "long" format modifier.
1997-07-17 18:48:01 +00:00
christos
793912a9df When removing $'s to preserve rcsid's remove them from both sides. 1997-07-16 14:54:01 +00:00
mikel
d36455889e xref gethostname(3) not gethostname(2), alphabetize xrefs 1997-07-14 01:17:05 +00:00
christos
8d36d3405e Fix RCSID's
Fix gcc warnings
Add missing prototypes
Use "namespace.h"
1997-07-13 19:57:30 +00:00
christos
78587c990a inet_pton4() did not handle
- incompletely specified ip addresses
	- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1	localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.
1997-07-07 17:11:03 +00:00
lukem
5bacaabfd1 * add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)
1997-06-18 02:25:19 +00:00
lukem
25d1ca167b Describe inet_ntop() and inet_pton(), and the IPv6 address format.
From BSD/OS 3.0, with permission from Jeffrey Finkelstein <finkels@bsdi.com>
1997-06-18 00:11:11 +00:00
lukem
9c3104a64c document RES_USE_INET6
sort RFCs numerically (974 < 1032, not > 1535)
1997-06-08 06:33:47 +00:00
mrg
b98cd1ecc7 add a bugs section. 1997-06-05 16:40:16 +00:00
mrg
337facc4a3 install a man page (link) for orcmd(3). 1997-05-28 04:02:08 +00:00
mrg
cf3c0fcb9e update rcmd documentation. 1997-05-28 04:01:06 +00:00
mrg
5a1ec9814a allow rcmd() to use something other than rsh protocol. 1997-05-26 14:18:29 +00:00
mikel
a299bb2614 note that s_port must be given in network byte order as well; fixes
PR lib/2986.
1997-05-12 06:48:38 +00:00
mrg
3a4d449e5b use a nul not '0'. from <enami@ba2.so-net.or.jp> in PR#3558 1997-04-30 07:02:18 +00:00
mrg
5164bf8772 handle hex hostnames (from vixie, as reported in PR#3535). 1997-04-26 04:12:08 +00:00
cgd
f162946f96 pull in <netinet/in.h>, s/#Include/#include, and fix up __dn_comp() prototype,
so that this compiles.
1997-04-22 18:53:16 +00:00
cgd
11342179b7 pull in <netinet/in.h> so that these compile 1997-04-22 18:51:53 +00:00
mrg
2d2ae90504 note possible security concerns. 1997-04-22 12:33:17 +00:00
mrg
ee6f78c8a1 create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.
1997-04-22 06:55:36 +00:00
cgd
c2505edbf3 pull in string.h for protos. found by John Franklin (PR 3487), and noticed
by me about 2 minutes before I received the PR.
1997-04-14 03:08:05 +00:00
mrg
2b519fccc7 oops; call getanswer correctly. 1997-04-14 01:38:26 +00:00
mrg
b7055da7c4 re-add YP parts. 1997-04-13 10:56:20 +00:00
mrg
023690d8db merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).
1997-04-13 10:30:29 +00:00
mrg
2479c1a225 BIND 4.9.5-P1 resolver bits we use 1997-04-13 09:12:05 +00:00
is
bfb66aaf03 New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:33:00 +00:00
mouse
ff44468136 alternate -> alternative, per PR 2643 1997-03-08 13:36:38 +00:00
mycroft
041d00cdf4 It's not necessary to initialize the `revents' field of struct pollfd. 1997-02-08 04:38:02 +00:00
abrown
d8fd3320e5 Prevent buffer overflow (and thus return of bogus data) when a DNS record
has more than MAXADDRS "A" records for a host.

Patch from Paul A. Vixie <paul@vix.com>, slightly modified to fit in with
NetBSD debug framework.
1997-01-31 00:05:59 +00:00
mrg
9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
mikel
7e68ce85de inet_makeaddr() takes unsigned long, not int, arguments; fixes PR lib/2385. 1997-01-22 07:57:19 +00:00
mikel
486b24efe4 explicitly type ether_{hostton,ntohost,line}(). all return int. 1997-01-17 08:23:26 +00:00
veego
b6257e9e67 iruserok fails to open a ~/.rhosts file if you have a directory
above the home dir which is only group acessable:

directroy       owner   group   permission
/a              root    wheel   755
/a/b            root    b       750       <
/a/b/c          c       b       700
/a/b/c/.rhosts  c       b       600

add getegid and initgroups before and setegid behind fopen to fix this.
add <netgroup.h> for the prototype of innetgr.
1996-12-28 18:48:31 +00:00
cgd
5a39204a94 _gethtbyname's arg should be const char *, not char * 1996-12-20 19:41:30 +00:00
thorpej
32c0c5ebb7 Don't pass a timeout of 0 to poll(2); block indefinitely, like the
pre-poll(2) aware implementation.
From enami tsugutomo <enami@ba2.so-net.or.jp>, PR #3043.
1996-12-18 04:53:11 +00:00
mrg
f5e4cc118e use poll() instead of select() 1996-12-17 03:35:52 +00:00
mikel
6965177949 Add iso_addr.3 to MAN. Fixes misc/2942. 1996-11-17 04:37:14 +00:00
lukem
5365ba0ce7 add 'const' qualifiers to various routines (as per the include prototypes
and the implementation)
1996-11-09 08:30:52 +00:00
lukem
5fe99da953 fix prototype for getservbyport, from babafou@ensta.fr [misc/2916],
and also add 'const' qualifiers
1996-11-09 08:30:22 +00:00
mrg
6450bba05b fix another bogon in last change; some changes derived from openbsd. 1996-10-18 00:10:18 +00:00
cgd
98a0fb0a16 fix a typo: take and cast a pointer to the argument, rather than trying
to cast the argument to a pointer.
1996-10-17 01:39:40 +00:00
mrg
e6b86e3b9c fix bogon in last change. 1996-10-14 10:41:07 +00:00
christos
858f971050 in_addr_t and in_port_t changes 1996-10-13 04:08:34 +00:00
mrg
92390243e6 always update length; from vixie. 1996-10-08 04:09:58 +00:00
jtc
6d8b15101f Install linkaddr.3 as link_addr.3 and link_ntoa.3 too. 1996-07-10 20:15:48 +00:00